Wireless scanning method and device, electronic equipment and storage medium

By performing a PNO scan while the screen is on and then switching to periodic scanning after detecting network usage needs, the problem of high power consumption when the screen is on in electronic devices is solved, resulting in lower power consumption and more flexible network scanning.

CN118921719APending Publication Date: 2024-11-08GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310509463.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-05-06
Publication Date
2024-11-08

AI Technical Summary

Technical Problem

Electronic devices consume a lot of power when scanning for wireless networks while the screen is on, and existing technologies have not been able to effectively solve this problem.

Method used

The system first scans the wireless network using the first scanning method (PNO scan) while the screen is on. Once network usage is detected, it switches to the second scanning method (periodic scan). The second scanning method has more channels than the first scanning method, reducing unnecessary channel scanning.

Benefits of technology

By reducing the number of channels scanned in a wireless network, the power consumption of electronic devices is reduced, while the flexibility and efficiency of scanning are improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118921719A_ABST
    Figure CN118921719A_ABST
Patent Text Reader

Abstract

The embodiment of the invention discloses a wireless scanning method and device, electronic equipment and a storage medium. The method comprises the steps that when the electronic equipment is in a screen-on state, a wireless network is scanned in a first scanning mode, and the first scanning mode is a mode of conducting wireless network scanning on a first channel; in the process of scanning the wireless network through the first scanning mode, if a network use demand is detected, the wireless network is scanned through a second scanning mode, the second scanning mode is a mode of carrying out wireless network scanning on second channels, and the number of the second channels is larger than that of the first channels. When the electronic equipment is in the bright screen state, wireless network scanning is firstly carried out on the first channel, and wireless network scanning is carried out on the second channel only when the network use requirement is monitored, so that the situation that wireless network scanning is carried out on more channels due to the bright screen with the network use requirement can be avoided; the power consumption of the electronic equipment is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of terminal technology, and specifically relates to a wireless scanning method, device, electronic device and storage medium. Background Art

[0002] An electronic device (workstation STA) uses wireless fidelity (Wi-Fi) technology to establish a connection with a wireless access point (AP) to access a wireless network. For example, when an electronic device has a built-in Wi-Fi module, in order to access a wireless network, the electronic device first needs to scan to find out whether there is an available wireless network nearby. However, the related wireless network scanning method still has the problem of high power consumption. Summary of the invention

[0003] In view of the above problems, the present application proposes a wireless scanning method, device, electronic device and storage medium to improve the above problems.

[0004] In a first aspect, an embodiment of the present application provides a wireless scanning method, which is applied to an electronic device, and the method includes: when the electronic device is in a screen-on state, scanning the wireless network through a first scanning method, and the first scanning method is a method of scanning the wireless network on a first channel; during the process of scanning the wireless network through the first scanning method, if a network usage demand is detected, scanning the wireless network through a second scanning method, wherein the second scanning method is a method of scanning the wireless network on a second channel, and the number of channels of the second channel is greater than the number of channels of the first channel.

[0005] In a second aspect, an embodiment of the present application provides a wireless scanning device that runs on an electronic device, the device comprising: a first scanning unit, for scanning a wireless network through a first scanning method when the electronic device is in a screen-on state, the first scanning method being a method of scanning a wireless network on a first channel; a second scanning unit, for scanning a wireless network through a second scanning method if a network usage demand is detected during the process of scanning the wireless network through the first scanning method, wherein the second scanning method is a method of scanning a wireless network on a second channel, and the number of channels of the second channel is greater than the number of channels of the first channel.

[0006] In a third aspect, an embodiment of the present application provides an electronic device, comprising one or more processors and a memory; one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, and the one or more programs are configured to execute the above-mentioned method.

[0007] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, in which a program code is stored, wherein the above method is executed when the program code is run.

[0008] Embodiments of the present application provide a wireless scanning method, device, electronic device, and storage medium. When the electronic device is in a screen-on state, the wireless network is first scanned by a first scanning method, wherein the first scanning method is a method of performing wireless network scanning on a first channel. During the process of scanning the wireless network by the first scanning method, if a network usage demand is detected, the wireless network is scanned by a second scanning method, wherein the second scanning method is a method of performing wireless network scanning on a second channel, and the number of channels of the second channel is greater than the number of channels of the first channel. In the above manner, when the electronic device is in a screen-on state, a wireless network scan is first performed on the first channel, and when a network usage demand is monitored, a wireless network scan is started on the second channel. Since the number of channels of the second channel is greater than the number of channels of the first channel, it is possible to avoid performing wireless network scanning on more channels caused by the screen being on that is not due to a network usage demand, thereby reducing the power consumption of the electronic device. BRIEF DESCRIPTION OF THE DRAWINGS

[0009] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.

[0010] Figure 1 A schematic diagram of an application scenario of a wireless scanning method proposed in an embodiment of the present application is shown;

[0011] Figure 2 A flowchart of a wireless scanning method proposed in an embodiment of the present application is shown;

[0012] Figure 3 A schematic diagram of a scanning process for scanning a WiFi network by a PNO scanning method in an embodiment of the present application is shown;

[0013] Figure 4 A schematic diagram of a scanning process for scanning a WiFi network by periodic scanning in one embodiment of the present application is shown;

[0014] Figure 5 A flowchart of a wireless scanning method proposed in another embodiment of the present application is shown;

[0015] Figure 6 A schematic diagram showing a scanned wireless network in another embodiment of the present application is shown;

[0016] Figure 7 A flowchart of a wireless scanning method proposed in another embodiment of the present application is shown;

[0017] Figure 8 A structural block diagram of a wireless scanning device proposed in an embodiment of the present application is shown;

[0018] Fig. 9 A structural block diagram of an electronic device for executing a wireless scanning method according to an embodiment of the present application is shown;

[0019] Fig.10 A storage unit in an embodiment of the present application is shown for storing or carrying a program code for implementing a wireless scanning method according to an embodiment of the present application. DETAILED DESCRIPTION

