A signal scanning method and electronic device

By using a multi-channel scanning method, multiple Wi-Fi channels are scanned simultaneously using multiple signal processing links, which solves the problem of low efficiency in single-channel scanning, enables rapid identification of target channels, and reduces power consumption and time overhead.

CN119277478BActive Publication Date: 2025-10-24HONOR DEVICE CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202410313099.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-03-15
Publication Date
2025-10-24
Estimated Expiration
2044-03-15

AI Technical Summary

Technical Problem

In the prior art, the process of determining the target channel by single-channel scanning when receiving Wi-Fi signals is inefficient, resulting in significant power consumption and time overhead.

Method used

A multi-channel scanning method is adopted, which receives broadband signals through the antenna module, processes them through the radio frequency module, and performs digital processing through the baseband module. Multiple signal processing links are used to scan multiple channels simultaneously, and the target channel is quickly determined by combining carrier sensing and matching processing.

Benefits of technology

It improves the efficiency of channel scanning, reduces unnecessary power consumption and time overhead, and can quickly identify channels using the target protocol type.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119277478B_ABST
    Figure CN119277478B_ABST
Patent Text Reader

Abstract

Embodiments of the present application provide a signal scanning method and an electronic device, and relate to the technical field of electronic devices. The method can enable the electronic device to support simultaneous scanning and analysis of multiple channels. The method is applied to an electronic device, and the method comprises: the electronic device controlling an antenna module to receive a first antenna signal, the bandwidth of the first antenna signal being a first bandwidth. The electronic device controls a radio frequency module to perform radio frequency processing on the first antenna signal to obtain a first analog signal. The first analog signal comprises signals transmitted on M channels. The bandwidth of the first analog signal is a second bandwidth corresponding to the M channels, and the second bandwidth is less than or equal to the first bandwidth. The electronic device controls a baseband module to perform digital processing on a first digital signal corresponding to the first analog signal, and determines a target channel in the M channels corresponding to the first analog signal. The electronic device performs analysis and processing on data transmitted on the target channel.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] Embodiments of the present application relate to the technical field of electronic devices, and in particular to a signal scanning method and an electronic device. BACKGROUND

[0002] In a Wi-Fi-based wireless signal receiving process, an electronic device can determine a target channel for subsequent data communication through channel scanning. For example, the target channel can be a channel for communication using a preset target protocol type. For example, the target protocol type can be 802.11b.

[0003] Generally, the channel scanning scheme can include single-channel scanning. By sequentially scanning 13 channels specified by Wi-Fi-related protocols and analyzing the data obtained by each scan, the protocol type used by each channel can be determined. Then, the target channel can be determined according to the channel using the target protocol type. This can result in a lack of efficiency in the process of determining the target channel by the electronic device. SUMMARY

[0004] The present application provides a signal scanning method and an electronic device, which can enable the electronic device to support simultaneous scanning and analysis of multiple channels.

[0005] To achieve the above technical purpose, the present application adopts the following technical solutions:

[0006] In a first aspect, a signal scanning method is provided, which is applied to an electronic device. The electronic device includes an antenna module, a radio frequency module, and a baseband module. The environment in which the electronic device is currently located includes multiple WIFI signals, different WIFI signals use different channels for transmission, and among the multiple WIFI signals, at least one signal uses a target protocol type for data transmission. The method includes: the electronic device controls the antenna module to receive a first antenna signal, the bandwidth of the first antenna signal being a first bandwidth. The electronic device controls the radio frequency module to perform radio frequency processing on the first antenna signal to obtain a first analog signal. The first analog signal includes signals transmitted on M channels. Any one of the M channels is a channel used for WIFI communication. The bandwidth of the first analog signal is a second bandwidth corresponding to the M channels, and the second bandwidth is less than or equal to the first bandwidth. The electronic device controls the baseband module to perform digital processing on a first digital signal corresponding to the first analog signal to determine a target channel among the M channels included in the first analog signal. The electronic device performs analysis and processing on data transmitted on the target channel.

[0007] For example, the operating frequency range of the antenna module can include a 2.4 GHz frequency range of 2.4 GHz to 2.5 GHz.

[0008] In this way, the electronic device can simultaneously perform data acquisition of multiple channels, that is, realize multi-channel scanning. In some implementations of the scheme, the first bandwidth can be 100 MHz of the full frequency band of 2.4 GHz. The second bandwidth corresponds to the number of M. For example, when M is 5, the second bandwidth is 40 MHz. For another example, when M is 4, the second bandwidth is 35 MHz, and so on. After obtaining the analog signals corresponding to the number of channels currently required to be scanned from the signals of the full frequency band, the electronic device in the example can also provide multi-channel digital signal processing capability. Through the multi-channel digital signal processing capability, the electronic device can determine whether there is a target channel from the M channels. In this way, because multiple channels are scanned at the same time, the scanning efficiency is effectively improved.

[0009] Optionally, the baseband module includes N frequency shift units, N filter units, and N listening units. An input end of each of the N frequency shift units is coupled with the radio frequency module. An input end of each of the N filter units is coupled with an output end of a frequency shift unit. An input end of each of the N listening units is coupled with an output end of a filter unit. One frequency shift unit, one filter unit, and one listening unit constitute a signal processing link. Each of the N signal processing links in the baseband module is configured to perform digital processing on data of a channel to determine whether the channel is a target channel.

[0010] Optionally, the electronic device further includes an analog-to-digital conversion unit. An input end of the analog-to-digital conversion unit is coupled with an output end of the radio frequency module. A first output end of the analog-to-digital conversion unit is coupled with an input end of the baseband module. The analog-to-digital conversion unit is configured to perform digital sampling on the first analog signal to obtain a first digital signal corresponding to the first analog signal. An input end of each of the N frequency shift units is coupled with an output end of the analog-to-digital conversion unit, so that the frequency shift unit obtains the first digital signal.

[0011] Optionally, the frequency shift unit is configured to perform frequency shift processing on the first digital signal to obtain a second digital signal. The intermediate frequency of the second digital signal is 0 MHz. In the second digital signal, a data segment with a frequency domain bandwidth of -11 MHz to 11 MHz corresponds to complete data of a WIFI channel.

[0012] Optionally, the frequency shift processing units have different frequency domain lengths.

[0013] Optionally, each filter unit has a passband of 22 MHz and a center frequency of 0 MHz.

[0014] The scheme example provides a specific baseband module internal composition. The input signal can be subjected to digital down-conversion processing by the frequency shift unit, thereby moving the data center carried by the channel processed on the link to 0MHz. By the filtering unit, the 22MHz bandwidth signal on and below 0MHz can be screened out, and the 22MHz bandwidth signal can be a signal corresponding to the transmission of a WIFI channel. Thus, by the carrier sensing unit, the data on each channel can be subjected to carrier sensing (i.e., matching processing), so as to simultaneously determine whether the target channel using the target protocol type to transmit data is included in the plurality of WIFI channels.

[0015] Optionally, the radio frequency module performs radio frequency processing on the first sampling signal, including: the radio frequency module performs analog amplification processing on the first sampling signal according to the first radio frequency gain.

[0016] Optionally, before the radio frequency module performs radio frequency processing on the first sampling signal, the method further includes: the radio frequency module acquires the first radio frequency gain.

[0017] Optionally, the electronic device further includes an automatic gain control unit. An output end of the automatic gain control unit is coupled with the radio frequency module. The radio frequency module acquires the first radio frequency gain, including: the radio frequency module acquires the first radio frequency gain from the automatic gain control unit.

[0018] Optionally, the method further includes: the automatic gain control unit determines the first radio frequency gain according to the first digital signal.

[0019] Optionally, a first digital processing unit is further arranged between the analog-to-digital conversion unit and the automatic gain control unit. A first input end of the automatic gain control unit is coupled with an output end of the first digital processing unit. A first input end of the first digital processing unit is coupled with a second output end of the analog-to-digital conversion unit. Before the first radio frequency gain is determined, the method further includes: the first digital processing unit acquires a second digital signal according to the first digital signal. The automatic gain control unit acquires the second digital signal from the first digital processing unit. The automatic gain control unit determines the first radio frequency gain according to the first digital signal, including: the automatic gain control unit determines the first radio frequency gain according to the second digital signal corresponding to the first digital signal.

[0020] Optionally, the first digital processing unit includes a half-band FIR filter.

[0021] Optionally, the determination of the first radio frequency gain includes: the automatic gain control unit determines the first radio frequency gain according to a digital average power of the second digital signal.

[0022] Thus, an implementation of a radio frequency gain control scheme is provided. The scheme provided in this example can be applied in a multi-channel scanning process, for controlling the analog signal amplification gain.

[0023] Optionally, the radio frequency module performs radio frequency processing on the first sampling signal, and the method further comprises: the radio frequency module performing analog amplification processing on the first sampling signal according to a second radio frequency gain.

[0024] Optionally, a second input end of the first digital processing unit is coupled with an output end of each of the N frequency shift units. Before the radio frequency module performs the analog amplification processing according to the second radio frequency gain, the method further comprises: the first digital processing unit obtaining a third digital signal according to a first target signal, and the automatic gain control unit determining the second radio frequency gain according to the third digital signal from the first digital processing unit. The third digital signal is transmitted by a first frequency shift unit to the first digital processing unit, the first frequency shift unit is included in the N frequency shift units, and the first frequency shift unit is a frequency shift unit on a signal processing link for data transmission using a target protocol type.

[0025] Thus, another implementation of a radio frequency gain control scheme is provided. The scheme provided in this example can be applied in a multi-channel scanning process, for controlling the analog signal amplification gain. In this example, the second radio frequency gain can be related to the power size of the data transmitted on the target channel. In this way, the analog amplification processing performed by the second radio frequency gain can better amplify the data on the target channel.

[0026] Optionally, the listening unit is configured with a reference Baker code corresponding to the target protocol type. The method further comprises: the listening unit performing matching processing on the first data segment from the filtering unit according to the reference Baker code, to obtain a number of correlation peaks corresponding to the first data segment and the reference Baker code. The listening unit determines that the first data segment is transmitted by the target protocol type according to the number of correlation peaks being greater than a preset threshold.

[0027] Thus, a specific implementation of matching processing in a carrier sensing process is provided, so that the listening unit can quickly determine whether the target channel is included in the plurality of channels currently scanned.

[0028] Optionally, when the electronic device starts to work, the electronic device configures a state of each of the N signal processing links as state0, the state0 indicating that a matching process is performed on a listening unit in the corresponding signal processing link. After the listening unit determines that the number of correlation peaks is greater than a preset threshold, before the electronic device determines that the first data segment is transmitted by the target protocol type, the method further includes: the electronic device configures a state of a first signal processing link for transmitting the first data segment as state1, the state1 indicating that the first data segment is matched successfully.

[0029] Optionally, after the electronic device configures the state of the first signal processing link for transmitting the first data segment as state1, the method further includes: the electronic device configures a stop identifier stop() of the first signal processing link as a first value, the stop identifier stop() configured as the first value indicating that the matching process is no longer performed on the first signal processing link; the electronic device configures a stop identifier stop() of a second signal processing link as the first value, the second signal processing link being a link adjacent to the first signal processing link; performing a start of frame delimiter SFD check and a cyclic redundancy code CRC check on the first data segment; in a case where the SFD check and the CRC check are both successful, the method further includes: configuring the state of the first signal processing link as state3, the state3 indicating that the first data segment is transmitted by the target protocol type.

[0030] Optionally, the electronic device further includes an analysis module, and the method further includes: the electronic device controls the analysis module to perform digital analysis on data transmitted by a signal transmission link in the state of state3. After the analysis process on the first data segment is completed, the method further includes: configuring the stop() of the first signal processing link and the second signal processing link as a second value, the stop identifier stop() configured as the second value indicating that the matching process of the corresponding signal processing link is not inhibited.

