WiFi scanning control method and related device
Through the dual WiFi chip terminal device, two WiFi channels are transmitted concurrently, and the idle path is used for WiFi scanning, which solves the problem of WiFi scanning affecting WiFi service performance and improves the real-time and performance of services.
Patent Information
- Application Number
- CN202110153928.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-02-04
- Publication Date
- 2025-01-10
- Estimated Expiration
- 2041-02-04
AI Technical Summary
WiFi scanning can affect the performance of running WiFi services, especially low latency services, resulting in reduced real-time and performance.
Dual WiFi chip terminal devices are used to scan WiFi by concurrent two WiFi channels, using the idle path to avoid occupying the time slots of the running service path, thereby reducing or avoiding the impact on service performance.
Effectively reduce or eliminate the impact of WiFi scanning on current WiFi services, and improve the real-time and performance of services, especially in delay-sensitive business scenarios.
Smart Images

Figure CN114867035B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of wireless communication technology, and in particular to a WiFi scanning control method and related devices. Background Art
[0002] With the continuous development of wireless communication technology, the application of Wireless Fidelity (Wi-Fi) is becoming more and more extensive, and the types and numbers of WiFi devices are also increasing.
[0003] When running WiFi services, terminal devices that support WiFi may also need to perform WiFi scanning. WiFi scanning will affect the performance of the currently running WiFi services, especially low-latency services. For example, a user is playing games on a mobile phone, that is, the foreground WiFi service running on the mobile phone is the game service. At this time, an application in the background performs WiFi scanning. The WiFi scanning of the background application will cause delays, affecting the real-time performance of the foreground game service. Summary of the invention
[0004] The embodiments of the present application provide a WiFi scanning control method and related devices, which can reduce or even avoid the impact of WiFi scanning on the performance of running WiFi services.
[0005] In a first aspect, an embodiment of the present application provides a WiFi scanning control method, which is applied to a terminal device, the terminal device includes at least two WiFi chips, and can concurrently connect at least two WiFi channels. The method includes: using a first WiFi channel to perform a first WiFi service; obtaining a WiFi scanning request; determining a first target channel from a second WiFi channel in an idle state, the at least two WiFi channels including the first WiFi channel and the second WiFi channel; in response to the WiFi scanning request, using the first target channel to perform WiFi scanning.
[0006] Based on the above technical solution, the terminal device includes at least two WiFi chips, providing at least two concurrent WiFi paths. When using the first WiFi path to perform the first WiFi service, the second WiFi path in an idle state is used to perform WiFi scanning, thereby avoiding WiFi scanning occupying the time slot of the WiFi path corresponding to the first WiFi service, thereby reducing or even avoiding the impact of WiFi scanning on the performance of the currently running WiFi service.
[0007] The first WiFi path may include one or more WiFi paths, the first WiFi service may include one or more WiFi services, and one WiFi service may use one or more WiFi paths. For example, the first WiFi service includes a screen projection service and an Internet access service, and each of these two services occupies one WiFi path. For another example, the first WiFi service is a foreground high-speed download service, and this service occupies two or three WiFi paths.
[0008] The second WiFi path in the idle state may include one or more WiFi paths, the first target path may include one or more WiFi paths, the first target path may be equal to the second WiFi path, and the second WiFi path may also include the first target path. For example, the second WiFi path only includes paths of two different frequency bands, and the first target path also includes paths of two different frequency bands. In this case, the first target path is equal to the second WiFi path.
[0009] The terminal device can determine the first target path from the second WiFi path to select the path for WiFi scanning. If the second WiFi path includes only one path, the terminal device can directly use the second WiFi path as the first target path; if the second WiFi path includes two paths of different frequency bands, the terminal device can directly use the second WiFi path as the first target path, or select one of the paths as the first target path; if the second WiFi path includes two paths of the same frequency band, the terminal device can select one path as the first target path; if the second WiFi path includes at least three paths, the terminal device can select one path, or select two paths of different frequency bands as the first target path.
[0010] In some possible implementations of the first aspect, the first target path may include a WiFi path of a first frequency band and a WiFi path of a second frequency band. The first frequency band may be a 2.4 GHz frequency band or a 5 GHz frequency band, and the second frequency band may be a 5 GHz frequency band or a 2.4 GHz frequency band, and the first frequency band is different from the second frequency band.
[0011] In this implementation, the second WiFi path includes at least two paths, and the multiple paths include paths of different frequency bands. For example, the terminal device uses the 2.4G frequency band path of the first WiFi chip to access the Internet. At this time, the second WiFi path in the idle state includes the 5G frequency band path of the first WiFi chip, and the 5G frequency band or 2.4G frequency band path of the second WiFi chip. In order to obtain the full-band scanning result, the first target path can be determined to be the 5G frequency band path of the first WiFi chip and the 2.4G frequency band path of the second WiFi chip.
[0012] Of course, in other implementations, the terminal device may also use only one frequency band channel for scanning. In this case, the WiFi scanning request may include indication information for indicating the scanning frequency band or scanning channel, and the terminal device selects the WiFi channel of the specific frequency band as the first target channel according to the indication information carried by the WiFi scanning request.
[0013] In some possible implementations of the first aspect, after obtaining the WiFi scan request, if the second WiFi path includes only a WiFi path of one frequency band, the method may further include:
[0014] Determine whether there is a preset type of WiFi service in the WiFi channel of the target frequency band in the first WiFi channel, the first WiFi service includes at least two WiFi services, and the first WiFi channel includes at least two WiFi channels; if there is a preset type of WiFi service in the WiFi channel of the target frequency band, determine the WiFi channel corresponding to the preset type of WiFi service as the second target channel; in response to the WiFi scan request, use the second target channel and the third target channel to perform WiFi scanning; wherein the target frequency band is different from the frequency band of the second WiFi channel, and the second WiFi channel includes the third target channel. The preset type of WiFi service may refer to the target service type.
[0015] In this implementation, in order to obtain full-band scanning results and minimize the impact of WiFi scanning on the performance of the currently running WiFi service, if only one WiFi channel in one frequency band is idle at this time, a WiFi scan can be performed using the corresponding channel of a preset type of WiFi service.
[0016] For example, the terminal device uses the 5G band channel of the first WiFi chip for screen projection services and the 2.4G band channel of the first WiFi chip for Internet access services. At this time, the only WiFi channel in idle state is the 5G band channel of the second WiFi chip. In order to obtain the scanning results of the entire frequency band, the service type on the 2.4G band channel (i.e., the target band) of the first WiFi chip can be detected. Since the Internet access service is a non-low-latency service and is not sensitive to latency, the 2.4G band channel of the first WiFi chip (i.e., the second target channel) and the 5G band channel of the second WiFi chip (i.e., the third target channel) can be used for scanning to obtain the scanning results of the 2.4G band and the 5G band.
[0017] In other implementations, if the second WiFi path includes two paths of different frequency bands, the terminal device may select two paths of different frequency bands from the idle WiFi paths for scanning in order to obtain scanning results of the entire frequency band.
[0018] In some possible implementations of the first aspect, the preset type of WiFi service may include a non-low-latency service. A non-low-latency service refers to a service that is not sensitive to latency, such as an Internet access service. Correspondingly, a low-latency service refers to a service that is sensitive to latency, such as a screen projection service.
[0019] In some possible implementations of the first aspect, before using the first WiFi path to perform the first WiFi service, the method may further include: determining whether the first WiFi service is a foreground WiFi service; if the first WiFi service is a foreground WiFi service, determining a service category of the first WiFi service; and determining the first WiFi path according to the service category;
[0020] Wherein, when the service category is the first category, the first WiFi path includes one WiFi path; when the service category is the second category, the first WiFi path includes at least two WiFi paths.
[0021] In this implementation, when determining the first WiFi path, the number of WiFi paths used can be determined according to the type of the first WiFi service. If the first WiFi service is a foreground service and is of the second category, multiple WiFi paths can be used to accelerate the first WiFi service.
[0022] For example, if the first WiFi service is a foreground high-speed download service, the 5G frequency band path of the first WiFi chip can be used to connect to the first hotspot, and the 5G frequency band path of the second WiFi chip can be used to connect to the second hotspot, and two 5G frequency band WiFi hotspots can be used for download services to increase the download speed. At this time, the first WiFi path includes the 5G frequency band path of the first WiFi chip and the 5G frequency band path of the second WiFi chip.
[0023] In some possible implementations of the first aspect, the first category may include low-latency or traditional WiFi services, such as screen projection services, and the second category may include high-speed download services.
[0024] In some possible implementations of the first aspect, when the terminal device can concurrently use at least three WiFi channels, the process of using the first WiFi channel to perform the first WiFi service may include: using the fourth target channel to perform the first screen projection service, using the fifth target channel to perform the second WiFi service, and the first WiFi service includes the first screen projection service and the second WiFi service. The first WiFi channel includes the fourth target channel and the fifth target channel, and the second WiFi service is a non-low-latency service, such as an Internet access service.
[0025] That is to say, the terminal device is performing two WiFi services, for example, using the 5G frequency band channel of the first WiFi chip (i.e., the fourth target channel) for the first screen projection service, and using the 2.4G frequency band channel of the second WiFi chip (i.e., the fifth target channel) for the Internet access service. The fourth target channel and the fifth target channel are WiFi channels in an occupied state.
[0026] After using the first target channel to perform a WiFi scan, the method may further include: obtaining a first WiFi scan result; and based on the first WiFi scan result, using a sixth target channel to perform a second screen projection service, the second WiFi channel including the sixth target channel.
[0027] Among them, the sixth target channel may be the same as the first target channel mentioned above, or may be different from the first target channel. For example, the terminal device uses the 5G band channel (i.e., the fourth target channel) of the first WiFi chip to perform the first screen projection service, and uses the 2.4G band channel (i.e., the fifth target channel) of the first WiFi chip to perform the Internet access service. After using the first target channel to scan and obtain the first scanning result, the 5G band channel (i.e., the sixth target channel) of the second WiFi chip is used to perform the second screen projection service. At this time, the first target channel for WiFi scanning may include the 5G band channel (i.e., the sixth target channel) of the second WiFi chip. Of course, if it is necessary to obtain the full-band scanning result, the 2.4G band channel of the first WiFi chip and the 5G band channel of the second WiFi chip can be used for scanning, and then the 5G band channel of the second WiFi chip can be used for the second screen projection service. Alternatively, if the 5G band of the second WiFi chip is used for Internet access service, the terminal device may also switch the Internet access service to the 2.4G band channel of the first WiFi chip before performing WiFi scanning. The WiFi scanning scheme can refer to the various implementations in the first aspect, which will not be repeated here.
[0028] Exemplarily, the first WiFi scan result may include SSID, BSSID, PWR, and the like.
[0029] In some possible implementations of the first aspect, before using the first target channel to perform WiFi scanning, the method may also include: determining whether the frequency band of the fifth target channel is the 5G frequency band; if it is determined that the frequency band of the fifth target channel is the 5G frequency band, switching the second WiFi service from the fifth target channel to the seventh target channel in an idle state, so as to use the seventh target channel to perform the second WiFi service, and the seventh target channel is a WiFi channel in the 2.4G frequency band; the first target channel includes the fifth target channel, and the fifth target channel is used as the sixth target channel.
[0030] Exemplarily, the terminal device uses the 5G band channel of the first WiFi chip (i.e., the fourth target channel) to perform the first screen projection service, and uses the 5G band channel of the second WiFi chip (i.e., the fifth target channel) to perform the Internet access service. The first scan request is used to trigger the establishment of a WiFi P2P connection to perform the second screen projection service. When the terminal device detects that the channel corresponding to the second WiFi service is the 5G band, it switches the second WiFi service to an idle 2.4G band channel, and then uses the first target channel to perform WiFi scanning. At this time, the first target channel includes the 5G band channel of the second WiFi chip, and uses the fifth target channel as the sixth target channel, that is, the fifth target channel is used to perform the second screen projection service, thereby realizing dual-channel screen projection service concurrency.
[0031] Of course, in other implementations, the 2.4G frequency band channel can also be used for the second screen projection service without switching the second WiFi service to the 2.4G frequency band channel.
[0032] In some possible implementations of the first aspect, the process of using the first target path to perform WiFi scanning may include: obtaining a second WiFi scanning result; after identifying the target device according to the second WiFi scanning result, using the first target path and scanning at a first scanning frequency to obtain first WiFi information broadcast by the target device; determining a first distance to the target device according to the first WiFi information; when the first distance is less than or equal to a first preset threshold, using the first target path and scanning at a second scanning frequency to obtain second WiFi information of the target device, the second scanning frequency being higher than the first scanning frequency.
[0033] For example, in a proximity discovery scanning scenario, the terminal device is using the first WiFi channel to perform the first WiFi service. After obtaining the WiFi scan request, the first target channel in the idle state can be used for WiFi scanning, reducing or even avoiding the impact of proximity discovery scanning on the performance of the first WiFi service. In addition, when using the first target channel for scanning, the distance to the target device (for example, a soymilk maker) bracket is calculated based on the second WiFi scan result. When the distance is less than a certain threshold, the scanning frequency is increased to more accurately calculate the distance to the target device.
[0034] The second WiFi scan may include SSID, BSSID, PWR, etc. The first scanning frequency, the second scanning frequency, and the first preset threshold may be set according to actual needs. The first WiFi information refers to information used to calculate the distance, which may include SSID, PWR, etc.
[0035] In some possible implementations of the first aspect, after using the first target path and scanning at a second scanning frequency and obtaining second WiFi information of the target device, the method may further include: determining a second distance to the target device based on the second WiFi information; when the second distance is less than or equal to a second preset threshold, popping up a window and displaying the information of the target device in the window, and the second preset threshold is less than the first preset threshold.
[0036] The target device information may include device name, device image, etc. The second preset threshold may be set according to actual needs. The second WiFi information refers to information used to calculate the distance, which may include SSID, PWR, etc.
[0037] For example, in a proximity discovery scanning scenario, if it is determined that the distance between the two devices is less than a second preset threshold, a reporting action may be performed, and a pop-up window may be displayed to trigger a connection action. For example, a network configuration window of a soybean milk maker may be displayed, which may include the name, picture, and WiFi network information of the soybean milk maker.
[0038] In a second aspect, an embodiment of the present application provides a terminal device, comprising at least two WiFi chips, a memory, a processor, and a computer program stored in the memory and executable on the processor. Based on the at least two WiFi chips, at least two WiFi paths can be concurrently executed. When the processor executes the computer program, the following process is implemented: using a first WiFi path to perform a first WiFi service; obtaining a WiFi scan request; determining a first target path from a second WiFi path in an idle state, the at least two WiFi paths including a first WiFi path and a second WiFi path; and in response to the WiFi scan request, using the first target path to perform a WiFi scan.
[0039] In some possible implementations of the second aspect, the first target path includes a WiFi path in a first frequency band and a WiFi path in a second frequency band.
[0040] In some possible implementations of the second aspect, if the second WiFi path only includes a WiFi path of one frequency band, the processor further implements the following process when executing the computer program: determining whether there is a preset type of WiFi service in the WiFi path of the target frequency band in the first WiFi path, the first WiFi service includes at least two WiFi services, and the first WiFi path includes at least two WiFi paths; if there is a preset type of WiFi service in the WiFi path of the target frequency band, determining the WiFi path corresponding to the preset type of WiFi service as the second target path; in response to a WiFi scan request, performing a WiFi scan using the second target path and the third target path; wherein the target frequency band is different from the frequency band of the second WiFi path, and the second WiFi path includes the third target path.
[0041] In some possible implementations of the second aspect, the preset type of WiFi service includes a non-low-latency service.
[0042] In some possible implementations of the second aspect, the processor further implements the following process when executing the computer program: determining whether the first WiFi service is a foreground WiFi service; if the first WiFi service is a foreground WiFi service, determining the service category of the first WiFi service; determining the first WiFi path according to the service category; wherein, when the service category is the first category, the first WiFi path includes one WiFi path; when the service category is the second category, the first WiFi path includes at least two WiFi paths.
[0043] In some possible implementations of the second aspect, the first category includes a low-latency category, and the second category includes a high-speed download category.
[0044] In some possible implementations of the second aspect, when the terminal device can concurrently use at least three WiFi channels, the processor specifically implements the following process when executing the computer program: using the fourth target channel to perform a first screen projection service, using the fifth target channel to perform a second WiFi service, the first WiFi service includes the first screen projection service and the second WiFi service, the first WiFi channel includes the fourth target channel and the fifth target channel, and the second WiFi service is a non-low-latency service;
[0045] When the processor executes the computer program, the following process is also implemented: obtaining a first WiFi scan result; based on the first WiFi scan result, using a sixth target channel to perform a second screen projection service, and the second WiFi channel includes the sixth target channel.
[0046] In some possible implementations of the second aspect, the processor further implements the following process when executing the computer program: determining whether the frequency band of the fifth target channel is the 5G frequency band; if it is determined that the frequency band of the fifth target channel is the 5G frequency band, switching the second WiFi service from the fifth target channel to the seventh target channel in an idle state, so as to use the seventh target channel for the second WiFi service, and the seventh target channel is a WiFi channel in the 2.4G frequency band; the first target channel includes the fifth target channel, and the fifth target channel is used as the sixth target channel.
[0047] In some possible implementations of the second aspect, the processor specifically implements the following process when executing the computer program: obtaining a second WiFi scanning result; after identifying the target device according to the second WiFi scanning result, using the first target path and scanning at a first scanning frequency to obtain first WiFi information broadcast by the target device; determining a first distance from the target device according to the first WiFi information; when the first distance is less than or equal to a first preset threshold, using the first target path and scanning at a second scanning frequency to obtain second WiFi information of the target device, and the second scanning frequency is higher than the first scanning frequency.
[0048] In some possible implementations of the second aspect, the processor further implements the following process when executing the computer program: determining a second distance from the target device based on the second WiFi information; when the second distance is less than or equal to a second preset threshold, popping up a window and displaying the information of the target device in the window, and the second preset threshold is less than the first preset threshold.
[0049] In a third aspect, an embodiment of the present application provides a WiFi scanning control device, which can be integrated in a terminal device, the terminal device includes at least two WiFi chips, and can concurrently connect at least two WiFi paths. The device may include:
[0050] A first using module, used to use the first WiFi channel to perform a first WiFi service;
[0051] A first scanning request obtaining module, used to obtain a WiFi scanning request;
[0052] A determination module, configured to determine a first target path from a second WiFi path in an idle state, wherein the at least two WiFi paths include a first WiFi path and a second WiFi path;
[0053] The first WiFi scanning module is used to respond to the WiFi scanning request and use the first target path to perform WiFi scanning.
[0054] In some possible implementations of the third aspect, the first target path includes a WiFi path in a first frequency band and a WiFi path in a second frequency band.
[0055] In some possible implementations of the third aspect, if the second WiFi path includes only a WiFi path of one frequency band, the device further includes:
[0056] A first service type determination module is used to determine whether a WiFi channel of a target frequency band in a first WiFi channel has a preset type of WiFi service, wherein the first WiFi service includes at least two WiFi services, and the first WiFi channel includes at least two WiFi channels;
[0057] A first channel determination module, configured to determine the WiFi channel corresponding to the preset type of WiFi service as the second target channel if there is a preset type of WiFi service in the WiFi channel of the target frequency band;
[0058] A second WiFi scanning module, configured to perform WiFi scanning using the second target path and the third target path in response to the WiFi scanning request;
[0059] The target frequency band is different from the frequency band of the second WiFi channel, and the second WiFi channel includes the third target channel.
[0060] In some possible implementations of the third aspect, the preset type of WiFi service includes a non-low-latency service.
[0061] In some possible implementations of the third aspect, the apparatus may further include: a foreground service determination module, configured to determine whether the first WiFi service is a foreground WiFi service;
[0062] A second service category determination module, configured to determine a service category of the first WiFi service if the first WiFi service is a foreground WiFi service;
[0063] A second path determination module, used to determine the first WiFi path according to the service category;
[0064] Wherein, when the service category is the first category, the first WiFi path includes one WiFi path; when the service category is the second category, the first WiFi path includes at least two WiFi paths.
[0065] In some possible implementations of the third aspect, the first category includes a low-latency category, and the second category includes a high-speed download category.
[0066] In some possible implementations of the first aspect, when the terminal device can concurrently use at least three WiFi channels, the first using module is specifically used to: use the fourth target channel to perform the first screen projection service, use the fifth target channel to perform the second WiFi service, the first WiFi service includes the first screen projection service and the second WiFi service, the first WiFi channel includes the fourth target channel and the fifth target channel, and the second WiFi service is a non-low-latency service;
[0067] The device may also include: a first scanning result acquisition module, used to obtain a first WiFi scanning result; a second using module, used to use a sixth target channel to perform a second screen projection service according to the first WiFi scanning result, and the second WiFi channel includes the sixth target channel.
[0068] In some possible implementations of the third aspect, the device may further include: a frequency band determination module, used to determine whether the frequency band of the fifth target channel is a 5G frequency band; a channel switching module, used to switch the second WiFi service from the fifth target channel to the seventh target channel in an idle state if it is determined that the frequency band of the fifth target channel is a 5G frequency band, so as to use the seventh target channel to perform the second WiFi service, and the seventh target channel is a WiFi channel in the 2.4G frequency band; the first target channel includes the fifth target channel, and the fifth target channel is used as the sixth target channel.
[0069] In some possible implementations of the third aspect, the first WiFi scanning module is specifically used to: obtain a second WiFi scanning result; after identifying the target device according to the second WiFi scanning result, use the first target path and scan at a first scanning frequency to obtain first WiFi information broadcast by the target device; determine a first distance from the target device according to the first WiFi information; when the first distance is less than or equal to a first preset threshold, use the first target path and scan at a second scanning frequency to obtain second WiFi information of the target device, and the second scanning frequency is higher than the first scanning frequency.
[0070] In some possible implementations of the third aspect, the device may also include: a distance determination module, used to determine a second distance between the device and the target device based on the second WiFi information; a trigger module, used to pop up a window and display the information of the target device in the window when the second distance is less than or equal to a second preset threshold, and the second preset threshold is less than the first preset threshold.
[0071] The above-mentioned WiFi scanning control device has the function of implementing the WiFi scanning control method of the first aspect above-mentioned. This function can be implemented by hardware, or by hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the above-mentioned function, and the module can be software and / or hardware.
[0072] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method of any one of the above-mentioned first aspects is implemented.
[0073] In a fifth aspect, an embodiment of the present application provides a chip system, including a processor and at least two WiFi chips, the processor is coupled to a memory, and the processor executes a computer program stored in the memory to implement any method of the first aspect. The chip system can be a single chip or a chip module composed of multiple chips.
[0074] In a sixth aspect, an embodiment of the present application provides a computer program product, which, when executed on a terminal device, enables the terminal device to execute any of the methods described in the first aspect above.
[0075] It can be understood that the beneficial effects of the second to sixth aspects mentioned above can be found in the relevant description of the first aspect mentioned above, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0076] Figure 1 (a) is a schematic diagram of a WiFi scanning time slot and a WiFi service working time slot in the same WiFi path provided in an embodiment of the present application;
[0077] Figure 1 (b) is a schematic diagram of a time-sharing model provided in an embodiment of the present application;
[0078] Figure 2 A schematic diagram of WiFi scanning in a multi-screen collaboration scenario provided in an embodiment of the present application;
[0079] Figure 3 A schematic block diagram of the architecture of a terminal device with dual WiFi chips provided in an embodiment of the present application;
[0080] Figure 4 Another schematic block diagram of the architecture of a terminal device with dual WiFi chips provided in an embodiment of the present application;
[0081] Figure 5 A schematic diagram of the time slot of the WiFi path provided in the embodiment of the present application;
[0082] Figure 6 A schematic block diagram of the process of the WiFi scanning control method provided in an embodiment of the present application;
[0083] Figure 7 (a) is a schematic diagram of an interference detection scenario provided in an embodiment of the present application;
[0084] Figure 7(b) is another schematic flow chart of the WiFi scanning control method provided in an embodiment of the present application;
[0085] Figure 8 A schematic block diagram of the process of approaching a discovery scenario provided in an embodiment of the present application;
[0086] Fig. 9 A schematic diagram of a scenario for dynamically adjusting the WiFi scanning frequency provided in an embodiment of the present application;
[0087] Fig.10 A schematic block diagram of the ranging scanning process provided in an embodiment of the present application;
[0088] Fig.11 A schematic diagram of a network configuration approaching a discovery scenario provided in an embodiment of the present application;
[0089] Fig.12 A schematic diagram of a Huawei sharing scenario provided in an embodiment of the present application;
[0090] Fig.13 Another schematic diagram of a Huawei sharing scenario provided in an embodiment of the present application;
[0091] Fig.14 A schematic diagram of a scenario in which dual 5G frequency band WiFi is used to accelerate gaming services provided in an embodiment of the present application;
[0092] Fig.15 A schematic diagram of a same-frequency, different-channel scenario provided in an embodiment of the present application;
[0093] Fig.16 A schematic diagram of frequency switching overhead in a same-frequency, different-channel scenario provided in an embodiment of the present application;
[0094] Fig.17 A schematic block diagram of the WiFi settings interface provided in an embodiment of the present application;
[0095] Fig.18 A schematic diagram of multi-WiFi network acceleration in a video download scenario provided in an embodiment of the present application;
[0096] Fig.19 A schematic diagram of the processing flow of various low-latency services provided in the embodiments of the present application;
[0097] Fig. 20 A schematic diagram of a dual-channel screen projection scenario provided in an embodiment of the present application;
[0098] Fig.21 A schematic diagram of a concurrent scenario of a multi-screen collaboration service and a screen projection service provided in an embodiment of the present application;
[0099] Fig. 22A schematic block diagram of the WiFi channel concurrent process provided in an embodiment of the present application;
[0100] Fig.23 A schematic diagram of the structure of a terminal device provided in an embodiment of the present application;
[0101] Fig.24 A schematic block diagram of the structure of a WiFi scanning control device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0102] In the following description, for the purpose of explanation rather than limitation, specific details such as specific system structures and technologies are provided to facilitate a thorough understanding of the embodiments of the present application.
[0103] The following first introduces the relevant contents that may be involved in the embodiments of the present application.
[0104] (1) WiFi access process. The wireless communication system includes station (STA) devices and access point (AP) devices. The working modes of the WiFi module include STA mode and AP mode. When the WiFi module works in STA mode, the WiFi device is a STA device; when the WiFi module works in AP mode, the WiFi mode is an AP device.
[0105] The process of a STA device connecting to the WiFi network provided by an AP device usually includes three stages: scanning, authentication, and association.
[0106] STA devices can obtain information about surrounding WiFi hotspots through WiFi scanning. WiFi scanning can be further divided into active scanning and passive scanning according to different WiFi scanning methods.
[0107] Active scanning means that when scanning, the STA device actively sends a Probe Request frame on the WiFi channel, and discovers the surrounding WiFi hotspot information by receiving the Probe Response frame sent by the AP device. The Probe Response frame may include but is not limited to the Service Set Identifier (SSID), Basic Service Set Identifier (BSSID), encryption and authentication methods and other wireless network information.
[0108] Passive scanning means that STA devices discover surrounding WiFi hotspot information by listening to beacon frames regularly sent by AP devices. In other words, AP devices regularly broadcast Beacon frames on WiFi channels, which include wireless network information such as SSID, BSSID, encryption and authentication methods. STA devices switch between various WiFi channels and listen to Beacon frames.
[0109] After the STA device obtains the surrounding WiFi hotspot information through WiFi scanning, it initiates an authentication request to the AP device based on the WiFi hotspot information. For example, a mobile phone obtains the surrounding WiFi hotspot information through WiFi scanning, and displays the SSID of the scanned WiFi hotspot on the display screen; if the user needs to join a wireless network, he can click the corresponding SSID on the display screen, and the mobile phone responds to the user's click operation and pops up a password input window; after the user enters the password and other information in the password input window, and then clicks the connection button, the mobile phone responds to the user's operation on the connection button and sends an authentication request frame to the AP device based on the password and other information entered by the user.
[0110] After receiving the authentication request from the STA, the AP performs authentication according to the information in the authentication request, obtains the authentication result, and returns the authentication result to the STA.
[0111] After the STA device receives the authentication result returned by the AP device, if the authentication is successful, it sends an association request to the AP device. In response to the association request, the AP device sends an association response to the STA device to notify the STA device that the association is successful. At this point, the STA device has accessed the wireless network provided by the AP device.
[0112] (2) WiFi Direct. WiFi Direct is also called WiFi Peer to Peer (Wi-Fi P2P). A P2P network includes two types of devices: Group Owner (GO) and Group Client (GC). A P2P network includes a GO node and at least one GC node. A GO node is similar to an AP device, and a GC node is similar to a STA device.
[0113] The process of establishing a WiFi P2P connection between two P2P devices includes P2P Discovery, Authentication, and Association. The P2P Discovery process allows two P2P devices to discover each other and prepare to build a group.
[0114] After the P2P Discovery process begins, the P2P device first enters the scanning phase. The scanning phase is similar to the wireless network scanning phase described above. Usually, the P2P device can send a probe request frame on each channel to perform active scanning.
[0115] After the scanning phase is completed, the search phase begins. In the search phase, the P2P device switches between the listening state and the search state. In the listening state, the P2P device can listen to the probe request frame on the WiFi channel and reply with the probe response frame. In the search state, the P2P device can send the probe request frame on the WiFi channel.
[0116] After discovering the surrounding P2P devices through the scanning and searching phases, the Group formation process is entered to build a P2P Group. The Group formation process includes two phases: GO Negotiation and Provisioning. Among them, the two P2P devices negotiate which device is the GO node and which device is the GC node through GO Negotiation. After determining the GO node, the two devices exchange relevant information through the Provisioning phase.
[0117] After the Group formation process is completed, enter Group Create to create a Group including two P2P devices. Finally, the two P2P devices perform authentication and association processes to establish a P2P connection.
[0118] In the process of establishing a WiFi P2P connection, both the scanning phase and the search phase involve WiFi scanning.
[0119] It should be noted that the WiFi access process and the process of establishing a WiFi P2P connection mentioned below can be referred to (1) and (2), and will not be repeated here.
[0120] (3) WiFi channels and WiFi operating frequency bands. Currently, the more common operating frequency bands are 2.4 GHz and 5 GHz, so the embodiments of the present application are exemplified by 2.4 GHz and 5 GHz. Of course, the WiFi operating frequency bands mentioned in the embodiments of the present application are not limited to the currently commonly used 2.4 GHz and 5 GHz. For example, the WiFi frequency band in the embodiments of the present application can also be 6 GHz in the sixth generation WiFi (WiFi6).
[0121] There are available WiFi channels on each working frequency band. Taking China as an example, there are 14 WiFi channels available on the 2.4G frequency band, namely channel 1 to channel 14. The WiFi channels available on the 5G frequency band include channel 36, channel 40, channel 44, channel 48, channel 52, channel 56, channel 60, channel 64, channel 149, channel 153, channel 157, channel 161 and channel 165.
[0122] WiFi devices can work in both 2.4GHz and 5GHz frequency bands. For example, if the WiFi module of a WiFi device supports Dual Band Dual Concurrent (DBDC), the WiFi device can work in two frequency bands at the same time. Among them, WiFi devices supporting DBDC integrate two complete pathways, including two complete baseband processors and two RF front ends.
[0123] A dual-band concurrent AP device can send out 2.4GHz and 5GHz network signals at the same time, that is, it provides two WiFi networks, one WiFi network is in the 2.4G frequency band, and the other WiFi network is in the 5G frequency band.
[0124] For STA devices that support DBDC, STA devices can connect to the 2.4G band WiFi network and the 5G band WiFi network at the same time. These two WiFi networks can be provided by the same AP device or by two AP devices. For example, a mobile phone that supports DBDC can connect to the 2.4G band WiFi network and the 5G band WiFi network of wireless router A at the same time, or it can connect to the 2.4G band WiFi network of wireless router A and the 5G band WiFi network of wireless router B separately.
[0125] Similarly, P2P devices that support DBDC can simultaneously have P2P connections in the 5G band and P2P connections in the 2.4G band.
[0126] WiFi devices can also only work in one frequency band at the same time, that is, they can only work in the 2.4G band or the 5G band at the same time. For example, dual-band wireless router A works in the 2.4G band and the 5G band at the same time, providing 2.4G band WiFi network and 5G band WiFi network. The WiFi module of the mobile phone can only work in one frequency band. Therefore, the mobile phone can only connect to the 2.4G band WiFi network or the 5G band WiFi network, and cannot connect to the WiFi networks of two frequency bands at the same time.
[0127] After briefly introducing the relevant contents that may be involved in the embodiments of the present application, the factors affecting the performance of WiFi services are introduced below.
[0128] At present, terminal devices usually have only one traditional WiFi chip, and the terminal device can only send one WiFi channel at a time. Since the terminal device can only send one WiFi channel at a time, if the terminal device performs WiFi scanning while running WiFi services, the WiFi scanning will affect the performance of the currently running WiFi services.
[0129] Specifically, WiFi services and WiFi scans use the same WiFi channel, and at the same time, the WiFi channel can only perform WiFi scans or WiFi services. When WiFi scans and WiFi services are concurrent, the working time slots originally belonging to WiFi services may be divided into WiFi scan time slots, that is, WiFi scan time slots may occupy the working time slots originally belonging to WiFi services, which in turn increases WiFi service latency and affects the real-time performance of WiFi services.
[0130] For example, the WiFi service currently running on the terminal device is the screen projection service, that is, the terminal device has established a WiFi P2P connection with the screen projection peer, and uses the WiFi P2P connection to perform the screen projection service. At this time, the screen projection service is running, and the WiFi path is in the WiFi service working time slot. After the terminal device obtains the WiFi background scan request, the terminal device responds to the WiFi scan request and periodically uses the WiFi path to perform WiFi background scans (background_scan), that is, the WiFi path will periodically switch between the working time slot and the WiFi scan time slot. For details, please refer to Figure 1 .
[0131] Figure 1 (a) is a schematic diagram of the WiFi scanning time slot and the WiFi service working time slot in the same WiFi path provided by the embodiment of the present application. Figure 1As shown in (a), the WiFi channel switches between the working time slot and the scanning time slot from left to right according to the chronological order. In the first WiFi service working time slot from left to right, the terminal device works on the main channel (i.e., the projection channel), that is, the terminal device is using the main channel for projection service. After the terminal device works on the main channel for 120ms, it enters the first WiFi scanning time slot. In the first WiFi scanning time slot, the terminal device scans channels 40, 44, and 48, and each channel scan takes 50ms. The terminal device first switches from the main channel to channel 40 and scans channel 40; then switches from channel 40 to channel 44 and scans channel 44; then switches from channel 44 to channel 48 and scans channel 48. Assuming that the scanning time of the main channel is 120ms and the channel switching time is 10ms, it can be determined that the first scanning time slot is 180ms, that is, a typical channel scanning time is 180ms.
[0132] After scanning channel 48, the terminal device switches from channel 48 to the main channel, enters the second WiFi service working time slot, and uses the main channel for screen projection service. After the terminal device works on the main channel for 120ms, it enters the second WiFi scanning time slot. In the second WiFi scanning time slot, the terminal device uses the WiFi channel to perform a DFS (Dynamic Frequency Selection) channel scan. DFS channels refer to channels that require active detection of radar signals before use. The terminal device first switches from the main channel to channel 52, then switches to channel 56, and then switches from channel 56 to channel 60, and performs DFS channel scans on channels 52, 56, and 60. Each DFS channel scan takes 120ms, so it can be obtained that the time required for a DFS channel scan is 390ms.
[0133] After scanning channel 60, the terminal device will enter the third WiFi service working time slot, switch from channel 60 to the main channel, and perform screen projection service on the main channel. After the terminal device works on the main channel for 120ms, it enters the third scanning time slot. In the third WiFi scanning time slot, the terminal device first switches from the main channel to channel 149, scans channel 149, then switches to channel 153, and then switches to channel 157 after scanning channel 153. Like the first WiFi scanning time slot, the third WiFi scanning time slot takes 180ms.
[0134] After scanning channel 147, the terminal device switches to the main channel and performs screen projection services on the main channel.
[0135] Depend on Figure 1As can be seen from (a) in the figure, WiFi background scanning needs to occupy the time slot of the WiFi channel, so that the screen projection data cannot be transmitted through the WiFi channel in time, resulting in freezes and frame drops in the screen projection service, affecting the performance of the screen projection service.
[0136] In addition, by Figure 1 It can also be seen from (a) that when the terminal device performs WiFi scanning, it needs to switch channels. Channel switching will introduce switching overhead, which will affect the real-time performance of WiFi services. Figure 1 In the time-sharing model schematic diagram shown in (b), the terminal device switches between channel A and channel B, and the switching time is T2, T2=2ms, that is, it takes 2ms to switch from channel A to channel B, or from channel B to channel A; the working time of the terminal device on channel A or channel B can be exemplified as 25ms, 50ms or 75ms.
[0137] WiFi scan types can be Figure 1 The background scan shown in (a) may also include but is not limited to WiFi scans initiated by third-party applications, setting scans, and WiFi scans triggered by users. In addition, the type of WiFi service currently running on the terminal device may be arbitrary, and the WiFi service may be a WiFi service running in the foreground or a WiFi service running in the background. The method of initiating WiFi scans and the purpose of WiFi scans are not limited here, nor are the types of WiFi services currently running on the terminal device limited.
[0138] Combine the following Figure 2 , which exemplarily introduces several triggering methods of WiFi scanning when a terminal device has an active WiFi service.
[0139] See also Figure 2 , is a schematic diagram of WiFi scanning in a multi-screen collaboration scenario provided in an embodiment of the present application, such as Figure 2 As shown in (a), the mobile phone 21 and the large screen device 22 establish a WiFi P2P connection, and the multi-screen collaboration function is realized based on the WiFi P2P connection. The process of establishing a WiFi P2P connection between the mobile phone 21 and the large screen device 22 can be referred to above, and will not be repeated here.
[0140] At this time, the mobile phone 21 displays the main interface, which includes applications such as smart life, settings 211, recorder, application store, clock, calendar, gallery and memo. Among them, the large-screen device 22 can be a laptop, a tablet or a smart screen. The multi-screen collaboration window 221 on the large-screen device 22 displays the same content as the mobile phone screen.
[0141] The user can enter the setting interface 212 by clicking the setting 211. Figure 2 As shown in (b), the mobile phone 21 displays the setting interface 212 in response to the click operation on the setting 211. The setting interface 212 includes setting items such as WLAN 213, Bluetooth, mobile network, more connections, and display and brightness. At this time, the multi-screen collaboration window 221 on the large-screen device 22 will change as the content displayed on the mobile phone 21 changes.
[0142] The user can enter the setting interface 214 by clicking on WLAN 213 in the setting interface 212. Figure 2 As shown in (c) in FIG. 1 , the mobile phone 21 displays the setting interface 214 in response to the click operation on the WLAN 213. At the same time, the multi-screen collaboration window 221 on the large-screen device 22 also displays the setting interface.
[0143] After entering the setting interface, the mobile phone 21 initiates a setting scan at a preset time, that is, uses the WiFi channel to perform a WiFi scan to obtain the surrounding WiFi hotspot information, and displays the scanned WiFi hotspot information in the available WLAN list. The WiFi hotspot information in the available WLAN list is updated through periodic setting scans.
[0144] Mobile phone 21 only integrates a single traditional WiFi chip, and the currently running WiFi service is the multi-screen collaborative service, that is, the WiFi path has been occupied by the multi-screen collaborative service. When mobile phone 21 performs setting scanning, it needs to occupy the WiFi path, so that the multi-screen collaborative data cannot be transmitted to the large-screen device 22 in time, which increases the delay of the multi-screen collaborative service and affects the performance of the multi-screen collaborative service.
[0145] In addition to the mobile phone 21 periodically triggering the setting scan, the user can actively trigger the WiFi scan. Figure 2 As shown in (d), a multi-screen collaborative service is performed between the mobile phone 21 and the large-screen device 22. The user manually pulls down the available WLAN list in the setting interface 214 of the mobile phone 21 to manually refresh the WiFi hotspot information in the available WLAN list.
[0146] Mobile phone 21 obtains the user's pull-down operation on the setting interface, responds to the pull-down operation, uses the WiFi channel to perform WiFi scanning, and refreshes the available WLAN list according to the acquired WiFi hotspot information. Manually triggered WiFi scanning will affect the performance of the currently running multi-screen collaborative service.
[0147] In some other scenarios, the mobile phone 21 is connected to the WiFi hotspot of the wireless router and is using the WiFi hotspot for gaming. At this time, the WiFi service running in the foreground of the mobile phone 21 is the gaming service. While the user is using the WiFi hotspot to play games, a third-party application running in the background triggers a WiFi scan, which occupies the WiFi path, thereby increasing the latency of the foreground gaming service and affecting the performance of the foreground gaming service.
[0148] As can be seen from the above, WiFi scanning will affect the performance of the currently running WiFi service. Exemplarily, the impact evaluation of WiFi scanning on WiFi service performance can be shown in Table 1 below.
[0149] Table 1
[0150]
[0151] The WiFi scan in Table 1 above refers to a single-channel background scan.
[0152] As can be seen from Table 1 above, WiFi scanning has an impact on web page loading services, video call services, screen projection services, and download services. For example, when the currently running WiFi service is web page loading, WiFi scanning makes web page loading 19ms slower than without WiFi scanning. That is, WiFi scanning increases the latency of the currently running web page loading service. Similarly, in the application market download scenario, video call scenario, and screen projection scenario, WiFi scanning also increases the latency of WiFi services, affecting the performance of WiFi services.
[0153] In response to the above-mentioned problem that WiFi scanning will affect the performance of the currently running WiFi service, an embodiment of the present application provides a WiFi scanning control solution based on multiple WiFi chips. The WiFi scanning control solution reduces or even eliminates the impact of WiFi scanning on the currently running WiFi service through the collaborative work of multiple WiFi chips.
[0154] In the embodiment of the present application, at least two WiFi chips are integrated in the terminal device, which can provide at least two concurrent WiFi paths. For the convenience of description, the following is an exemplary introduction of a terminal device integrated with two WiFi chips.
[0155] See also Figure 3 , is a schematic block diagram of the architecture of a terminal device with dual WiFi chips provided in an embodiment of the present application. Figure 3As shown, the terminal device includes a main chip 31, a first WiFi chip 32 connected to the main chip 31, a second WiFi chip 33 connected to the main chip 31, a first RF module 34 connected to the first WiFi chip 32, a first antenna module 35 connected to the first RF module 34, a second RF module 36 connected to the second WiFi chip 33, and a second antenna module 37 connected to the second RF module 36.
[0156] The main chip 31 is usually a system on chip (System on Chip, SOC), and the SOC usually integrates multiple modules. For example, the main chip 31 integrates multiple modules such as a processor, a memory, and various interfaces for communicating with the outside. The processor may include one or more processing units. For example, the processing on the main chip 31 may include an application processor (application processor, AP), a graphics processor (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), a digital signal processor (digital signal processor, DSP), and a baseband processor (baseband, BB), etc.
[0157] In specific applications, the WiFi chip can be partially or completely integrated on the SOC. For example, the baseband processor of the first WiFi chip 32 is integrated on the SOC, but the radio frequency part is not integrated on the SOC. Of course, the WiFi chip may not be integrated on the SOC, for example, the baseband processor and the radio frequency part of the second WiFi chip are not integrated on the SOC.
[0158] That is to say, Figure 3 It is shown that the terminal device of the embodiment of the present application includes two WiFi chips, but there is no restriction on the integration positions of the two WiFi chips. The embodiment of the present application does not restrict the integration position of the WiFi chip.
[0159] The interface module integrated on the main chip 31 may include one or more interfaces. Exemplarily, the interface module may include an inter-integrated circuit (I2C) interface, an improved inter-integrated circuit (I3C) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, and a general-purpose input / output (GPIO) interface.
[0160] The main chip 31 is used to process data and instructions. Exemplarily, after the processor on the main chip 31 obtains the WiFi scan request triggered by the upper-layer application, it can respond to the WiFi scan request to detect whether there is a WiFi service currently running. If there is a WiFi service currently running, the processor can further determine the WiFi path used by the currently running WiFi service, and further determine the WiFi path that is currently in an idle state, and then use the WiFi path that is currently in an idle state to perform WiFi scanning. In this way, the WiFi path used for WiFi scanning and the WiFi path used for WiFi services are two different paths, and the two WiFi paths can be concurrent without affecting each other, thereby reducing or even eliminating the impact of WiFi scanning on the currently running WiFi services. Among them, an idle WiFi path refers to a WiFi path without a data transceiver service, that is, when a WiFi path has no data receiving service and a data sending service, it can be considered that the WiFi path is in an idle state.
[0161] The first WiFi chip 32, the first RF module 34 and the first antenna module 35 are used to realize the reception and transmission of WiFi signals. Generally, the first RF module 34 includes but is not limited to RF circuits, RF chips, RF modules and RF components. When WiFi data is transmitted, the first RF module 34 can modulate, power amplify, filter and other operations on the baseband signal of the first WiFi chip 32 to obtain a RF signal on a specified frequency band. The first antenna module 35 can transmit the signal transmitted by the first RF module 34; when WiFi data is received, the first antenna module 35 can receive the WiFi signal transmitted by the AP device or other WiFi devices, and the first RF module 34 filters, demodulates and other operations on the signal transmitted by the first antenna module 35.
[0162] Similarly, the functions and processes of the second WiFi chip 32, the second RF module 36 and the second antenna module 37 can refer to the relevant contents of the first WiFi chip 31, which will not be repeated here.
[0163] In some embodiments, the first WiFi chip 32 is a chip that can work in the first frequency band and the second frequency band at the same time, and the second WiFi chip 33 is also a chip that can work in the first frequency band and the second frequency band at the same time. For example, the first frequency band and the second frequency band are 2.4GHz and 5GHz respectively, that is, the first WiFi chip 32 and the second WiFi chip 33 can both work in 2.4GHz and 5GHz at the same time. At this time, the first WiFi chip 32 can provide two concurrent WiFi channels, namely, a 2.4GHz WiFi channel and a 5GHz WiFi channel; the second WiFi chip 33 can provide two concurrent WiFi channels, namely, a 2.4GHz WiFi channel and a 5GHz WiFi channel. That is, the terminal device can provide four concurrent WiFi channels.
[0164] In other embodiments, one of the first WiFi chip 32 and the second WiFi chip 33 is a chip that can work in the first frequency band and the second frequency band at the same time, and the other is a chip that can work in the first frequency band or the second frequency band at the same time. In this case, the terminal device can provide three concurrent WiFi channels. For example, the first WiFi chip 32 can work in 2.4GHz and 5GHz at the same time, and the second WiFi chip 33 can work in 2.4GHz or 5GHz, and cannot work in two frequency bands at the same time. In this case, the first WiFi chip 32 can provide a 2.4GHz WiFi channel and a 5GHz WiFi channel, and the second WiFi chip 33 can provide a 2.4GHz or 5GHz WiFi channel.
[0165] In some other embodiments, the first WiFi chip 32 and the second WiFi chip 33 are both chips that can work in the first frequency band or the second frequency band at the same time, that is, both chips can only work in one frequency band. In this case, the terminal device can provide two concurrent WiFi channels. For example, the first frequency band and the second frequency band are 2.4 GHz and 5 GHz respectively, the first WiFi chip 32 can provide a 2.4 GHz or 5 GHz WiFi channel, and the second WiFi chip 33 can provide a 2.4 GHz or 5 GHz WiFi channel.
[0166] It is understandable that the first RF module 34 and the second RF module 36 may be adapted according to the types of the first WiFi chip 32 and the second WiFi chip 33. For example, when the first WiFi chip 32 supports DBDC, the first RF module 34 may include two RF front ends.
[0167] The number of antennas included in the first antenna module 35 and the second antenna module 37 may be one or more. Specifically, the antenna module may include only one WiFi-related antenna, and the WiFi-related antenna refers to an antenna used for WiFi data transmission and reception. In this case, it can be called Wi-Fi 1x1, and Wi-Fi 1x1 (or single-channel Wi-Fi) means that there is only one antenna associated with the Wi-Fi connection, that is, the electronic device can only complete data transmission and reception through a single WiFi channel.
[0168] The antenna module can also include two WiFi-related antennas. In this case, it can be called Wi-Fi 2x2 (or dual-path Wi-Fi). Compared with Wi-Fi 1x1, Wi-Fi 2x2 has an additional antenna for data transmission and reception, that is, two antennas are used to send or receive data at the same time. The coverage of Wi-Fi 2x2 is greater than that of Wi-Fi 1x1.
[0169] In a specific application, the first WiFi chip 32 can be Wi-Fi 1x1 or Wi-Fi 2x2. The second WiFi chip 33 can be Wi-Fi 1x1 or Wi-Fi 2x2. Of course, the number of antennas of the first WiFi chip 32 and the second WiFi chip 33 can be arbitrary and is not limited here.
[0170] In a specific application, the second WiFi chip may be a chip that supports both WiFi and Bluetooth functions.
[0171] It should be noted that the types of the first WiFi chip and the second WiFi chip can be selected based on factors such as cost and performance. In some embodiments, in order to increase the number of concurrent WiFi channels at a reasonable cost, a chip that can work in two frequency bands at the same time is selected as the first WiFi chip, and a chip that can work in one frequency band at the same time is selected as the second WiFi chip. For example, see Figure 4 , which is another schematic block diagram of the architecture of a terminal device with dual WiFi chips provided in an embodiment of the present application, wherein the terminal device includes a main chip 41, a first WiFi chip 42, a second WiFi chip 43, a radio frequency front-end device module 44, a duplexer 45 and an antenna 46.
[0172] At this time, the first WiFi chip 42 and the second WiFi chip 43 are both Wi-Fi 2x2. The first WiFi chip 42 and the second WiFi chip 43 can both include baseband and RF. The first WiFi chip 42 and the second WiFi chip have different levels of integration. The RF front-end device 44 of the first WiFi chip is not integrated into the chip, while the RF front-end device of the second WiFi chip is integrated into the second WiFi chip.
[0173] The first WiFi chip 42 is a chip that can work in the first frequency band and the second frequency band at the same time, and the second WiFi chip 43 is a chip that can work in the first frequency band or the second frequency band at the same time. At this time, the terminal device can provide three concurrent WiFi channels.
[0174] In-phase / Quadrature (I / Q) signals can be transmitted between the main chip 41 and the first WiFi chip 42. The bus between the main chip 41 and the second WiFi chip 43 includes but is not limited to PCIe3.0 or Secure Digital Input and Output (SDIO), UART, I3C and GPIO, etc.
[0175] It should be noted that the terminal device of the dual WiFi chip of the embodiment of the present application may include more components in addition to the main chip, WiFi chip, radio frequency module, antenna module, etc. For example, in some embodiments, the terminal device of the dual WiFi chip may also include one or more of an audio module, a speaker, a receiver, a microphone, an earphone interface, a sensor module, a button, a motor, an indicator, a camera, a display screen, and a subscriber identification module (SIM) card interface.
[0176] As can be seen from the above, the terminal device in the embodiment of the present application may include at least two WiFi chips, which can provide at least two concurrent WiFi paths.
[0177] Based on multiple concurrent WiFi channels, after the terminal device obtains the WiFi scan request for triggering WiFi scan, it can detect whether there is currently a WiFi service running. If there is a WiFi service running, it can then determine the WiFi channel used by the WiFi service. Then, after the terminal device determines the WiFi channel in the idle state, it responds to the WiFi scan request and uses the WiFi channel in the idle state to perform WiFi scan. In this way, WiFi scan and WiFi service use different WiFi channels, and WiFi scan will not occupy the time slot of WiFi service, thereby reducing or even eliminating the impact of WiFi scan on the currently running WiFi service.
[0178] For example, see Figure 5 The time slot diagram of the WiFi channel is shown as follows: Figure 5As shown in the figure, under the single WiFi chip solution, the terminal device has only one WiFi channel, which is responsible for both the scanning time slot and the service time slot. The scanning time slot and the service time slot cannot be concurrent but can only be performed alternately. In the service time slot and the scanning time slot, the WiFi channel will send (transport, TX) and receive (receive, RX) data.
[0179] In the dual WiFi chip solution, the terminal device includes a first WiFi channel and a second WiFi channel, and the first WiFi channel and the second WiFi channel can be concurrent. When the first WiFi channel is in a service time slot or a scanning time slot, the second WiFi channel can be in a scanning time slot or a service time slot. In other words, while the terminal device uses the first WiFi channel for WiFi services, it can use the second WiFi channel for WiFi scanning. Since the service time slot and the scanning time slot are in two different WiFi channels, WiFi scanning has zero impact on WiFi services.
[0180] Of course, when the first WiFi channel is in the service time slot, the second WiFi channel can also be in the service time slot, that is, the concurrency of two WiFi services is achieved through the first WiFi channel and the second WiFi channel, and the two WiFi services do not affect each other.
[0181] If the terminal device does not have a running WiFi service, the default WiFi path can be used for WiFi scanning. The default WiFi path is pre-set, and the default WiFi path is one of multiple WiFi paths. For example, the terminal device integrates two WiFi chips, namely the first WiFi chip and the second WiFi chip. The first WiFi chip can concurrently connect to two WiFi paths, and the second WiFi chip can simultaneously work on one WiFi path, that is, the two WiFi chips can concurrently connect to three WiFi paths in total. At this time, the WiFi path of the first WiFi chip can be set as the default WiFi path, and the WiFi path of the second WiFi chip can also be set as the default WiFi path.
[0182] Combine the following Figure 6 The schematic flow chart of the WiFi scanning control method shown in FIG. 1 is used to exemplarily introduce the WiFi scanning control process under the dual WiFi chip solution. Figure 6 As shown, the process may include the following steps:
[0183] Step S601: The terminal device performs system initialization and turns on WiFi.
[0184] It should be noted that when the terminal device turns on WiFi, if the second WiFi chip is not needed at present, the first WiFi chip can be powered on first and the first WiFi chip is used by default to work. In other words, the second WiFi chip is powered on on demand.
[0185] Of course, when WiFi is turned on, the terminal device can also power on the first WiFi chip and the second WiFi chip at the same time, and use the first WiFi chip to work by default.
[0186] Step S602: The terminal device is performing the first WiFi service.
[0187] It should be noted that the above-mentioned first WiFi service refers to the WiFi service currently running on the terminal device, which can be a foreground service or a background service. In addition, the first WiFi service can include one or more WiFi services, that is, the WiFi service currently running on the terminal device can be one or more. For example, a mobile phone is using the 2.4GHz WiFi channel of the first WiFi chip to connect to the AP device for Internet access, and using the 5GHz WiFi channel of the first WiFi chip for screen projection. At this time, the first WiFi service includes Internet access and screen projection.
[0188] Step S603: The terminal device obtains a WiFi scan request.
[0189] It should be noted that the above-mentioned WiFi scan request can be triggered by the user. For example, in the screen projection scenario, the user manually clicks the screen projection control to search for surrounding WiFi devices. At this time, after the mobile phone obtains the user's click operation on the screen projection control, the screen projection application will trigger the WiFi scan and generate a WiFi scan request; it can also be triggered autonomously by the application. For example, the foreground WiFi service of the terminal device is a game service, and the background application autonomously triggers the WiFi scan and performs background scanning. Background scanning refers to WiFi scanning initiated by non-foreground applications. The triggering method of WiFi scanning is not limited here.
[0190] Step S604: The terminal device determines a WiFi channel that is in an idle state.
[0191] It is understandable that the terminal device can determine whether the WiFi channel is in an idle state by judging whether the WiFi channel has data transmission or reception. When the WiFi channel has data transmission or reception, the terminal device can determine that the WiFi channel is in a busy state, that is, the WiFi channel is performing WiFi services; when the WiFi channel has no data transmission or reception, the terminal device can determine that the WiFi channel is in an idle state.
[0192] Step S605: The terminal device responds to the WiFi scan request and uses the WiFi path in the idle state to perform WiFi scan.
[0193] In the embodiment of the present application, the terminal device can provide at least two WiFi paths, so there can be one or more WiFi paths in the idle state.
[0194] The terminal device may use one or more idle WiFi paths to perform WiFi scanning. In other words, when there is only one idle WiFi path, the idle WiFi path is used to perform WiFi scanning. When there are at least two idle WiFi paths, one WiFi path may be selected from multiple idle WiFi paths for WiFi scanning, or multiple WiFi paths may be selected for scanning.
[0195] In a specific application, after determining the idle WiFi path, the terminal device can select a path for WiFi scanning from the idle WiFi path, that is, determine the first target path from the idle second WiFi path, and the idle WiFi path can include the first target path, or can be equivalent to the first target path. For example, if there is only one idle WiFi path, then this idle WiFi path can be used as the first target path, and at this time, the first target path is equivalent to the idle WiFi path. For another example, the idle WiFi path includes multiple WiFi paths, and the multiple WiFi paths include the first target path.
[0196] For example, a mobile phone with dual WiFi chips can concurrently have three WiFi channels, namely, the 2.4 GHz and 5 GHz WiFi channels of the first WiFi chip, and the 2.4 GHz or 5 GHz WiFi channel of the second WiFi chip.
[0197] At a certain moment, the mobile phone uses the 2.4GHz WiFi channel of the first WiFi chip to connect to the AP device for Internet access, and uses the 5GHz WiFi channel of the first WiFi chip for screen projection, that is, the WiFi channels of the first WiFi chip of the mobile phone are all busy. At this time, when the background application of the mobile phone triggers the WiFi background scan, the mobile phone determines that the WiFi channel of the second WiFi chip is in an idle state, and then uses the 2.4GHz or 5GHz WiFi channel of the second WiFi chip for WiFi scanning. Here, the second WiFi chip cannot simultaneously use WiFi channels of two frequency bands, so the mobile phone can first use the WiFi channel of one of the frequency bands for WiFi scanning, and then use the WiFi channel of another frequency band for WiFi scanning to obtain WiFi scanning results for the entire frequency band. For example, the mobile phone can first use the 5GHz WiFi channel for WiFi scanning, and then use the 2.4GHz WiFi channel for WiFi scanning.
[0198] For another example, a mobile phone with dual WiFi chips can concurrently have four WiFi channels, namely, the 2.4 GHz and 5 GHz WiFi channels of the first WiFi chip, and the 2.4 GHz and 5 GHz WiFi channels of the second WiFi chip.
[0199] At a certain moment, the mobile phone uses the 2.4GHz WiFi channel of the first WiFi chip to connect to the AP device for Internet access, and uses the 5GHz WiFi channel of the second WiFi chip for screen projection.
[0200] At this time, when the background application of the mobile phone triggers the WiFi background scan, the mobile phone determines that the WiFi channels in the idle state include: the 5GHz WiFi channel of the first WiFi chip and the 2.4GHz WiFi channel of the second WiFi chip. The mobile phone can use the 5GHz WiFi channel of the first WiFi chip and the 2.4GHz WiFi channel of the second WiFi chip to perform WiFi scanning at the same time to obtain the scanning results of the full frequency band. Of course, the mobile phone can only select one of the WiFi channels for WiFi scanning, for example, use the 5GHz WiFi channel of the first WiFi chip for WiFi scanning.
[0201] At another time, the mobile phone uses the 2.4 GHz WiFi channel of the first WiFi chip to connect to the AP device to perform Internet access services, that is, the first WiFi service is an Internet access service. At this time, the WiFi channels in the idle state include: the 5 GHz WiFi channel of the first WiFi chip, and the 2.4 GHz and 5 GHz WiFi channels of the second WiFi chip.
[0202] After receiving the WiFi scan request, the mobile phone can select any idle WiFi channel to perform WiFi scan; it can also select two frequency band WiFi channels to perform WiFi scan. For example, the mobile phone selects the 5GHz WiFi channel of the first WiFi chip and the 2.4GHz WiFi channel of the second WiFi chip to perform WiFi scan to obtain the WiFi scan results of the full frequency band. Of course, the mobile phone can also select the 2.4GHz and 5GHz WiFi channels of the second WiFi chip to perform WiFi scan to obtain the WiFi scan results of the full frequency band.
[0203] That is to say, if multiple WiFi channels in idle state include WiFi channels of different frequency bands, the terminal device can select a WiFi channel in each frequency band, and then use the WiFi channels of different frequency bands to perform WiFi scanning to obtain the scanning results of the entire frequency band. For example, if the WiFi channels in idle state include two 2.4GHz WiFi channels and one 5GHz WiFi channel, then select a 2.4GHz WiFi channel and a 5GHz WiFi channel, and then use the selected two WiFi channels of different frequency bands to perform WiFi scanning. The two selected WiFi channels of different frequency bands can belong to the same WiFi chip, or they can belong to two different WiFi chips.
[0204] In some embodiments, the WiFi path in the idle state may have only one or only one frequency band. For example, at a certain moment, the WiFi path in the idle state may have only the 2.4GHz WiFi path of the first WiFi chip. At this time, in order to obtain the scanning results of the full frequency band, the terminal device may further detect the type of WiFi service running on the WiFi path of the target frequency band after determining that only one WiFi path is in the idle state at the current moment, or only one WiFi path of the frequency band is in the idle state. If the WiFi service type on the WiFi path of the target frequency band includes the target service type, the terminal device can use the WiFi path that is currently in the idle state and the WiFi path corresponding to the target service type to perform WiFi scanning to obtain the scanning results of the full frequency band.
[0205] Among them, the above-mentioned target frequency band refers to the frequency band other than the frequency band corresponding to the idle WiFi channel. For example, if the WiFi channel currently in an idle state is a 2.4 GHz channel, that is, the frequency band corresponding to the idle WiFi channel is 2.4 GHz, then the target frequency band is 5 GHz.
[0206] The above target service type can be set as needed. In some embodiments, the target service type may include non-low-latency services, such as traditional WiFi services.
[0207] For example, the terminal device can concurrently transmit three WiFi channels, among which the first WiFi chip can concurrently transmit two WiFi channels of different frequency bands, and the second WiFi chip can work on one WiFi channel at the same time. At a certain moment, the terminal device is using the 5GHz WiFi channel of the first WiFi chip for Internet access services, and using the 5GHz WiFi channel of the second WiFi chip for screen projection services. At this time, after the terminal device obtains the WiFi scan request, it determines that the only WiFi channel in the idle state is the 2.4GHz channel of the first WiFi chip, and then further determines the WiFi service type on the 5GHz WiFi channel. At this time, the service types on the 5GHz WiFi channel include screen projection services and Internet access services. The screen projection service belongs to a low-latency service, and the Internet access service belongs to a non-low-latency service. It can be determined that the WiFi channel corresponding to the target service type (i.e., the Internet access service) is the 5GHz channel of the first WiFi chip. Then, the terminal device uses the 2.4GHz channel and the 5GHz channel of the first WiFi chip to perform WiFi scanning to obtain scanning results for the entire frequency band.
[0208] It is understandable that using the 5 GHz channel of the first WiFi chip for WiFi scanning will affect the performance of Internet access services.
[0209] It should be noted that if the WiFi service type currently running on the WiFi channel of the target frequency band does not include the target service type, the WiFi scan can be suspended, or only the WiFi channel in the idle state can be used for scanning. For example, the terminal device is using the 5GHz WiFi channel of the first WiFi chip for screen projection service, and the 5GHz WiFi channel of the second WiFi chip for screen projection service, and only the 2.4GHz channel of the first WiFi chip is idle. At this time, the 5GHz WiFi channels are all low-latency services, and there is no target service type, so you can not respond to the WiFi scan request, or only use the 2.4GHz channel of the first WiFi chip for scanning.
[0210] It should be noted that some WiFi scan requests do not require full-band scanning, and only specific frequency bands and specific channels can be scanned. In response to this situation, after the terminal device obtains the WiFi scan request, it can determine the frequency band that needs to be scanned based on the information carried in the WiFi scan request, and then determine whether there is a channel of the frequency band that needs to be scanned in the WiFi channel that is currently in an idle state. If so, use the corresponding idle WiFi channel for WiFi scanning. For example, a WiFi scan request indicates that the 5GHz frequency band needs to be scanned. After the terminal device obtains the WiFi scan request, it determines that the WiFi channel that is currently in an idle state includes the 5GHz channel of the second WiFi chip and the 2.4GHz channel of the first WiFi channel. Since there is an idle WiFi channel of 5GHz at this time, the 5GHz channel of the second WiFi chip is used for WiFi scanning.
[0211] It can be seen that the embodiment of the present application is based on a dual-WiFi terminal device, which provides at least two concurrent WiFi paths and uses an idle WiFi path for WiFi scanning, thereby avoiding the WiFi scanning occupying the time slot of the WiFi path corresponding to the first WiFi service, thereby reducing or even avoiding the WiFi scanning affecting the performance of the currently running WiFi service.
[0212] In addition, compared to the solution of limiting the occurrence of WiFi scanning to solve the impact of WiFi scanning on the currently running WiFi service, that is, in order to avoid WiFi scanning affecting the performance of the running WiFi service, the commonly used solution is to limit the occurrence of WiFi scanning or limit the probability of WiFi scanning, that is, when the WiFi service is running in the foreground, or when the low-latency WiFi service is running in the foreground, the background application is not allowed to perform WiFi scanning. The embodiment of the present application uses the WiFi path in the idle state to perform WiFi scanning, which can not only solve the impact of WiFi scanning on the currently running WiFi service, but also ensure the normal operation of the WiFi scanning service.
[0213] In particular, if the currently running WiFi service is a latency-sensitive service, such as screen projection service and multi-screen collaboration service, the impact of WiFi scanning on WiFi services is particularly obvious. However, the embodiment of the present application uses an idle WiFi channel to perform WiFi scanning, so that the impact of WiFi scanning on latency-sensitive services is minimized.
[0214] by Figure 2For example, mobile phone 21 includes a first WiFi chip and a second WiFi chip, and mobile phone 21 can provide at least three concurrent WiFi channels. At this time, mobile phone 21 is connected via WiFi P2P to perform multi-screen collaborative services with large-screen device 22. That is, the WiFi service currently running on mobile phone 21 is a multi-screen collaborative service. When mobile phone 21 enters setting interface 214, mobile phone 21 initiates a setting scan. After obtaining the setting scan, mobile phone 21 first detects whether there is data transmission and reception on the first WiFi channel. At this time, since mobile phone 21 uses the 5G frequency band channel of the first WiFi chip for multi-screen collaborative services, there is data transmission and reception on the first WiFi channel. Mobile phone 21 uses the channel of the second WiFi chip for setting scan.
[0215] In some embodiments, after obtaining a WiFi scan request, the terminal device may first determine whether the WiFi scan request is legal. If it is illegal, WiFi scanning is not allowed. If it is legal, WiFi scanning may be performed using an idle WiFi channel.
[0216] If the WiFi scan is initiated by an unauthorized application or the WiFi scan request is unauthorized, the WiFi scan request can be determined to be illegal. On the contrary, if the WiFi scan request is authorized or initiated by an authorized application, the WiFi scan request can be determined to be legal.
[0217] By detecting whether the WiFi scan request is legitimate, malicious third-party applications can be prevented from initiating WiFi scans to obtain user privacy data.
[0218] In some embodiments, the terminal device may first further detect whether the currently running WiFi service is a foreground service, that is, determine whether the currently running WiFi service is a WiFi service of the foreground application. If it is a foreground WiFi service, use the WiFi path in the idle state to perform WiFi scanning; otherwise, if it is not a foreground WiFi service, use the default WiFi path to perform WiFi scanning.
[0219] Generally speaking, the performance of the foreground WiFi service directly affects the user experience. For example, if the foreground WiFi service is a screen projection service, when the screen projection is stuck or the frame drops are serious, it will affect the user experience. In addition, the use of dual WiFi chips in terminal devices will increase the power consumption of the device and reduce the standby time of the device. Based on this, when the current WiFi service is the foreground application service, the idle WiFi channel is used for scanning to balance the user experience and device power consumption.
[0220] In some embodiments, the terminal device may further determine whether the application of the currently running WiFi service belongs to the target application set. If it belongs to the target application set, the WiFi scan is performed using the WiFi path in the idle state; if it does not belong to the target application set, the WiFi scan is performed using the default WiFi path, which may be the path of the currently running WiFi service.
[0221] Among them, the target application set may include one or more application programs. For example, the target application set includes screen projection applications. That is, if the application of the currently ongoing WiFi service is a screen projection application, then the application is determined to belong to the target application set. The target application set can be set autonomously by the terminal device. Normally, the terminal device can add applications for delay-sensitive services (such as screen projection applications) to the target application set by default; it can also be set by the user. For example, the user can add call applications (such as Changlian calls) to the target application set. In this way, when the terminal device is using WiFi for video calls, the WiFi channel in idle state is used for WiFi scanning to avoid call freezes caused by WiFi scanning and affect the user experience.
[0222] In some embodiments, after the terminal device determines to use an idle WiFi channel for WiFi scanning, if the WiFi channel used by the first WiFi service and the WiFi channel used for WiFi scanning belong to different WiFi chips, a communication interface may exist between the first WiFi chip and the second WiFi chip. Through the communication interface, the first WiFi chip may transmit the working status information of the WiFi channel used by the first WiFi service to the second WiFi chip.
[0223] The working status information of the WiFi path used by the first WiFi service includes, but is not limited to, information such as the frequency, frequency band, bandwidth, and channel of the WiFi path.
[0224] When the second WiFi chip uses the WiFi path in the idle state to scan, it can control the power, channel and frequency band of the WiFi scan according to the working state information of the WiFi path used by the first WiFi service to avoid the WiFi scan from affecting the first WiFi service. For example, the WiFi path used by the first WiFi service of the first WiFi chip is channel 36 working in the 5G frequency band, and when the second WiFi chip scans, it reduces the scanning power in the channels near channel 36 in the 5G frequency band.
[0225] It is understandable that the dual WiFi chip terminal provided in the embodiment of the present application can provide at least two concurrent WiFi paths, so the terminal device may only have one running WiFi service, or may have multiple running WiFi services at the same time.
[0226] When there are multiple WiFi services running and each WiFi service occupies a WiFi channel, after the terminal device obtains the WiFi scan request, it can first determine the WiFi channel that is not currently occupied, that is, in an idle state, and then determine the WiFi channel used for WiFi scanning from the WiFi channels in the idle state, and finally use the determined WiFi channel to perform WiFi scanning, thereby avoiding WiFi scanning affecting the performance of the currently running WiFi service.
[0227] In the embodiment of the present application, at least two concurrent WiFi paths are provided through a terminal device based on a dual WiFi chip to solve the impact of WiFi scanning on the running WiFi services and optimize the WiFi service performance.
[0228] Exemplarily, the optimized WiFi service may be as shown in Table 2 below.
[0229] Table 2
[0230]
[0231] Among them, "×" in Table 2 means that the chip is not used, and "√" means that the chip is used.
[0232] The following is an exemplary description of each business category in Table 2.
[0233] (1) Interference detection and background scanning: For interference detection and background scanning, if the first WiFi chip of the terminal device has a WiFi service running, the first WiFi chip is not used for WiFi scanning, but the second WiFi chip is used for WiFi scanning.
[0234] For example, see Figure 7 (a) shows a schematic diagram of an interference detection scenario, as shown in FIG. Figure 7As shown in (a), the large-screen device 71 and the mobile phone 72 have established a WiFi P2P connection, and the mobile phone 72 projects the video 1 to the large-screen device 71 through the WiFi P2P connection. In specific applications, the user can project the video 1 to the large-screen device 71 by selecting the large-screen device in the living room on the video playback interface 721 of the mobile phone 72. At this time, the WiFi service running on the mobile phone 72 is the screen projection service, and the WiFi path used by the screen projection service is the 5G frequency band path of the first WiFi chip. The mobile phone 72 includes a first WiFi chip and a second WiFi chip, which can provide three concurrent WiFi paths. In addition, the mobile phone 72 is also connected to a wireless router.
[0235] After the mobile phone 72 projects the video 1 to the large-screen device 71, the user also needs to trigger WiFi interference detection. The process of the user triggering WiFi interference detection includes: after the screen is successfully projected, the user returns from the video playback interface 721 to the main interface 722 of the mobile phone 72 through the return operation, and the main interface 722 includes applications such as smart life 723, settings, application store, and videos; then, the user clicks on smart life 723, and the mobile phone 72 responds to the click operation on smart life 723 and displays the interface 724 of smart life. The interface 724 displays windows of devices such as Huawei routers, Huawei headphones, Huawei watches, and Huawei tablets, and each window displays the connection status of each device. At this time, since mobile phone 72 is connected to the Huawei router, it is displayed as connected in window 725 of the Huawei router; then, the user clicks on window 725, and mobile phone 72 responds to the click operation on window 725 and displays interface 726 of the Huawei router, in which a WiFi interference detection button 727 is displayed; the user clicks on WiFi interference detection button 727, and mobile phone 72 responds to the click operation on WiFi interference detection button 727 and initiates WiFi interference detection.
[0236] It can be understood that during the user operation, the screen projection service between the mobile phone 72 and the large-screen device 71 is not interrupted.
[0237] After the smart life of the mobile phone 72 obtains the click operation on the WiFi interference detection button 727, it initiates a WiFi scan request to the main chip of the mobile phone 72 to call the WiFi chip to perform WiFi scanning. After the mobile phone 72 obtains the WiFi scan request, it can first detect whether there is data transmission and reception on the first WiFi channel. Since the 5GHz channel of the first WiFi chip is being used for screen projection between the mobile phone 72 and the large-screen device 71 at this time, there will be data transmission and reception on the first WiFi channel.
[0238] After the mobile phone 72 determines that data is being sent and received on the first WiFi channel, it uses the WiFi channel of the second WiFi chip to perform low-power WiFi interference detection scanning. Through WiFi interference detection, the mobile phone 72 can know the quality of the channel between the mobile phone 72 and the wireless router.
[0239] For another example, a mobile phone includes a first WiFi chip and a second WiFi chip, which can provide at least three concurrent WiFi channels. At this time, the mobile phone has been connected to the WiFi network of the wireless router, and the user is using the WiFi network to play games. That is, the WiFi service currently running on the mobile phone is the game service, and the channel of the first WiFi chip is being used for the game service. At a certain moment, the background application triggers a WiFi scan to perform a background scan.
[0240] After the mobile phone obtains the WiFi scan, it detects that data is being sent and received on the first WiFi channel, and then uses the WiFi channel of the second WiFi chip to perform low-power background scanning.
[0241] For example, see Figure 7 (b) shows a schematic block diagram of the WiFi scanning process, and the WiFi scanning process may include the following steps:
[0242] Step S701: The terminal device performs system initialization and turns on WiFi.
[0243] Step S702: The terminal device obtains a WiFi scan request.
[0244] Step S703: The terminal device detects whether data is sent and / or received on the first WiFi channel. The first WiFi channel is the channel of the first WiFi chip. If yes, proceed to step S704; if no, proceed to step S705.
[0245] It is understandable that when the first WiFi channel has data transmission, data reception, or both data transmission and data reception, it indicates that the terminal device is using the first WiFi channel for WiFi service or WiFi scanning. At this time, in order to prevent the WiFi scanning from affecting the ongoing service of the first WiFi channel, the second WiFi channel is used for WiFi scanning.
[0246] Step S704: The terminal device uses the second WiFi path to perform WiFi scanning.
[0247] It should be noted that the second WiFi channel usually refers to a WiFi channel in an idle state, that is, usually a WiFi channel in an idle state is used to perform WiFi scanning to avoid affecting the ongoing services of the WiFi channel.
[0248] In some embodiments, the second WiFi path is a WiFi path of a second WiFi chip, that is, the first WiFi path and the second WiFi path usually belong to different WiFi chips. In this case, even if the first WiFi chip has an idle WiFi path, the path of the second WiFi chip is still used for scanning.
[0249] For example, when a terminal device with dual WiFi chips can provide three concurrent WiFi channels, the first WiFi chip can provide two concurrent WiFi channels, namely: a channel in the 2.4G frequency band and a channel in the 5G frequency band. The second WiFi chip can provide one concurrent WiFi channel, which is a 2.4GHz or 5GHz channel.
[0250] At a certain moment, the 5G frequency band channel of the first WiFi chip has data transmission and reception, the 2.4G frequency band channel of the first WiFi chip has no data transmission and reception, and the WiFi channel of the second WiFi chip has no data transmission and reception. In other words, the WiFi channels in the idle state include the 2.4G frequency band channel of the first WiFi chip and the channel of the second WiFi chip. At this time, the channel of the second WiFi chip is selected as the second WiFi channel, that is, the channel of the second WiFi chip is used for WiFi scanning.
[0251] In some other embodiments, when the first WiFi chip has an idle WiFi path, the WiFi path of the first WiFi chip may also be used to perform WiFi scanning.
[0252] For example, when a terminal device with dual WiFi chips can provide three concurrent WiFi channels, the first WiFi chip can provide two concurrent WiFi channels. At a certain moment, the 5G frequency band channel of the first WiFi chip has data transmission and reception, the 2.4G frequency band channel of the first WiFi chip has no data transmission and reception, and the WiFi channel of the second WiFi chip has no data transmission and reception. After obtaining the WiFi scan request, the terminal device can use the 2.4G frequency band channel of the first WiFi chip to perform WiFi scanning.
[0253] In specific applications, when a terminal device with dual WiFi chips can provide two concurrent WiFi channels, the first WiFi channel is a 2.4G frequency band channel of the first WiFi chip, or a 5G frequency band channel, and the second WiFi channel is a 2.4G frequency band channel of the second WiFi chip, or a 5G frequency band channel.
[0254] That is, when the channel of the first WiFi chip has data to be sent or received, the WiFi channel in the idle state is the channel of the second WiFi chip, and the channel of the second WiFi chip is used for WiFi scanning.
[0255] When a terminal device with dual WiFi chips can provide three concurrent WiFi paths, it is assumed that the first WiFi chip can provide two concurrent WiFi paths, namely: a path in the 2.4G frequency band and a path in the 5G frequency band, and the second WiFi chip can provide one concurrent WiFi path, which is a 2.4GHz or 5GHz path. In this case, the first WiFi path may include the path in the 2.4G frequency band and / or the path in the 5G frequency band of the first WiFi chip, and the second WiFi path is the path of the second WiFi chip.
[0256] That is to say, when the 2.4G frequency band channel of the first WiFi chip has data transmission and reception, or the 5G frequency band channel has data transmission and reception, or both the 2.4G frequency band and the 5G frequency band channels have data transmission and reception, the channel of the second WiFi chip is used for WiFi scanning.
[0257] When the terminal device with dual WiFi chips can provide four concurrent WiFi channels, the first WiFi chip and the second WiFi chip can each provide two concurrent channels, namely: a channel in the 2.4G frequency band and a channel in the 5G frequency band. In this case, the first WiFi channel can include the channel in the 2.4G frequency band and / or the channel in the 5G frequency band of the first WiFi chip.
[0258] That is to say, when the 2.4G frequency band channel of the first WiFi chip has data transmission and reception, or the 5G frequency band channel has data transmission and reception, or both the 2.4G frequency band and the 5G frequency band channels have data transmission and reception, the channel of the second WiFi chip is used for WiFi scanning. At this time, the channel of the second WiFi chip can be a 2.4G frequency band channel, a 5G frequency band channel, or both a 2.4G frequency band channel and a 5G frequency band channel.
[0259] Step S705: The terminal device uses the first WiFi channel to perform WiFi scanning.
[0260] in, Figure 7 The WiFi scan type in can be WiFi background scan.
[0261] As can be seen from the above, in scenarios such as interference detection and background scanning, when a terminal device has a running WiFi service, the second WiFi channel in an idle state is used to perform WiFi scanning to avoid the impact of WiFi scanning on WiFi services.
[0262] (2) Proximity discovery or WiFi-based bump: If the first WiFi chip of the terminal device has a running WiFi service, the first WiFi chip is not used for WiFi scanning, but the second WiFi chip is used for WiFi scanning.
[0263] For example, see Figure 8 The schematic block diagram of the process of approaching the discovery scenario is shown, and the process may include the following steps:
[0264] Step S801: The terminal device uses the path of the first WiFi chip to perform a first WiFi service.
[0265] It should be noted that the first WiFi service can be any type of service. For example, the first WiFi service can be a traditional WiFi service or a screen projection service.
[0266] Step S802: The terminal device obtains a WiFi scan request.
[0267] The WiFi scan request may be triggered by an upper-layer application and is used to discover specific IoT devices in the surrounding area.
[0268] Step S803: If the terminal device detects that data is being sent or received on the first WiFi channel, the second WiFi channel is used to perform WiFi scanning.
[0269] It should be noted that the first WiFi path is a path of the first WiFi chip, the second WiFi path is a path of the second WiFi chip, and the second WiFi path is a path in an idle state.
[0270] Step S804: The terminal device obtains a scan result. The scan result may include at least one of the following: SSID, BSSID, and signal receiving power (Power, PWR). PWR may represent signal strength.
[0271] It should be noted that the WiFi module of the unconnected IoT device works in AP mode. At this time, the IoT device will broadcast messages to the outside. The terminal device obtains the messages sent by the IoT device through WiFi scanning.
[0272] Step S805: The terminal device performs device identification based on the WiFi scanning result.
[0273] Step S806: The terminal device measures the distance between itself and the IoT device through WiFi scanning.
[0274] Specifically, the terminal device identifies the IoT device according to the WiFi result. After identifying the IoT device, the terminal device can use the second WiFi path to perform periodic WiFi scanning to measure the distance between the terminal device and the IoT device.
[0275] In some embodiments, during the distance measurement scanning process, the terminal device can adjust the scanning frequency according to the distance. When the distance between the terminal device and the IoT device is less than a certain threshold, the WiFi scanning frequency is increased to improve the distance calculation accuracy.
[0276] For example, see Fig. 9 A schematic diagram of a scenario of dynamically adjusting the WiFi scanning frequency is shown, and Fig.10 The schematic block diagram of the ranging scanning process is shown.
[0277] like Fig. 9 As shown, the terminal device is a mobile phone 91, and the IoT device is a soybean milk machine 92. The soybean milk machine without network connection works in AP mode. After the mobile phone 91 identifies the soybean milk machine based on the WiFi scanning result of the second WiFi channel, it enters the distance measurement scan. Fig.10 As shown, during the ranging scanning process, the mobile phone 91 periodically uses the second WiFi channel to perform WiFi scanning, and calculates the distance R1 between the mobile phone 91 and the soybean milk maker 92 based on each WiFi scanning result. At this time, the WiFi scanning frequency of the mobile phone 91 is the first scanning frequency.
[0278] During the ranging scanning process, the mobile phone 91 will gradually approach the soybean milk maker 92, and the distance R1 between the mobile phone 91 and the soybean milk maker 92 will gradually decrease. When the distance R1 is greater than 50 cm, the mobile phone 91 still performs periodic scanning according to the first scanning frequency, that is, the scanning frequency remains unchanged, and WiFi scanning is still performed according to a fixed period.
[0279] When the distance R1 is greater than 30cm and less than or equal to 50cm, the mobile phone 91 performs periodic WiFi scanning at the second scanning frequency, and the second scanning frequency is greater than the first scanning frequency. At this time, when the mobile phone 91 determines that the distance R1 is greater than 30cm and less than or equal to 50cm, it immediately performs a WiFi scan to obtain the WiFi scanning result, and calculates the distance R2 based on the WiFi scanning result, and triggers periodic WiFi scanning according to the second scanning frequency. In other words, when the distance R1 is greater than 30cm and less than or equal to 50cm, the mobile phone 91 no longer performs WiFi scanning according to the original fixed period, but increases the WiFi scanning frequency, and performs WiFi scanning at the increased WiFi scanning frequency. When R1 is less than or equal to 30cm, it is reported. Reporting means that the underlying service reports information such as SSID and BSSID obtained from the WiFi scan to the connection service.
[0280] When the distance R2 is greater than 30cm and less than or equal to 50cm, the mobile phone 91 can return to the step of periodically scanning according to the second scanning frequency, and determine whether to perform WiFi scanning at the current moment according to the second scanning frequency; when R2 is less than or equal to 30cm, it will be reported; when R2 is greater than 50cm, the mobile phone 91 still performs WiFi scanning according to the first scanning frequency. Among them, WiFi scanning is performed using the second WiFi channel in the idle state. At this time, the preset threshold is 30cm, that is, when the distance between the mobile phone 91 and the soymilk maker 92 is less than 30cm, the connection service in the mobile phone 91 obtains the SSID and BSSID information of the soymilk maker 92 reported by the bottom layer, and establishes a WiFi connection with the soymilk maker 92.
[0281] It should be noted that after the mobile phone 91 identifies the soymilk maker 92, it performs WiFi scanning at the first scanning frequency, and before identifying the soymilk maker 92, it can scan according to the WiFi scanning frequency in normal scenarios, and the WiFi scanning frequency in normal scenarios can be lower than the first scanning frequency.
[0282] In addition, after the mobile phone 91 identifies the soymilk maker 92 according to the WiFi scanning results, it can scan at the first scanning frequency and calculate the distance between the mobile phone 91 and the soymilk maker 92 based on the results of the WiFi scanning. If the distance at this time is less than or equal to 30 cm, it can be reported directly.
[0283] Step S807: When the distance is less than or equal to a preset threshold, the terminal device establishes a connection with the IoT device.
[0284] In specific applications, after the terminal device establishes a WiFi connection with the IoT device, the locally stored WiFi network information can be sent to the IoT device, so that the IoT device can connect to the corresponding WiFi network based on the WiFi network information, thereby enabling the terminal device to configure the network for the IoT device through proximity discovery.
[0285] For example, see Fig.11 The schematic diagram of the distribution network close to the discovery scene is shown in Fig.11 As shown, the mobile phone 112 is connected to the wireless router 111, and the mobile phone 112 is using the wireless router 111 to perform a first WiFi service. The first WiFi service is arbitrary, for example, the first WiFi service is a news service, a shopping service, or a social service in a traditional WiFi service. Assume that the mobile phone 112 is using a WiFi network and playing online music in the background.
[0286] based on Fig. 9 and Fig.10, the mobile phone 112 gradually approaches the soymilk machine. When the distance between the mobile phone 112 and the soymilk machine is less than the preset distance of 30 cm, the bottom layer service of the mobile phone 112 reports the SSID and BSSID of the soymilk machine and other related information to the connection service. The connection service of the mobile phone 112 triggers the connection action according to the relevant information of the soymilk machine, and pops up the window 113. The window 113 displays the picture and name of the soymilk machine and other related information. If the user needs to configure the network for the soymilk machine, the user can click the connection option in the window 113. The mobile phone 112 responds to the click operation on the connection option in the window 113 and displays the window 114. The window 114 displays the network setting information, etc., and the network setting information is usually the WiFi network information of the wireless router 111. If the user wants the soybean milk machine to connect to the wireless router 111, the user can click the connection option in the window 114. In response to the click operation on the connection option in the window 114, the mobile phone 112 displays a window 115, which displays the network configuration progress and corresponding prompt words, and the mobile phone 112 sends the network setting information to the soybean milk machine through the established WiFi connection. Then, the mobile phone 112 will display corresponding prompt information in the window according to the network configuration progress of the soybean milk machine, for example, the mobile phone 112 displays a window 116 to prompt the user that the soybean milk machine is connecting to the network.
[0287] After the soymilk machine receives the network setting information sent by the mobile phone 112, it actively connects to the WiFi network of the wireless router 11 according to the network setting information. After the soymilk machine is connected to the wireless router, the WiFi module of the soymilk machine will switch to STA mode.
[0288] As can be seen from the above, in the proximity discovery scenario, if the terminal device has a first WiFi service, the second WiFi channel in an idle state is used to perform proximity discovery scanning to avoid the proximity discovery scanning affecting the performance of the first WiFi service.
[0289] It should be noted that the proximity discovery scenario described above is described by taking the proximity discovery triggering connection action as an example. In other embodiments, proximity discovery may also trigger other actions, which are not limited to the actions triggered by proximity discovery.
[0290] The implementation principle of WiFi-based bump is similar to that of proximity discovery. Both are based on WiFi scanning results to obtain information such as WiFi signal strength, and then calculate the distance between the two devices based on information such as WiFi signal strength. When the distance between the two devices is less than or equal to the preset threshold, the corresponding action is triggered.
[0291] In a WiFi-based bump scenario, if the terminal device has a first WiFi service, it uses a second WiFi channel in an idle state to perform a WiFi scan, obtain a WiFi scan result, and calculate the distance between the terminal device and another device based on the WiFi scan result.
[0292] (3) Multi-screen collaboration or screen projection. When the terminal device receives a WiFi scan request from the user for a multi-screen collaboration service or screen projection service, if there is data transmission or reception in the path of the first WiFi chip, that is, there is a running WiFi service, the terminal device uses the path of the second WiFi chip in the idle state to perform WiFi scanning to establish a WiFi P2P connection with the peer device, and then transmits the multi-screen collaboration data or screen projection data through the WiFi P2P connection.
[0293] In the multi-screen collaboration or screen projection scenario, if the terminal device has a WiFi service running, the path of the second WiFi chip in the idle state is used to perform WiFi scanning for the multi-screen collaboration service or the screen projection service, so as to avoid the WiFi scanning affecting the performance of the currently running WiFi service. At the same time, it will not reduce the performance of the newly added WiFi service (screen projection service, etc.).
[0294] (4) Traditional WiFi services. In general, the first WiFi chip is used by default for traditional WiFi services, which include video services, news services, live broadcast services, shopping services, and social services. However, if the first WiFi chip already has a WiFi service, the second WiFi chip can also be used to scan for traditional WiFi services.
[0295] (5) Huawei sharing and mobile phone cloning. For high-speed transmission applications and download applications, terminal devices can establish multiple WiFi connections based on multiple concurrent WiFi channels to increase data transmission speed or download speed to optimize the performance of WiFi services.
[0296] For example, in Huawei sharing or mobile phone cloning scenarios, both the sender and the receiver are dual WiFi chip terminals, and both can support multiple concurrent WiFi channels. Based on two concurrent 5G band WiFi channels, two WiFi P2P connections can be established between the sender and the receiver. The sender transmits data to the receiver through two concurrent WiFi P2P connections, which improves the data transmission rate.
[0297] Of course, the terminal device can also provide multiple WiFi services simultaneously based on two concurrent 5G frequency band WiFi channels.
[0298] For example, see Fig.12 A schematic diagram of Huawei sharing scenarios is shown in FIG. Fig.12 As shown, a multi-screen collaborative service is implemented between the large-screen device 121 and the mobile phone 122, wherein the multi-screen collaborative service is implemented between the large-screen device 121 and the mobile phone 122 through a WiFi P2P connection, and the mobile phone 122 is a terminal with dual WiFi chips and can support multiple concurrent WiFi channels.
[0299] At this time, the mobile phone 122 uses the WiFi channel of the 5G frequency band of the first WiFi chip to perform multi-screen collaborative services.
[0300] While the mobile phone 122 is performing multi-screen collaborative services, it can use the WiFi channel of the 5G frequency band of the second WiFi chip to perform Huawei sharing services.
[0301] At this time, the user needs to transfer the photos in the mobile phone 122 to another mobile phone through Huawei Share. First, the user can click on the gallery 124 on the main interface 123 of the mobile phone 122 to enter the album interface. In response to the click operation on the gallery 124, the mobile phone 122 displays the album interface 125, and the camera interface 125 includes a window 126 of all photos, a video window 127, and a camera photo window 128. The user can long press the window 126 to select all photos, and the mobile phone 122 responds to the long press operation on the window 126 to select all photos. The user selects all photos and can click the share button 129. The mobile phone responds to the click operation on the analysis button 129 and pops up a window 1210. The user can click on the window 1210 to trigger Huawei Share. The mobile phone 122 responds to the touch operation or click operation on the window 1210 to turn on the Huawei Share function. If it is detected that there is data transmission and reception in the channel of the first WiFi chip at the current moment, a WiFi P2P connection is established with the opposite device through the channel of the 5G frequency band of the second WiFi chip. After the WiFi P2P connection is established, the mobile phone 122 can transmit the photo to the peer device via the WiFi P2P connection. After the transmission is completed, the mobile phone 122 can display a window 1212 to prompt the user that the transmission is successful.
[0302] The Huawei Share scan of the mobile phone 122 can obtain the surrounding devices with the Huawei Share function turned on. After scanning the surrounding devices with the Huawei Share function turned on, a window 1211 is displayed, and the window 1211 shows the surrounding devices with the Huawei Share function turned on.
[0303] In Huawei's sharing scan, mobile phone 122 can be a Bluetooth scan, and based on the Bluetooth scan results, establish a WiFi P2P connection with the peer device through the 5G frequency band channel of the second WiFi chip. Of course, mobile phone 122 can also be a WiFi scan. At this time, after mobile phone 122 obtains the WiFi scan triggered by the user, it can first detect whether there is data transmission and reception in the channel of the first WiFi chip. Since mobile phone 122 and large-screen device 121 are using the channel of the first WiFi chip for multi-screen collaborative services, mobile phone 122 uses the channel of the second WiFi chip in an idle state to perform WiFi scanning and establish a WiFi P2P connection.
[0304] It should be noted that during the Huawei sharing process, the multi-screen collaboration service between the mobile phone 122 and the large-screen device 121 is not interrupted. When the user operates the mobile phone 122 to implement the Huawei sharing service, the interface of the mobile phone 122 changes, and the content displayed on the multi-screen collaboration window on the large-screen device 121 will also change accordingly. Fig.12 The interface change process on the multi-screen collaborative window of the large-screen device 121 is not shown.
[0305] For example, see Fig.13 Another schematic diagram of Huawei sharing scenarios is shown, such as Fig.13 As shown, a multi-screen collaborative service is implemented between the large-screen device 131 and the mobile phone 132, wherein the multi-screen collaborative service is implemented between the large-screen device 131 and the mobile phone 132 through a WiFi P2P connection, and the mobile phone 132 is a terminal with dual WiFi chips and can support multiple concurrent WiFi channels.
[0306] At this time, the mobile phone 132 uses the WiFi channel of the 5G frequency band of the first WiFi chip to perform multi-screen collaborative services.
[0307] While the mobile phone 132 is performing multi-screen collaborative services, it can use the WiFi channel of the 5G frequency band of the second WiFi chip to perform Huawei sharing services.
[0308] The user clicks on the gallery 134 on the main interface 133 of the mobile phone 132, and the mobile phone displays the album interface in response to the click operation on the gallery 134. After the user clicks on a picture in the album, the mobile phone displays the picture interface 135. The user clicks on the share button 137 in the picture interface 135, and the mobile phone responds to the click operation on the share button, finds the surrounding devices with Huawei share function turned on through Huawei share scanning, and displays window 138, which displays the searched devices. The user clicks on the device icon on the window 138, and the mobile phone 132 responds to the click operation and displays the print preview interface 139. The user clicks on the start printing button 1310 in the print preview interface 139, and the mobile phone responds to the click operation on the start printing button 1310 and sends the picture to the printer 1311 through the WiFi P2P connection. After receiving the picture, the printer 1311 automatically prints the picture.
[0309] The mobile phone 132 uses the 5G frequency band channel of the second WiFi chip to establish a WiFi P2P connection with the printer 1311 .
[0310] and Fig.12 Similarly, when Huawei shares scanning, if WiFi scanning is required, since the channel of the first WiFi chip is performing multi-screen collaboration services, the channel of the second WiFi chip is used to perform WiFi scanning and establish a WiFi P2P connection.
[0311] During Huawei's sharing process, the multi-screen collaborative service between the mobile phone 132 and the large-screen device 131 was not interrupted. Fig.13 The interface change process on the multi-screen collaborative window of the large-screen device 131 is not shown.
[0312] (6) High-speed downloading: For high-speed downloading scenarios, the terminal device can use multiple concurrent WiFi channels of the dual WiFi chip terminal to implement dual WiFi, triple WiFi, or quad WiFi to achieve network acceleration and increase the download rate.
[0313] (7) Games and live broadcasts. For games or live broadcasts, terminal devices can use multiple concurrent WiFi channels of dual WiFi chip terminals to achieve dual WiFi, triple WiFi, or quad WiFi to achieve network acceleration and reduce latency.
[0314] For example, see Fig.14 The schematic diagram of the scenario in which dual 5G frequency band WiFi is used to accelerate gaming services is shown in FIG. Fig.14As shown, the mobile phone 141 is connected to the 5G frequency band hotspots of the wireless AP device 143 and the wireless AP device 142 respectively, and uses the two 5G frequency band hotspots for game services, that is, the mobile phone 141 can divert game data to the two 5G frequency band hotspots to achieve dual 5G WiFi acceleration, so as to reduce the latency of game services and improve user experience.
[0315] Alternatively, the mobile phone 141 is connected to the 5G band hotspot of the wireless AP device 142, is also connected to the 2.4G band hotspot of the AP device 142, and is connected to the 5G band hotspot of the AP device 143 to achieve triple WiFi acceleration.
[0316] Alternatively, mobile phone 141 connects to the 5G band hotspot of wireless AP device 142, also connects to the 2.4G band hotspot of AP device 142, and connects to the 2.4G band hotspot and 5G band hotspot of AP device 143, to achieve quad WiFi acceleration. (8) Same frequency, different channel scenario. The terminal device uses multiple concurrent WiFi paths to eliminate the frequency band switching overhead in the same frequency, different channel scenario.
[0317] The same frequency but different channels means that two WiFi connections of the terminal device work on different channels of the same frequency band. Fig.15 The schematic diagram of the same frequency and different channels scenario is shown in FIG. Fig.15 As shown, it includes two wireless AP devices, namely wireless AP device 152 and wireless AP device 153. Wireless AP device 152 works on 5 GHz channel 56 and wireless AP device 153 works on 5 GHz channel 52.
[0318] It is understandable that in a multi-AP networking scenario, terminal devices may roam.
[0319] At the beginning, the mobile phone 151 connects to the 5G frequency band hotspot of the wireless AP device 152, and the wireless AP device 152 works on channel 56. At the same time, a P2P connection is established between the mobile phone 151 and the laptop computer 153, and the working channel is 56. In other words, the Internet access channel and the P2P channel of the mobile phone 151 are both channel 56 of 5GHz.
[0320] The user moves with the mobile phone 151 and the laptop computer 153. When the mobile phone 151 leaves the signal coverage of the wireless AP device 152 and enters the coverage of the wireless AP device 153, the mobile phone 151 disconnects from the wireless AP device 152 and establishes a WiFi connection with the wireless AP device 153.
[0321] After the mobile phone 151 establishes a connection with the wireless AP device 153, since the wireless AP device 153 works on channel 52, the Internet access channel of the mobile phone 151 changes from channel 56 to channel 52. At this time, the connection between the mobile phone 151 and the laptop computer 153 is still channel 56. That is, the Internet access channel and the P2P channel of the mobile phone 151 are different 5G channels. During the service processing, the mobile phone 151 needs to switch channels frequently.
[0322] Frequent channel switching by mobile phone 151 during service processing will result in frequency switching overhead, affecting service latency and throughput. Fig.16 FIG. 1 shows a schematic diagram of the frequency switching overhead in the same frequency but different channels scenario. Fig.16 As shown, the P2P channel of the mobile phone is channel 56, and the Internet access channel is channel 52. The shaded part represents the channel working time slot. The mobile phone needs switching overhead when switching from channel 52 to channel 56, and switching from channel 56 to channel 52 also needs switching overhead.
[0323] A single WiFi chip terminal has only one 5G frequency band channel and can only send one channel of the same frequency band at the same time. In multi-AP networking scenarios or single AP networking scenarios, the same frequency but different channels will occur.
[0324] In the embodiment of the present application, the dual WiFi chip can provide two concurrent same-frequency WiFi paths, for example, two concurrent 2.4GHz WiFi paths and two concurrent 5GHz WiFi paths. Based on two concurrent same-frequency WiFi paths, the problems of latency and throughput degradation caused by the same-frequency different-channel scenario are solved.
[0325] For example, for Fig.15 and Fig.16 In the corresponding same-frequency different-channel scenario, mobile phone 151 is a dual WiFi chip terminal. Mobile phone 151 can use the 5G frequency band channel of the first WiFi chip to connect to the 5G frequency band hotspot of wireless AP device 152, and use the 5G frequency band channel of the second WiFi chip to establish a P2P connection with notebook 153.
[0326] At the beginning, the Internet access channel and P2P channel of mobile phone 151 are both channel 56. After the device moves, the access device of mobile phone 151 changes from wireless AP device 152 to wireless AP device 153, and the Internet access channel changes from channel 56 to channel 52, which makes the Internet access channel and P2P channel of mobile phone 151 different.
[0327] Although the channels are different, since two WiFi chips are used for different concurrent WiFi channels, after the channel switching is completed, the mobile phone 151 does not need to switch channels during the service processing, that is, it does not need to switch between multiple channels when performing services, so no frequency switching overhead is introduced.
[0328] In addition, when the mobile phone 151 accesses the wireless AP device 153, the WiFi service currently running on the mobile phone 151 is the multi-screen collaboration between the mobile phone and the laptop computer. When the mobile phone 151 obtains the WiFi scan for accessing the wireless AP device 153, it detects that there is data transmission and reception on the first WiFi channel, and then uses the second WiFi channel for WiFi scanning, and the second WiFi channel is the WiFi channel that originally connected the mobile phone 151 to the wireless AP device 153. In this way, even the WiFi scan during WiFi roaming will not affect the performance of the currently running multi-screen collaboration service.
[0329] In other words, based on the two concurrent same-frequency WiFi channels provided by the dual WiFi chip terminal, the service processing process in the same-frequency different-channel scenario does not require channel switching, and will not cause degradation of latency and throughput.
[0330] It should be noted that the business classification in Table 2 above and the chip usage under each business classification are merely examples.
[0331] Some explanations for the dual WiFi, triple WiFi and quad WiFi mentioned above.
[0332] Based on multiple concurrent WiFi channels, multiple WiFi can be constructed to improve the network response speed of WiFi services and enhance user experience.
[0333] Dual WiFi can be realized based on two concurrent WiFi channels. Dual WiFi means that the terminal device can connect to two WiFi hotspots and use the two WiFi hotspots for WiFi services at the same time. The two WiFi hotspots can be the same AP device or two different AP devices.
[0334] When two WiFi hotspots belong to two different AP devices and the two WiFi hotspots are in the same frequency band, the terminal device can use the first frequency band of the first WiFi chip to connect to the WiFi hotspot of the first frequency band of AP device 1, and use the first frequency band of the second WiFi chip to connect to the WiFi hotspot of the first frequency band of AP device 2.
[0335] At this time, the first frequency band can be a 2.4G frequency band or a 5G frequency band. When the first frequency band is a 2.4G frequency band, the terminal device connects to two WiFi hotspots in the 2.4G frequency band. When the first frequency band is a 5G frequency band, the terminal device connects to two WiFi hotspots in the 5G frequency band.
[0336] When two WiFi hotspots belong to the same AP device, the terminal device can use the first frequency band path of the first WiFi chip to connect to the first frequency band hotspot of the AP device, use the second frequency band path of the second WiFi chip, or use the second frequency band path of the first WiFi chip to connect to the second frequency band hotspot of the AP device.
[0337] At this time, if the first frequency band is the 2.4G frequency band, the second frequency band is the 5G frequency band; if the first frequency band is the 5G frequency band, the second frequency band is the 2.4G frequency band.
[0338] Similarly, three WiFi can be realized based on three concurrent WiFi channels. In the three WiFi scenario, the 2.4G band channel of one WiFi chip connects to the 2.4G band hotspot, the 5G band channel connects to the 5G band hotspot, and the other WiFi chip connects to the 2.4G band hotspot or the 5G band hotspot.
[0339] Quad WiFi can be realized based on four concurrent WiFi channels. In the quad WiFi scenario, two WiFi chips are connected to the 2.4G band hotspot and the 5G band hotspot respectively, connecting to four WiFi hotspots in total.
[0340] In a multi-WiFi scenario, the terminal device can distribute WiFi service data to multiple WiFi channels for transmission, providing data transmission rate.
[0341] In specific applications, the terminal device can intelligently start dual WiFi, triple WiFi or quad WiFi for network acceleration according to the current WiFi service. For example, when it is detected that the current foreground WiFi service is a high-speed download service, the triple WiFi network acceleration is intelligently started to increase the data download rate.
[0342] The terminal device can also provide a control switch to allow the user to manually turn on or off multi-WiFi acceleration. For example, see Fig.17 The WiFi setting interface schematic diagram shown is as follows: Fig.17 As shown, the main interface 172 of the mobile phone 171 includes applications such as smart life, settings 173, application store and gallery. The user can click settings 173 to enter the settings interface. In response to the click operation on settings 173, the mobile phone 171 displays a settings interface 174, which includes WLAN settings items 175, Bluetooth settings items and mobile network settings. After the user clicks on the WLAN settings item 175, the mobile phone 171 responds to the click operation on the WLAN settings item 175 and displays a WLAN settings interface 176, which includes dual WiFi options 177 and triple WiFi options 178.
[0343] When the user clicks on the dual WiFi option 177, the mobile phone responds to the click operation and displays an interface 179. The interface 179 includes a dual WiFi switch and supporting applications, and the user can select a supporting application as needed.
[0344] When the user clicks on the three WiFi options 178, the mobile phone responds to the click operation and displays an interface 1710. The interface 1710 includes three WiFi switches and supporting applications, and the user can select the supporting application as needed.
[0345] After the terminal device turns on multi-WiFi, the user can manually connect to multiple hotspots. After the terminal device connects to multiple hotspots, network acceleration can be provided for WiFi services.
[0346] For example, see Fig.18 The schematic diagram of multi-WiFi network acceleration in the video download scenario is shown in FIG. Fig.18 As shown, mobile phone 181 is connected to wireless AP device 182 and wireless AP device 183 respectively, wherein mobile phone 181 is connected to the 2.4 GHz hotspot and the 5 GHz hotspot of wireless AP device 182, and mobile phone 181 is connected to the 5 GHz hotspot of wireless AP device 183. At this time, two WiFi icons are displayed on the status bar of mobile phone 181, wherein the two WiFi icons of wireless AP device 182 are displayed together.
[0347] After the mobile phone 181 is connected to three WiFi hotspots, the user can click on the video 185 in the main interface 184 of the mobile phone 181 to enter the home interface of the video 185. Then, the user clicks on "Video 1" and the mobile phone 181 displays the play interface 186 of the video 1. The play interface 186 includes a download button 187. When the user clicks on the download button 187, the mobile phone responds to the click operation, adds "Video 1" to the download queue, and uses the WiFi network to download it. At this time, due to the Fig.17 In the three WiFi setting interface, the video application is set as an application that supports three WiFi acceleration, and the mobile phone 181 uses three WiFi channels to download "Video 1" and displays a prompt message 188 on the playback interface 186.
[0348] Of course, the mobile phone 181 can also automatically detect the current WiFi service. When it is detected that the WiFi service is a video cache service, since the video cache belongs to a high-speed download service, three WiFis are used to accelerate the video cache service.
[0349] In the embodiment of the present application, the terminal device based on the dual WiFi chip can provide at least two concurrent WiFi channels, and can use the WiFi channel in an idle state to perform WiFi scanning to avoid the WiFi scanning affecting the currently running WiFi service. In some embodiments, based on at least two concurrent WiFi channels, multi-WiFi concurrent acceleration can also be achieved to improve the network response speed. In some embodiments, based on at least two concurrent WiFi channels, at least two WiFi services can also be concurrent, and multiple low-latency WiFi services can be concurrent.
[0350] See also Fig.19 A schematic diagram of a processing flow of various low-latency services is shown, and the process may include the following steps:
[0351] Step S1901: The terminal device performs system initialization and turns on WiFi.
[0352] Step S1902: The terminal device uses the first WiFi channel to perform the first WiFi service.
[0353] It should be noted that the terminal device is exemplarily a terminal with dual WiFi chips, which can provide at least three concurrent WiFi channels.
[0354] The first WiFi channel is a channel of the first WiFi chip, which can be a 2.4 GHz channel or a 5 GHz channel. The type of the first WiFi service can be any, which can be an Internet service, such as browsing news using WiFi; or a latency-sensitive service, such as a screen projection service or a multi-screen collaboration service.
[0355] Step S1903: The terminal device detects whether there is a two-way delay-sensitive WiFi service. If yes, proceed to step S1904; if no, proceed to step S1905.
[0356] It should be noted that dual-path delay-sensitive WiFi services refer to two low-latency WiFi services. Examples of low-latency WiFi services include screen projection services, multi-screen collaboration services, gaming services, and live video services.
[0357] In addition to the first WiFi service, if there are two low-latency WiFi services, the terminal device determines that there is a dual-path delay-sensitive WiFi service. Otherwise, if there are no two low-latency WiFi services, it is determined that there is no dual-path delay-sensitive WiFi service.
[0358] For example, the terminal device is using the first WiFi channel to perform the first WiFi service, which is an Internet access service. At this time, the user triggers a screen projection service, which is a low-latency WiFi service. Since there is only one low-latency WiFi service, it is determined that there is no dual-channel delay-sensitive WiFi service. In this case, the first WiFi channel continues to be used for Internet access services, and the second WiFi channel is started for screen projection services. The second WiFi channel is usually the 5GHz channel of the second WiFi chip.
[0359] After the user triggers one screen projection service, he triggers another screen projection service. At this time, since there are two low-latency WiFi services, it is determined that there is a dual-path delay-sensitive WiFi service, and the three-channel mode is enabled.
[0360] Step S1904: The terminal device enables the three-channel mode, wherein the second WiFi channel is used to perform the second WiFi service, and the third WiFi channel is used to perform the third WiFi service.
[0361] It should be noted that, generally, the second WiFi path may be a path of the first WiFi chip, and the third WiFi path may be a path of the second WiFi chip. For example, the first WiFi path is a 2.4 GHz path of the first WiFi chip, the second WiFi path is a 5 GHz path of the first WiFi chip, and the third WiFi path is a 5 GHz path of the second WiFi chip.
[0362] Of course, the second WiFi path and the third WiFi path can also be paths of the second WiFi chip. For example, the first WiFi path is the 2.4GHz or 5GHz path of the first WiFi chip, the second WiFi path is the 2.4GHz path of the second WiFi chip, and the third WiFi path is the 5GHz path of the second WiFi chip.
[0363] It should be noted that in other scenarios, even if there is no dual-path delay-sensitive WiFi service, the three-channel mode can be enabled, that is, three WiFi channels are used to concurrently perform three WiFi services, and the service types of these three WiFi services can be arbitrary.
[0364] Step S1905: The terminal device uses the first WiFi channel to perform the first WiFi service, or uses the first WiFi channel to perform the first WiFi service and uses the second WiFi channel to perform the second WiFi service.
[0365] It should be noted that when the first WiFi service is a non-delay-sensitive service, for example, the first WiFi service is an Internet access service. And the first WiFi service occupies the 5GHz channel. At this time, when there is a two-way delay-sensitive WiFi service, the first WiFi service can be allocated to the 2.4GHz channel, and two 5GHz channels are used for the two-way delay-sensitive WiFi service to ensure low latency of the two-way delay-sensitive WiFi service.
[0366] For example, the first WiFi service is an Internet access service, and the Internet access service uses the 5GHz channel of the first WiFi chip. After the user triggers the dual-channel screen projection service, the terminal device detects that the 5GHz channel of the first WiFi chip is occupied, and then allocates the Internet access service to the 2.4GHz channel of the first WiFi chip, and then uses the 5GHz channel of the first WiFi chip and the 5GHz channel of the second WiFi chip for the dual-channel screen projection service to ensure the latency requirement of the screen projection service.
[0367] Among them, if the terminal device can only concurrently connect two 5G band WiFi channels, and the terminal device can concurrently connect three WiFi channels. At a certain moment, the terminal device uses a 5G band WiFi channel for non-low-latency services, for example, using the 5G band WiFi channel for traditional Internet access services. In addition, the terminal device also uses another 5G band WiFi channel for the first delay-sensitive WiFi service (for example, screen projection service). At this time, after the terminal device obtains the WiFi scan request for triggering the second delay-sensitive WiFi service, it detects that the WiFi channel occupying the 5G band is not a delay-sensitive WiFi service, then the non-low-latency service can be switched from the 5G band channel to the 2.4G band channel in the idle state, and the 2.4G band channel in the idle state is used for the non-low-latency service. In this way, the 5G band channel originally occupied by the non-low-latency service is released and is in an idle state. Then, the WiFi channel in the idle state at this time includes the released 5G band channel.
[0368] The terminal device can only use the released 5G frequency band channel to perform WiFi scanning in response to the WiFi scanning request, and use the released 5G frequency band channel to perform the second delay-sensitive WiFi service based on the WiFi scanning result.
[0369] Of course, if the terminal device needs to obtain the scanning results of the entire frequency band, since the idle WiFi channel at this time has only one frequency band channel, the WiFi service category on the occupied 2.4G frequency band WiFi channel can be detected. If the WiFi service category is a non-low-latency service, the 2.4G frequency band channel corresponding to the non-low-latency service and the released 5G frequency band channel can be used for scanning to obtain the scanning results of the 2.4G frequency band and the 5G frequency band, and according to the scanning results, the released 5G frequency band channel can be used for the second delay-sensitive WiFi service.
[0370] It is understandable that WiFi scanning will affect the performance of non-low-latency services being carried out on the 2.4G frequency band channel.
[0371] In the above description, the terminal device first switches the non-low-latency service occupying the 5G frequency band channel to the channel of the 2.4G frequency band, and then performs a WiFi scan. In some other embodiments, the terminal device can also determine that the WiFi channel currently in an idle state includes a 2.4G frequency band channel after obtaining a WiFi scan request for triggering the second delay-sensitive WiFi service, and use the 2.4G frequency band channel to perform a WiFi scan to obtain the scanning result on the 2.4 frequency band, and then switch the non-low-latency service occupying the 5G frequency band channel to the 2.4G frequency band channel, use the 2.4G frequency band channel in an idle state to perform the non-low-latency service, and then use the released 5G frequency band channel to perform a WiFi scan to obtain the scanning result of the 5G frequency band. Finally, the terminal device uses the released 5G frequency band channel to perform the second delay-sensitive WiFi service based on the scanning results of the 2.4G frequency band and the 5G frequency band.
[0372] It should be noted that the above-mentioned dual-channel second-channel delay-sensitive WiFi service can usually be a screen projection service, that is, a concurrent dual-channel screen projection service. For example, the first-channel delay-sensitive WiFi service is the first screen projection service, and the second-channel delay-sensitive WiFi service is the second screen projection service. At a certain moment, a terminal device that can concurrently use three WiFi channels is using the 5G band channel of the first WiFi chip for Internet access services, and using the 5G band channel of the second WiFi chip for the first screen projection service. After the terminal device obtains the WiFi scanning request for triggering the second screen projection service, it can switch the Internet access service to the 2.4G band channel of the first WiFi chip, release the 5G band channel of the first WiFi chip, and then use the 5G band channel of the first WiFi chip and the 2.4G band channel of the first WiFi chip to perform WiFi scanning, obtain WiFi scanning results, and according to the WiFi scanning results, use the 5G band channel of the first WiFi chip to establish a WiFi P2P connection, and finally perform the second screen projection service based on the established WiFi P2P connection. The following is an exemplary description in conjunction with specific scenarios.
[0373] For example, see Fig. 20 The schematic diagram of the dual-channel projection scene is shown in FIG. Fig. 20 As shown, mobile phone 201 is connected to wireless router 202, and the user needs to project "Video 1" to large-screen device 203 and tablet computer 204 at the same time.
[0374] The main interface 205 of the mobile phone 201 includes applications such as smart life, settings, application store, and video 206. After the user clicks on the video 206, the mobile phone 201 responds to the click operation and displays the interface of the video 206; the user finds "Video 1" on the interface of the video 206 and enters the playback interface 207 of the "Video 1", and the playback interface 207 includes a screen casting button 208. At this time, the mobile phone 201 uses the WiFi network to play the video, that is, the first WiFi service is the video playback service. It is assumed that the mobile phone 201 uses the 2.4GHz channel of the first WiFi chip to connect to the wireless router 202 to perform the video playback service.
[0375] After the user clicks the screen casting button 208, the mobile phone 201 triggers a WiFi scanning request in response to the click operation, and a pop-up window 209 is displayed to prompt the user that it is currently searching for surrounding WiFi devices. When searching for surrounding devices, the mobile phone 201 can first detect whether there is data transmission or reception on the first WiFi channel. Since the mobile phone 201 is using the channel of the first WiFi chip for video playback, it is determined that there is data transmission or reception, and then the WiFi channel in an idle state is used to perform WiFi scanning to obtain information about surrounding WiFi devices, so as to avoid the WiFi scanning affecting the current video playback service.
[0376] After mobile phone 201 obtains the surrounding device information through WiFi scanning, window 2010 is displayed, and devices available for screen projection are displayed in window 2010. If the user needs to project the screen to large-screen device 203 and tablet computer 204 at the same time, select "Large-screen device in the living room" and "Tablet computer" in window 2010, and then click the confirmation option in window 2010. Mobile phone 201 initiates a dual-screen projection service in response to the click operation on the confirmation option. At this time, mobile phone 201 detects the existence of a dual-path delay-sensitive WiFi service, and starts the three-channel mode, that is, using the 5GHz channel of the first WiFi chip as the first screen projection channel, and the 5GHz channel of the second WiFi chip as the second screen projection channel.
[0377] Mobile phone 201 uses the first projection path to establish a P2P connection with large-screen device 203, and transmits projection data to large-screen device 203 through the P2P connection, thereby projecting "Video 1" to large-screen device 203. Mobile phone 201 uses the second projection path to establish a P2P connection with tablet computer 204, and transmits projection data to tablet computer 204 through the P2P connection, thereby projecting "Video 1" to tablet computer 204.
[0378] After the dual-channel screen projection process, the mobile phone 201 can still use the 2.4 GHz channel of the first WiFi chip to access the Internet.
[0379] As can be seen above, based on the multiple concurrent WiFi channels provided by the dual WiFi chip terminal, the scenario of WiFi dual-channel screen projection is realized while the terminal device is connected to the wireless router. In addition, the two screen projection channels and Internet access channels are independent of each other and can be concurrent, so that the terminal device can connect to the wireless router while ensuring smooth dual-channel screen projection without lag.
[0380] It should be noted that Fig. 20 , a scenario in which screen projection is initiated simultaneously and the contents of the two screen projections are the same is shown. In other embodiments, the two screen projections can be initiated successively, and the contents of the two screen projections can be different. For example, the mobile phone 201 can initiate the first screen projection service first, and then initiate the second screen projection service.
[0381] For example, see Fig.21 The schematic diagram of the multi-screen collaboration service and the screen projection service concurrent scenario is shown in FIG. Fig.21As shown in (a), the mobile phone 211 is connected to the wireless router 212, that is, the mobile phone 211 is connected to the WiFi hotspot of the wireless router 212. At the same time, the mobile phone 211 and the large-screen device 213 perform multi-screen collaborative services. The main interface 215 of the mobile phone 211 includes applications such as smart life, settings, video 216, and gallery. A multi-screen collaborative window 214 is displayed on the large-screen device 213. The content displayed on the multi-screen collaborative window 214 is the same as the content displayed on the mobile phone 211 interface, and changes with the changes in the content displayed on the mobile phone 211.
[0382] In specific applications, the mobile phone 211 can use the 2.4GHz channel of the first WiFi chip to access the WiFi hotspot of the wireless router 212; then, through the "touch and pay" method, use the 5GHz channel of the second WiFi chip to establish a P2P connection with the large-screen device 213, and transmit multi-screen collaborative data based on the P2P connection to realize multi-screen collaborative services.
[0383] It can be understood that after the mobile phone 211 accesses the WiFi hotspot of the wireless router 212, when triggering the WiFi scan for establishing a P2P connection, the mobile phone 211 can first determine whether there is a WiFi service currently running, and determine the WiFi path used by the WiFi service, and then determine the WiFi path usage, determine the WiFi path that is in an idle state, and then use the WiFi path in an idle state to perform WiFi scanning, and establish a P2P connection with the large-screen device 213, thereby avoiding the impact of WiFi scanning on the currently running WiFi service.
[0384] like Fig.21 As shown in (b), after the user clicks on the video 216 in the main interface 215 of the mobile phone 211, the mobile phone 211 responds to the click operation and displays the interface of the video 216. The user finds "Video 1" on the interface of the video 216 and enters the playback interface 217 of "Video 1". The playback interface 217 includes a screen casting button 218. The user can click the screen casting button 218 to initiate a WiFi scan. In response to the click operation on the screen casting button 218, the mobile phone 211 calls the WiFi module to perform a WiFi scan and pops up a window 219.
[0385] like Fig.21As shown in (c) in the figure, a prompt message that the device is being searched is displayed in window 219. When searching for peripheral devices, the mobile phone 211 can first determine whether there is any WiFi service currently running. Since the mobile phone 211 is using the 2.4GHz channel of the first WiFi chip for Internet access services, and the 5GHz 5G channel of the first WiFi chip for multi-screen collaborative services, that is, there is currently a WiFi service running, and the WiFi channel in the idle state is the channel of the second WiFi chip. The mobile phone 211 uses the 5GHz channel of the second WiFi chip for WiFi scanning, which can prevent the WiFi scanning of the screen projection service from affecting the currently running multi-screen collaborative services and Internet access services.
[0386] like Fig.21 As shown in (d), after obtaining the surrounding device information, the mobile phone 211 displays a window 2110, and the surrounding devices that can be projected are displayed in the window 2110. After selecting "the large-screen device in the living room", the user can click the confirmation option to confirm the projection to the "large-screen device in the living room". In response to the click operation on the confirmation option, the mobile phone 211 uses the 5GHz channel of the second WiFi chip to perform a P2P connection process and establish a P2P connection with the large-screen device 2111. After establishing the P2P connection, the mobile phone 211 uses the 5GHz channel of the second WiFi chip to transmit the projection data to the large-screen device 2111, thereby realizing the projection of "Video 1" to the large-screen device 2111.
[0387] It is understandable that after obtaining the WiFi scan request for the screen projection service, the mobile phone 211 can determine that there is currently a dual-path delay-sensitive WiFi service, and then enable the three-channel mode.
[0388] like Fig.21 As shown in (e), after the mobile phone 211 projects the screen to the large-screen device 2111, the WiFi services currently running on the mobile phone 211 include Internet access service, multi-screen collaboration service and screen projection service. Among them, the mobile phone 211 uses the 2.4GHz channel of the first WiFi chip for Internet access service, uses the 5GHz channel of the first WiFi chip for multi-screen collaboration service, and uses the 5GHz channel of the second WiFi chip for screen projection service, that is, using three concurrent WiFi channels to realize three concurrent WiFi services, and the three WiFi services are independent of each other and do not affect each other.
[0389] In the embodiment of the present application, the terminal device with dual WiFi chips can intelligently enable one or more WiFi paths according to the foreground WiFi service category to meet the priorities of different WiFi services.
[0390] Exemplarily, a dual WiFi chip terminal may provide three concurrent WiFi channels, namely: a 2.4 GHz channel and a 5 GHz channel of a first WiFi chip, and a 2.4 GHz channel or a 5 GHz channel of a second WiFi chip.
[0391] See also Fig. 22 The schematic diagram of the WiFi channel concurrent process is shown in FIG. Fig. 22 As shown, the process may include the following steps:
[0392] Step S2201: The terminal device performs system initialization and turns on WiFi.
[0393] Step S2202: The terminal device operates on the first WiFi chip.
[0394] It should be noted that the terminal device working on the first WiFi chip means that the terminal device uses the first WiFi chip by default to work. For example, if the terminal device has no WiFi service running, and a user triggers a WiFi service at a certain moment, the terminal device uses the first WiFi chip by default to perform the WiFi service triggered by the user.
[0395] Step S2203: The terminal device detects the foreground WiFi service category. If the foreground WiFi service category is a traditional WiFi service, the process proceeds to step S2204; if the foreground WiFi service category is a low-latency service, the process proceeds to step S2205; if the foreground WiFi service category is a high-speed download category, the process proceeds to step S2206.
[0396] It should be noted that the foreground WiFi service category refers to the WiFi service category of the foreground application. WiFi service categories can be exemplarily divided into: traditional WiFi services, low-latency services and high-speed download services. Traditional WiFi services can exemplarily include video, news, news and social services. Low-latency services can exemplarily include multi-screen collaboration, screen projection, games and live broadcasts. High-speed download categories can exemplarily include video cache, application market, network disk and cloud disk.
[0397] For example, the correspondence between service types and WiFi channels is shown in Table 3 below.
[0398] Table 3
[0399]
[0400]
[0401] Among them, "√" in Table 3 indicates that the WiFi path is used, and " / " indicates that the WiFi path is not used.
[0402] In Table 3, when the current WiFi service is a traditional WiFi service, and there is only a traditional WiFi service, the terminal device only uses the first WiFi channel to perform the traditional WiFi service.
[0403] When the foreground WiFi service is a low-latency service, and there is a traditional WiFi service and another low-latency service in the background, the terminal device uses the first WiFi channel for the traditional WiFi service, starts the second WiFi channel, and allocates the low-latency service in the foreground to the second WiFi channel, that is, uses the second WiFi channel for the foreground low-latency service. If there is another low-latency service in the background, the third WiFi channel is started and used for the low-latency service.
[0404] When the foreground service type is high-speed download, three WiFi channels are used for the WiFi service at the same time. If other WiFi services are running in the background at this time, and other WiFi services occupy a certain WiFi channel, the occupied WiFi channel is released, and the released WiFi channel is used for the foreground high-speed download WiFi service.
[0405] Step S2204: The terminal device operates on the first WiFi channel.
[0406] At this time, the terminal device only has traditional WiFi services, and the first WiFi channel is used to perform traditional WiFi services.
[0407] Step S2205: The terminal device operates on the first WiFi channel and the second WiFi channel.
[0408] At this time, the first WiFi channel of the terminal device is performing traditional WiFi services. If the foreground WiFi service is a low-latency service, the second WiFi channel is activated and the second WiFi channel is used to perform the foreground low-latency service. Of course, if there are other low-latency services in addition to the foreground low-latency service, the third WiFi channel is activated and the third WiFi channel is used to perform other low-latency services.
[0409] Step S2206: The terminal device operates on the first WiFi channel, the second WiFi channel, and the third WiFi channel.
[0410] In a specific application, the terminal device can use three WiFi paths to connect to three different WiFi hotspots respectively, that is, the terminal device uses the first WiFi path to connect to the first WiFi hotspot, uses the second WiFi path to connect to the second WiFi hotspot, and uses the third WiFi path to connect to the third WiFi hotspot. Fig.18As shown, when the mobile phone 181 detects that the foreground WiFi service type is video caching, it uses the first WiFi path and the second WiFi path to connect to the 2.4GHz hotspot and the 5GHz hotspot of the wireless router 182 respectively, and uses the third WiFi path to connect to the 5GHz hotspot of the wireless router 183. At the same time, three WiFi paths are used to perform network concurrency acceleration to improve the video caching rate.
[0411] As can be seen from the above, the embodiment of the present application is based on at least two concurrent WiFi paths provided by the dual WiFi chip terminal, which can not only solve the impact of WiFi scanning on the running WiFi services, but also realize multiple concurrent WiFi services without affecting each other.
[0412] In the process of concurrently running multiple WiFi services, it is also possible to prevent the WiFi scanning of concurrent services from affecting the currently running WiFi services.
[0413] Exemplarily, after the terminal device obtains the first WiFi scan request, it detects that there is no WiFi service currently running, and then performs WiFi scanning on the WiFi path in an idle state to obtain the first WiFi scan result, and based on the first WiFi scan result, uses the first WiFi path to perform the first WiFi service. That is, the terminal device is currently using the first WiFi path to perform the first WiFi service.
[0414] Among them, when using a WiFi channel in an idle state for scanning, multiple channels of different frequency bands can be used for WiFi scanning to obtain scanning results of the full frequency band and the full channel, and one of the WiFi channels can be used for WiFi services based on the scanning results. In other words, when WiFi scanning, the terminal device can use multiple WiFi channels of two different frequency bands for scanning to obtain the required scanning results. When performing WiFi services based on the WiFi scanning results, the terminal device can use one of the WiFi channels in an idle state for WiFi services.
[0415] The terminal device here can provide three concurrent WiFi channels, and the first WiFi chip can concurrently provide a 2.4GHz channel and a 5GHz channel, the second WiFi chip can concurrently provide a 2.4GHz channel or a 5GHz channel, and the default first WiFi channel is set as the channel of the first WiFi chip.
[0416] Next, the terminal device obtains the second WiFi scan request, and in response to the second WiFi scan request, detects whether there is a currently running WiFi service, and determines the WiFi path used by the WiFi service. At this point, the terminal device detects that there is a first WiFi service, and the first WiFi service is using the first WiFi path. Based on this, the terminal device can determine that the WiFi path currently in an idle state is the path of the second WiFi chip, and one of the paths of the first WiFi chip. The terminal device responds to the second WiFi scan request using the WiFi path in an idle state, and obtains the second WiFi scan result, so as to use the remaining path of the first WiFi chip for the second WiFi service.
[0417] Then, the terminal device obtains the third WiFi scan request, and the terminal device detects that the currently running WiFi services are the first WiFi service and the second WiFi service, and the WiFi path currently in idle state is the path of the second WiFi chip. The terminal device uses the path of the second WiFi chip to perform WiFi scanning to perform the third WiFi service.
[0418] At this point, the terminal device has realized the concurrency of the first WiFi service, the second WiFi service and the third WiFi service based on three concurrent WiFi channels, and during the concurrent service process, the WiFi scanning has no impact on the running WiFi services.
[0419] The purpose of WiFi scanning may be to establish a connection and perform some kind of business based on the established connection. For example, a mobile phone performs WiFi scanning to obtain information about surrounding WiFi hotspots, and performs WiFi access based on the WiFi hotspot information to connect to a wireless router for Internet access. For another example, a mobile phone performs P2P scanning to obtain information about surrounding P2P devices, and establishes a P2P connection based on the P2P device information, and then performs multi-screen collaboration or screen projection based on the P2P connection.
[0420] The purpose of WiFi scanning may also be to obtain scanning results and obtain analysis results based on the analysis of the scanning results, for example, WiFi interference detection and background scanning.
[0421] See also Fig.23, which shows a schematic diagram of the structure of a terminal device provided in an embodiment of the present application, the terminal device includes: a processor 231, a transceiver 232, a memory 233 and a WiFi chip 234. The processor 231 includes one or more processing cores, and the processor 231 executes various functional applications and information processing by running software programs and modules. The transceiver 232 can be implemented as a communication component, and the communication component can be a baseband chip. The transceiver 232, the memory 233 and the WiFi chip 234 can be connected to the processor 231 via a bus. The memory 233 can be used to store at least one program instruction, and the processor 231 is used to execute at least one program instruction to implement the technical solution of the above embodiment. Its implementation principle and technical effect are similar to those of the above method related embodiments, and will not be repeated here.
[0422] In the embodiments of the present application, the processor may be a general-purpose processor, a digital signal processor, an application-specific integrated circuit, a field programmable gate array or other programmable logic device, a discrete gate or transistor logic device, or a discrete hardware component, and may implement or execute the methods, steps, and logic block diagrams disclosed in the embodiments of the present application. The general-purpose processor may be a microprocessor or any conventional processor, etc. The steps of the method disclosed in the embodiments of the present application may be directly embodied as being executed by a hardware processor, or may be executed by a combination of hardware and software modules in the processor.
[0423] In the embodiments of the present application, the memory may be a non-volatile memory, such as a hard disk drive (HDD) or a solid-state drive (SS), or a volatile memory (volatile memory), such as a random-access memory (RAM). The memory is any other medium that can be used to carry or store the desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited thereto.
[0424] In the embodiment of the present application, the terminal device includes at least two WiFi chips, and the type and model of the WiFi chips can be set according to actual needs.
[0425] The memory in the embodiment of the present application may also be a circuit or any other device capable of implementing a storage function, for storing program instructions and / or data.
[0426] The methods provided in the embodiments of the present application 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 program instructions are loaded and executed on a computer, the process or function described in the embodiments of the present application is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, a network device, a user device or other programmable device. The computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions may be transmitted from one website, computer, server or data center to another website, computer, server or data center via wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., 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 or data center that includes one or more available media integrated therein. The available medium may be a magnetic medium (e.g., a floppy disk, a hard disk, a magnetic tape), an optical medium (e.g., a digital video disc (DWD), or a semiconductor medium (e.g., an SSD), etc.
[0427] See also Fig.24 , which shows a schematic block diagram of the structure of a WiFi scanning control device provided in an embodiment of the present application. The WiFi scanning control device can implement part or all of the technical solutions in the above embodiments, such as the method embodiment, through software, hardware, or a combination of the two. That is to say, the WiFi scanning control device has the function of implementing the WiFi scanning control method in the above embodiments, and the function can be implemented by hardware or by hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the above functions, and the modules can be software and / or hardware.
[0428] The device includes at least two WiFi chips and can concurrently connect at least two WiFi paths. The device may include: a first using module 241 , a first scanning request obtaining module 242 , a determining module 243 and a first WiFi scanning module 244 .
[0429] Among them, the first use module 241 is used to use the first WiFi channel to perform the first WiFi service. For example, the 5G band channel of the first WiFi chip is used to perform the first screen projection service, and the 2.4G band channel of the first WiFi chip is used to perform the Internet access service. At this time, the first WiFi channel includes the 2.4G band channel and the 5G band channel of the first WiFi chip, and the first WiFi service includes the first screen projection service and the Internet access service. Of course, the first WiFi service may also include only one service, and the first WiFi channel may also include one channel. The type of the first WiFi service may be arbitrary.
[0430] The first scanning request acquisition module 242 is used to obtain a WiFi scanning request. The WiFi scanning request can be any scanning request, which can be a request for triggering a proximity discovery scan, a background scanning request, or a request for establishing a WiFi P2P connection for screen projection services. The WiFi scanning request can be triggered by an upper-layer application, specifically, it can be actively triggered by an application program, or it can be triggered by a user.
[0431] The determination module 243 is used to determine the first target path from the second WiFi path in the idle state, where the at least two WiFi paths include the first WiFi path and the second WiFi path. For example, if the second WiFi path includes three WiFi paths, two paths in different frequency bands can be determined as the first target path.
[0432] The first WiFi scanning module 244 is configured to perform WiFi scanning using a first target path in response to a WiFi scanning request.
[0433] In some possible implementations, the first target path includes a WiFi path in a first frequency band and a WiFi path in a second frequency band.
[0434] In some possible implementations, if the second WiFi path includes only a WiFi path of one frequency band, the device may further include: a first service type determination module, configured to determine whether a WiFi path of a target frequency band in the first WiFi path has a preset type of WiFi service, the first WiFi service includes at least two WiFi services, and the first WiFi path includes at least two WiFi paths;
[0435] A first channel determination module, configured to determine the WiFi channel corresponding to the preset type of WiFi service as the second target channel if there is a preset type of WiFi service in the WiFi channel of the target frequency band;
[0436] The second WiFi scanning module is used to respond to the WiFi scanning request and use the second target channel and the third target channel to perform WiFi scanning; wherein the target frequency band is different from the frequency band of the second WiFi channel, and the second WiFi channel includes the third target channel.
[0437] In some possible implementations, the preset type of WiFi service includes a non-low-latency service.
[0438] In some possible implementations, the device may further include: a foreground service determination module, configured to determine whether the first WiFi service is a foreground WiFi service; a second service category determination module, configured to determine a service category of the first WiFi service if the first WiFi service is a foreground WiFi service; and a second path determination module, configured to determine the first WiFi path according to the service category.
[0439] Wherein, when the service category is the first category, the first WiFi path includes one WiFi path; when the service category is the second category, the first WiFi path includes at least two WiFi paths.
[0440] In some possible implementations, the first category includes a low latency category, and the second category includes a high-speed download category.
[0441] In some possible implementations, when the terminal device can concurrently use at least three WiFi channels, the first using module is specifically used to: use the fourth target channel to perform the first screen projection service, use the fifth target channel to perform the second WiFi service, the first WiFi service includes the first screen projection service and the second WiFi service, the first WiFi channel includes the fourth target channel and the fifth target channel, and the second WiFi service is a non-low-latency service;
[0442] The device may also include: a first scanning result acquisition module, used to obtain a first WiFi scanning result; a second using module, used to use a sixth target channel to perform a second screen projection service according to the first WiFi scanning result, and the second WiFi channel includes the sixth target channel.
[0443] In some possible implementations, the device may further include: a frequency band determination module, used to determine whether the frequency band of the fifth target channel is a 5G frequency band; a channel switching module, used to switch the second WiFi service from the fifth target channel to the seventh target channel in an idle state if it is determined that the frequency band of the fifth target channel is a 5G frequency band, so as to use the seventh target channel to perform the second WiFi service, and the seventh target channel is a WiFi channel in the 2.4G frequency band; the first target channel includes the fifth target channel, and the fifth target channel is used as the sixth target channel.
[0444] In some possible implementations, the first WiFi scanning module is specifically used to: obtain a second WiFi scanning result; after identifying the target device based on the second WiFi scanning result, use the first target path and scan at a first scanning frequency to obtain first WiFi information broadcast by the target device; determine a first distance from the target device based on the first WiFi information; when the first distance is less than or equal to a first preset threshold, use the first target path and scan at a second scanning frequency to obtain second WiFi information of the target device, and the second scanning frequency is higher than the first scanning frequency.
[0445] In some possible implementations, the device may further include: a distance determination module, used to determine a second distance between the device and the target device based on the second WiFi information; a trigger module, used to pop up a window and display the information of the target device in the window when the second distance is less than or equal to a second preset threshold, and the second preset threshold is less than the first preset threshold.
[0446] The embodiment of the present application further provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments can be implemented.
[0447] An embodiment of the present application provides a computer program product. When the computer program product runs on a terminal device, the terminal device can implement the steps in the above-mentioned method embodiments when executing the computer program product.
[0448] The present application also provides a chip system, which includes a processor coupled to a memory, and the processor executes a computer program stored in the memory to implement the methods described in the above method embodiments. The chip system can be a single chip or a chip module composed of multiple chips.
[0449] In the above-mentioned embodiments, the description of each embodiment has its own emphasis. For the part that is not described or recorded in detail in a certain embodiment, please refer to the relevant description of other embodiments. It should be understood that the size of the sequence number of each step in the above-mentioned embodiment does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present application. In addition, in the description of the present application specification and the attached claims, the terms "first", "second", "third", etc. are only used to distinguish the description, and cannot be understood as indicating or implying relative importance. The reference "one embodiment" or "some embodiments" described in the present application specification means that one or more embodiments of the present application include specific features, structures or characteristics described in combination with the embodiment. Therefore, the statements "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear in the different places in this specification are not necessarily all referring to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways.
[0450] Finally, it should be noted that the above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions within the technical scope disclosed in the present application should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A WiFi scanning control method, characterized in that: Applied to a terminal device, the terminal device includes at least two WiFi chips and can concurrently provide at least two WiFi channels; the method includes: Using a first WiFi channel to perform a first WiFi service, where the first WiFi service is a foreground WiFi service; Obtain a WiFi scan request, where the WiFi scan request is initiated by a background application; Determine a first target path from a second WiFi path in an idle state, wherein the at least two WiFi paths include the first WiFi path and the second WiFi path; In response to the WiFi scan request, a WiFi scan is performed using the first target path.
2. The method according to claim 1, characterized in that: The first target path includes a WiFi path in a first frequency band and a WiFi path in a second frequency band.
3. The method according to claim 1, characterized in that After obtaining the WiFi scan request, if the second WiFi path includes only a WiFi path of one frequency band, the method further includes: Determine whether there is a preset type of WiFi service in a WiFi channel of a target frequency band in the first WiFi channel, the first WiFi service includes at least two WiFi services, and the first WiFi channel includes at least two WiFi channels; If the WiFi service of the preset type exists in the WiFi channel of the target frequency band, the WiFi channel corresponding to the WiFi service of the preset type is determined as the second target channel; In response to the WiFi scan request, performing WiFi scan using the second target path and the third target path; The target frequency band is different from a frequency band of the second WiFi path, and the second WiFi path includes the third target path.
4. The method according to claim 3, characterized in that The preset type of WiFi service includes a non-low-latency service.
5. The method according to claim 1, characterized in that Before using the first WiFi path to perform the first WiFi service, the method further includes: Determine whether the first WiFi service is a foreground WiFi service; If the first WiFi service is a foreground WiFi service, determining a service category of the first WiFi service; Determining the first WiFi path according to the service category; Wherein, when the service category is the first category, the first WiFi path includes one WiFi path; When the service category is the second category, the first WiFi path includes at least two WiFi paths.
6. The method according to claim 5, characterized in that The first category includes a low latency category, and the second category includes a high-speed download category.
7. The method according to claim 1, characterized in that When the terminal device can concurrently use at least three WiFi channels, using the first WiFi channel to perform the first WiFi service includes: Use the fourth target path to perform a first screen projection service, and use the fifth target path to perform a second WiFi service, the first WiFi service includes the first screen projection service and the second WiFi service, the first WiFi path includes the fourth target path and the fifth target path, and the second WiFi service is a non-low-latency service; After performing WiFi scanning using the first target path, the method further includes: Get the first WiFi scan result; According to the first WiFi scanning result, a sixth target channel is used to perform a second screen projection service, and the second WiFi channel includes the sixth target channel.
8. The method according to claim 7, characterized in that Before using the first target path to perform WiFi scanning, the method further includes: Determining whether the frequency band of the fifth target channel is a 5G frequency band; If it is determined that the frequency band of the fifth target channel is the 5G frequency band, the second WiFi service is switched from the fifth target channel to the seventh target channel in the idle state, so as to use the seventh target channel to perform the second WiFi service, and the seventh target channel is a WiFi channel in the 2.4G frequency band; The first target pathway includes the fifth target pathway, and the fifth target pathway is used as the sixth target pathway.
9. The method according to claim 1, characterized in that: Using the first target path to perform WiFi scanning includes: Get the second WiFi scan result; After identifying the target device according to the second WiFi scanning result, use the first target path and scan at a first scanning frequency to obtain the first WiFi information broadcast by the target device; Determine a first distance to the target device according to the first WiFi information; When the first distance is less than or equal to a first preset threshold, the first target path is used to scan at a second scanning frequency to obtain second WiFi information of the target device, where the second scanning frequency is higher than the first scanning frequency.
10. The method according to claim 9, characterized in that After using the first target path and scanning at a second scanning frequency to obtain second WiFi information of the target device, the method further includes: Determine a second distance to the target device according to the second WiFi information; When the second distance is less than or equal to a second preset threshold, a window is popped up and the information of the target device is displayed in the window, and the second preset threshold is less than the first preset threshold.
11. A terminal device, characterized in that: The device comprises at least two WiFi chips, a memory, a processor, and a computer program stored in the memory and executable on the processor. Based on the fact that the at least two WiFi chips can concurrently run at least two WiFi paths, the processor implements the following process when executing the computer program: Using a first WiFi channel to perform a first WiFi service, where the first WiFi service is a foreground WiFi service; Obtain a WiFi scan request, where the WiFi scan request is initiated by a background application; Determine a first target path from a second WiFi path in an idle state, wherein the at least two WiFi paths include the first WiFi path and the second WiFi path; In response to the WiFi scan request, a WiFi scan is performed using the first target path.
12. The terminal device according to claim 11, characterized in that: The first target path includes a WiFi path in a first frequency band and a WiFi path in a second frequency band.
13. The terminal device according to claim 11, characterized in that: If the second WiFi path only includes a WiFi path of one frequency band, the processor further implements the following process when executing the computer program: Determine whether there is a preset type of WiFi service in a WiFi channel of a target frequency band in the first WiFi channel, the first WiFi service includes at least two WiFi services, and the first WiFi channel includes at least two WiFi channels; If the WiFi service of the preset type exists in the WiFi channel of the target frequency band, the WiFi channel corresponding to the WiFi service of the preset type is determined as the second target channel; In response to the WiFi scan request, performing WiFi scan using the second target path and the third target path; The target frequency band is different from a frequency band of the second WiFi path, and the second WiFi path includes the third target path.
14. The terminal device according to claim 13, characterized in that: The preset type of WiFi service includes a non-low-latency service.
15. The terminal device according to claim 11, characterized in that: When the processor executes the computer program, the following process is also implemented: Determine whether the first WiFi service is a foreground WiFi service; If the first WiFi service is a foreground WiFi service, determining a service category of the first WiFi service; Determining the first WiFi path according to the service category; Wherein, when the service category is the first category, the first WiFi path includes one WiFi path; When the service category is the second category, the first WiFi path includes at least two WiFi paths.
16. The terminal device according to claim 15, characterized in that: The first category includes a low latency category, and the second category includes a high-speed download category.
17. The terminal device according to claim 11, characterized in that: When the terminal device can concurrently connect to at least three WiFi channels, the processor specifically implements the following process when executing the computer program: Use the fourth target path to perform a first screen projection service, and use the fifth target path to perform a second WiFi service, the first WiFi service includes the first screen projection service and the second WiFi service, the first WiFi path includes the fourth target path and the fifth target path, and the second WiFi service is a non-low-latency service; When the processor executes the computer program, the following process is also implemented: Get the first WiFi scan result; According to the first WiFi scanning result, a sixth target channel is used to perform a second screen projection service, and the second WiFi channel includes the sixth target channel.
18. The terminal device according to claim 17, characterized in that: When the processor executes the computer program, the following process is also implemented: Determining whether the frequency band of the fifth target channel is a 5G frequency band; If it is determined that the frequency band of the fifth target channel is the 5G frequency band, the second WiFi service is switched from the fifth target channel to the seventh target channel in the idle state, so as to use the seventh target channel to perform the second WiFi service, and the seventh target channel is a WiFi channel in the 2.4G frequency band; The first target pathway includes the fifth target pathway, and the fifth target pathway is used as the sixth target pathway.
19. The terminal device according to claim 11, characterized in that: When the processor executes the computer program, the following process is specifically implemented: Get the second WiFi scan result; After identifying the target device according to the second WiFi scanning result, use the first target path and scan at a first scanning frequency to obtain the first WiFi information broadcast by the target device; Determine a first distance to the target device according to the first WiFi information; When the first distance is less than or equal to a first preset threshold, the first target path is used to scan at a second scanning frequency to obtain second WiFi information of the target device, where the second scanning frequency is higher than the first scanning frequency.
20. The terminal device according to claim 19, characterized in that: When the processor executes the computer program, the following process is also implemented: Determine a second distance to the target device according to the second WiFi information; When the second distance is less than or equal to a second preset threshold, a window is popped up and the information of the target device is displayed in the window, and the second preset threshold is less than the first preset threshold.
21. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 10 is implemented.
22. A chip system, characterized in that: The device comprises a processor and at least two WiFi chips, wherein the processor is coupled to a memory, and the processor executes a computer program stored in the memory to implement the method according to any one of claims 1 to 10.
Citation Information
Patent Citations
Terminal and wireless connection method
CN105744597A
Data transmission control method and related product
CN109640310A
Cited By
WIFI scan control method and related device
WO2022166455A1