[0020] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0021] With the development and popularization of wireless networks, electronic devices access the Internet through wireless networks. As it is not restricted by operator charges, it has become a highly dependent way of Internet access for users. For example, after a user turns on the WiFi switch of an electronic device, the electronic device will continuously scan the surrounding WiFi networks, and then provide the searched WiFi networks to the user in the form of a list, and the user can select a suitable WiFi network to access.

[0022] Among them, the WiFi network access process can include four steps: scanning, authentication, association and access. Among them, scanning is divided into active scanning and passive scanning. The embodiment of the present application takes active scanning as an example for explanation. Active scanning is to actively search for a network instead of waiting for the wireless network to declare its own existence. That is, the electronic device (workstation STA) actively sends a probe request (Probe Request) frame on each channel to request a specific wireless network to respond. The workstation using active scanning will scan the channels listed in the channel table in the following procedure: (1) Jump to a channel and then wait for an indication of an incoming frame or wait until the Probe Delay timer times out. If a frame is received on this channel, it proves that the channel is in use by a user, so it can be detected. The Probe Delay timer can be used to prevent an idle channel from stopping the entire process because the workstation will not always wait for the arrival of the frame. (2) Use the basic DCF access process to obtain the right to use the medium, and then send a Probe Request frame. (3) Wait for at least a minimum channel time (i.e., MinChannelTime); if the medium is not busy, it means that there is no network and you can jump to the next channel; if the medium is very busy during the MinChannelTime period, continue to wait for a while until the longest channel time (i.e., MaxChannelTime) times out, and then process any Probe Response frames. The Probe Response frame may include, but is not limited to, wireless network information such as the Service Set Identifier (SSID), Basic Service Set Identifier (BSSID), encryption and authentication methods.

[0023] When an electronic device searches for a WiFi hotspot, it sometimes takes a long time because there are multiple access points (APs) in the area where the electronic device is located. When the electronic device sends a Probe Request frame, multiple access points (APs) respond to the Probe Response frame through the congestion window, and this competition process is limited by the longest channel time (MaxChannelTime). When a wireless network receives a Probe Request to search for its extended service set (ESS), it will send a Probe Response frame. If you want to find all nearby wireless networks, the Probe Request frame can use the broadcast SSID (Service Set Identifier), so that all 802.11 wireless networks in the area will respond with a Probe Response.

[0024] Furthermore, after the electronic device (workstation STA) obtains the surrounding WiFi hotspot information through active scanning, it initiates an authentication request to the WiFi access point (AP device) according to 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, he clicks the connection button, and the mobile phone responds to the user's operation on the connection button and sends an authentication request frame to the WiFi access point according to the password and other information entered by the user.

[0025] After receiving the authentication request from the electronic device (workstation STA), the WiFi access point performs authentication according to the information carried in the authentication request, obtains an authentication result, and returns the authentication result to the electronic device (workstation STA).

[0026] After the electronic device (workstation STA) receives the authentication result returned by the WiFi access point, if the authentication is successful, it sends an association request to the WiFi access point. In response to the association request, the WiFi access point sends an association response to the electronic device (workstation STA) to notify the electronic device (workstation STA) that the association is successful. At this point, the electronic device (workstation STA) has accessed the wireless network provided by the WiFi access point.

[0027] The inventor discovered in the study of related wireless scanning methods that when an electronic device performs a wireless network scan, it will use different wireless scanning methods to scan the wireless network when the electronic device is in a screen-on state or a screen-off state. Among them, when the electronic device is in a screen-on state, a periodic scanning method is used to scan the wireless network; when the electronic device is in a screen-off state, a PNO (Preferred Network Offloading) scanning method is used to scan the wireless network. In the aforementioned method, when the electronic device is in a screen-on state, using a periodic scanning method to scan the wireless network all the time will cause the electronic device to consume more power.

[0028] Therefore, the inventors proposed the wireless scanning method, device, electronic device and storage medium in the present application. When the electronic device is in the screen-on state, the wireless network is first scanned by a first scanning method, wherein the first scanning method is a method of performing wireless network scanning on a first channel. During the process of scanning the wireless network by the first scanning method, if a network usage demand is detected, the wireless network is scanned by a second scanning method, wherein the second scanning method is a method of performing wireless network scanning on a second channel, and the number of channels of the second channel is greater than the number of channels of the first channel. Through the above method, when the electronic device is in the screen-on state, a wireless network scan is first performed on the first channel, and when a network usage demand is monitored, a wireless network scan is started on the second channel. Since the number of channels of the second channel is greater than the number of channels of the first channel, it is possible to avoid performing wireless network scanning on more channels caused by the screen-on state that is not caused by a network usage demand, thereby reducing the power consumption of the electronic device.

[0029] The following is an introduction to the application environment of the wireless scanning method provided by the present invention:

[0030] See also Figure 1 , the network coverage of the electronic device 100 includes multiple wireless access points, such as Figure 1 The first wireless access point 101, the second wireless access point 102 and the third wireless access point 103. The electronic device 100 needs a channel to connect with any wireless access point, that is, each wireless access point is located on a channel, and different wireless access points can be located on different channels or on the same channel.

[0031] When the electronic device 100 enters the coverage of the network, it starts to scan the wireless access points within the coverage of the network. Specifically, the system of the electronic device 100 sends a scan request, and after the WiFi chip or other underlying network module of the electronic device 100 receives the scan command, it scans according to a preset channel scan sequence, such as first scanning commonly used channels 1, 7, and 13, and then scanning other uncommon channels.

[0032] The embodiments of the present application will be described in detail below with reference to the accompanying drawings.

[0033] See also Figure 2 , a wireless scanning method provided in an embodiment of the present application is applied to an electronic device, the method comprising:

[0034] Step S110: When the electronic device is in a screen-on state, the wireless network is scanned by a first scanning method, where the first scanning method is a method of performing wireless network scanning on a first channel.

[0035] In the embodiments of the present application, the electronic device being in the screen-on state may refer to the electronic device switching from the screen-off state to the screen-on state, or may refer to the electronic device just being in the screen-on state, which is not specifically limited here. The electronic device may be a device with WiFi function, such as a mobile phone, a tablet computer, a laptop computer, a streaming media, a smart wearable device, a reader, or other device that can connect to WiFi.