[0031] The scheme implementation provides a listening control scheme implementation based on a state machine. The scheme can be applied to a multi-channel scanning process, and is used for controlling a listening and analysis occasion.

[0032] In a second aspect, an electronic device is provided, which includes an antenna module, a memory and one or more processors. The memory and the processor are coupled. The antenna module and the processor are coupled. The memory is configured to store computer program code including computer instructions, which, when executed by the processor, causes the electronic device to perform the method provided in the first aspect and any possible design thereof.

[0033] In a third aspect, a chip system is provided for an electronic device. The chip system includes one or more interface circuits and one or more processors. The interface circuits and the processors are interconnected by wires. The interface circuits are configured to receive signals from a memory of the electronic device and send the signals to the processors, the signals including computer instructions stored in the memory. When the processors execute the computer instructions, the electronic device performs the method provided in the first aspect and any possible implementation thereof.

[0034] Optionally, the chip system is configured with at least two signal processing links, which are configured to perform signal processing on data of different channels to determine whether a preset target protocol type is used to transmit data on the corresponding channel. For example, the chip system can correspond to a baseband module or a baseband processor configured in the electronic device.

[0035] In a fourth aspect, the present application also provides a computer-readable storage medium, including computer instructions, which, when executed on an electronic device, cause the electronic device to perform the technical solutions provided in the first aspect and any possible implementation thereof.

[0036] In a fifth aspect, the present application also provides a computer program product, which, when executed on a computer, causes the computer to perform the technical solutions provided in the first aspect and any possible implementation thereof.

[0037] It can be understood that the technical solutions provided in the second aspect to the fifth aspect of the present application can correspond to the first aspect and any possible implementation thereof, and thus can achieve similar beneficial effects, which will not be described here. BRIEF DESCRIPTION OF DRAWINGS

[0038] Figure 1 A schematic diagram of channel division for WIFI communication;

[0039] Figure 2 A schematic diagram of a communication scenario;

[0040] Figure 3 A schematic diagram of the composition of an electronic device;

[0041] Figure 4 A logic diagram of single-channel scanning;

[0042] Figure 5 A schematic diagram of the composition of an electronic device provided by an embodiment of the present application;

[0043] Figure 6 A logic diagram of division of a multi-channel sampling signal provided by an embodiment of the present application;

[0044] Figure 7A A schematic diagram of a processing logic for analog down-conversion is provided for an embodiment of the present application;

[0045] Figure 7B A schematic diagram of a matching processing logic is provided for an embodiment of the present application;

[0046] Figure 7C A schematic diagram of a state machine management logic is provided for an embodiment of the present application;

[0047] Figure 8 A schematic diagram of a channel scanning component is provided for an embodiment of the present application;

[0048] Figure 9 A schematic diagram of a circuit logic for multi-channel scanning is provided for an embodiment of the present application;

[0049] Figure 10 A schematic diagram of a circuit logic for multi-channel scanning is provided for an embodiment of the present application;

[0050] Figure 11 A schematic diagram of a circuit logic for multi-channel scanning is provided for an embodiment of the present application;

[0051] Figure 12 A schematic diagram of a circuit logic for multi-channel scanning is provided for an embodiment of the present application;

[0052] Figure 13 A schematic diagram of a circuit logic for multi-channel scanning is provided for an embodiment of the present application;

[0053] Figure 14 A schematic diagram of a circuit logic for multi-channel scanning is provided for an embodiment of the present application;

[0054] Figure 15 A schematic diagram of a circuit logic for multi-channel scanning is provided for an embodiment of the present application;

[0055] Figure 16 A schematic diagram of a circuit logic for multi-channel scanning is provided for an embodiment of the present application;

[0056] Figure 17 A schematic diagram of a circuit logic for multi-channel scanning is provided for an embodiment of the present application;

[0057] Figure 18 A schematic diagram of a circuit logic for multi-channel scanning is provided for an embodiment of the present application;

[0058] Figure 19 A schematic diagram of an electronic device is provided for an embodiment of the present application;

[0059] Figure 20A schematic diagram of a chip system according to an embodiment of the application is shown in Fig. 1. DETAILED DESCRIPTION

[0060] Hereinafter, the terms "first" and "second" are used only for the purpose of description, and can not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined with "first" and "second" can explicitly or implicitly include one or more of the features. In the description of the embodiments, unless otherwise specified, the meaning of "a plurality of" is two or more.

[0061] The electronic device can communicate with other devices through a wireless fidelity (Wi-Fi) network. This communication process can be referred to as WIFI communication. Generally, the frequency band used for WIFI communication can include a 2.4 GHz frequency band and / or a 5 GHz frequency band. In the embodiments of the present application, the electronic device uses the 2.4 GHz frequency band for WIFI communication as an example.

[0062] When WIFI communication is performed, the channel and / or protocol type used can be different.

[0063] For example, referring to Figure 1 , the channels used in the WIFI communication process are schematically divided. The electronic device can use one of the channels in Figure 1 to perform data transmission when WIFI communication is performed with any other device.

[0064] As shown in Figure 1 , when WIFI communication based on the 2.4 GHz frequency band is performed, the available channels can include channel 1 to channel 14. Among them, the frequency coverage of each channel increases in turn. Channel 1 to channel 13 are commonly used channels. Channel 14 is generally not used for data transmission.

[0065] In the example as shown in Figure 1 , in the channel 1 to channel 13 and channel 14, the bandwidth of each channel is 22 MHz.

[0066] In channel 1 to channel 13, the spacing between the starting frequencies of two adjacent channels is 5 MHz. For example, the frequency coverage of channel 1 is 2401 MHz to 2423 MHz. The frequency coverage of channel 2 is 2406 MHz to 2428 MHz. And so on.

[0067] In the example as shown in Figure 1In the example, the center frequencies of the channels are also shown. For example, the center frequency of channel 1 is 2412 MHz, the center frequency of channel 2 is 2417 MHz, the center frequency of channel 3 is 2422 MHz, the center frequency of channel 4 is 2427 MHz, the center frequency of channel 5 is 2432 MHz, the center frequency of channel 6 is 2437 MHz, the center frequency of channel 7 is 2442 MHz, the center frequency of channel 8 is 2447 MHz, the center frequency of channel 9 is 2452 MHz, the center frequency of channel 10 is 2457 MHz, the center frequency of channel 11 is 2462 MHz, the center frequency of channel 12 is 2467 MHz, the center frequency of channel 13 is 2472 MHz, and the center frequency of channel 14 is 2484 MHz.

[0068] In the WIFI communication, the available protocol types can include any of the following: 802.11b, 802.11g, 802.11n, etc.

[0069] In some cases, the location where the electronic device is located can include multiple WIFI networks.

[0070] For example, in the WIFI communication scenario shown in Figure 1 , the electronic device (e.g., device 101) can be located in the coverage of the WIFI networks established by device 102, device 103, and device 104. Figure 2

[0071] As shown in Figure 2 , the electronic device (e.g., device 101) can be located in the coverage of the WIFI networks established by device 102, device 103, and device 104.

[0072] In this example, different devices establishing different WIFI networks can communicate with device 101 through different channels and / or protocol types.

[0073] For example, device 102 can use channel 3 to communicate with device 101 through 802.11g;

[0074] Device 103 can use channel 6 to communicate with device 101 through 802.11n;

[0075] Device 104 can use channel 9 to communicate with device 101 through 802.11b.

[0076] In some implementations of the present application, the electronic device can configure different components to implement the transmission and reception of WIFI signals in the WIFI communication process.

[0077] For example, as shown in Figure 3 ​As shown, the electronic device can include an antenna 301, a radio frequency (RF) module 302, an analog-to-digital (AD) conversion unit 303, and a baseband module 304 connected in sequence.

[0078] Taking the electronic device receiving a WIFI signal as an example.

[0079] The antenna 301 can be used to receive electromagnetic waves in the 2.4G frequency band and convert the received electromagnetic waves into analog signals. The analog signals can be transmitted to the RF module 302. The analog signals transmitted to the RF module 302 can also be referred to as radio frequency signals.

[0080] The RF module 302 can be used to perform radio frequency processing on the radio frequency signals. The radio frequency processing includes but is not limited to analog amplification processing, analog filtering, analog up / down conversion, etc.

[0081] The radio frequency signals processed by the radio frequency processing can be transmitted to the AD conversion unit 303.

[0082] The AD conversion unit 303 can perform digital sampling on the received radio frequency signals, thereby obtaining corresponding digital signals.

[0083] The AD conversion unit can also transmit the digital signals to the baseband module 304.

[0084] In this example, the baseband module 304 can provide digital processing capabilities. The digital processing capabilities include but are not limited to digital up / down conversion, digital resampling, digital filtering, digital analysis, etc. on the digital signals.

[0085] In this way, the baseband module 304 can obtain the effective content in the WIFI signal through the received digital signals.

[0086] In combination with the scenario shown in Figure 2 In some cases, the electronic device (such as device 101) can receive WIFI signals in various WIFI networks, and through the processing of various modules as shown in Figure 3 The electronic device can filter target data from the received multiple WIFI signals for subsequent data reception. The target data can be signals configured in the electronic device and transmitted using a target protocol type. Correspondingly, the channel receiving the target data can be the target channel.

[0087] Taking the target protocol type as 802.11b as an example.

[0088] The electronic device can scan each channel as shown in Figure 1 respectively, and through Figure 3The various modules shown process the received single channel data, and determine whether the current scanned channel is the target channel through the baseband module 304.

[0089] As shown in FIG. 3, the electronic device can start to perform the scanning analysis from channel 1. Figure 4

[0090] For example, the electronic device can control the antenna 301 to receive electromagnetic waves of the frequency band corresponding to channel 1, and convert the electromagnetic waves into an analog signal. In the scenario shown in FIG. 3, no device transmits data through channel 1, and the received signal does not include valid data. In this way, the signal strength of channel 1 is weak or no data can be received. Then, the electronic device can determine that channel 1 has no data transmission. The scanning analysis of the next channel (such as channel 2) can be continued. Figure 1

[0091] The scanning process of channel 2 is similar, and then the electronic device can continue to scan channel 3.

[0092] As shown in FIG. 3, the electronic device can control the antenna 301 to receive electromagnetic waves of the frequency band corresponding to channel 3, and convert the electromagnetic waves into an analog signal (such as an antenna signal a1). That is, the antenna signal a1 is obtained by scanning channel 3. In the scenario shown in FIG. 3, there is a device 11 that communicates with the electronic device through channel 3, and the antenna signal a1 can include valid data. The electronic device can continue subsequent processing. Figure 4 Figure 1

[0093] The antenna 301 can transmit the antenna signal a1 to the RF module 302. The RF module 302 can perform radio frequency domain processing on the antenna signal a1 to obtain an analog signal (such as a radio frequency modulation signal b1) after amplification, mixing (MIX), and filtering processing. The RF module 302 can send the radio frequency modulation signal b1 to the AD conversion unit 303. The AD conversion unit 303 performs digital sampling on the radio frequency modulation signal b1 to obtain a corresponding digital signal c1. The digital signal c1 can be transmitted to the baseband module 304 for analysis. For example, the baseband module 304 can analyze the preamble and / or frame header information of the digital signal c1 to determine that the protocol type used by the signal received by channel 3 is 802.11g.

[0094] In this way, the electronic device can determine that although there is data transmission on the current channel 3, the target protocol type is not used. The channel 3 is not the target channel.

[0095] The electronic device can continue to scan and analyze other channels.

[0096] ​​​​For example, when channel 6 is scanned, the corresponding antenna signal a2 can be acquired. Then the RF module 302 performs RF domain processing on the antenna signal a2 to acquire the RF modulated signal b2. After analog-digital conversion, the digital signal c2 corresponding to the RF modulated signal b2 is acquired. Based on the analysis of the digital signal c2, it can be determined that the protocol type used by the signal received by the channel 6 is 802.11n.

