A scanning control method, an electronic device, and a storage medium
By controlling the operating status of the RF module and the baseband module and configuring the signal processing link, multi-channel scanning is achieved, solving the problems of long WiFi channel scanning time and high power consumption in electronic devices, and improving scanning efficiency and WiFi connection speed.
Patent Information
- Application Number
- CN202311057284.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-08-21
- Publication Date
- 2025-12-05
- Estimated Expiration
- 2043-08-21
AI Technical Summary
When electronic devices scan for WiFi channels, they need to scan each channel one by one, which results in long scanning time and high power consumption, affecting the efficiency and speed of WiFi connection.
By controlling the operating status of the RF module and the baseband module, configuring at least two signal processing links, enabling power-on, and determining the number of channels according to the scanning mode, multi-channel or single-channel scanning can be achieved, thus optimizing the channel scanning process.
It improves channel scanning efficiency, reduces device power consumption, and shortens WiFi connection time.
Smart Images

Figure CN119545477B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] Embodiments of the present application relate to the technical field of communication, and in particular, to a scanning control method, an electronic device, and a storage medium. BACKGROUND
[0002] Wireless fidelity (WiFi) is a technology that enables electronic devices such as personal computers, handheld devices (such as tablets and mobile phones) to be connected wirelessly with each other. Before connecting to a WiFi, an electronic device will perform a WiFi channel scan to determine an access WiFi channel.
[0003] However, when performing a WiFi channel scan, an electronic device generally scans each channel one by one, that is, the channel scan of the electronic device is usually a single-channel scan. Since the electronic device needs to scan each of a plurality of channels, the number of scans is large, which leads to a long scan time of the electronic device, a long time for connecting to a WiFi, and a large device power consumption. SUMMARY
[0004] 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 a radio frequency module according to a scan mode, and controls at least two signal processing links to be enabled after power-on, which not only saves the channel scan time, improves the channel scan efficiency, but also reduces the device power consumption during a scan.
[0005] To achieve the above object, embodiments of the present application adopt the following technical solutions:
[0006] In a first aspect, a scanning control method is provided, applied to an electronic device, the electronic device including a radio frequency module and a baseband module, the baseband module including at least two signal processing links. The scanning control method can include:
[0007] The electronic device obtains a scan mode, the scan mode being used to indicate that the number of channels scanned at a time is M channels, M being an integer greater than 0. The electronic device controls the radio frequency module to work in a first working state according to the scan mode, and controls M signal processing links in the at least two signal processing links to be enabled after power-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, so that the frequency band of the second sampling signal includes the frequency band of the M channels. The electronic device performs digital processing on the second sampling signal through the M signal processing links, to determine whether a target channel is included in the M channels corresponding to the second sampling signal, the target channel being a channel used to transmit data using a preset target protocol type.
[0008] The scan mode corresponds to the number of channels scanned at a 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 radio frequency module based on the number of channels determined by the scanning mode, and control at least two signal processing links to enable power-on, to realize multi-channel scanning or single-channel scanning in different situations. For example, in the case of multi-channel scanning, it can be determined whether the target channel is included in the plurality of channels through one scanning. In this application, through the reasonable control of the control module, only limited hardware configuration (such as at least two signal processing links) is needed to support scanning of different numbers of channels in different scenarios.
[0010] Optionally, before the electronic device controls the radio frequency module to work in the first working state according to the scanning mode, and controls M signal processing links in the at least two signal processing links to enable power-on, the method further comprises:
[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 the first working state according to the scanning mode, and controls M signal processing links in the at least two signal processing links to enable power-on, comprising:
[0013] The electronic device controls the radio frequency module to work in the first working state according to the first command stream, and controls M signal processing links in the 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 radio frequency module and a second command stream for controlling the signal processing links in the baseband module to enable power-on according to the scanning mode, thereby realizing the control of the radio frequency module and the baseband module in different scanning modes, to support scanning of different numbers of channels in different scenarios.
[0015] Optionally, the radio frequency module includes a mixing unit and a filter unit coupled with 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 work in the first working state according to the first command stream, comprising:
[0016] The electronic device controls the center frequency point of the mixing unit to be a first frequency point according to the first command, and the first frequency point corresponds to the center frequency point of the frequency band of the M channels; and the electronic device controls the scanning bandwidth of the filter unit to be a first bandwidth according to the second command, and the first bandwidth corresponds to the scanning bandwidth of the bandwidth of the M channels.
[0017] In an example of the embodiment of the present application, when the electronic device determines that the number of one-time scans corresponding to the scanning mode is 5, the electronic device can configure the center frequency point 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 be the first bandwidth according to the second command.
[0020] When the radio frequency module includes one filtering unit, the electronic device can configure the scanning bandwidth of the filtering unit according to the scanning mode, so as to obtain the signals corresponding to multiple channels through the configured filtering unit.
[0021] Optionally, the filtering unit includes multiple sub-filtering units, the scanning bandwidths of the multiple 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 enables power-on of the sub-filtering unit with the first bandwidth according to the second command.
[0023] When the radio frequency module includes multiple sub-filtering units, the electronic device can control the sub-filtering unit corresponding to the bandwidth of the scanning mode to enable power-on, so as to filter out the signals corresponding to multiple channels through the powered-on sub-filtering unit while saving the 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 the first sampling signal; the electronic device performs radio frequency processing on the first sampling signal to obtain the 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 signal of all frequency bands, the radio frequency module can perform radio frequency domain processing on the first sampling signal to obtain the second sampling signal including the frequency bands of multiple channels.
[0027] Optionally, the above scanning control method can further include:
[0028] The electronic device performs analog-to-digital conversion on the second sampling signal to obtain the first digital signal; the first digital signal includes a data segment corresponding to each channel in the M channels.
[0029] The electronic device determines whether the target channel is included in the M channels corresponding to the second sampling signal by digitally processing the second sampling signal through the M signal processing links.
[0030] The electronic device determines whether the target channel is included in the M channels included in the first digital signal by digitally processing the first digital signal through the M signal processing links enabled by the control module.
[0031] The example provides an analog signal processing logic before the electronic device processes the digital signal. Thus, based on the processing of the digital signal obtained after processing the analog signal, it can be determined whether the current sampling 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 CCA unit coupled to the sub-filter unit. The electronic device determines whether the target channel is included in the M channels included in the first digital signal by digitally processing the first digital signal through the M signal processing links enabled by the control module.
[0033] For each signal processing link in the M signal processing links enabled by the control module: the frequency shift unit performs frequency shift processing on the first digital signal; the frequency shift units included in different signal processing links perform frequency shift processing with different frequency shift lengths; the sub-filter unit performs filtering processing on the signal processed by the corresponding frequency shift unit to obtain a data segment corresponding to a channel; the sub-filter units included in different signal processing links have the same pass bandwidth; and the CCA unit performs carrier sensing on the data segment of the channel obtained after the filtering processing of the corresponding sub-filter unit to determine the target channel according to whether the data segment of the channel is transmitted by the target protocol type.
[0034] It can be understood that each frequency shift unit in the pre-configured signal processing link can have one or two or more fixed frequency shift processing capabilities. Thus, when different frequency shift lengths need to be processed in different scenarios, the control module can control the enablement of the signal processing link where the corresponding frequency shift unit is located to realize the corresponding frequency shift processing.
[0035] In a possible case, when the frequency of the analog-to-digital conversion process is different from the frequency at which the baseband module processes the digital signal, the baseband module can perform resampling processing on the digital signal before processing the digital signal, so that the sampling frequency of the resampled digital signal meets the frequency required for subsequent processing of the baseband module.
[0036] In an example, the baseband module can further include a resampling unit, the resampling unit including a plurality of sub-sampling units, and one signal processing link can include a frequency shifting unit, a sub-sampling unit coupled to the frequency shifting unit, a sub-filter unit coupled to the sub-sampling unit, and a CCA unit coupled to the sub-filter unit.
[0037] Optionally, the CCA unit performs carrier sensing on a data segment of one channel obtained after filtering processing of the corresponding sub-filter unit, to determine a target channel according to whether the data segment of the channel is transmitted by a target protocol type, including:
[0038] The CCA unit in each signal processing link performs carrier sensing on a data segment of each channel, to determine a target channel using a target protocol type according to a preset barker code of the target protocol type. Thus, through the carrier sensing technology, matching processing of the data segment of any channel can be realized, so as to determine whether the channel transmitting the data segment is the target channel.
[0039] Optionally, the target protocol type is an 802.11b protocol.
[0040] Optionally, the first antenna is a wireless network WiFi antenna, and the working frequency band of the first antenna includes 2.4GHz-2.5GHz. In an example, the scheme can be applied to a scanning scenario of a 2.4GHz WiFi frequency band.
[0041] In a second aspect, the present application provides an electronic device, including: a first antenna; one or more processors; a memory; wherein the memory stores one or more computer programs, and the one or more computer programs include instructions, when the instructions are executed by the electronic device, the electronic device performs the scanning control method in any one of the above first aspect.
[0042] In a third aspect, the present application provides a computer readable storage medium, and the computer readable storage medium stores instructions, when the instructions are run on an electronic device, the electronic device performs the scanning control method in any one of the first aspect.
[0043] In a fourth aspect, the present application provides a computer program product, and the computer program product includes computer instructions, when the computer instructions are run on an electronic device, the electronic device performs the scanning control method in any one of the first aspect.
[0044] It can be understood that the electronic device provided in the second aspect, the computer storage medium provided in the third aspect, and the computer program product provided in the fourth aspect are all used to execute the corresponding method provided above, and thus the beneficial effects achieved thereby can refer to the beneficial effects of the corresponding method provided above, which will not be described here again. BRIEF DESCRIPTION OF DRAWINGS
[0045] Figure 1 A schematic diagram of 2.4 GHz frequency bands of each channel of WiFi communication provided by an embodiment of the present application;
[0046] Figure 2 A schematic diagram of 2.4G WiFi channel scanning by an electronic device provided by an embodiment of the present application;
[0047] Figure 3 A schematic diagram of hardware composition of an electronic device provided by an embodiment of the present application;
[0048] Figure 4 An example diagram of scanning multiple channels by an electronic device provided by an embodiment of the present application;
[0049] Figure 5 A schematic diagram of scanning 5 channels at a time by an electronic device provided by an embodiment of the present application Figure 1 ;
[0050] Figure 6 A schematic diagram of scanning 5 channels at a time by an electronic device provided by an embodiment of the present application Figure 2 ;
[0051] Figure 7 A schematic diagram of down-conversion processing of a signal provided by an embodiment of the present application;
[0052] Figure 8 A flowchart of a scanning control method provided by an embodiment of the present application Figure 1 ;
[0053] Figure 9 A schematic diagram of module interaction of scanning control provided by an embodiment of the present application Figure 1 ;
[0054] Figure 10 A flowchart of a scanning control method provided by an embodiment of the present application Figure 2 ;
[0055] Figure 11 A schematic diagram of module interaction of scanning control provided by an embodiment of the present application Figure 2 ;
[0056] Figure 12A flow chart of a resampling processing example provided for an embodiment of the present application
[0057] Figure 13 A schematic diagram of module interaction of scan control provided for an embodiment of the present application Figure 3
[0058] Figure 14 A schematic diagram of a single channel signal filtering example provided for an embodiment of the present application Figure 1
[0059] Figure 15 A schematic diagram of a single channel signal filtering example provided for an embodiment of the present application Figure 2
[0060] Figure 16 A schematic diagram of a preset Barker code identification example provided for an embodiment of the present application. DETAILED DESCRIPTION
[0061] The technical solutions in the embodiments of the present application will be described below with reference to the drawings in the embodiments of the present application. In the description of the embodiments of the present application, unless otherwise specified, " / " represents the meaning of or, for example, A / B can represent A or B; the "and / or" in the present application only describes the association relationship of the associated objects, which means that there can be three relationships, for example, A and / or B, which means that there are three cases of A alone, A and B together, and B alone.
[0062] Hereinafter, the terms "first", "second" are only used for description purposes, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of indicated technical features. Therefore, the features defined with "first", "second" can explicitly or implicitly include one or more features. In the description of the embodiments of the present application, unless otherwise specified, the meaning of "multiple" is two or more.
[0063] In the embodiments of the present application, the words "exemplary" or "for example" are used to mean serving as an example, instance, or illustration. Any embodiment or design presented as "exemplary" or "for example" in the embodiments of the present application should not be interpreted as more preferred or advantageous than other embodiments or design solutions. Rather, the use of "exemplary" or "for example" is intended to present relevant concepts in a specific manner.
[0064] Currently, most electronic devices with wireless communication capabilities can perform WiFi communication. The frequency bands used for WiFi communication can include the 2.4GHz band and the 5GHz band, among others. These frequency bands are typically divided into multiple channels. The following examples all use the 2.4GHz band as an example for WiFi communication. For the specific implementation of WiFi communication using the 5GHz band, please refer to the specific implementation of WiFi communication using the 2.4GHz band; it will not be repeated here.
[0065] Taking the 2.4GHz frequency band used for WiFi communication as an example, the range of the 2.4GHz frequency band used for WiFi communication is between 2.4GHz and 2.497GHz. Figure 1 As shown, the 2.4GHz frequency band can be divided into 14 channels. These 14 channels can be ordered from low to high according to their coverage frequency band, and are respectively represented as channel 1, channel 2, channel 3, ..., channel 14. Among them, channels 1 to 13 are the commonly used 2.4GHz WiFi channels.
[0066] In channels 1 through 13, each channel has a bandwidth of 22 MHz. The frequency spacing between any two adjacent channels is 5 MHz. For example, channel 1 covers the frequency band from 2401 MHz to 2423 MHz. Channel 2 covers the frequency band from 2406 MHz to 2428 MHz, and so on.
[0067] It should be noted that in channels 1 to 13, the coverage frequency bands of two or more adjacent channels may partially overlap. For example, as Figure 1 As shown, there is overlap in the coverage frequency bands of channels 1, 2, 3, 4, and 5.
[0068] Furthermore, the center frequency of each of the aforementioned channels 1 to 13 is different. Figure 1 The example shown also illustrates the center frequency of each channel. For example... 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] The electronic device can access the WiFi network through channel scanning to realize WiFi network communication between devices. The process of the electronic device performing 2.4G WiFi channel scanning is introduced below through an example.
[0070] As shown in Figure 2 The electronic device can include an antenna module, a radio frequency module, and a baseband module. The antenna module can include one or more antennas, and the working frequency band of the antenna can cover the 2.4GHz frequency band. The antenna can be used to receive WiFi signals. The antenna module can convert the received WiFi signals into analog signals and transmit them to the radio frequency module for radio frequency domain processing of the WiFi signals. For example, the radio frequency module can amplify and filter the WiFi signals in the radio frequency domain. The radio frequency module can also perform analog-to-digital conversion on the WiFi signals processed in the radio frequency domain, convert the WiFi signals processed in the radio frequency domain into digital signals, and transmit them to the baseband module for digital processing. The baseband module can analyze the received WiFi signals to obtain the information carried in the WiFi signals. The analysis performed by the baseband module can include preamble analysis, frame header analysis, etc.
[0071] It can be understood that the signals received by the electronic device in different channels can be transmitted using different protocol types. For example, in wireless communication in the 2.4GHz frequency band, the protocol types that can be used to transmit signals include 802.11, 802.11a, 802.11b, 802.11g, 802.11n, 802.11ax, etc. When communicating based on different protocol types, the preambles and frame header data of the transmitted data can be different.
[0072] After the baseband module analyzes the received WiFi signals, the baseband module can determine whether the protocol type of the WiFi signals received by the baseband module is the target protocol type (e.g., 802.11b) based on the preambles and frame header data obtained through the analysis, to determine whether to access the WiFi network through the channel corresponding to the WiFi signals.
[0073] That is, when determining whether the protocol types used by the WiFi signals in the current environment are the target protocol type, the electronic device can analyze the WiFi signals received in each channel to determine the WiFi signals transmitted using the target protocol type based on the preambles and frame header data of the WiFi signals received in each channel obtained through the analysis. For example, the electronic device sequentially scans channels 1 to 13 to determine the required WiFi signals from the WiFi signals received in each channel, resulting in a large number of times of scanning channels by the electronic device, a long scanning time, and large device power consumption.
[0074] To this end, in the embodiments of the present application, the electronic device can control the radio frequency module to work in the first working state according to the scanning mode, and control M signal processing links in the 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 electronic device performs digital processing on the second sampling signal through the M signal processing links to determine whether the M channels corresponding to the second sampling signal include the target channel. Therefore, the electronic device can perform configuration and scanning processing of 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 channel scanning of the electronic device, facilitating to improve the rate of connecting WiFi of the electronic device, and saving the power consumption of channel scanning.
[0075] It should be noted that the scheme provided in the embodiments of the present application can be applied to an electronic device. The electronic device can include at least one of 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 (UMPC), a netbook, a cellular phone, a personal digital assistant (PDA), an augmented reality (AR) device, a virtual reality (VR) device, an artificial intelligence (AI) device, a wearable device, a vehicle-mounted device, a smart home device, or a smart city device. The embodiments of the present application do not specially limit the specific type of the electronic device.
[0076] In the present application, the electronic device can have WiFi communication capability of 2.4GHz frequency band or 5GHz frequency band. Among them, the 2.4GHz frequency band can include 2.4GHz to 2.495GHz as shown in Figure 1 For example, the 2.4GHz can be divided into channels as shown in Figure 1 In other embodiments, the electronic device can also simultaneously perform parallel scanning reception and processing on multiple channels based on the scheme 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 analyzing each channel.
[0077] As an example, Figure 3 A schematic diagram of the hardware composition of an electronic device provided in the embodiments of the present application.
[0078] As shown in Figure 3As shown, the electronic device 100 can 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, a headset jack 170D, a sensor module 180, a key 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 can include a pressure sensor 180A, a gyroscope sensor 180B, a barometric 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 can be understood that the structure shown in the embodiments 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 can include more or fewer components than shown, or combine certain components, or split certain components, or different component arrangements. The components shown can be implemented in hardware, software, or a combination of software and hardware.
[0080] The processor 110 can include one or more processing units, for example: the processor 110 can include an application processor (AP), a modem processor, a graphics processing unit (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 can be independent devices, or can be integrated into one or more processors.
[0081] The controller can be the nerve center and command center of the electronic device 100. The controller can generate operation control signals according to instruction operation codes and timing signals, and complete the control of fetching instructions and executing instructions.
[0082] The processor 110 can also include a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory can hold instructions or data that the processor 110 has just used or is using repeatedly. If the processor 110 needs to use the instructions or data again, it can be called directly from the memory. This avoids repeated access and reduces the waiting time of the processor 110, thus improving the efficiency of the system.
[0083] In some embodiments, the processor 110 can include one or more interfaces. The interfaces can 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 can be understood that the interface connection relationship between the modules shown in the embodiments of the present application is only illustrative and does not constitute a structural limitation of the electronic device 100. In some other embodiments of the present application, the electronic device 100 can also use different interface connection methods or a combination of multiple interface connection methods in the above embodiments.
[0085] The wireless communication function of the electronic device 100 can be realized by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor, and the baseband processor, etc.
[0086] The antenna 1 and the antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in the electronic device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be multiplexed to improve the utilization rate of the antennas. For example, the antenna 1 can be multiplexed as a diversity antenna of a wireless local area network. In some other embodiments, the antenna can be used in combination with a tuning switch.
[0087] Among them, 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] The modem processor can be disposed in the radio frequency module, and the radio frequency module is configured to perform radio frequency domain processing such as amplification, frequency down conversion, and filtering on the first sampling signal to obtain the second sampling signal.
[0089] The baseband module in the embodiment of the present application can be provided with a baseband processor, which is configured to perform digital processing on the signal to determine a target channel using a target protocol type for transmission from M channels.
[0090] The mobile communication module 150 can provide a solution including 2G / 3G / 4G / 5G wireless communication applied to the electronic device 100. The mobile communication module 150 can include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), and the like. The mobile communication module 150 can receive electromagnetic waves from the antenna 1 and perform filtering, amplification, and the like on the received electromagnetic waves, and transmit the processed electromagnetic waves to the modem processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modem processor and radiate the signal as electromagnetic waves through the antenna 1. In some embodiments, at least part of the functional modules of the mobile communication module 150 can be disposed in the processor 110. In some embodiments, at least part of the functional modules of the mobile communication module 150 and at least part of the modules of the processor 110 can be disposed in the same device.
[0091] The modem processor can include a modulator and a demodulator. The modulator is configured to modulate a low-frequency baseband signal to be transmitted into a medium-high frequency signal. The demodulator is configured to demodulate a 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. The low-frequency baseband signal processed by the baseband processor is transmitted to the application processor. The application processor outputs a sound signal through an audio device (not limited to a loudspeaker 170A and a receiver 170B), or displays an image or a video through the display screen 194. In some embodiments, the modem processor can be a separate device. In other embodiments, the modem processor can be independent of the processor 110 and disposed in the same device as the mobile communication module 150 or other functional modules.
[0092] The wireless communication module 160 can provide a solution for wireless communication including wireless local area networks (WLAN) (e.g., wireless fidelity (Wi-Fi) network), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR) technology, etc. applied to the electronic device 100. The wireless communication module 160 can be one or more devices that integrate at least one communication processing module. The wireless communication module 160 receives an electromagnetic wave via the antenna 2, frequency-modulates and filters the electromagnetic wave signal, and transmits the processed signal to the processor 110. The wireless communication module 160 can also receive a signal to be transmitted from the processor 110, frequency-modulate it, amplify it, and radiate it as an electromagnetic wave via the antenna 2.
[0093] In some embodiments, the antenna 1 and the mobile communication module 150 of the electronic device 100 are coupled, and the antenna 2 and the wireless communication module 160 are coupled, so that the electronic device 100 can communicate with a network and other devices through wireless communication technology. The wireless communication technology can 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. The GNSS can include a global positioning system (GPS), a global navigation satellite system (GLONASS), a beidu navigation satellite system (BDS), a quasi-zenith satellite system (QZSS), and / or a satellite based augmentation systems (SBAS).
[0094] The electronic device 100 implements a display function through a GPU, a display 194, and an application processor, etc. The GPU is a microprocessor for image processing, connected to the display 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 can include one or more GPUs that execute program instructions to generate or change display information.
[0095] The electronic device 100 can implement a photographing function through an ISP, a camera 193, a video codec, a GPU, a display 194, and an application processor, etc.
[0096] The digital signal processor is used to process digital signals, in addition to being able to process digital image signals, it can also process other digital signals. For example, when the electronic device 100 selects a frequency point, the digital signal processor is used to perform Fourier transform on the frequency point energy, etc.
[0097] A video codec is used to compress or decompress digital video. The electronic device 100 can support one or more video codecs. In this way, the electronic device 100 can play or record videos in a variety of encoding formats, such as moving picture experts group (MPEG) 1, MPEG 2, MPEG 3, MPEG 4, and the like.
[0098] An NPU is a neural-network (NN) computing processor that quickly processes input information by drawing on the structure of a biological neural network, such as the transmission mode between human brain neurons, and can also continuously self-learn. Through the NPU, the electronic device 100 can implement intelligent cognitive applications, such as image recognition, face recognition, voice recognition, text understanding, and the like.
[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. For example, music, video, and the like are saved in the external memory card.
[0100] The internal memory 121 can be used to store computer executable program codes, which 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 can include a program storage area and a data storage area. The program storage area can store an operating system, at least one application program required by a function (such as a sound playing function, an image playing function, and the like), and the like. The data storage area can store data created during use of the electronic device 100 (such as audio data, a phone book, and the like), and the like. In addition, the internal memory 121 can include a high-speed random access memory, and can also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, a universal flash storage (UFS), and the like.
[0101] The electronic device 100 can implement audio functions through an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, an application processor, and the like. For example, music playing, recording, and the like.
[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 can include more or fewer components than illustrated, or combine certain components, or split certain components, or different arrangement of components. The illustrated components can be implemented in hardware, software, or a combination of software and hardware.
[0103] The following is an example of the composition of the electronic device shown in Figure 3 The specific implementation of the electronic device to implement multi-channel scanning is illustrated.
[0104] For example, the electronic device scans 5 adjacent channels at a time, as shown in Figure 4 The electronic device can include an antenna module, a radio frequency module, an analog-to-digital conversion unit, and a baseband module. The baseband module can include a frequency shift unit group, a filter unit group, and a carrier sensing unit group.
[0105] The radio frequency module receives the multi-channel antenna signal obtained by the electronic device scanning multiple channels at a time through the antenna module, performs radio frequency processing on the multi-channel antenna signal, and transmits the radio frequency processed multi-channel antenna signal to the analog-to-digital conversion unit. The multi-channel antenna signal is an analog signal.
[0106] The radio frequency processing of the radio frequency module on the multi-channel antenna signal can include down-conversion processing of the multi-channel antenna signal, which can transform the center frequency of the multi-channel antenna signal to 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, hereinafter 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 embodiments of the present application, the analog-to-digital conversion unit can be provided in the radio frequency module, or in the baseband module, or independently outside the radio frequency module and the baseband module. The position of the analog-to-digital conversion unit in the electronic device is not limited in the embodiments of the present application.
[0109] In some embodiments, the frequency shift unit group can be implemented by a frequency shift unit. For example, Figure 4 The frequency shift unit group shown in
[0110] The filter unit group is used to filter the multi-channel signal after frequency shifting to obtain the data segments corresponding to two or more channels included in the multi-channel signal based on the multi-channel signal after frequency shifting.
[0111] For example, the filter unit group can be implemented by a plurality of sub-filter units. The number of sub-filter units can correspond to the number of frequency shift units in the frequency shift unit group. For example, the number of sub-filter units can be the same as the number of frequency shift units. In some implementations, the passband of each sub-filter unit can be the same.
[0112] In some embodiments, the filter unit group can be implemented by a plurality of low pass filters (LPFs) with the same passband. As shown in FIG. 1, the filter unit group can include LPF1 to LPF5. In different embodiments, the LPF can be implemented by a finite impulse response (FIR) filter and / or an infinite impulse response (IIR). Figure 4
[0113] The carrier sensing unit group can include two or more clear channel assessment (CCA) units. The CCA unit can be used to determine the data segment of a channel using a target protocol type in the data segment corresponding to the two or more channels, respectively.
[0114] In some embodiments of the present application, the number of CCAs in the carrier sensing unit group can be the same as the number of frequency shift units in the frequency shift unit group and / or the number of LPFs in the filter unit group. At the same time, one frequency shift unit, one LPF, and one CCA can implement the functions of filtering, carrier sensing, and determining whether the data segment corresponding to a channel is a target channel from a multi-channel digital signal. In the present application, the CCA, LPF, and frequency shift unit used to process a channel can form a signal processing link.
[0115] As shown in FIG. 1, the frequency shift unit group can include frequency shift unit 1 to frequency shift unit 5, which correspond to LPF1 to LPF5, respectively. Each LPF can be coupled with a CCA. For example, LPF1 is coupled with CCA1, LPF2 is coupled with CCA2, LPF3 is coupled with CCA3, LPF4 is coupled with CCA4, and LPF5 is coupled with CCA5. Thus, the matching processing of each data segment is implemented by the CCA to determine whether there is a target channel. Figure 4 In the present application, each sub-filter unit can form a signal processing link with a frequency shift unit. The signal processing link can be used to separate and obtain the data segment corresponding to a channel from the data segments corresponding to a plurality of channels.
[0116]
[0117] The frequency shift unit 1 and LPF1 can form a signal processing link to separate and obtain a channel data segment from the data segments corresponding to multiple channel signals. The frequency shift unit 1, LPF1, and CCA1 can form a signal processing link to filter and match channel data from the sampled data.
[0118] Similarly, frequency shift unit 2, LPF2 and CCA2 can form a signal processing link, frequency shift unit 3, LPF3 and CCA3 can form a signal processing link, frequency shift unit 4, LPF4 and CCA4 can form a signal processing link, and frequency shift unit 5, LPF5 and CCA5 can form a signal processing link.
[0119] Furthermore, in this application, each signal processing link can correspond to a CCA identifier. The CCA identifier can be implemented using a high / low level or 0 / 1. This CCA identifier can be used to indicate whether the data segment being processed on the current signal processing link is data transmitted via the target protocol type.
[0120] Taking the CCA identifier implemented through high / low levels as an example.
[0121] When the CCA flag is high, it indicates that the target protocol type is used for the data segment / channel selected by the current signal processing link. Conversely, when the CCA flag is low, it indicates that the target protocol type is not used for the data segment / channel selected by the current signal processing link.
[0122] Take the CCA identifier implemented using 0 / 1 as an example.
[0123] When the CCA flag is 1, it indicates that the target protocol type is used for the data segment obtained by the current signal processing link. Conversely, when the CCA flag is 0, it indicates that the target protocol type is not used for the data segment obtained by the current signal processing link.
[0124] like Figure 4 As shown, the electronic device may also include a parsing module, a calculation module, and a gain adjustment unit.
[0125] The parsing module can identify the channel of the data segment corresponding to the signal processing link with CCA identifier 1 as the target channel. The parsing module can also parse the data segments of the target channel, as well as other data received on that target channel, according to the target protocol type, thereby obtaining the valid data transmitted through the target channel.
[0126] The computing module can determine a channel corresponding to a data segment of a signal processing link with a CCA value of 1 as a target channel. The computing module can also be configured to calculate a digital average power of the target channel according to a data segment corresponding to the target channel. The digital average power value can be used to adjust the gain of the radio frequency module during the amplification process (such as automatic gain control, AGC).
[0127] The computing module can also be configured to calculate a signal receiving strength corresponding to the antenna signal received by the antenna module of the target channel according to the data segment of the target channel and the AGC gain of the radio frequency module adjusted according to the digital average power. The calculated signal receiving strength can be used for judging the current communication quality, displaying alone, selecting a target data segment from multiple matched data segments to determine the target channel, etc. 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 radio frequency signal according to the multi-channel digital signal and the target signal, so that the signal size of the analog radio frequency signal is within a suitable range.
[0128] Figure 4 The electronic device in the above embodiment can also be configured with a control module (not shown in the above embodiment). Figure 4 The control module can be configured to control the electronic device to perform single channel scanning or multi-channel scanning according to actual conditions.
[0129] For example, the control module can be configured to control the enablement of each component in the baseband module.
[0130] During the multi-channel scanning process, the control module can be configured to control the working state of the radio frequency module through a control command. The control module can also be configured to control the frequency shift unit, the LPF, and the CCA (i.e., the signal processing link in the working state) in the baseband module through a control command, so as to realize a corresponding number of single channel or multi-channel scanning.
[0131] It can be understood that the above examples only exemplarily illustrate the implementation process of the multi-channel scanning provided by the embodiments of the present application. In some implementations, each unit in the radio frequency 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 radio frequency module of a mobile phone can include a direct current filtering unit. The direct current filtering unit can be configured to filter out the direct current signal in the radio frequency signal.
[0132] In some other implementations, the baseband module of the mobile phone can include a DC filtering unit. The DC filtering unit can be configured to filter out the DC signal in the multi-channel digital signal sent by the analog-to-digital conversion unit after receiving the multi-channel digital signal.
[0133] In the embodiments of the present application, the electronic device can scan multiple channels at a time and obtain the signals of the multiple channels through one-time signal reception. For example, the electronic device can scan 2, 3, 4, or 5 channels at a time. Correspondingly, the electronic device can receive the signals of 2, 3, 4, or 5 channels at a time.
[0134] The following describes the implementation process of the electronic device scanning multiple channels at a time by taking the electronic device scanning 5 channels in the 2.4 GHz frequency band and obtaining the signals of the 5 channels as an example. Taking the scanning bandwidth as 40 MHz, the electronic device can complete the scanning of the 2.4 GHz full frequency band through 3 scanning processes.
[0135] As shown in Figure 5 , the electronic device can first scan channels 1 to 5 at a time to implement the first-time channel scanning. Then, the electronic device scans channels 5 to 9 at a time to implement the second-time channel scanning. Finally, the electronic device scans channels 9 to 13 at a time to implement the third-time channel scanning. As can be seen, the electronic device only needs to perform 3 scans to scan the full channels. If the electronic device scans only 1 channel at a time, the electronic device needs to perform 13 scans to scan the full channels, i.e., scans from channel 1 to channel 13 in turn. As can be seen, the electronic device scanning multiple channels at a time can reduce the number of channel scans and improve the efficiency of channel scanning.
[0136] As shown in Figure 5 , the frequency band A1 of the first-time channel scanning of the electronic device can be 2402 MHz to 2442 MHz, which 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 center frequency point of the frequency band A1 can be 2422 MHz.
[0137] As shown in Figure 5 , the frequency band A2 of the second-time channel scanning of the electronic device can be 2422 MHz to 2462 MHz, which 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 center frequency point of the frequency band A2 can be 2442 MHz.
[0138] As shown in Figure 5As shown, the frequency band A3 of the third channel scanning of the electronic device can be 2442MHz to 2482MHz, which can completely cover channels 9 to 12. In addition, the frequency band of channel 13 is 2461MHz to 2483MHz. Therefore, the frequency band A3 can also cover most of the frequency band of channel 13. The center frequency of the frequency band A3 can be 2462MHz.
[0139] As shown, the frequency band A3 of the third channel scanning of the electronic device can be 2442MHz to 2482MHz, which can completely cover channels 9 to 12. In addition, the frequency band of channel 13 is 2461MHz to 2483MHz. Therefore, the frequency band A3 can also cover most of the frequency band of channel 13. The center frequency of the frequency band A3 can be 2462MHz. Figure 5 As shown, the electronic device scans 5 channels of the 2.4GHz frequency band at a time, and obtains the signals of the 5 channels. Through the 2 scanning processes, the electronic device can also complete the scanning of the 2.4G full frequency band.
[0140] As shown, the frequency band A3 of the third channel scanning of the electronic device can be 2442MHz to 2482MHz, which can completely cover channels 9 to 12. In addition, the frequency band of channel 13 is 2461MHz to 2483MHz. Therefore, the frequency band A3 can also cover most of the frequency band of channel 13. The center frequency of the frequency band A3 can be 2462MHz. Figure 6 As shown, the frequency band A3 of the third channel scanning of the electronic device can be 2442MHz to 2482MHz, which can completely cover channels 9 to 12. In addition, the frequency band of channel 13 is 2461MHz to 2483MHz. Therefore, the frequency band A3 can also cover most of the frequency band of channel 13. The center frequency of the frequency band A3 can be 2462MHz.
[0141] Figure 6 As shown, the frequency band A3 of the third channel scanning of the electronic device can be 2442MHz to 2482MHz, which can completely cover channels 9 to 12. In addition, the frequency band of channel 13 is 2461MHz to 2483MHz. Therefore, the frequency band A3 can also cover most of the frequency band of channel 13. The center frequency of the frequency band A3 can be 2462MHz.
[0142] In the embodiment of the present application, the electronic device can realize multi-channel scanning by adjusting the scanning bandwidth and the center frequency of channel scanning. In multi-channel scanning, the scanning bandwidth of the electronic device can be determined according to the number of channels scanned at a time. For example, as shown in the following table, the electronic device scans 5 channels at a time. Figure 5 As shown, the scanning bandwidth of the electronic device scanning 5 channels at a time is 40MHz. The center frequency of the electronic device performing channel scanning is switched from 2422MHz to 2442MHz, and finally from 2442MHz to 2462MHz. As shown in the following table, the center frequency of the electronic device performing channel scanning is switched from 2422MHz to 2462MHz when the scanning bandwidth of the electronic device scanning 5 channels at a time is 40MHz. Figure 6 As shown, the scanning bandwidth of the electronic device scanning 5 channels at a time is 40MHz. The center frequency of the electronic device performing channel scanning is switched from 2422MHz to 2442MHz, and finally from 2442MHz to 2462MHz. As shown in the following table, the center frequency of the electronic device performing channel scanning is switched from 2422MHz to 2462MHz when the scanning bandwidth of the electronic device scanning 5 channels at a time is 40MHz.
[0143] For example, Table 1 below shows the correspondence between the number of channels scanned by the electronic device in one channel scan and the scan bandwidth of the channel scan. From Table 1, if the electronic device scans 5 channels at a time, the scan bandwidth of the channels is 40 MHz. If the electronic device scans 4 channels at a time, the scan bandwidth of the channels is 35 MHz. If the electronic device scans 3 channels at a time, the scan bandwidth of the channels is 30 MHz. If the electronic device scans 2 channels at a time, the scan bandwidth of the channels is 25 MHz. If the electronic device scans 1 channel at a time, the scan bandwidth of the channels is 20 MHz.
[0144] Table 1 Channel scan situation corresponding to different number of channel scans
[0145]
[0146] From Table 1 above, it can also be seen that when the electronic device scans different number of channels at a time, the channels scanned in the first time and the center frequency of each scan. Specifically, if the electronic device scans 5 channels at a time, the electronic device scans channels 1 to 5 in the first time, and the center frequency of the first channel scan is 2422 MHz. If the electronic device scans 4 channels at a time, the electronic device scans channels 1 to 4 in the first time, and the center frequency of the first channel scan is 2419.5 MHz. If the electronic device scans 3 channels at a time, the electronic device scans channels 1 to 3 in the first time, and the center frequency of the first channel scan is 2417 MHz. If the electronic device scans 2 channels at a time, the electronic device scans channels 1 to 2 in the first time, and the center frequency of the first channel scan is 2414.5 MHz. If the electronic device scans 1 channel at a time, the electronic device scans channel 1 in the first time, and the center frequency of the first channel scan is 2412 MHz. 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 around 0 MHz. In this way, for signals received in different frequency bands, the center frequencies of the signals can be the same after down-conversion. Then the electronic device can process the signals collected in different channels by using the same module or component.
[0147] As Figure 7As shown, the electronic device can down-convert signal 1 after acquiring it. This down-conversion process can include shifting the center frequency of signal 1 to 0MHz. For example, assuming the center frequency of signal 1 corresponds to the center frequency of channel 3, then after down-conversion, the center frequency of channel 3 will be shifted to 0MHz. Correspondingly, after down-conversion, the center frequency of channel 2 can be shifted to -5MHz, and the center frequency of channel 1 can be -10MHz. Similarly, after down-conversion, the center frequency of channel 4 can be shifted to 5MHz, and the center frequency of channel 5 can be shifted to 10MHz.
[0148] As shown in Table 1 above, the center frequency of the mixer unit and the scanning bandwidth of the filter unit of the electronic device are different when the number of channels scanned in one operation is different. In this case, after the electronic device determines the scanning mode, it can control the RF module and the baseband module according to the scanning mode. This allows the RF module to adjust the center frequency of the mixer unit and the scanning bandwidth of the filter unit according to the received commands, and the baseband module to enable and power on different signal processing links according to the received commands.
[0149] The power consumption of an electronic device during a single scan varies depending on the number of channels it scans. Generally, the more channels an electronic device scans in one scan, the greater its power consumption. For example, ... 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, LPF1 to LPF5, and CCA1 to CC5 to power 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, while the other frequency shift units are not powered on; the control module enables LPF1 to LPF2 to power on, while the other LPFs are not powered on; and the control module enables CCA1 to CCA2 to power on, while the other CCAs are not powered on. Therefore, it is evident that the power consumption of the electronic device scanning 5 channels at a time is greater than the power consumption of scanning 3 channels at a time.
[0150] Therefore, by adjusting the number of channels scanned in real time according to the scanning mode, the control module of the electronic device not only saves 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 radio frequency module to work in the first working state according to the scanning mode, and controls at least two signal processing links in the at least two signal processing links to enable power-on. Then, the electronic device obtains a first sampling signal through the first antenna, and obtains a second sampling signal through the radio frequency module working in the first working state, so that the frequency band of the second sampling signal includes the frequency bands of the at least two channels. The electronic device performs digital processing on the second sampling signal through the at least two signal processing links, and determines whether the target channel using the preset target protocol type for data transmission is included in the plurality of channels corresponding to the second sampling signal.
[0152] In the following, taking the electronic device as a mobile phone as an example, the composition of the mobile phone is introduced in combination with the accompanying drawings. Figure 8 -Appendix Figure 16 The above process is described in detail.
[0153] As shown in the figure, the method provided by the embodiment of the application can include the following steps: Figure 8
[0154] S801, the mobile phone obtains a scanning mode.
[0155] The scanning mode is used to indicate that the number of channels scanned at a time is M channels. The scanning mode corresponds to the number of channels scanned at a time. For example, the number of channels scanned at a time corresponding to the scanning mode 1 is 1, the number of channels scanned at a time corresponding to the scanning mode 2 is 2, the number of channels scanned at a time corresponding to the scanning mode 3 is 3, the number of channels scanned at a time corresponding to the scanning mode 4 is 4, and the number of channels scanned at a time corresponding to the scanning mode 5 is 5.
[0156] For example, the number of scanning channels is M, and M is an integer greater than or equal to 1. When M is equal to 1, the composition of the mobile phone provided by the embodiment of the application can be used to support single-channel scanning. When M is greater than 1, for example, M is equal to 2, the composition of the mobile phone provided by the embodiment of the 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 by the embodiment of the 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 by the embodiment of the 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 by the embodiment of the application can be used to support multi-channel scanning of 5 channels at the same time. Similarly.
[0157] It can be understood that the maximum value of M, that is, the maximum number of channels that the mobile phone can support for simultaneous scanning, can be determined by the hardware configuration of the mobile phone. For example, the number of signal processing links configured in the mobile phone can correspond to the maximum number of channels that the mobile phone can provide for simultaneous scanning.
[0158] In the embodiments of the present application, the scanning mode can be determined by the mobile phone for one time scanning of channels.
[0159] Optionally, when the mobile phone receives a user operation indicating WiFi connection, the mobile phone can scan multiple channels at one time, determine idle channels in the multiple channels, and then the mobile phone can count the frequency of idle channels, and determine the scanning mode according to the frequency of idle channels.
[0160] For example, assuming that the mobile phone scans 5 channels at one time, the mobile phone scans channel 1 to channel 5 for the first time, scans channel 5 to channel 9 for the second time, scans channel 9 to channel 13 for the third time, and so on. The mobile phone counts the idle channels at each time of scanning channels, and determines the number of channels scanned at one time according to the frequency of a channel being determined as an idle channel. For example, assuming that the mobile phone determines that channel 1 and channel 5 are the channels with the highest frequency of being determined as idle channels, the mobile phone can determine that the number of channels scanned at one time is 5. In this way, the mobile phone can scan channel 1 and channel 5 at one time. For another example, assuming that the mobile phone determines that channel 1 and channel 3 are the channels with the highest frequency of being determined as idle channels, the mobile phone can determine that the number of channels scanned at one time is 3, i.e., the scanning mode is scanning mode 3. In this way, the mobile phone can scan channel 1 and channel 3 at one time.
[0161] S802, the mobile phone controls the radio frequency module to work in the first working state according to the scanning mode, and controls M signal processing links in the at least two signal processing links to enable power-on.
[0162] In the embodiments 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 a possible case, the first command stream can include a first command and a second command. The control module of the mobile phone can control the center frequency point of the mixing unit to be the first frequency point according to the first command. The first frequency point is the center frequency point corresponding to the frequency band of the M channels. The control module of the mobile phone can control the scanning bandwidth of the filtering unit to be the 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 for one-time scanning is 5 according to the scanning mode, the control module of the mobile phone can control the center frequency point of the mixing unit to be set as 2.422 GHz according to the first command, and control the scanning bandwidth of the filtering unit to be set as 40 MHz according to the second command. When the mobile phone determines that the number of channels for one-time scanning is 2 according to the scanning mode, the control module of the mobile phone can control the center frequency point of the mixing unit to be set as 2.4145 GHz according to the first command, and control the scanning bandwidth of the filtering unit to be set as 25 MHz according to the second command. It can be seen that the control module of the mobile phone can control the center frequency point of the mixing unit and the scanning bandwidth of the filtering unit through control commands according to the number of channels for one-time scanning, so as to realize scanning of multi-channel signals.
[0165] In an 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 as a first bandwidth according to the second command. For example, as shown in Figure 9 the control module of the mobile phone determines that the number of channels for one-time scanning corresponding to the scanning mode is 5, the control module of the mobile phone can control the scanning bandwidth of the filtering unit to be configured as 40 MHz according to the second command. The control module of the mobile phone determines that the number of channels for one-time scanning corresponding to the scanning mode is 4, the control module of the mobile phone can control the scanning bandwidth of the filtering unit to be configured as 35 MHz according to the second command. The control module of the mobile phone determines that the number of channels for one-time scanning corresponding to the scanning mode is 3, the control module of the mobile phone can control the scanning bandwidth of the filtering unit to be configured as 30 MHz according to the second command. The control module of the mobile phone determines that the number of channels for one-time scanning corresponding to the scanning mode is 2, the control module of the mobile phone can control the scanning bandwidth of the filtering unit to be configured as 25 MHz according to the second command.
[0166] In another example, when the filtering unit includes a plurality of sub-filtering units, the mobile phone can also enable power-on of the sub-filtering unit with the first bandwidth according to the second command, so that the sub-filtering unit after power-on filters the signal. For example, assuming that Figure 9 the filtering unit in the mobile phone includes a plurality of sub-filtering units, and the scanning channels of the plurality of sub-filtering units are different from each other, when the control module of the mobile phone determines that the number of channels for one-time scanning corresponding to the scanning mode is 5, the control module of the mobile phone can control the sub-filtering unit with the scanning bandwidth of 40 MHz to enable power-on, so that the sub-filtering unit after power-on filters out the data segments corresponding to 5 channels. When the control module of the mobile phone determines that the number of channels for one-time scanning corresponding to the scanning mode is 4, the control module of the mobile phone can control the sub-filtering unit with the scanning bandwidth of 34 MHz to enable power-on, so that the sub-filtering unit after power-on filters out the data segments corresponding to 4 channels.
[0167] It can be understood that the number of channels scanned at one time is different when the scanning mode determined by the mobile phone is different. When the number of channels scanned at one time by the mobile phone is different, the center frequency point of the mixing unit and the scanning bandwidth of the filter unit are also different, and the control module can set the center frequency point of the mixing unit and the scanning bandwidth of the filter unit through a control command.
[0168] In the embodiment of the present application, after the mobile phone determines the scanning mode, the mobile phone determines the number of channels scanned at one time as M channels according to the scanning mode, and the control module of the mobile phone can enable power-on of M signal processing links in at least two signal processing links according to a second command stream, so that the M signal processing links perform digital processing on the signals.
[0169] For example, the mobile phone is configured with 5 signal processing links, which are used to support multi-channel scanning of no more than 5 channels at the same time under the control of the control module, or are used to support single-channel scanning.
[0170] For example, as shown in Figure 9 The baseband module of the mobile phone can include a group of frequency shifting units, a group of resampling units, a group of filter units, and a group of carrier sensing units.
[0171] The group of frequency shifting units can include frequency shifting unit 1 to frequency shifting unit 5, the group of resampling units includes sub-sampling unit 1 to sub-sampling unit 5, the group of filter units includes LPF1 to LPF5, and the group of carrier sensing units includes CCA1 to CCA5. Each frequency shifting unit is coupled with a sub-sampling unit, each sub-sampling unit is coupled with an LPF, and each LPF is coupled with a CCA. A frequency shifting unit, a sub-sampling unit coupled with the frequency shifting unit, an LPF coupled with the sub-sampling unit, and a CCA coupled with the LPF constitute a signal processing link. For example, frequency shifting unit 1, sub-sampling unit 1, LPF1, and CCA1 constitute a signal processing link, frequency shifting unit 2, sub-sampling unit 2, LPF2, and CCA2 constitute a signal processing link, frequency shifting unit 3, sub-sampling unit 3, LPF3, and CCA3 constitute a signal processing link, frequency shifting unit 4, sub-sampling unit 4, LPF4, and CCA4 constitute a signal processing link, and frequency shifting unit 5, sub-sampling unit 5, LPF5, and CCA5 constitute a signal processing link. Figure 9 As can be seen, frequency shifting unit 1, sub-sampling unit 1, LPF1, and CCA1 constitute a signal processing link, frequency shifting unit 2, sub-sampling unit 2, LPF2, and CCA2 constitute a signal processing link, frequency shifting unit 3, sub-sampling unit 3, LPF3, and CCA3 constitute a signal processing link, frequency shifting unit 4, sub-sampling unit 4, LPF4, and CCA4 constitute a signal processing link, and frequency shifting unit 5, sub-sampling unit 5, LPF5, and CCA5 constitute a signal processing link.
[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 performs digital processing on the digital signal, the sub-sampling unit can not be included in the above signal processing link, i.e., the baseband module does not need to perform resampling processing on 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] For example, referring to Figure 9 The control module can issue a second command stream to the baseband module, which is used to control the power-on of M frequency shift units, M subsampling units, M LPFs and M CCAs in the n frequency shift units, n subsampling units, n LPFs and n CCAs in the baseband module, and the power-off of the other frequency shift units, subsampling units, LPFs and CCAs. In this way, the M frequency shift units and M LPFs that are powered on can realize the division of the data segments of M channels when M channel scans are performed simultaneously. The control signals sent by the control module to the M frequency shift units, M subsampling 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 power-on of the corresponding number of signal processing links to realize the division, matching and other processing of the received signals including multiple channel data. For example, when up to M multi-channel scans are performed, the control module can enable M signal processing links to be powered on.
[0176] It should be noted that in some embodiments of the present application, the frequency shift processing capabilities provided by each frequency shift unit in the baseband module can be different. In the specific implementation process, the frequency shift processing required is different when M is different. Based on this, the embodiments of the present application also provide a link control scheme in a multi-channel scan process, which enables accurate and effective implementation of frequency shift processing in multi-channel scan processes with different numbers of channels in different scenarios through the smallest circuit area.
[0177] Here, the detailed process of digital processing of signals by the M signal processing links is described below in the introduction process of S806, which is not 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 2.4G full frequency band. That is, the frequency band of the first sampling signal can include the frequency bands of channels 1 to 13.
[0180] For example, as shown in Figure 9 The mobile phone can include an antenna module, and the mobile phone can receive a 2.4G full frequency band signal through the antenna module, i.e., receive the first sampling signal through the antenna module.
[0181] S804, the mobile phone performs radio frequency domain processing on the first sampling signal to obtain a second sampling signal.
[0182] The second sampling signal is a sampling signal obtained by performing radio frequency domain processing on the first sampling signal. When the mobile phone determines the scan mode, and determines the number of one-time scanning channels as M according to the scan mode, the frequency band of the second sampling signal includes the frequency bands corresponding to the M adjacent channels. For example, when M is 5, the frequency band of the second sampling signal includes the frequency bands corresponding to channels 1 to 5, or the frequency band of the second sampling signal includes the frequency bands corresponding to channels 5 to 9, or the frequency band of the second sampling signal includes the frequency bands corresponding to channels 9 to 13. For another example, when M is 3, the frequency band of the second sampling signal includes the frequency bands corresponding to channels 1 to 3, or the frequency band of the second sampling signal includes the frequency bands corresponding to channels 4 to 6, or the frequency band of the second sampling signal includes the frequency bands corresponding to channels 6 to 8, and so on.
[0183] Here, the mobile phone can transmit the radio frequency signal to the radio frequency module after receiving the first sampling signal from all channels through the first antenna, so that the radio frequency module performs radio frequency domain processing on the first sampling signal to obtain the second sampling signal.
[0184] Exemplarily, as shown in Figure 9 The radio frequency module can include a mixing unit and a filtering unit. After the mixing unit of the radio frequency module receives the first sampling signal from all channels, the first sampling signal is subjected to mixing processing and low-pass filtering processing to obtain the second sampling signal. The first sampling signal is an analog signal. Further, the filtering unit of the radio frequency module transmits the processed second sampling signal to an analog-to-digital conversion unit.
[0185] It can be understood that, assuming that the mobile phone scans 5 channels at a time, the mobile phone can first scan channels 1 to 5 to realize the first channel scanning. Then, the mobile phone scans channels 5 to 9 to realize the second channel scanning. Finally, the mobile phone scans channels 9 to 13 to realize the third channel scanning. The mobile phone can scan all channels of the 2.4G WiFi through 3 scans. During the channel scanning process, the scanning bandwidth of the filtering unit of the radio frequency 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 point 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 scanned at one time according to the scanning mode. After the number of channels scanned at one time is changed from 5 to 3, the control module controls the scanning bandwidth of the filtering unit to be 30 MHz. During the process of scanning 3 channels at one time, the control module controls the center frequency of the local oscillator of the mixing unit to be switched from 2417 MHz to 2432 MHz, from 2432 MHz to 2447 MHz, and from 2447 MHz to 2462 MHz.
[0187] Hereinafter, the method provided by the embodiment of the present application is described by taking the first channel scanning performed by the mobile phone as an example. The processes of other channel scanning are the same as that of the first channel scanning, which will not be described here.
[0188] In the embodiment of the present application, after the mobile phone obtains the first sampling signal, the mobile phone can perform down-conversion processing on the first sampling signal. By performing down-conversion processing on the first sampling signal, the center frequency of the first sampling signal after down-conversion processing is changed to a preset center frequency (for example, the preset center frequency is 0).
[0189] For example, as shown in FIG. 6, after the mixing unit of the radio frequency module receives the first sampling signal sent by the antenna module, the mixing unit performs down-conversion processing on the first sampling signal, and then sends the first sampling signal after down-conversion processing to the filtering unit for filtering processing, so as to filter out the data segments corresponding to M channels from the first sampling signal, i.e., the second sampling signal. Figure 9
[0190] It should be noted that the preset center frequency can be set according to actual application scenarios or requirements. For example, the preset center frequency can be 0 MHz. Taking the 5 channels scanned at one time by the mobile phone as channel 1 to channel 5, and the preset center frequency as 0 MHz as an example, the center frequency of the first sampling signal obtained by the mobile phone is 2422 MHz. After the mobile phone performs down-conversion processing on the first sampling signal, the center frequency of the first sampling signal is changed from 2422 MHz to 0 MHz.
[0191] It can be understood that the mobile phone performs down-conversion processing on the first sampling signal, and can move the center frequency points of the first sampling signals of different frequency bands respectively acquired in multiple channel scans to corresponding preset center frequency points. For example, after the mobile phone performs down-conversion processing on the first sampling signals of the frequency bands corresponding to channels 1 to 5 and channels 5 to 9, which are acquired by the mobile phone in the first and second scans respectively, the center frequency point of the first sampling signal of the frequency band corresponding to channels 1 to 5 can be moved from 2422 MHz to 0 MHz, and the center frequency point of the first sampling signal of the frequency band corresponding to channels 5 to 9 can be moved from 2442 MHz to 0 MHz. After the mobile phone moves the center frequency points of the first sampling signals to the preset center frequency points, the center frequency points of the channels corresponding to the first sampling signals are also moved.
[0192] Exemplarily, taking the first sampling signal as the signal obtained by the mobile phone scanning channels 1 to 5 and the preset center frequency point as 0 as an example, the frequency band corresponding to the first sampling signal is from 2401 MHz to 2441 MHz, and the center frequency point is 2422 MHz. After the first sampling signal is subjected to down-conversion processing, the center frequency point of the first sampling signal is converted from 2422 MHz to 0 MHz, the center frequency point of channel 1 is converted from 2412 MHz to -10 MHz, the center frequency point of channel 2 is converted from 2417 MHz to -5 MHz, the center frequency point of channel 3 is converted from 2422 MHz to 0 MHz, the center frequency point of channel 4 is converted from 2427 MHz to 5 MHz, and the center frequency point of channel 5 is converted from 2432 MHz to 10 MHz.
[0193] Taking the first sampling signal as the signal obtained by the mobile phone scanning channels 1 to 4 as an example, after down-conversion processing, the center frequency point of channel 1 is converted from 2412 MHz to -7.5 MHz, the center frequency point of channel 2 is converted from 2417 MHz to -2.5 MHz, the center frequency point of channel 3 is converted from 2422 MHz to 2.5 MHz, and the center frequency point of channel 4 is converted from 2427 MHz to 7.5 MHz.
[0194] Taking the first sampling signal as the signal obtained by the mobile phone scanning channels 1 to 3 as an example, after down-conversion processing, the center frequency point of channel 1 is converted from 2412 MHz to -5 MHz, the center frequency point of channel 2 is converted from 2417 MHz to 0 MHz, and the center frequency point of channel 3 is converted from 2422 MHz to 5 MHz.
[0195] Taking the first sampled signal as the signal obtained by the mobile phone scanning channels 1 to 2 as an example, 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 mobile phone's baseband module can perform the same subsequent processing on the first sampled signals obtained from multiple scans of different frequency bands using the same module or unit, thereby simplifying the signal processing flow and improving the efficiency of channel scanning.
[0197] S805: The mobile phone performs analog-to-digital conversion on the second sampled signal to obtain the first digital signal.
[0198] In this embodiment, the second sampled signal from 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, converting the analog second sampled signal into a digital signal. The digital signal after the second sampled signal conversion can be called the first digital signal. During the ADC process, the mobile phone can sample the second sampled signal at a first frequency to obtain the first digital signal. The sampling frequency for the ADC processing is the first frequency.
[0199] For example, such as Figure 9 As shown, after receiving the second sampling signal sent by the filtering unit, the analog-to-digital converter (ADC) of the mobile phone can convert the second sampling signal into a first digital signal. The sampling frequency for the analog-to-digital conversion is a first frequency (e.g., 80MHz). After acquiring the first digital signal, the ADC can transmit it to the baseband module for further processing.
[0200] In some implementations, to ensure the bit depth of the first digital signal is within a suitable range, the mobile phone can adjust the gain of the radio frequency (RF) signal based on the first digital signal after analog-to-digital conversion. For example, if the bit depth of the first digital signal is greater than or equal to a first preset bit depth, the gain of the RF signal can be reduced, resulting in a smaller bit depth for the first digital signal in the next frame. If the bit depth of the first digital signal is less than or equal to a second preset bit depth, the mobile phone can increase the gain of the RF signal, resulting in a larger bit depth for the first digital signal in the next frame. If the bit depth of the first digital signal is between the first and second preset bit depths, the mobile phone can maintain the gain of the RF signal to keep the bit depth of the first digital signal in the next frame within a suitable range.
[0201] In this way, the first digital signal acquired by the mobile phone can be kept at a proper bit number, thereby facilitating subsequent processing of the first digital signal by the mobile phone.
[0202] It should be explained that, Figure 9 The analog-to-digital conversion unit in the above formula can be coupled in the radio frequency module, can be coupled in the baseband module, and can be independent of the radio frequency module and the baseband module, and the present application does not limit this.
[0203] S806, the M signal processing links of the mobile phone perform digital processing on the first digital signal to determine whether the target channel is included in the M channels.
[0204] In the embodiment of the present application, after the baseband module of the mobile phone acquires the first digital signal, the M signal processing links enabled by power in the baseband module can perform digital processing on the first digital signal to determine whether the target channel is included in the M channels.
[0205] As an example, as shown in Figure 9 The control module can be coupled with each of the frequency shifting units 1 to n, each of the sub-sampling units 1 to n, each of the LPFs 1 to n, and each of the CCAs 1 to n through the control signal line.
[0206] In actual work, the control module can determine that the 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] In the case where M is equal to 1, the electronic device can perform single-channel scanning. Correspondingly, in the case where M is greater than 1, the electronic device can perform multi-channel scanning.
[0208] Taking the case where M is greater than 1 and the electronic device performs multi-channel scanning as an example.
[0209] The control module can enable M frequency shifting units in the frequency shifting units 1 to n to work by power through the control signal line, and the other frequency shifting units are not powered on. In order to realize frequency shifting processing of the first digital signal through the M frequency shifting units. Among them, it can include a 0MHz frequency shifting processing (i.e. no movement in the frequency domain). The center frequency of the M sampling data after frequency shifting is shifted to 0MHz, and the data segment of 22MHz extended to both sides of the center frequency is corresponding to the data segment of the M channels.
[0210] The control module can enable M LPFs in the LPFs 1 to n to work by power through the control signal line, and the other LPFs are not powered on. In order to filter the M frequency-processed digital signals through the M LPFs respectively, and then acquire the data segments corresponding to the M channels respectively.
[0211] The control module can control the m CCA among the CCA1 to CCAn to be powered on by the control signal line, and the others are not powered on. So as to respectively match the data segments of the M channels obtained through the M CCA, so as to determine 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, the M frequency shift units, M sub-sampling units, M LPFs and M CCAs can be the frequency shift units, sub-sampling units, LPFs and CCAs of the M signal processing links. Thus, the enablement control of the M signal processing links is realized, and then the baseband module can smoothly realize the analysis and processing of the sampling data of the M channels. Further, through the multi-channel scanning scheme, the target channel using the target protocol type can be quickly determined through a small number of scanning and analysis.
[0213] The implementation process of the digital processing of the first digital signal by each signal processing link can refer to the implementation process of S8061 to S8064 in Figure 10 .
[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 one example of the implementation mode, after the baseband module receives the first digital signal, the first digital signal can be subjected to frequency shift processing.
[0216] It can be understood that through the down-conversion processing, the center frequency point of the first sampling signal can be moved to the preset center frequency point. And because the lengths of the signals obtained are different when the number of multi-channel scanning is different, after the down-conversion processing, the center frequency points of the channels are actually different.
[0217] For example, referring to the foregoing Figure 6 , taking the down-conversion processing of the signals of the 5 channels scanned as an example. After the down-conversion processing, the center frequency point of the sampling data signal 1 can be moved to 0MHz. Correspondingly, in the data segment, the center frequency point of channel 1 is -10MHz, the center frequency point of channel 2 is -5MHz, the center frequency point of channel 3 is 0MHz, the center frequency point of channel 4 is 5MHz, and the center frequency point of channel 5 is 10MHz.
[0218] The baseband module can be provided with a plurality of frequency shift units. Each frequency shift unit is used to move the center frequency points of the channels in the first digital signal to the preset center frequency point.
[0219] For example, as Figure 11As shown, multiple frequency shift units can be arranged in the baseband module of the mobile phone. The number of frequency shift units can be determined by the number of channels in one scan, for example, the multiple frequency shift units can include frequency shift unit 1, frequency shift unit 2, frequency shift unit 3, frequency shift unit 4, and frequency shift unit 5. The frequency shift 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 shift units 1 to 5 can be respectively configured with different frequency shift capabilities.
[0221] For example, the frequency shift unit 1 can be used for 0MHz frequency shift processing. The frequency shift unit 2 can be used for -2.5MHz and / or -5MHz frequency shift processing. The frequency shift unit 3 can be used for 2.5MHz and / or 5MHz frequency shift processing. The frequency shift unit 4 can be used for -7.5MHz and / or -10MHz frequency shift processing. The frequency shift unit 5 can be used for 7.5MHz and / or 10MHz frequency shift processing.
[0222] In this Figure 11 In the scenario of 5-channel sampling scan as shown, the frequency shift units are required to provide 10MHz, 5MHz, -5MHz, and -10MHz frequency shift processing, respectively, and then obtain the data segments corresponding to the 5 channels through filtering processing.
[0223] In other multi-channel sampling scan processes, the length of frequency shift processing required to be used can be different.
[0224] Taking 4-channel sampling data frequency shift processing as an example, the center frequency point of the first digital signal can be moved to 0MHz after frequency shift processing. Correspondingly, in the data segment, the center frequency point of channel 1 is -7.5MHz, the center frequency point of channel 2 is -2.5MHz, the center frequency point of channel 3 is 2.5MHz, and the center frequency point of channel 4 is 7.5MHz.
[0225] In this way, in the scenario of 4-channel sampling scan, the frequency shift units are required to provide 7.5MHz, 2.5MHz, -2.5MHz, and -7.5MHz frequency shift processing, respectively, and then obtain the data segments corresponding to the 4 channels through filtering processing.
[0226] Taking 3-channel sampling data frequency shift processing as an example, the center frequency point of the first digital signal can be moved to 0MHz after frequency shift processing. Correspondingly, in the data segment, the center frequency point of channel 1 is -5MHz, the center frequency point of channel 2 is 0MHz, and the center frequency point of channel 3 is 5MHz.
[0227] Thus, in the scenario of 3-channel sampling scanning, the frequency shifting unit needs to provide frequency shifting processing of 5MHz and -5MHz respectively, and then the data segments corresponding to the 3 channels are obtained through filtering processing.
[0228] Taking the data frequency shifting processing of 2-channel sampling as an example, the center frequency point of the first digital signal can be moved to 0MHz through frequency shifting processing. Correspondingly, in the data segment, the center frequency point of channel 1 is -2.5MHz, and the center frequency of channel 2 is 2.5MHz.
[0229] Thus, in the scenario of 2-channel sampling scanning, the frequency shifting unit needs to provide frequency shifting processing of 2.5MHz and -2.5MHz respectively, and then the data segments corresponding to the 2 channels are obtained through filtering processing.
[0230] In summary, in the implementation of the scheme of providing 5-channel scanning at most, the frequency shifting unit needs to provide frequency shifting processing capability of -7.5MHz, -5MHz, -2.5MHz, 2.5MHz, 5MHz and 7.5MHz at least.
[0231] The frequency shifting unit 1 can provide frequency shifting processing capability of 0MHz. Thus, the frequency shifting unit 1 can be used for frequency shifting processing of the input first digital signal without frequency domain movement. For example, the frequency shifting unit 1 can be used for processing of channel 3 in the scenario of 5-channel scanning, processing of channel 2 in the scenario of 3-channel scanning, etc. in the above example. Thus, through subsequent filtering processing with the center frequency point of the frequency band being 0MHz, the data segment of channel 3 in the scenario of 5-channel scanning or the data segment of channel 2 in the scenario of 3-channel scanning can be obtained. In some other embodiments, the frequency shifting unit 1 can also be used for signal processing of single-channel scanning.
[0232] The frequency shifting unit 2 can provide frequency shifting processing capability of -2.5MHz and -5MHz. Thus, the frequency shifting unit 2 can be used for frequency shifting processing of the input digital signal while moving the frequency domain. For example, the frequency shifting unit 2 can be used for processing of channel 4 in the scenario of 5-channel scanning, processing of channel 3 in the scenario of 4-channel scanning, processing of channel 3 in the scenario of 3-channel scanning, processing of channel 2 in the scenario of 2-channel scanning, etc. in the above example. Through frequency shifting processing, the frequency shifting unit 2 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.
[0233] The frequency shifting unit 3 can provide frequency shifting processing capability of 2.5MHz and 5MHz. In this way, similar to the frequency shifting unit 2, the frequency shifting unit 3 can be used to perform frequency shifting processing on the input digital signal while moving the frequency domain. For example, the frequency shifting unit 3 can be used for processing of channel 2 in the 5-channel scanning scenario, processing of channel 2 in the 4-channel scanning scenario, processing of channel 1 in the 3-channel scanning scenario, processing of channel 1 in the 2-channel scanning scenario, etc. in the above examples. Through frequency shifting processing, the frequency shifting 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 shifting unit 4 can provide frequency shifting processing capability of -7.5MHz and -10MHz. In this way, the frequency shifting unit 3 can also be used to perform frequency shifting processing on the input digital signal while moving the frequency domain. For example, the frequency shifting unit 4 can be used for processing of channel 5 in the 5-channel scanning scenario, processing of channel 4 in the 4-channel scanning scenario, etc. in the above examples. Through frequency shifting processing, the frequency shifting unit 4 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.
[0235] The frequency shifting unit 5 can provide frequency shifting processing capability of 7.5MHz and 10MHz. In this way, the frequency shifting unit 5 can also be used to perform frequency shifting processing on the input digital signal while moving the frequency domain. For example, the frequency shifting unit 5 can be used for processing of channel 1 in the 5-channel scanning scenario, processing of channel 4 in the 4-channel scanning scenario, etc. in the above examples. Through frequency shifting processing, the frequency shifting unit 4 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.
[0236] S8062, the mobile phone performs resampling processing on the second digital signal to obtain a third digital signal. The sampling frequency of the second digital signal is the first frequency, and the sampling frequency of the third digital signal is the second frequency. The first frequency is different from the second frequency.
[0237] In the embodiment of the present application, the mobile phone can first perform frequency shifting processing on the first digital signal, and then perform resampling processing on the digital signal after the frequency shifting processing. The resampling processing 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 processing meets the frequency requirement of the subsequent baseband module. After obtaining the second digital signal after the frequency shifting processing, the mobile phone performs resampling processing on the second digital signal of the first frequency by using the resampling unit, and can obtain the third digital signal of the second frequency.
[0238] Understandably, to ensure the accuracy of the digital processing, the modules or units in the baseband module that process digital signals (such as...) Figure 9 The frequencies of the filtering unit group, carrier sensing unit group, etc., in the baseband module need to match the sampling frequency of the analog-to-digital converter (ADC). For example, if the sampling frequency of the ADC is 80MHz, then the frequency of the module or unit in the baseband module that processes digital signals can also be 80MHz. However, in some cases, the sampling frequency of the ADC may differ from the frequency of the module or unit in the baseband module that processes digital signals. This allows for configuration such as... Figure 9 The resampling unit group shown converts the frequency of the first digital signal after analog-to-digital conversion to a frequency that satisfies the baseband module's requirements for digital signal processing, thereby ensuring the accuracy of digital processing.
[0239] For example, such as Figure 9 As shown, the resampling unit group of the mobile phone can include 5 sub-sampling units. The number of sub-sampling units is the same as the number of channel scans in one operation of the mobile phone; that is, when the number of channel scans in one operation is 5, the resampling unit group includes 5 sub-sampling units. Different sub-sampling units output a third digital signal at a second frequency. These 5 sub-sampling units can be represented as sub-sampling unit 1, sub-sampling unit 2, sub-sampling unit 3, sub-sampling unit 4, and sub-sampling unit 5, and the sampling bandwidth of these 5 sub-sampling units is 20MHz. The second frequency here can be the frequency used by the sub-filtering unit and the subcarrier sensing unit for subsequent processing of the digital signal.
[0240] Each sub-sampling unit can resample a second digital signal at a first frequency (e.g., 80MHz) to a third digital signal at a second frequency (e.g., 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 this embodiment, the sub-sampling unit's resampling of the frequency-shifted second digital signal may include: interpolation, at least one filtering operation, and at least one decimation operation.
[0242] In some embodiments, the sub-sampling unit may perform interpolation processing on the frequency-shifted second digital signal by a first multiple to obtain an interpolated digital signal. The first multiple is a first preset value, such as 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 at a second frequency. The decimation multiple is a second preset value, such as 20.
[0243] It should be explained that the sub-sampling unit performs an interpolation process on the second digital signal, and the interpolation process can obtain an approximately analog digital signal by increasing the sampling points. Then, the sub-sampling unit filters the interpolated digital signal to filter the noise introduced in the interpolation process. The sub-sampling unit decimates the filtered digital signal to reduce the operation amount by reducing the sampling frequency.
[0244] The following describes the resampling process of the sub-sampling unit on the frequency-shifted first digital signal by an example.
[0245] In a possible implementation, taking that the mobile phone scans channels 1 to 5 at a time as an example, the resampling process of each sub-sampling unit can include interpolation, filtering, and decimation, as shown in FIG. 2. Figure 12
[0246] Taking the resampling process of the sub-sampling unit 1 on the first digital signal as an example, the sub-sampling unit 1 of the mobile phone receives the second digital signal of the first frequency (for example, 80 MHz), and first performs interpolation on the 80 MHz second digital signal to obtain an interpolated digital signal. For example, the sub-sampling unit 1 inserts a plurality of sampling points in the second digital signal, so that the frequency of the second digital signal is 880 MHz. Generally, the interpolation process introduces noise into the digital signal, so that after the interpolation process, the sub-sampling unit 1 can further filter the interpolated digital signal to filter the noise introduced in the interpolation process to obtain a digital signal in which the noise is filtered. The filtering process does not change the sampling frequency of the digital signal, and the sampling frequency of the filtered digital signal is still 880 MHz. Further, the sub-sampling unit 1 decimates the 880 MHz digital signal by 20 times, that is, one sampling point of the digital signal is extracted from 20 sampling points of the digital signal, and a third digital signal of the second frequency (for example, 44 MHz) is output.
[0247] It should be explained that, Figure 12 The number of sampling points inserted by the sub-sampling unit in the interpolation process on the second digital signal and the decimation multiple in the decimation process are only exemplary descriptions, and 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, which is not limited herein.
[0248] For sub-sampling units 2 to 5, they can perform the same resampling process on the first digital signal after down-conversion as sub-sampling unit 1. The process by which sub-sampling units 2 to 5 resample the second digital signal after frequency shifting to obtain the third digital signal at the second frequency is not detailed here.
[0249] In addition, the baseband module of the mobile phone is equipped with 5 sub-sampling units. These 5 sub-sampling units convert the second digital signal at the first frequency into a third digital signal at the second frequency. By reducing the sampling frequency of the digital signal, the bandwidth of the subsequent filtering unit group is smaller, and the filtering unit group performs better filtering of the digital signal.
[0250] In other embodiments, the sub-sampling unit may perform one interpolation, multiple filtering, and multiple decimation processes on the frequency-shifted first digital signal. The product of the decimation factors in each decimation is a second preset value.
[0251] It should be explained that, compared to the sub-sampling unit performing one filtering and one decimation during the resampling process of the frequency-shifted second digital signal, the sub-sampling unit here performs multiple filtering and multiple decimation processes on the frequency-shifted second digital signal, making the resampling process of the digital signal by the sub-sampling unit easier to implement.
[0252] It is understood that, in this embodiment, since the sampling frequency of the analog-to-digital conversion unit is inconsistent with the frequency required by the baseband module, resampling can still be performed during the baseband module's processing of the first digital signal. Noise is typically introduced into the digital signal during resampling, therefore, filtering operations are also performed during resampling to filter out the noise introduced during the resampling process.
[0253] In this embodiment, the mobile phone can first resample the first digital signal, and then perform frequency shifting on the resampled digital signal. This resampling process can resample the first digital signal at a first frequency to a second frequency, so that the frequency of the resampled digital signal meets the requirements of the filtering unit in the subsequent baseband module.
[0254] For example, such as Figure 13 As shown, the baseband module of the mobile phone is equipped with a resampling unit. The resampling unit can resample the first digital signal, changing the sampling frequency of the first digital signal from a first frequency (e.g., the first frequency is 80MHz) to a second frequency (e.g., the second frequency is 44MHz). Here, the bandwidth for the resampling unit to sample the first digital signal is 40MHz.
[0255] In this example, the resampling unit can perform resampling on the first digital signal according to the process of the subsampling unit performing resampling on the second digital signal, which is not described herein again. After obtaining the digital signal of the second frequency, the mobile phone can perform frequency shifting on the digital signal of the second frequency to change the center frequency point of the digital signal of the second frequency to a preset center frequency point (for example, the preset center frequency point is 0). Here, the mobile phone can perform frequency shifting on the digital signal of the second frequency according to the process described in S8061, which is not described herein again.
[0256] S8063, the mobile phone performs filtering on the third digital signal to obtain a data segment corresponding to each channel in the M channels.
[0257] In the embodiment of the present application, the baseband module of the mobile phone can further include a filter unit group. The mobile phone can input the third digital signal of the second frequency to the filter unit group, and perform filtering on the third digital signal through the filter unit group. The filtering is used to filter out a data segment corresponding to each channel in the third digital signal. After filtering, the mobile phone can obtain a data segment corresponding to each channel in the M channels.
[0258] The process of the filter unit group performing filtering on the third digital signal to filter out a data segment corresponding to each channel can be referred to Figure 14 . As shown in Figure 14 , the filter unit group of the mobile phone can include a plurality of sub-filter units. Each sub-filter unit can be a low pass filter (LPF). The number of sub-filter units is the same as the number of one-time channel scanning, that is, when the number of one-time channel scanning of the mobile phone is 5, the filter unit group includes 5 sub-filter units. The 5 sub-filter units can be 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 one channel in the third digital signal. The effective bandwidth of one channel is 20MHz, so the passband of each sub-filter unit can also be set to 20MHz. The sampling frequency of the single-channel signal of one channel is 44MHz (an example of the second frequency).
[0260] The process of each sub-filter unit filtering out a data segment corresponding to one channel in the digital signal is described below through an example.
[0261] As shown in Figure 15As shown, for the sub-filter unit 1 (LPF1), the sub-filter unit 1 is used to filter out the data segment corresponding to channel 1. After the down-conversion processing, the center frequency of channel 1 is converted to -10 MHz. In this case, the mobile phone can set the pass band of the sub-filter unit 1 to -20 MHz to 0 MHz. After the sub-filter unit 1 filters the second digital signal, a data segment with a center frequency of -10 MHz and a bandwidth of 20 MHz is filtered out, which is the data segment corresponding to channel 1, referred to as data segment 1.
[0262] As shown, for the sub-filter unit 1 (LPF1), the sub-filter unit 1 is used to filter out the data segment corresponding to channel 1. After the down-conversion processing, the center frequency of channel 1 is converted to -10 MHz. In this case, the mobile phone can set the pass band of the sub-filter unit 1 to -20 MHz to 0 MHz. After the sub-filter unit 1 filters the second digital signal, a data segment with a center frequency of -10 MHz and a bandwidth of 20 MHz is filtered out, which is the data segment corresponding to channel 1, referred to as data segment 1.
[0263] As shown, for the sub-filter unit 1 (LPF1), the sub-filter unit 1 is used to filter out the data segment corresponding to channel 1. After the down-conversion processing, the center frequency of channel 1 is converted to -10 MHz. In this case, the mobile phone can set the pass band of the sub-filter unit 1 to -20 MHz to 0 MHz. After the sub-filter unit 1 filters the second digital signal, a data segment with a center frequency of -10 MHz and a bandwidth of 20 MHz is filtered out, which is the data segment corresponding to channel 1, referred to as data segment 1.
[0264] As shown, for the sub-filter unit 1 (LPF1), the sub-filter unit 1 is used to filter out the data segment corresponding to channel 1. After the down-conversion processing, the center frequency of channel 1 is converted to -10 MHz. In this case, the mobile phone can set the pass band of the sub-filter unit 1 to -20 MHz to 0 MHz. After the sub-filter unit 1 filters the second digital signal, a data segment with a center frequency of -10 MHz and a bandwidth of 20 MHz is filtered out, which is the data segment corresponding to channel 1, referred to as data segment 1.
[0265] As shown, for the sub-filter unit 1 (LPF1), the sub-filter unit 1 is used to filter out the data segment corresponding to channel 1. After the down-conversion processing, the center frequency of channel 1 is converted to -10 MHz. In this case, the mobile phone can set the pass band of the sub-filter unit 1 to -20 MHz to 0 MHz. After the sub-filter unit 1 filters the second digital signal, a data segment with a center frequency of -10 MHz and a bandwidth of 20 MHz is filtered out, which is the data segment corresponding to channel 1, referred to as data segment 1.
[0266] In the 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 the chip area, the mobile phone can only filter the noise and filter out the data segment corresponding to each channel through the filtering process of the resampling unit group. For example, the mobile phone filters the noise introduced in the multi-channel signal in 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, thereby achieving the filtering of the noise and the filtering out of the data segment corresponding to each channel. In this way, the process of channel scanning of the mobile phone can be simplified, and the chip area of the mobile phone can be saved.
[0267] S8064, the mobile phone performs carrier frame listening on the data segment corresponding to each channel to determine the target channel.
[0268] The target channel refers to a channel that transmits a signal using a target protocol type. For example, assuming that the target protocol type is the 802.11b protocol, the target channel can be a channel that transmits a signal using the 802.11b protocol. After obtaining the data segment corresponding to each channel, the mobile phone can identify the protocol type of each data segment. If the protocol type of a certain data segment is 802.11b in each data segment, it can be considered that the channel transmitting the data segment is the target channel.
[0269] Exemplarily, as shown in Figure 9 The baseband module of the mobile phone can include a carrier sensing unit group, which can perform clear channel assessment (CCA) on the five data segments to identify the target signal in the five data segments. The carrier sensing unit group can include a plurality of sub-sensing units, and the number of sub-sensing units is the same as the number of channel scanning of the mobile phone at a time. The plurality of sub-sensing units included in the carrier sensing unit group are sub-sensing unit 1 (which can be represented as CCA1), sub-sensing unit 2 (which can be represented as CCA2), sub-sensing unit 3 (which can be represented as CCA3), sub-sensing unit 4 (which can be represented as CCA4), and sub-sensing unit 5 (which can be represented as CCA5).
[0270] Each sub-sensing unit can perform clear channel assessment 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-sensing unit can perform preset Baker code identification on the data segment of the corresponding channel to determine whether the channel currently transmitting the signal is the target channel that transmits the signal 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 start position of the data frame carried by the data segment. If the carrier sensing unit identifies the preset Barker code in a data segment of a channel, it can be considered that the start position of a data frame encoded with the 802.11b protocol has been identified in that data segment. Furthermore, the mobile phone can read the information represented by the data frame from the target signal.
[0272] For example, sub-listening unit 1 can perform preset Barker code identification on the data segment of channel 1. Sub-listening unit 2 can perform preset Barker code identification on the data segment of channel 2. Sub-listening unit 3 can perform preset Barker code identification on the data segment of channel 3. Sub-listening unit 4 can perform preset Barker code identification on the data segment of channel 4. Sub-listening unit 5 can perform preset Barker code identification on the data segment of channel 5.
[0273] The following example illustrates the process by which a sub-listening unit performs preset Barker code identification on a corresponding data segment. Taking sub-listening unit 1 performing preset Barker code identification on a data segment (or data segment 1) of channel 1 as an example... Figure 16 As shown, sub-listening unit 1 can use multiple bits of data from data segment 1 as a detection window to perform a preset Barker code detection. After receiving data segment 1, sub-listening unit 1 can match the multiple bits of data from data segment 1 that have passed through the detection window with the preset Barker code, generating a correlation detection signal. This correlation detection signal indicates whether the multiple bits of data in the detection window match the preset Barker code. For example, if the correlation detection signal is high, it indicates that the multiple bits of data in the detection window match the preset Barker code. If the correlation detection signal is low, it indicates that the multiple bits of data in the detection window do 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 a 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. 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 incremented 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. If the count of the signal peak is greater than a preset value (e.g., the count of the signal peak is greater than 3), it can be considered that the preset Barker code has been identified in the data segment of channel 1, and channel 1 is the target channel.
[0275] Here, the detection window can slide backward by a preset sliding step. For example, the preset sliding step is 1 bit. In the first preset Barker code detection, the data of the detection window is the 1st bit to the 4th bit of the data segment. In the second preset Barker code detection, the data of the detection window is the 2nd bit to the 5th bit of the data segment. In this way, 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 a proper strength range, the mobile phone adjusts the gain of the radio frequency signals of the 5 channels according to the received signal strength indication (RSSI) of the target signal. In this way, by adjusting the radio frequency signals of the multiple channels received by the mobile phone according to the RSSI of the target signal, the signal strength of the target signal can be controlled within a proper signal strength range, thereby facilitating 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 segment of the multiple channels, the mobile phone can further acquire the RSSI of the target signal. The RSSI can be used to represent the signal strength of the received signal. If the RSSI value of the target signal is larger, it indicates that the signal strength of the target signal is larger. If the RSSI value of the target signal is smaller, it indicates that the signal strength of the target signal is smaller.
[0278] After the mobile phone acquires the received signal strength indication of the target signal, the mobile phone can adjust the gain of the radio frequency signals of the 5 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 a first preset strength value, it indicates that the RSSI value of the target signal is larger. In this case, the mobile phone reduces the gain of the radio frequency signals, so that the RSSI value of the next frame of the target signal acquired by the mobile phone becomes smaller. If the RSSI value of the target signal is less than or equal to a second preset strength value, it indicates that the RSSI value of the target signal is smaller. In this case, the mobile phone increases the gain of the radio frequency signals, so that the RSSI value of the next frame of the target signal acquired 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 indicates that the RSSI value of the target signal is appropriate. In this case, the mobile phone can not adjust the gain of the radio frequency signals, so that the next frame of the target signal acquired by the mobile phone remains within a proper 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. The specific values of the first preset strength value and the second preset strength value are not limited in the embodiments of the present application.
[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. As shown in FIG. 6, the baseband module of the mobile phone can also include a digital gain unit. After obtaining the target signal, the mobile phone can use the digital gain unit to control the gain of the target signal. For example, the mobile phone can increase the signal strength of the target signal to make the target signal easier to process. Figure 9
[0282] In the embodiments of the present application, the mobile phone controls the center frequency point of the mixing unit and the scanning bandwidth of the filter unit of the radio frequency module according to the scanning mode, enables the M signal processing links, receives the first sampling signal through the first antenna, performs radio frequency domain processing on the first sampling signal through the radio frequency module, obtains the second sampling signal, performs digital processing on the second sampling signal through the M signal processing links, and determines the target channel of the M channels corresponding to the second sampling signal that uses the preset target protocol type for data transmission. In this way, the mobile phone can control the center frequency point of the mixing unit and the scanning bandwidth of the filter unit of the radio frequency module according to the scanning mode to obtain a number of signals corresponding to the scanning mode, enable the signal processing links corresponding to the number of channels, and reduce the power consumption of the mobile phone when scanning multiple channels at a time. In addition, the mobile phone can simplify the process of performing channel scanning when scanning multiple channels at a time, which is conducive to improving the efficiency of connecting to a WiFi network.
[0283] It should be noted that when the number of channels scanned at a time corresponding to the scanning mode determined by the mobile phone is multiple in the above embodiments, the center frequency points of the channels obtained by the mobile phone after scanning multiple channels are shifted to the corresponding preset center frequency points after down-conversion processing. In this way, the center frequency points of the channels are shifted to the same preset center frequency point before the baseband module of the mobile phone performs digital processing on the digital signal. Then, the baseband module filters the digital signal through the sub-filter units configured in the same way to obtain the data segments corresponding to different channels.
[0284] In another embodiment, when the number of channels scanned at a time corresponding to the scanning mode determined by the mobile phone is multiple, the center frequency points of the channels obtained by the mobile phone after scanning multiple channels are shifted to the corresponding preset center frequency points after down-conversion processing. Then, the baseband module can not perform frequency shifting processing on the first digital signal after analog-to-digital conversion processing, but directly perform resampling processing on the first digital signal to obtain a digital signal of a second frequency, and then perform filtering processing on the digital signal of the second frequency through sub-filter units configured in different ways to obtain data segments corresponding to different channels. Here, the implementation process of the resampling processing and filtering processing of the baseband module on the digital signal can refer to the implementation process described above, which will not be described here. Figures 8 to 13
[0285] In the embodiment of the present application, when the number of channels corresponding to one scanning mode determined by the mobile phone is one, the control module of the mobile phone can control the center frequency point of the mixing unit in the radio frequency module to be 2.412 MHz, and control the scanning bandwidth of the filter unit to be 20 MHz, so as to scan the signal corresponding to channel 1. The control module of the mobile phone can also control one of the plurality of signal processing links to be powered on, so that the signal processing link performs digital processing on the signal corresponding to channel 1, to determine whether the channel 1 is the target channel.
[0286] The implementation process of the signal processing link for digital processing of the signal of channel 1 can refer to the implementation process of S8061 to S8064 described above, which will not be described here. Similarly, the process of processing the signals of channels 2 to 13 after the mobile phone scans channels 2 to 13 will not be described here.
[0287] It can be understood that, in order to implement the above functions, the electronic device and the like contain 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 the examples described in the embodiments disclosed in the present application, the embodiments of the present application can be realized in the form of hardware or a combination of hardware and computer software. Whether a certain function is executed in the form of hardware or computer software driven hardware depends on the specific application and design constraints of the technical solution. Professional technicians can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of the embodiments of the present application.
[0288] The embodiments of the present application can divide the functions of the electronic device and the like according to the above-mentioned method examples, for example, each function module can be divided according to each function, or two or more functions can be integrated in one processing module. The integrated module can be realized in the form of hardware or software function module. It should be noted that the division of modules in the embodiments of the present application is illustrative, and is only a logical function division. Actual implementation can have another division method.
[0289] In the case of dividing each function module according to each function, a possible composition schematic diagram of the electronic device involved in the above-mentioned embodiments can include a display unit, a transmission unit, a processing unit and the like. It should be noted that all related contents of each step involved in the above-mentioned method embodiments can be cited to the function description of the corresponding function module, which will not be described here.
[0290] The embodiment of the present application further provides an electronic device, comprising 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 configured to store computer program codes, the computer program codes comprising computer instructions, which, when executed by the one or more processors, cause the electronic device to perform the scanning control method in the above embodiment.
[0291] The embodiment of the present application further provides a computer readable storage medium, which stores computer instructions, and when the computer instructions are executed on an electronic device, the electronic device performs the scanning control method in the above embodiment.
[0292] The embodiment of the present application further provides a computer program product, which comprises computer instructions, and when the computer instructions are executed on an electronic device, the electronic device performs the scanning control method in the above embodiment.
[0293] In addition, the embodiment of the present application further provides a device, which can be a chip, a component or a module. The device can comprise a processor and a memory connected to each other. The memory is configured to store computer execution instructions. When the device is running, the processor can execute the computer execution instructions stored in the memory, so that the device performs the scanning control method performed by the electronic device in the above method embodiments.
[0294] The electronic device, the computer readable storage medium, the computer program product or the device provided by the embodiment can be used to execute the corresponding method provided above, and thus the beneficial effects thereof can refer to the beneficial effects of the corresponding method provided above, which will not be described herein.
[0295] Through the description of the above embodiments, those skilled in the art can clearly understand that, for the convenience and brevity of description, only the division of the above functional modules is taken as an example for illustration. In actual application, the above functions can be completed by different functional modules according to needs, 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 foregoing method embodiments, which will not be described herein.
[0296] The functional units in each embodiment of the present application can be integrated in one processing unit, or each unit can exist physically, or two or more units can be integrated in one unit. The integrated unit can be implemented in the form of hardware or software functional units.
[0297] The integrated unit, if implemented in the form of a software function unit and sold or used as an independent product, can be stored in a computer readable storage medium. Based on such understanding, the technical solutions of the embodiments of the present application essentially or say the part that contributes to the prior art or the whole or part of the technical solutions can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor to execute all or part of the steps of the methods described in the various embodiments of the present application. The aforementioned storage medium includes: a flash memory, a mobile hard disk, a read-only memory, a random access memory, a magnetic disk, or an optical disk, and various other media that can store program codes.
[0298] The above is merely specific embodiments of the present application, but the protection scope of the present application is not limited thereto, any change or replacement within the technical scope disclosed in the present application should be covered in the protection scope of the present application. Therefore, the protection scope of the present application should be subject to the protection scope of the claims.
Claims
1. A scanning control method characterized by comprising: The method is applied to an electronic device, the electronic device comprising a radio frequency module and a baseband module, the baseband module comprising at least two signal processing links, and the method comprising: The electronic device acquires a scanning mode, the scanning mode being used to indicate that the number of channels scanned at one time is M channels, M being an integer greater than 1; 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 the at least two signal processing links to enable power-on; The electronic device receives a first sampling signal through a first antenna, and acquires a second sampling signal through the radio frequency module working in the first working state, the frequency band of the second sampling signal comprising the frequency band of the M channels; The electronic device performs digital processing on the second sampling signal through the M signal processing links to determine whether a target channel is included in the M channels corresponding to the second sampling signal, the target channel being a channel used to transmit data using a preset target protocol type.
2. The method of claim 1, wherein, Before the electronic device controls the radio frequency module to work in the first working state according to the scanning mode, and controls M signal processing links in the at least two signal processing links to enable power-on, the method further comprises: 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 work in the first working state according to the first command stream, and controls M signal processing links in the at least two signal processing links to enable power-on according to the second command stream. The radio frequency module comprises a mixing unit and a filtering unit coupled with the mixing unit, the first command stream comprises a first command and a second command, The electronic device controls the center frequency point of the mixing unit to be a first frequency point according to the first command, the first frequency point being a center frequency point corresponding to the frequency band of the M channels; 3. The method of claim 2, wherein, The electronic device controls the scanning bandwidth of the filtering unit to be a first bandwidth according to the second command, the first bandwidth being a scanning bandwidth corresponding to the bandwidth 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, comprising: The electronic device configures the scanning bandwidth of the filtering unit to be the first bandwidth according to the second command. The filtering unit comprises a plurality of sub-filtering units, the scanning bandwidths of the plurality of sub-filtering units being 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, comprising:
4. The method of claim 3, wherein, The electronic device controls the sub-filtering unit with the scanning bandwidth of the first bandwidth to enable power-on according to the second command. 5. The method of claim 3, wherein, 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 acquires a second sampling signal through the radio frequency module operating in the first operating state, comprising: 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 the second sampling signal, and the radio frequency processing includes amplification processing, down-conversion processing and / or filtering processing.
7. The method of claim 6, wherein, 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 determines whether the target channel is included in the M channels corresponding to the second sampling signal through digital processing of the second sampling signal through the M signal processing links, wherein the target channel is a channel that uses a preset target protocol type for data transmission, comprising: The electronic device enables power-on of M signal processing links in the at least two signal processing links to enable the M signal processing links to perform digital processing on the first digital signal to determine whether the target channel is included in the M channels included in the first digital signal. 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 of claim 7, wherein, 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, The electronic device enables power-on of M signal processing links in the at least two signal processing links to enable the M signal processing links to perform digital processing on the first digital signal to determine whether the target channel is included in the M channels included in the first digital signal, comprising: For each signal processing link in the M signal processing links that is enabled to be powered on: The frequency shift unit performs frequency shift processing on the first digital signal; different frequency shift units included in different signal processing links perform frequency shift processing with different frequency shift lengths; The sub-filter unit performs filtering processing on the signal processed by the corresponding frequency shift unit to obtain a data segment corresponding to one channel; the sub-filter units included in different signal processing links have the same pass bandwidth; The CCA unit performs carrier sensing on the data segment of one channel obtained after filtering processing by the corresponding sub-filter unit to determine the target channel according to whether the data segment of the channel is transmitted by the target protocol type.
9. The method of claim 8, wherein, The CCA unit performs carrier sensing on the data segment of one channel obtained after filtering processing by the corresponding sub-filter unit to determine the target channel according to whether the data segment of the channel is transmitted by the target protocol type, comprising: The CCA unit in each of the signal processing links performs carrier sensing on a data segment corresponding to each channel to determine the target channel using a target protocol type according to a preset Baker code of the target protocol type.
10. The method according to any one of claims 1-9, characterized in that, The target protocol type is an 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 a working frequency band of the first antenna includes 2.4GHz-2.5GHz.
12. An electronic device, comprising: Comprise: a first antenna; a memory and one or more processors; The memory and the processor are coupled; wherein the memory has one or more computer programs stored therein, and the one or more computer programs comprise instructions which, when executed by the electronic device, cause the electronic device to perform the scan control method of any one of claims 1-11.
13. A computer-readable storage medium, characterized in that, Comprise computer instructions which, when executed on an electronic device, cause the electronic device to perform the scan control method of any one of claims 1-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