[0036] The first scanning method is the PNO (preferred network offloading) scanning method. The PNO scanning method is a method of scanning a specific wireless network through the PNO firmware. The advantage is that the power consumption is low. For example, the scanning process of scanning a WiFi network through the PNO scanning method can be as follows: Figure 3 As shown, in Figure 3 In the process, the WiFi system module of the framework layer first initiates a WiFi network scan request and sends the scan request to the WiFi HAL layer interface of the hardware abstraction layer. Then, the scan request is sent to the WiFi PNO driver of the kernel layer through the WiFi HAL layer interface of the hardware abstraction layer. Then, the WiFi PNO driver of the kernel layer sends the scan request to the PNO firmware. After receiving the scan request, the PNO firmware responds to the scan request and starts WiFi network scanning.

[0037] In the embodiments of the present application, the wireless network may refer to a WiFi network, a ZigBee network, a WiMax network, etc., which is not specifically limited here.

[0038] The first channel may be a channel for a specific setting to scan a wireless network, or a channel where a wireless network is stored. The channel refers to the channel where the wireless network is located. In the embodiment of the present application, the channel may be a WiFi channel. The WiFi operating frequency bands corresponding to the electronic device may be different. In this case, the available WiFi channels on different WiFi operating frequency bands are different.

[0039] It is known that the more common WiFi operating frequency bands are 2.4 GHz and 5 GHz, so the embodiments of the present application are exemplified with 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 operating frequency band in the embodiments of the present application can also be 6 GHz in the sixth generation WiFi (WiFi6).

[0040] There are available WiFi channels on each WiFi 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.

[0041] In an embodiment of the present application, as a method, an electronic device can work in both 2.4GHz and 5GHz frequency bands at the same time. For example, if the electronic device performs WiFi access point scanning through a built-in WiFi module. At this time, if the WiFi module of the electronic device supports Dual Band Dual Concurrent (DBDC), the electronic device can work in two frequency bands at the same time. Among them, the electronic device supporting DBDC integrates two complete pathways, including two complete baseband processors and two RF front ends.

[0042] 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.

[0043] 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.

[0044] As another way, the electronic device can also only work in one frequency band at the same time, that is, it can only work in the 2.4G frequency band or the 5G frequency band at the same time. For example, dual-band wireless router A works in the 2.4G frequency band and the 5G frequency band at the same time, providing a 2.4G frequency band WiFi network and a 5G frequency band WiFi network. The WiFi module of the electronic device can only work in one frequency band. Therefore, the electronic device can only connect to the 2.4G frequency band WiFi network or the 5G frequency band WiFi network, and cannot connect to the WiFi networks of two frequency bands at the same time.

[0045] That is, when the WiFi module of the electronic device can operate in two frequency bands, the first channel can be part of all channels corresponding to the two frequency bands; when the WiFi module of the electronic device can only operate in one frequency band, the first channel can be part of all channels corresponding to one frequency band.

[0046] In the embodiment of the present application, the electronic device being in the screen-on state can be understood as the screen of the electronic device being in the screen-on state. When it is detected that the screen of the electronic device has just been in the screen-on state, it can be detected whether the WiFi function of the electronic device is in the on state. When it is detected that the WiFi function of the electronic device is in the on state, a wireless network scan is started on the first channel through a first scanning method.

[0047] The WiFi control component set in the electronic device can be used to control whether the WiFi function of the electronic device is turned on. The WiFi control component can be a pre-set component used to control whether the WiFi function of the electronic device is turned on.

[0048] Step S120: During the process of scanning the wireless network by the first scanning method, if a network usage demand is detected, the wireless network is scanned by the second scanning method, wherein the second scanning method is a method of scanning the wireless network on a second channel, and the number of channels of the second channel is greater than the number of channels of the first channel.

[0049] In the embodiment of the present application, the process of scanning a wireless network by using the first scanning method may refer to the process of continuing to scan the wireless network by using the first scanning method when a wireless network is scanned by using the first scanning method, or may refer to the process of not scanning a wireless network by using the first scanning method, which is not specifically limited here.

[0050] The network usage demand may be triggered by an application running in the electronic device or an application to be run. When the application has a need to send or receive data, it can be determined that a network usage demand has been generated. The running application may be at least one of an application running in the foreground, an application running in the background, and a designated application, which is not specifically limited here.

[0051] Among them, when the network usage demand is triggered by an application that is about to run in the electronic device, it can be predicted based on the user's historical usage data whether an application is about to start at the current time. If it is predicted that an application is about to run, it can be determined that a network usage demand has been generated.

[0052] The second scanning method is a periodic scanning method, which refers to a method of scanning a wireless network through a WiFi chip. For example, the scanning process of scanning a WiFi network through a periodic scanning method can be as follows: Figure 4 As shown, in Figure 4 In the process, the application in the application layer or the WiFi system module in the framework layer first initiates a WiFi network scan request, and sends the scan request to the WiFi HAL layer interface of the hardware abstraction layer, and then sends the scan request to the WiFi driver in the kernel layer through the WiFi HAL layer interface of the hardware abstraction layer, and then the WiFi driver in the kernel layer sends the scan request to the WiFi chip. After receiving the scan request, the WiFi chip responds to the scan request and starts WiFi network scanning.

[0053] pass Figure 3 and Figure 4 The differences between the wireless scanning methods shown are mainly:

[0054] (1) The two initiate scanning objects differently. The periodic scanning method can be initiated by the Wi-Fi system module at the framework layer or by a third-party application, such as Meituan and Baidu Maps. The PNO scanning method is mainly initiated by the Wi-Fi system module at the framework layer.

[0055] (2) Different chips perform scanning: The periodic scanning method is performed by the Wi-Fi chip, while the PNO scanning method is performed by the PNO firmware.

[0056] When the electronic device is in the screen-on state, the wireless network scan is first performed through the PNO scanning method, and then when a network usage demand is detected, the wireless network scan is switched to the periodic scanning method, which can reduce the power consumption of the electronic device.