[0097] For another example, when channel 9 is scanned, the corresponding antenna signal a3 can be acquired. Then the RF module 302 performs RF domain processing on the antenna signal a3 to acquire the RF modulated signal b3. After analog-digital conversion, the digital signal c3 corresponding to the RF modulated signal b3 is acquired. Based on the analysis of the digital signal c3, it can be determined that the protocol type used by the signal received by the channel 9 is 802.11b.

[0098] In this way, the electronic device can determine that the channel 9 is a target channel using the target protocol type.

[0099] In this application, the one-by-one scanning scheme based on a single channel as shown in the above Figure 4 may be referred to as single-channel scanning.

[0100] Based on the single-channel scanning, although the target channel using the target protocol type can be finally determined, the single-channel scanning performed before the channel 9 (i.e., the target channel) is scanned is invalid. As a result, relatively significant and invalid power consumption and time overhead are generated. In the case where the channel number of the target channel is greater than 9 (such as 10, 13, etc.), the invalid power consumption and time overhead are more significant.

[0101] To this end, the embodiments of the present application provide a multi-channel scanning scheme, so that the electronic device (such as the device 101) can perform simultaneous scanning and matching processing of two or more channels according to actual conditions. In this way, the electronic device can quickly determine the target channel using the target protocol type for data transmission in the current environment. In some embodiments of the present application, based on the scheme provided in the present application, the electronic device can also support single-channel scanning according to the current scene requirement.

[0102] The scheme will be described in detail below with reference to the accompanying drawings.

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

[0104] Exemplarily, the electronic device may have WIFI communication capability in the 2.4 GHz frequency band.

[0105] In some embodiments, the electronic device involved in the embodiments of the present application may include a processor, an external memory interface, an internal memory, a universal serial bus (USB) connector, a charging management module, a power management module, a battery, antenna 1, antenna 2, a mobile communication module, a wireless communication module, an audio module, a speaker, a receiver, a microphone, a headphone jack, a sensor module, a button, a motor, an indicator, a camera module, a display, and a subscriber identification module (SIM) card interface, etc. The sensor module may include a pressure sensor, a gyroscope sensor, an air pressure sensor, a magnetic sensor, an acceleration sensor, a distance sensor, a proximity light sensor, a fingerprint sensor, a temperature sensor, a touch sensor, an ambient light sensor, a bone conduction sensor, etc.

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

[0107] The processor can generate operation control signals based on instruction opcodes and timing signals to complete the control of instruction fetching and execution.

[0108] The processor may also include a memory for storing instructions and data. In some embodiments, the memory in the processor may be a cache memory. This memory can store instructions or data that have been used by the processor or that are frequently used. When the processor needs to use the instruction or data, it can directly access it from the memory. This avoids duplicate accesses, reduces processor latency, and thus improves system efficiency.

