Scanning control method, electronic equipment and storage medium

By controlling the working status of the RF module and baseband module in electronic devices, multi-channel scanning is realized, which solves the problems of long scanning time and large power consumption of WiFi channels, and improves scanning efficiency and connection speed.

CN119545477AActive Publication Date: 2025-02-28HONOR DEVICE CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202311057284.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-08-21
Publication Date
2025-02-28
Estimated Expiration
2043-08-21

AI Technical Summary

Technical Problem

When electronic devices scan WiFi channel, they need to scan one channel by channel, resulting in a long scanning time, a long time to connect to WiFi and a large power consumption of the device.

Method used

By controlling the working state of the RF module and the signal processing link in the baseband module, power-up is enabled to realize multi-channel scanning, saving channel scanning time and reducing device power consumption.

Benefits of technology

Improves the efficiency of channel scanning, shortens the time to connect to WiFi, and reduces the power consumption of the device during scanning.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119545477A_ABST
    Figure CN119545477A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a scanning control method, electronic equipment and a storage medium, and relates to the technical field of communication, and the electronic equipment controls the working state of a radio frequency module according to a scanning mode, and controls at least two signal processing links to be powered on, so that the equipment power consumption during one-time scanning is reduced. The electronic equipment comprises a radio frequency module and a baseband module, the baseband module comprises at least two signal processing links, and the method comprises the following steps: the electronic equipment determines a scanning mode, controls the radio frequency module to work in a first working state according to the scanning mode, and controls the at least two signal processing links to enable power-on to enable the radio frequency module to work in a second working state; a first sampling signal is received through a first antenna, a second sampling signal is acquired through a radio frequency module working in a first working state, and the electronic equipment carries out digital processing on the second sampling signal through at least two signal processing links. And determining whether a plurality of channels corresponding to the second sampling signal comprise a target channel for performing data transmission by using a preset target protocol type or not.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of communication technology, and in particular, to a scanning control method, an electronic device, and a storage medium. Background Art

[0002] Wireless fidelity (WiFi) is a technology that can connect electronic devices such as personal computers and handheld devices (such as tablets and mobile phones) to each other wirelessly. Before connecting to WiFi, electronic devices will perform WiFi channel scanning to determine the WiFi channel to access.

[0003] However, when an electronic device scans a WiFi channel, it generally scans each channel one by one, that is, the channel scanning of the electronic device is usually single-channel scanning. Since the electronic device needs to scan each of the multiple channels separately, the scanning times are large, resulting in a long scanning time for the electronic device, a long time to connect to WiFi, and a large power consumption of the device. Summary of the invention

[0004] The embodiments of the present application provide a scanning control method, an electronic device and a storage medium. The electronic device controls the working state of the radio frequency module according to the scanning mode, and controls at least two signal processing links to be enabled and powered on, which not only saves channel scanning time and improves channel scanning efficiency, but also reduces device power consumption during one scan.

[0005] To achieve the above objectives, the embodiments of the present application adopt the following technical solutions:

[0006] In a first aspect, a scanning control method is provided, which is applied to an electronic device, wherein the electronic device includes a radio frequency module and a baseband module, and the baseband module includes at least two signal processing links. The scanning control method may include:

[0007] The electronic device acquires a scanning mode, where the scanning mode is used to indicate that the number of channels scanned at one time is M channels, where M is an integer greater than 0; the electronic device controls the radio frequency module to operate in a first working state according to the scanning mode, and controls M signal processing links in at least two signal processing links to be enabled and powered on; the electronic device receives a first sampling signal through a first antenna, and acquires a second sampling signal through the radio frequency module operating in the first working state, so that the frequency band of the second sampling signal includes the frequency band of the M channels; the electronic device digitally processes the second sampling signal through the M signal processing links, and determines whether the M channels corresponding to the second sampling signal include a target channel, where the target channel is a channel that transmits data using a preset target protocol type.

[0008] The scanning mode corresponds to the number of channels scanned at one time.

[0009] It can be understood that after the electronic device determines the scanning mode, the electronic device can configure the working state of the RF module based on the number of channels determined by the scanning mode, and control at least two signal processing links to enable power-on, so as to realize multi-channel scanning or single-channel scanning in different situations. Exemplarily, taking multi-channel scanning as an example, through one scan, it can be determined whether the target channel can be included in multiple channels. In the present application, through the reasonable control of the control module, only limited hardware configuration (such as at least two signal processing links) is required to support different numbers of channel scans in different scenarios.

[0010] Optionally, before the electronic device controls the radio frequency module to operate in the first operating state according to the scanning mode and controls M signal processing links of the at least two signal processing links to be enabled and powered on, the method further includes:

[0011] The electronic device generates a first command stream and a second command stream according to the scanning mode;

[0012] The electronic device controls the radio frequency module to work in a first working state according to the scanning mode, and controls M signal processing links in at least two signal processing links to be enabled and powered on, including:

[0013] The electronic device controls the radio frequency module to operate in the first operating state according to the first command stream; and the electronic device controls M signal processing links in at least two signal processing links to enable power-on according to the second command stream.

[0014] It can be understood that the electronic device generates a first command stream for controlling the RF module and a second command stream for controlling the signal processing link in the baseband module to enable power-on according to the scanning mode, thereby realizing the control of the RF module and the baseband module in different scanning modes to support channel scanning of different numbers in different scenarios.

[0015] Optionally, the radio frequency module includes a mixing unit and a filtering unit coupled to the mixing unit, the first command stream includes a first command and a second command, and the electronic device controls the radio frequency module to operate in a first operating state according to the first command stream, including:

[0016] The electronic device controls the center frequency of the mixing unit to be the first frequency according to the first command, and the first frequency is the center frequency corresponding to the frequency band of the M channels; the electronic device controls the scanning bandwidth of the filtering unit to be the first bandwidth according to the second command, and the first bandwidth is the scanning bandwidth corresponding to the bandwidth of the M channels.

[0017] In an example of an embodiment of the present application, when the electronic device determines that the number of channels to be scanned at one time corresponding to the scanning mode is 5, the electronic device can configure the center frequency of the mixing unit to 2.422 GHz according to the first command, and configure the scanning bandwidth of the filtering unit to 40 MHz according to the second command, so that the signals corresponding to the 5 channels can be obtained through the configured mixing unit and filtering unit.

[0018] Optionally, the electronic device controls the scanning bandwidth of the filtering unit to be the first bandwidth according to the second command, including:

[0019] The electronic device configures the scanning bandwidth of the filtering unit to the first bandwidth according to the second command.

[0020] When the RF module includes a filter unit, the electronic device can configure the scanning bandwidth of the filter unit according to the scanning mode to obtain signals corresponding to multiple channels through the configured filter unit.

[0021] Optionally, the filtering unit includes a plurality of sub-filtering units, the scanning bandwidths of the plurality of sub-filtering units are different from each other, and the electronic device controls the scanning bandwidth of the filtering unit to be the first bandwidth according to the second command, including:

[0022] The electronic device controls the sub-filtering unit with the first bandwidth to be enabled and powered on according to the second command.

[0023] When the RF module includes multiple sub-filtering units, the electronic device can control the sub-filtering units corresponding to the bandwidth of the scanning mode to enable power on, so as to filter out signals corresponding to multiple channels through the powered-on sub-filtering units while saving power consumption of the electronic device.

[0024] Optionally, the electronic device receives the first sampling signal through the first antenna, and obtains the second sampling signal through the radio frequency module working in the first working state, including:

[0025] The electronic device controls the first antenna to receive electromagnetic waves of all frequency bands and converts the electromagnetic waves of all frequency bands into a first sampling signal; the electronic device performs radio frequency processing on the first sampling signal to obtain a second sampling signal, and the radio frequency processing includes amplification processing, down-conversion processing and / or filtering processing.

[0026] It can be understood that after the first antenna receives the first sampling signals of all frequency bands, the RF module can perform RF domain processing on the first sampling signals to obtain second sampling signals of frequency bands including multiple channels.

[0027] Optionally, the scanning control method may further include:

[0028] The electronic device performs analog-to-digital conversion on the second sampling signal to obtain a first digital signal; the first digital signal includes a data segment corresponding to each channel in the M channels;

[0029] The electronic device digitally processes the second sampling signal through M signal processing links, and determines whether the M channels corresponding to the second sampling signal include a target channel, where the target channel is a channel for data transmission using a preset target protocol type, including:

[0030] The electronic device enables power on by controlling M signal processing links among at least two signal processing links so that the M signal processing links perform digital processing on a first digital signal, and determines whether the M channels included in the first digital signal include a target channel; when a first data segment is transmitted using a target protocol type, the first channel corresponding to the first data segment is the target channel; the first data segment is included in the first digital signal, and the first channel is included in the M signal processing links.

[0031] This example provides an analog signal processing logic before an electronic device processes a digital signal. Therefore, based on the processing of the digital signal obtained after the analog signal processing, it can be determined whether the current sampled signal includes a data segment transmitted using the target channel.

[0032] Optionally, each signal processing link includes a frequency shift unit, a sub-filter unit coupled to the frequency shift unit, and a carrier sense CCA unit coupled to the sub-filter unit, and the electronic device controls M signal processing links in at least two signal processing links to be enabled and powered on so that the M signal processing links perform digital processing on the first digital signal, and determines whether the M channels included in the first digital signal include the target channel, including:

[0033] For each of the M signal processing links enabled after power-on: the frequency shift unit performs frequency shift processing on the first digital signal; when the frequency shift units included in different signal processing links perform frequency shift processing, the corresponding frequency shift lengths are different; the sub-filter unit performs filtering processing on the signal after the frequency shift processing by the corresponding frequency shift unit to obtain a data segment corresponding to a channel; the passing bandwidth of the sub-filter units included in different signal processing links is the same; the CCA unit performs carrier sensing on the data segment of a channel obtained after the filtering processing by the corresponding sub-filter unit to determine the target channel according to whether the data segment of the channel is transmitted through the target protocol type.

[0034] It can be understood that each frequency shift unit in the pre-configured signal processing link can have a fixed one, two or more frequency shift processing capabilities. Therefore, in different scenarios, when frequency shift processing with different frequency shift lengths is required, the control module can achieve the corresponding frequency shift processing by controlling the enablement of the signal processing link where the corresponding frequency shift unit is located.

[0035] In one possible case, when the frequency adopted during analog-to-digital conversion processing is different from the frequency at which the baseband module processes the digital signal, the baseband module may resample the digital signal before the baseband module processes the digital signal so that the sampling frequency of the resampled digital signal meets the frequency required for subsequent processing by the baseband module.

[0036] In one example, the baseband module may further include a resampling unit, the resampling unit group includes multiple sub-sampling units, and a signal processing link may include a frequency shift unit, a sub-sampling unit coupled to the frequency shift unit, a sub-filtering unit coupled to the sub-sampling unit, and a CCA unit coupled to the sub-filtering unit.

[0037] Optionally, the CCA unit performs carrier sensing on a data segment of a channel obtained after filtering by the corresponding sub-filtering unit to determine a target channel according to whether the data segment of the channel is transmitted through a target protocol type, including:

[0038] The CCA unit in each signal processing link performs carrier sensing on the data segment corresponding to each channel to determine the target channel for transmission using the target protocol type according to the preset Baker code of the target protocol type. Thus, through the carrier sensing technology, it is possible to achieve matching processing of the data segment of any channel, so as to determine whether the channel transmitting the data segment is the target channel.

[0039] Optionally, the target protocol type is 802.11b protocol.

[0040] Optionally, the first antenna is a wireless network WiFi antenna, and the operating frequency band of the first antenna includes 2.4 GHz-2.5 GHz. Exemplarily, this solution can be applied to a scanning scenario of a 2.4 GHz WiFi frequency band.

[0041] In a second aspect, the present application provides an electronic device, comprising: a first antenna; one or more processors; a memory; wherein one or more computer programs are stored in the memory, and the one or more computer programs include instructions, which, when executed by the electronic device, enable the electronic device to perform a scanning control method as described in any one of the above-mentioned first aspects.

[0042] In a third aspect, the present application provides a computer-readable storage medium, in which instructions are stored. When the instructions are executed on an electronic device, the electronic device executes the scanning control method as described in any one of the first aspects.

[0043] In a fourth aspect, the present application provides a computer program product, which includes computer instructions. When the computer instructions are executed on an electronic device, the electronic device executes the scanning control method as described in any one of the first aspects.

[0044] It can be understood that the electronic device described in the second aspect, the computer storage medium described in the third aspect, and the computer program product described in the fourth aspect are all used to execute the corresponding methods provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding methods provided above and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0045] Figure 1 A schematic diagram of each channel in the 2.4 GHz frequency band of WiFi communication provided in an embodiment of the present application;

[0046] Figure 2 A schematic diagram of an electronic device performing 2.4G WiFi channel scanning provided by an embodiment of the present application;

[0047] Figure 3 A schematic diagram of the hardware composition of an electronic device provided in an embodiment of the present application;

[0048] Figure 4 An example diagram of an electronic device scanning multiple channels provided in an embodiment of the present application;

[0049] Figure 5 Schematic diagram of an electronic device scanning 5 channels at a time provided in an embodiment of the present application Figure 1 ;

[0050] Figure 6 Schematic diagram of an electronic device scanning 5 channels at a time provided in an embodiment of the present application Figure 2 ;