[0057] The second channel refers to a preset channel for wireless network scanning through the WiFi chip. The second channel can be all channels corresponding to the working frequency band of the electronic device, or can be part of all channels corresponding to the preset working frequency band of the electronic device, and the number of channels of the second channel is greater than the number of channels of the first channel.

[0058] Wherein, when the second channel is a partial channel, the second channel can be determined by the wireless environment parameters of each channel in the current scenario. Wherein, the wireless environment parameters can be wireless data related to the WiFi connection, such as the number of wireless networks in the channel, the data transmission volume in the channel, the signal-to-noise ratio of the channel, etc. One or more of the above. Wherein, the data transmission volume can be the amount of data transmitted within a preset time, such as the amount of communication data within 1 second.

[0059] Of course, the wireless environment parameters may also include other parameters, such as the EVM (Error Vector Magnitude) value of the channel, the congestion index of the channel, etc. The acquisition method of various wireless environment parameters may refer to the existing acquisition method, which is not limited here.

[0060] When determining the second channel based on the wireless environment parameters of each channel, all channels corresponding to the working frequency band of the electronic device can be sorted based on the wireless environment parameters of the channel, and then the channel arranged at the specified position is used as the second channel. The specified position can be determined based on the number of channels of the first channel.

[0061] In the embodiment of the present application, when the second channel is determined based on the wireless environment parameters of each channel, the second channel may be determined based on one or more wireless environment parameters.

[0062] As one of the ways, when determining the second channel based on a wireless environment parameter of the channel, all channels corresponding to the working frequency band of the electronic device can be directly sorted according to the size of the wireless environment parameter, and the channel arranged at the specified position is used as the second channel. At this time, the wireless environment parameter can be one of the number of wireless networks in the channel, the amount of data transmission in the channel, the signal-to-noise ratio of the channel, the EVM (Error Vector Magnitude) value of the channel, the congestion index of the channel, etc.

[0063] Exemplarily, if the second channel is determined based on the congestion index of the channel, all channels corresponding to the working frequency band of the electronic device can be arranged in ascending order based on the congestion index of each channel, and then the channel arranged at the specified position is used as the second channel.

[0064] As another way, if the second channel is determined based on multiple wireless environment parameters of the channel, the multiple wireless environment parameters corresponding to each channel can be weighted and summed to obtain the evaluation value corresponding to each channel, and then all channels corresponding to the working frequency band of the electronic device can be sorted according to the evaluation value corresponding to each channel, and the channel arranged at the specified position is used as the second channel. At this time, the wireless environment parameter can be at least two of the number of wireless networks in the channel, the amount of data transmission in the channel, the signal-to-noise ratio of the channel, the EVM (Error Vector Magnitude) value of the channel, and the congestion index of the channel. Among them, before the weighted summation of the multiple wireless environment parameters corresponding to each channel is performed, a weight is set for each wireless environment network parameter in advance, and then when the weighted summation of the multiple wireless environment parameters corresponding to each channel is performed, the weighted summation can be performed based on the weight of each wireless environment network parameter. Among them, the weight corresponding to each wireless environment parameter can be set by relevant personnel based on experience, and is not specifically limited here.

[0065] Exemplarily, if the second channel is determined based on the crowding index of the channel and the signal-to-noise ratio of the channel, corresponding weights can be set in advance for the crowding index of the channel and the signal-to-noise ratio of the channel. For example, the weight of the crowding index of the channel is set to 0.4, and the signal-to-noise ratio of the channel is set to 0.6. After obtaining the crowding index and the signal-to-noise ratio of each channel, the crowding index of each channel is multiplied by 0.4, the first value, and the signal-to-noise ratio of each channel is multiplied by 0.6 to obtain the second value. Then, the first value and the second value are added to obtain the evaluation value of each channel. After obtaining the evaluation value of each channel, all channels corresponding to the working frequency band of the electronic device can be sorted according to the evaluation value corresponding to each channel, and the channel arranged at the specified position is used as the second channel.

[0066] Optionally, in an embodiment of the present application, each channel has a different scanning duration, and the second channel can be determined based on the scanning duration of each channel. The scanning duration can be a pre-set duration that can scan all wireless networks in the channel, or a duration determined based on the wireless environment parameters of the channel, which is not specifically limited here.

[0067] When determining the second channel based on the scanning duration of each channel, similar to the above method, all channels corresponding to the working frequency band of the electronic device can be sorted based on the scanning duration, and the channel arranged at the specified position can be used as the second channel.

[0068] During the process of scanning the wireless network by the first scanning method, it is detected in real time whether there is a network usage demand. If so, it is switched to continue scanning the wireless network by the second scanning method. Wherein, when the network usage demand is a network usage demand generated by a specified application, during the process of scanning the wireless network by the first scanning method, it is switched to scanning the wireless network by the second scanning method only when the network usage demand generated by the specified application is detected. Wherein, the specified application can be an application with a large network traffic requirement that is pre-set, such as a game application.

[0069] Optionally, in an embodiment of the present application, when a wireless network is scanned by the second scanning method, if there are multiple wireless networks scanned, the signal strengths of the multiple wireless networks are obtained, and the wireless network with the strongest signal strength is connected. When connecting to the wireless network with the strongest signal strength, the following situations may exist:

[0070] In the first case, the electronic device has been connected to a wireless network scanned by the first scanning method. At this time, it is necessary to determine the signal strength of the connected wireless network and the wireless network with the largest signal strength scanned by the second scanning method. If the signal strength of the wireless network with the largest signal strength is greater than or equal to the signal strength of the wireless network to which the electronic device is connected, the wireless network switching is not performed; conversely, if the signal strength of the wireless network with the largest signal strength is less than the signal strength of the wireless network to which the electronic device is connected, the network switching is performed.

[0071] In the second case, the electronic device has not yet connected to the wireless network scanned by the first scanning method. At this time, the electronic device can directly connect to the wireless network with the strongest signal strength scanned by the second scanning method.