[0109] In some embodiments, the processor may include one or more interfaces. The interface may include an integrated circuit (IC) interface, an integrated circuit built-in audio (IC 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. The processor can be connected to modules such as a touch sensor, an audio module, a wireless communication module, a display screen, and a camera module through at least one of the above interfaces.

[0110] It can be understood that the interface connection relationship between the modules shown in the embodiments of the present application is only illustrative and does not constitute a structural limitation on the electronic device. In some other embodiments of the present application, the electronic device can use different interface connection manners or a combination of multiple interface connection manners.

[0111] It should be noted that the structure shown in the embodiments of the present application does not constitute a specific limitation on the electronic device. In some other embodiments of the present application, the electronic device can include more or fewer components than described above, or combine certain components, or split certain components, or different component arrangements. Any component involved in the above description can be implemented in hardware, software, or a combination of software and hardware.

[0112] In the present example, the wireless communication function of the electronic device can be implemented through the antenna 1, the antenna 2, the mobile communication module, the wireless communication module, the modem processor, and the baseband processor, etc.

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

[0114] The mobile communication module can provide a solution including 2G / 3G / 4G / 5G wireless communication applied to the electronic device. The mobile communication module can include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The mobile communication module can receive electromagnetic waves from the antenna 1, and perform filtering, amplification, etc. on the received electromagnetic waves, and transmit them to the modem processor for demodulation. The mobile communication module can also amplify the signals modulated by the modem processor and convert them into electromagnetic waves radiated through the antenna 1. In some embodiments, at least part of the functional modules of the mobile communication module can be arranged in the processor. In some embodiments, at least part of the functional modules of the mobile communication module and at least part of the modules of the processor can be arranged in the same device.

[0115] The modem processor can include a modulator and a demodulator. The modulator is configured to modulate a low-frequency baseband signal to be transmitted into a medium-high frequency signal. The demodulator is configured to demodulate a received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. The low-frequency baseband signal processed by the baseband processor is transmitted to the application processor. The application processor outputs a sound signal through an audio device (not limited to a speaker, a receiver, etc.), or displays an image or a video through a display screen. In some embodiments, the modem processor can be a separate device. In other embodiments, the modem processor can be independent of the processor, and can be disposed in the same device as the mobile communication module or other functional modules. For example, the modem processor can be integrated in the baseband processor.

[0116] The wireless communication module can provide a wireless communication solution applied to the electronic device, including wireless local area networks (WLAN) (such as a Wi-Fi network), Bluetooth (BT), Bluetooth low energy (BLE), ultra wide band (UWB), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared technology (IR), and the like. The wireless communication module can be one or more devices integrated with at least one communication processing module. The wireless communication module receives electromagnetic waves via the antenna 2, performs frequency modulation and filtering processing on the electromagnetic wave signal, and transmits the processed signal to the processor. The wireless communication module can also receive a signal to be transmitted from the processor, perform frequency modulation and amplification, and radiate the signal to the antenna 2 as electromagnetic waves.

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

[0118] The electronic device provided by the embodiments of the present application has the above composition, and can be used to support single-channel scanning as shown in Figure 4 In addition, the electronic device can also be used to support multi-channel scanning at the same time. The specific implementation is described in detail later.

[0119] It should be noted that the composition of the electronic device provided in the above examples is only an example and does not constitute a limitation on the electronic device. In other embodiments, the electronic device can also have other compositions.

[0120] For example, referring to Figure 5 , another composition of the electronic device provided by the embodiments of the present application is shown.

[0121] As shown in Figure 5As shown, in this example, the electronic device can include an antenna module 401, an RF module 402, an AD conversion unit 403, a control module 405, a baseband module 440, and the like.

[0122] The following will be illustrated respectively.

[0123] In some embodiments of the present application, the antenna module 401 can be used to receive WIFI signals. The antenna module 401 can include one or more antennas. The one or more antennas can include an antenna whose operating frequency band covers the 2.4GHz frequency band. For example, the 2.4GHz frequency band can include the frequency band from 2.4Hz to 2.5Hz.

[0124] In the following description, it is assumed that the one or more antennas of the antenna module 401 include a WIFI antenna whose operating frequency band covers the 2.4GHz frequency band.

[0125] In this way, when the antenna module 401 is working, all data in the 2.4GHz frequency band can be received through the WIFI antenna and the corresponding antenna signal AT1 can be obtained. The all data in the 2.4GHz frequency band can include data in a frequency domain of 100MHz from 2.4GHz to 2.5GHz. In this way, the antenna signal AT1 can include data corresponding to the frequency band of 100MHz from 2.4GHz to 2.5GHz.

[0126] In the present application, when the electronic device performs channel scanning of different quantities, the effective data required by the RF module 402, the baseband module 440, and the like can be included in the 100MHz antenna signal AT1.

[0127] In the following description, the required effective data is referred to as sampling data.

[0128] For example, it is assumed that the electronic device performs multi-channel scanning of 5 channels (referred to as 5-channel scanning for short).

[0129] In this example, the electronic device performs synchronous scanning of 5 channels each time the scanning is performed. Correspondingly, the frequency domain bandwidth of the sampling data can be 40MHz.

[0130] Reference Figure 6In the example, all data in the 100MHz frequency band corresponding to channel 1 to channel 13 (or channel 1 to channel 14) can be included in the antenna signal AT1. Then, when performing 5-channel scanning, the sampling data of the first scanning can be sampling data SD_A1, which can be the signal of the 2402MHz to 2442MHz part of the antenna signal AT1. Similarly to the first scanning, the sampling data of the second scanning can be sampling data SD_A2, which can include the signal of 2422MHz to 2462MHz. The sampling data of the third scanning can be sampling data SD_A3, which can include the signal of 2442MHz to 2482MHz.

[0131] It can be understood that, in the embodiment of the present application, since the 1MHz at the head of channel 1 and the 1MHz at the tail of channel 5 generally do not include valid data, the sampling data SD_A1 can cover 2402MHz to 2442MHz for subsequent processing to obtain the data segments of channel 1 to channel 5. Subsequently, similar descriptions are not repeated.

[0132] Thus, through 3 scans, the sampling data required for subsequent processing can be obtained from the 2.4GHz frequency band. Compared with single-channel scanning, the time consumption and power consumption of up to 10 scans for analysis can be saved. In the present application, using 40MHz as the scanning bandwidth in each scanning during the 5-channel scanning process is only an example, and in other implementations, the scanning bandwidth in each scanning can also be different from 40MHz.

[0133] In the example, as Figure 6 In the example, sampling data distribution examples in the 4-channel scanning, 3-channel scanning, and 2-channel scanning scenarios are also provided.

[0134] Taking 4-channel scanning as an example, the sampling data bandwidth in each scanning can be 35MHz. In this way, when performing 4-channel scanning, the sampling data of the first scanning can be sampling data SD_B1, which can be the signal of the 2402MHz to 2432MHz part of the antenna signal AT1. The sampling data of the second scanning can be sampling data SD_B2, which can be the signal of the 2417MHz to 2452MHz part of the antenna signal AT1. The sampling data of the third scanning can be sampling data SD_B3, which can be the signal of the 2432MHz to 2467MHz part of the antenna signal AT1. The sampling data of the fourth scanning can be sampling data SD_B4, which can be the signal of the 2447MHz to 2482MHz part of the antenna signal AT1. Through 4 scans, the data of the 13 channels can be obtained.

[0135] Taking 3-channel scanning as an example, the bandwidth of the sampling data required in each sampling can be 30 MHz. The sampling data can include sampling data SD_C1 and the like. The sampling data SD_C1 can be 2402 MHz to 2432 MHz in the antenna signal AT1. The sampling data SD_C1 can correspond to data including channel 1 to channel 3. Subsequent scanning can be implemented by a similar scheme to perform scanning of channel 3 to channel 5, channel 5 to channel 7, channel 7 to channel 9, channel 9 to channel 11, and channel 11 to channel 13.

[0136] Taking 2-channel scanning as an example, the bandwidth of the sampling data required in each sampling can be 25 MHz. The sampling data can include sampling data SD_D1 and the like. The sampling data SD_D1 can be 2402 MHz to 2427 MHz in the antenna signal AT1. The sampling data SD_D1 can correspond to data including channel 1 to channel 2. Subsequent scanning can be implemented by a similar scheme to perform scanning of channel 2 to channel 3, channel 3 to channel 4, channel 4 to channel 5, channel 5 to channel 6, channel 6 to channel 7, channel 7 to channel 8, channel 8 to channel 9, channel 9 to channel 10, channel 10 to channel 11, channel 11 to channel 12, and channel 12 to channel 13.

[0137] Similar to the above examples of multi-channel scanning, when the electronic device performs single-channel scanning, the sampling data required for each single-channel scanning can also be included in the antenna signal AT1 collected by the WIFI antenna.

[0138] In this application, as shown in the RF module 402 can be used for radio frequency processing of the antenna signal AT1. Figure 5

[0139] In some embodiments, the RF module 402 can include an analog amplification unit, a mixing unit, an analog filtering unit, and the like.

[0140] The analog amplification unit can include a low noise amplifier (LNA), the mixing unit can include a MIX component, and the analog filtering unit can include a low pass filter (LPF). In other embodiments, the components in the RF module 402 can also be flexibly configured according to actual needs. In different implementations, the components in the RF module 402 can be more than the above examples, or less than the above examples. In other implementations, the components in the RF module 402 can also be replaced by other forms of components with similar functions. The embodiments of the present application do not limit this.

[0141] The LNA can perform amplification processing on the analog signal. The parameters in the amplification processing process can include an analog gain, or an RF gain.​

[0142] The MIX component can provide an analog down-conversion process for the analog signal. For example, through the analog down-conversion process, the RF module 402 can move the center frequency point of the sampling signal included in the antenna signal AT1 to 0 MHz according to the current sampling signal.

[0143] For example, in combination with the example in Figure 7A , the center frequency point of the sampling data SD_A1 can be 2422 MHz. As shown in Figure 6 , the MIX component can be configured to move the antenna signal AT1 in the frequency domain by 2442 MHz through the analog down-conversion process. Thus, the center frequency point of the sampling data SD_A1 is adjusted from 2422 MHz to 0 MHz. Figure 7A For example, in combination with the example in

[0144] , the center frequency point of the sampling data SD_B1 can be 2419.5 MHz. As shown in Figure 6 , the MIX component can be configured to move the antenna signal AT1 in the frequency domain by 2419.5 MHz through the analog down-conversion process. Thus, the center frequency point of the sampling data SD_B1 is adjusted from 2419.5 MHz to 0 MHz. Figure 7A For example, in combination with the example in

[0145] , the center frequency point of the sampling data SD_C1 can be 2417 MHz. As shown in Figure 6 , the MIX component can be configured to move the antenna signal AT1 in the frequency domain by 2417 MHz through the analog down-conversion process. Thus, the center frequency point of the sampling data SD_C1 is adjusted from 2417 MHz to 0 MHz. Figure 7A For example, in combination with the example in

[0146] , the center frequency point of the sampling data SD_D1 can be 2414.5 MHz. As shown in Figure 6 , the MIX component can be configured to move the antenna signal AT1 in the frequency domain by 2414.5 MHz through the analog down-conversion process. Thus, the center frequency point of the sampling data SD_D1 is adjusted from 2414.5 MHz to 0 MHz. Figure 7AAs shown, the MIX component can be configured to shift the antenna signal AT1 by 2414.5 MHz in the frequency domain through analog down-conversion processing. Thus, the center frequency of the sampling data SD_D1 is adjusted from 2414.5 MHz to 0 MHz.

[0147] In this way, the center frequency of the required sampling data can be adjusted to 0 MHz after processing by the MIX component.

[0148] In the present example, the center frequency of the passband of the low-pass filter in the RF module 402 can be configured to be 0 MHz. The passband of the low-pass filter in the RF module 402 can be configured to be consistent with the sampling data bandwidth corresponding to the current scan.

[0149] For example, when the electronic device is currently performing 5-channel scanning, the passband of the low-pass filter in the RF module 402 can be configured to be 40 MHz; when the electronic device is currently performing 4-channel scanning, the passband of the low-pass filter in the RF module 402 can be configured to be 35 MHz; when the electronic device is currently performing 3-channel scanning, the passband of the low-pass filter in the RF module 402 can be configured to be 30 MHz; and when the electronic device is currently performing 2-channel scanning, the passband of the low-pass filter in the RF module 402 can be configured to be 25 MHz.

[0150] In this way, the sampling data corresponding to the current scan can be obtained through the low-pass filter in the RF module 402.

[0151] It should be noted that in some embodiments of the present application, the control module 405 as shown can be used to configure the various components in the RF module 402 according to the above logic, so that the RF module 402 can output sampling data corresponding to the current scan. Figure 5

[0152] In some implementations, multiple MIX components with different analog down-conversion capabilities can be configured in the RF module 402. For example, four MIX components can be configured in the RF module 402, including a MIX component for 2442 MHz analog down-conversion, a MIX component for 2419.5 MHz analog down-conversion, a MIX component for 2417 MHz analog down-conversion, and a MIX component for 2414.5 MHz analog down-conversion. In this way, the control module 405 can enable the corresponding MIX component to work and disable (or disconnect) other MIX components according to the number of channels currently scanned and the number of scans. Thus, the MIX component can achieve analog down-conversion corresponding to the current scan.

[0153] ​In other implementations, the RF module 402 may be configured with a MIX component with adjustable analog down-conversion capability. In this way, the control module 405 can adjust the analog down-conversion capability of the MIX component through control instructions based on the number of channels currently being scanned. This allows the MIX component to achieve analog down-conversion corresponding to the current scan.

[0154] Similar to the MIX component configuration, the low-pass filter in the RF module 402 can also be configured as a low-pass filter with multiple different filtering configurations (such as pass bandwidth), thereby controlling the module 405 to enable the corresponding low-pass filter to operate according to the number of channels currently being scanned; or, the low-pass filter in the RF module 402 can also be configured as a device with adjustable pass bandwidth, thereby controlling the module 405 to configure the pass bandwidth of the low-pass filter in the RF module 402 to correspond to the current scan according to the number of channels currently being scanned.

[0155] In such Figure 5 In the example, the AD conversion unit 403 can be used to perform analog-to-digital conversion on the sampled data. In different implementations, the AD conversion unit 403 can have different digital sampling frequencies. For example, the digital sampling frequency of the AD conversion unit 403 can be 80 MHz. In another example, the digital sampling frequency of the AD conversion unit 403 can be 160 MHz.

[0156] In some implementations, when the digital sampling frequency of the AD converter unit 403 differs from the design frequency of the backend components, a digital resampling module can be configured at the output of the AD converter unit 403. For example, if the digital sampling frequency of the AD converter unit 403 is 160 MHz and the design frequency of the backend components is 80 MHz, a 160 MHz to 80 MHz resampling module can be configured at the output of the AD converter unit 403 so that the backend components can obtain a signal with a digital sampling frequency of 80 MHz.

[0157] Thus, the AD conversion unit 403 can output a digital signal corresponding to the sampled data, which can be digitally processed by the baseband module 440 in the electronic device.

[0158] For example, Figure 5 As shown, the baseband module 440 may be configured with a signal division module 441, a matching module 442, a parsing module 443, and an automatic gain control (AGC) unit 444. In other embodiments, the baseband module 440 may be configured with more unit modules.

[0159] The signal division module 441 of the baseband module 440 may include a frequency shift unit group.

[0160] For example, the frequency shifting unit group can be configured to implement digital frequency shifting processing (referred to as frequency shifting processing) on the digital signal obtained by the AD conversion unit 403. In some implementations, the frequency shifting processing can be implemented by digital down conversion.

[0161] In some embodiments of the present application, the frequency shifting unit group can include one or more digital down converter (DDC) units.

[0162] For example, the frequency shifting unit group can include DDC1 to DDCn. Among them, the frequency shifting capabilities of different DDCs are relatively fixed, and the frequency shifting processing steps of different DDCs on the digital signal are different.

[0163] In this way, the signal division module can control the power-on work of different DDCs in different channels under the control of the control module 405, so as to realize the corresponding frequency shifting processing on different channels.

[0164] For example, the electronic device can support up to 5 channel scanning. The frequency shifting unit group can be configured with DDC1 to DDC5. Each DDC is connected in parallel with each other. Each DDC can obtain the digital signal output by the AD conversion unit 403. As an example, the frequency shifting processing capabilities of the DDC1 to DDC5 can include: DDC1 performs 0MHz frequency shifting processing, or DDC1 does not perform frequency shifting processing; DDC2 performs -2.5MHz and / or -5MHz frequency shifting processing; DDC3 performs 2.5MHz and / or 5MHz frequency shifting processing; DDC4 performs -7.5MHz and / or -10MHz frequency shifting processing; DDC5 performs 7.5MHz and / or 10MHz frequency shifting processing.

[0165] For example, the first scanning of 5 channel scanning of the electronic device. The digital signal can be input to DDC1 to DDC5 synchronously. Each DDC performs corresponding frequency shifting processing on the digital signal. Thus, after the frequency shifting processing of the 5 DDCs, the center frequency point of the digital signal can be moved to different positions on the 5 channels.

[0166] It can be understood that the sampling data corresponding to the first scanning of 5 channel scanning is the sampling data SD_A1 as shown in Figure 6 After the analog down conversion processing as shown in Figure 7A , the center frequency point of the sampling data is adjusted to 0MHz.

[0167] Since the sampling data includes data of 5 channels, the center frequency points of each channel correspond to: the center frequency point of channel 1 is -10 MHz, the center frequency point of channel 2 is -5 MHz, the center frequency point of channel 3 is 0 MHz, the center frequency point of channel 4 is 5 MHz, and the center frequency point of channel 5 is 10 MHz.

[0168] In this way, through the 0 MHz frequency shift processing of the DDC1, the center frequency point of the digital signal output by the DDC1 coincides with the center frequency point of channel 3.

[0169] Through the -5 MHz frequency shift processing of the DDC2, the center frequency point of channel 4 is moved to 0 MHz, and the center frequency point of the digital signal output by the DDC2 coincides with the center frequency point of channel 4.

[0170] Through the 5 MHz frequency shift processing of the DDC3, the center frequency point of channel 2 is moved to 0 MHz, and the center frequency point of the digital signal output by the DDC3 coincides with the center frequency point of channel 2.

[0171] Through the -10 MHz frequency shift processing of the DDC4, the center frequency point of channel 5 is moved to 0 MHz, and the center frequency point of the digital signal output by the DDC4 coincides with the center frequency point of channel 5.

[0172] Through the 10 MHz frequency shift processing of the DDC5, the center frequency point of channel 1 is moved to 0 MHz, and the center frequency point of the digital signal output by the DDC5 coincides with the center frequency point of channel 1.

[0173] In the present application, the signal division module 441 can also include a filter unit group. The filter unit group can include n digital filter units. For example, LPF1 to LPFn.

[0174] The n LPFs can be respectively configured at the output ends of the n DDCs. The filtering capabilities of the n LPFs are the same. For example, the pass frequencies of the n LPFs are all 0 MHz, and the pass bandwidths of the n LPFs are all 22 MHz, that is, the bandwidth of a single channel.

[0175] Taking a 5-channel scan as an example. The signal division module 441 can include LPF1 to LPF5.

[0176] The DDC1 can be configured on the same link as the LPF1. The DDC2 can be configured on the same link as the LPF2. The DDC3 can be configured on the same link as the LPF3. The DDC4 can be configured on the same link as the LPF4. The DDC5 can be configured on the same link as the LPF5.

[0177] Thus, through the digital filtering processing of the LPF1, the digital signal corresponding to channel 3 can be output. Through the digital filtering processing of the LPF2, the digital signal corresponding to channel 4 can be output. Through the digital filtering processing of the LPF3, the digital signal corresponding to channel 2 can be output. Through the digital filtering processing of the LPF4, the digital signal corresponding to channel 5 can be output. Through the digital filtering processing of the LPF5, the digital signal corresponding to channel 1 can be output.

[0178] Thus, through the processing of the signal division module 441, the separation of the multi-channel data can be realized.

[0179] It can be understood that, in the above examples, the 5-channel scanning is taken as an example. When performing scanning of other quantities, the control module 405 can also realize the separation of the digital signals transmitted on each channel based on similar logic.

[0180] In the present application, the data of each channel separated through the signal division module 441 can be respectively transmitted to the matching module 442 for processing.

[0181] In some embodiments, the matching module 442 can include a group of listening units. The group of listening units can include n Clear Channel Assessment (CCA) units.

[0182] The n CCAs can be respectively connected with one LPF. Thus, the n DDCs, the n LFPs, and the n CCAs can respectively constitute n signal processing links.

[0183] In the present example, the CCA can be used for matching processing, so as to determine whether the data on the current signal processing link is transmitted through the target protocol type.

[0184] In some embodiments, the matching processing can be based on the baker code of the target protocol type.

[0185] For example, in some embodiments, the CCA can perform correlation peak matching on the input data (i.e., the digital signal of one channel separated through the DDC and the LPF) and the baker code of the target protocol type.

[0186] When the peak value of the correlation peak is greater than a corresponding quantity threshold A, the corresponding matching is successful. That is, the data segment is transmitted using the target protocol type, and the channel used for receiving the data segment can be the target channel.

[0187] In the above examples, the matching processing can be performed on a complete data segment of one channel. In other examples, the matching processing can also be respectively performed on part of the complete data.

[0188] As shown in FIG. 1, the CCA can be configured with a sliding window. The length of the sliding window is less than the number of bits of the complete data. The CCA can slide the window over the input data and perform matching processing in each window. Figure 7B

[0189] When the data in a window matches the baker code of the target protocol type, the corresponding counter is incremented by 1.

[0190] For example, as shown in FIG. 2, when the data corresponding to the detection window 1 in the CCA performs correlation peak matching with the reference baker code, the peak value of the corresponding correlation peak 1 is greater than the peak threshold value. In this way, the counter is incremented by 1. Figure 7B

[0191] The CCA can continue to slide the window, such as by sliding by 1 bit, and perform matching processing on the data in the detection window 2. If the data in the detection window 2 has a correlation peak 2 with a peak value less than the peak threshold value with the reference baker code, the counter remains unchanged.

[0192] In this way, the CCA can continuously slide the window over the data segment 1 and ultimately determine whether the data segment 1 is transmitted using the target protocol type based on the relationship between the value of the counter and the preset quantity threshold B when the window is slid to the last bit.

[0193] For example, when the value of the counter reaches the corresponding quantity threshold B, the data segment corresponding to the counter matches the target protocol type. That is, the data segment is transmitted using the target protocol type, and the channel used to receive the data segment can be the target channel.

[0194] Alternatively, when the sliding window is slid to the end of the data segment of the channel, the value of the counter still does not reach the preset quantity threshold, and the data segment corresponding to the counter fails to match the target protocol type. That is, the data segment is not transmitted using the target protocol type.

[0195] Thus, the electronic device can implement synchronous processing of multiple channel data through cooperation of the various components described above, thereby determining whether the target channel is included in the multiple channels through one scan.

[0196] In some implementations, the CCA of the electronic device can mark the link corresponding to the target channel, thereby enabling other components to know that the data transmitted on the signal processing link is target data transmitted using the target protocol type.

[0197] ​​For example, the electronic device can configure an identifier (flag) for each signal processing link consisting of a DDC, LPF, and CCA. Generally, the flag can be configured to 0 by default. When the CCA on a link successfully matches and determines that the data segment processed on the channel is the target data, the CCA can configure the flag of the link to 1.

[0198] In other implementations, the identification bit of the flag may also be implemented by a hardware signal (such as a high or low level) of the corresponding link.

[0199] In other embodiments of the present application, the electronic device may further be configured with a signal management mechanism of a state machine. The control module 405 may manage the state of data on each signal transmission link according to the operation of the state machine.

[0200] As an example, Figure 7C As shown, in this example, the states of data on a signal transmission link may include: state 0 (state0), state 1 (state1), state 2 (state2), and state 3 (state3).

[0201] State 0 corresponds to the initial state. State 1 corresponds to the state where the correlation peak is successfully matched. State 2 corresponds to the state where data verification fails. State 3 corresponds to the state where data verification succeeds.

[0202] The following explains them separately.

[0203] It should be noted that, in this application, the status parameters of the data may include: FlagSync(i), stop(i), CRC_ERROR_FLAG(i), and SFD_ERROR_FLAG(i), etc.

[0204] Here, i indicates different signal transmission links. For example, if an electronic device supports up to five multi-channel scans, it can be configured with five signal processing links. Each signal processing link can include a DDC, an LPF, and a CCA. Thus, the values ​​of i can include 1, 2, 3, 4, and 5. For example, i = 1 corresponds to data on signal processing link 1. i = 2 corresponds to data on signal processing link 2. And so on.

[0205] For example, when a 5-channel scan is currently being performed, when the CCA starts to detect data from the 5 signal transmission links, the state of each data may be state0.

[0206] When the data is in state 0, stop(i) = 0 for each data segment, which means that all data segments are not subject to snooping suppression. Correspondingly, stop(i) = 1 means that snooping of the data segment is suppressed.

[0207] It can be understood that, in the case that a data segment is determined as target data, due to the existence of overlapping between frequency bands of adjacent channels, it is possible to cause false detection in the data of the adjacent channels due to the information including the target data. Thus, in the present example, in the case that the data on a data processing link is determined as target data, the stop(i) of the data segment on the adjacent data processing link can be configured as 1, so as to realize suppression of the adjacent channels.

[0208] In combination with the description in Figure 7B , the matching processing of the CCA in the form of a sliding window is taken as an example.

[0209] With the passage of time, the detection window for each data segment on the link is continuously slid, and the value of the corresponding counter is continuously changed. For example, for a data segment on a signal processing link, after the detection window is slid, the peak value of each occurrence of a correlation peak is greater than the quantity threshold B, and then the counter is incremented by 1. In the present example, the FlagSync(i) can be used to indicate the real-time value of the counter after the corresponding data segment i on the signal processing link i is subjected to matching processing. The quantity threshold B can be equal to K.

[0210] Thus, in the case that the FlagSync(i) is less than K, it indicates that the matching for the corresponding data segment i has not been successful. Correspondingly, the state of the data segment i remains state0. In the case that stop(i) = 0 for the data segment i, the electronic device can continue to listen to the data segment i and input to the CCA for matching processing.

[0211] In the case that the FlagSync(i) of the data segment i is greater than or equal to K and stop(i) = 0, the electronic device (such as the control module 405) can adjust the state of the data segment i to state1.

[0212] Thus, through state1, it can be indicated that the correlation peak matching of the data segment i is successful. The data segment i can be target data.

[0213] In some embodiments of the present application, in the case that the electronic device configures the data segment i to state1, it can also configure stop(i) of the data segment i as stop(i) = 1. Thus, the listening of the data segment i is suppressed, and the corresponding power consumption is saved. In some embodiments of the present application, in the case that the electronic device configures the data segment i to state1, it can also configure stop(i-1) of the data segment i-1 as stop(i-1) = 1; the electronic device can also configure stop(i+1) of the data segment i+1 as stop(i-1) = 1, so as to avoid false detection of the data of the adjacent channels.

[0214] Then, the CCA or parsing module can perform data check on the data segment i of state1.

[0215] For example, the data check can include a preamble and a header check. For example, the data check can include a start of frame delimiter (SFD) check and a cyclic redundancy check (CRC) check.

[0216] In some implementations, the SFD can be carried in the preamble, and the information of the CRC can be carried in the header. In this way, by checking the information of the preamble and the header, the SFD check and the CRC check can be implemented.

[0217] Correspondingly, the CRC_ERROR_FLAG(i) is used to indicate whether the CRC check of the data segment i is successful. For example, in the case that the CRC check of the data segment i is successful, the electronic device correspondingly configures the CRC_ERROR_FLAG(i) as 0. For another example, in the case that the CRC check of the data segment i fails, the electronic device correspondingly configures the CRC_ERROR_FLAG(i) as 1.

[0218] In addition, the SFD_ERROR_FLAG(i) is used to indicate whether the SFD check of the data segment i is successful. For example, in the case that the SFD check of the data segment i is successful, the electronic device correspondingly configures the SFD_ERROR_FLAG(i) as 0. For another example, in the case that the SFD check of the data segment i fails, the electronic device correspondingly configures the SFD_ERROR_FLAG(i) as 1.

[0219] Through the processing of the data check, the electronic device can adjust the state of the data segment i according to the data check result.

[0220] For example, after the data check, CRC_ERROR_FLAG(i)=0 and SFD_ERROR_FLAG(i)=0. Then the electronic device adjusts the state of the data segment i to state3. Correspondingly, it is indicated that the subsequent bit data of the data segment i is started to be parsed.

[0221] For another example, after the data check, CRC_ERROR_FLAG(i)=1 or SFD_ERROR_FLAG(i)=1. Then the electronic device adjusts the state of the data segment i to state2. Correspondingly, it is indicated that the data check fails, and the subsequent bit data of the data segment i is not parsed.

[0222] In the present application, the electronic device can also adjust the stop state parameter of the data on the adjacent signal processing link when the state of the data segment i is configured as state2 or state3.

[0223] For example, the electronic device configures the state of the data segment i as state2. The electronic device can also configure stop(i-1) as 0; and stop(i+1) as 0. In this way, the signal listening of the adjacent link is continued, and the adjacent link is not suppressed.

[0224] For another example, the electronic device configures the state of the data segment i as state3. The electronic device can also configure stop(i-1) as 1; and stop(i+1) as 1. In this way, the signal listening of the adjacent link is no longer continued, so as to save the corresponding power consumption.

[0225] In the present application, when the state of the data segment i is configured as state3, the analysis module can perform analysis on the data listened on the signal processing link corresponding to the data segment i in a valid frame length interval, so as to obtain valid data. The electronic device can identify the position of the bit currently being analyzed in the current frame through cnt. When cnt is less than the sum of the valid frame length and the frame interval, the analysis module can continue to perform data analysis. The state of the data segment i remains unchanged. When cnt is greater than or equal to the sum of the valid frame length and the frame interval, the analysis ends here, and the electronic device restores stop(i) of the data segment i to 0, and restores stop(i-1) and stop(i+1) of the adjacent link to 0. In this way, the data segment i and the data segment i-1 and the data segment i+1 are all restored to state0, and the next scanning and analysis is started.

[0226] Correspondingly, when the state of the data segment i is configured as state2, the electronic device can maintain stop(i-1) and stop(i+1) of the adjacent link as 0 when cnt is less than the sum of the valid frame length and the frame interval, so as to continuously listen to the adjacent channel through CCA. Correspondingly, when cnt is greater than or equal to the sum of the valid frame length and the frame interval, the current data segment i and the adjacent two data segments i-1 and i+1 are restored to state0. It can be understood that when i=1, only the data segment i and the data segment i+1 need to be restored to state0.

[0227] In this way, when there are multiple data segments using the target protocol type for transmission, the analysis of other target data segments after the completion of the analysis of one data segment can be avoided.

[0228] For example, data segment 3 begins parsing first. When data segment 3 is finished parsing, data segments 1 and 5 are still being parsed. Thus, the electronic device can set the stop() configuration for data segment 3 and the adjacent data segments 2 and 4 to 0, restoring the state of data segment 3 and the adjacent data segments 2 and 4 to state 0. Accordingly, data segments 1 and 5 are kept in state 3, allowing them to continue parsing.

[0229] In the above example, when data segment 3 is parsed, data segment 1 and data segment 5 are in state 3 and are being parsed. In this way, after data segment 3 is parsed, the electronic device can maintain state 3 of data segment 1 and data segment 5. Correspondingly, in other cases, based on the above logic, the completion of parsing of data segment 3 will only affect the states of adjacent data segments 2 and 4. In this way, when data segment 3 is parsed, if data segment 1 and / or data segment 5 are in other states (such as state 0, state 1, state 2, etc.), the electronic device can still maintain the state of data segment 1 and / or data segment 5 unchanged.

[0230] It should be noted that in some implementations of the present application, a count reset mechanism may also be configured in the state machine. Thus, when any link experiences an abnormal hang or error, the count reset mechanism can be used to initialize FlagSync(i) of each data segment to 0, and the state of each data segment to state0.

[0231] Thus, through this Figure 7C As described above, this application provides a logic based on state machine control to achieve effective management of CCA listening and subsequent analysis.

[0232] It is understood that, based on the above description, in some implementations, using the example of a current 5-channel scan, CCA can simultaneously determine that two or more channels are target channels. For example, CCA determines, through matching, that both channel 1 and channel 3 are target channels. In some embodiments of the present application, the electronic device can be configured with multiple parsing modules to simultaneously perform parsing of different target channels.

[0233] In different implementations of the present application, the scheme of configuring the link flag of the CCA provided in the above example to identify the target link can be flexibly adopted, and / or the scheme of using the CCA flag to identify the target link can be flexibly adopted. Figure 7C The state machine control logic realizes the processing and control of target data. This embodiment of the present application does not limit this.

[0234] In the embodiment of the present application, if the target data is not found in one scan, the electronic device can control the following Figure 5The target channel in the current environment can be determined quickly by repeating the next scan of each component in the channel scanning component.

[0235] As an example, refer to Figure 8 In combination with the foregoing description, the signal division module 441 and the matching module 442 in the electronic device can jointly constitute the digital processing part for implementing multi-channel scanning in the present application. In the following description, the set of the signal division module 441 and the matching module 442 can be referred to as a channel scanning component.

[0236] As shown in Figure 8 , n signal processing links can be configured in the channel scanning component. n corresponds to the maximum number of channels that the channel scanning component can support for multi-channel scanning.

[0237] A DDC, an LPF, and a CCA can be configured on each signal processing link. The specific connection form and function can be referred to the foregoing description.

[0238] The input end of the channel scanning component can be directly or indirectly connected to the AD conversion unit 403. The output end of the channel scanning component can be used to output target data.

[0239] For ease of description, as shown in Figure 8 , in the following description, the channel scanning component is simplified as a series connection of a CCA, an LPF, and a CCA. The simplified example does not constitute a specific limitation on the channel scanning component.

[0240] In addition, in the example as shown in Figure 5 , the baseband module 440 of the electronic device can further be configured with a parsing module 443. In some embodiments, the parsing module 443 can be used to parse the target data of the target channel, so as to obtain the effective data transmitted on the target channel.

[0241] In some implementations, taking the target protocol type 802.11b as an example. The parsing module 443 can include an 11bdemod.

[0242] The baseband module 440 of the electronic device can further include an AGC unit 444.

[0243] In combination with the foregoing description of the RF module 402, the RF module 402 can perform analog amplification processing on the input antenna signal AT1.

[0244] In some embodiments, the RF gain (hereinafter referred to as AGC gain) used in the analog amplification processing process can be determined by the AGC unit 444 of the baseband module 440.

[0245] As an example, refer to Figure 9is a logical connection diagram.

[0246] As shown in Figure 9 The antenna module 401 can be electrically connected with the RF module 402. The RF module 402 can be electrically connected with the AD conversion unit 403. The AD conversion unit 403 can be electrically connected with the channel scanning component. The channel scanning component can be electrically connected with the parsing module 433.

[0247] In addition, the CCA in the channel scanning component can also be electrically connected with the ADC unit 444.

[0248] In some embodiments, the CCA can transmit target data using a target protocol type to the AGC unit 444.

[0249] In another embodiment, the AGC unit 444 can obtain target data from the CCA according to the flag being 1 on a signal transmission link.

[0250] Correspondingly, the AGC unit 444 can determine the power size of the current target data according to the target data. The AGC unit 444 can also determine the AGC gain according to the power size of the current target data. By using the AGC gain for analog signal amplification processing, the power size of the target data can be adjusted to a reasonable interval to facilitate subsequent accurate parsing.

[0251] As a possible implementation, the AGC unit 444 can determine the digital average power of the target data according to the following formula (1).

[0252] Formula (1):

[0253] Wherein, Digital_power average is the digital average power. N is the number of IQ data pairs required to calculate the digital average power. The N can be determined according to the data segment corresponding to the target channel.

[0254] The AGC unit 444 can determine the AGC gain corresponding to the target channel in the current scanning and parsing process according to the digital average power of the target data and the reference power (such as the difference between the digital average power and the reference power). The reference power can be a pre-configured single-channel power reference value. The reference power can be less than the saturation power of the digital processing link (such as the AD conversion unit). For example, the reference power can be less than the saturation power and greater than 60% of the saturation power.

[0255] It can be understood that the above-mentioned scheme of the AGC unit 444 determining the AGC gain is only one implementation. In another implementation, the AGC unit can also determine the AGC gain by other schemes.

[0256] In the example of the above Figure 9 In the example of the above

[0257] For example, the AGC unit 444 can determine the AGC gain according to other signals on the signal processing link of the target data. Figure 10 For another example of logical connection of various components.

[0258] In combination with the description in the above Figure 9 In the example of the above Figure 10 The AD conversion unit 403 is also electrically connected to the HBF module. The output end of the HBF module is also electrically connected to the AGC unit 444.

[0259] The HBF module can be a half-band FIR filter. The HBF can be used to provide resampling capability for the digital signal, so as to facilitate frequency conversion of the digital signal and the output signal.

[0260] For example, the AD conversion unit 403 can obtain an 80MHz digital signal 1001 after performing analog-to-digital conversion on the signal transmitted by the RF module 402. The 80MHz digital signal 1001 can be transmitted to the HBF module for processing. After processing by the HBF module, a 40MHz signal output is obtained. For example, the output signal can be a digital signal 1002.

[0261] The HBF module can transmit the digital signal 1002 to the AGC unit 444, so that the AGC unit 444 determines the AGC gain according to the power of the digital signal 1002. For example, the AGC unit 444 determines the AGC gain according to the digital signal 1002 according to the above formula (1) and the corresponding scheme implementation.

[0262] It can be understood that the digital signal 1002 includes all data of 100MHz frequency bandwidth in the 2.4GHz frequency band. Therefore, the AGC gain determined according to the digital signal 1002 can enable the RF module 402 to perform analog gain adjustment on all data of 100MHz frequency bandwidth. For the target data, this adjustment can play a coarse adjustment role.

[0263] In some implementations, when the electronic device performs single-channel scanning according to the needs, the effective RF gain adjustment can be performed according to the scheme implementation as shown in the above Figure 10

[0264] For example, the AGC unit 444 can determine the AGC gain according to other signals on the signal processing link of the target data. Figure 11 ​Another example of logical connection provided by the embodiments of the present application is shown in FIG. 13. Based on the implementation as shown in FIG. 13, the AGC unit 444 can determine the AGC gain according to the digital signal after DDC processing and before LPF processing. Figure 11

[0265] As shown in FIG. 14, in this example, the DDC is electrically connected with the input end of the HBF module, unlike the implementation in FIG. 13. Figure 11 Figure 10

[0266] In a specific implementation, the DDC is specifically composed of n DDCs, as shown in FIG. 15. Figure 10

[0267] In addition, in this example as shown in FIG. 16, the CCA is also in communication connection with the DDC. Figure 11

[0268] Thus, the DDC can obtain the signal transmission link of the transmission target data from the CCA after the CCA matching is completed. For example, the data output by the signal transmission link corresponding to the DDC1 is the target data. The DDC can transmit the digital signal 1004 after frequency shift processing by the DDC on the signal transmission link of the transmission target data to the HBF module. For example, the DDC can transmit the digital signal output by the DDC1 as the digital signal 1004 to the HBF module.

[0269] Taking the sampling frequency of the digital signal 1004 as 80 MHz for example. The HFB module can process the digital signal 1004, thereby obtaining a digital signal 1005 with a sampling frequency of 40 MHz.

[0270] The HFB module can transmit the digital signal 1005 to the AGC unit 444, so that the AGC unit 444 determines the AGC gain according to the power of the digital signal 1002. For example, the AGC unit 444 determines the AGC gain according to the digital signal 1002 according to the above formula (1) and the corresponding scheme implementation.

[0271] It can be understood that the digital signal 1005 is 100 MHz frequency bandwidth data after frequency shift processing according to the target channel coverage frequency band. The center 22 MHz data of the digital signal 1005 is the target data.

[0272] Therefore, the AGC gain determined according to the digital signal 1005 can realize the targeted analog gain adjustment of the data transmitted by the target channel. For the target data, this adjustment can play a role in fine adjustment.

[0273] Thus, through the above Figure 10 ​​​​​The electronic device can implement coarse adjustment of the RF gain through the AGC unit 444, and can also implement fine adjustment of the RF gain for the target channel through the AGC unit 444.

[0274] In some implementations, electronic devices can be compatible with configurations such as Figure 10 as well as Figure 11 In this way, the electronic device can use the following logic when starting multi-channel scanning: Figure 10 The scheme shown in FIG. 1 is implemented to adjust the RF gain of the overall signal. As the scan proceeds, the RF gain of the overall signal is adjusted according to the following formula: Figure 10 If the AGC gain determined by the scheme shown in the figure tends to be stable (for example, the change of the AGC gain determined twice adjacently does not exceed the preset threshold value), and the target channel has been found, the electronic device can switch to using the scheme shown in the figure. Figure 11 The solution shown here performs targeted RF gain adjustment on the target channel, thereby achieving gradual adjustment from coarse to fine tuning, and achieving better RF gain adjustment results.

[0275] It should be noted that, in Figure 11 In the example, a logical connection implementation of a parsing module 443 is also provided. Figure 9 or Figure 10 In the scheme, Figure 11 In the example, the parsing module 443 can be electrically connected to the output end of the HBF module.

[0276] In this way, the HBF module can also transmit digital signal 1004 to analysis module 443 for analysis. It can be understood that the central 22 MHz data of digital signal 1004 is the target data, and digital signal 1004 includes more data content than a single-channel signal. This allows analysis module 433 to analyze more data and obtain more accurate and comprehensive analysis of the target data.

[0277] In different implementations of this application, Figure 9 ( Figure 10 )or Figure 11 The logical connection and analysis solution of the provided analysis module 443 can be flexibly selected according to actual conditions, and are not limited in this embodiment of the present application.

[0278] As Figure 11The shown scheme is implemented as an example. In some embodiments, the RF module 402 outputs a radio frequency signal including a relatively large direct current component. It can be understood that a general radio frequency signal can be in the form of an alternating current signal (e.g., a sine wave) as a carrier, and effective data is loaded in the radio frequency signal through amplitude and phase modulation. That is, the direct current component in the radio frequency signal is actually not directly related to the effective data. Thus, the digital signal output by the AD conversion unit 403 after analog-to-digital conversion will also include an invalid direct current component.

[0279] In this regard, in some embodiments of the present application, as shown in Figure 12 between the AD conversion unit 403 and the DDC, a remove direct current (Remove DC) module 1201 can be configured in series. The remove direct current module 1201 can be used to filter out the direct current component in the digital signal. Thus, the invalid signal in the digital signal input to the DDC is screened out, which helps to improve the processing efficiency of the DDC and other channel scanning components.

[0280] It should be noted that in the specific implementation process, as Figure 12 shown, each module can be provided by two or more suppliers. Therefore, the design frequency of each component on the entire link can be different. The design frequency for the RF module 402 can be an analog sampling frequency. The design frequency for other digital processing modules can be a digital sampling frequency.

[0281] For example, as Figure 13 shown, the digital sampling frequency of the output signal of the AD conversion unit 403 can be 160MHz. The design frequency of the digital processing modules such as the remove direct current module 1201 and the DDC is 80MHz. In this way, a resampling module 1301 can be configured between the output end of the AD conversion unit 403 and the input end of the remove direct current module 1201. The resampling module 1301 can have a digital resampling capability of 160MHz->80MHz. Thus, the sampling frequency of the digital signal input to the remove direct current module 1201 and the subsequent digital processing modules such as the DDC matches the design frequency of the module. In turn, a more accurate processing result is obtained.

[0282] For another example, the DDC, LPF can perform digital processing on a 80MHz signal. And the CCA can perform digital processing on a 40MHz signal. In this way, a resampling module 1303 can be configured between the LPF and the CCA. The resampling module 1303 can have a digital resampling capability of 80MHz->40MHz. As a possible implementation, the resampling module 1303 can include n sub-sampling modules. Each sampling module can be respectively configured between an LPF and a CCA. Thus, digital resampling on the corresponding signal processing link is realized.

[0283] In this way, the sampling frequency of the digital signal input to the digital processing module such as CCA can be matched with the design frequency of the module, thereby obtaining a more accurate matching processing result.

[0284] In addition, the design frequency of the analysis module 443 can be 40 MHz. Therefore, the 80 MHz signal is actually adjusted to 40 MHz through the half-band filtering process of the HBF module. In this way, the sampling frequency of the signal input to the analysis module 443 can match the sampling frequency of the analysis module 443.

[0285] like Figure 13 In the example, the design frequency of DDC and LPF is 80MHz, and the design frequency of CCA is 40MHz. In this way, the resampling module 1303 can be configured between LPF and CCA. In other implementations, the design frequency of DDC is 80MHz, and the design frequency of LPF and CCA is 40MHz. Figure 14 As shown, a resampling module 1304 can be configured between the DDC and the LPF. This resampling module 1304 can have digital resampling capabilities from 80 MHz to 40 MHz. As a possible implementation, this resampling module 1304 can include n subsampling modules. Each sampling module can be configured between a DDC and an LPF. This implements digital resampling in the corresponding signal processing chain. This ensures that the sampling frequency of the digital signal input to digital processing modules such as the LPF and CCA matches the module's design frequency, thereby achieving more accurate filtering and matching processing results.

[0286] It is understandable that if Figure 13 or Figure 14 The placement of the resampling module shown can be flexibly adjusted based on practical needs. For example, the design frequencies of components such as the DDC, LPF, and CCA can be configured to lower frequencies, thereby saving circuit area. Accordingly, placing the resampling module before the DDC enables the aforementioned circuit area savings while still obtaining accurate digital processing results.

[0287] Combine Figure 10 The instructions in Figures 11 to 14 The solution shown can also be applied to the case where the analysis module 443 is electrically connected to the output terminal of the CCA. Figure 15 As shown, it is taken as an example that a resampling module 1301 is set between the AD conversion unit 403 and the DC removal module 1201, and a resampling module 1304 is set between the DDC and the LPF.

[0288] The parsing module 443 may be configured at the output end of the CCA and may be configured to parse and process the signal on the signal transmission link where the flag of the CCA marker is 1.

[0289] In such Figure 15 In the example, a DAGC module 1501 may be provided between the CCA and parsing module 443. The DAGC module 1501 may be capable of digital signal amplification. For example, parameters related to digital gain may be configured in the DAGC module 1501. The DAGC module 1501 may digitally amplify the input signal based on the digital gain. The input signal may be a signal on a signal transmission link with the CCA flag set to 1, i.e., target data transmitted using the target protocol type.

[0290] In this way, the analysis module 443 can obtain target data with higher digital power for analysis, which can further facilitate the analysis module 443 to analyze the target data.

[0291] above Figure 15 The solution implementation of the parsing module 443 parsing the target data output by the CCA to obtain valid data is provided. In other embodiments, the parsing module 443 can also obtain signals from other nodes on the signal transmission link with flag 1 for parsing to obtain valid data.

[0292] For example, Figure 16 As shown, in some embodiments, the input terminal of the DAGC module 1501 may also be electrically connected to the output terminal of the resampling module 1304. In this way, the resampling module 1304 can trigger, based on the flag indicating a link is 1, the transmission of the signal on the signal transmission link with the flag 1 to the DAGC module 1501 via the output terminal for digital amplification. The amplified data is then transmitted to the analysis module 443 for analysis.

[0293] In this way, the parsing module 443 can obtain relatively complete target data before LPF and CCA processing, thereby improving the accuracy of parsing and obtaining valid data.

[0294] In other embodiments of the present application, one or more reserved interfaces may be configured on the link between the antenna module 401 and the analysis module 443 .

[0295] For example, combined Figures 10 to 16 Instructions in, refer to Figure 17 The antenna module 401 is electrically connected to an input terminal of the RF module 402. An output terminal of the RF module 402 is electrically connected to an input terminal of the AD conversion unit 403.

[0296] One output of the AD conversion unit 403 is electrically connected to an input of the DC removal module 1201. An output of the DC removal module 1201 is electrically connected to a DDC, a LPF, and a CCA in sequence. An output of the CCA is electrically connected to the analysis module 443. Thus, single channel or multi-channel scanning and target data analysis are realized.

[0297] Another output of the AD conversion unit 403 is electrically connected to an input of the HBF module. An output of the HBF module is electrically connected to an input of the AGC unit 444. An output of the AGC unit 444 is electrically connected to another input of the RF module 402. Thus, dynamic adjustment of analog gain is realized.

[0298] In some embodiments, a reserved interface 1701 can be configured on a link between the DC removal module 1201 and the DDC. The reserved interface 1701 can be used to couple relevant components for signal strength measurement. Thus, signal strength detection of the digital signal output from the DC removal module 1201 is realized. For example, the signal strength detection can be detection of RSSI.

[0299] In other embodiments, a reserved interface 1702 can be configured on one or more of the n links between the DDC and the LPF. Similar to the reserved interface 1701, the reserved interface 1702 can be used to couple relevant components for signal strength measurement. Thus, signal strength detection on one or more of the links between the DDC and the LPF is realized. For example, the signal strength detection can be detection of RSSI.

[0300] In other embodiments, a reserved interface 1703 can be configured on one or more of the n links between the LPF and the CCA. Similar to the reserved interface 1701 and the reserved interface 1702, the reserved interface 1703 can be used to couple relevant components for signal strength measurement. Thus, signal strength detection on one or more of the links between the LPF and the CCA is realized. For example, the signal strength detection can be detection of RSSI.

[0301] In other embodiments, the CCA unit configured on each of the links in the CCA can be a parameter adjustable component. For example, by adjusting the parameters of the CCA unit, the Baker code and related threshold used for matching processing can be flexibly configured. Thus, the corresponding matching processing mechanism is adapted to different scenarios with different target protocol types.

[0302] In this example, one or more CCA units of the CCA can be configured with a control terminal. The control terminal of the CCA unit can be electrically connected with the reservation control interface 1704 respectively. In this way, when there is no signal input from the reservation control interface 1704, the CCA can perform matching processing according to the default parameters on each link. In some implementations, the control terminal of the CCA control module 405 can be electrically connected with the reservation control interface 1704, so that the parameter configuration of the CCA unit is realized through the reservation control interface 1704. In this way, the CCA unit can perform matching processing according to the newly configured parameters in the case of receiving a new Baker code and / or related threshold value through the reservation control interface 1704.

[0303] In some other embodiments, a reservation interface 1705 can also be configured on the link between the AD conversion unit 403 and the HBF module. Similar to the reservation interface 1701, the reservation interface 1702 and the reservation interface 1703, the reservation interface 1705 can be used to couple related components of signal strength measurement. Thus, the detection of signal strength transmitted to the HBF module is realized. For example, the signal strength detection can be the detection of RSSI.

[0304] In combination with the above-mentioned scheme about the sampling frequency adjustment, in some cases, the bit width of the digital signal obtained after the signal output by the RF module 402 is processed by the AD conversion unit 403 can be different from the design bit width of the back-end module (such as the channel scanning component).

[0305] For example, the bit width of the digital signal output after being processed by the AD conversion unit 403 is 5 bits, and the design bit width of the channel scanning component is 6 bits to 13 bits. If the digital signal output after being processed by the AD conversion unit 403 is directly input into the channel scanning component for processing, there will be a problem of digital processing precision reduction due to the insufficient bit width of the input digital signal.

[0306] Correspondingly, if it is necessary to expand the design bit width of the channel scanning component to 5 bits to 13 bits, the circuit area of the channel scanning component will inevitably increase.

[0307] Based on this, in some embodiments of the present application, before the digital signal is input into the channel scanning component, the digital gain can be adjusted so as to match the bit width of the digital signal input into the channel scanning component with the design bit width of the channel scanning component. In this way, the digital processing precision of the channel scanning component is improved.

[0308] As an example, in combination with the above-mentioned scheme about the sampling frequency adjustment, Figure 12 the scheme example shown in FIG. 6, reference is made to FIG. 7. Figure 18 In this example as shown in FIG. 7, the AD conversion unit 403 is configured with a digital gain adjustment module 1706. Figure 18In the example, the digital signal generated after the AD conversion unit 403 can be filtered by the DC removal module 1201 to remove DC signal. The bit width of the digital signal can be 5 bits.

[0309] In the example, the output of the DC removal module 1201 can be electrically connected to the input of the digital gain adjustment module 1801. The output of the digital gain adjustment module 1801 can be electrically connected to the input of the n-path DDC respectively. The digital gain adjustment module 1801 can also be referred to as a Dgain adjustment module or a Dgain.

[0310] The digital gain adjustment module 1801 can have the ability of digital gain adjustment. For example, the digital gain adjustment module 1801 can adjust the 5-bit width of the input data to make the digital gain adjustment module 1801 output 6-bit or 7-bit width of digital data through gain adjustment.

[0311] Therefore, through the setting of the digital gain adjustment module 1801, in the case that the design bit width of the channel scanning component does not match the bit width of the digital signal output by the AD conversion unit 403, the bit width adjustment is performed before the digital signal is input to the channel scanning component. Further, the bit width of the digital signal input to the channel scanning component is within the design bit width of the channel scanning component. Therefore, the digital processing precision of the channel scanning component is improved.

[0312] It should be noted that the specific bit width involved in the example is only an example. In other embodiments, the bit width of the digital signal output by the DC removal module 1201 can also be different from 5 bits. Similarly, the design bit width of the channel scanning component can also be different from 6 bits to 13 bits. In this way, the digital gain adjustment module 1801 can flexibly adjust the bit width of the digital signal according to the relationship between the bit width of the digital signal output by the AD conversion unit 403 and the design bit width of the channel scanning component in the current actual scene. Further, the bit width of the digital signal input to the channel scanning component is within the design bit width.

[0313] As a specific example, Figure 18 A specific implementation of the digital gain adjustment module 1801 is also provided.

[0314] As Figure 18 shown, the digital gain adjustment module 1801 can include a digital amplification unit and a power judgment unit. The input of the digital amplification unit is electrically connected to the DC removal module 1201. The output of the digital amplification unit is connected to the input of the power judgment unit. One output of the power judgment unit is connected to the input of the DDC respectively.

[0315] Another output terminal of the power judging unit is also connected with the control terminal of the digital amplifying unit.

[0316] The digital amplifying unit is configured to adjust the power of the input digital signal. For example, the digital amplifying unit can adjust the power of the input digital signal according to the digital gain and other parameters. It can be understood that for the digital signal, the greater the power, the greater the bit width; on the contrary, the smaller the power, the smaller the bit width. In this way, by adjusting the power of the digital signal, the adjustment of the bit width of the digital signal can be realized.

[0317] The power judging unit can be configured with a preset power threshold or a preset power range. Taking the case that the power judging unit is configured with a preset power range as an example. The power judging unit can determine whether the digital signal from the digital amplifying unit is within the preset power range.

[0318] When the power of the digital signal from the digital amplifying unit is within the preset power range, the power judging unit outputs the digital signal from the digital amplifying unit. For example, the power judging unit outputs the digital signal from the digital amplifying unit to the DDC.

[0319] When the power of the digital signal from the digital amplifying unit is not within the preset power range, the power judging unit transmits a digital gain to the digital amplifying unit. The digital gain can make the power of the amplified digital signal fall within the preset power range. Correspondingly, the digital amplifying unit can perform digital amplification processing on the digital signal according to the digital gain from the power judging unit. Thus, when the power judging unit obtains the digital signal from the digital amplifying unit again, the power of the digital signal can fall within the preset power range. Further, the power judging unit can output the digital signal to the DDC.

[0320] In some embodiments, the preset power range configured by the power judging unit can be related to the design bit width of the channel scanning component. For example, the preset power range can be included in the design bit width of the channel scanning component. In this way, through the adaptive control and adjustment of the power judging unit, the digital amplifying unit can perform appropriate digital amplification processing on the digital signal from the DC removal module 1201. Further, the bit width of the digital signal output to the DDC through the power judging unit is included in the design bit width of the channel scanning component.

[0321] The above mainly introduces the solution provided by the embodiment of the present application from the perspective of each functional module. Those skilled in the art should easily appreciate that, in combination with the units and algorithm steps of each example described in the embodiment disclosed herein, 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 a hardware or computer software driven hardware manner 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 be beyond the scope of this application.

[0322] The above-mentioned integrated modules can be implemented in the form of hardware or software functional modules. It should be noted that the division of modules in the embodiment of the present application is schematic and is only a logical function division. In actual implementation, there may be other division methods.

[0323] For example, Figure 19 FIG. 1 shows a schematic diagram of the composition of an electronic device 1900. Figure 19 As shown, the electronic device 1900 may include: a processor 1901 and a memory 1902. The memory 1902 is used to store computer-executable instructions. Exemplarily, in some embodiments, when the processor 1901 executes the instructions stored in the memory 1902, the electronic device 1900 may execute any of the methods shown in the above embodiments. Figure 19 As shown, in this example, the electronic device may also be configured with an antenna 1903 for transmitting and receiving signals. Thus, the processor 1901 may process the signal received by the antenna 1903 or transmit the processed signal through the antenna 1903 according to the instructions stored in the memory 1902.

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

[0325] Figure 20 A schematic diagram of the composition of a chip system 2000 is shown. The chip system 2000 may include: a processor 2001 and a communication interface 2002, which are used to support related devices or components to implement the functions involved in the above embodiments. In one possible design, the chip system also includes a memory for storing necessary program instructions and data for electronic devices. The chip system can be composed of chips, or it can include chips and other discrete devices. It should be noted that in some implementations of the present application, the communication interface 2002 may also be referred to as an interface circuit. Exemplarily, the chip system 2000 may include a baseband chip. The baseband chip can be used to implement the various functions of the baseband module 440 provided in various embodiments of the present application.

[0326] It should be noted that all relevant content of each step involved in the above method embodiments can be cited to the function description of the corresponding function module, and will not be repeated here.

[0327] In the above embodiments, the functions or actions or operations or steps, etc. can be realized by software, hardware, firmware or any combination thereof, in whole or in part. When implemented by software, it can be realized in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the flow or function described in the embodiments of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions can be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, the computer instructions can be transmitted from one website, computer, server or data center to another website, computer, server or data center through wired (such as coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (such as infrared, wireless, microwave, etc.) mode. The computer readable storage medium can be any available medium that can be accessed by a computer or include one or more data storage devices that can be integrated with the medium, such as servers, data centers, etc. The available medium can be magnetic medium (such as floppy disk, hard disk, magnetic tape), optical medium (such as DVD), or semiconductor medium (such as solid state disk (SSD)), etc.

[0328] Although the present application is described in conjunction with specific features and embodiments thereof, it is obvious that various modifications and combinations can be made thereto without departing from the spirit and scope of the application. Accordingly, the specification and drawings are merely illustrative of the exemplary embodiments of the present application, and are to be regarded as covering any and all modifications, variations, combinations or equivalents that fall within the scope of the present application. Obviously, those skilled in the art can make various modifications and variations to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is intended to include these modifications and variations.

Claims

1. A signal scanning method, characterized by, The method is applied to an electronic device including an antenna module, a radio frequency module, and a baseband module; an environment in which the electronic device is currently located includes multiple WIFI signals, different WIFI signals use different channels for transmission, and among the multiple WIFI signals, at least one signal uses a target protocol type for data transmission; the baseband module includes N frequency shift units, N filter units, and N listening units: an input end of each of the N frequency shift units is coupled with the radio frequency module; an input end of each of the N filter units is coupled with an output end of one frequency shift unit; an input end of each of the N listening units is coupled with an output end of one filter unit; one frequency shift unit, one filter unit, and one listening unit constitute one signal processing link; each of the N signal processing links in the baseband module is configured to perform digital processing on data of one channel to determine whether the channel is a target channel; the listening unit is configured with a reference Baker code corresponding to the target protocol type; the method includes: the electronic device controls the antenna module to receive a first antenna signal, and a bandwidth of the first antenna signal is a first bandwidth; the electronic device controls the radio frequency module to perform radio frequency processing on the first antenna signal to obtain a first analog signal; the first analog signal includes signals transmitted on M channels; any one of the M channels is a channel used for WIFI communication; a bandwidth of the first analog signal is a second bandwidth corresponding to the M channels, and the second bandwidth is less than or equal to the first bandwidth; the electronic device controls the baseband module to perform digital processing on a first digital signal corresponding to the first analog signal to determine a target channel included in the M channels corresponding to the first analog signal; wherein the listening unit performs matching processing on a first data segment from the filter unit according to the reference Baker code to obtain a number of correlation peaks corresponding to the first data segment and the reference Baker code; the listening unit determines that the first data segment is transmitted through the target protocol type according to that the number of correlation peaks is greater than a preset threshold; and a channel transmitting the first data segment is the target channel; a state corresponding to a first signal processing link transmitting the first data segment is modified from state0 to state1; the state0 indicates that the matching processing is performed on the listening unit in the corresponding signal processing link; and the state1 indicates that the first data segment is matched successfully; a stop identifier stop() of the first signal processing link is configured as a first value, corresponding to that the matching processing is no longer performed on data transmitted on the first signal processing link and a second signal processing link; the second signal processing link is an adjacent link of the first signal processing link; the electronic device performs analysis processing on data transmitted on the target channel.

2. The method of claim 1, wherein, The electronic device further comprises an analog-to-digital conversion unit, an input end of the analog-to-digital conversion unit is coupled with an output end of the radio frequency module; a first output end of the analog-to-digital conversion unit is coupled with an input end of the baseband module; the analog-to-digital conversion unit is configured to perform digital sampling on the first analog signal to obtain a first digital signal corresponding to the first analog signal; an input end of each of the N frequency shift units is coupled with the radio frequency module, and each of the N frequency shift units comprises: the input end of each of the N frequency shift units is coupled with an output end of the analog-to-digital conversion unit, so that the frequency shift unit obtains the first digital signal.

3. The method of claim 2, wherein, the frequency shift unit is configured to perform frequency shift processing on the first digital signal to obtain a second digital signal; the intermediate frequency of the second digital signal is 0 MHz. in the second digital signal, a data segment with a frequency domain bandwidth of -11 MHz to 11 MHz corresponds to complete data of one WIFI channel.

4. The method of claim 3, wherein, The frequency domain lengths of the frequency shift processing performed by different frequency shift processing units are different.

5. The method according to claim 1 or 2 or 4, characterized in that, The passband of each of the N filter units is 22 MHz, and the center frequency of the passband is 0 MHz.

6. The method of claim 2 or 4, wherein, the radio frequency module performs radio frequency processing on the first antenna signal, including: the radio frequency module performs analog amplification processing on the first antenna signal according to a first radio frequency gain.

7. The method of claim 6, wherein, Before the radio frequency module performs radio frequency processing on the first antenna signal, the method further comprises: the radio frequency module obtains the first radio frequency gain.

8. The method of claim 7, wherein, The electronic device further comprises an automatic gain control unit; an output end of the automatic gain control unit is coupled with the radio frequency module; the radio frequency module obtains the first radio frequency gain, including: the radio frequency module obtains the first radio frequency gain from the automatic gain control unit.

9. The method of claim 8, wherein, The method further comprises: the automatic gain control unit determines the first radio frequency gain according to a first digital signal.

10. The method of claim 9, wherein, a first digital processing unit is further arranged between the analog-to-digital conversion unit and the automatic gain control unit; a first input end of the automatic gain control unit is coupled with an output end of the first digital processing unit; and a first input end of the first digital processing unit is coupled with a second output end of the analog-to-digital conversion unit; Before the first radio frequency gain is determined, the method further comprises: the first digital processing unit obtains a second digital signal according to the first digital signal; the automatic gain control unit obtains the second digital signal from the first digital processing unit; the automatic gain control unit determines the first radio frequency gain according to a first digital signal, including: the automatic gain control unit determines the first radio frequency gain according to a second digital signal corresponding to the first digital signal.

11. The method of claim 10, wherein, The first digital processing unit comprises a half-band FIR filter.

12. The method according to claim 10 or 11, characterized in that, the automatic gain control unit determines the first radio frequency gain according to a digital average power of the second digital signal.

13. The method of claim 10 or 11, wherein, ​ The radio frequency module performs radio frequency processing on the first antenna signal, and further comprises: The radio frequency module performs analog amplification processing on the first antenna signal according to a second radio frequency gain.

14. The method of claim 13, wherein, a second input end of the first digital processing unit is coupled with an output end of each of the N frequency shift units; Before the radio frequency module according to the second radio frequency gain, the method further comprises: The first digital processing unit acquires a third digital signal according to a first target signal, The automatic gain control unit determines the second radio frequency gain according to the third digital signal from the first digital processing unit; The third digital signal is transmitted by a first frequency shift unit to the first digital processing unit, the first frequency shift unit is included in the N frequency shift units, and the first frequency shift unit is a frequency shift unit on a signal processing link for data transmission using a target protocol type.

15. The method of claim 1, wherein, The method further comprises: When the electronic device starts to work, the electronic device configures a state of each of the N signal processing links as state0, and the state0 indicates that the matching processing is performed on the listening unit in the corresponding signal processing link.

16. The method of claim 15, wherein, After the electronic device configures the state of the first signal processing link for transmitting the first data segment as state1, the method further comprises: The electronic device configures a stop identifier stop() of the second signal processing link as a first value; performing a start of frame delimiter SFD check and a cyclic redundancy code CRC check on the first data segment; In the case that the SFD check and the CRC check are both successful, the method further comprises: configuring the state of the first signal processing link as state3, which is used to indicate that the first data segment is transmitted through the target protocol type.

17. The method of claim 16, wherein, The electronic device further comprises an analysis module, and the method further comprises: The electronic device controls the analysis module to perform digital analysis on the data transmitted on the signal transmission link in the state of state3; After completing the analysis processing on the first data segment, the method further comprises: configuring the stop() of the first signal processing link and the second signal processing link as a second value, and the stop identifier stop() configured as the second value indicates that the matching processing of the corresponding signal processing link is not inhibited.

18. An electronic device, comprising: The electronic device comprises an antenna module, a memory and one or more processors; the memory and the processor are coupled; the antenna module and the processor are coupled; The memory is configured to store computer program code, the computer program code comprises computer instructions, when the processor executes the computer instructions, the electronic device executes the method as described in any one of claims 1-17.

Citation Information

Patent Citations

  • Signal scanning method and electronic equipment

    CN119545475A