[0051] Figure 7 A schematic diagram of down-converting a signal provided in an embodiment of the present application;

[0052] Figure 8 A schematic diagram of a scanning control method provided in an embodiment of the present application Figure 1 ;

[0053] Fig. 9 A schematic diagram of a scanning control module interaction provided in an embodiment of the present application Figure 1 ;

[0054] Fig.10 A schematic diagram of a scanning control method provided in an embodiment of the present application Figure 2 ;

[0055] Fig.11 A schematic diagram of a scanning control module interaction provided in an embodiment of the present application Figure 2 ;

[0056] Fig.12A flowchart of a resampling processing example provided in an embodiment of the present application;

[0057] Fig.13 A schematic diagram of a scanning control module interaction provided in an embodiment of the present application Figure 3 ;

[0058] Fig.14 A schematic diagram of an example of filtering out a single channel signal provided in an embodiment of the present application Figure 1 ;

[0059] Fig.15 A schematic diagram of an example of filtering out a single channel signal provided in an embodiment of the present application Figure 2 ;

[0060] Fig.16 A schematic diagram of an example of preset Barker code recognition provided in an embodiment of the present application. DETAILED DESCRIPTION

[0061] The technical solution in the embodiment of the present application will be described below in conjunction with the drawings in the embodiment of the present application. In the description of the embodiment of the present application, unless otherwise specified, " / " means or, for example, A / B can mean A or B; "and / or" in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships, for example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone.

[0062] In the following, the terms "first" and "second" are used for descriptive purposes only and are not to be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features. In the description of the embodiments of the present application, unless otherwise specified, "plurality" means two or more.

[0063] In the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.

[0064] At present, most electronic devices with wireless communication functions can perform WiFi communication. The frequency band used for WiFi communication may include a 2.4 GHz frequency band and a 5 GHz frequency band. The frequency band used for WiFi communication is usually divided into multiple channels. The following embodiments are all introduced by taking the frequency band used for WiFi communication as the 2.4 GHz frequency band as an example. For the specific implementation when the frequency band used for WiFi communication is the 5 GHz frequency band, reference can be made to the specific implementation when the frequency band used for WiFi communication is the 2.4 GHz frequency band, which will not be described one by one.

[0065] Taking the 2.4 GHz frequency band used for WiFi communication as an example, the 2.4 GHz frequency band used for WiFi communication ranges from 2.4 GHz to 2.497 GHz. Figure 1 As shown, the 2.4 GHz frequency band can be divided into 14 channels. These 14 channels can be sorted from low to high according to the frequency band covered by the channel, and are represented as channel 1, channel 2, channel 3, ..., channel 14. Among them, channel 1 to channel 13 are commonly used 2.4 GHz WiFi channels.

[0066] In channels 1 to 13, the bandwidth of each channel is 22MHz. The frequency spacing between two adjacent channels is 5MHz. For example, the frequency band covered by channel 1 is 2401MHz to 2423MHz. The frequency band covered by channel 2 is 2406MHz to 2428MHz. And so on.

[0067] It should be noted that, among channels 1 to 13, the frequency bands covered by two or more adjacent channels may partially overlap. Figure 1 As shown, channel 1, channel 2, channel 3, channel 4, and channel 5 all have overlapping coverage frequency bands.

[0068] In addition, the center frequency of each of the channels 1 to 13 is different. Figure 1 In the example shown, the center frequency of each channel is also shown. Figure 1 As shown, the center frequency of channel 1 is 2412MHz, the center frequency of channel 2 is 2417MHz, the center frequency of channel 3 is 2422MHz, the center frequency of channel 4 is 2427MHz, the center frequency of channel 5 is 2432MHz, the center frequency of channel 6 is 2437MHz, the center frequency of channel 7 is 2442MHz, the center frequency of channel 8 is 2447MHz, the center frequency of channel 9 is 2452MHz, the center frequency of channel 10 is 2457MHz, the center frequency of channel 11 is 2462MHz, the center frequency of channel 12 is 2467MHz, the center frequency of channel 13 is 2472MHz, and the center frequency of channel 14 is 2484MHz.

[0069] Electronic devices can access the WiFi network through channel scanning to achieve WiFi network communication between devices. The following is an example to introduce the process of 2.4G WiFi channel scanning by electronic devices.

[0070] like Figure 2 As shown, the electronic device may include an antenna module, a radio frequency module and a baseband module. Among them, the antenna module may include one or more antennas, the working frequency band of the antenna may cover the 2.4GHz frequency band, and the antenna may be used to receive WiFi signals. The antenna module may convert the received WiFi signal into an analog signal and transmit it to the radio frequency module, so that the radio frequency module performs radio frequency domain processing on the WiFi signal. For example, the radio frequency module may amplify, filter and other radio frequency domain processing on the WiFi signal. The radio frequency module may also perform analog-to-digital conversion on the WiFi signal after radio frequency domain processing, convert the WiFi signal after radio frequency domain processing into a digital signal and transmit it to the baseband module for digital processing. The baseband module may parse the received WiFi signal to obtain the information carried in the WiFi signal. Among them, the parsing processing performed by the baseband module may include preamble parsing, frame header parsing, etc.

[0071] It is understandable that the signals received by the electronic device in different channels may be transmitted using different protocol types. For example, in wireless communication in the 2.4 GHz frequency band, the protocol types that may be used when transmitting signals include 802.11, 802.11a, 802.11b, 802.11g, 802.11n, 802.11ax, etc. When communicating based on different protocol types, the leading and frame header data of the transmitted data may be different.

[0072] After the baseband module parses and processes the received WiFi signal, the baseband module can determine whether the protocol type of the WiFi signal received by the baseband module is the target protocol type (for example, 802.11b) based on the leading and frame header data obtained from the parsing, so as to determine whether to access the WiFi network through the channel corresponding to the WiFi signal.

[0073] That is, when the electronic device determines whether the protocol type used by each WiFi signal in the current environment is the target protocol type, it can parse the WiFi signal received on each channel to determine the WiFi signal transmitted using the target protocol type based on the preamble and frame header data of the WiFi signal received on each channel obtained by parsing. For example, the electronic device scans channels 1 to 13 in sequence to determine the required WiFi signal in the WiFi signals received on each channel, which results in the electronic device scanning channels more times, a longer scanning time, and higher power consumption of the device.

[0074] To this end, in an embodiment of the present application, the electronic device can control the RF module to work in the first working state according to the scanning mode, and control M signal processing links in at least two signal processing links to enable power on, and then, after the electronic device obtains the second sampling signal of the frequency band including M channels, the second sampling signal is digitally processed through the M signal processing links to determine whether the M channels corresponding to the second sampling signal include the target channel. Thus, the electronic device can configure and scan two or more channels according to the scanning mode, so that the electronic device can quickly determine the target channel for data transmission using the target protocol type in the current environment, thereby improving the efficiency of the electronic device scanning channels, which is conducive to improving the rate at which the electronic device connects to WiFi and saving the power consumption of channel scanning.

[0075] It should be noted that the solution provided in the embodiment of the present application can be applied to electronic devices. The electronic device may include a mobile phone, a foldable electronic device, a tablet computer, a desktop computer, a laptop computer, a handheld computer, a notebook computer, an ultra-mobile personal computer (ultra-mobile personal computer, UMPC), a netbook, a cellular phone, a personal digital assistant (personal digital assistant, PDA), an augmented reality (augmented reality, AR) device, a virtual reality (virtual reality, VR) device, an artificial intelligence (artificial intelligence, AI) device, a wearable device, a vehicle-mounted device, a smart home device, or at least one of a smart city device. The embodiment of the present application does not impose any special restrictions on the specific type of the electronic device.

[0076] In the present application, the electronic device may have a WiFi communication capability of the 2.4 GHz band or the 5 GHz band. The 2.4 GHz band may include Figure 1 For example, the 2.4 GHz frequency can be as follows: Figure 1 In other embodiments, the electronic device can also perform parallel scanning, reception and processing of multiple channels based on the solution provided in the embodiments of the present application, and quickly determine the channel using the target protocol type (such as 802.11b protocol) by synchronously parsing each channel.

[0077] As an example, Figure 3 A schematic diagram of the hardware composition of an electronic device provided in an embodiment of the present application.

[0078] like Figure 3As shown, the electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, etc.

[0079] It is to be understood that the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may include more or fewer components than shown in the figure, or combine some components, or split some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.

[0080] The processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (AP), a modem processor, a graphics processor (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Different processing units may be independent devices or integrated into one or more processors.

[0081] The controller may be the nerve center and command center of the electronic device 100. The controller may generate an operation control signal according to the instruction operation code and the timing signal to complete the control of fetching and executing instructions.

[0082] The processor 110 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may store instructions or data that the processor 110 has just used or cyclically used. If the processor 110 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.

[0083] In some embodiments, the processor 110 may include one or more interfaces. The interface may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface, etc.

[0084] It is understandable that the interface connection relationship between the modules illustrated in the embodiment of the present application is only a schematic illustration and does not constitute a structural limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.

[0085] The wireless communication function of the electronic device 100 can be implemented through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor and the baseband processor.

[0086] Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in electronic device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve the utilization of antennas. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In some other embodiments, the antenna can be used in combination with a tuning switch.

[0087] The antenna 1 or the antenna 2 can be used to receive the first sampling signal. That is, the first antenna can be the antenna 1 or the antenna 2.

[0088] Among them, the modem processor can be set in the radio frequency module, and the radio frequency module is used to perform radio frequency domain processing such as amplification, down-conversion, filtering, etc. on the first sampling signal to obtain the second sampling signal.

[0089] The baseband module in the embodiment of the present application may be provided with a baseband processor for realizing digital processing of the signal so as to determine the target channel for transmission using the target protocol type from the M channels.

[0090] The mobile communication module 150 can provide solutions for wireless communications including 2G / 3G / 4G / 5G, etc., applied to the electronic device 100. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves from the antenna 1, and filter, amplify, and process the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modulation and demodulation processor, and convert it into electromagnetic waves for radiation through the antenna 1. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the same device as at least some of the modules of the processor 110.

[0091] The modem processor may include a modulator and a demodulator. Among them, the modulator is used to modulate the low-frequency baseband signal to be sent into a medium-high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After the low-frequency baseband signal is processed by the baseband processor, it is passed to the application processor. The application processor outputs a sound signal through an audio device (not limited to a speaker 170A, a receiver 170B, etc.), or displays an image or video through a display screen 194. In some embodiments, the modem processor may be an independent device. In other embodiments, the modem processor may be independent of the processor 110 and be set in the same device as the mobile communication module 150 or other functional modules.

[0092] The wireless communication module 160 can provide wireless communication solutions including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), etc., which are applied to the electronic device 100. The wireless communication module 160 can be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, modulates the frequency of the electromagnetic wave signal and performs filtering, and sends the processed signal to the processor 110. The wireless communication module 160 can also receive the signal to be sent from the processor 110, modulate the frequency of it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.