[0072] The present application provides a wireless scanning method, which first performs a wireless network scan on a first channel when the screen of an electronic device is on, and then starts to perform a wireless network scan on a second channel when a network usage demand is monitored. Since the number of channels of the second channel is greater than the number of channels of the first channel, it is possible to avoid performing wireless network scans on more channels due to the screen being on for reasons not related to network usage demand, thereby reducing the power consumption of the electronic device.

[0073] See also Figure 5 , a wireless scanning method provided in an embodiment of the present application is applied to an electronic device, the method comprising:

[0074] Step S210: when the electronic device is in the screen-on state, obtaining the network connection state of the electronic device.

[0075] In the embodiment of the present application, the network connection state of the electronic device may include a connection state and a non-connection state, wherein the connection state is used to indicate that the electronic device has been connected to a wireless network, and the non-connection state indicates that the electronic device has not been connected to a wireless network.

[0076] As a method, when it is detected that the electronic device is in the screen-on state, the network connection status of the electronic device can be detected; of course, the network connection status of the electronic device can also be detected before detecting whether the electronic device is in the screen-on state. There is no specific limitation on the timing of obtaining the network connection status of the electronic device.

[0077] Among them, detecting whether the electronic device is in a screen-on state and detecting the network connection state of the electronic device can be performed in real time or periodically.

[0078] As one of the ways, if the switching frequency between the screen-on state and the screen-off state of the electronic device is higher than the preset frequency, detecting whether the electronic device is in the screen-on state and detecting the network connection state of the electronic device can be performed in real time; conversely, if the switching frequency between the screen-on state and the screen-off state of the electronic device is lower than the preset frequency, detecting whether the electronic device is in the screen-on state and detecting the network connection state of the electronic device can be performed periodically. The switching frequency can refer to the number of switching times within a historical preset time period.

[0079] As another way, when the electronic device is in a screen-on state, it is detected whether there is a saved wireless network; if there is a saved wireless network, the network connection status of the electronic device is obtained.

[0080] In the embodiment of the present application, the network connection status of the electronic device may refer to the wireless network connection status of the electronic device.

[0081] When the electronic device is in a screen-on state, it is possible to first detect whether a saved wireless network is stored in the electronic device, and then obtain the network connection status of the electronic device when it is detected that a saved wireless network exists.

[0082] The saved wireless network may be a wireless network that the electronic device has been connected to or a wireless network that the electronic device has scanned. As one of the ways, if the saved wireless network is a wireless network that the electronic device has scanned, then the saved wireless network may be a wireless network whose signal strength is greater than a preset signal strength among the wireless networks that the electronic device has scanned.

[0083] As another method, if the saved wireless network is a wireless network that the electronic device has scanned before, the saved wireless network may be a wireless network that has been scanned before when the electronic device is at a specified location and has a signal strength greater than a preset signal strength. The specified location may be a location where the electronic device frequently scans for wireless networks.

[0084] Optionally, similarly, if the saved wireless network is a wireless network that the electronic device has connected to before, then the saved wireless network may be a wireless network that the electronic device has connected to before when the electronic device is at a specified location, wherein “once” may refer to a preset historical time period.

[0085] In an embodiment of the present application, the saved wireless networks can be stored in a preset storage area. When it is detected that the electronic device is in a screen-on state, it can be queried in the preset storage area whether a wireless network that the electronic device has been connected to or a wireless network that has been scanned is stored. The preset storage area can store saved wireless networks corresponding to multiple electronic devices.

[0086] Step S220: If the network connection state is a disconnected state, scan the wireless network using the first scanning method.

[0087] In the embodiment of the present application, if the network connection state of the electronic device is a disconnected state, a wireless network scan can be performed on a first channel in a second scanning period using a first scanning method, wherein the first channel is a channel where a stored wireless network is located.

[0088] The second scanning cycle is a preset cycle for performing wireless network scanning on the first channel by PNO scanning. Exemplarily, the minimum time interval of the second scanning cycle min=20s, and the maximum time interval max=20s*3=60s, that is, the second scanning cycle can be set to a cycle of 20s, 20s, 20s, 60s, 60s, ..., 60s, that is, the first three scanning intervals are 20s, and the wireless network scanning is performed at intervals of 60s from the fourth time, and the scanned channels are limited to the channels where the saved networks are located.

[0089] Specifically, for the first scanning mode, the electronic device will actively send detection signals on the channels it supports in sequence to detect wireless networks existing around it. The detection signal sent by the electronic device is called a probe request frame (ProbeRequest), and the network signal is obtained by receiving a probe response frame (Probe Response). The probe request frame can be divided into two categories, one is an unspecified service set identifier (Service Set Identifier, SSID), and the other is a specified service set identifier. If the service set identifier is not specified in the probe request frame, it means that this probe request wants to obtain all the wireless network signals that can be obtained around it, and all wireless access points that receive this broadcast probe request frame will respond to the electronic device. If the service set identifier is specified in the probe request frame, it means that the electronic device only wants to find a specific service set identifier and does not need other wireless networks except the specified service set identifier. After receiving the probe request frame, the wireless access point will only respond to the electronic device if it finds that the service set identifier in the probe request frame is the same as its own service set identifier.

[0090] In the embodiment of the present application, when it is detected that the electronic device is in the screen-on state, only when it is detected that there is a saved wireless network in the electronic device and the network connection state of the electronic device is in the disconnected state, the wireless network scan will be performed on the first channel through the first scanning method. The wireless networks scanned by the first scanning method can be presented in the form of a list. For example, the wireless networks scanned by the first scanning method can be presented as follows: Figure 6 As shown, in Figure 6 The name of each wireless network scanned may be displayed, and of course the signal strength or other information of each wireless network may also be displayed, which is not specifically limited here.

[0091] Before performing a wireless network scan on the first channel using the first scanning method, it can be determined whether the electronic device is in a wireless network setting interface. If the electronic device is in the wireless network setting interface, the wireless network scan can be performed on the first channel in a fixed period using the first scanning method. The time interval of the fixed period can be set to 10s.

