Multiband WIFI scanning method and device, electronic equipment and storage medium
By detecting the parallel scanning of channels in different operating frequency bands of multi-band Wi-Fi chips, the problem of high time cost of multi-band Wi-Fi scanning is solved, and the speed at which users refresh the Wi-Fi list is improved.
Patent Information
- Application Number
- CN202211243367.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-10-11
- Publication Date
- 2026-02-27
- Estimated Expiration
- 2042-10-11
AI Technical Summary
Existing technologies for scanning multi-band Wi-Fi are time-consuming and costly, resulting in a slow user experience when refreshing the Wi-Fi list.
By detecting whether the target WIFI chip is a multi-band chip, if so, the single-band channel to be scanned is determined within its corresponding channel range, and parallel scanning is performed to reduce scanning time costs.
It reduces time costs in multi-band Wi-Fi scanning and improves the speed at which users refresh the Wi-Fi list.
Smart Images

Figure CN115643627B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of wireless communication, in particular to a multi-band WIFI scanning method and device, electronic equipment and readable storage medium. BACKGROUND
[0002] With the continuous development of information technology, WIFI has played a crucial role in Internet of Things networking due to its high transmission speed, easy deployment, scalability and other advantages. Currently, WIFI chips usually have three communication specifications: 2.4GHz single frequency, 2.4GHz+5GHz dual frequency and 2.4GHz+5GHz+6GHz triple frequency. Different frequency bands have corresponding channel ranges, so users need to scan each channel during WIFI scanning. For example, for a WIFI chip with 2.4GHz single frequency communication specification, the WIFI scanning method is to scan the corresponding channels of the frequency band one by one. The same applies to multi-band WIFI scanning. For example, for 2.4GHz+5GHz+6GHz, the scanning process usually involves scanning the channels corresponding to the 2.4G frequency band first, and then scanning the channels corresponding to the 5G and 6G frequency bands in turn. Since scanning channels requires a certain amount of physical time, refreshing the WIFI list of a WIFI device with multi-band communication specifications often takes a long time, i.e., the current multi-band WIFI scanning time cost is high. SUMMARY
[0003] The main purpose of the present application is to provide a multi-band WIFI scanning method, device, electronic equipment and readable storage medium, which aims to solve the technical problem of high multi-band WIFI scanning time cost in the prior art.
[0004] To achieve the above-mentioned purpose, the present application provides a multi-band WIFI scanning method, which comprises:
[0005] If a channel scanning instruction of a target WIFI chip is received, it is detected whether the target WIFI chip is a multi-band WIFI chip;
[0006] If yes, a single-band channel to be scanned is determined within the channel range corresponding to the multi-band WIFI chip, wherein the single-band channel to be scanned is a channel to be scanned corresponding to different operating frequency bands of the multi-band WIFI chip;
[0007] The single-band channel to be scanned is scanned in parallel to obtain a channel scanning result of the target WIFI chip.
[0008] To achieve the above object, the application further provides a multi-band WIFI scanning device, which comprises:
[0009] a detection module, configured to detect whether the target WIFI chip is a multi-band WIFI chip if the channel scanning instruction of the target WIFI chip is received;
[0010] a determination module, configured to determine a single-band channel to be scanned in a channel range corresponding to the multi-band WIFI chip if the target WIFI chip is the multi-band WIFI chip, wherein the single-band channel to be scanned is a channel to be scanned corresponding to different working bands of the multi-band WIFI chip;
[0011] a scanning module, configured to perform parallel scanning on the single-band channel to be scanned to obtain a channel scanning result of the target WIFI chip.
[0012] The application further provides an electronic device, which comprises a memory, a processor and a program of the multi-band WIFI scanning method stored in the memory and executable on the processor, and the program of the multi-band WIFI scanning method can realize the steps of the multi-band WIFI scanning method as described above when executed by the processor.
[0013] The application further provides a computer readable storage medium, which stores a program of a multi-band WIFI scanning method, and the program of the multi-band WIFI scanning method can realize the steps of the multi-band WIFI scanning method as described above when executed by a processor.
[0014] The application further provides a computer program product, which comprises a computer program, and the computer program can realize the steps of the multi-band WIFI scanning method as described above when executed by a processor.
[0015] The application provides a multi-band WIFI scanning method and device, electronic equipment and a readable storage medium, that is, if a channel scanning instruction of a target WIFI chip is received, it is detected whether the target WIFI chip is a multi-band WIFI chip; then if yes, a single-band channel to be scanned is determined in a channel range corresponding to the multi-band WIFI chip, wherein the single-band channel to be scanned is a channel to be scanned corresponding to different working bands of the multi-band WIFI chip, so as to achieve the purpose of determining the channel to be scanned corresponding to different working bands of the multi-band WIFI chip when it is detected that the target WIFI chip is a multi-band WIFI chip; then the single-band channel to be scanned is scanned in parallel, and a channel scanning result of the target WIFI chip is obtained. Since the channels to be scanned corresponding to different working bands are scanned in parallel, that is, if the multi-band WIFI chip is a 2.4GHz+5GHz+6GHz three-band WIFI chip, the scanning process is to scan the channels corresponding to 2.4GHz, 5GHz and 6GHz in parallel, rather than using a sequential scanning mode to scan 2.4GHz, 5GHz and 6GHz in turn, so that the technical defect that the user often has a slow refreshing experience when refreshing the WIFI list of a WIFI device with a multi-band communication specification is overcome, and the time cost of multi-band WIFI scanning is reduced. BRIEF DESCRIPTION OF DRAWINGS
[0016] The accompanying drawings, which are incorporated into and form part of the specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the application.
[0017] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the accompanying drawings needed to be used in the embodiments or prior art description will be briefly introduced. Obviously, those skilled in the art can obtain other drawings according to these drawings without any creative effort.
[0018] Figure 1 The flowchart of the first embodiment of the multi-band WIFI scanning method of the present application;
[0019] Figure 2 The channel diagram of the WIFI chip supporting only the 2.4GHz band in the multi-band WIFI scanning method of the present application;
[0020] Figure 3 The flowchart of the second embodiment of the multi-band WIFI scanning method of the present application;
[0021] Figure 4A schematic diagram of a multi-band WIFI scanning device according to an embodiment of the present application;
[0022] Figure 5 A device structure schematic diagram of a hardware operating environment involved in a multi-band WIFI scanning method according to an embodiment of the present application.
[0023] The purposes, functional features and advantages of the present application will be further described with reference to the embodiments and the accompanying drawings. DETAILED DESCRIPTION
[0024] In order to make the above objectives, features and advantages of the present application more apparent, clear and understandable, the technical solutions in the embodiments of the present application will be described clearly and completely below with reference to the accompanying drawings of the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without any creative work fall within the protection scope of the present application.
[0025] Embodiment One
[0026] First of all, it should be understood that with the continuous development of wireless communication technology, WIFI has also occupied a large share in the mobile product networking market, and WIFI has developed from WIFI4 and WIFI5 to WIFI6 and WIFI7 today, it is not difficult to predict that WIFI chips supporting multiple working frequency bands will become mainstream in the future market. At present, WIFI chips are generally 2.4GHz single frequency, 2.4GHz+5GHz dual frequency, 2.4GHz+5GHz+6GHz three specifications, among them, WIFI 2.4GHz contains 2.412GHz~2.482GHz frequency band, WIFI 5GHz contains 5.2GHz and 5.8GHz, 5.2GHz contains 5.150GHz~5.350GHz frequency band, 5.8GHz frequency band contains 5.725GHz~5.850GHz frequency band, 6GHz frequency band contains 5.946GHz~7.105GHz frequency band, at the same time, in different working frequency band intervals, in order to avoid competition between devices, each working frequency band interval will be divided into a preset number of channels, for example, under 20MHz bandwidth, WIFI 2.4GHz has 13 channels, WIFI 5.2GHz has 8 completely independent channels, WIFI 5.8GHz has 5 independent channels, WIFI 6GHz has 59 channels, when the user refreshes the WIFI list in the application layer, the WIFI card will scan the channel frequency band on the working frequency band supported by the WIFI chip, for the existing WIFI chip, its WIFI scanning process is a sequential scanning process of the working frequency band, for example, a WIFI chip that only supports 2.4GHz frequency band, it needs to scan 13 channels in China, each channel scanning needs to spend about 100ms of physical time, that is, it takes 1300ms to scan the WIFI chip once, and for WIFI chips supporting 2.4GHz+5GHz+6GHz frequency bands, they need to scan 85 channels, among them, each DFS(Dynamic frequency selection, dynamic frequency selection) channel scanning time is 70ms, and each non-DFS is still 100ms, so the whole scanning process will take 8380ms, undoubtedly, in order to meet the user's use demand, WIFI chips supporting multiple working frequency bands have gradually replaced WIFI chips supporting single working frequency band, but the slow refreshing of WIFI list has affected the user's use experience, and WIFI chips supporting more working frequency bands will become the market trend, according to the current scanning method, when the working frequency band increases, the delay of WIFI list refreshing will further increase, therefore, there is an urgent need for a method to reduce the time cost of multi-band WIFI scanning.
[0027] The embodiment of the present application provides a multi-band WIFI scanning method, in the first embodiment of the multi-band WIFI scanning method, referring to Figure 1 , the multi-band WIFI scanning method comprises:
[0028] Step S10, if a channel scanning instruction of a target WIFI chip is received, whether the target WIFI chip is a multi-band WIFI chip is detected;
[0029] Step S20, if yes, a single-band channel to be scanned is determined in a channel range corresponding to the multi-band WIFI chip, wherein the single-band channel to be scanned is a channel to be scanned corresponding to different working frequency bands of the multi-band WIFI chip;
[0030] Step S30, the single-band channel to be scanned is scanned in parallel, and a channel scanning result of the target WIFI chip is obtained.
[0031] In the embodiment, it is to be explained that the target WIFI chip is a WIFI chip to be scanned on a target device, and can be a WIFI chip supporting a single working frequency band or a WIFI chip supporting multiple working frequency bands; the target device is a smart device provided with a WIFI chip, and can be a mobile phone, a personal PC or a computer; when the WIFI chip supports multiple working frequency bands, a multi-SSID (Service Set identifier) function of the target device can be a same-frequency working mode and a different-frequency working mode; the different-frequency working mode is a mode in which a chip manufacturer sends a "CTS-To-Self" message to protect a corresponding channel; the CTS message makes a workstation on the current channel keep silent for a period of time, so that the WIFI chip can work on another channel in a short time, thereby achieving the purpose of channel work on different working frequency bands; the channel scanning instruction is used to scan hotspot information under all working frequency bands of the target device, and is specifically embodied by device information on channels of different frequency bands; the device information can be device name or other device identifiers; the channel scanning instruction can be triggered by a user through voice or key instructions in an application layer, or can be automatically triggered by the target device according to a preset scanning period; the preset scanning period can be 1 day, 2 days or 3 days; for example, in an implementable mode, referring to Figure 2 , Figure 2In order to represent the channel diagram of the WIFI chip supporting only 2.4 GHz frequency band, wherein 1-13 represent channel numbers, 20 MHz is the bandwidth, 2.402 GHz is the low end frequency of the channel, and 2.483 GHz is the high end frequency of the channel. The target device can share 13 channels, and the center frequencies of the channels are 2412 MHz, 2417 MHz, 2422 MHz, 2427 MHz, 2432 MHz, 2437 MHz, 2442 MHz, 2447 MHz, 2452 MHz, 2547 MHz, 2462 MHz, 2467 MHz and 2472 MHz. If the user opens WIFI on the target device (Station, STA), the WIFI card starts scanning the channel. If the wireless access point (Access Point, AP) device names A, B, C and D are scanned in the 13 non-overlapping channels, the device names A, B, C and D can be presented in the WIFI list of the target device, and the user can further input instructions to access the wireless network.
[0032] In addition, it should be noted that the target WIFI chip includes a single-band WIFI chip and a multi-band WIFI chip. The single-band WIFI chip is used to represent a WIFI chip supporting only a single operating frequency band, which can be a WIFI chip supporting only a 2.4 GHz frequency band. The multi-band WIFI chip is used to represent a WIFI chip supporting multiple operating frequency bands, which can be a WIFI chip supporting 2.4 GHz+5 GHz operating frequency bands or a WIFI chip supporting 2.4 GHz+5 GHz+6 GHz operating frequency bands, etc. When the target device supports WIFI networks of different operating frequency bands, the network configuration files corresponding to each operating frequency band will be stored in advance. For example, in one implementable manner, assuming that the multi-band WIFI chip is a WIFI chip supporting 2.4 GHz+5 GHz, the target device stores the configuration file of the 2.4 GHz WIFI network and the configuration file of the 5 GHz WIFI network. Then, based on different configuration files, the corresponding operating frequency band is connected. Due to the difference in hardware configuration, the single-band WIFI chip can only scan according to the existing WIFI scanning process, while the multi-band WIFI chip can reduce the time cost of scanning by improving the WIFI scanning process.
[0033] Additionally, it should be noted that the to-be-scanned single-band channel is a to-be-scanned channel corresponding to a different working band of the multi-band WIFI chip, wherein the number of the to-be-scanned single-band channel is determined by the number of the divided working bands of the multi-band WIFI chip, for example, in an implementable manner, assuming that the working bands of the multi-band WIFI chip are 2.412 GHz-2.482 GHz, 5.745 GHz-5.825 GHz, and 5.946 GHz-7.105 GHz, the number of the to-be-scanned single-band channel is 3, wherein the to-be-scanned channel is a channel under a single working band of the to-be-scanned single-band channel, which is determined by a region identifier, and can be one or more, for example, in an implementable manner, assuming that the region identifier is “BD” and the single working band is the 5 GHz band, the to-be-scanned channel is channel No. 149, 153, 157, 161, and 165, and the parallel scanning manner is a manner of scanning the to-be-scanned single-band channel in the same scanning time period, wherein the time length of the scanning time period is determined by the scanning time of the longest working band in each working band, for example, assuming that the multi-band WIFI chip has three working bands D, E, and F, wherein the scanning time of the working band D is t1, the scanning time of the working band E is t2, and the scanning time of the working band F is t3, and t1>t2>t3, t1 is taken as the scanning time period.
[0034] As an example, steps S10 to S30 include: if a channel scanning instruction of the target WIFI chip input by a user is received, detecting the number of configuration files of the target WIFI chip, if it is detected that the number of configuration files is one, determining that the target WIFI chip is the single-band WIFI chip, if it is detected that the number of configuration files is multiple, determining that the target WIFI chip is the multi-band WIFI chip; if it is detected that the target WIFI chip is the multi-band WIFI chip, determining a channel range corresponding to the multi-band WIFI chip according to a region identifier of the multi-band WIFI chip, and then determining a preset number of to-be-scanned single-band channels in the channel range; scanning each to-be-scanned single-band channel in the scanning time period to obtain a channel scanning result of the target WIFI chip, wherein the channel scanning result can be represented by a channel result list.
[0035] The to-be-scanned single-band channel includes a first to-be-scanned single-band channel and a second to-be-scanned single-band channel, and the step of performing parallel scanning on the to-be-scanned single-band channel to obtain a channel scanning result of the target WIFI chip includes:
[0036] Step A10, obtaining a static parallel frequency band corresponding to the first single frequency channel to be scanned;
[0037] Step A20, determining a dynamic parallel frequency band corresponding to the second single frequency channel to be scanned according to dynamic selection information of the multi-band WIFI chip;
[0038] Step A30, sending a first frequency band management frame to the static parallel frequency band and a second frequency band management frame to the dynamic parallel frequency band within a preset time period, wherein the first frequency band management frame and the second frequency band management frame are both used for scanning the target WIFI chip;
[0039] Step A40, generating a channel scanning result of the target WIFI chip according to the first frequency band management frame and the second frequency band management frame.
[0040] In this embodiment, it should be noted that the single frequency channel to be scanned includes a first single frequency channel to be scanned and a second single frequency channel to be scanned, wherein the first single frequency channel to be scanned is used to represent that a single working frequency band corresponding to the single frequency channel to be scanned is a static frequency band, the second single frequency channel to be scanned is used to represent that a single working frequency band corresponding to the single frequency channel to be scanned is a dynamic frequency band, the static frequency band is a working frequency band without civil-military mixed use, and the dynamic frequency band is a working frequency band with civil-military mixed use. For example, in an implementable manner, channels 52, 56, 60 and 64 are civil-military mixed use channels, that is, when a surrounding weather radar is not enabled, civil equipment can also be used, and thus the 5.2 GHz frequency band is a dynamic frequency band, and 2.4 GHz and 6 GHz do not have similar channels, so 2.4 GHz and 6 GHz are static frequency bands.
[0041] Additionally, it should be noted that the static parallel frequency band is used to represent different static frequency bands scanned in the scanning time period, and the dynamic parallel frequency band is used to represent different dynamic frequency bands scanned in the scanning time period. For example, in an implementable manner, the multi-band WIFI chip supports 2.4 GHz and 6 GHz. Since the two frequency bands are static frequency bands, but they are different working frequency bands, that is, the channels corresponding to 2.4 GHz and the channels corresponding to 6 GHz can be scanned simultaneously in the scanning time period, rather than just dividing the working frequency band into static frequency bands and dynamic frequency bands, and then scanning the static frequency bands and the dynamic frequency bands respectively in the scanning time period. For multiple static frequency bands in different working frequency bands, the sequential scanning scanning mode is still adopted, so that the time cost of the multi-band scanning WIFI chip can be further improved. The dynamic selection information is used to determine whether the multi-band chip supports the DFS function, that is, whether to allow unlicensed devices to share dynamic frequency bands allocated to radar systems without causing interference to these radars. The dynamic frequency band can be 5 GHz.
[0042] Additionally, it should be noted that the first frequency band management frame is a management frame for managing the static parallel frequency band, and the second frequency band management frame is a management frame for managing the dynamic parallel frequency band. Both the first frequency band management frame and the second frequency band management frame are used to scan the target WIFI chip. The first frequency band management frame is used to scan the static parallel frequency band, and the second frequency band management frame is used to scan the dynamic parallel frequency band. The management frame (Probe request) follows the general format of the management frame. After sending the management frame to different working frequency bands, the response information corresponding to different AP devices can be listened to, so that the device information of different working frequency bands can be obtained simultaneously. The existing WIFI probe technology is used to obtain the device information of each working frequency band, and details are not described here.
[0043] As an example, steps A10 to A40 include: obtaining a static parallel frequency band corresponding to the first single-band channel to be scanned; determining a dynamic parallel frequency band corresponding to the second single-band channel to be scanned according to dynamic selection information of the multi-band WIFI chip; sending a first frequency band management frame to the static parallel frequency band within a preset time period, and sending a second frequency band management frame to the dynamic parallel frequency band within the preset time period, wherein the preset time period can be the scanning time period; and generating a channel result list of the target WIFI chip according to the first frequency band management frame and the second frequency band management frame.
[0044] The step of determining the dynamic parallel frequency band corresponding to the second single-band channel to be scanned according to the dynamic selection information of the multi-band WIFI chip includes:
[0045] Step B10, detecting whether the multi-band WIFI chip has the dynamic selection information;
[0046] Step B20, if yes, obtaining a first dynamic parallel frequency band corresponding to the second single-band channel to be scanned;
[0047] Step B30, if no, obtaining a second dynamic parallel frequency band corresponding to the second single-band channel to be scanned.
[0048] In the embodiment, it is to be noted that the first dynamic parallel frequency band is used to represent a dynamic frequency band in which a DFS channel exists, and the second dynamic parallel frequency band is used to represent a dynamic frequency band in which a DFS channel does not exist. For example, assuming that the single operating frequency band is a 5GHz frequency band, the first dynamic parallel frequency band can be 5.745GHz-5.825GHz and 5.180GHz-5.320GHz, and the second dynamic parallel frequency band is 5.745GHz-5.825GHz.
[0049] As an example, steps B10 to B30 include: detecting whether the multi-band WIFI chip has the dynamic selection information; if it is detected that the multi-band WIFI chip has the dynamic selection information, obtaining a first dynamic parallel frequency band corresponding to the second single-band channel to be scanned; and if it is detected that the multi-band WIFI chip does not have the dynamic selection information, obtaining a second dynamic parallel frequency band corresponding to the second single-band channel to be scanned.
[0050] The step of obtaining the static parallel frequency band corresponding to the first single-band channel to be scanned includes:
[0051] Step C10, detecting whether a preset number of channel frequency bands corresponding to the multi-band WIFI chip have multiple static frequency bands;
[0052] Step C20, if yes, obtaining the static parallel frequency band by obtaining each static frequency band;
[0053] Step C30, if no, taking the static frequency band as the static parallel frequency band, and obtaining the static parallel frequency band.
[0054] In the embodiment, it is to be explained that the channel frequency bands of the multi-band WIFI chip are working frequency bands of the multi-band WIFI chip, and the channel frequency bands are specifically 2.4 GHz, 5 GHz and 6 GHz, etc., and then whether each channel frequency band is a static frequency band can be determined according to whether each channel frequency band supports the DFS function, and then if there is more than one static frequency band in the determined channel frequency band, the preset number of static frequency bands collectively form a static parallel frequency band, for example, in an implementable manner, the multi-band WIFI chip is a WIFI chip with three frequencies of 2.4 GHz, 5 GHz and 6 GHz, and then the static frequency bands are 2.412 GHz-2.472 GHz and 5.946 GHz-7.105 GHz, and the static parallel frequency band is 2.412 GHz-2.472 GHz and 5.946 GHz-7.105 GHz, that is, 2.412 GHz-2.472 GHz and 5.946 GHz-7.105 GHz can be scanned within the same scanning time period.
[0055] As an example, steps C10 to C30 include: detecting whether there are multiple static frequency bands in the preset number of channel frequency bands corresponding to the multi-band WIFI chip; if there are multiple static frequency bands in the preset number of channel frequency bands corresponding to the multi-band WIFI chip, each of the static frequency bands is collectively used as the static parallel frequency band, and the static parallel frequency band is obtained by acquiring each of the static frequency bands; and if there are not multiple static frequency bands in the preset number of channel frequency bands corresponding to the multi-band WIFI chip, the static frequency band is used as the static parallel frequency band, and the static parallel frequency band is acquired.
[0056] The step of generating the channel scanning result of the target WIFI chip according to the first frequency band management frame and the second frequency band management frame includes:
[0057] Step D10, acquiring first device information corresponding to the first frequency band management frame and second device information corresponding to the second frequency band management frame;
[0058] Step D20, iteratively updating a preset channel scanning table according to the first device information and the second device information until the updated preset channel scanning table has a preset scanning effect;
[0059] Step D30, using the updated preset channel scanning table as the channel scanning result of the target WIFI chip.
[0060] In the embodiment, it should be noted that the first device information and the second device information are both device information, and are only used to distinguish device information under different working frequency bands. The bandwidth when scanning different working frequency bands through the management frame includes but is not limited to 20 MHz, 40 MHz, 80 MHz and 160 MHz, etc. The channel result list can be the preset channel scanning table. The preset channel scanning table is automatically generated when triggered by the channel scanning instruction, and is used to store device information of different working frequency bands. The preset channel scanning table with preset scanning effect is used to complete the full channel scanning task of the target WIFI chip. For example, in an implementable manner, when the full channel scanning task is created, the WF1, WF2 and WF3 physical radio frequency and baseband parts of the multi-band WIFI chip are configured in the 2.4 GHz, 5 GHz and 6 GHz frequency bands respectively.
[0061] As an example, steps D10 to D30 include: obtaining a first device name group corresponding to the first frequency band management frame and a second device name group corresponding to the second frequency band management frame, wherein the first device name group or the second device name group includes one or more device names; storing the first device name group and the second device name group in the preset channel scanning table to iteratively update the preset channel scanning table until the updated preset channel scanning table has a preset scanning effect; and taking the updated preset channel scanning table as the channel scanning result of the target WIFI chip.
[0062] The step of iteratively updating the preset channel scanning table according to the first device information and the second device information until the updated preset channel scanning table has a preset scanning effect includes:
[0063] Step E10, updating the preset channel scanning table according to the first device information and the second device information, and detecting whether the updated preset channel scanning table has the preset scanning effect;
[0064] Step E20, if not, the next to-be-scanned single-band channel is taken as the to-be-scanned single-band channel, and the step of performing parallel scanning on the to-be-scanned single-band channel is returned.
[0065] In the embodiment, it should be noted that, since different working frequency bands have multiple channels, after the current channel of a single working frequency band is scanned and the corresponding device information is uploaded to the preset channel scanning table, a certain time period, which can be 100 ms, 150 ms or 180 ms, etc., is required to wait, and the next channel of the current channel is taken as the channel to be scanned. For example, in an implementable manner, assuming that the working frequency band is 2.4 GHz frequency band and the single frequency band channel to be scanned is channel 11, after the device information corresponding to the channel 11 is uploaded to the preset channel scanning table, the channel 12 is taken as the single frequency band channel to be scanned, and the scanning step of the channel 11 is repeated.
[0066] As an example, steps E10 to E20 include: updating the preset channel scanning table according to the first device information and the second device information, and detecting whether the updated preset channel scanning table has the preset scanning effect; if the updated preset channel scanning table has the preset scanning effect, taking the updated preset channel scanning table as the channel scanning result of the multi-frequency band WIFI chip; if the updated preset channel scanning table does not have the preset scanning effect, taking the next single frequency band channel to be scanned as the single frequency band channel to be scanned, and returning to execute the step of scanning the single frequency band channel to be scanned in parallel.
[0067] The application embodiment provides a multi-band WIFI scanning method, that is, if a channel scanning instruction of a target WIFI chip is received, whether the target WIFI chip is a multi-band WIFI chip is detected; then if yes, a single-band channel to be scanned is determined in a channel range corresponding to the multi-band WIFI chip, wherein the single-band channel to be scanned is a channel to be scanned corresponding to different working bands of the multi-band WIFI chip, so that when the target WIFI chip is detected as a multi-band WIFI chip, the channel to be scanned corresponding to different working bands of the multi-band WIFI chip is determined; then the single-band channel to be scanned is scanned in parallel, and a channel scanning result of the target WIFI chip is obtained. Since the channels to be scanned corresponding to different working bands are scanned in parallel, that is, if the multi-band WIFI chip is a 2.4 GHz+5 GHz+6 GHz three-band WIFI chip, the scanning process is to scan the channels corresponding to 2.4 GHz, 5 GHz and 6 GHz in parallel, rather than to sequentially scan 2.4 GHz, 5 GHz and 6 GHz in a sequential scanning manner, so that the technical defect that the user has a slow refreshing experience when refreshing a WIFI list of a WIFI device of a multi-band communication specification is overcome due to the fact that scanning a channel needs to consume a certain physical time, and therefore the time cost of multi-band WIFI scanning is reduced.
[0068] Embodiment two
[0069] Further, with reference to Figure 3 In another embodiment of the present application, the same or similar contents as or to the above-mentioned embodiment one can be referred to the above introduction, and the subsequent will not be described in detail. On this basis, the step of controlling the target device to perform the interface operation corresponding to the interface operation content includes:
[0070] Step F10, detecting whether the current frequency band can be switched to a channel frequency band corresponding to the single-band channel to be scanned;
[0071] Step F20, if yes, performing the step of scanning the single-band channel to be scanned in parallel to obtain the channel scanning result of the target WIFI chip;
[0072] Step F30, if no, generating scanning failure information corresponding to the current frequency band, and displaying the scanning failure information on a preset display interface corresponding to the multi-band WIFI chip.
[0073] In the embodiment, it is to be noted that when the target WIFI chip is a multi-band WIFI chip, if the switching of different single working frequency bands can be freely realized, the parallel scanning task of different single working frequency bands can be realized, wherein the frequency band is the frequency band of the channel, if the switching cannot be freely realized, the scanning failure information is generated by the scanning failure reason code, and the scanning failure information is used to inform the user that the channel scanning of a single working frequency band fails, and can be displayed on the preset display interface of the target device.
[0074] As an example, steps F10 to F30 include: detecting whether the current frequency band can be switched to the channel frequency band corresponding to the single frequency band channel to be scanned; if the current frequency band can be switched to any channel frequency band corresponding to the single frequency band channel to be scanned, performing the step of: performing parallel scanning on the single frequency band channel to be scanned to obtain the channel scanning result of the target WIFI chip; if the current frequency band cannot be switched to the channel frequency band corresponding to the single frequency band channel to be scanned, generating the scanning failure information corresponding to the current frequency band, and displaying the scanning failure information on the preset display interface corresponding to the multi-band WIFI chip, wherein the scanning failure information can be, for example, "scanning failure of the channel corresponding to 2.4 GHz".
[0075] The embodiment of the application provides a device interface operation control method, that is, detecting whether the current frequency band can be switched to the channel frequency band corresponding to the single frequency band channel to be scanned; if yes, performing the step of: performing parallel scanning on the single frequency band channel to be scanned to obtain the channel scanning result of the target WIFI chip; if no, generating the scanning failure information corresponding to the current frequency band, and displaying the scanning failure information on the preset display interface corresponding to the multi-band WIFI chip. Compared with the parallel scanning mode of the single frequency band channel to be scanned after determining the single frequency band channel to be scanned of the multi-band WIFI chip, the embodiment of the application performs the parallel scanning process only after determining that the current frequency band can be successfully switched to the channel frequency band, thereby avoiding the purpose of always taking the scanning time required by the single working frequency band with the longest scanning time as the scanning time period corresponding to each single working frequency band, for example, if the multi-band WIFI chip is a 2.4 GHz+5 GHz+6 GHz three-frequency WIFI chip, and the current frequency band cannot be switched to the 2.4 GHz frequency band, the scanning time period of the parallel scanning can be adjusted to the scanning time length corresponding to the 5 GHz, so the technical defect of the fixed scanning time period of the single working frequency band is overcome, and the foundation for further reducing the time cost of the multi-band WIFI scanning is laid.
[0076] Embodiment three
[0077] The embodiment of the application further provides a multi-band WIFI scanning device, which refers to Figure 4The multi-band WIFI scanning device comprises:
[0078] The detection module 101 is configured to, if a channel scanning instruction of a target WIFI chip is received, detect whether the target WIFI chip is a multi-band WIFI chip;
[0079] The determination module 102 is configured to, if yes, determine a single-band channel to be scanned in a channel range corresponding to the multi-band WIFI chip, wherein the single-band channel to be scanned is a channel to be scanned corresponding to different working bands of the multi-band WIFI chip;
[0080] The scanning module 103 is configured to perform parallel scanning on the single-band channel to be scanned to obtain a channel scanning result of the target WIFI chip.
[0081] Optionally, the single-band channel to be scanned comprises a first single-band channel to be scanned and a second single-band channel to be scanned, and the scanning module 103 is further configured to:
[0082] acquire a static parallel band corresponding to the first single-band channel to be scanned;
[0083] determine a dynamic parallel band corresponding to the second single-band channel to be scanned according to dynamic selection information of the multi-band WIFI chip;
[0084] send a first band management frame to the static parallel band within a preset time period and send a second band management frame to the dynamic parallel band within the preset time period, wherein the first band management frame and the second band management frame are both used for scanning the target WIFI chip;
[0085] generate the channel scanning result of the target WIFI chip according to the first band management frame and the second band management frame.
[0086] Optionally, the scanning module 103 is further configured to:
[0087] detect whether the dynamic selection information exists in the multi-band WIFI chip;
[0088] if yes, acquire a first dynamic parallel band corresponding to the second single-band channel to be scanned;
[0089] if no, acquire a second dynamic parallel band corresponding to the second single-band channel to be scanned.
[0090] Optionally, the scanning module 103 is further configured to:
[0091] detect whether a preset number of channel bands corresponding to the multi-band WIFI chip exist multiple static bands;
[0092] If yes, the static parallel frequency band is obtained by acquiring each static frequency band.
[0093] If no, the static frequency band is taken as the static parallel frequency band, and the static parallel frequency band is acquired.
[0094] Optionally, the scanning module 103 is further configured to:
[0095] acquire first device information corresponding to the first frequency band management frame and second device information corresponding to the second frequency band management frame;
[0096] iteratively update a preset channel scanning table according to the first device information and the second device information until the updated preset channel scanning table has a preset scanning effect;
[0097] take the updated preset channel scanning table as the channel scanning result of the target WIFI chip.
[0098] Optionally, the scanning module 103 is further configured to:
[0099] update the preset channel scanning table according to the first device information and the second device information, and detect whether the updated preset channel scanning table has the preset scanning effect;
[0100] If no, the next single-frequency channel to be scanned is taken as the single-frequency channel to be scanned, and the step of performing parallel scanning on the single-frequency channel to be scanned is performed.
[0101] Optionally, the multi-frequency band WIFI scanning apparatus is further configured to:
[0102] detect whether the current frequency band can be switched to a channel frequency band corresponding to the single-frequency channel to be scanned;
[0103] If yes, the step of performing parallel scanning on the single-frequency channel to be scanned to obtain the channel scanning result of the target WIFI chip is performed.
[0104] If no, scanning failure information corresponding to the current frequency band is generated, and the scanning failure information is displayed on a preset display interface corresponding to the multi-frequency band WIFI chip.
[0105] The multi-band WIFI scanning device provided by the application adopts the multi-band WIFI scanning method in the above embodiment, and solves the technical problem of large time cost of multi-band WIFI scanning. Compared with the prior art, the multi-band WIFI scanning device provided by the embodiment has the same beneficial effects as the multi-band WIFI scanning method provided by the above embodiment, and other technical features in the multi-band WIFI scanning device are the same as the features disclosed in the above embodiment, which will not be repeated here.
[0106] Embodiment four
[0107] The embodiment of the application provides an electronic device, which comprises at least one processor and a memory connected with the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the multi-band WIFI scanning method in the above embodiment one.
[0108] Reference will now be made to Figure 5 , which shows a structural schematic diagram of an electronic device suitable for implementing the embodiments of the present disclosure. The electronic device in the embodiments of the present disclosure can include, but is not limited to, mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablets), PMPs (portable multimedia players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), and the like, and fixed terminals such as digital TVs, desktop computers, and the like. Figure 5 The electronic device shown is only an example, and should not impose any limitation on the functions and use range of the embodiments of the present disclosure.
[0109] As shown in Figure 5 , the electronic device can include a processing device 1001 (such as a central processor, a graphics processor, etc.), which can perform various appropriate actions and processes according to programs stored in a read-only memory (ROM) 1002 or programs loaded from a storage device 1003 to a random access memory (RAM) 1004. In the RAM 1004, various programs and data required for the operation of the electronic device are also stored. The processing device 1001, the ROM 1002, and the RAM 1004 are connected to each other through a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus.
[0110] Generally, the following systems can be connected to the I / O interface 1006: input devices 1007 including, for example, a touch screen, a touch pad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; output devices 1008 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; storage devices 1003 including, for example, a magnetic tape, a hard disk, etc.; and communication devices 1009. The communication devices can allow the electronic device to communicate wirelessly or wiredly with other devices to exchange data. Although the electronic device is shown as having various systems, it is understood that all of the shown systems are not required to implement or have. More or less systems can alternatively be implemented or have.
[0111] In particular, according to embodiments of the present disclosure, the processes described above with reference to the flowcharts can be implemented as a computer software program. For example, embodiments of the present disclosure include a computer program product comprising a computer program carried on a computer readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network through the communication devices 1009, or installed from the storage devices 1003, or installed from the ROM 1002. When the computer program is executed by the processing devices 1001, the above-mentioned functions defined in the methods of the embodiments of the present disclosure are performed.
[0112] The electronic device provided by the present application adopts the multi-band WIFI scanning method in the above-mentioned embodiments, and solves the technical problem of large time cost of multi-band WIFI scanning. Compared with the prior art, the electronic device provided by the embodiments of the present application has the same beneficial effects as the multi-band WIFI scanning method provided by the above-mentioned embodiments, and other technical features in the electronic device are the same as the features disclosed in the above-mentioned embodiments, which will not be repeated here.
[0113] It should be understood that parts of the present disclosure can be realized by hardware, software, firmware or a combination thereof. In the description of the above-mentioned embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner.
[0114] The above is merely specific embodiments of the present application, but the protection scope of the present application is not limited thereto, and any person skilled in the art can easily think of changes or replacements within the technical range disclosed by the present application, which should be covered within the protection scope of the present application. Therefore, the protection scope of the present application should be subject to the protection scope of the claims.
[0115] Embodiment five
[0116] The embodiment provides a computer readable storage medium having computer readable program instructions stored thereon, and the computer readable program instructions are used for executing the multi-band WIFI scanning method in the above embodiment.
[0117] The computer readable storage medium provided by the embodiment of the application may, for example, be a U disk, but is not limited to an electric, magnetic, optical, electromagnetic, infrared, or semiconductor system, system, or device, or any combination of the above. More specific examples of the computer readable storage medium can include, but are not limited to, an electric connection having one or more conductive wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the embodiment, the computer readable storage medium can be any tangible medium containing or storing a program, which can be used by or in combination with an instruction execution system, system, or device. The program code contained on the computer readable storage medium can be transmitted by any suitable medium, including but not limited to an electric wire, an optical cable, an RF (radio frequency), and the like, or any suitable combination of the above.
[0118] The computer readable storage medium described above can be contained in an electronic device, or can exist separately and not be assembled into an electronic device.
[0119] The computer readable storage medium described above carries one or more programs, and when the one or more programs are executed by an electronic device, the electronic device is caused to: if a channel scanning instruction of a target WIFI chip is received, detect whether the target WIFI chip is a multi-band WIFI chip; if yes, determine a single-band channel to be scanned in a channel range corresponding to the multi-band WIFI chip, wherein the single-band channel to be scanned is a single-band channel to be scanned corresponding to different working frequency bands of the multi-band WIFI chip; and perform parallel scanning on the single-band channel to be scanned to obtain a channel scanning result of the target WIFI chip.
[0120] Computer program code for carrying out operations of the present disclosure can be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C++ or the like, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code can execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the latter scenario, the remote computer can be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or the connection can be made to an external computer (for example, through the Internet using an Internet Service Provider).
[0121] The computer program instructions can also be loaded onto a computer, other programmable data processing apparatus, or other devices to cause a series of operational steps to be performed on the computer, other programmable apparatus or other devices to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide processes for implementing the functions / acts specified in the flowchart and / or block diagram block or blocks.
[0122] The modules involved in the embodiments of the present disclosure can be implemented in the manner of software or hardware. In some cases, the name of the module does not constitute a limitation on the module itself.
[0123] The computer readable storage medium provided by the present application stores computer readable program instructions for executing the multi-band WIFI scanning method, and solves the technical problem of large multi-band WIFI scanning time cost. Compared with the prior art, the beneficial effects of the computer readable storage medium provided by the embodiments of the present application are the same as those of the multi-band WIFI scanning method provided by the above embodiments, and are not described here.
[0124] Embodiment six
[0125] The application further provides a computer program product comprising a computer program which, when executed by a processor, implements the steps of the multi-band WIFI scanning method as described above.
[0126] The computer program product provided by the application solves the technical problem of large time cost of multi-band WIFI scanning. Compared with the prior art, the beneficial effects of the computer program product provided by the embodiment of the application are the same as those of the multi-band WIFI scanning method provided by the above-mentioned embodiment, and are not described here.
[0127] The above is only the preferred embodiment of the application, and does not limit the patent scope of the application, and any equivalent structure or equivalent process transformation using the content of the specification and drawings, or direct or indirect application in other related technical fields, are also included in the patent processing scope of the application.
Claims
1. A multi-band WIFI scanning method, characterized in that, The multi-band WIFI scanning method comprises: If a channel scanning instruction of a target WIFI chip is received, it is detected whether the target WIFI chip is a multi-band WIFI chip; If yes, a single-band channel to be scanned is determined within a channel range corresponding to the multi-band WIFI chip, wherein the single-band channel to be scanned is a channel to be scanned corresponding to different working bands of the multi-band WIFI chip; Parallel scanning is performed on the single-band channel to be scanned to obtain a channel scanning result of the target WIFI chip; the parallel scanning on the single-band channel to be scanned comprises: if the single-band channel to be scanned is a channel corresponding to static bands of different working bands, the channels corresponding to the static bands of the different working bands are scanned in parallel within a scanning time period; if the single-band channel to be scanned is a channel corresponding to dynamic bands, it is determined whether the multi-band chip supports DFS function according to dynamic selection information, and the channels corresponding to the dynamic bands are scanned in parallel according to different parallel scanning strategies selected according to the DFS support state of the multi-band WIFI chip, wherein the working bands comprise static bands and dynamic bands.
2. The multi-band WIFI scanning method as described in claim 1, characterized in that, The single-band channel to be scanned comprises a first single-band channel to be scanned and a second single-band channel to be scanned, The parallel scanning on the single-band channel to be scanned to obtain the channel scanning result of the target WIFI chip comprises: A static parallel band corresponding to the first single-band channel to be scanned is obtained; A dynamic parallel band corresponding to the second single-band channel to be scanned is determined according to dynamic selection information of the multi-band WIFI chip; A first band management frame is sent to the static parallel band within a preset time period, and a second band management frame is sent to the dynamic parallel band within the preset time period, wherein the first band management frame and the second band management frame are used for scanning the target WIFI chip; The channel scanning result of the target WIFI chip is generated according to the first band management frame and the second band management frame.
3. The method of claim 2, wherein the plurality of frequency bands are selected from a group consisting of 2.4GHz, 5GHz, 60GHz, and 900MHz. The dynamic parallel band corresponding to the second single-band channel to be scanned is determined according to the dynamic selection information of the multi-band WIFI chip, and comprises: It is detected whether the multi-band WIFI chip has the dynamic selection information; If yes, a first dynamic parallel band corresponding to the second single-band channel to be scanned is obtained; If no, a second dynamic parallel band corresponding to the second single-band channel to be scanned is obtained.
4. The method of claim 2, wherein the plurality of frequency bands are selected from a group consisting of 2.4GHz, 5GHz, 60GHz, and 900MHz. The static parallel band corresponding to the first single-band channel to be scanned is obtained, and comprises: It is detected whether a preset number of channel bands corresponding to the multi-band WIFI chip have multiple static bands; If yes, the static parallel band is obtained by obtaining each static band; If no, the static band is taken as the static parallel band, and the static parallel band is obtained.
5. The method of claim 2, wherein the plurality of frequency bands are selected from a group consisting of 2.4GHz, 5GHz, 60GHz, and 900MHz. The channel scanning result of the target WIFI chip is generated according to the first band management frame and the second band management frame, and comprises: obtain first device information corresponding to the first frequency band management frame and second device information corresponding to the second frequency band management frame; iteratively update a preset channel scanning table according to the first device information and the second device information until the updated preset channel scanning table has a preset scanning effect; use the updated preset channel scanning table as the channel scanning result of the target WIFI chip.
6. The method of claim 5, wherein the plurality of frequency bands are selected from a group consisting of 2.4GHz, 5GHz, 60GHz, and 900MHz. The step of iteratively updating a preset channel scanning table according to the first device information and the second device information until the updated preset channel scanning table has a preset scanning effect comprises: update the preset channel scanning table according to the first device information and the second device information, and detect whether the updated preset channel scanning table has the preset scanning effect; if not, use the next single frequency channel to be scanned as the single frequency channel to be scanned, and return to the step of performing parallel scanning on the single frequency channel to be scanned.
7. The multi-band WIFI scanning method as described in claim 1, characterized in that, Before the step of performing parallel scanning on the single frequency channel to be scanned to obtain the channel scanning result of the target WIFI chip, the multi-band WIFI scanning method further comprises: detect whether the current frequency band can be switched to the channel frequency band corresponding to the single frequency channel to be scanned; if yes, perform the step of performing parallel scanning on the single frequency channel to be scanned to obtain the channel scanning result of the target WIFI chip; if not, generate scanning failure information corresponding to the current frequency band, and display the scanning failure information on a preset display interface corresponding to the multi-band WIFI chip.
8. A multi-band WIFI scanning apparatus, characterized in that, The multi-band WIFI scanning device comprises: a detection module configured to, if a channel scanning instruction of a target WIFI chip is received, detect whether the target WIFI chip is a multi-band WIFI chip; a determination module configured to, if yes, determine a single frequency channel to be scanned within a channel range corresponding to the multi-band WIFI chip, wherein the single frequency channel to be scanned is a single frequency channel to be scanned corresponding to different working frequency bands of the multi-band WIFI chip; a scanning module configured to perform parallel scanning on the single frequency channel to be scanned to obtain a channel scanning result of the target WIFI chip; the scanning module is specifically configured to, if the single frequency channel to be scanned is a channel corresponding to a static frequency band of different working frequency bands, perform parallel scanning on the channel corresponding to the static frequency band of the different working frequency bands within a scanning time period; and if the single frequency channel to be scanned is a channel corresponding to a dynamic frequency band, determine whether the multi-band chip supports a DFS function according to dynamic selection information, and perform parallel scanning on the channel corresponding to the dynamic frequency band according to a different parallel scanning strategy selected according to a DFS support state of the multi-band WIFI chip, wherein the working frequency band comprises a static frequency band and a dynamic frequency band.
9. An electronic device, comprising: The electronic device comprises: at least one processor; and a memory connected to the at least one processor in communication; wherein The memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the steps of the multi-band WIFI scanning method of any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that, The computer readable storage medium stores a program for implementing a multi-band WIFI scanning method, and the program for implementing the multi-band WIFI scanning method is executed by a processor to implement the steps of the multi-band WIFI scanning method of any one of claims 1 to 7.
Citation Information
Patent Citations
Parallel scanning of wireless channels
US20140376392A1