[0093] In some embodiments, the antenna 1 of the electronic device 100 is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, so that the electronic device 100 can communicate with the network and other devices through wireless communication technology. The wireless communication technology may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), wideband code division multiple access (WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC, FM, and / or IR technology, etc. GNSS may include the global positioning system (GPS), the global navigation satellite system (GLONASS), the Beidou navigation satellite system (BDS), the quasi-zenith satellite system (QZSS) and / or the satellite based augmentation system (SBAS).

[0094] The electronic device 100 implements the display function through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing, which connects the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs that execute program instructions to generate or change display information.

[0095] The electronic device 100 can realize the shooting function through ISP, camera 193, video codec, GPU, display screen 194 and application processor.

[0096] The digital signal processor is used to process digital signals, and can process not only digital image signals but also other digital signals. For example, when the electronic device 100 is selecting a frequency point, the digital signal processor is used to perform Fourier transform on the frequency point energy.

[0097] Video codecs are used to compress or decompress digital videos. The electronic device 100 may support one or more video codecs. Thus, the electronic device 100 may play or record videos in a variety of coding formats, such as Moving Picture Experts Group (MPEG) 1, MPEG2, MPEG3, MPEG4, etc.

[0098] NPU is a neural network (NN) computing processor. By drawing on the structure of biological neural networks, such as the transmission mode between neurons in the human brain, it can quickly process input information and can also continuously self-learn. Through NPU, applications such as intelligent cognition of electronic device 100 can be realized, such as image recognition, face recognition, voice recognition, text understanding, etc.

[0099] The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100. The external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function, such as storing music, video and other files in the external memory card.

[0100] The internal memory 121 can be used to store computer executable program codes, and the executable program codes include instructions. The processor 110 executes various functional applications and data processing of the electronic device 100 by running the instructions stored in the internal memory 121. The internal memory 121 may include a program storage area and a data storage area. Among them, the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc. The data storage area may store data created during the use of the electronic device 100 (such as audio data, a phone book, etc.), etc. In addition, the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc.

[0101] The electronic device 100 can implement audio functions such as music playing and recording through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone jack 170D, and the application processor.

[0102] It should be noted that the structure illustrated in the embodiments of the present application does not constitute a specific limitation on the electronic device. In other embodiments of the present application, the electronic device may include more or fewer components than shown in the figure, or combine certain components, or split certain components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.

[0103] The following Figure 3 Taking the composition of the electronic device shown as an example, the specific implementation of multi-channel scanning by the electronic device is illustrated.

[0104] Take the example of an electronic device scanning five adjacent channels at a time. Figure 4 As shown, the electronic device may include an antenna module, a radio frequency module, an analog-to-digital conversion unit and a baseband module. The baseband module may include a frequency shift unit group, a filter unit group and a carrier sensing unit group.

[0105] Among them, the RF module receives the multi-channel antenna signal obtained by the electronic device after scanning multiple channels through the antenna module at one time, performs RF processing on the multi-channel antenna signal, and transmits the multi-channel antenna signal after RF processing to the analog-to-digital conversion unit. The multi-channel antenna signal is an analog signal.

[0106] The RF module may perform RF processing on the multi-channel antenna signal, including down-converting the multi-channel antenna signal, and may transform the center frequency of the multi-channel antenna signal into a preset center frequency.

[0107] The analog-to-digital conversion unit converts the analog radio frequency signal into a digital signal, which is a digital signal of multiple channels, and the digital signal of multiple channels can be referred to as a multi-channel digital signal. Further, the analog-to-digital conversion unit transmits the multi-channel digital signal to the baseband module.

[0108] In the embodiment of the present application, the analog-to-digital conversion unit can be set in the RF module, or in the baseband module, or independently outside the RF module and the baseband module. The embodiment of the present application does not limit the location of the analog-to-digital conversion unit in the electronic device.

[0109] In some embodiments, the frequency shift unit group can be implemented by a frequency shift unit. Figure 4 The frequency shift unit group shown in the figure may include frequency shift units 1 to 5. The frequency shift capabilities of different frequency shift units are relatively fixed, and when the frequency shift units of different paths are powered on, corresponding frequency shift processing can be implemented on different paths.

[0110] The filtering unit group is used to filter the multi-channel signal after the frequency shift processing, so as to obtain data segments corresponding to two or more channels included in the multi-channel signal based on the multi-channel signal after the frequency shift.

[0111] Exemplarily, the filter unit group is composed of a plurality of sub-filter units. The number of sub-filter units may correspond to the number of frequency shift units in the frequency shift unit group. For example, the number of sub-filter units may be the same as the number of frequency shift units. In some implementations, the passbands of the sub-filter units may be the same.

[0112] In some embodiments, the filter unit group can be implemented by a plurality of low-pass filters (LPF) having the same pass frequency band. Figure 4 As shown, the filter unit group may include LPF1 to LPF5. In different embodiments, the LPF may adopt a finite impulse response (FIR) filter and / or an infinite impulse response (IIR) filter.

[0113] The carrier sensing unit group may include two or more clear channel assessment (CCA) units, wherein the CCA unit may be used to determine the data segment of the channel transmitted using the target protocol type from the data segments corresponding to the two or more channels.

[0114] In some embodiments of the present application, the number of CCAs in the carrier sensing unit group may be the same as the number of frequency shift units in the frequency shift unit group and / or the number of LFPs in the filter unit group. At the same time, a frequency shift unit, an LFP, and a CCA can implement the function of screening and carrier sensing from a multi-channel digital signal to determine whether a data segment corresponding to a channel is the target channel. In the present application, the CCA, LPF, and frequency shift unit used to process a channel can constitute a signal processing link.

[0115] like Figure 4 As shown, the frequency shift unit group may include frequency shift units 1 to 5, and LPF1 to LPF5 correspond to frequency shift units 1 to 5 respectively. Each LPF may be coupled to a CCA. For example, LPF1 is coupled to CCA1, LPF2 is coupled to CCA2, LPF3 is coupled to CCA3, LPF4 is coupled to CCA4, and LPF5 is coupled to CCA5. Thus, the matching process of each data segment is realized through CCA to determine whether there is a target channel.

[0116] In the present application, each sub-filtering unit and a frequency shifting unit may form a signal processing chain, and the signal processing chain may be used to separate and obtain a data segment corresponding to a channel from data segments corresponding to multi-channel digital signals.

[0117] The frequency shift unit 1 and LPF1 can form a signal processing link for separating and obtaining a channel data segment from the data segments corresponding to the multi-channel signals. The frequency shift unit 1, LPF1 and CCA1 can form a signal processing link for filtering and matching a channel data from the sampled data.

[0118] Similarly, frequency shift unit 2, LPF2 and CCA2 can constitute a signal processing chain, frequency shift unit 3, LPF3 and CCA3 can constitute a signal processing chain, frequency shift unit 4, LPF4 and CCA4 can constitute a signal processing chain, and frequency shift unit 5, LPF5 and CCA5 can constitute a signal processing chain.

[0119] In addition, in the present application, each signal processing link may correspond to a CCA identifier. The CCA identifier may be implemented by a high level / low level, or 0 / 1. The CCA identifier may be used to indicate whether the data segment processed on the current signal processing link is data transmitted via the target protocol type.

[0120] Take the CCA mark as an example, which is implemented through high level / low level.

[0121] When the CCA flag is high, it indicates that the data segment / the channel of the data segment obtained by the current signal processing link screening uses the target protocol type. Correspondingly, when the CCA flag is low, it indicates that the data segment / the channel of the data segment obtained by the current signal processing link screening does not use the target protocol type.

[0122] Take the implementation of CCA identification through 0 / 1 as an example.

[0123] When the CCA flag is 1, it indicates that the data segment / the channel of the data segment obtained by the current signal processing link screening uses the target protocol type. Correspondingly, when the CCA flag is 0, it indicates that the data segment / the channel of the data segment obtained by the current signal processing link screening does not use the target protocol type.

[0124] like Figure 4 As shown, the electronic device may further include a parsing module, a calculating module and a gain adjusting unit.

[0125] The parsing module may determine the channel of the data segment corresponding to the signal processing link with CCA identification 1 as the target channel. The parsing module may also parse the data segment of the target channel and other data received on the target channel according to the target protocol type, thereby obtaining valid data sent through the target channel.

[0126] The calculation module can determine the channel of the data segment corresponding to the signal processing link with CCA identification 1 as the target channel. The calculation module can also be used to calculate the digital average power of the target channel according to the data segment corresponding to the target channel. The digital average power value can be used to adjust the gain of the RF module during the amplification process (such as automatic gain control (AGC)).

[0127] The calculation module can also be used to calculate the signal reception strength corresponding to the antenna signal of the target channel when the antenna module receives the antenna signal of the target channel according to the data segment of the target channel and the AGC gain of the RF module after the digital average power adjustment. The signal reception strength obtained by the calculation can be used to judge the current communication quality, display it separately, filter the target data segment from multiple successfully matched data segments and then determine the target channel. The gain adjustment unit can obtain the multi-channel digital signal output by the analog-to-digital conversion unit and the target signal output by the carrier sensing unit. The gain adjustment unit can adjust the gain of the analog RF signal according to the multi-channel digital signal and the target signal, so that the signal size of the analog RF signal is within an appropriate range.

[0128] Figure 4 The electronic device in the apparatus may also be provided with a control module ( Figure 4 The control module may be used to control the electronic device to perform single-channel scanning or multi-channel scanning according to actual conditions.

[0129] Exemplarily, the control module can be used to control the upper layer implementation of various functions of the electronic device. For example, the control module can be used to control the enabling of various components in the baseband module.

[0130] During multi-channel scanning, the control module can be used to control the working state of the RF module through control commands. The control module can also be used to control the frequency shift unit, LPF and CCA (i.e., the signal processing link in working state) in the baseband module through control commands, thereby achieving a corresponding number of single-channel or multi-channel scans.

[0131] It is to be understood that the above examples are only illustrative of the implementation process of the multi-channel scanning provided by the embodiments of the present application. In some implementations, each unit in the RF module and each unit in the baseband module can be adaptively increased or decreased, and the order of each unit can also be changed. Each module or unit can be flexibly configured according to actual needs or application scenarios, and the embodiments of the present application do not limit this. For example, in some implementations, the RF module of the mobile phone may include a DC filtering unit. The DC filtering unit can be used to filter out DC signals in the RF signal.

[0132] In some other implementations, the baseband module of the mobile phone may include a DC filtering unit, which may be used to filter out DC signals in the multi-channel digital signals after receiving the multi-channel digital signals sent by the analog-to-digital conversion unit.

[0133] In an embodiment of the present application, the electronic device can scan multiple channels at one time, and obtain signals of multiple channels by receiving a signal once. For example, the electronic device can scan 2, 3, 4, or 5 channels at one time. Correspondingly, the electronic device can receive signals of 2, 3, 4, or 5 channels at one time.

[0134] The following is an example of an electronic device scanning five channels in the 2.4GHz frequency band at one time and acquiring signals from the five channels, to illustrate the implementation process of an electronic device scanning multiple channels at one time. Taking the scanning bandwidth as 40MHz as an example, the electronic device can complete the scanning of the entire 2.4G frequency band through three scanning processes.

[0135] like Figure 5 As shown, the electronic device can first scan channels 1 to 5 once to implement the first channel scan. Then, the electronic device scans channels 5 to 9 again to implement the second channel scan. Finally, the electronic device scans channels 9 to 13 once to implement the third channel scan. It can be seen that the electronic device only needs to perform 3 scans to scan all channels. If the electronic device only scans 1 channel each time, then the electronic device needs to perform 13 scans to scan all channels, that is, scan from channel 1 to channel 13 in sequence. It can be seen that the electronic device scanning multiple channels at a time can reduce the number of channel scans and improve the efficiency of channel scanning.

[0136] like Figure 5 As shown, the frequency band A1 of the first channel scan of the electronic device may be 2402 MHz to 2442 MHz, and the frequency band A1 can completely cover channels 1 to 4. In addition, the frequency band of channel 5 is 2421 MHz to 2443 MHz. Therefore, the frequency band A1 can also cover most of the frequency band of channel 5. The central frequency point of the frequency band A1 may be 2422 MHz.

[0137] like Figure 5 As shown, the frequency band A2 of the second channel scan of the electronic device may be 2422 MHz to 2462 MHz, and the frequency band A2 can completely cover channels 5 to 8. In addition, the frequency band of channel 9 is 2441 MHz to 2463 MHz. Therefore, the frequency band A2 can also cover most of the frequency band of channel 9. The central frequency point of the frequency band A2 may be 2442 MHz.

[0138] like Figure 5As shown, the frequency band A3 of the third channel scan of the electronic device may be 2442 MHz to 2482 MHz, and the frequency band A3 can completely cover channels 9 to 12. In addition, the frequency band of channel 13 is 2461 MHz to 2483 MHz. Therefore, the frequency band A3 can also cover most of the frequency band of channel 13. The central frequency point of the frequency band A3 may be 2462 MHz.

[0139] For example, Figure 5 As shown, when the electronic device scans 5 channels of the 2.4 GHz frequency band at one time and obtains signals of the 5 channels, the electronic device can also complete the scanning of the entire 2.4G frequency band through two scanning processes.

[0140] like Figure 6 As shown, the frequency band B1 of the first channel scan of the electronic device may be 2402 MHz to 2442 MHz, and the frequency band B1 can completely cover channels 1 to 4. In addition, the frequency band B1 can also cover most of the frequency band of channel 5, and part of the frequency bands of channels 6, 7, and 8. The center frequency point of the frequency band B1 may be 2422 MHz.

[0141] like Figure 6 As shown, the frequency band B2 of the second channel scan of the electronic device may be 2442 MHz to 2482 MHz, and the frequency band B2 may completely cover channels 9 to 13. In addition, the frequency band B2 may also cover a small portion of the frequency band of channel 5, and another portion of the frequency band covering channels 6, 7, and 8. The central frequency point of the frequency band B2 may be 2462 MHz.

[0142] In the embodiment of the present application, the electronic device can implement multi-channel scanning by adjusting the scanning bandwidth and center frequency of the channel scanning. When scanning multiple channels, the scanning bandwidth of the electronic device can be determined according to the number of channels scanned at one time. Figure 5 As shown in FIG. 1 , the scanning bandwidth of the electronic device for scanning 5 channels at a time is 40 MHz. The central frequency point of the electronic device for channel scanning is first switched from 2422 MHz to 2442 MHz, and finally switched from 2442 MHz to 2462 MHz. Figure 6 As shown, when the scanning bandwidth of the electronic device for scanning 5 channels at a time is 40 MHz, the central frequency point of the electronic device for channel scanning is switched from 2422 MHz to 2462 MHz.

[0143] Exemplarily, the following Table 1 shows the corresponding relationship between the number of channels scanned by an electronic device at one time and the scanning bandwidth of the channel scanning. It can be seen from Table 1 that if the electronic device scans 5 channels at a time, the scanning bandwidth of the channel is 40MHz. If the electronic device scans 4 channels at a time, the scanning bandwidth of the channel is 35MHz. If the electronic device scans 3 channels at a time, the scanning bandwidth of the channel is 30MHz. If the electronic device scans 2 channels at a time, the scanning bandwidth of the channel is 25MHz. If the electronic device scans 1 channel at a time, the scanning bandwidth of the channel is 20MHz.

[0144] Table 1 Channel scanning conditions corresponding to different channel scanning numbers

[0145]

[0146] It can also be seen from the above Table 1 that when the electronic device scans different numbers of channels at a time, the channels at the first scan and the center frequency at each scan. Specifically, if the electronic device scans 5 channels at a time, the channels scanned by the electronic device for the first time are channels 1 to 5, and the center frequency of the first channel scan is 2422MHz. If the electronic device scans 4 channels at a time, the channels scanned by the electronic device for the first time are channels 1 to 4, and the center frequency of the first channel scan is 2419.5MHz. If the electronic device scans 3 channels at a time, the channels scanned by the electronic device for the first time are channels 1 to 3, and the center frequency of the first channel scan is 2417MHz. If the electronic device scans 2 channels at a time, the channels scanned by the electronic device for the first time are channels 1 to 2, and the center frequency of the first channel scan is 2414.5MHz. If the electronic device scans 1 channel at a time, the channel scanned by the electronic device for the first time is channel 1, and the center frequency of the first channel scan is 2412MHz. When the electronic device scans multiple channels at a time, the center frequency of each channel is down-converted so as to move the center frequency of each channel to near 0MHz. In this way, for signals received on different frequency bands, their center frequencies can be the same after down-conversion processing, so that the electronic device can process the signals collected by different channels through the same module or component.

[0147] like Figure 7As shown, the electronic device can perform down-conversion processing on the signal 1 after acquiring the signal 1. The down-conversion processing can include moving the center frequency of the signal 1 to 0 MHz. For example, assume that the center frequency of the signal 1 corresponds to the center frequency of the channel 3. Then, after the down-conversion processing, the center frequency corresponding to the channel 3 is moved to 0 MHz. Correspondingly, after the down-conversion processing, the center frequency of the channel 2 can be moved to -5 MHz, and the center frequency of the channel 1 can be -10 MHz. Similarly, after the down-conversion processing, the center frequency of the channel 4 can be moved to 5 MHz, and the center frequency of the channel 5 can be moved to 10 MHz.

[0148] It can be seen from Table 1 above that when the number of channels scanned at one time by the electronic device is different, the center frequency of the mixing unit and the scanning bandwidth of the filtering unit of the electronic device are also different. In this case, after the electronic device determines the scanning mode, the electronic device can control the RF module and the baseband module according to the scanning mode, so that the RF module of the electronic device adjusts the center frequency of the mixing unit and the scanning bandwidth of the filtering unit according to the received command, and the baseband module controls different signal processing links to enable power on according to the received command.

[0149] When the number of channels scanned by the electronic device at one time is different, the power consumption of the electronic device during the scanning process is also different. The more channels the electronic device scans at one time, the greater the power consumption of the electronic device during the scanning process. Figure 4 As shown, when the electronic device determines to scan 5 channels at a time, the control module enables frequency shift units 1 to 5, and LPF1 to LPF5 and CCA1 to CC5 are all powered on. When the electronic device determines to scan 2 channels at a time, the control module enables frequency shift units 1 to 2 to power on, and other frequency shift units are not powered on, the control module enables LPF1 to LPF2 to power on, and other LPFs are not powered on, the control module enables CCA1 to CCA2 to power on, and other CCAs are not powered on. It can be seen that the power consumption of the electronic device when scanning 5 channels at a time is greater than the power consumption when scanning 3 channels at a time.

[0150] Therefore, after the control module of the electronic device adjusts the number of channels scanned at one time in real time according to the scanning mode, it not only saves the channel scanning time, but also helps to reduce the power consumption of the electronic device.

[0151] After the electronic device determines the scanning mode, the control module controls the RF module to work in the first working state according to the scanning mode, and controls at least two signal processing links of the at least two signal processing links to be enabled and powered on. Then, the electronic device obtains the first sampling signal through the first antenna, and obtains the second sampling signal through the RF module working in the first working state, so that the frequency band of the second sampling signal includes the frequency band of at least two channels, and the electronic device digitally processes the second sampling signal through at least two signal processing links, and determines whether the multiple channels corresponding to the second sampling signal include a target channel for data transmission using a preset target protocol type.

[0152] The following takes the mobile phone as an example. Figure 8 -Attached Fig.16 The above process is introduced in detail.

[0153] like Figure 8 As shown, the method provided in the embodiment of the present application may include the following steps:

[0154] S801, the mobile phone acquires scanning mode.

[0155] Among them, the scanning mode is used to indicate that the number of channels scanned at one time by the mobile phone is M channels. The scanning mode corresponds to the number of channels scanned at one time. For example, the number of channels corresponding to the one-time scan of scanning mode 1 is 1, the number of channels corresponding to the one-time scan of scanning mode 2 is 2, the number of channels corresponding to the one-time scan of scanning mode 3 is 3, the number of channels corresponding to the one-time scan of scanning mode 4 is 4, and the number of channels corresponding to the one-time scan of scanning mode 5 is 5.

[0156] Exemplarily, take the scanning number of different numbers as M, where M is an integer greater than or equal to 1. When M is equal to 1, the composition of the mobile phone provided in the embodiment of the present application can be used to support single-channel scanning. When M is greater than 1, such as when M is equal to 2, the composition of the mobile phone provided in the embodiment of the present application can be used to support multi-channel scanning of 2 channels at the same time. When M is equal to 3, the composition of the mobile phone provided in the embodiment of the present application can be used to support multi-channel scanning of 3 channels at the same time. When M is equal to 4, the composition of the mobile phone provided in the embodiment of the present application can be used to support multi-channel scanning of 4 channels at the same time. When M is equal to 5, the composition of the mobile phone provided in the embodiment of the present application can be used to support multi-channel scanning of 5 channels at the same time. And so on.

[0157] It is understandable that the maximum value of M, that is, the maximum number of simultaneously scanned channels that the mobile phone can support, may be determined by the hardware configuration of the mobile phone. For example, the number of signal processing links configured in the mobile phone may correspond to the maximum number of simultaneously scanned channels that the mobile phone can provide.

[0158] In the embodiment of the present application, the scanning mode may be a scanning mode corresponding to a channel scan determined by the mobile phone.

[0159] Optionally, when the mobile phone receives a user operation indicating a WiFi connection, the mobile phone can scan multiple channels at a time to determine an idle channel among the multiple channels. Then, the mobile phone counts the frequency of each channel being an idle channel and determines the scanning mode according to the frequency of the idle channels.

[0160] For example, assuming that the mobile phone scans 5 channels at a time, the mobile phone scans channels 1 to 5 for the first time, channels 5 to 9 for the second time, and channels 9 to 13 for the third time, and so on. The mobile phone counts the idle channels each time the channel is scanned, and the mobile phone determines the number of channels to be scanned at one time according to the frequency of a certain channel being determined as an idle channel. For example, assuming that the mobile phone determines that channels 1 and 5 are idle channels most frequently, the mobile phone can determine that the number of channels to be scanned at one time is 5. In this way, the mobile phone can scan channels 1 and 5 at the same time during a channel scan. For another example, assuming that the mobile phone determines that channels 1 and 3 are idle channels most frequently, the mobile phone can determine that the number of channels to be scanned at one time is 3, that is, the scanning mode is determined to be scanning mode 3. In this way, the mobile phone can scan channels 1 and 3 at the same time during a channel scan.

[0161] S802: The mobile phone controls the radio frequency module to work in a first working state according to the scanning mode, and controls M signal processing links of at least two signal processing links to be enabled and powered on.

[0162] In the embodiment of the present application, after the mobile phone determines the scanning mode, the control module of the mobile phone can generate a first command stream and a second command stream according to the scanning mode. Then, the control module of the mobile phone controls the radio frequency module to work in the first working state according to the first command stream. The control module of the mobile phone can also control the M signal processing links in the baseband module to enable power on according to the second command stream.

[0163] In one possible case, the first command stream may include a first command and a second command. The control module of the mobile phone may control the center frequency of the frequency mixing unit to be a first frequency according to the first command. The first frequency is the center frequency corresponding to the frequency band of the M channels. The control module of the mobile phone may control the scanning bandwidth of the filtering unit to be a first bandwidth according to the second command. The first bandwidth is the scanning bandwidth corresponding to the bandwidth of the M channels.

[0164] For example, assuming that the mobile phone determines that the number of channels to be scanned at one time is 5 channels according to the scanning mode, the control module of the mobile phone can control the center frequency of the mixing unit to be set to 2.422GHz according to the first command, and the control module controls the scanning bandwidth of the filtering unit to be set to 40MHz according to the second command. When the mobile phone determines that the number of channels to be scanned at one time is 2 channels according to the scanning mode, the control module of the mobile phone can control the center frequency of the mixing unit to be set to 2.4145GHz according to the first command, and control the scanning bandwidth of the filtering unit to be set to 25MHz according to the second command. It can be seen that the control module of the mobile phone can control the center frequency of the mixing unit and the scanning bandwidth of the filtering unit through control commands according to the number of channels to be scanned at one time, so as to realize the scanning of multi-channel signals.

[0165] In one example, when the mobile phone controls the scanning bandwidth of the filtering unit according to the second command, the mobile phone can configure the scanning bandwidth of the filtering unit to the first bandwidth according to the second command. Fig. 9 As shown, the control module of the mobile phone determines that the number of channels scanned at one time corresponding to the scanning mode is 5, and the control module of the mobile phone can control the scanning bandwidth of the filter unit to be configured as 40MHz according to the second command. The control module of the mobile phone determines that the number of channels scanned at one time corresponding to the scanning mode is 4, and the control module of the mobile phone can control the scanning bandwidth of the filter unit to be configured as 35MHz according to the second command. The control module of the mobile phone determines that the number of channels scanned at one time corresponding to the scanning mode is 3, and the control module of the mobile phone can control the scanning bandwidth of the filter unit to be configured as 30MHz according to the second command. The control module of the mobile phone determines that the number of channels scanned at one time corresponding to the scanning mode is 2, and the control module of the mobile phone can control the scanning bandwidth of the filter unit to be configured as 25MHz according to the second command.

[0166] In another example, when the filter unit includes multiple sub-filter units, the mobile phone can also control the sub-filter unit with a scanning bandwidth of the first bandwidth to be powered on according to the second command, so that the powered-on sub-filter unit performs filtering processing on the signal. Fig. 9 The filter unit in the mobile phone includes multiple sub-filter units, and the scanning channels of the multiple sub-filter units are different. When the control module of the mobile phone determines that the number of channels to be scanned at one time corresponding to the scanning mode is 5, the control module of the mobile phone can control the sub-filter unit with a scanning bandwidth of 40MHz to be powered on, so that the sub-filter unit after powering on filters out the data segments corresponding to the 5 channels. When the control module of the mobile phone determines that the number of channels to be scanned at one time corresponding to the scanning mode is 4, the control module of the mobile phone can control the sub-filter unit with a scanning bandwidth of 34MHz to be powered on, so that the sub-filter unit after powering on filters out the data segments corresponding to the 4 channels.

[0167] It can be understood that when the scanning mode determined by the mobile phone is different, the number of channels scanned at one time is also different. When the number of channels scanned at one time by the mobile phone is different, the center frequency of the mixing unit and the scanning bandwidth of the filtering unit are also different. The control module can set the center frequency of the mixing unit and the scanning bandwidth of the filtering unit through control commands.

[0168] In an embodiment of the present application, after the mobile phone determines the scanning mode, the mobile phone determines that the number of channels to be scanned at one time is M channels according to the scanning mode, and the control module of the mobile phone can control the M signal processing links of at least two signal processing links to enable power according to the second command stream, so that the M signal processing links perform digital processing on the signal.

[0169] Exemplarily, the mobile phone is configured with five signal processing links, which are used to support multi-channel scanning of no more than five channels at the same time, or to support single-channel scanning, under the control of the control module.

[0170] For example, Fig. 9 As shown, the RF module of the mobile phone may include a mixing unit and a filtering unit. The baseband module of the mobile phone may include a frequency shift unit group, a resampling unit group, a filtering unit group and a carrier sensing unit group.

[0171] The frequency shift unit group may include frequency shift units 1 to 5, the resampling unit group includes subsampling units 1 to 5, the filtering unit group includes LPF1 to LPF5, and the carrier sensing unit group includes CCA1 to CCA5. Each frequency shift unit is coupled to a subsampling unit, each subsampling unit is coupled to an LPF, and each LPF is coupled to a CCA. A frequency shift unit, a subsampling unit coupled to the frequency shift unit, an LPF coupled to the subsampling unit, and a CCA coupled to the LPF constitute a signal processing link. For example, Fig. 9 It can be seen that frequency shift unit 1, subsampling unit 1, LPF1 and CCA1 constitute a signal processing chain, frequency shift unit 2, subsampling unit 2, LPF2 and CCA2 constitute a signal processing chain, frequency shift unit 3, subsampling unit 3, LPF3 and CCA3 constitute a signal processing chain, frequency shift unit 4, subsampling unit 4, LPF4 and CCA4 constitute a signal processing chain, frequency shift unit 5, subsampling unit 5, LPF5 and CCA5 constitute a signal processing chain.

[0172] It should be noted that when the sampling frequency of the analog-to-digital conversion unit of the mobile phone is the same as the frequency at which the baseband module digitally processes the digital signal, the above-mentioned signal processing chain may not include a subsampling unit, that is, the baseband module does not need to resample the digital signal.

[0173] The control module in the mobile phone can be used to control the power-on or power-off of the signal processing link, thereby realizing different numbers of channel scans in different scenarios.

[0174] Exemplary, reference Fig. 9 . The control module can send a second command stream to the baseband module to control the power-on operation of M frequency shift units, M sub-sampling units, M LPFs and M CCAs among the n frequency shift units, n sub-sampling units, n LPFs and n CCAs in the baseband module, while other frequency shift units, sub-sampling units, LPFs and CCAs are not powered on. In this way, the powered-on M frequency shift units and M LPFs can realize the division of data segments of M channels when scanning M channels simultaneously. The control signals sent by the control module to the M frequency shift units, M sub-sampling units, M LPFs and M DDCs can constitute the second command stream.

[0175] In this way, when different numbers of multi-channel scans are required, the control module can control the corresponding number of signal processing links to power on, so as to divide and match the received signals including multiple channel data. For example, when performing multi-channel scans of up to M channels, the control module can enable M signal processing links to power on.

[0176] It should be noted that in some embodiments of the present application, the frequency shift processing capabilities that can be provided by each frequency shift unit in the baseband module may be different. In the specific implementation process, when M is different, the frequency shift processing required is also different. Based on this, the embodiment of the present application also provides a link control scheme in a multi-channel scanning process, so that the frequency shift processing of the multi-channel scanning process with different numbers of channels can be accurately and effectively implemented in different scenarios through the minimum circuit area.

[0177] Here, the detailed process of the M signal processing links performing digital processing on the signal can be found in the introduction process of S806 below, which will not be described in detail here.

[0178] S803: The mobile phone receives a first sampling signal through a first antenna.

[0179] The frequency band of the first sampling signal includes the full frequency band of 2.4G, that is, the frequency band of the first sampling signal may include the frequency band of channel 1 to channel 13.

[0180] For example, Fig. 9 As shown, the mobile phone may include an antenna module, and the mobile phone may receive 2.4G full-band signals through the antenna module, that is, receive the first sampling signal through the antenna module.

[0181] S804: The mobile phone performs radio frequency domain processing on the first sampled signal to obtain a second sampled signal.

[0182] Among them, the second sampling signal is a sampling signal obtained by performing RF domain processing on the first sampling signal. When the mobile phone determines the scanning mode, and the number of channels to be scanned at one time is determined by the mobile phone according to the scanning mode as M, the frequency band of the second sampling signal includes the frequency bands corresponding to M adjacent channels. For example, when M is 5, the frequency band of the second sampling signal includes the frequency band corresponding to channels 1 to 5, or the frequency band of the second sampling signal includes the frequency band corresponding to channels 5 to 9, or the frequency band of the second sampling signal includes the frequency band corresponding to channels 9 to 13. For another example, when M is 3, the frequency band of the second sampling signal includes the frequency band corresponding to channels 1 to 3, or the frequency band of the second sampling signal includes the frequency band corresponding to channels 4 to 6, or the frequency band of the second sampling signal includes the frequency band corresponding to channels 6 to 8, and so on.

[0183] Here, after the mobile phone receives the first sampling signal from all channels through the first antenna, the RF signal can be transmitted to the RF module, so that the RF module performs RF domain processing on the first sampling signal to obtain a second sampling signal.

[0184] For example, Fig. 9 As shown, the RF module may include a mixing unit and a filtering unit. After the mixing unit of the RF module receives the first sampling signal from all channels, the first sampling signal is mixed and low-pass filtered to obtain a second sampling signal. The first sampling signal is an analog signal. Further, the filtering unit of the RF module transmits the processed second sampling signal to the analog-to-digital conversion unit.

[0185] It is understandable that, assuming that the mobile phone scans 5 channels at a time, it can first scan channels 1 to 5 to achieve the first channel scan. Then, the mobile phone scans channels 5 to 9 to achieve the second channel scan. Finally, the mobile phone scans channels 9 to 13 to achieve the third channel scan. The mobile phone can scan all channels of 2.4G WiFi through 3 scans. During the channel scanning process, the scanning bandwidth of the filter unit of the RF module is 40MHz. At the same time, when the mobile phone performs channel scanning, the control module of the mobile phone controls the center frequency of the local oscillator of the mixing unit to switch from 2422MHz to 2442MHz, and then from 2442MHz to 2462MHz.

[0186] In the embodiment of the present application, it is assumed that the mobile phone determines the number of channels to be scanned at one time according to the scanning mode, and after switching from scanning 5 channels at one time to scanning 3 channels at one time, the control module controls the scanning bandwidth of the filter unit to be configured as 30MHz. In the process of the mobile phone scanning 3 channels at one time, the control module controls the central frequency of the local oscillator of the mixing unit to switch from 2417MHz to 2432MHz, then from 2432MHz to 2447MHz, and then from 2447MHz to 2462MHz.

[0187] Hereinafter, the method provided in the embodiment of the present application is introduced by taking the first channel scan performed by a mobile phone as an example. The process of other channel scans is the same as the process of this channel scan, and will not be repeated here.

[0188] In an embodiment of the present application, after the mobile phone obtains the first sampling signal, it can down-convert the first sampling signal. By down-converting the first sampling signal, the center frequency of the first sampling signal after the down-conversion processing is transformed to a preset center frequency (for example, the preset center frequency is 0).

[0189] For example, Fig. 9 As shown, after the mixing unit of the RF module receives the first sampling signal sent by the antenna module, the mixing unit down-converts the first sampling signal, and then sends the down-converted sampling signal to the filtering unit for information filtering, so as to filter out the data segments corresponding to M channels from the first sampling signal, that is, the second sampling signal.

[0190] It should be noted that the preset center frequency here can be set according to the actual application scenario or demand. For example, the preset center frequency can be 0MHz. Taking the 5 channels scanned by the mobile phone this time as channel 1 to channel 5, and the preset center frequency is 0MHz, the center frequency of the first sampling signal obtained by the mobile phone is 2422MHz. After the mobile phone performs down-conversion processing on the first sampling signal, the center frequency of the first sampling signal is changed from 2422MHz to 0MHz.

[0191] It can be understood that the mobile phone performs down-conversion processing on the first sampling signal, and the center frequency points of the first sampling signals of different frequency bands obtained in multiple channel scans can be moved to the corresponding preset center frequency points. For example, after the mobile phone obtains the multi-channel signal of the frequency band corresponding to channels 1 to 5 in the first scan, and obtains the first digital signal of the frequency band corresponding to channels 5 to 9 in the second scan, the RF processing unit of the mobile phone performs down-conversion processing on the first sampling signal of the frequency band corresponding to channels 1 to 5, and the center frequency point of the first sampling signal 2422MHz can be moved to the preset center frequency point 0MHz. After the RF processing unit of the mobile phone performs down-conversion processing on the first sampling signal corresponding to channels 5 to 9, the center frequency point of the first sampling signal 2442MHz can be moved to the preset center frequency point 0MHz. After the mobile phone moves the center frequency point of the first sampling signal to the preset center frequency point, the center frequency points of each channel corresponding to the first sampling signal are also moved.

[0192] Exemplarily, taking the first sampling signal as a signal obtained by a mobile phone scanning channels 1 to 5, and the preset center frequency as 0, the frequency band corresponding to the first sampling signal is from 2401MHz to 2441MHz, and its center frequency is 2422MHz. After the first sampling signal is down-converted, the center frequency of the first sampling signal is converted from 2422MHz to 0MHz, the center frequency of channel 1 is converted from 2412MHz to -10MHz, the center frequency of channel 2 is converted from 2417MHz to -5MHz, the center frequency of channel 3 is converted from 2422MHz to 0MHz, the center frequency of channel 4 is converted from 2427MHz to 5MHz, and the center frequency of channel 5 is converted from 2432MHz to 10MHz.

[0193] Taking the first sampling signal as an example, which is the signal obtained by the mobile phone scanning channel 1 to channel 4, after down-conversion processing, the center frequency of channel 1 is converted from 2412MHz to -7.5MHz, the center frequency of channel 2 is converted from 2417MHz to -2.5MHz, the center frequency of channel 3 is converted from 2422MHz to 2.5MHz, and the center frequency of channel 4 is converted from 2427MHz to 7.5MHz.

[0194] Taking the first sampling signal as an example, which is the signal obtained by the mobile phone scanning channel 1 to channel 3, after down-conversion processing, the center frequency of channel 1 is converted from 2412MHz to -5MHz, the center frequency of channel 2 is converted from 2417MHz to 0MHz, and the center frequency of channel 3 is converted from 2422MHz to 5MHz.

[0195] Taking the first sampling signal as an example, which is the signal obtained by the mobile phone scanning channel 1 to channel 2, after down-conversion processing, the center frequency of channel 1 is converted from 2412MHz to -2.5MHz, and the center frequency of channel 2 is converted from 2417MHz to 2.5MHz.

[0196] In this way, the baseband module of the mobile phone can perform the same subsequent processing on the first sampling signals obtained from multiple scans of different frequency bands through the same module or unit, thereby simplifying the signal processing process and improving the efficiency of channel scanning.

[0197] S805: The mobile phone performs analog-to-digital conversion on the second sampling signal to obtain a first digital signal.

[0198] In an embodiment of the present application, the second sampling signal from the M channels is an analog signal. To facilitate signal processing, the mobile phone can perform analog to digital conversion (ADC) on the radio frequency signal to convert the analog second sampling signal into a digital signal. The digital signal after the second sampling signal is converted can be called the first digital signal. During the analog to digital conversion process of the mobile phone on the second sampling signal, the second sampling signal can be sampled at a first frequency to obtain a first digital signal. The sampling frequency of the analog to digital conversion process is the first frequency.

[0199] For example, Fig. 9 As shown, after the analog-to-digital conversion unit of the mobile phone receives the second sampling signal sent by the filtering unit, the mobile phone can convert the second sampling signal into a first digital signal through the analog-to-digital conversion unit. The sampling frequency of the analog-to-digital conversion process is the first frequency (for example, 80MHz). After acquiring the first digital signal, the analog-to-digital conversion unit of the mobile phone can transmit the first digital signal to the baseband module for subsequent processing.

[0200] In some implementations, in order to make the number of bits of the first digital signal within an appropriate range of bits, the mobile phone can also adjust the gain of the radio frequency signal according to the first digital signal after analog-to-digital conversion. For example, if the number of bits of the first digital signal is greater than or equal to the first preset number of bits, the gain of the radio frequency signal can be reduced to reduce the number of bits of the first digital signal of the next frame. If the number of bits of the first digital signal is less than or equal to the second preset number of bits, the mobile phone can increase the gain of the radio frequency signal to increase the number of bits of the first digital signal of the next frame. If the number of bits of the first digital signal is between the first preset number of bits and the second preset number of bits, the mobile phone can maintain the gain of the radio frequency signal to keep the number of bits of the first digital signal of the next frame within an appropriate range of bits.

[0201] In this way, the first digital signal acquired by the mobile phone can be kept at an appropriate number of bits, thereby facilitating subsequent processing of the first digital signal by the mobile phone.

[0202] It needs to be explained that Fig. 9 The analog-to-digital conversion unit can be coupled in the RF module, can be coupled in the baseband module, or can be independent of the RF module and the baseband module, which is not limited in the embodiments of the present application.

[0203] S806: The M signal processing links of the mobile phone digitally process the first digital signal to determine whether the M channels include the target channel.

[0204] In an embodiment of the present application, after the baseband module of the mobile phone obtains the first digital signal, the M signal processing links that have been enabled and powered on in the baseband module can digitally process the first digital signal to determine whether the target channel is included in the M channels.

[0205] As an example, Fig. 9 As shown, the control module can be coupled to each of the frequency shift units 1 to n, each of the sub-sampling units 1 to n, each of the LPF1 to LPFn, and each of the CCA1 to CCAn through control signal lines.

[0206] In actual operation, the control module can determine that M channels need to be used for synchronous scanning according to the current environment and the preset strategy. M is a positive integer less than or equal to n.

[0207] When M is equal to 1, the electronic device can perform single-channel scanning. Correspondingly, when M is greater than 1, multi-channel scanning can be performed.

[0208] Take M greater than 1 and the electronic device performing multi-channel scanning as an example.

[0209] The control module can enable M frequency shifting units from frequency shifting unit 1 to frequency shifting unit n to be powered on and operated through the control signal line, while other frequency shifting units are not powered on. This is to facilitate the frequency shifting processing of the first digital signal through the M frequency shifting units. Among them, a 0MHz frequency shifting processing can be included (i.e., no movement in the frequency domain). After the frequency shifting processing, the center frequencies of the M sampling data are all moved to 0MHz, and the data segments of 22MHz, which are extended by 11MHz to both sides from the center frequency, correspond to the data segments corresponding to the M channels.

[0210] The control module can enable M LPFs from LPF1 to LPFn to power on and not power on other LPFs through the control signal line, so as to filter the M frequency-shifted digital signals through the M LPFs respectively, and then obtain the data segments corresponding to the M channels.

[0211] The control module can enable m CCAs from CCA1 to CCAn to be powered on and other CCAs to be powered off through the control signal line, so as to match the acquired data segments of M channels through the M CCAs respectively, thereby determining whether the target channel is included in the M channels corresponding to the M data segments.

[0212] It can be understood that, under the control of the control module, M frequency shift units, M sub-sampling units, M LPFs and M CCAs can be frequency shift units, sub-sampling units, LPFs and CCAs of M signal processing links. This enables the enabling control of M signal processing links, so that the baseband module can smoothly analyze and process the sampled data of M channels. This is then achieved through a multi-channel scanning solution, and through a small number of scanning and analysis, the target channel using the target protocol type can be quickly determined.

[0213] The implementation process of each signal processing link performing digital processing on the first digital signal can be found in Fig.10 The implementation process of S8061 to S8064.

[0214] S8061, the mobile phone performs frequency shift processing on the first digital signal to obtain a second digital signal after frequency shift processing.

[0215] In an example of this implementation, after the baseband module receives the first digital signal, it can perform frequency shift processing on the first digital signal.

[0216] It is understandable that the center frequency of the first sampling signal can be moved to the preset center frequency through down-conversion processing. However, since the lengths of the acquired signals are different when scanning different numbers of multi-channels, the center frequencies of the channels are actually different after down-conversion processing.

[0217] For example, refer to the above Figure 6 . Take the down-conversion processing of the signal scanning 5 channels as an example. After the down-conversion processing, the center frequency of the sampled data signal 1 can be moved to 0MHz. Correspondingly, in this data segment, the center frequency of channel 1 is -10MHz, the center frequency of channel 2 is -5MHz, the center frequency of channel 3 is 0MHz, the center frequency of channel 4 is 5MHz, and the center frequency of channel 5 is 10MHz.

[0218] The baseband module may be provided with a plurality of frequency shifting units, each of which is used to shift the center frequency point of each channel in the first digital signal to a preset center frequency point.

[0219] For example, Fig.11As shown, a plurality of frequency shifting units may be provided in the baseband module of the mobile phone. The number of frequency shifting units may be determined by the number of channels scanned at one time, for example, the plurality of frequency shifting units may include frequency shifting unit 1, frequency shifting unit 2, frequency shifting unit 3, frequency shifting unit 4, and frequency shifting unit 5. The frequency shifting unit is used to move the first digital signal from the center frequency point of the corresponding channel to the preset center frequency point.

[0220] In this example, the frequency shifting units 1 to 5 may be configured with different frequency shifting capabilities, respectively.

[0221] For example, frequency shift unit 1 can be used to perform a frequency shift process of 0 MHz. Frequency shift unit 2 can be used to perform a frequency shift process of -2.5 MHz and / or -5 MHz. Frequency shift unit 3 can be used to perform a frequency shift process of 2.5 MHz and / or 5 MHz. Frequency shift unit 4 can be used to perform a frequency shift process of -7.5 MHz and / or -10 MHz. Frequency shift unit 5 can be used to perform a frequency shift process of 7.5 MHz and / or 10 MHz.

[0222] In this Fig.11 In the scenario of 5-channel sampling scanning shown, the frequency shift unit is required to provide frequency shift processing of 10 MHz, 5 MHz, -5 MHz and -10 MHz respectively, and then obtain the data segments corresponding to the 5 channels respectively through filtering processing.

[0223] In other multi-channel sampling scanning processes, the required frequency shift processing lengths may be different.

[0224] Take the frequency shift processing of 4-channel sampled data as an example. After the frequency shift processing, the center frequency of the first digital signal can be moved to 0MHz. Correspondingly, in this data segment, the center frequency of channel 1 is -7.5MHz, the center frequency of channel 2 is -2.5MHz, the center frequency of channel 3 is 2.5MHz, and the center frequency of channel 4 is 7.5MHz.

[0225] Thus, in the scenario of 4-channel sampling and scanning, the frequency shift unit is required to provide frequency shift processing of 7.5 MHz, 2.5 MHz, -2.5 MHz and -7.5 MHz respectively, and then obtain the data segments corresponding to the 4 channels respectively through filtering processing.

[0226] Take the frequency shift processing of data sampled from 3 channels as an example. After the frequency shift processing, the center frequency of the first digital signal can be moved to 0MHz. Correspondingly, in this data segment, the center frequency of channel 1 is -5MHz, the center frequency of channel 2 is 0MHz, and the center frequency of channel 3 is 5MHz.

[0227] Thus, in the scenario of 3-channel sampling and scanning, the frequency shift unit is required to provide 5 MHz and -5 MHz frequency shift processing respectively, and then obtain the data segments corresponding to the 3 channels respectively through filtering processing.

[0228] Take the frequency shift processing of data sampled from 2 channels as an example. After the frequency shift processing, the center frequency of the first digital signal can be moved to 0 MHz. Correspondingly, in this data segment, the center frequency of channel 1 is -2.5 MHz, and the center frequency of channel 2 is 2.5 MHz.

[0229] Thus, in the scenario of 2-channel sampling and scanning, the frequency shift unit is required to provide 2.5 MHz and -2.5 MHz frequency shift processing respectively, and then obtain the data segments corresponding to the two channels respectively through filtering processing.

[0230] In summary, in the implementation of a solution that provides a maximum of 5-channel scanning, the frequency shift unit needs to be able to provide at least -7.5 MHz, -5 MHz, -2.5 MHz, as well as 2.5 MHz, 5 MHz and 7.5 MHz frequency shift processing capabilities.

[0231] The frequency shift unit 1 can provide a frequency shift processing capability of 0MHz. In this way, the frequency shift unit 1 can be used to perform frequency shift processing on the input first digital signal without frequency domain shifting. For example, the frequency shift unit 1 can be used for the processing of channel 3 in the 5-channel scanning scenario, the processing of channel 2 in the 3-channel scanning scenario, etc. in the above example. Thus, by subsequent filtering processing with the center frequency of the frequency band being 0MHz, the data segment of channel 3 in the 5-channel scanning scenario or channel 2 in the 3-channel scanning scenario can be obtained. In other embodiments, the frequency shift unit 1 can also be used for signal processing for single-channel scanning.

[0232] The frequency shift unit 2 can provide -2.5MHz and -5MHz frequency shift processing capabilities. In this way, the frequency shift unit 2 can be used to perform frequency shift processing on the input digital signal and perform frequency domain shifting at the same time. For example, the frequency shift unit 2 can be used in the above example to process channel 4 in a 5-channel scanning scenario, channel 3 in a 4-channel scanning scenario, channel 3 in a 3-channel scanning scenario, channel 2 in a 2-channel scanning scenario, etc. Through the frequency shift processing, the frequency shift unit 2 can move the center frequency of the corresponding channel data segment to 0MHz, so as to obtain the data segment of the channel through subsequent filtering processing with the center frequency of the frequency band being 0MHz.

[0233] The frequency shift unit 3 can provide 2.5MHz and 5MHz frequency shift processing capabilities. In this way, similar to the frequency shift unit 2, the frequency shift unit 3 can be used to perform frequency shift processing on the input digital signal and perform frequency domain shift at the same time. For example, the frequency shift unit 3 can be used in the above example, the processing of channel 2 in the 5-channel scanning scenario, the processing of channel 2 in the 4-channel scanning scenario, the processing of channel 1 in the 3-channel scanning scenario, the processing of channel 1 in the 2-channel scanning scenario, etc. Through the frequency shift processing, the frequency shift unit 3 can move the center frequency point of the corresponding channel data segment to 0MHz, so as to obtain the data segment of the channel through subsequent filtering processing with the center frequency point of the frequency band being 0MHz.

[0234] The frequency shift unit 4 can provide -7.5MHz and -10MHz frequency shift processing capabilities. In this way, the frequency shift unit 3 can also be used to perform frequency shift processing on the input digital signal and perform frequency domain shifting at the same time. For example, the frequency shift unit 4 can be used in the above example to process channel 5 in a 5-channel scanning scenario, process channel 4 in a 4-channel scanning scenario, etc. Through the frequency shift processing, the frequency shift unit 4 can move the center frequency of the corresponding channel data segment to 0MHz, so as to obtain the data segment of the channel through subsequent filtering processing with the center frequency of the frequency band being 0MHz.

[0235] The frequency shift unit 5 can provide 7.5MHz and 10MHz frequency shift processing capabilities. In this way, the frequency shift unit 5 can also be used to perform frequency shift processing on the input digital signal and perform frequency domain shift at the same time. For example, the frequency shift unit 5 can be used in the above example to process channel 1 in a 5-channel scanning scenario, process channel 4 in a 4-channel scanning scenario, etc. Through the frequency shift processing, the frequency shift unit 4 can move the center frequency of the corresponding channel data segment to 0MHz, so as to obtain the data segment of the channel through subsequent filtering processing with the center frequency of the frequency band being 0MHz.

[0236] S8062: The mobile phone resamples the second digital signal to obtain a third digital signal, wherein the sampling frequency of the second digital signal is a first frequency, and the sampling frequency of the third digital signal is a second frequency, and the first frequency is different from the second frequency.

[0237] In an embodiment of the present application, the mobile phone can first perform frequency shift processing on the first digital signal, and then resample the digital signal after the frequency shift processing. The resampling process can resample the second digital signal of the first frequency to the second frequency, so that the sampling frequency of the third digital signal after the resampling process meets the frequency requirements of the subsequent baseband module. After obtaining the second digital signal after the frequency shift processing, the mobile phone uses the resampling unit to resample the second digital signal of the first frequency to obtain the third digital signal of the second frequency.

[0238] It is understandable that in order to ensure the accuracy of the digital processing process, the modules or units (such as Fig. 9 The frequency of the filter unit group, carrier sensing unit group, etc. in the baseband module needs to match the sampling frequency of the analog-to-digital conversion unit. For example, when the sampling frequency of the analog-to-digital conversion unit is 80MHz, the frequency of the module or unit that processes the digital signal in the baseband module can also be 80MHz. In some cases, the sampling frequency of the analog-to-digital conversion unit is different from the frequency of the module or unit that processes the digital signal in the baseband module. In this way, you can configure the following in the mobile phone: Fig. 9 The resampling unit group shown converts the frequency of the first digital signal after analog-to-digital conversion into a frequency that satisfies the baseband module for digital processing of the digital signal, thereby ensuring the accuracy of the digital processing.

[0239] For example, Fig. 9 As shown, the resampling unit group of the mobile phone may include 5 subsampling units. The number of subsampling units is the same as the number of channels scanned by the mobile phone at one time, that is, when the number of channels scanned by the mobile phone at one time is 5, the resampling unit group includes 5 subsampling units. Different subsampling units respectively output the third digital signal of the second frequency. These 5 subsampling units can be respectively represented as subsampling unit 1, subsampling unit 2, subsampling unit 3, subsampling unit 4, and subsampling unit 5, and the sampling bandwidth of the 5 subsampling units is 20M. The second frequency here can be the frequency used by the sub-filter unit and the sub-carrier sensing unit for subsequent processing of the digital signal.

[0240] Each subsampling unit can resample the second digital signal of the first frequency (such as 80MHz) to a third digital signal of the second frequency (such as 44MHz) so that the frequency of the resampled third digital signal is consistent with the frequency used by subsequent modules or units to process the signal.

[0241] In the embodiment of the present application, the resampling process performed by the sub-sampling unit on the second digital signal after the frequency shift process may include: interpolation process, at least one filtering process and at least one decimation process.

[0242] In some embodiments, the sub-sampling unit may perform a first multiple interpolation process on the second digital signal after the frequency shift process to obtain an interpolated digital signal. The first multiple is a first preset value, for example, the first preset value is 11. Then, the sub-sampling unit performs a filtering process and a decimation process on the interpolated digital signal to obtain a third digital signal of the second frequency. The decimation multiple of the decimation process is a second preset value, for example, the second preset value is 20.

[0243] It should be explained that the sub-sampling unit performs an interpolation process on the second digital signal, and can obtain an approximately analog digital signal by increasing the sampling points. Thereafter, the sub-sampling unit performs a filtering process on the interpolated digital signal, and can filter out the noise introduced in the interpolation process. The sub-sampling unit performs a decimation process on the filtered digital signal, and achieves the purpose of reducing the amount of calculation by lowering the sampling frequency.

[0244] The following uses an example to illustrate the process of the sub-sampling unit resampling the frequency-shifted first digital signal.

[0245] In a possible implementation, take the mobile phone scanning channels 1 to 5 once as an example, Fig.12 As shown, the resampling process of each sub-sampling unit may include interpolation processing, filtering processing and decimation processing.

[0246] The sub-sampling unit 1 performs resampling processing on the first digital signal as an example for introduction. After receiving the second digital signal of the first frequency (e.g., 80MHz), the sub-sampling unit 1 of the mobile phone first performs interpolation processing on the second digital signal of 80MHz to obtain an interpolated digital signal. For example, the sub-sampling unit 1 inserts multiple sampling points into the second digital signal so that the frequency of the second digital signal changes from 80MHz to 880MHz. Usually, the interpolation processing will introduce noise into the digital signal, so after the interpolation processing, the sub-sampling unit 1 can also perform filtering processing on the interpolated digital signal, filter the noise introduced by the interpolation processing, and obtain a digital signal after the noise is filtered out. The filtering processing here does not change the sampling frequency of the digital signal, and the sampling frequency of the digital signal after filtering is still 880MHz. Furthermore, the sub-sampling unit 1 performs extraction processing on the 880MHz digital signal, extracts 20 times the sampling points of the 880MHz digital signal, that is, extracts 1 sampling point of the digital signal from the 20 sampling points of the digital signal, and outputs a third digital signal of the second frequency (e.g., 44MHz).

[0247] It needs to be explained that Fig.12 The number of sampling points inserted by the neutron sampling unit during the interpolation processing of the second digital signal and the decimation multiple of the decimation processing are only described as examples. Any resampling process that can convert the frequency of the second digital signal from the first frequency to the second frequency can be applied to the present application and is not limited here.

[0248] For sub-sampling units 2 to 5, sub-sampling units 2 to 5 can perform the same resampling process on the first digital signal after down-conversion processing as sub-sampling unit 1. The implementation process of sub-sampling units 2 to 5 performing resampling processing on the second digital signal after frequency shift processing to obtain the third digital signal of the second frequency is not repeated here.

[0249] In addition, five sub-sampling units are provided in the baseband module of the mobile phone, which convert the second digital signal of the first frequency into a third digital signal of the second frequency. By reducing the sampling frequency of the digital signal, the bandwidth of the subsequent filter unit group is made smaller, and the filter unit group has a better filtering effect on the digital signal.

[0250] In some other embodiments, the sub-sampling unit may perform one interpolation process, multiple filtering processes and multiple decimation processes on the first digital signal after the frequency shift process, wherein the product value between the decimation multiples of each decimation is the second preset value.

[0251] It should be explained that compared with the sub-sampling unit performing one filtering and one decimation in the process of resampling the second digital signal after the frequency shift processing, the sub-sampling unit here performs multiple filtering and multiple decimation processes on the second digital signal after the frequency shift processing, making the process of the sub-sampling unit resampling the digital signal easier to implement.

[0252] It is understandable that in the embodiment of the present application, since the sampling frequency of the analog-to-digital conversion unit is inconsistent with the frequency required by the baseband module for processing, resampling processing can also be performed during the baseband module's processing of the first digital signal. Digital signals usually introduce noise during the resampling process, so a filtering operation is also performed during the resampling process to filter out the noise introduced during the resampling process.

[0253] In the embodiment of the present application, the mobile phone may also resample the first digital signal first, and then perform frequency shift processing on the resampled digital signal. The resampling process may resample the first digital signal of the first frequency to the second frequency, so that the frequency of the resampled digital signal meets the requirements of the filter unit in the subsequent baseband module.

[0254] For example, Fig.13 As shown, the baseband module of the mobile phone is provided with a resampling unit. The resampling unit can resample the first digital signal and convert the sampling frequency of the first digital signal from a first frequency (for example, the first frequency is 80 MHz) to a second frequency (for example, the second frequency is 44 MHz). Here, the bandwidth of the resampling unit for sampling the first digital signal is 40M.

[0255] In this example, the process of the resampling unit resampling the first digital signal can refer to the process of the subsampling unit resampling the second digital signal, which will not be repeated here. After acquiring the digital signal of the second frequency, the mobile phone can perform frequency shift processing on the digital signal of the second frequency, and transform the center frequency of the digital signal of the second frequency to a preset center frequency (for example, the preset center frequency is 0). Here, the process of the mobile phone performing frequency shift processing on the digital signal of the second frequency can refer to the introduction process of S8061 above, which will not be repeated here.

[0256] S8063, the mobile phone performs filtering processing on the third digital signal to obtain a data segment corresponding to each of the M channels.

[0257] In an embodiment of the present application, the baseband module of the mobile phone may further include a filter unit group. The mobile phone may input the third digital signal of the second frequency into the filter unit group, and filter the third digital signal through the filter unit group, and the filter process is used to filter out the data segment corresponding to each channel in the third digital signal. After the filtering process, the mobile phone can obtain the data segment corresponding to each channel in the M channels.

[0258] The process of filtering the third digital signal by the filtering unit group to filter out the data segment corresponding to each channel can be seen in Fig.14 .like Fig.14 As shown, the filter unit group of the mobile phone may include multiple sub-filter units. Each sub-filter unit may be a low pass filter (LPF). The number of sub-filter units is the same as the number of channels scanned at one time, that is, when the number of channels scanned at one time by the mobile phone is 5, the filter unit group includes 5 sub-filter units. These 5 sub-filter units may be respectively represented as sub-filter unit 1 (represented as LPF1), sub-filter unit 2 (represented as LPF2), sub-filter unit 3 (represented as LPF3), sub-filter unit 4 (represented as LPF4), and sub-filter unit 5 (represented as LPF5).

[0259] Each sub-filter unit can filter out a data segment corresponding to a channel in the third digital signal. The effective bandwidth of a channel is 20 MHz, so the pass bandwidth of each sub-filter unit can also be set to 20 MHz. The sampling frequency of a single channel signal of a channel is 44 MHz (an example of the second frequency).

[0260] The following uses an example to illustrate the process of each sub-filtering unit filtering out a data segment corresponding to a channel in a digital signal.

[0261] like Fig.15As shown, for sub-filter unit 1 (LPF1), sub-filter unit 1 is used to filter out the data segment corresponding to channel 1. After down-conversion processing, the center frequency of channel 1 is converted to -10MHz. In this case, the mobile phone can set the pass band of sub-filter unit 1 to -20MHz to 0MHz. After sub-filter unit 1 filters the second digital signal, it can filter out a data segment with a center frequency of -10MHz and a bandwidth of 20MHz. This data segment is the data segment corresponding to channel 1, such as data segment 1.

[0262] For sub-filter unit 2 (LPF2), sub-filter unit 2 is used to filter out the data segment corresponding to channel 2. After down-conversion processing, the center frequency of channel 2 is converted to -5MHz. In this case, the mobile phone can set the passband of sub-filter unit 2 to -15MHz to 5MHz. After sub-filter unit 2 filters the second digital signal, it can filter out a data segment with a center frequency of -5MHz and a bandwidth of 20MHz. This data segment is the data segment corresponding to channel 2, such as data segment 2.

[0263] For sub-filter unit 3 (LPF3), sub-filter unit 3 is used to filter out the data segment corresponding to channel 3. After down-conversion processing, the center frequency of channel 3 is converted to 0MHz. In this case, the mobile phone can set the passband of sub-filter unit 3 to -10MHz to 10MHz. After sub-filter unit 3 filters the second digital signal, it can filter out a data segment with a center frequency of 0MHz and a bandwidth of 20MHz. This data segment is the data segment corresponding to channel 3, such as data segment 3.

[0264] For sub-filter unit 4 (LPF4), sub-filter unit 4 is used to filter out the data segment corresponding to channel 4. After down-conversion processing, the center frequency of channel 4 is converted to 5MHz. In this case, the mobile phone can set the passband of sub-filter unit 4 to -5MHz to 15MHz. After sub-filter unit 4 filters the second digital signal, it can filter out a data segment with a center frequency of 5MHz and a bandwidth of 20MHz. This data segment is the data segment corresponding to channel 4, such as data segment 4.

[0265] For sub-filter unit 5 (LPF5), sub-filter unit 5 is used to filter out the data segment corresponding to channel 5. After down-conversion processing, the center frequency of channel 5 is converted to 10MHz. In this case, the mobile phone can set the passband of sub-filter unit 5 to 0MHz to 20MHz. After sub-filter unit 5 filters the second digital signal, it can filter out a data segment with a center frequency of 10MHz and a bandwidth of 20MHz. This data segment is the data segment corresponding to channel 5, such as data segment 5.

[0266] In an embodiment of the present application, the resampling unit group and the filtering unit group in the baseband module of the mobile phone both have the operation of filtering the digital signal. In order to save chip area, the mobile phone can filter out the noise and the data segments corresponding to each channel only through the filtering process in the resampling unit group. For example, the mobile phone filters the noise introduced in the multi-channel signal during the interpolation process through the filtering process of the resampling unit, and can also filter out the data segment corresponding to a single channel in the digital signal through the filtering process, and simultaneously filter out the noise and the data segments corresponding to each channel. In this way, not only can the process of channel scanning of the mobile phone be simplified, but also the chip area of ​​the mobile phone can be saved.

[0267] S8064, the mobile phone performs carrier frame listening on the data segments corresponding to each channel to determine the target channel.

[0268] The target channel is a channel that uses the target protocol type to transmit signals. For example, if the target protocol type is 802.11b, the target channel can be a channel that uses 802.11b to transmit signals. After obtaining the data segments corresponding to each channel, the mobile phone can identify the protocol type of each data segment. If the protocol type of a data segment is 802.11b among the data segments, the channel that transmits the data segment can be considered as the target channel.

[0269] For example, Fig. 9 As shown, the baseband module of the mobile phone may include a carrier sensing unit group, and the carrier sensing unit group may perform clear channel assessment (CCA) on 5 data segments and identify the target signal in the 5 data segments. The carrier sensing unit group may include multiple sub-sensing units, and the number of sub-sensing units is the same as the number of channels scanned by the mobile phone at one time. The multiple sub-sensing units included in the carrier sensing unit group are sub-sensing unit 1 (which can be expressed as CCA1), sub-sensing unit 2 (which can be expressed as CCA2), sub-sensing unit 3 (which can be expressed as CCA3), sub-sensing unit 4 (which can be expressed as CCA4) and sub-sensing unit 5 (which can be expressed as CCA5).

[0270] Each sub-listening unit may perform a channel idle detection on the corresponding channel to determine whether the data segment of the current channel is transmitted using the 802.11b protocol. In a possible case, each sub-listening unit may perform a preset Baker code recognition on the data segment of the corresponding channel to determine whether the channel of the current transmission signal is the target channel transmitted using the 802.11b protocol.

[0271] Here, the preset Barker code is a synchronization code corresponding to the 802.11b protocol, which can be used to identify the starting position of the data frame carried by the data segment. If the carrier sensing unit recognizes the preset Barker code in the data segment of a channel, it can be considered that the starting position of the data frame encoded by the 802.11b protocol is recognized in the data segment of the channel. Further, the mobile phone can read the information represented by the data frame in the target signal.

[0272] For example, sub-listening unit 1 may perform preset Barker code recognition on the data segment of channel 1. Sub-listening unit 2 may perform preset Barker code recognition on the data segment of channel 2. Sub-listening unit 3 may perform preset Barker code recognition on the data segment of channel 3. Sub-listening unit 4 may perform preset Barker code recognition on the data segment of channel 4. Sub-listening unit 5 may perform preset Barker code recognition on the data segment of channel 5.

[0273] The following is an example of how the sub-interception unit identifies the preset Barker code for the corresponding data segment. Take the sub-interception unit 1 identifying the preset Barker code for the data segment of channel 1 (or data segment 1) as an example. Fig.16 As shown, the sub-listening unit 1 can use the multi-bit data of the data segment 1 as a detection window to perform a preset Barker code detection. After the sub-listening unit 1 receives the data segment 1, the sub-listening unit 1 can match the multi-bit data in the data segment 1 that passes through the detection window with the preset Barker code to generate a correlation detection signal. The correlation detection signal can indicate whether the multi-bit data in the detection window matches the preset Barker code. For example, if the correlation detection signal is a high level, it can indicate that the multi-bit data in the detection window matches the preset Barker code. If the correlation detection signal is a low level, it can indicate that the multi-bit data in the detection window does not match the preset Barker code.

[0274] For example, the detection window corresponds to 4 bits of data. If the 4 bits of data in the detection window match the preset Barker code, a high level of the correlation detection signal can be generated. If the 4 bits of data in the detection window do not match the preset Barker code, a low level of the correlation detection signal can be generated. The high level of the correlation detection signal corresponds to a signal peak. The sub-listening unit 1 can also count the signal peaks of the correlation detection signal. If the peak value of a signal peak reaches a preset peak value threshold, it can be considered that the 4 bits of data in the detection window match the preset Barker code, and the count of the signal peak is increased by 1. If the peak value of a signal peak is less than the preset peak value threshold, it can be considered that the 4 bits of data in the detection window do not match the preset Barker code, and the count of the signal peak remains unchanged. When the count of the signal peak is greater than the pre-designed value (such as the count of the signal peak is greater than 3), it can be considered that the preset Barker code is identified in the data segment of channel 1, and channel 1 is the target channel.

[0275] Here, the detection window may slide backward according to a preset sliding step. For example, the preset sliding step is 1 bit. In the first preset Barker code detection, the data in the detection window is the 1st bit to the 4th bit of the data segment. In the second preset Barker code detection, the data in the detection window is the 2nd bit to the 5th bit of the data segment. And so on, until the detection window slides to the last bit of the current data segment.

[0276] In some implementations, in order to make the signal strength of the target signal within an appropriate strength range, the mobile phone adjusts the gain of the radio frequency signals of the five channels according to the received signal strength indication (RSSI) of the target signal. Thus, by adjusting the radio frequency signals of multiple channels received by the mobile phone through the RSSI of the target signal, the signal strength of the target signal can be controlled within an appropriate signal strength, thereby facilitating the subsequent processing of the target signal by the mobile phone.

[0277] In this implementation method, after the mobile phone identifies the target signal in the data segments of multiple channels, it can also obtain the RSSI of the target signal. RSSI can be used to indicate the signal strength of the received signal. If the RSSI value of the target signal is larger, it means that the signal strength of the target signal is larger. If the RSSI value of the target signal is smaller, it means that the signal strength of the target signal is smaller.

[0278] After obtaining the received signal strength indication of the target signal, the mobile phone can adjust the gain of the RF signals of the five channels according to the RSSI of the target signal.

[0279] For example, if the RSSI value of the target signal is greater than or equal to the first preset strength value, it means that the RSSI value of the target signal is large. In this case, the mobile phone reduces the gain of the RF signal so that the RSSI value of the next frame of the target signal obtained by the mobile phone becomes smaller. If the RSSI value of the target signal is less than or equal to the second preset strength value, it means that the RSSI value of the target signal is small. In this case, the mobile phone increases the gain of the RF signal so that the RSSI value of the next frame of the target signal obtained by the mobile phone becomes larger. If the RSSI value of the target signal is less than the first preset strength value and greater than the second preset strength value, it means that the RSSI value of the target signal is appropriate. In this case, the mobile phone can choose not to adjust the gain of the RF signal so that the next frame of the target signal obtained by the mobile phone remains within an appropriate strength range.

[0280] Here, the first preset strength value is greater than the second preset strength value. The first preset strength value and the second preset strength value can be set according to actual application scenarios or requirements. In the embodiment of the present application, the specific values ​​of the first preset strength value and the second preset strength value are not limited.

[0281] In some implementations, the mobile phone can also adjust the gain of the target signal to control the channel strength of the target signal. Fig. 9 As shown, the baseband module of the mobile phone may also include a digital gain unit. After acquiring the target signal, the mobile phone may also use the digital gain unit to perform gain control on the target signal. For example, the mobile phone may increase the signal strength of the target signal to make the target signal easier to process.

[0282] In an embodiment of the present application, the mobile phone controls the center frequency of the mixing unit and the scanning bandwidth of the filtering unit of the RF module according to the scanning mode, and controls M signal processing links to enable power on. After receiving the first sampling signal through the first antenna, the first sampling signal is processed in the RF domain through the RF module. After obtaining the second sampling signal, the second sampling signal is digitally processed through M signal processing links to determine the target channel for data transmission using a preset target protocol type in the M channels corresponding to the second sampling signal. Thus, the mobile phone can control the center frequency of the mixing unit and the scanning bandwidth of the filtering unit in the RF module according to the scanning mode to obtain the signal of the number of channel scans corresponding to the scanning mode, and the mobile phone controls the signal processing link corresponding to the number of channels to enable power on, thereby reducing the power consumption of the mobile phone when scanning multiple channels at a time. In addition, when the mobile phone scans multiple channels at a time, the process of the mobile phone performing channel scanning can be simplified, which is conducive to improving the efficiency of the mobile phone connecting to the WiFi network.

[0283] It should be noted that in the above embodiment, when the number of channels corresponding to a scanning mode determined by the mobile phone is multiple, the center frequency points of each channel obtained by the mobile phone scanning multiple channels are moved to the corresponding preset center frequency points after down-conversion processing. In this way, before the baseband module of the mobile phone performs digital processing on the signal, the digital signal is frequency-shifted to move the center frequency points of each channel to the same preset center frequency point. Then, the baseband module filters the digital signal through the sub-filtering unit of the same configuration to filter and obtain data segments corresponding to different channels.

[0284] In another embodiment, when the number of channels in one scan corresponding to the scanning mode determined by the mobile phone is multiple, the center frequency points of each channel obtained by the mobile phone scanning multiple channels are moved to the corresponding preset center frequency points after down-conversion processing. Then, the baseband module may not perform frequency shift processing on the first digital signal after the analog-to-digital conversion processing, but directly resample the first digital signal to obtain the digital signal of the second frequency, and then filter the digital signal of the second frequency through sub-filter units with different settings to obtain data segments corresponding to different channels. Here, the implementation process of the baseband module resampling and filtering the digital signal can be referred to the above Figures 8 to 13 The implementation process will not be described here.

[0285] In the embodiment of the present application, when the number of channels in one scan corresponding to the scanning mode determined by the mobile phone is 1, during the first channel scan, the control module of the mobile phone can control the central frequency point of the mixing unit in the RF module to be configured as 2.412 MHz, and control the scanning bandwidth of the filter unit to be 20 MHz, so as to scan and obtain the signal corresponding to channel 1. The control module of the mobile phone can also control one of the multiple signal processing links to be enabled and powered on, so that the signal processing link performs digital processing on the signal corresponding to channel 1 to determine whether channel 1 is the target channel.

[0286] The implementation process of the signal processing link digitally processing the signal of channel 1 can refer to the implementation process of S8061 to S8064 above, which will not be repeated here. Similarly, after the mobile phone scans channels 2 to 13, the process of processing the signals from channels 2 to 13 will not be repeated here.

[0287] It is understandable that, in order to realize the above functions, the above-mentioned electronic devices, etc. include hardware structures and / or software modules corresponding to the execution of each function. Those skilled in the art should easily realize that, in combination with the units and algorithm steps of each example described in the embodiments disclosed herein, the embodiments of the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the embodiments of the present invention.

[0288] The embodiment of the present application can divide the functional modules of the above-mentioned electronic device etc. according to the above-mentioned method example. For example, each functional module can be divided corresponding to each function, or two or more functions can be integrated into one processing module. The above-mentioned integrated module can be implemented in the form of hardware or in the form of software functional modules. It should be noted that the division of modules in the embodiment of the present invention is schematic and is only a logical function division. There may be other division methods in actual implementation.

[0289] In the case of dividing each functional module according to each function, a possible composition diagram of the electronic device involved in the above embodiment, the electronic device may include: a display unit, a transmission unit and a processing unit, etc. It should be noted that all relevant contents of each step involved in the above method embodiment can be referred to the functional description of the corresponding functional module, and will not be repeated here.

[0290] The embodiment of the present application also provides an electronic device, including one or more processors and one or more memories. The one or more memories are coupled to the one or more processors, and the one or more memories are used to store computer program codes, and the computer program codes include computer instructions. When the one or more processors execute the computer instructions, the electronic device executes the above-mentioned related method steps to implement the scanning control method in the above-mentioned embodiment.

[0291] An embodiment of the present application further provides a computer-readable storage medium, in which computer instructions are stored. When the computer instructions are executed on an electronic device, the electronic device executes the above-mentioned related method steps to implement the scanning control method in the above-mentioned embodiment.

[0292] An embodiment of the present application further provides a computer program product, which includes computer instructions. When the computer instructions are executed on an electronic device, the electronic device executes the above-mentioned related method steps to implement the scanning control method in the above-mentioned embodiment.

[0293] In addition, an embodiment of the present application also provides a device, which can specifically be a chip, component or module, and the device may include a connected processor and memory; wherein the memory is used to store computer execution instructions, and when the device is running, the processor can execute the computer execution instructions stored in the memory so that the device executes the scanning control method executed by the electronic device in the above-mentioned method embodiments.

[0294] Among them, the electronic device, computer-readable storage medium, computer program product or device provided in this embodiment is used to execute the corresponding method provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding method provided above, and will not be repeated here.

[0295] Through the description of the above implementation methods, technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above functional modules is used as an example. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. The specific working process of the system, device and unit described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.

[0296] Each functional unit in each embodiment of the present application can be integrated into a processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The above integrated unit can be implemented in the form of hardware or in the form of software functional units.

[0297] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as flash memory, mobile hard disk, read-only memory, random access memory, disk or optical disk.

[0298] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions within the technical scope disclosed in the present application should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. A scanning control method, characterized in that: Applied to an electronic device, the electronic device includes a radio frequency module and a baseband module, the baseband module includes at least two signal processing links, and the method includes: The electronic device acquires a scanning mode, where the scanning mode is used to indicate that the number of channels scanned at one time is M channels, where M is an integer greater than 1; The electronic device controls the radio frequency module to operate in a first operating state according to the scanning mode, and controls M signal processing links of the at least two signal processing links to be enabled and powered on; The electronic device receives a first sampling signal through a first antenna, and obtains a second sampling signal through the radio frequency module working in the first working state, wherein a frequency band of the second sampling signal includes a frequency band of the M channels; The electronic device digitally processes the second sampling signal through the M signal processing links to determine whether the M channels corresponding to the second sampling signal include a target channel, where the target channel is a channel that transmits data using a preset target protocol type.

2. The method according to claim 1, characterized in that Before the electronic device controls the radio frequency module to operate in the first operating state according to the scanning mode and controls M signal processing links of the at least two signal processing links to be enabled and powered on, the method further includes: The electronic device generates a first command stream and a second command stream according to the scanning mode; The electronic device controls the radio frequency module to operate in a first operating state according to the scanning mode, and controls M signal processing links of the at least two signal processing links to enable power-on, including: The electronic device controls the radio frequency module to operate in the first operating state according to the first command stream; The electronic device controls M signal processing links of the at least two signal processing links to enable power-on according to the second command stream.

3. The method according to claim 2, characterized in that The radio frequency module includes a mixing unit and a filtering unit coupled to the mixing unit, the first command stream includes a first command and a second command, The electronic device controls the radio frequency module to operate in the first operating state according to the first command stream, including: The electronic device controls the center frequency of the frequency mixing unit to be a first frequency according to the first command, where the first frequency is a center frequency corresponding to the frequency band of the M channels; The electronic device controls the scanning bandwidth of the filtering unit to be a first bandwidth according to the second command, where the first bandwidth is a scanning bandwidth corresponding to the bandwidths of the M channels.

4. The method according to claim 3, characterized in that The electronic device controls the scanning bandwidth of the filtering unit to be a first bandwidth according to the second command, including: The electronic device configures the scanning bandwidth of the filtering unit to be the first bandwidth according to the second command.

5. The method according to claim 3, characterized in that: The filtering unit includes a plurality of sub-filtering units, the scanning bandwidths of the plurality of sub-filtering units are different from each other, and the electronic device controls the scanning bandwidth of the filtering unit to be a first bandwidth according to the second command, including: The electronic device controls the sub-filtering unit whose scanning bandwidth is the first bandwidth to be powered on according to the second command.

6. The method according to any one of claims 1 to 5, characterized in that: The electronic device receives a first sampling signal through a first antenna, and obtains a second sampling signal through the radio frequency module working in the first working state, including: The electronic device controls the first antenna to receive electromagnetic waves of all frequency bands, and converts the electromagnetic waves of all frequency bands into first sampling signals; The electronic device performs radio frequency processing on the first sampling signal to obtain the second sampling signal, wherein the radio frequency processing includes amplification processing, down-conversion processing and / or filtering processing.

7. The method according to claim 6, characterized in that The method further comprises: The electronic device performs analog-to-digital conversion on the second sampling signal to obtain a first digital signal; the first digital signal includes a data segment corresponding to each channel of the M channels; The electronic device digitally processes the second sampling signal through the M signal processing links, and determines whether the M channels corresponding to the second sampling signal include a target channel, where the target channel is a channel that uses a preset target protocol type for data transmission, including: The electronic device controls M signal processing links of the at least two signal processing links to be powered on, so that the M signal processing links perform digital processing on the first digital signal, and determines whether the M channels included in the first digital signal include a target channel; When the first data segment is transmitted using the target protocol type, the first channel corresponding to the first data segment is the target channel; the first data segment is included in the first digital signal, and the first channel is included in the M signal processing links.

8. The method according to claim 7, characterized in that Each signal processing link includes a frequency shift unit, a sub-filter unit coupled to the frequency shift unit, a carrier sense CCA unit coupled to the sub-filter unit, The electronic device controls M signal processing links of the at least two signal processing links to be powered on so that the M signal processing links perform digital processing on the first digital signal, and determines whether the M channels included in the first digital signal include a target channel, including: For each signal processing link in the M signal processing links after enabling power-on: The frequency shift unit performs frequency shift processing on the first digital signal; when the frequency shift units included in different signal processing chains perform frequency shift processing, the corresponding frequency shift lengths are different; The sub-filtering unit performs filtering processing on the signal after the frequency shifting processing by the corresponding frequency shifting unit to obtain a data segment corresponding to a channel; the passing bandwidth of the sub-filtering units included in different signal processing links is the same; The CCA unit performs carrier sensing on a data segment of a channel obtained after filtering by the corresponding sub-filtering unit, so as to determine the target channel according to whether the data segment of the channel is transmitted through the target protocol type.

9. The method according to claim 8, characterized in that The CCA unit performs carrier sensing on a data segment of a channel obtained after filtering by a corresponding sub-filtering unit, so as to determine the target channel according to whether the data segment of the channel is transmitted through a target protocol type, including: The CCA unit in each of the signal processing links performs carrier sensing on the data segment corresponding to each channel to determine the target channel for transmission using the target protocol type according to a preset Baker code of the target protocol type.

10. The method according to any one of claims 1 to 9, characterized in that The target protocol type is 802.11b protocol.

11. The method according to any one of claims 1 to 10, characterized in that: The first antenna is a wireless network WiFi antenna, and the working frequency band of the first antenna includes 2.4 GHz-2.5 GHz.

12. An electronic device, characterized in that: include: First antenna; memory and one or more processors; The memory is coupled to the processor; wherein one or more computer programs are stored in the memory, and the one or more computer programs include instructions, and when the instructions are executed by the electronic device, the electronic device executes the scanning control method as described in any one of claims 1-11.

13. A computer-readable storage medium, characterized in that: The method comprises computer instructions, and when the computer instructions are executed on an electronic device, the electronic device executes the scanning control method according to any one of claims 1 to 11.

Citation Information

Patent Citations

  • Method and apparatus for scanning multiple channels in a wireless network

    CN104247516A

  • Multi-band WIFI scanning method and device, electronic equipment and storage medium

    CN115643627A

  • Parallel scanning of wireless channels

    US20140376392A1

  • Batch-wise frequency scanning

    US20220167251A1