[0092] If the electronic device is not in the wireless network setting interface, the wireless network scan may be performed on the first channel in the second scanning period using the first scanning method.

[0093] If the electronic device is not in the wireless network setting interface, and the network connection state of the electronic device is a connected state, the wireless network scan is not performed on the first channel by using the first scanning method.

[0094] Step S230: During the process of scanning the wireless network by using the first scanning method, if a network usage demand is detected, the network traffic corresponding to the network usage demand is obtained.

[0095] In the embodiment of the present application, network traffic refers to the set of all packets with the same five-tuple (source IP address, destination IP address, transport layer protocol, source port and port) passing through a certain observation point in the network within a specific time interval. That is, network traffic refers to the amount of traffic required or applied for network usage within a preset time period.

[0096] As a method, during the process of scanning the wireless network by the first scanning method, if a network usage demand is detected, the network traffic corresponding to the network usage demand is obtained. Wherein, the network usage demand can be generated for multiple applications, and then the network traffic that needs to be obtained at this time can include the sum of the traffic required to be used by the multiple applications in a preset time period. Wherein, when obtaining the network traffic corresponding to the network usage demand, a network traffic monitoring interface can be set for each application in advance, so that the traffic size required to be used by each application in the preset time period can be obtained through the monitoring interface corresponding to each application.

[0097] Step S240: If the network traffic exceeds the traffic threshold, scan the wireless network using the second scanning method.

[0098] In the embodiment of the present application, the flow threshold is a preset critical value of the flow size that triggers the wireless network scanning through the second scanning mode. For example, the flow threshold can be set to 200KB / s. After obtaining the network flow corresponding to the network usage demand, the network flow is compared with the flow threshold. If the network flow is greater than the flow threshold, the wireless network scanning is switched to the second scanning mode.

[0099] The flow threshold may be changed according to actual needs. As a method, the flow threshold may be changed according to the number of applications running in the electronic device. The more applications running in the electronic device, the larger the corresponding flow threshold may be set. Conversely, the fewer applications running in the electronic device, the smaller the corresponding flow threshold may be set.

[0100] As another way, the traffic threshold can also be changed according to the priority of the application running in the electronic device. The higher the priority of the application running in the electronic device, the larger the corresponding traffic threshold can be set. Conversely, the lower the priority of the application running in the electronic device, the smaller the corresponding traffic threshold can be set. Among them, the priority of the application can be set based on the type of application. For example, the priority of game applications is higher than the priority of audio and video playback applications; the priority of audio and video playback applications is higher than the priority of chat applications; the priority of chat applications can be higher than the priority of system applications, etc., which are not specifically limited here.

[0101] As one mode, the wireless network is scanned in the first scanning cycle by using the second scanning mode.

[0102] Among them, the first scanning period is a binary exponential backoff period, and the second channel is all channels. The binary exponential backoff period refers to a scanning period set based on a binary exponential backoff algorithm. Among them, the principle of the binary exponential backoff algorithm is that the scanning period is doubled for each scan, that is, the time interval of the next scan is twice the time interval of the previous scan. For example, assuming that the first preset period is 15s, the second preset period is 120s, the minimum period of the binary exponential backoff algorithm is 15s, and the maximum period is 120s, then after detecting that the network traffic exceeds the traffic threshold, the scanning period of the first scan is 15s set in an unstable state, the scanning period of the second scan is increased to 30s, the scanning period of the third scan is increased to 60s, and the scanning period of the fourth scan is increased to 120s. At this point, the scanning period is no longer increased, and the wireless network scan is performed according to the scanning period of 120s until the network connection state of the electronic device is detected to be in a connected state.

[0103] In an embodiment of the present application, exemplarily, the minimum time interval of the first scanning cycle = 15s, the maximum time interval = 120s, and the second scanning cycle can be set to: interval*(2^n){15s, 15s, 15s, 15s, 15s, 15s, 15s, 30s, 60s, 120s, 120s, 120s, ...}, that is, the first 8 times are wireless network scans on all channels at a time interval of 15s, and then when the wireless network scan is performed for the 9th time, the wireless network scan is performed on all channels according to the binary exponential backoff period, until it backs off to 120s, then the wireless network scan is performed on all channels at a time interval of 120s.

[0104] Similarly, when performing wireless network scanning on all channels through the second scanning method, the scanning period of the second scanning method can also be determined according to whether the electronic device is in the wireless network setting interface. Specifically, if the electronic device is in the wireless network setting interface, the wireless network scanning can be performed on all channels at a fixed period through the second scanning method; if the electronic device is not in the wireless network setting interface, the wireless network scanning can be performed on all channels through the second scanning method with a binary exponential backoff period.

[0105] When the electronic device is not in the wireless network setting interface and the network connection state of the electronic device is a connected state, the wireless network scan is not performed on all channels through the second scanning mode.

[0106] The present application provides a wireless scanning method, first when the electronic device is in a screen-on state, the network connection state of the electronic device is obtained, if the network connection state is a non-connected state, the wireless network is scanned by a first scanning method, and then in the process of scanning the wireless network by the first scanning method, if a network usage demand is detected, the network traffic corresponding to the network usage demand is obtained, if the network traffic exceeds the traffic threshold, the wireless network is scanned by a second scanning method. Through the above method, when the electronic device is in a screen-on state, if no network usage demand with a large network traffic is detected, the wireless network scan is not performed on all channels by the second scanning method, which can reduce the power consumption of the electronic device and make the electronic device more flexible when performing wireless network scanning.

[0107] See also Figure 7 , a wireless scanning method provided in an embodiment of the present application is applied to an electronic device, the method comprising:

[0108] Step S310: When the electronic device is in a screen-on state, the wireless network is scanned by a first scanning method, where the first scanning method is a method of performing wireless network scanning on a first channel.

[0109] Step S320: During the process of scanning the wireless network by the first scanning method, if a network usage demand is detected, the wireless network is scanned by the second scanning method, wherein the second scanning method is a method of scanning the wireless network on a second channel, and the number of channels of the second channel is greater than the number of channels of the first channel.

