Signal processing method, electronic equipment and storage medium
By scanning multiple WiFi channels at a time, analog-to-digital conversion and resampling technology are used to improve the efficiency of WiFi connection and the speed of channel scanning, and solve the problems of long scanning time and large power consumption in the prior art.
Patent Information
- Application Number
- CN202311058002.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-08-21
- Publication Date
- 2025-02-28
Smart Images

Figure CN119545478A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of communication technology, and in particular, to a signal processing method, an electronic device, and a storage medium. Background Art
[0002] Wireless fidelity (WiFi) is a technology that can connect electronic devices such as personal computers and handheld devices (such as tablets and mobile phones) to each other wirelessly. Before connecting to WiFi, electronic devices will perform WiFi channel scanning to determine the WiFi channel to access.
[0003] However, when an electronic device scans a WiFi channel, it generally scans each channel one by one, that is, the channel scanning of the electronic device is usually single-channel scanning. Since the electronic device needs to scan each of the multiple channels separately, the scanning times are large, resulting in a long scanning time for the electronic device, a long time to connect to WiFi, and a large power consumption of the device. Summary of the invention
[0004] The embodiments of the present application provide a signal processing method, an electronic device, and a storage medium. The electronic device scans multiple channels at a time, thereby improving the channel scanning efficiency and further improving the efficiency of WiFi connection.
[0005] To achieve the above objectives, the embodiments of the present application adopt the following technical solutions:
[0006] In a first aspect, a signal processing method is provided, which is applied to an electronic device, wherein the frequency at which the electronic device performs digital processing on a digital signal is a first frequency, and the signal processing method may include:
[0007] A first sampling signal is acquired through a first antenna, wherein a frequency band of the first sampling signal includes frequency bands corresponding to at least two adjacent channels; an analog-to-digital conversion is performed on the first sampling signal to acquire a first digital signal, wherein the sampling frequency of the analog-to-digital conversion is a second frequency different from the first frequency; the first digital signal is resampled to acquire a second digital signal, wherein the frequency corresponding to the second digital signal is the first frequency; the second digital signal is digitally processed using the first frequency to acquire a data segment corresponding to each channel in at least two adjacent channels; and a data segment to be transmitted using a target protocol type is determined from the data segments corresponding to each channel in at least two adjacent channels.
[0008] Thus, the electronic device scans multiple channels at one time to determine the data segment transmitted using the target protocol type from the data segments corresponding to the multiple channels, thereby improving the efficiency of the electronic device in scanning channels, which is conducive to improving the rate at which the electronic device connects to WiFi and saving the power consumption of channel scanning. In addition, the electronic device converts the frequency of the digital signal into a frequency that satisfies the digital processing of the digital signal by resampling processing, solving the problem that the frequency used for analog-to-digital conversion processing is different from the frequency used by the baseband module to process the digital signal.
[0009] Optionally, the electronic device may include a baseband module, the baseband module may include a plurality of first digital processing links, each of the first digital processing links includes a subsampling unit; resampling the first digital signal to obtain the second digital signal may include:
[0010] The first digital signal is input into each sub-sampling unit for resampling processing to obtain a second digital signal.
[0011] The number of first digital processing links may be the number of channels scanned by the electronic device at one time. For example, when the electronic device scans 5 channels at one time, the baseband module may include 5 first digital processing links. Each first digital processing link includes a subsampling unit to obtain a second digital signal of the first frequency after resampling the first digital signal of the second frequency, so that the resampled frequency meets the frequency requirement of the baseband module when processing the digital signal.
[0012] Optionally, the electronic device includes a baseband module, the baseband module includes a resampling unit, and resampling the first digital signal to obtain the second digital signal includes:
[0013] The first digital signal is input into the resampling unit for resampling processing to obtain a second digital signal.
[0014] Here, the resampling unit resamples the first digital signal of the second frequency to obtain a second digital signal of the first frequency, so that the resampled frequency meets the frequency requirement of the baseband module when processing the digital signal.
[0015] Optionally, the resampling process may include one interpolation process, at least one filtering process and at least one decimation process, and the resampling process may include the following steps:
[0016] Performing interpolation processing of a first multiple on the first digital signal to obtain a third digital signal, wherein the first multiple is a first preset value;
[0017] The third digital signal is subjected to at least one filtering process and at least one decimation process to obtain a second digital signal.
[0018] Therefore, by performing interpolation processing, at least one filtering processing and at least one extraction processing on the first digital signal, the first digital signal of the second frequency is resampled to obtain the second digital signal of the first frequency, so that the resampled frequency meets the frequency requirement of the baseband module when processing the digital signal.
[0019] For example, the first preset value may be 11.
[0020] Optionally, when a decimation process is performed on the third digital signal, a decimation multiple of the decimation process is a second preset value;
[0021] When the decimation process is performed on the third digital signal for multiple times, the product value between the decimation multiples of each decimation process is a second preset value.
[0022] In one possible case, the resampling process may include: performing interpolation processing of a first multiple of the first digital signal to obtain a third digital signal; performing filtering processing on the third digital signal to obtain a filtered digital signal; and performing decimation processing on the filtered digital signal to obtain a second digital signal. For example, the decimation multiple of the decimation processing may be a second preset value.
[0023] In another possible case, the resampling process may also include: performing a first filtering process on the first digital signal to obtain a digital signal after the first filtering process; performing a first decimation process on the digital signal after the first filtering process to obtain a digital signal after the first decimation process; performing interpolation processing on the digital signal after the first decimation process to obtain an interpolation digital signal; performing a second filtering process on the digital signal after the interpolation process to obtain a second filtering process; performing a second decimation process on the digital signal after the second filtering process to obtain a second digital signal.
[0024] The product of the decimation multiple of the first decimation process and the decimation multiple of the second decimation process is the second preset value. Assuming that the second preset value is 20, the decimation multiple of the first decimation process can be 2 times, and the decimation multiple of the second decimation process can be 10 times. Alternatively, the decimation multiple of the first decimation process can be 4 times, and the decimation multiple of the second decimation process can be 5 times, and so on.
[0025] Optionally, each first digital processing link further includes a sub-filtering unit coupled to the sub-sampling unit, and a carrier sense CCA unit coupled to the sub-filtering unit;
[0026] Digitally processing the second digital signal using the first frequency to obtain a data segment corresponding to each channel in at least two adjacent channels includes:
[0027] The sub-filtering unit performs filtering processing on the second digital signal obtained by the corresponding sub-sampling unit to obtain a data segment corresponding to a channel; the passing bandwidth of the sub-filtering units included in different first digital processing links corresponds to different channels in at least two adjacent channels;
[0028] Determining, from data segments corresponding to each of at least two adjacent channels, a data segment to be transmitted using a target protocol type, includes:
[0029] The CCA unit performs carrier sensing on a data segment of a channel obtained after filtering by the corresponding sub-filtering unit to determine whether the data segment is transmitted through the target protocol type.
[0030] Therefore, the second digital signal is digitally processed by the sub-filter unit and the CCA unit in the first digital processing link, and the data segment corresponding to each channel is obtained from the second digital signal, and the data segment using the target protocol type is determined from the data segment corresponding to each channel.
[0031] Optionally, each first digital processing chain further includes a frequency shift unit coupled to the sub-sampling unit, a sub-filtering unit coupled to the sub-sampling unit, and a CCA unit coupled to the sub-filtering unit. Before the first digital signal is respectively input to each sub-sampling unit for resampling processing, the method further includes:
[0032] The frequency shift unit performs frequency shift processing on the first digital signal; when the frequency shift units included in different first digital processing links perform frequency shift processing, the corresponding frequency shift lengths are different, and the frequency shift lengths correspond to different channels in at least two adjacent channels;
[0033] Digitally processing the second digital signal using the first frequency to obtain a data segment corresponding to each channel in at least two adjacent channels includes:
[0034] The sub-filtering unit performs filtering processing on the second digital signal obtained by the corresponding sub-sampling unit to obtain a data segment corresponding to a channel; the passing bandwidth of the sub-filtering units included in different first digital processing links is the same;
[0035] Determining, from data segments corresponding to each of at least two adjacent channels, a data segment to be transmitted using a target protocol type, includes:
[0036] The CCA unit performs carrier sensing on a data segment of a channel obtained after filtering by the corresponding sub-filtering unit to determine whether the data segment is transmitted through the target protocol type.
[0037] Therefore, the frequency shifting units in different first digital links move the central frequency point of each channel to a preset central point, and the same pass bandwidth is set in subsequent sub-filtering units.
[0038] Optionally, the baseband module further includes a plurality of second digital processing links, each of which includes a sub-filtering unit, a CCA unit coupled to the sub-filtering unit,
[0039] Digitally processing the second digital signal using the first frequency to obtain a data segment corresponding to each channel in at least two adjacent channels includes:
[0040] The sub-filtering unit performs filtering processing on the second digital signal acquired by the resampling unit to obtain a data segment corresponding to a channel; the passing bandwidth of the sub-filtering units included in different second digital processing links corresponds to different channels in at least two adjacent channels;
[0041] Determining, from data segments corresponding to each of at least two adjacent channels, a data segment to be transmitted using a target protocol type, includes:
[0042] The CCA unit performs carrier sensing on a data segment of a channel obtained after filtering by the corresponding sub-filtering unit to determine whether the data segment is transmitted through the target protocol type.
[0043] Therefore, the second digital signal is digitally processed by the sub-filter unit and the CCA unit in the second digital processing link, and the data segment corresponding to each channel is obtained from the second digital signal, and the data segment using the target protocol type is determined from the data segment corresponding to each channel.
[0044] Optionally, each second digital processing chain further includes a frequency shift unit coupled to the sub-filtering unit, a sub-filtering unit coupled to the frequency shifting unit, and a CCA unit coupled to the sub-filtering unit. After the first digital signal is input to the resampling unit for resampling processing to obtain the second digital signal, the method further includes:
[0045] The frequency shift unit performs frequency shift processing on the second digital signal; when the frequency shift units included in different second digital processing links perform frequency shift processing, the corresponding frequency shift lengths are different, and the frequency shift lengths correspond to different channels in at least two adjacent channels;
[0046] Digitally processing the second digital signal using the first frequency to obtain a data segment corresponding to each channel in at least two adjacent channels includes:
[0047] The sub-filtering unit performs filtering processing on the second digital signal after the frequency shift processing to obtain a data segment corresponding to a channel; the passing bandwidth of the sub-filtering units included in different second digital processing links is the same;
[0048] Determining, from data segments corresponding to each of at least two adjacent channels, a data segment to be transmitted using a target protocol type, includes:
[0049] The CCA unit performs carrier sensing on a data segment of a channel obtained after filtering to determine whether the data segment is transmitted through a target protocol type.
[0050] Therefore, the frequency shifting units in different second digital links move the central frequency point of each channel to a preset central point, and the same pass bandwidth is set in subsequent sub-filtering units.
[0051] Optionally, the electronic device may further include a radio frequency module. After acquiring the first sampling signal through the first antenna, the signal processing method may further include:
[0052] The radio frequency module performs down-conversion processing on the first sampling signal so that the center frequency point of the first sampling signal after the down-conversion processing is a preset center frequency point.
[0053] Optionally, acquiring a first sampling signal through a first antenna includes:
[0054] The first antenna is controlled to receive electromagnetic waves of at least two adjacent channels, and the electromagnetic waves of at least two adjacent channels are converted into a first analog signal; the first analog signal is subjected to radio frequency processing to obtain a first sampling signal, wherein the radio frequency processing includes amplification processing and / or filtering processing.
[0055] Optionally, determining, from data segments corresponding to each of the at least two adjacent channels, a data segment to be transmitted using the target protocol type includes:
[0056] Carrier sensing is performed on the data segments corresponding to each channel of at least two adjacent channels to determine the data segments transmitted using the target protocol type from the data segments corresponding to each channel according to the Baker code of the target protocol type preset in the electronic device.
[0057] Thus, the electronic device performs carrier sensing on the data segment of each channel and determines the data segment transmitted using the target protocol type.
[0058] Optionally, the target protocol type is 802.11b protocol.
[0059] Optionally, the first antenna is a WiFi antenna, and an operating frequency band of the first antenna includes 2.4 GHz-2.5 GHz.
[0060] In a second aspect, the present application provides an electronic device, comprising: a first antenna; a memory and one or more processors; the memory is coupled to the processor; and a baseband chip; wherein the memory stores one or more computer programs, and the one or more computer programs include instructions, which, when executed by the electronic device, enable the electronic device to perform a method as described in any one of the above-mentioned first aspects.
[0061] In a third aspect, the present application provides a computer-readable storage medium, in which instructions are stored. When the instructions are executed on an electronic device, the electronic device executes the method as described in any one of the first aspects.
[0062] In a fourth aspect, the present application provides a computer program product, which includes computer instructions. When the computer instructions are executed on an electronic device, the electronic device executes the method as described in any one of the first aspects.
[0063] It can be understood that the electronic device described in the second aspect, the computer storage medium described in the third aspect, and the computer program product described in the fourth aspect are all used to execute the corresponding methods provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding methods provided above and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0064] Figure 1 A schematic diagram of each channel in the 2.4 GHz frequency band of WiFi communication provided in an embodiment of the present application;
[0065] Figure 2 A schematic diagram of an electronic device performing 2.4G WiFi channel scanning provided by an embodiment of the present application;
[0066] Figure 3 A schematic diagram of the hardware composition of an electronic device provided in an embodiment of the present application;
[0067] Figure 4 An example diagram of an electronic device scanning multiple channels provided in an embodiment of the present application;
[0068] Figure 5 Schematic diagram of an electronic device scanning 5 channels at a time provided in an embodiment of the present application Figure 1 ;
[0069] Figure 6 Schematic diagram of an electronic device scanning 5 channels at a time provided in an embodiment of the present application Figure 2 ;
[0070] Figure 7 A schematic diagram of down-converting a signal provided in an embodiment of the present application;
[0071] Figure 8 A flowchart of an example of a signal processing method provided in an embodiment of the present application;
[0072] Fig. 9 A schematic diagram of an example of module interaction for signal processing provided in an embodiment of the present application;
[0073] Fig.10 An example diagram of filtering out data segments corresponding to each channel after filtering according to an embodiment of the present application;
[0074] Fig.11 A flowchart of a resampling processing example provided in an embodiment of the present application;
[0075] Fig.12 A flowchart of another resampling processing example provided in an embodiment of the present application;
[0076] Fig.13 An example diagram of filtering out data segments corresponding to each channel provided in an embodiment of the present application;
[0077] Fig.14 Another example diagram of filtering out data segments corresponding to each channel provided in an embodiment of the present application;
[0078] Fig.15 A schematic diagram of an example of preset Barker code recognition provided in an embodiment of the present application;
[0079] Fig.16 A flowchart of another example of a signal processing method provided in an embodiment of the present application;
[0080] Fig.17 A schematic diagram of another example of module interaction for signal processing provided in an embodiment of the present application. DETAILED DESCRIPTION
[0081] The technical solution in the embodiment of the present application will be described below in conjunction with the drawings in the embodiment of the present application. In the description of the embodiment of the present application, unless otherwise specified, " / " means or, for example, A / B can mean A or B; "and / or" in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships, for example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone.
[0082] In the following, the terms "first" and "second" are used for descriptive purposes only and are not to be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features. In the description of the embodiments of the present application, unless otherwise specified, "plurality" means two or more.
[0083] In the embodiments of the present application, words such as "for example" or "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design described as "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.
[0084] At present, most electronic devices with wireless communication functions can perform WiFi communication. The frequency band used for WiFi communication may include a 2.4 GHz frequency band and a 5 GHz frequency band. The frequency band used for WiFi communication is usually divided into multiple channels. The following embodiments are all introduced by taking the frequency band used for WiFi communication as the 2.4 GHz frequency band as an example. For the specific implementation when the frequency band used for WiFi communication is the 5 GHz frequency band, reference can be made to the specific implementation when the frequency band used for WiFi communication is the 2.4 GHz frequency band, which will not be described one by one.
[0085] Taking the 2.4 GHz frequency band used for WiFi communication as an example, the 2.4 GHz frequency band used for WiFi communication ranges from 2.4 GHz to 2.497 GHz. Figure 1 As shown, the 2.4 GHz frequency band can be divided into 14 channels. These 14 channels can be sorted from low to high according to the frequency band covered by the channel, and are represented as channel 1, channel 2, channel 3, ..., channel 14. Among them, channel 1 to channel 13 are commonly used 2.4 GHz WiFi channels.
[0086] In channels 1 to 13, the bandwidth of each channel is 22MHz. The frequency spacing between two adjacent channels is 5MHz. For example, the frequency band covered by channel 1 is 2401MHz to 2423MHz. The frequency band covered by channel 2 is 2406MHz to 2428MHz. And so on.
[0087] It should be noted that, among channels 1 to 13, the frequency bands covered by two or more adjacent channels may partially overlap. Figure 1 As shown, the coverage frequency bands of channel 1, channel 2, channel 3, channel 4, and channel 5 all overlap.
[0088] In addition, the center frequency of each of the channels 1 to 13 is different. Figure 1 In the example shown, the center frequency of each channel is also shown. Figure 1As 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.
[0089] Electronic devices can access the WiFi network through channel scanning to achieve WiFi network communication between devices. The following is an example to introduce the process of 2.4G WiFi channel scanning by electronic devices.
[0090] like Figure 2 As shown, the electronic device may include an antenna module, a radio frequency module and a baseband module. Among them, the antenna module may include one or more antennas, the working frequency band of the antenna may cover the 2.4GHz frequency band, and the antenna may be used to receive WiFi signals. The antenna module may convert the received WiFi signal into an analog signal and transmit it to the radio frequency module, so that the radio frequency module performs radio frequency domain processing on the WiFi signal. For example, the radio frequency module may amplify, filter and other radio frequency domain processing on the WiFi signal. The radio frequency module may also perform analog-to-digital conversion on the WiFi signal after radio frequency domain processing, convert the WiFi signal after radio frequency domain processing into a digital signal and transmit it to the baseband module for digital processing. The baseband module may parse the received WiFi signal to obtain the information carried in the WiFi signal. Among them, the parsing processing performed by the baseband module may include preamble parsing, frame header parsing, etc.
[0091] It is understandable that the signals received by the electronic device in different channels may be transmitted using different protocol types. For example, in wireless communication in the 2.4 GHz frequency band, the protocol types that may be used when transmitting signals include 802.11, 802.11a, 802.11b, 802.11g, 802.11n, 802.11ax, etc. When communicating based on different protocol types, the leading and frame header data of the transmitted data may be different.
[0092] After the baseband module parses and processes the received WiFi signal, the baseband module can determine whether the protocol type of the WiFi signal received by the baseband module is the target protocol type (for example, 802.11b) based on the leading and frame header data obtained from the parsing, so as to determine whether to access the WiFi network through the channel corresponding to the WiFi signal.
[0093] That is, when the electronic device determines whether the protocol type used by each WiFi signal in the current environment is the target protocol type, it can parse the WiFi signal received on each channel to determine the WiFi signal transmitted using the target protocol type based on the preamble and frame header data of the WiFi signal received on each channel obtained by parsing. For example, the electronic device scans channels 1 to 13 in sequence to determine the required WiFi signal in the WiFi signals received on each channel, which results in the electronic device scanning channels more times, a longer scanning time, and higher power consumption of the device.
[0094] In addition, the sampling frequency of the electronic device for analog-to-digital conversion of signals may be different from the frequency used by the baseband module to process digital signals, resulting in the baseband module being unable to perform corresponding processing on the digital signals after analog-to-digital conversion.
[0095] In order to solve the above problems, the present application provides a signal processing method, in which an electronic device can scan multiple channels at one time, obtain the first sampling signals of multiple channels at one time, perform analog-to-digital conversion processing on the first sampling signal, obtain the first digital signal of the second frequency, and then resample the first digital signal of the second frequency to obtain the second digital signal of the first frequency, and then digitally process the second digital signal of the first frequency to obtain the data segment corresponding to each channel. Further, the electronic device determines the data segment transmitted using the target protocol type from the data segment corresponding to each channel. In this way, the electronic device scans multiple channels at one time to determine the data segment transmitted using the target protocol type from the data segments corresponding to the multiple channels, thereby improving the efficiency of the electronic device scanning the channel, which is conducive to improving the rate at which the electronic device connects to WiFi, and saving the power consumption of the channel scanning. In addition, the electronic device converts the frequency of the digital signal into a first frequency that satisfies the digital processing of the digital signal by resampling processing, solving the problem that the frequency used for analog-to-digital conversion processing is different from the frequency used by the baseband module to process the digital signal.
[0096] It should be noted that the solution provided in the embodiment of the present application can be applied to electronic devices. The electronic device may include a mobile phone, a foldable electronic device, a tablet computer, a desktop computer, a laptop computer, a handheld computer, a notebook computer, an ultra-mobile personal computer (ultra-mobile personal computer, UMPC), a netbook, a cellular phone, a personal digital assistant (personal digital assistant, PDA), an augmented reality (augmented reality, AR) device, a virtual reality (virtual reality, VR) device, an artificial intelligence (artificial intelligence, AI) device, a wearable device, a vehicle-mounted device, a smart home device, or at least one of a smart city device. The embodiment of the present application does not impose any special restrictions on the specific type of the electronic device.
[0097] In the present application, the electronic device may have a WiFi communication capability of the 2.4 GHz band or the 5 GHz band. The 2.4 GHz band may include Figure 1 For example, the 2.4 GHz frequency can be as follows: Figure 1 In other embodiments, the electronic device can also perform parallel scanning, reception and processing of multiple channels based on the solution provided in the embodiments of the present application, and quickly determine the channel using the target protocol type (such as 802.11b protocol) by synchronously parsing each channel.
[0098] As an example, Figure 3 A schematic diagram of the hardware composition of an electronic device provided in an embodiment of the present application.
[0099] like Figure 3As shown, the electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, etc.
[0100] It is to be understood that the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may include more or fewer components than shown in the figure, or combine some components, or split some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.
[0101] The processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (AP), a modem processor, a graphics processor (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Different processing units may be independent devices or integrated into one or more processors.
[0102] The controller may be the nerve center and command center of the electronic device 100. The controller may generate an operation control signal according to the instruction operation code and the timing signal to complete the control of fetching and executing instructions.
[0103] The processor 110 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may store instructions or data that the processor 110 has just used or cyclically used. If the processor 110 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.
[0104] In some embodiments, the processor 110 may include one or more interfaces. The interface may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface, etc.
[0105] It is understandable that the interface connection relationship between the modules illustrated in the embodiment of the present application is only a schematic illustration and does not constitute a structural limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.
[0106] The wireless communication function of the electronic device 100 can be implemented through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor and the baseband processor.
[0107] In the embodiment of the present application, the antenna 1 and the antenna 2 of the electronic device 100 can be arranged in the antenna module, and the electronic device 100 can receive the first sampling signal through the antenna 1 or the antenna 2. The frequency band of the first sampling signal includes the frequency band corresponding to at least two adjacent channels. That is, the first antenna in the present application can be the antenna 1 or the antenna 2.
[0108] Among them, the modem processor can be set in the radio frequency module, and the radio frequency module is used to perform radio frequency domain processing such as amplification and filtering on the first sampling signal.
[0109] The baseband processor in the embodiment of the present application may be a baseband module, which is used to implement digital processing of signals to determine data segments to be transmitted using a target protocol type from data segments of multiple channels.
[0110] Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in electronic device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve the utilization of antennas. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In some other embodiments, the antenna can be used in combination with a tuning switch.
[0111] The mobile communication module 150 can provide solutions for wireless communications including 2G / 3G / 4G / 5G, etc., applied to the electronic device 100. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves from the antenna 1, and filter, amplify, and process the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modulation and demodulation processor, and convert it into electromagnetic waves for radiation through the antenna 1. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the same device as at least some of the modules of the processor 110.
[0112] The modem processor may include a modulator and a demodulator. Among them, the modulator is used to modulate the low-frequency baseband signal to be sent into a medium-high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After the low-frequency baseband signal is processed by the baseband processor, it is passed to the application processor. The application processor outputs a sound signal through an audio device (not limited to a speaker 170A, a receiver 170B, etc.), or displays an image or video through a display screen 194. In some embodiments, the modem processor may be an independent device. In other embodiments, the modem processor may be independent of the processor 110 and be set in the same device as the mobile communication module 150 or other functional modules.
[0113] The wireless communication module 160 can provide wireless communication solutions including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), etc., which are applied to the electronic device 100. The wireless communication module 160 can be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, modulates the frequency of the electromagnetic wave signal and performs filtering, and sends the processed signal to the processor 110. The wireless communication module 160 can also receive the signal to be sent from the processor 110, modulate the frequency of it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.
[0114] In some embodiments, the antenna 1 of the electronic device 100 is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, so that the electronic device 100 can communicate with the network and other devices through wireless communication technology. The wireless communication technology may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), wideband code division multiple access (WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC, FM, and / or IR technology, etc. GNSS may include the global positioning system (GPS), the global navigation satellite system (GLONASS), the Beidou navigation satellite system (BDS), the quasi-zenith satellite system (QZSS) and / or the satellite based augmentation system (SBAS).
[0115] The electronic device 100 implements the display function through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing, which connects the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
[0116] The electronic device 100 can realize the shooting function through ISP, camera 193, video codec, GPU, display screen 194 and application processor.
[0117] The digital signal processor is used to process digital signals, and can process not only digital image signals but also other digital signals. For example, when the electronic device 100 is selecting a frequency point, the digital signal processor is used to perform Fourier transform on the frequency point energy.
[0118] Video codecs are used to compress or decompress digital videos. The electronic device 100 may support one or more video codecs. Thus, the electronic device 100 may play or record videos in a variety of coding formats, such as Moving Picture Experts Group (MPEG) 1, MPEG2, MPEG3, MPEG4, etc.
[0119] NPU is a neural network (NN) computing processor. By drawing on the structure of biological neural networks, such as the transmission mode between neurons in the human brain, it can quickly process input information and can also continuously self-learn. Through NPU, applications such as intelligent cognition of electronic device 100 can be realized, such as image recognition, face recognition, voice recognition, text understanding, etc.
[0120] The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100. The external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function, such as storing music, video and other files in the external memory card.
[0121] The internal memory 121 can be used to store computer executable program codes, and the executable program codes include instructions. The processor 110 executes various functional applications and data processing of the electronic device 100 by running the instructions stored in the internal memory 121. The internal memory 121 may include a program storage area and a data storage area. Among them, the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc. The data storage area may store data created during the use of the electronic device 100 (such as audio data, a phone book, etc.), etc. In addition, the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc.
[0122] The electronic device 100 can implement audio functions such as music playing and recording through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone jack 170D, and the application processor.
[0123] It should be noted that the structure illustrated in the embodiments of the present application does not constitute a specific limitation on the electronic device. In other embodiments of the present application, the electronic device may include more or fewer components than shown in the figure, or combine certain components, or split certain components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.
[0124] The following Figure 3 Taking the composition of the electronic device shown as an example, the specific implementation of multi-channel scanning by the electronic device is illustrated.
[0125] Take the example of an electronic device scanning five adjacent channels at a time. Figure 4 As shown, the electronic device may include an antenna module, a radio frequency module, an analog-to-digital conversion unit and a baseband module. The baseband module may include a frequency shift unit group, a filter unit group and a carrier sensing unit group.
[0126] The RF module receives the multi-channel antenna signal obtained by the electronic device after scanning multiple channels through the antenna module at one time, performs down-conversion processing on the multi-channel antenna signal, and transmits the multi-channel antenna signal after down-conversion processing to the analog-to-digital conversion unit. The multi-channel antenna signal is an analog signal.
[0127] The RF module performs down-conversion processing on the multi-channel antenna signal, and transforms the center frequency of the multi-channel antenna signal into a preset center frequency.
[0128] The analog-to-digital conversion unit converts the multi-channel antenna signal after down-conversion processing into a digital signal, which is a digital signal of multiple channels, and the digital signal of multiple channels can be referred to as a multi-channel digital signal. Further, the analog-to-digital conversion unit transmits the multi-channel digital signal to the baseband module.
[0129] In the embodiment of the present application, the analog-to-digital conversion unit can be set in the RF module, or in the baseband module, or independently outside the RF module and the baseband module. The embodiment of the present application does not limit the location of the analog-to-digital conversion unit in the electronic device.
[0130] In some embodiments, the frequency shift unit group can be implemented by a frequency shift unit. Figure 4 The frequency shift unit group shown in the figure may include frequency shift units 1 to 5. The frequency shift capabilities of different frequency shift units are relatively fixed, and when the frequency shift units of different paths are powered on, corresponding frequency shift processing can be implemented on different paths.
[0131] The filtering unit group is used to filter the frequency-shifted multi-channel digital signal, so as to obtain data segments corresponding to two or more channels included in the multi-channel digital signal based on the frequency-shifted multi-channel digital signal.
[0132] Exemplarily, the filter unit group is composed of a plurality of sub-filter units. The number of sub-filter units may correspond to the frequency shift unit group. For example, the number of sub-filter units may be the same as the number of frequency shift units. In some implementations, the passbands of the sub-filter units may be the same.
[0133] In some embodiments, the filter unit group can be implemented by a plurality of low-pass filters (LPF) having the same pass frequency band. Figure 4 As shown, the filter unit group may include LPF1 to LPF5. In different embodiments, the LPF may adopt a finite impulse response (FIR) filter and / or an infinite impulse response (IIR) filter.
[0134] The carrier sensing unit group may include two or more clear channel assessment (CCA) units, wherein the CCA unit may be used to determine the data segment of the channel transmitted using the target protocol type from the data segments corresponding to the two or more channels.
[0135] In some embodiments of the present application, the number of CCAs in the carrier sensing unit group may be the same as the number of frequency shift units in the frequency shift unit group and / or the number of LPFs in the filter unit group. At the same time, a frequency shift unit, an LPF, and a CCA may implement the function of screening and carrier sensing from a multi-channel signal to determine whether a data segment corresponding to a channel is a target channel. In the present application, the CCA, LPF, and frequency shift unit used to process a channel may constitute a digital processing link.
[0136] like Figure 4 As shown, the frequency shift unit group may include frequency shift units 1 to 5, and LPF1 to LPF5 correspond to frequency shift units 1 to 5 respectively. Each LPF may be coupled to a CCA. For example, LPF1 is coupled to CCA1, LPF2 is coupled to CCA2, LPF3 is coupled to CCA3, LPF4 is coupled to CCA4, and LPF5 is coupled to CCA5. Thus, the matching process of each data segment is realized through CCA to determine whether there is a target channel.
[0137] In the present application, each sub-filtering unit and a frequency shifting unit may form a digital processing link, and the digital processing link may be used to separate and obtain a data segment corresponding to a channel from data segments corresponding to multi-channel signals.
[0138] The frequency shift unit 1 and the LPF 1 may constitute a digital processing link, which is used to separate and obtain a data segment corresponding to one channel from data segments corresponding to multi-channel signals.
[0139] Similarly, frequency shift unit 2, LPF2 and CCA2 can constitute a digital processing link, frequency shift unit 3, LPF3 and CCA3 can constitute a digital processing link, frequency shift unit 4, LPF4 and CCA4 can constitute a digital processing link, and frequency shift unit 5, LPF5 and CCA5 can constitute a digital processing link.
[0140] In addition, in the present application, each digital processing link may correspond to a CCA identifier. The CCA identifier may be implemented by a high level / low level, or 0 / 1. The CCA identifier may be used to indicate whether the data segment processed on the current digital processing link is data transmitted via the target protocol type.
[0141] Take the CCA mark as an example, which is implemented through high level / low level.
[0142] When the CCA flag is high, it indicates that the data segment / the channel of the data segment obtained by the current digital processing link screening uses the target protocol type. Correspondingly, when the CCA flag is low, it indicates that the data segment / the channel of the data segment obtained by the current digital processing link screening does not use the target protocol type.
[0143] Take the implementation of CCA identification through 0 / 1 as an example.
[0144] When the CCA flag is 1, it indicates that the data segment / the channel of the data segment obtained by the current digital processing link screening uses the target protocol type. Correspondingly, when the CCA flag is 0, it indicates that the data segment / the channel of the data segment obtained by the current digital processing link screening does not use the target protocol type.
[0145] like Figure 4 As shown, the electronic device may further include a parsing module, a calculating module and a gain adjusting unit.
[0146] The parsing module may determine the channel of the data segment corresponding to the digital processing link with CCA identification 1 as the target channel. The parsing module may also parse the data segment of the target channel and other data received on the target channel according to the target protocol type, thereby obtaining valid data sent through the target channel.
[0147] The calculation module can determine the channel of the data segment corresponding to the digital processing link with CCA identification 1 as the target channel. The calculation module can also be used to calculate the digital average power of the target channel according to the data segment corresponding to the target channel. The digital average power value can be used to adjust the gain of the RF module during the amplification process (such as automatic gain control (AGC)).
[0148] The calculation module can also be used to calculate the signal reception strength corresponding to the antenna signal of the target channel when the antenna module receives the antenna signal of the target channel according to the data segment of the target channel and the AGC gain of the RF module after the digital average power adjustment. The signal reception strength obtained by the calculation can be used to judge the current communication quality, display it separately, filter the target data segment from multiple successfully matched data segments and then determine the target channel. The gain adjustment unit can obtain the multi-channel digital signal output by the analog-to-digital conversion unit and the target signal output by the carrier sensing unit. The gain adjustment unit can adjust the gain of the analog RF signal according to the multi-channel digital signal and the target signal, so that the signal size of the analog RF signal is within an appropriate range.
[0149] It is to be understood that the above examples are only illustrative of the implementation process of the multi-channel scanning provided by the embodiments of the present application. In some implementations, each unit in the RF module and each unit in the baseband module can be adaptively increased or decreased, and the order of each unit can also be changed. Each module or unit can be flexibly configured according to actual needs or application scenarios, and the embodiments of the present application do not limit this. For example, in some implementations, the baseband module of the mobile phone may include a DC filtering unit. The DC filtering unit can be used to filter out the DC signal in the multi-channel digital signal after receiving the multi-channel digital signal sent by the analog-to-digital conversion unit.
[0150] In an embodiment of the present application, the electronic device can scan multiple channels at one time, and obtain signals of multiple channels by receiving a signal once. For example, the electronic device can scan 2, 3, 4, or 5 channels at one time. Correspondingly, the electronic device can receive signals of 2, 3, 4, or 5 channels at one time.
[0151] The following is an example of an electronic device scanning five channels in the 2.4GHz frequency band at one time and acquiring signals from the five channels, to illustrate the implementation process of an electronic device scanning multiple channels at one time. Taking the scanning bandwidth as 40MHz as an example, the electronic device can complete the scanning of the entire 2.4G frequency band through three scanning processes.
[0152] like Figure 5As shown, the electronic device can first scan channels 1 to 5 once to implement the first channel scan. Then, the electronic device scans channels 5 to 9 again to implement the second channel scan. Finally, the electronic device scans channels 9 to 13 once to implement the third channel scan. It can be seen that the electronic device only needs to perform 3 scans to scan all channels. If the electronic device only scans 1 channel each time, then the electronic device needs to perform 13 scans to scan all channels, that is, scan from channel 1 to channel 13 in sequence. It can be seen that the electronic device scanning multiple channels at a time can reduce the number of channel scans and improve the efficiency of channel scanning.
[0153] like Figure 5 As shown, the frequency band A1 of the first channel scan of the electronic device may be 2402 MHz to 2442 MHz, and the frequency band A1 can completely cover channels 1 to 4. In addition, the frequency band of channel 5 is 2421 MHz to 2443 MHz. Therefore, the frequency band A1 can also cover most of the frequency band of channel 5. The central frequency point of the frequency band A1 may be 2422 MHz.
[0154] like Figure 5 As shown, the frequency band A2 of the second channel scan of the electronic device may be 2422 MHz to 2462 MHz, and the frequency band A2 can completely cover channels 5 to 8. In addition, the frequency band of channel 9 is 2441 MHz to 2463 MHz. Therefore, the frequency band A2 can also cover most of the frequency band of channel 9. The central frequency point of the frequency band A2 may be 2442 MHz.
[0155] like Figure 5 As shown, the frequency band A3 of the third channel scan of the electronic device may be 2442 MHz to 2482 MHz, and the frequency band A3 can completely cover channels 9 to 12. In addition, the frequency band of channel 13 is 2461 MHz to 2483 MHz. Therefore, the frequency band A3 can also cover most of the frequency band of channel 13. The central frequency point of the frequency band A3 may be 2462 MHz.
[0156] For example, Figure 6 As shown, when the electronic device scans 5 channels of the 2.4 GHz frequency band at one time and obtains signals of the 5 channels, the electronic device can also complete the scanning of the entire 2.4G frequency band through two scanning processes.
[0157] like Figure 6 As shown, the frequency band B1 of the first channel scan of the electronic device may be 2402 MHz to 2442 MHz, and the frequency band B1 can completely cover channels 1 to 4. In addition, the frequency band B1 can also cover most of the frequency band of channel 5, and part of the frequency bands of channels 6, 7, and 8. The center frequency point of the frequency band B1 may be 2422 MHz.
[0158] like Figure 6 As shown, the frequency band B2 of the second channel scan of the electronic device may be 2442 MHz to 2482 MHz, and the frequency band B2 may completely cover channels 9 to 13. In addition, the frequency band B2 may also cover a small portion of the frequency band of channel 5, and another portion of the frequency band covering channels 6, 7, and 8. The central frequency point of the frequency band B2 may be 2462 MHz.
[0159] In an embodiment of the present application, the electronic device can determine the number of channels to be scanned at one time according to the scanning mode issued by the upper layer (e.g., the application layer or the application framework layer). Optionally, when the electronic device receives a user operation indicating a WiFi connection, the electronic device scans multiple channels at one time to determine idle channels among the multiple channels, and then the upper layer of the electronic device counts the number of idle channels and adjusts the number of channels to be scanned at one time according to the number of idle channels.
[0160] It can be understood that different scanning modes correspond to different numbers of channels scanned at one time. For example, scanning mode 1 corresponds to 1 channel for one scan. When the electronic device executes scanning mode 1, channel 1 is scanned for the first time; scanning mode 2 corresponds to 2 channels for one scan. When the electronic device executes scanning mode 2, channels 1 to 2 are scanned for the first time; scanning mode 3 corresponds to 3 channels for one scan. When the electronic device executes scanning mode 3, channels 1 to 3 are scanned for the first time; scanning mode 4 corresponds to 4 channels for one scan. When the electronic device executes scanning mode 4, channels 1 to 4 are scanned for the first time; scanning mode 5 corresponds to 5 channels for one scan. When the electronic device executes scanning mode 5, channels 1 to 5 are scanned for the first time.
[0161] Exemplarily, assuming that the electronic device scans 5 channels at a time, the electronic device scans channels 1 to 5 for the first time, channels 5 to 9 for the second time, and channels 9 to 13 for the third time, and so on. The upper layer of the electronic device counts the idle channels each time the channels are scanned, and the upper layer of the electronic device determines the number of channels to be scanned at one time according to the frequency of a certain channel being determined as an idle channel. For example, assuming that the upper layer of the electronic device determines that channels 1 and 5 are idle channels the most times, the upper layer of the electronic device can determine that the number of channels to be scanned at one time is 5, so that the electronic device can scan channels 1 and 5 at the same time during a channel scan. For another example, assuming that the upper layer of the electronic device determines that channels 1 and 3 are idle channels the most times, the upper layer of the electronic device can determine that the number of channels to be scanned at one time is 3, so that the electronic device can scan channels 1 and 3 at the same time during a channel scan.
[0162] In addition, the number of channels scanned by the electronic device at one time may also be preset. For example, the number of channels scanned by the electronic device at one time may be preset to be 3, 4 or 5 channels, etc., and this application does not impose any limitation on this.
[0163] In the embodiment of the present application, the electronic device can implement multi-channel scanning by adjusting the scanning bandwidth and center frequency of the channel scanning. When scanning multiple channels, the scanning bandwidth of the electronic device can be determined according to the number of channels scanned at one time. Figure 5 As shown in FIG. 1 , the scanning bandwidth of the electronic device for scanning 5 channels at a time is 40 MHz. The central frequency point of the electronic device for channel scanning is first switched from 2422 MHz to 2442 MHz, and finally switched from 2442 MHz to 2462 MHz. Figure 6 As shown, when the scanning bandwidth of the electronic device for scanning 5 channels at a time is 40 MHz, the central frequency point of the electronic device for channel scanning is switched from 2422 MHz to 2462 MHz.
[0164] The corresponding relationship between the number of channels scanned by the electronic device at one time and the scanning bandwidth of the channel scanning is shown in Table 1 below. As can be seen from Table 1, if the electronic device scans 5 channels at one time, the scanning bandwidth of the channel is 40MHz. If the electronic device scans 4 channels at one time, the scanning bandwidth of the channel is 35MHz. If the electronic device scans 3 channels at one time, the scanning bandwidth of the channel is 30MHz. If the electronic device scans 2 channels at one time, the scanning bandwidth of the channel is 25MHz. If the electronic device scans 1 channel at one time, the scanning bandwidth of the channel is 20MHz.
[0165] Table 1 Channel scanning conditions corresponding to different channel scanning numbers
[0166]
[0167] It can also be seen from the above Table 1 that when the electronic device scans different numbers of channels at a time, the channels of the first channel scan and the center frequency of each scan. Specifically, if the electronic device scans 5 channels at a time, the channels scanned by the electronic device for the first time are channels 1 to 5, and the center frequency of the first channel scan is 2422MHz. If the electronic device scans 4 channels at a time, the channels scanned by the electronic device for the first time are channels 1 to 4, and the center frequency of the first channel scan is 2419.5MHz. If the electronic device scans 3 channels at a time, the channels scanned by the electronic device for the first time are channels 1 to 3, and the center frequency of the first channel scan is 2417MHz. If the electronic device scans 2 channels at a time, the channels scanned by the electronic device for the first time are channels 1 to 2, and the center frequency of the first channel scan is 2414.5MHz. If the electronic device scans 1 channel at a time, the channel scanned by the electronic device for the first time is channel 1, and the center frequency of the first channel scan is 2412MHz. When the electronic device scans multiple channels at a time, the center frequency of each channel is down-converted so as to move the center frequency of each channel to the corresponding preset center frequency.
[0168] like Figure 7 As shown, the electronic device can perform down-conversion processing on the signal 1 after acquiring the signal 1. The down-conversion processing can include moving the center frequency of the current signal 1 to the preset center frequency of the corresponding channel. For example, the center frequency of the signal 1 corresponds to the center frequency of channel 3. Then, after the down-conversion processing, the center frequency corresponding to the channel 3 is moved to 0MHz. Correspondingly, after the down-conversion processing, the center frequency of channel 2 is moved to -5MHz, and the center frequency of channel 1 is moved to -10MHz. Similarly, after the down-conversion processing, the center frequency of channel 4 is moved to 5MHz, and the center frequency of channel 5 is moved to 10MHz.
[0169] In addition, the above Figure 4 The sampling frequency of the analog-to-digital conversion unit of the electronic device shown in the figure when performing analog-to-digital conversion on the multi-channel signal is often inconsistent with the frequency used in the baseband module to process the digital signal. In this case, before processing the multi-channel digital signal, the electronic device can adjust the frequency of the multi-channel digital signal to the frequency used by the baseband module by resampling, so that the adjusted frequency meets the processing requirements of the baseband module.
[0170] For the scenario where the sampling frequency of the analog-to-digital conversion unit for analog-to-digital conversion of multi-channel signals is different from the frequency used by the baseband module to process the multi-channel digital signals, the embodiment of the present application provides two different implementation methods. These two implementation methods can be selected according to actual application scenarios or actual needs. The following example uses a mobile phone as an electronic device to illustrate the solution of the present application.
[0171] Taking the example that the sampling frequency of the analog-to-digital conversion unit for analog-to-digital conversion of multi-channel signals is the second frequency (for example, 80 MHz), and the sampling frequency used for baseband processing is the first frequency (for example, 44 MHz), two different implementation methods provided in the embodiments of the present application are introduced.
[0172] In one embodiment, after acquiring the multi-channel digital signal, the mobile phone may first perform frequency shift processing on the multi-channel digital signal of the second frequency, and divide the multi-channel digital signal of the second frequency into a single-channel signal of the first frequency. Further, the mobile phone determines the target signal transmitted using the target protocol type in the single-channel signal corresponding to each channel. In this implementation, the digital processing may include frequency shift processing, resampling processing, and filtering processing.
[0173] In another embodiment, after acquiring the multi-channel digital signal, the mobile phone may first resample the multi-channel digital signal of the second frequency to obtain a multi-channel digital signal of the first frequency. Then, the mobile phone performs filtering on the multi-channel digital signal of the first frequency to obtain a single-channel signal corresponding to each of the multiple channels. The sampling frequency of the single-channel signal is the first frequency. Furthermore, the mobile phone determines the target signal transmitted using the target protocol type from the single-channel signals corresponding to each channel.
[0174] The following is combined with Figure 8 -Attached Fig.17 The above two implementation methods are introduced in detail.
[0175] In one embodiment of the present application, after the electronic device obtains the multi-channel digital signal of n channels of 2.4G WiFi in one scan, it can first perform down-conversion processing on the multi-channel digital signal of the second frequency, convert the center frequency of the multi-channel digital signal of the second frequency to the corresponding preset center frequency, and then resample the multi-channel digital signal of the second frequency to convert the sampling frequency of the multi-channel digital signal from the second frequency to the first frequency. Then, the electronic device performs filtering processing on the multi-channel digital signal of the first frequency to obtain the single-channel signals corresponding to each channel after filtering processing. Thus, the electronic device scans multiple channels at a time, which can simplify the process of the electronic device scanning multiple channels and save the chip area of the electronic device.
[0176] The following still takes the electronic device as a mobile phone as an example to introduce the implementation of the present application. In this embodiment, the number of channels n scanned by the mobile phone at one time is equal to 5. Figure 8 As shown, the method provided in the embodiment of the present application may include the following steps:
[0177] S801, a mobile phone receives a first sampling signal through a first antenna.
[0178] The frequency band of the first sampling signal includes the frequency bands corresponding to at least two adjacent channels. For example, the frequency band of the first sampling signal may include the frequency bands of channel 1 to channel 5. The first sampling signal is a signal of at least two adjacent channels received by the first antenna, and may also be called a multi-channel antenna signal.
[0179] When the mobile phone connects to a WiFi network, it can first scan the WiFi channel to determine the target channel used to connect to the WiFi. When the mobile phone performs channel scanning, it can scan 5 channels at a time. As shown in Table 1 above, when the number of channels to be scanned is 5, the channel scanning bandwidth is 40MHz. The mobile phone can perform a channel scan with a scanning bandwidth of 40MHz. During the process of performing a channel scan with a scanning bandwidth of 40MHz, the mobile phone can receive the first sampling signal from the 5 channels through the first antenna.
[0180] For example, Fig. 9 As shown, the first antenna of the mobile phone can perform a channel scan with a scanning bandwidth of 40 MHz, and receive the first sampling signal from channel 1 to channel 5. For another example, the first antenna of the mobile phone can perform a channel scan with a scanning bandwidth of 40 MHz, and receive the first sampling signal from channel 5 to channel 9.
[0181] Here, the mobile phone can receive the first sampling signals from the five channels through the first antenna. After receiving the first sampling signals from the five channels, the first antenna of the mobile phone can transmit the first sampling signals to the radio frequency module.
[0182] For example, Fig. 9 As shown, the RF module of the mobile phone includes a RF processing unit. The RF processing unit can receive the first sampling signals from 5 channels, and perform RF domain processing such as low-noise amplification processing, mixing processing, and low-pass filtering processing on the first sampling signals. Among them, the first sampling signal is an analog signal. Further, the RF processing unit of the mobile phone transmits the processed first sampling signal to the analog-to-digital conversion unit.
[0183] It is understandable that the mobile phone scans 5 channels at a time, and can first scan channels 1 to 5 to achieve the first channel scan. Then, the mobile phone scans channels 5 to 9 to achieve the second channel scan. Finally, the mobile phone scans channels 9 to 13 to achieve the third channel scan. The mobile phone can scan all channels of 2.4G WiFi through 3 scans. During the channel scanning process, the scanning bandwidth used by the mobile phone is 40MHz. At the same time, the center frequency point of the mobile phone for channel scanning can be switched from 2422MHz to 2442MHz, and then from 2442MHz to 2462MHz.
[0184] In the embodiment of the present application, the method provided in the embodiment of the present application is introduced by taking a mobile phone performing a channel scan as an example. The process of other channel scans is the same as the process of this channel scan, and will not be repeated here.
[0185] In an embodiment of the present application, after the mobile phone obtains the first sampling signal, it can down-convert the first sampling signal. By down-converting the first sampling signal, the center frequency of the first sampling signal after the down-conversion processing is transformed to a preset center frequency (for example, the preset center frequency is 0).
[0186] It should be noted that the preset center frequency here can be set according to the actual application scenario or demand. For example, the preset center frequency can be 0MHz. Taking the 5 channels scanned by the mobile phone this time as channel 1 to channel 5, and the preset center frequency is 0MHz, the center frequency of the first sampling signal obtained by the mobile phone is 2422MHz. After the mobile phone performs down-conversion processing on the first sampling signal, the center frequency of the first sampling signal is changed from 2422MHz to 0MHz.
[0187] It is understandable that the mobile phone performs down-conversion processing on the first sampling signal, and can move the center frequency of the first sampling signals of different frequency bands obtained in multiple channel scans to the corresponding preset center frequency. For example, after the mobile phone obtains the signal of the frequency band corresponding to channels 1 to 5 in the first scan, and obtains the signal of the frequency band corresponding to channels 5 to 9 in the second scan, the RF processing unit of the mobile phone performs down-conversion processing on the first sampling signal of the frequency band corresponding to channels 1 to 5, and can move the center frequency of the first sampling signal 2422MHz to the preset center frequency 0MHz. After the RF processing unit of the mobile phone performs down-conversion processing on the first sampling signal corresponding to channels 5 to 9, it can move the center frequency of the first sampling signal 2442MHz to the preset center frequency 0MHz.
[0188] In this way, the baseband module of the mobile phone can perform the same subsequent processing on the first sampling signals obtained from multiple scans of different frequency bands through the same module or unit, thereby simplifying the signal processing process and improving the efficiency of channel scanning. Fig.10 As shown, the baseband module of the mobile phone can be provided with a plurality of sub-sampling units and a plurality of sub-filtering units, each sub-sampling unit is connected to a sub-filtering unit, each sub-sampling unit synchronously resamples the first digital signal, and the sub-filtering unit can filter the resampled first digital signal.
[0189] After the mobile phone moves the center frequency of the first sampling signal to the preset center frequency, the center frequencies of the channels corresponding to the first sampling signal are also moved.
[0190] Exemplarily, taking the first sampling signal as a signal obtained by a mobile phone scanning channels 1 to 5, and the preset center frequency as 0, the frequency band corresponding to the first sampling signal is from 2401MHz to 2441MHz, and its center frequency is 2422MHz. After the first sampling signal is down-converted, the center frequency of the first sampling signal is converted from 2422MHz to 0MHz, the center frequency of channel 1 is converted from 2412MHz to -10MHz, the center frequency of channel 2 is converted from 2417MHz to -5MHz, the center frequency of channel 3 is converted from 2422MHz to 0MHz, the center frequency of channel 4 is converted from 2427MHz to 5MHz, and the center frequency of channel 5 is converted from 2432MHz to 10MHz.
[0191] Taking the first sampling signal as an example, which is the signal obtained by the mobile phone scanning channel 1 to channel 4, after down-conversion processing, the center frequency of channel 1 is converted from 2412MHz to -7.5MHz, the center frequency of channel 2 is converted from 2417MHz to -2.5MHz, the center frequency of channel 3 is converted from 2422MHz to 2.5MHz, and the center frequency of channel 4 is converted from 2427MHz to 7.5MHz.
[0192] Taking the first sampling signal as an example, which is the signal obtained by the mobile phone scanning channel 1 to channel 3, after down-conversion processing, the center frequency of channel 1 is converted from 2412MHz to -5MHz, the center frequency of channel 2 is converted from 2417MHz to 0MHz, and the center frequency of channel 3 is converted from 2422MHz to 5MHz.
[0193] Taking the first sampling signal as an example, which is the signal obtained by the mobile phone scanning channel 1 to channel 2, after down-conversion processing, the center frequency of channel 1 is converted from 2412MHz to -2.5MHz, and the center frequency of channel 2 is converted from 2417MHz to 2.5MHz.
[0194] S802: The mobile phone performs analog-to-digital conversion on the first sampling signal to obtain a first digital signal.
[0195] The first digital signal is a digital signal obtained after the analog-to-digital conversion unit performs analog-to-digital conversion on the first sampling signal.
[0196] In the embodiment of the present application, the first sampling signal from the five channels is an analog signal. To facilitate signal processing, the mobile phone can perform analog to digital conversion (ADC) on the first sampling signal to convert the analog first sampling signal into a first digital signal. The digital signal after the first sampling signal conversion can be used as a multi-channel digital signal from the five channels. During the analog to digital conversion of the first sampling signal by the mobile phone, the first sampling signal can be sampled at a second frequency to obtain a first digital signal.
[0197] For example, Fig. 9 As shown, after the analog-to-digital conversion unit of the mobile phone receives the first sampling signal sent by the RF module, the mobile phone can convert the first sampling signal into a digital signal through the analog-to-digital conversion unit to obtain the first digital signals of the five channels. Here, the sampling frequency when the analog-to-digital conversion unit performs analog-to-digital conversion on the first sampling signal is the second frequency (for example, 80MHz). After acquiring the first digital signal, the analog-to-digital conversion unit of the mobile phone can transmit the first digital signal to the baseband module for subsequent processing.
[0198] In some implementations, in order to make the number of bits of the first digital signal within a suitable range of bits, the mobile phone can also adjust the gain of the first sampling signal according to the first digital signal after analog-to-digital conversion. For example, if the number of bits of the first digital signal is greater than or equal to the first preset number of bits, the gain of the first sampling signal can be reduced to reduce the number of bits of the first digital signal of the next frame. If the number of bits of the first digital signal is less than or equal to the second preset number of bits, the mobile phone can increase the gain of the first sampling signal to increase the number of bits of the first digital signal of the next frame. If the number of bits of the first digital signal is between the first preset number of bits and the second preset number of bits, the mobile phone can maintain the gain of the first sampling signal to keep the number of bits of the first digital signal of the next frame within a suitable range of bits. In this way, the first digital signal acquired by the mobile phone can be kept within a suitable number of bits, so that the mobile phone can process the first digital signal.
[0199] S803, the mobile phone performs frequency shift processing on the first digital signal of the second frequency to obtain a first digital signal after frequency shift processing.
[0200] In an embodiment of the present application, after the mobile phone obtains the first digital signal of the second frequency, it can perform frequency shift processing on the first digital signal of the second frequency. By performing frequency shift processing on the first digital signal, the center frequency point of the first digital signal after the frequency shift processing is transformed to the same center frequency point.
[0201] It is understandable that, through down-conversion processing, the center frequency of each channel in the first sampling signal can be moved to the corresponding preset center frequency. However, since the length of the acquired signal is different when scanning different numbers of multiple channels, after down-conversion processing, the center frequency of each channel is actually different.
[0202] For example, refer to the above Figure 7 . Take the down-conversion processing of the signal scanning 5 channels as an example. After the down-conversion processing, the center frequency of the sampled data signal 1 can be moved to 0MHz. Correspondingly, in this data segment, the center frequency of channel 1 is -10MHz, the center frequency of channel 2 is -5MHz, the center frequency of channel 3 is 0MHz, the center frequency of channel 4 is 5MHz, and the center frequency of channel 5 is 10MHz.
[0203] A plurality of frequency shifting units may be provided in the baseband module. Each frequency shifting unit is used to move the center frequency of each channel in the first digital signal to a preset center frequency. Here, the baseband module of the mobile phone may first perform frequency shifting processing on the first digital signal of the first frequency, move the center frequency of the first digital signal to the preset center frequency, and then resample the digital signal after the frequency shifting processing to obtain a second digital signal of the first frequency. Then, the baseband module of the mobile phone inputs the second digital signal of the first frequency into the filter unit group for filtering processing to obtain data segments corresponding to each channel. In this way, the various sub-filtering units of the filter unit group of the mobile phone can be uniformly configured, and the pass frequency bands of each sub-filtering unit can be uniformly configured to -10MHz to 10MHz.
[0204] For example, Fig.10 As shown, a plurality of frequency shifting units may be provided in the baseband module of the mobile phone. The number of frequency shifting units may be determined by the number of channels scanned at one time, for example, the plurality of frequency shifting units may include frequency shifting unit 1, frequency shifting unit 2, frequency shifting unit 3, frequency shifting unit 4, and frequency shifting unit 5. The frequency shifting unit is used to move the first digital signal from the center frequency point of the corresponding channel to the preset center frequency point.
[0205] In this example, the frequency shifting units 1 to 5 may be configured with different frequency shifting capabilities, respectively.
[0206] For example, frequency shift unit 1 can be used to perform a frequency shift process of 0 MHz. Frequency shift unit 2 can be used to perform a frequency shift process of -2.5 MHz and / or -5 MHz. Frequency shift unit 3 can be used to perform a frequency shift process of 2.5 MHz and / or 5 MHz. Frequency shift unit 4 can be used to perform a frequency shift process of -7.5 MHz and / or -10 MHz. Frequency shift unit 5 can be used to perform a frequency shift process of 7.5 MHz and / or 10 MHz.
[0207] In this Fig.10 In the scenario of 5-channel sampling scanning shown, the frequency shift unit is required to provide frequency shift processing of 10 MHz, 5 MHz, -5 MHz and -10 MHz respectively, and then obtain the data segments corresponding to the 5 channels respectively through filtering processing.
[0208] In other multi-channel sampling scanning processes, the required frequency shift processing lengths may be different.
[0209] Take the frequency shift processing of 4-channel sampled data as an example. After the frequency shift processing, the center frequency of the first digital signal can be moved to 0MHz. Correspondingly, in this data segment, the center frequency of channel 1 is -7.5MHz, the center frequency of channel 2 is -2.5MHz, the center frequency of channel 3 is 2.5MHz, and the center frequency of channel 4 is 7.5MHz.
[0210] Thus, in the scenario of 4-channel sampling and scanning, the frequency shift unit is required to provide frequency shift processing of 7.5 MHz, 2.5 MHz, -2.5 MHz and -7.5 MHz respectively, and then obtain the data segments corresponding to the 4 channels respectively through filtering processing.
[0211] Take the frequency shift processing of data sampled from 3 channels as an example. After the frequency shift processing, the center frequency of the first digital signal can be moved to 0MHz. Correspondingly, in this data segment, the center frequency of channel 1 is -5MHz, the center frequency of channel 2 is 0MHz, and the center frequency of channel 3 is 5MHz.
[0212] Thus, in the scenario of 3-channel sampling and scanning, the frequency shift unit is required to provide 5 MHz and -5 MHz frequency shift processing respectively, and then obtain the data segments corresponding to the 3 channels respectively through filtering processing.
[0213] Take the frequency shift processing of data sampled from 2 channels as an example. After the frequency shift processing, the center frequency of the first digital signal can be moved to 0 MHz. Correspondingly, in this data segment, the center frequency of channel 1 is -2.5 MHz, and the center frequency of channel 2 is 2.5 MHz.
[0214] Thus, in the scenario of 2-channel sampling and scanning, the frequency shift unit is required to provide 2.5 MHz and -2.5 MHz frequency shift processing respectively, and then obtain the data segments corresponding to the two channels respectively through filtering processing.
[0215] In summary, in the implementation of a solution that provides a maximum of 5-channel scanning, the frequency shift unit needs to be able to provide at least -7.5 MHz, -5 MHz, -2.5 MHz, as well as 2.5 MHz, 5 MHz and 7.5 MHz frequency shift processing capabilities.
[0216] The frequency shift unit 1 can provide a frequency shift processing capability of 0MHz. In this way, the frequency shift unit 1 can be used to perform frequency shift processing on the input first digital signal without frequency domain shifting. For example, the frequency shift unit 1 can be used for the processing of channel 3 in the 5-channel scanning scenario, the processing of channel 2 in the 3-channel scanning scenario, etc. in the above example. Thus, by subsequent filtering processing with the center frequency of the frequency band being 0MHz, the data segment of channel 3 in the 5-channel scanning scenario or channel 2 in the 3-channel scanning scenario can be obtained. In other embodiments, the frequency shift unit 1 can also be used for signal processing for single-channel scanning.
[0217] The frequency shift unit 2 can provide -2.5MHz and -5MHz frequency shift processing capabilities. In this way, the frequency shift unit 2 can be used to perform frequency shift processing on the input digital signal and perform frequency domain shifting at the same time. For example, the frequency shift unit 2 can be used in the above example to process channel 4 in a 5-channel scanning scenario, channel 3 in a 4-channel scanning scenario, channel 3 in a 3-channel scanning scenario, channel 2 in a 2-channel scanning scenario, etc. Through the frequency shift processing, the frequency shift unit 2 can move the center frequency of the corresponding channel data segment to 0MHz, so as to obtain the data segment of the channel through subsequent filtering processing with the center frequency of the frequency band being 0MHz.
[0218] The frequency shift unit 3 can provide 2.5MHz and 5MHz frequency shift processing capabilities. In this way, similar to the frequency shift unit 2, the frequency shift unit 3 can be used to perform frequency shift processing on the input digital signal and perform frequency domain shift at the same time. For example, the frequency shift unit 3 can be used in the above example, the processing of channel 2 in the 5-channel scanning scenario, the processing of channel 2 in the 4-channel scanning scenario, the processing of channel 1 in the 3-channel scanning scenario, the processing of channel 1 in the 2-channel scanning scenario, etc. Through the frequency shift processing, the frequency shift unit 3 can move the center frequency point of the corresponding channel data segment to 0MHz, so as to obtain the data segment of the channel through subsequent filtering processing with the center frequency point of the frequency band being 0MHz.
[0219] The frequency shift unit 4 can provide -7.5MHz and -10MHz frequency shift processing capabilities. In this way, the frequency shift unit 3 can also be used to perform frequency shift processing on the input digital signal and perform frequency domain shifting at the same time. For example, the frequency shift unit 4 can be used in the above example to process channel 5 in a 5-channel scanning scenario, process channel 4 in a 4-channel scanning scenario, etc. Through the frequency shift processing, the frequency shift unit 4 can move the center frequency of the corresponding channel data segment to 0MHz, so as to obtain the data segment of the channel through subsequent filtering processing with the center frequency of the frequency band being 0MHz.
[0220] The frequency shift unit 5 can provide 7.5MHz and 10MHz frequency shift processing capabilities. In this way, the frequency shift unit 5 can also be used to perform frequency shift processing on the input digital signal and perform frequency domain shift at the same time. For example, the frequency shift unit 5 can be used in the above example to process channel 1 in a 5-channel scanning scenario, process channel 4 in a 4-channel scanning scenario, etc. Through the frequency shift processing, the frequency shift unit 4 can move the center frequency of the corresponding channel data segment to 0MHz, so as to obtain the data segment of the channel through subsequent filtering processing with the center frequency of the frequency band being 0MHz.
[0221] S804, the mobile phone inputs the first digital signal after the frequency shift processing into the resampling unit group for resampling processing to obtain a second digital signal.
[0222] In an embodiment of the present application, the mobile phone can first perform frequency shift processing on the first digital signal, and then resample the first digital signal after the frequency shift processing. The resampling process can resample the first digital signal of the second frequency to the first frequency, so that the frequency of the second digital signal after the resampling process meets the frequency requirement of the filter unit in the subsequent baseband module. After the mobile phone obtains the first digital signal after the frequency shift processing, it uses the resampling unit group to resample the first digital signal of the second frequency to obtain the second digital signal of the first frequency. Among them, the first frequency is the frequency used by the baseband module when performing digital processing on the second digital signal, and the first frequency is different from the second frequency.
[0223] It is understandable that in order to ensure the accuracy of the digital processing process, the modules or units (such as Fig. 9 The frequency of the filter unit group, carrier sensing unit group, etc. in the analog-to-digital conversion unit needs to match that of the analog-to-digital conversion unit.
[0224] For example, when the sampling frequency of the analog-to-digital conversion unit is 80MHz, the frequency of the module or unit that processes the digital signal in the baseband module can also be 80MHz. In some cases, the sampling frequency of the analog-to-digital conversion unit is different from the frequency of the module or unit that processes the digital signal in the baseband module. In this way, you can configure the following in your mobile phone: Fig. 9The resampling unit group shown converts the frequency of the digital signal after analog-to-digital conversion into a frequency that satisfies the baseband module for digital processing of the digital signal, thereby ensuring the accuracy of the digital processing.
[0225] For example, Fig. 9 As shown, the resampling unit group of the mobile phone may include 5 subsampling units. The number of subsampling units is the same as the number of channels scanned by the mobile phone at one time, that is, when the number of channels scanned by the mobile phone at one time is 5, the resampling unit includes 5 subsampling units. Different subsampling units output the second digital signal of the first frequency respectively. These 5 subsampling units can be respectively represented as subsampling unit 1, subsampling unit 2, subsampling unit 3, subsampling unit 4, and subsampling unit 5, and the sampling bandwidth of the 5 subsampling units is 20M. The first frequency here can be the frequency used by the sub-filter unit and the sub-carrier sensing unit for subsequent processing of the signal. Each subsampling unit can resample the first digital signal of the second frequency (such as 80MHz) to the second digital signal of the first frequency (such as 44MHz), so that the frequency of the second digital signal after the resampling process is consistent with the frequency used by the subsequent module or unit to process the signal.
[0226] In the embodiment of the present application, the sub-sampling unit may perform resampling processing on the first digital signal after the frequency shift processing, which may include: interpolation processing, at least one filtering processing, and at least one decimation processing.
[0227] In some embodiments, the sub-sampling unit may perform a first multiple interpolation process on the first digital signal after the frequency shift process to obtain a third digital signal. The first multiple is a first preset value, for example, the first preset value is 11. Then, the sub-sampling unit performs a filtering process and a decimation process on the third digital signal to obtain a second digital signal. The decimation multiple of the decimation process is a second preset value, for example, the second preset value is 20.
[0228] It should be explained that the sub-sampling unit performs an interpolation process on the first digital signal, and can obtain an approximately analog third digital signal by increasing the sampling points. Thereafter, the sub-sampling unit performs a filtering process on the third digital signal, and can filter out the noise introduced in the interpolation process. The sub-sampling unit performs a decimation process on the filtered digital signal, and achieves the purpose of reducing the amount of calculation by reducing the sampling frequency.
[0229] The following uses an example to illustrate the process of the sub-sampling unit resampling the first digital signal after the frequency shift processing.
[0230] In a possible implementation, take the mobile phone scanning channels 1 to 5 once as an example, Fig.11As shown, the resampling process of each sub-sampling unit may include interpolation processing, filtering processing and decimation processing.
[0231] Take the sub-sampling unit 1 performing resampling processing on the first digital signal as an example for introduction. After receiving the first digital signal transmitted by the frequency shift unit group, the sub-sampling unit 1 of the mobile phone first performs interpolation processing on the first digital signal to obtain a third digital signal. For example, the sub-sampling unit 1 inserts multiple sampling points into the first digital signal to change the frequency of the first digital signal from 80MHz to 880MHz. Generally, the interpolation processing will introduce noise into the digital signal, so after the interpolation processing, the sub-sampling unit 1 can also perform filtering processing on the interpolated third digital signal, filter the noise introduced by the interpolation processing, and obtain the digital signal after the noise is filtered out. The filtering processing here does not change the sampling frequency of the digital signal, and the sampling frequency of the digital signal after filtering is still 880MHz. Further, the sub-sampling unit 1 performs extraction processing on the 880MHz digital signal, extracts 20 times the sampling points of the 880MHz digital signal, that is, extracts 1 sampling point of the digital signal from the 20 sampling points of the digital signal, and outputs a second digital signal of 44MHz.
[0232] It needs to be explained that Fig.11 The number of sampling points inserted by the neutron sampling unit during the interpolation processing of the first digital signal and the decimation multiple of the decimation processing are only described as examples. Any resampling process that can convert the frequency of the first digital signal from 80MHz to 44MHz can be applied to the present application and is not limited here.
[0233] For sub-sampling units 2 to 5, sub-sampling units 2 to 5 can perform the same resampling process as sub-sampling unit 1 on the first digital signal after the frequency shifting process. The implementation process of sub-sampling units 2 to 5 performing resampling process on the first digital signal after the frequency shifting process to obtain the second digital signal of the first frequency is not repeated here.
[0234] In addition, five sub-sampling units are provided in the baseband module of the mobile phone, which convert the first digital signal of the second frequency into the second digital signal of the first frequency. By reducing the sampling frequency of the digital signal, the bandwidth of the subsequent filtering unit is made smaller, and the filtering unit has a better filtering effect on the digital signal.
[0235] In some other embodiments, the sub-sampling unit may perform one interpolation process, multiple filtering processes and multiple decimation processes on the first digital signal after the frequency shift process, wherein the product value between the decimation multiples of each decimation is the second preset value.
[0236] It should be explained that compared with the sub-sampling unit performing one filtering and one decimation in the process of resampling the first digital signal after the frequency shift processing, the sub-sampling unit here performs multiple filtering and multiple decimation processes on the first digital signal after the frequency shift processing, making the process of the sub-sampling unit resampling the digital signal easier to implement.
[0237] Take the resampling process of the sub-sampling unit including one interpolation process, two filtering processes and two decimation processes as an example. Here, the resampling process of the first digital signal after the frequency shift process by the sub-sampling unit 1 is still used as an example to illustrate. For example, Fig.12 As shown, the sub-sampling unit 1 can first perform a first filtering process on the first digital signal of 80MHz to reduce the influence of other signals in the first digital signal on the effective signal. The filtering process here does not change the sampling frequency of the first digital signal, and the sampling frequency of the digital signal after filtering is still 80MHz. Then, the sub-sampling unit 1 can perform a first extraction process on the digital signal after the first filtering process, for example, extracting 2 times the sampling points of the 80MHz digital signal, that is, extracting a sampling point of a digital signal from the sampling points of 2 digital signals to obtain a 40MHz digital signal. The sub-sampling unit 1 performs an interpolation process on the digital signal after the first extraction, inserts multiple sampling points into the digital signal, and changes the sampling frequency of the digital signal from 40MHz to 440MHz. Generally, the interpolation process will introduce noise into the digital signal, so that after the interpolation process, the sub-sampling unit 1 will also perform a second filtering process on the interpolated digital signal to filter the noise introduced by the interpolation process to obtain a multi-channel signal after the noise is filtered out. Similarly, the second filtering process does not change the sampling frequency of the multi-channel signal, and the sampling frequency of the digital signal after the second filtering process is still 440MHz. Further, the subsampling unit 1 can perform a second extraction process on the digital signal after the noise is filtered out, extracting 10 times the sampling points of the 440MHz digital signal, that is, extracting 1 sampling point of the digital signal from 10 sampling points of the digital signal, and obtaining a second digital signal of 44MHz.
[0238] It should be explained that the above-mentioned sub-sampling unit 1 performs a 2-fold sampling point extraction and a 10-fold sampling point extraction on the digital signal only as an exemplary description. In the embodiment of the present application, the product of the extraction multiples used in the two extraction processes is the second preset value to implement the above-mentioned resampling process. For example, in this example, the second preset value is 20, and the extraction multiple of the digital signal for the first extraction process of the sub-sampling unit can be 4 times, and the extraction multiple of the second extraction process can be 5 times, and so on. The extraction multiples used in the two extraction processes are not limited here.
[0239] It is understandable that in the embodiment of the present application, since the initial sampling frequency of the digital signal is inconsistent with the frequency required by the baseband module for processing, a resampling process is also performed during the baseband module's processing of the first digital signal. The digital signal usually introduces noise during the resampling process, so a filtering operation is also performed during the resampling process to filter out the noise introduced during the resampling process.
[0240] S805, the mobile phone inputs the resampled second digital signal into the filter unit group for filtering processing, and obtains the data segment corresponding to each of the five channels.
[0241] In an embodiment of the present application, the baseband module of the mobile phone may further include a filter unit group. The mobile phone may input the second digital signal after the resampling process into the filter unit group, and filter the second digital signal through the filter unit group, and the filter process is used to filter out the data segment corresponding to each channel in the second digital signal after the resampling process. After the filtering process, the mobile phone can obtain the data segment corresponding to each of the five channels.
[0242] For example, Fig. 9 As shown, the filter unit group of the mobile phone may include multiple sub-filter units. Each sub-filter unit may be an LPF. The number of sub-filter units is the same as the number of channels scanned at one time, that is, when the number of channels scanned at one time by the mobile phone is 5, the filter unit group includes 5 sub-filter units. These 5 sub-filter units can be respectively represented as sub-filter unit 1 (represented as LPF1), sub-filter unit 2 (represented as LPF2), sub-filter unit 3 (represented as LPF3), sub-filter unit 4 (represented as LPF4), and sub-filter unit 5 (represented as LPF5).
[0243] Each sub-filter unit can filter out a data segment corresponding to a channel in the second digital signal. The effective bandwidth of a channel is 20 MHz, so the pass bandwidth of each sub-filter unit can also be set to 20 MHz. The sampling frequency of a single-channel signal of a channel is 44 MHz (an example of the first frequency). Fig.14 As shown, the frequency shift unit can perform a frequency shift of -10 MHz on the multi-channel signal from the center frequency corresponding to channel 5, and move the multi-channel signal from the center frequency 10 MHz corresponding to channel 5 to 0 MHz (an example of a preset center frequency). The passband of the sub-filter unit is -10 MHz to 10 MHz. The sub-filter unit can filter out the data segment corresponding to channel 5 in the multi-channel signal.
[0244] The following uses an example to illustrate the process of each sub-filtering unit filtering out a data segment corresponding to a channel in the second digital signal. Fig.13As shown, for sub-filter unit 1 (LPF1), sub-filter unit 1 is used to filter out the data segment corresponding to channel 1. After frequency shift processing, the center frequency of channel 1 is transformed to -10MHz. In this case, the mobile phone can set the passband of sub-filter unit 1 to -20MHz to 0MHz. After sub-filter unit 1 filters the second digital signal, it can filter out a data segment with a center frequency of -10MHz and a bandwidth of 20MHz. This data segment is the data segment corresponding to channel 1, such as data segment 1.
[0245] For sub-filter unit 2 (LPF2), sub-filter unit 2 is used to filter out the data segment corresponding to channel 2. After the frequency shift processing, the center frequency of channel 2 is transformed to -5MHz. In this case, the mobile phone can set the passband of sub-filter unit 2 to -15MHz to 5MHz. After sub-filter unit 2 filters the second digital signal, it can filter out a data segment with a center frequency of -5MHz and a bandwidth of 20MHz. This data segment is the data segment corresponding to channel 2, such as data segment 2.
[0246] For sub-filter unit 3 (LPF3), sub-filter unit 3 is used to filter out the data segment corresponding to channel 3. After the frequency shift processing, the center frequency of channel 3 is converted to 0MHz. In this case, the mobile phone can set the passband of sub-filter unit 3 to -10MHz to 10MHz. After the sub-filter unit 3 filters the second digital signal, it can filter out a data segment with a center frequency of 0MHz and a bandwidth of 20MHz. This data segment is the data segment corresponding to channel 3, such as data segment 3.
[0247] For sub-filter unit 4 (LPF4), sub-filter unit 4 is used to filter out the data segment corresponding to channel 4. After frequency shift processing, the center frequency of channel 4 is converted to 5MHz. In this case, the mobile phone can set the passband of sub-filter unit 4 to -5MHz to 15MHz. After sub-filter unit 4 filters the second digital signal, it can filter out a data segment with a center frequency of 5MHz and a bandwidth of 20MHz. This data segment is the data segment corresponding to channel 4, such as data segment 4.
[0248] For sub-filter unit 5 (LPF5), sub-filter unit 5 is used to filter out the data segment corresponding to channel 5. After frequency shift processing, the center frequency of channel 5 is converted to 10MHz. In this case, the mobile phone can set the passband of sub-filter unit 5 to 0MHz to 20MHz. After sub-filter unit 5 filters the second digital signal, it can filter out a data segment with a center frequency of 10MHz and a bandwidth of 20MHz. This data segment is the data segment corresponding to channel 5, such as data segment 5.
[0249] In order to simplify the configuration of the sub-filtering units, in some implementations, the mobile phone can uniformly configure the sub-filtering units in the filter unit group, and set the passband of each sub-filtering unit to -10MHz to 10MHz. In this case, the mobile phone can also perform frequency shift processing on the second digital signal before filtering the second digital signal.
[0250] In an embodiment of the present application, the resampling unit group and the filtering unit group in the baseband module of the mobile phone both have the operation of filtering the digital signal. In order to save chip area, the mobile phone can filter out the noise and the data segments corresponding to the channel only through the filtering process in the resampling unit group. For example, the mobile phone filters the noise introduced in the multi-channel signal during the interpolation process through the filtering process of the resampling unit, and can also filter out the data segments corresponding to a single channel in the multi-channel signal through the filtering process, and simultaneously filter out the noise and the data segments. In this way, not only can the process of channel scanning of the mobile phone be simplified, but also the chip area of the mobile phone can be saved.
[0251] S806, the mobile phone performs carrier frame listening on the data segments corresponding to each channel to determine the target signal.
[0252] The target signal refers to a data segment transmitted using the target protocol type. For example, assuming that the target protocol type is 802.11b, the target signal can be a data segment transmitted using the 802.11b protocol. After obtaining the data segments corresponding to each channel, the mobile phone can identify the protocol type of the data segments corresponding to each channel when they are transmitted. If, among the channels, the protocol type of the data segment transmitted by a certain channel is 802.11b, then the data segment corresponding to the channel can be considered to be the target signal, and the channel transmitting the data segment is the target channel.
[0253] For example, Fig. 9 As shown, the baseband module of the mobile phone may include a carrier sensing unit group, which performs channel idle detection on the data segments corresponding to the five channels and identifies the target signal in the data segments corresponding to the five channels. The carrier sensing unit group may include multiple sub-sensing units, and the number of sub-sensing units is the same as the number of channels scanned by the mobile phone at one time. The multiple sub-sensing units included in the carrier sensing unit are sub-sensing unit 1 (which can be expressed as CCA1), sub-sensing unit 2 (which can be expressed as CCA2), sub-sensing unit 3 (which can be expressed as CCA3), sub-sensing unit 4 (which can be expressed as CCA4) and sub-sensing unit 5 (which can be expressed as CCA5).
[0254] Each sub-listening unit may perform channel idle detection on the corresponding channel to determine whether the data segment of the current channel is the target signal transmitted using the 802.11b protocol. In a possible case, each sub-listening unit may perform preset Baker code recognition on the data segment of the corresponding channel to determine whether the data segment of the current channel is the target signal transmitted using the 802.11b protocol.
[0255] Here, the preset Barker code is a synchronization code corresponding to the 802.11b protocol, which can be used to identify the starting position of the data frame carried by the data segment. If the carrier sensing unit identifies the preset Barker code in the data segment of a channel, it can be considered that the starting position of the data frame encoded by the 802.11b protocol is identified in the data segment of the channel. Further, the mobile phone can read the information represented by the data frame in the target signal.
[0256] For example, sub-listening unit 1 may perform preset Barker code recognition on the data segment of channel 1. Sub-listening unit 2 may perform preset Barker code recognition on the data segment of channel 2. Sub-listening unit 3 may perform preset Barker code recognition on the data segment of channel 3. Sub-listening unit 4 may perform preset Barker code recognition on the data segment of channel 4. Sub-listening unit 5 may perform preset Barker code recognition on the data segment of channel 5.
[0257] The following is an example of how the sub-interception unit identifies the preset Barker code for the corresponding data segment. Take the sub-interception unit 1 identifying the preset Barker code for the data segment of channel 1 (or data segment 1) as an example. Fig.15 As shown, the sub-listening unit 1 can use the multi-bit data of the data segment 1 as a detection window to perform a preset Barker code detection. After the sub-listening unit 1 receives the data segment 1, the sub-listening unit 1 can match the multi-bit data in the data segment 1 that passes through the detection window with the preset Barker code to generate a correlation detection signal. The correlation detection signal can indicate whether the multi-bit data in the detection window matches the preset Barker code. For example, if the correlation detection signal is a high level, it can indicate that the multi-bit data in the detection window matches the preset Barker code. If the correlation detection signal is a low level, it can indicate that the multi-bit data in the detection window does not match the preset Barker code.
[0258] For example, the detection window corresponds to 4 bits of data. If the 4 bits of data in the detection window match the preset Barker code, a high level of the correlation detection signal can be generated. If the 4 bits of data in the detection window do not match the preset Barker code, a low level of the correlation detection signal can be generated. The high level of the correlation detection signal corresponds to a signal peak. The sub-listening unit 1 can also count the signal peaks of the correlation detection signal. If the peak value of a signal peak reaches a preset peak value threshold, it can be considered that the 4 bits of data in the detection window match the preset Barker code, and the count of the signal peak is increased by 1. If the peak value of a signal peak is less than the preset peak value threshold, it can be considered that the 4 bits of data in the detection window do not match the preset Barker code, and the count of the signal peak remains unchanged. When the count of the signal peak is greater than the pre-designed value (such as the count of the signal peak is greater than 3), it can be considered that the preset Barker code is identified in the data segment of channel 1, and the data segment of channel 1 is the target signal.
[0259] Here, the detection window may slide backward according to a preset sliding step. For example, the preset sliding step is 1 bit. In the first preset Barker code detection, the data in the detection window is the 1st bit to the 4th bit of the data segment. In the second preset Barker code detection, the data in the detection window is the 2nd bit to the 5th bit of the data segment. And so on, until the detection window slides to the last bit of the current data segment.
[0260] In some implementations, in order to make the signal strength of the target signal within an appropriate strength range, the mobile phone adjusts the gain of the radio frequency signals of the five channels according to the received signal strength indication (RSSI) of the target signal. Thus, by adjusting the radio frequency signals of multiple channels received by the mobile phone through the RSSI of the target signal, the signal strength of the target signal can be controlled within an appropriate signal strength, thereby facilitating the subsequent processing of the target signal by the mobile phone.
[0261] In this implementation method, after the mobile phone identifies the target signal in the data segments of multiple channels, it can also obtain the RSSI of the target signal. RSSI can be used to indicate the signal strength of the received signal. If the RSSI value of the target signal is larger, it means that the signal strength of the target signal is larger. If the RSSI value of the target signal is smaller, it means that the signal strength of the target signal is smaller.
[0262] After obtaining the received signal strength indication of the target signal, the mobile phone can adjust the gain of the RF signals of the five channels according to the RSSI of the target signal.
[0263] For example, if the RSSI value of the target signal is greater than or equal to the first preset strength value, it means that the RSSI value of the target signal is large. In this case, the mobile phone reduces the gain of the RF signal so that the RSSI value of the next frame of the target signal obtained by the mobile phone becomes smaller. If the RSSI value of the target signal is less than or equal to the second preset strength value, it means that the RSSI value of the target signal is small. In this case, the mobile phone increases the gain of the RF signal so that the RSSI value of the next frame of the target signal obtained by the mobile phone becomes larger. If the RSSI value of the target signal is less than the first preset strength value and greater than the second preset strength value, it means that the RSSI value of the target signal is appropriate. In this case, the mobile phone can choose not to adjust the gain of the RF signal so that the next frame of the target signal obtained by the mobile phone remains within an appropriate strength range.
[0264] Here, the first preset strength value is greater than the second preset strength value. The first preset strength value and the second preset strength value can be set according to actual application scenarios or requirements. In the embodiment of the present application, the specific values of the first preset strength value and the second preset strength value are not limited.
[0265] In some implementations, the mobile phone can also adjust the gain of the target signal to control the channel strength of the target signal. Fig. 9 In the example shown, the baseband module of the mobile phone may also include a digital gain unit. After acquiring the target signal, the mobile phone may also use the digital gain unit to perform gain control on the target signal. For example, the mobile phone may increase the signal strength of the target signal to make the target signal easier to process.
[0266] In an embodiment of the present application, after the RF module of the mobile phone receives the first sampling signals of multiple adjacent channels, it first performs analog-to-digital conversion on the first sampling signal to obtain the first digital signal of the second frequency. After the mobile phone baseband module obtains the first digital signal of the second frequency, the first digital signal is subjected to frequency shift processing, and then the first digital signal of the second frequency is subjected to resampling processing to obtain the second digital signal of the first frequency, and then the second digital signal of the first frequency is subjected to filtering processing to obtain the data segment corresponding to each channel in the multiple channels. Furthermore, the mobile phone obtains the target signal in the data segment corresponding to each channel. In this way, the mobile phone scans multiple channels at a time, and before the baseband module performs digital processing on the signal, the frequency of the signal is converted to the frequency required for the baseband module to perform digital processing by resampling, so that the baseband module performs digital processing on the signal to determine the target channel and the target signal, thereby improving the efficiency of the mobile phone connecting to the WiFi network.
[0267] In one embodiment, the baseband module may include multiple first digital processing links, each of which includes a frequency shifting unit, a sub-sampling unit coupled to the frequency shifting unit, a sub-filtering unit coupled to the sub-sampling unit, and a sub-carrier sensing unit coupled to the sub-filtering unit.
[0268] like Fig. 9 As shown, when the frequency shifting units included in different first digital links perform frequency shifting processing on the first digital signal, the corresponding frequency shifting lengths are different. The frequency shifting lengths correspond to different channels in at least two adjacent channels. Then, the sub-sampling unit in the first digital link resamples the first digital signal after the frequency shifting processing to obtain the second digital signal of the first frequency, and the sub-filtering unit performs filtering processing on the second digital signal obtained by the corresponding sub-sampling unit to obtain a data segment corresponding to a channel. Here, the passing bandwidth of the sub-filtering units included in different first digital processing links is the same. Then, the CCA unit in the first digital processing link performs carrier sensing on the data segment of a channel obtained after filtering processing by the corresponding sub-filtering unit to determine whether the data segment is transmitted through the target protocol type.
[0269] In another embodiment, the baseband module may include multiple second digital processing links, each of which includes a sub-sampling unit, a sub-filtering unit coupled to the sub-sampling unit, and a sub-carrier sensing unit coupled to the sub-filtering unit. After the baseband module acquires the first digital signal, the sub-sampling unit in the second digital link may resample the first digital signal to obtain a second digital signal of the first frequency, and the sub-filtering unit performs filtering on the second digital signal acquired by the corresponding sub-sampling unit to obtain a data segment corresponding to a channel. Here, the passing bandwidth of the sub-filtering units included in different second digital processing links corresponds to different channels in at least two adjacent channels. Then, the CCA unit in the second digital processing link performs carrier sensing on the data segment of a channel obtained after filtering by the corresponding sub-filtering unit to determine whether the data segment is transmitted through the target protocol type. Here, the implementation process of the baseband module performing resampling, filtering and carrier sensing on the first digital signal can be referred to the above Figures 8 to 15 The implementation process will not be described here.
[0270] In another embodiment of the present application, after the mobile phone obtains the digital signals of n channels of 2.4G WiFi in one scan, it first resamples the first digital signal of the second frequency to obtain the second digital signal of the first frequency. Then, the mobile phone performs filtering on the second digital signal of the first frequency to obtain the data segment corresponding to each of the multiple channels, so as to determine the target signal from the data segments corresponding to the multiple channels. For example, Fig.16As shown, taking n equal to 5 as an example, that is, the mobile phone scans 5 channels at a time as an example to introduce the above solution, the method provided in the embodiment of the present application may include the following steps:
[0271] S1601, the mobile phone receives a first sampling signal through a first antenna.
[0272] For this step, please refer to the description of S801 above and will not be repeated here.
[0273] For example, Fig.17 As shown, the RF module of the mobile phone includes a RF processing unit. The RF processing unit can receive the first sampling signal from the five adjacent channels sent by the first antenna, and perform RF domain processing such as low-noise amplification, mixing, and low-pass filtering on the first sampling signal. Furthermore, the RF processing unit of the mobile phone transmits the processed first sampling signal to the analog-to-digital conversion unit.
[0274] S1602: The mobile phone performs analog-to-digital conversion on the first sampling signal to obtain a first digital signal.
[0275] For this step, please refer to the description of S802 above and will not be repeated here.
[0276] For example, Fig.17 As shown, after the analog-to-digital conversion unit of the mobile phone receives the first sampling signal sent by the RF processing unit, the mobile phone can convert the first sampling signal into a digital signal through the analog-to-digital conversion unit to obtain the first digital signals of the five channels. After obtaining the first digital signal, the analog-to-digital conversion unit of the RF module in the mobile phone can transmit the first digital signal to the baseband module for baseband processing.
[0277] S1603, the mobile phone resamples the first digital signal of the second frequency to obtain a second digital signal of the first frequency.
[0278] Since the frequency (i.e., the first frequency) used by the baseband module of the mobile phone to digitally process the digital signal is usually inconsistent with the sampling frequency (i.e., the second frequency) used in the analog-to-digital conversion process, in this case, the mobile phone can resample the first digital signal of the second frequency and convert the sampling frequency of the first digital signal from the second frequency to the first frequency.
[0279] For example, Fig.17 As shown, the baseband module may include a resampling unit. The resampling unit may resample the first digital signal, and convert the sampling frequency of the first digital signal from the second frequency (for example, the second frequency is 80 MHz) to the first frequency (for example, the first frequency is 44 MHz). Here, the bandwidth of the resampling unit for sampling the first digital signal is 40M.
[0280] In this example, the process of the resampling unit performing resampling processing on the first digital signal can refer to the process of the subsampling unit performing resampling processing on the first digital signal in the above embodiment, which will not be described in detail here.
[0281] In some implementations, in order to reduce the impact of the DC signal in the digital signal on the effective signal (i.e., the AC signal), the mobile phone may also filter out the DC signal in the first digital signal before resampling the first digital signal. This can reduce the impact of the DC signal on the first digital signal and improve the signal quality of the first digital signal.
[0282] S1604: The mobile phone performs frequency shift processing on the second digital signal of the first frequency to obtain a digital signal after the frequency shift processing.
[0283] After acquiring the second digital signal of the first frequency, the mobile phone can perform frequency shift processing on the second digital signal of the first frequency, and transform the center frequency point of the second digital signal of the first frequency into a preset center frequency point (for example, the preset center frequency point is 0). Here, the process of the mobile phone performing frequency shift processing on the second digital signal of the first frequency can be referred to in the introduction process of S803 above, which will not be repeated here.
[0284] For example, Fig.17 As shown, the baseband module of the mobile phone may also include a frequency shift unit. The frequency shift unit is connected to the resampling unit. The frequency shift unit of the mobile phone can receive a second digital signal of 44MHz (i.e., the first frequency), and perform frequency shift processing on the second digital signal, and move the center frequency of the second digital signal to a preset center frequency.
[0285] S1605, the mobile phone inputs the digital signal after the frequency shift processing into the filter unit group for filtering processing, and obtains the data segments corresponding to the five channels respectively.
[0286] After the second digital signal is subjected to frequency shift processing, the mobile phone can divide the data segments corresponding to each channel from the digital signal after the frequency shift processing. For example, the baseband module of the mobile phone may also include a filter unit group. The mobile phone can input the digital signal after the frequency shift processing into the filter unit group, and filter the digital signal through the filter unit group, and the filter processing is used to filter out the data segments corresponding to each channel from the digital signal after the frequency shift processing. After the filtering processing, the mobile phone can obtain the data segments corresponding to each of the five channels.
[0287] For example, Fig.17As shown, the filter unit group of the mobile phone may include multiple sub-filter units. Each sub-filter unit may be an LPF. The number of sub-filter units is the same as the number of channels scanned at one time, that is, when the number of channels scanned at one time by the mobile phone is 5, the filter unit group includes 5 sub-filter units. These 5 sub-filter units may be respectively represented as sub-filter unit 1 (represented as LPF1), sub-filter unit 2 (represented as LPF2), sub-filter unit 3 (represented as LPF3), sub-filter unit 4 (represented as LPF4), and sub-filter unit 5 (represented as LPF5).
[0288] Each sub-filter unit can filter out a data segment corresponding to a channel in the digital signal. The effective bandwidth of a channel is 20 MHz, so the pass bandwidth of each sub-filter unit can also be set to 20 MHz. The frequency of the data segment of a channel is 44 MHz (an example of the first frequency).
[0289] S1606, the mobile phone performs carrier frame listening on the data segments corresponding to each channel to determine the target signal.
[0290] Please refer to the description of S806 for this step, which will not be repeated here.
[0291] For example, Fig.17 As shown, the baseband module of the mobile phone may also include a carrier sensing unit group, which is connected to the filter unit group. The carrier sensing unit group can identify the target signal in the data segments corresponding to the five channels. The carrier sensing unit group may include five sub-sensing units. The five sub-sensing units are sub-sensing unit 1, sub-sensing unit 2, sub-sensing unit 3, sub-sensing unit 4 and sub-sensing unit 5. Each sub-sensing unit may perform a preset Baker code recognition on the data segment of the corresponding channel to determine whether the data segment of the current channel is the target signal transmitted using the 802.11b protocol. The process of each sub-sensing unit identifying the corresponding data segment with a preset Baker code can be referred to above. Fig.15 And the related description content will not be repeated here.
[0292] In some implementations, in order to make the signal strength of the target signal within an appropriate strength range, the mobile phone adjusts the gain of the RF signal of the five channels according to the received signal strength indication of the target signal. The implementation can refer to the content of the mobile phone adjusting the gain of the RF signal of the five channels according to the received signal strength indication of the target signal in the previous embodiment, which will not be repeated here.
[0293] In some implementations, such as Fig.17As shown, the baseband module of the mobile phone may also include a digital gain unit. After acquiring the target signal, the mobile phone may also use the digital gain unit to perform gain control on the target signal. For example, the mobile phone may increase the signal strength of the target signal to make the target signal easier to process.
[0294] In an embodiment of the present application, after acquiring the first digital signal, the mobile phone first resamples the first digital signal of the second frequency to obtain the second digital signal of the first frequency, and then filters the second digital signal of the first frequency to obtain a data segment corresponding to each channel in the multiple channels. Furthermore, the mobile phone acquires the target signal in the data segment corresponding to each channel. In this way, the mobile phone scans multiple channels at a time, and before the baseband module digitally processes the signal, the frequency of the signal is converted to a frequency required for the baseband module to perform digital processing by resampling, so that the baseband module digitally processes the signal to determine the target channel and the target signal, thereby improving the efficiency of the mobile phone connecting to the WiFi network.
[0295] In another example of the embodiment of the present application, Fig.17 The baseband module does not include a frequency shift unit group. After the resampling unit resamples the first digital signal to obtain the second digital signal, the resampling unit inputs the second digital signal into each sub-filter unit in the filter unit group for filtering. In this example, the bandwidth of each sub-filter unit is different to filter out data segments corresponding to different channels. Here, the implementation process of the baseband module resampling, filtering and carrier sensing the first digital signal can be referred to above. Fig.16 and Fig.17 The implementation process will not be described here.
[0296] It is understandable that, in order to realize the above functions, the above-mentioned electronic devices, etc. include hardware structures and / or software modules corresponding to the execution of each function. Those skilled in the art should easily realize that, in combination with the units and algorithm steps of each example described in the embodiments disclosed herein, the embodiments of the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the embodiments of the present invention.
[0297] The embodiment of the present application can divide the functional modules of the above-mentioned electronic device etc. according to the above-mentioned method example. For example, each functional module can be divided corresponding to each function, or two or more functions can be integrated into one processing module. The above-mentioned integrated module can be implemented in the form of hardware or in the form of software functional modules. It should be noted that the division of modules in the embodiment of the present invention is schematic and is only a logical function division. There may be other division methods in actual implementation.
[0298] In the case of dividing each functional module according to each function, a possible composition diagram of the electronic device involved in the above embodiment, the electronic device may include: a display unit, a transmission unit and a processing unit, etc. It should be noted that all relevant contents of each step involved in the above method embodiment can be referred to the functional description of the corresponding functional module, and will not be repeated here.
[0299] The embodiment of the present application also provides an electronic device, including one or more processors and one or more memories. The one or more memories are coupled to the one or more processors, and the one or more memories are used to store computer program codes, and the computer program codes include computer instructions. When the one or more processors execute the computer instructions, the electronic device executes the above-mentioned related method steps to implement the signal processing method in the above-mentioned embodiment.
[0300] An embodiment of the present application further provides a computer-readable storage medium, in which computer instructions are stored. When the computer instructions are executed on an electronic device, the electronic device executes the above-mentioned related method steps to implement the signal processing method in the above-mentioned embodiment.
[0301] An embodiment of the present application further provides a computer program product, which includes computer instructions. When the computer instructions are executed on an electronic device, the electronic device executes the above-mentioned related method steps to implement the signal processing method in the above-mentioned embodiment.
[0302] In addition, an embodiment of the present application also provides a device, which may specifically be a chip, component or module, and the device may include a connected processor and memory; wherein the memory is used to store computer-executable instructions, and when the device is running, the processor may execute the computer-executable instructions stored in the memory so that the device executes the signal processing method performed by the electronic device in the above-mentioned method embodiments.
[0303] Among them, the electronic device, computer-readable storage medium, computer program product or device provided in this embodiment is used to execute the corresponding method provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding method provided above, and will not be repeated here.
[0304] Through the description of the above implementation methods, technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above functional modules is used as an example. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. The specific working process of the system, device and unit described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.
[0305] Each functional unit in each embodiment of the present application can be integrated into a processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The above integrated unit can be implemented in the form of hardware or in the form of software functional units.
[0306] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as flash memory, mobile hard disk, read-only memory, random access memory, disk or optical disk.
[0307] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions within the technical scope disclosed in the present application should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A signal processing method, characterized in that: Applied to an electronic device, the frequency at which the electronic device performs digital processing on a digital signal is a first frequency, and the method includes: Acquire a first sampling signal through a first antenna, where a frequency band of the first sampling signal includes frequency bands corresponding to at least two adjacent channels; Performing analog-to-digital conversion on the first sampling signal to obtain a first digital signal, wherein the sampling frequency of the analog-to-digital conversion is a second frequency, and the second frequency is different from the first frequency; Resampling the first digital signal to obtain a second digital signal, wherein the frequency corresponding to the second digital signal is the first frequency; digitally processing the second digital signal using the first frequency to obtain a data segment corresponding to each channel of the at least two adjacent channels; A data segment to be transmitted using the target protocol type is determined from the data segments corresponding to each channel of the at least two adjacent channels.
2. The method according to claim 1, characterized in that The electronic device comprises a baseband module, the baseband module comprises a plurality of first digital processing links, each of the first digital processing links comprises a sub-sampling unit; The resampling the first digital signal to obtain a second digital signal includes: The first digital signal is input into each of the sub-sampling units for resampling processing to obtain the second digital signal.
3. The method according to claim 1, characterized in that The electronic device includes a baseband module, the baseband module includes a resampling unit, and the resampling process of the first digital signal to obtain a second digital signal includes: The first digital signal is input into the resampling unit for resampling processing to obtain the second digital signal.
4. The method according to claim 2 or 3, characterized in that: The resampling process includes one interpolation process, at least one filtering process and at least one decimation process, and the resampling process includes the following steps: Performing interpolation processing of a first multiple on the first digital signal to obtain a third digital signal, wherein the first multiple is a first preset value; Perform at least one filtering process and at least one decimation process on the third digital signal to obtain the second digital signal.
5. The method according to claim 4, characterized in that When a decimation process is performed on the third digital signal, the decimation multiple of the decimation process is a second preset value; When multiple decimation processes are performed on the third digital signal, the product value between the decimation multiples of each decimation process is the second preset value.
6. The method according to claim 2, characterized in that Each of the first digital processing links further includes a sub-filtering unit coupled to the sub-sampling unit, and a carrier sense CCA unit coupled to the sub-filtering unit; The step of digitally processing the second digital signal using the first frequency to obtain a data segment corresponding to each channel of the at least two adjacent channels includes: The sub-filtering unit performs filtering processing on the second digital signal obtained by the corresponding sub-sampling unit to obtain a data segment corresponding to a channel; the passing bandwidth of the sub-filtering units included in different first digital processing links corresponds to different channels of the at least two adjacent channels; The step of determining, from the data segments corresponding to each of the at least two adjacent channels, a data segment to be transmitted using the target protocol type comprises: The CCA unit performs carrier sensing on a data segment of a channel obtained after filtering by the corresponding sub-filtering unit to determine whether the data segment is transmitted through the target protocol type.
7. The method according to claim 2, characterized in that Each of the first digital processing links further includes a frequency shift unit coupled to the sub-sampling unit, a sub-filter unit coupled to the sub-sampling unit, and a CCA unit coupled to the sub-filter unit. Before the first digital signal is input to each of the sub-sampling units for resampling processing, the method further includes: The frequency shift unit performs frequency shift processing on the first digital signal; when the frequency shift units included in different first digital processing links perform frequency shift processing, the corresponding frequency shift lengths are different, and the frequency shift lengths correspond to different channels in at least two adjacent channels; The step of digitally processing the second digital signal using the first frequency to obtain a data segment corresponding to each channel of the at least two adjacent channels includes: The sub-filtering unit performs filtering processing on the second digital signal obtained by the corresponding sub-sampling unit to obtain a data segment corresponding to a channel; the sub-filtering units included in different first digital processing links have the same passing bandwidth; The step of determining, from the data segments corresponding to each of the at least two adjacent channels, a data segment to be transmitted using the target protocol type comprises: The CCA unit performs carrier sensing on a data segment of a channel obtained after filtering by the corresponding sub-filtering unit to determine whether the data segment is transmitted through the target protocol type.
8. The method according to claim 3, characterized in that The baseband module further includes a plurality of second digital processing links, each of which includes a sub-filter unit, a CCA unit coupled to the sub-filter unit, The step of digitally processing the second digital signal using the first frequency to obtain a data segment corresponding to each channel of the at least two adjacent channels includes: The sub-filtering unit performs filtering processing on the second digital signal acquired by the resampling unit to obtain a data segment corresponding to a channel; the passing bandwidth of the sub-filtering units included in different second digital processing links corresponds to different channels of the at least two adjacent channels; The step of determining, from the data segments corresponding to each of the at least two adjacent channels, a data segment to be transmitted using the target protocol type comprises: The CCA unit performs carrier sensing on a data segment of a channel obtained after filtering by the corresponding sub-filtering unit to determine whether the data segment is transmitted through the target protocol type.
9. The method according to claim 3, characterized in that: Each of the second digital processing links further includes a frequency shift unit coupled to the resampling unit, a sub-filter unit coupled to the frequency shift unit, and a CCA unit coupled to the sub-filter unit. After the first digital signal is input to the resampling unit for resampling processing to obtain the second digital signal, the method further includes: The frequency shift unit performs frequency shift processing on the second digital signal; when the frequency shift units included in different second digital processing links perform frequency shift processing, the corresponding frequency shift lengths are different, and the frequency shift lengths correspond to different channels in at least two adjacent channels; The step of digitally processing the second digital signal using the first frequency to obtain a data segment corresponding to each channel of the at least two adjacent channels includes: The sub-filtering unit performs filtering processing on the second digital signal after the frequency shift processing to obtain a data segment corresponding to a channel; the passing bandwidth of the sub-filtering units included in different second digital processing links is the same; The step of determining, from the data segments corresponding to each of the at least two adjacent channels, a data segment to be transmitted using the target protocol type comprises: The CCA unit performs carrier sensing on a data segment of a channel obtained after the filtering process to determine whether the data segment is transmitted through a target protocol type.
10. The method according to any one of claims 1 to 9, characterized in that: The electronic device further includes a radio frequency module. After acquiring the first sampling signal through the first antenna, the method further includes: The radio frequency module performs down-conversion processing on the first sampling signal so that the center frequency point of the first sampling signal after the down-conversion processing is a preset center frequency point.
11. The method according to any one of claims 1 to 10, characterized in that: The step of acquiring a first sampling signal through a first antenna includes: Controlling the first antenna to receive electromagnetic waves of at least two adjacent channels, and converting the electromagnetic waves of the at least two adjacent channels into a first analog signal; Perform radio frequency processing on the first analog signal to obtain a first sampling signal, wherein the radio frequency processing includes amplification processing and / or filtering processing.
12. The method according to any one of claims 1 to 11, characterized in that: Determining, from the data segments corresponding to each of the at least two adjacent channels, a data segment to be transmitted using the target protocol type, comprises: Carrier sensing is performed on the data segments corresponding to each channel of the at least two adjacent channels to determine, according to a Baker code of the target protocol type preset in the electronic device, a data segment transmitted using the target protocol type from the data segments corresponding to each channel.
13. The method according to any one of claims 1 to 12, characterized in that The target protocol type is 802.11b protocol.
14. The method according to any one of claims 1 to 13, characterized in that: The first antenna is a wireless network WiFi antenna, and the working frequency band of the first antenna includes 2.4 GHz-2.5 GHz.
15. An electronic device, characterized in that: include: a first antenna; a memory and one or more processors; The memory is coupled to the processor; Baseband chip; wherein the baseband chip is used to perform the method according to any one of claims 2 to 9; One or more computer programs are stored in the memory, and the one or more computer programs include instructions. When the instructions are executed by the electronic device, the electronic device executes the signal processing method according to any one of claims 1 to 14.
16. A computer-readable storage medium, characterized in that: The method comprises computer instructions, which, when executed on an electronic device, enable the electronic device to execute the signal processing method according to any one of claims 1 to 14.