[0110] Step S330: When the electronic device is in the screen-off state, if the network connection state of the electronic device is a disconnected state, scan the wireless network using the first scanning method.

[0111] In an embodiment of the present application, when the electronic device is in the screen-off state, if the network connection state of the electronic device is a non-connected state, the wireless network can be scanned by the PNO scanning method. At this time, the wireless network scan can be performed on the first channel by the PNO scanning method. The first channel can be a channel for a specific setting to perform a wireless network scan, or a channel where a wireless network is stored.

[0112] As a method, when the electronic device is in the screen-off state, if the network connection state of the electronic device is a non-connected state, it is detected whether there is a saved wireless network; if there is a saved wireless network, the wireless network is scanned using the first scanning method with a second scanning cycle.

[0113] In an embodiment of the present application, when the electronic device is in the screen-off state, if the network connection state of the electronic device is a non-connected state, and there is a saved wireless network in the electronic device, the wireless network scan is performed in a second scanning cycle through the PNO scanning method. Among them, the second scanning cycle is a pre-set period for performing wireless network scanning on the first channel through the PNO scanning method. Exemplarily, the minimum time interval min of the second scanning cycle is 20s, and the maximum time interval max is 20s*3=60s, that is, the second scanning cycle can be set to a period of 20s, 20s, 20s, 60s, 60s, ..., 60s, that is, the first three scans are spaced at an interval of 20s, and wireless network scanning is performed at intervals of 60s starting from the fourth time, and the scanned channels are limited to the channels where the saved networks are located.

[0114] When the electronic device is in the screen-off state, if the network connection state of the electronic device is a non-connected state, but there is no saved wireless network in the electronic device, no wireless network scan is performed.

[0115] When the electronic device is in the screen-off state, if the network connection state of the electronic device is connected and there is a saved wireless network in the electronic device, the wireless network scan is not performed.

[0116] The present application provides a wireless scanning method, when the electronic device is in a screen-on state, the wireless network is scanned by a first scanning method, during the process of scanning the wireless network by the first scanning method, if a network use demand is detected, the wireless network is scanned by a second scanning method, when the electronic device is in a screen-off state, if the network connection state of the electronic device is a non-connected state, the wireless network is scanned by the first scanning method. Through the above method, when the electronic device is in a screen-on state, the wireless network is first scanned on the first channel, and when the network use demand is monitored, the wireless network scan is started on the second channel. Since the number of channels of the second channel is more than the number of channels of the first channel, it can avoid scanning the wireless network on more channels caused by the screen being on without the need for network use, thereby reducing the power consumption of the electronic device.

[0117] See also Figure 8 , an embodiment of the present application provides a wireless scanning device 400, the device 400 comprising:

[0118] The first scanning unit 410 is used to scan the wireless network through a first scanning method when the electronic device is in a screen-on state. The first scanning method is a method of scanning the wireless network on a first channel.

[0119] As a method, the first scanning unit 410 is specifically used to obtain the network connection status of the electronic device when the electronic device is in a screen-on state; if the network connection status is a non-connected state, scan the wireless network through the first scanning method.

[0120] Furthermore, the first scanning unit 410 is specifically used to detect whether there is a saved wireless network when the electronic device is in a screen-on state; if there is a saved wireless network, obtain the network connection state of the electronic device.

[0121] As another way, the first scanning unit 410 is also specifically used to scan the wireless network through the first scanning method when the electronic device is in the screen-off state and the network connection state of the electronic device is a non-connected state.

[0122] Furthermore, the first scanning unit 410 is also specifically used to detect whether there is a saved wireless network when the electronic device is in the screen-off state, if the network connection state of the electronic device is a non-connected state; if there is a saved wireless network, scan the wireless network using the first scanning method with a second scanning cycle.

[0123] The second scanning unit 420 is used to scan the wireless network through a second scanning method if a network usage demand is detected during the process of scanning the wireless network through the first scanning method, wherein the second scanning method is a method of scanning the wireless network on a second channel, and the number of channels of the second channel is greater than the number of channels of the first channel.

[0124] As a method, the second scanning unit 420 is specifically used to obtain the network traffic corresponding to the network usage demand if a network usage demand is detected during the process of scanning the wireless network through the first scanning method; if the network traffic exceeds the traffic threshold, scan the wireless network through the second scanning method.

[0125] Further, the second scanning unit 420 is specifically configured to scan the wireless network in the second scanning mode with a first scanning period, wherein the first scanning period is a binary exponential backoff period.

[0126] It should be noted that the device embodiment in the present application corresponds to the aforementioned method embodiment. The specific principles in the device embodiment can be found in the contents of the aforementioned method embodiment and will not be repeated here.

[0127] The following will be combined Fig. 9 An electronic device provided by the present application is described.

[0128] See also Fig.10 Based on the above wireless scanning method and device, the embodiment of the present application also provides another electronic device 800 that can execute the above wireless scanning method. The electronic device 800 includes one or more (only one is shown in the figure) processors 802, a memory 804 and a network module 806 that are coupled to each other. Among them, the memory 804 stores a program that can execute the content of the above embodiment, and the processor 802 can execute the program stored in the memory 804.

[0129] Among them, the processor 802 may include one or more processing cores. The processor 802 uses various interfaces and lines to connect various parts of the entire electronic device 800, and executes various functions and processes data of the electronic device 800 by running or executing instructions, programs, code sets or instruction sets stored in the memory 804, and calling data stored in the memory 804. Optionally, the processor 802 can be implemented in at least one hardware form of digital signal processing (Digital Signal Processing, DSP), field programmable gate array (Field-Programmable Gate Array, FPGA), and programmable logic array (Programmable Logic Array, PLA). The processor 802 can integrate one or a combination of a central processing unit (Central Processing Unit, CPU), a graphics processing unit (Graphics Processing Unit, GPU) and a modem. Among them, the CPU mainly processes the operating system, user interface and application programs; the GPU is responsible for rendering and drawing display content; and the modem is used to process wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor 802, but may be implemented separately through a communication chip.

[0130] The memory 804 may include a random access memory (RAM) or a read-only memory (ROM). The memory 804 may be used to store instructions, programs, codes, code sets or instruction sets. The memory 804 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the following various method embodiments, etc. The data storage area may also store data (such as a phone book, audio and video data, chat record data) created by the electronic device 800 during use.

[0131] The network module 806 is used to receive and send electromagnetic waves, realize the mutual conversion between electromagnetic waves and electrical signals, so as to communicate with a communication network or other devices, such as communicating with electronic devices. The network module 806 may include various existing circuit elements for performing these functions, such as antennas, radio frequency transceivers, digital signal processors, encryption / decryption chips, user identity modules (SIM) cards, memories, etc. The network module 806 may communicate with various networks such as the Internet, corporate intranets, wireless networks, or communicate with other devices via wireless networks. The above-mentioned wireless networks may include cellular telephone networks, wireless network scanning, or metropolitan area networks. For example, the network module 806 may exchange information with a base station.

[0132] Please refer to Fig.10 , which shows a structural block diagram of a computer-readable storage medium provided in an embodiment of the present application. The computer-readable storage medium 900 stores program codes, which can be called by a processor to execute the method described in the above method embodiment.

[0133] The computer-readable storage medium 900 may be an electronic memory such as a flash memory, an EEPROM (electrically erasable programmable read-only memory), an EPROM, a hard disk, or a ROM. Optionally, the computer-readable storage medium 900 includes a non-transitory computer-readable storage medium. The computer-readable storage medium 900 has storage space for program code 910 that performs any method step in the above method. These program codes can be read from or written to one or more computer program products. The program code 910 can be compressed, for example, in an appropriate form.

[0134] The present application provides a wireless scanning method, device, electronic device and storage medium. When the electronic device is in a screen-on state, the wireless network is first scanned by a first scanning method, wherein the first scanning method is a method of performing wireless network scanning on a first channel. During the process of scanning the wireless network by the first scanning method, if a network usage demand is detected, the wireless network is scanned by a second scanning method, wherein the second scanning method is a method of performing wireless network scanning on a second channel, and the number of channels of the second channel is greater than the number of channels of the first channel. By the above method, when the electronic device is in a screen-on state, a wireless network scan is first performed on the first channel, and when a network usage demand is monitored, a wireless network scan is started on the second channel. Since the number of channels of the second channel is greater than the number of channels of the first channel, it is possible to avoid performing wireless network scanning on more channels caused by the screen being on without a network usage demand, thereby reducing the power consumption of the electronic device.

[0135] The embodiments of the present invention are described above in conjunction with the accompanying drawings, but the present invention is not limited to the above-mentioned specific implementation modes, which are merely illustrative rather than restrictive. Under the guidance of the present invention, ordinary technicians in this field can also make many forms without departing from the scope of protection of the present invention and the claims, all of which are within the protection of the present invention.

Claims

1. A wireless scanning method, characterized in that: Applied to electronic equipment, the method comprises: When the electronic device is in a screen-on state, scanning a wireless network in a first scanning mode, wherein the first scanning mode is a mode of performing a wireless network scan on a first channel; During the process of scanning the wireless network through the first scanning method, if a network usage demand is detected, the wireless network is scanned through the second scanning method, wherein the second scanning method is a method of scanning the wireless network on a second channel, and the number of channels of the second channel is greater than the number of channels of the first channel.

2. The method according to claim 1, characterized in that: When the electronic device is in a screen-on state, scanning a wireless network by a first scanning method includes: When the electronic device is in a screen-on state, obtaining a network connection state of the electronic device; If the network connection state is a non-connection state, the wireless network is scanned using the first scanning method.

3. The method according to claim 2, characterized in that When the electronic device is in a screen-on state, obtaining a network connection state of the electronic device includes: When the electronic device is in a screen-on state, detecting whether there is a saved wireless network; If there is a saved wireless network, the network connection status of the electronic device is obtained.

4. The method according to claim 1, characterized in that: In the process of scanning the wireless network by the first scanning method, if a network use demand is detected, scanning the wireless network by the second scanning method includes: In the process of scanning the wireless network by using the first scanning method, if a network usage demand is detected, obtaining network traffic corresponding to the network usage demand; If the network traffic exceeds the traffic threshold, the wireless network is scanned using the second scanning method.

5. The method according to claim 1, characterized in that Scanning the wireless network by the second scanning mode includes: The wireless network is scanned in the first scanning period using the second scanning mode.

6. The method according to claim 5, characterized in that The first scanning period is a binary exponential backoff period.

7. The method according to claim 1, characterized in that The method further comprises: When the electronic device is in the screen-off state, if the network connection state of the electronic device is a non-connected state, the wireless network is scanned by using the first scanning method.

8. The method according to claim 7, characterized in that When the electronic device is in the screen-off state, if the network connection state of the electronic device is a non-connected state, scanning a wireless network by using the first scanning method includes: When the electronic device is in the screen-off state, if the network connection state of the electronic device is a non-connected state, detecting whether there is a saved wireless network; If there is a saved wireless network, the wireless network is scanned in a second scanning cycle using the first scanning method.

9. The method according to any one of claims 1 to 8, characterized in that: The first channel is the channel where the saved wireless network is located; the second channel is all channels.

10. A wireless scanning device, characterized in that: Running on an electronic device, the device comprises: A first scanning unit, configured to scan a wireless network in a first scanning mode when the electronic device is in a screen-on state, wherein the first scanning mode is a mode of performing wireless network scanning on a first channel; The second scanning unit is used to scan the wireless network through a second scanning method if a network usage demand is detected during the process of scanning the wireless network through the first scanning method, wherein the second scanning method is a method of scanning the wireless network on a second channel, and the number of channels of the second channel is greater than the number of channels of the first channel.

11. An electronic device, characterized in that: The method comprises one or more processors; one or more programs are stored in the memory and configured to execute the method according to any one of claims 1 to 9 by the one or more processors.

12. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores program code, wherein when the program code is executed by a processor, the method according to any one of claims 1 to 9 is executed.