Signal scanning method and electronic equipment
By adopting a multi-channel scanning method in electronic devices, using modules and units to process signals of multiple channels, the problem of low single-channel scanning efficiency is solved, and efficient target channel determination and scanning efficiency improvement is achieved.
Patent Information
- Application Number
- CN202410313099.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-03-15
- Publication Date
- 2025-01-07
- Estimated Expiration
- 2044-03-15
AI Technical Summary
When existing electronic devices receive Wi-Fi signal, the process of determining the target channel through single-channel scanning is low, resulting in significant power consumption and time overhead.
Using a signal scanning method, the signals of multiple channels are processed simultaneously through the antenna module, the radio frequency module and the baseband module, and the digital processing is performed using the frequency shift unit, the filter unit and the listening unit to determine the target channel, and the automatic gain is obtained. Control and state machine management improve scanning efficiency.
The efficiency of multi-channel scanning is achieved, the speed and efficiency of determining the target channel is significantly improved, and the power consumption and time overhead are reduced.
Smart Images

Figure CN119277478A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the technical field of electronic devices, and in particular, to a signal scanning method and electronic device. Background Art
[0002] When receiving wireless signals based on Wi-Fi, the electronic device can determine the target channel for subsequent data communication through channel scanning. Exemplarily, 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 may include single channel scanning. The 13 channels specified by the Wi-Fi related protocols are scanned in sequence, and the data obtained from each scan is parsed to determine the protocol type used by each channel. Then, the target channel is determined based on the channel using the target protocol type. This will result in a lack of efficiency in the process of the electronic device determining the target channel. Summary of the invention
[0004] The present application provides a signal scanning method and an electronic device, which can enable the electronic device to support scanning and parsing of multiple channels at the same time.
[0005] In order to achieve the above technical objectives, this application adopts the following technical solutions:
[0006] In a first aspect, a signal scanning method is provided, which is applied to an electronic device, which includes an antenna module, a radio frequency module, and a baseband module. The current environment of the electronic device includes multiple WIFI signals, different WIFI signals are transmitted using different channels, and the multiple WIFI signals include at least one signal that uses a target protocol type for data transmission. The method includes: the electronic device controls the antenna module to receive a first antenna signal, and the 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. 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 the first digital signal corresponding to the first analog signal, and determines the target channel among the M channels corresponding to the first analog signal. The electronic device performs parsing processing on the data transmitted on the target channel.
[0007] Exemplarily, the operating frequency band of the antenna module may include a 2.4 GHz frequency band from 2.4 GHz to 2.5 GHz.
[0008] In this way, the electronic device can collect data from multiple channels at the same time, that is, realize multi-channel scanning. In some implementations of this solution, the first bandwidth can be 100MHz of the full frequency band of 2.4GHz. The second bandwidth corresponds to the number of M. For example, when M is 5, the second bandwidth is 40MHz. For another example, when M is 4, the second bandwidth is 35MHz, etc. After obtaining the analog signal corresponding to the number of channels currently required to be scanned from the signal of the full frequency band, the electronic device in this example can also provide multi-channel digital signal processing capabilities. The multi-channel digital signal processing capabilities enable the electronic device to determine whether there is a target channel from the M channels. In this way, since multiple channels are scanned at the same time, the scanning efficiency is effectively improved.
[0009] Optionally, the baseband module includes N frequency shifting units, N filtering units, and N listening units: the input end of each of the N frequency shifting units is coupled to the RF module. The input end of each of the N filtering units is respectively coupled to the output end of a frequency shifting unit. The input end of each of the N listening units is respectively coupled to the output end of a filtering unit. One frequency shifting unit, one filtering unit, and one listening unit constitute a signal processing link. Each of the N signal processing links in the baseband module is used to digitally process 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, the input end of the analog-to-digital conversion unit is coupled to the output end of the RF module. The first output end of the analog-to-digital conversion unit is coupled to the input end of the baseband module. The analog-to-digital conversion unit is used to digitally sample the first analog signal to obtain a first digital signal corresponding to the first analog signal. The input end of each of the N frequency shifting units is coupled to the RF module, including: the input end of each frequency shifting unit is respectively coupled to the output end of the analog-to-digital conversion unit, so that the frequency shifting unit can obtain the first digital signal.
[0011] Optionally, the frequency shift unit is used 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, and in the second digital signal, the frequency domain bandwidth is a data segment between -11 MHz and 11 MHz, corresponding to complete data of a WIFI channel.
[0012] Optionally, different frequency shift processing units perform frequency shift processing with different frequency domain lengths.
[0013] Optionally, the pass bandwidth of each filter unit is 22 MHz, and the center frequency of the pass frequency is 0 MHz.
[0014] This solution example provides a specific internal composition of a baseband module. The frequency shift unit can be used to perform digital down-conversion processing on the input signal, thereby moving the data center carried by the channel processed on the link to 0MHz. Through the filtering unit, the 22MHz bandwidth signal around 0MHz can be filtered out, and the 22MHz bandwidth signal can be a signal corresponding to the transmission of a WIFI channel. Therefore, by performing carrier sensing (i.e. matching processing) on the data on each channel through the listening unit, it is possible to simultaneously determine whether multiple WIFI channels include a target channel that uses the target protocol type to transmit data.
[0015] Optionally, the RF module performs RF processing on the first sampling signal, including: the RF module performs analog amplification processing on the first sampling signal according to a first RF gain.
[0016] Optionally, before the RF module performs RF processing on the first sampling signal, the method further includes: the RF module obtains the first RF gain.
[0017] Optionally, the electronic device further includes an automatic gain control unit. An output end of the automatic gain control unit is coupled to the radio frequency module. The radio frequency module acquires the first radio frequency gain, comprising: 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 RF gain according to the first digital signal.
[0019] Optionally, a first digital processing unit is further provided between the analog-to-digital conversion unit and the automatic gain control unit. The first input end of the automatic gain control unit is coupled to the output end of the first digital processing unit. The first input end of the first digital processing unit is coupled to the second output end of the analog-to-digital conversion unit. Before determining the first RF gain, the method further includes: the first digital processing unit obtains a second digital signal based on 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 RF gain based on the first digital signal, including: the automatic gain control unit determines the first RF gain based on 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, determining the first RF gain includes: the automatic gain control unit determines the first RF gain according to a digital average power of the second digital signal.
[0022] Thus, an implementation of a radio frequency gain control solution is provided. The solution provided in this example can be applied to control the amplification gain of analog signals during multi-channel scanning.
[0023] Optionally, the RF module performs RF processing on the first sampling signal, further comprising: the RF module performs analog amplification processing on the first sampling signal according to a second RF gain.
[0024] Optionally, the second input end of the first digital processing unit is coupled to the output end of each frequency shift unit in the N frequency shift units. Before the RF module is based on the second RF gain, the method also includes: the first digital processing unit obtains a third digital signal based on the first target signal, and the automatic gain control unit determines the second RF gain based on the third digital signal from the first digital processing unit. The third digital signal is transmitted to the first digital processing unit by the first frequency shift 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 that uses a target protocol type for data transmission.
[0025] Thus, another implementation of the RF gain control scheme is provided. The scheme provided in this example can be applied to the control of the analog signal amplification gain during the multi-channel scanning process. In this example, the second RF gain can be related to the power of the data transmitted on the target channel. In this way, the data on the target channel can be better amplified by the analog amplification processing performed by the second RF gain.
[0026] Optionally, the listening unit is configured with a reference Baker code, and the reference Baker code corresponds to the target protocol type. The method further includes: the listening unit matches the reference Baker code with the first data segment from the filtering unit to obtain the 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 the number of correlation peaks being greater than a preset threshold.
[0027] This provides a specific implementation of matching processing in the carrier sensing process, thereby enabling the sensing unit to quickly determine whether the target channel is included in the multiple channels currently scanned.
[0028] Optionally, when the electronic device starts working, the electronic device configures the state of each signal processing link in the N signal processing links to state0, and the state0 indicates that the listening unit in the corresponding signal processing link performs the matching process. After the listening unit determines that the first data segment is transmitted through the target protocol type based on the number of correlation peaks being greater than a preset threshold, the method also includes: the electronic device configures the state of the first signal processing link that transmits the first data segment to state1, and the state1 indicates that the first data segment matches successfully.
[0029] Optionally, after the electronic device configures the state of the first signal processing link transmitting the first data segment to state1, the method also includes: the electronic device configures the suppression flag stop() of the first signal processing link to a first value, the suppression flag stop() being configured as the first value indicating that the first signal processing link is no longer matched; the electronic device configures the suppression flag stop() of the second signal processing link to a first value, the second signal processing link being an adjacent link to the first signal processing link; performs a start frame delimiter SFD check and a cyclic redundancy code check CRC check on the first data segment; when both the SFD check and the CRC check are successful, the method also includes: configuring the state of the first signal processing link to state3, indicating that the first data segment is transmitted via the target protocol type.
[0030] Optionally, the electronic device further includes a parsing module, and the method further includes: the electronic device controls the parsing module to perform digital parsing on the data transmitted on the signal transmission link in the state of state3. After completing the parsing process of the first data segment, the method further includes: configuring the stop() of the first signal processing link and the second signal processing link to a second value, and configuring the suppression flag stop() to a second value to indicate that the matching process of the corresponding signal processing link is not suppressed.
[0031] This solution provides a state machine-based listening control solution, which can be applied to the control of listening and parsing timing in the multi-channel scanning process.
[0032] In a second aspect, an electronic device is provided, the electronic device comprising: an antenna module, a memory and one or more processors. The memory is coupled to the processor. The antenna module is coupled to the processor. The memory is used to store computer program code, the computer program code includes computer instructions, and when the processor executes the computer instructions, the electronic device performs the method provided in the first aspect and any possible design thereof.
[0033] In a third aspect, a chip system is provided, which is applied to an electronic device. The chip system includes one or more interface circuits and one or more processors. The interface circuit and the processor are interconnected by a line. The interface circuit is used to receive a signal from a memory of the electronic device and send the signal to the processor, wherein the signal includes a computer instruction stored in the memory. When the processor executes the computer instruction, the electronic device executes the method provided in the first aspect and any possible design thereof.
[0034] Optionally, the chip system is configured with at least two signal processing links, and the at least two signal processing links are used to perform signal processing on data of different channels to determine whether the data transmitted on the corresponding channel uses a preset target protocol type. For example, the chip system may correspond to a baseband module or baseband processor configured in an electronic device.
[0035] In a fourth aspect, the present application also provides a computer-readable storage medium, including computer instructions. When the computer instructions are executed on an electronic device, the electronic device executes the technical solution provided in the above-mentioned 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, enables the computer to execute the technical solution provided in the above-mentioned first aspect and any possible implementation thereof.
[0037] It can be understood that the solutions provided in the second aspect to the fifth aspect of the present application can respectively correspond to the first aspect and any possible design thereof, so the beneficial effects that can be achieved are similar and will not be repeated here. BRIEF DESCRIPTION OF THE 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 a single channel scan;
[0042] Figure 5 A schematic diagram of the composition of an electronic device provided in an embodiment of the present application;
[0043] Figure 6 A schematic diagram of the logic division of a multi-channel sampling signal provided in an embodiment of the present application;
[0044] Fig. 7A A processing logic diagram of analog down-conversion provided in an embodiment of the present application;
[0045] Figure 7B A logic diagram of a matching process provided in an embodiment of the present application;
[0046] Figure 7C A logical diagram of state machine management provided in an embodiment of the present application;
[0047] Figure 8 A schematic diagram of the composition of a channel scanning component provided in an embodiment of the present application;
[0048] Fig. 9 A circuit logic diagram for multi-channel scanning provided in an embodiment of the present application;
[0049] Fig.10 A circuit logic diagram for multi-channel scanning provided in an embodiment of the present application;
[0050] Fig.11 A circuit logic diagram for multi-channel scanning provided in an embodiment of the present application;
[0051] Fig.12 A circuit logic diagram for multi-channel scanning provided in an embodiment of the present application;
[0052] Fig.13 A circuit logic diagram for multi-channel scanning provided in an embodiment of the present application;
[0053] Fig.14 A circuit logic diagram for multi-channel scanning provided in an embodiment of the present application;
[0054] Fig.15 A circuit logic diagram for multi-channel scanning provided in an embodiment of the present application;
[0055] Fig.16 A circuit logic diagram for multi-channel scanning provided in an embodiment of the present application;
[0056] Fig.17 A circuit logic diagram for multi-channel scanning provided in an embodiment of the present application;
[0057] Fig.18 A circuit logic diagram for multi-channel scanning provided in an embodiment of the present application;
[0058] Fig.19 A schematic diagram of the composition of an electronic device provided in an embodiment of the present application;
[0059] Fig. 20A schematic diagram of the composition of a chip system provided in an embodiment of the present application. DETAILED DESCRIPTION
[0060] In the following, the terms "first" and "second" are used for descriptive purposes only and are not to be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features. In the description of this embodiment, unless otherwise specified, "plurality" means two or more.
[0061] An electronic device can communicate with other devices via 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 embodiment of the present application, an electronic device using a 2.4 GHz frequency band for WIFI communication is taken as an example.
[0062] When performing WIFI communication, the channel and / or protocol type used may be different.
[0063] Exemplary, reference Figure 1 , which is a schematic diagram of channel division during WIFI communication. When an electronic device communicates with any other device through WIFI, it can use Figure 1 One of the channels is used for data transmission.
[0064] like Figure 1 As shown, when performing WIFI communication based on the 2.4 GHz frequency band, the available channels may include channel 1 to channel 14. The coverage frequency of each channel increases in sequence. Channel 1 to channel 13 are commonly used channels. Channel 14 is generally not used for data transmission.
[0065] In such Figure 1 In the example of FIG. 1 , in channel 1 to channel 13 and channel 14, the bandwidth of each channel is 22 MHz.
[0066] The interval between the starting frequencies of two adjacent channels from channel 1 to channel 13 is 5MHz. For example, the frequency of channel 1 covers 2401MHz to 2423MHz. The frequency of channel 2 covers 2406MHz to 2428MHz. And so on.
[0067] In such Figure 1In the example, the center frequency of each channel is also shown. For example, the center frequency of channel 1 is 2412MHz, the center frequency of channel 2 is 2417MHz, the center frequency of channel 3 is 2422MHz, the center frequency of channel 4 is 2427MHz, the center frequency of channel 5 is 2432MHz, the center frequency of channel 6 is 2437MHz, the center frequency of channel 7 is 2442MHz, the center frequency of channel 8 is 2447MHz, the center frequency of channel 9 is 2452MHz, the center frequency of channel 10 is 2457MHz, the center frequency of channel 11 is 2462MHz, the center frequency of channel 12 is 2467MHz, the center frequency of channel 13 is 2472MHz, and the center frequency of channel 14 is 2484MHz.
[0068] When performing WIFI communication, available protocol types may include any of the following: 802.11b, 802.11g, 802.11n, etc.
[0069] In some cases, the location where the electronic device is located may include multiple WIFI networks.
[0070] Exemplary, combined Figure 1 ,refer to Figure 2 , which is an illustration of a WIFI communication scenario.
[0071] like Figure 2 As shown, an electronic device (such as device 101 ) may be within the coverage of the WIFI networks established by devices 102 , 103 , and 104 at the same time.
[0072] In this example, different devices establishing different WIFI networks can perform WIFI communication with device 101 through different channels and / or protocol types.
[0073] Exemplarily, device 102 may use channel 3 to perform WIFI communication with device 101 via 802.11g;
[0074] Device 103 can use channel 6 to communicate with device 101 via 802.11n via WIFI;
[0075] Device 104 may use channel 9 to perform WIFI communication with device 101 via 802.11b.
[0076] In some implementations of the present application, the electronic device may be configured with different components to implement the sending and receiving of WIFI signals during WIFI communication.
[0077] For example, Figure 3As shown, the electronic device may 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] Take the example of an electronic device receiving a WIFI signal.
[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 called radio frequency signals.
[0080] The RF module 302 can be used to perform RF processing on RF signals, including but not limited to analog amplification, analog filtering, analog up / down conversion, etc.
[0081] The RF signal after RF processing may be transmitted to the AD conversion unit 303 .
[0082] The AD conversion unit 303 may digitally sample the received radio frequency signal to obtain a corresponding digital signal.
[0083] The AD conversion unit may also transmit the digital signal to the baseband module 304 .
[0084] In this example, the baseband module 304 can provide digital processing capabilities, including but not limited to digital up / down conversion, digital resampling, digital filtering, digital analysis, and other processing of digital signals.
[0085] Thus, the baseband module 304 can obtain the valid content in the WIFI signal through the received digital signal.
[0086] Combination Figure 2 In some cases, an electronic device (such as device 101) can receive WIFI signals from various WIFI networks. Figure 3 The processing of each module shown enables the electronic device to filter the target data from the received multiple WIFI signals to receive subsequent data. The target data may be a signal configured in the electronic device and transmitted using the target protocol type. Correspondingly, the channel for receiving the target data may be the target channel.
[0087] Take the target protocol type as 802.11b as an example.
[0088] Electronic devices can be used to Figure 1 The channels shown are scanned and Figure 3Each module shown processes the received single-channel data, and then determines whether the currently scanned channel is the target channel through the baseband module 304 .
[0089] like Figure 4 As shown, the electronic device can start scanning and parsing from channel 1.
[0090] For example, the electronic device can control the antenna 301 to receive the electromagnetic wave of the frequency band corresponding to channel 1, and convert the electromagnetic wave into an analog signal. Figure 1 In the scenario shown, no device is transmitting data through channel 1, and the corresponding 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 there is no data transmission on channel 1. Continue scanning and analyzing the next channel (such as channel 2).
[0091] The scanning process for channel 2 is similar, and then the electronic device can continue to scan channel 3.
[0092] like Figure 4 As shown, the electronic device can control antenna 301 to receive electromagnetic waves in the frequency band corresponding to channel 3, and convert the electromagnetic waves into analog signals (such as antenna signal a1). That is, by scanning channel 3, antenna signal a1 is obtained. Figure 1 In the illustrated scenario, the presence device 11 communicates with the electronic device via the channel 3, and the antenna signal a1 may include valid data. The electronic device may continue to perform subsequent processing.
[0093] The antenna 301 can transmit the antenna signal a1 to the RF module 302. The RF module 302 can perform RF domain processing on the antenna signal a1 to obtain an analog signal (such as RF modulated signal b1) after amplification, mixing (MIX), and filtering. The RF module 302 can send the RF modulated signal b1 to the AD conversion unit 303. The AD conversion unit 303 digitally samples the RF modulated signal b1 to obtain the 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 parse the preamble and / or frame header information of the digital signal c1 to determine that the protocol type used by the signal received by the 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, so 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 obtained. Then, the RF module 302 performs RF domain processing on the antenna signal a2 to obtain the RF modulation signal b2. After analog-to-digital conversion, the digital signal c2 corresponding to the RF modulation signal b2 is obtained. 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 obtained. Then, the RF module 302 performs RF domain processing on the antenna signal a3 to obtain the RF modulation signal b3. After analog-to-digital conversion, the digital signal c3 corresponding to the RF modulation signal b3 is obtained. 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 channel 9 is a target channel using the target protocol type.
[0099] In this application, Figure 4 The one-by-one scanning scheme based on a single channel shown can be called single-channel scanning.
[0100] Based on the single-channel scan, although the target channel using the target protocol type can be finally determined, the single-channel scan performed before scanning channel 9 (i.e., the target channel) is invalid. This results in significant and invalid power consumption and time overhead. When the channel number of the target channel is greater than 9 (such as 10, 13, etc.), the invalid power consumption and time overhead are even more significant.
[0101] In this regard, an embodiment of the present application provides a multi-channel scanning solution, so that an electronic device (such as device 101) can perform simultaneous scanning and matching processing of two or more channels according to actual conditions. This enables the electronic device to quickly determine the target channel for data transmission using the target protocol type in the current environment. In some embodiments of the present application, based on the solution provided by the present application, the electronic device can also support single-channel scanning according to the current scene requirements.
[0102] The scheme is 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, an antenna 1, an antenna 2, a mobile communication module, a wireless communication module, an audio module, a speaker, a receiver, a microphone, an earphone interface, a sensor module, a button, a motor, an indicator, a camera module, a display screen, 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, the processor may include an application processor (AP), a modem processor (Modem), a graphics processor (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), etc. Among them, different processing units may be independent devices or integrated in 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] A memory may also be provided in the processor for storing instructions and data. In some embodiments, the memory in the processor may be a cache memory. The memory may store instructions or data that have been used by the processor or are frequently used. If the processor needs to use the instruction or data, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor, and thus improves the efficiency of the system.
[0109] In some embodiments, the processor may include one or more interfaces. The interface may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface, etc. The processor may be connected to a touch sensor, an audio module, a wireless communication module, a display screen, a camera module, and the like through at least one of the above interfaces.
[0110] It is understandable that the interface connection relationship between the modules illustrated in the embodiments of the present application is only a schematic illustration and does not constitute a structural limitation on the electronic device. In other embodiments of the present application, the electronic device may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.
[0111] It should be noted that the structure illustrated in the embodiments of the present application does not constitute a specific limitation on the electronic device. In other embodiments of the present application, the electronic device may include more or fewer components than described above, or combine certain components, or split certain components, or arrange the components differently. Any component involved in the above description may be implemented in hardware, software, or a combination of software and hardware.
[0112] In this example, the wireless communication function of the electronic device can be implemented through antenna 1, antenna 2, a mobile communication module, a wireless communication module, a modem processor, and a baseband processor.
[0113] Antenna 1 and 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 reused to improve the utilization of the antennas. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In some other embodiments, the antenna can be used in combination with a tuning switch.
[0114] The mobile communication module can provide solutions for wireless communications including 2G / 3G / 4G / 5G, etc., applied to electronic devices. The mobile communication module may 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 antenna 1, and filter, amplify, and process the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation. The mobile communication module can also amplify the signal modulated by the modulation and demodulation processor, and convert it into electromagnetic waves for radiation through antenna 1. In some embodiments, at least some of the functional modules of the mobile communication module may be arranged in the processor. In some embodiments, at least some of the functional modules of the mobile communication module may be arranged in the same device as at least some of the modules of the processor.
[0115] The modem processor may include a modulator and a demodulator. The modulator is used to modulate the low-frequency baseband signal to be sent into a medium-high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After the low-frequency baseband signal is processed by the baseband processor, it is passed to the application processor. The application processor outputs a sound signal through an audio device (not limited to a speaker, a receiver, etc.), or displays an image or video through a display screen. In some embodiments, the modem processor may be an independent device. In other embodiments, the modem processor may be independent of the processor and be set in the same device as the mobile communication module or other functional modules. For example, the modem processor may be integrated in the baseband processor.
[0116] The wireless communication module can provide wireless communication solutions including wireless local area networks (WLAN) (such as Wi-Fi networks), Bluetooth (BT), Bluetooth low energy (BLE), ultra wide band (UWB), global navigation satellite system (GNSS), frequency modulation (FM), nearfield communication technology (NFC), infrared technology (IR), etc., which are applied to electronic devices. The wireless communication module can be one or more devices integrating at least one communication processing module. The wireless communication module receives electromagnetic waves via antenna 2, modulates the electromagnetic wave signal and filters it, and sends the processed signal to the processor. The wireless communication module can also receive the signal to be sent from the processor, modulate its frequency, amplify it, and convert it into electromagnetic waves for radiation through antenna 2.
[0117] In some embodiments, the antenna 1 of the electronic device is coupled to the mobile communication module, and the antenna 2 is coupled to the wireless communication module, so that the electronic device can communicate with the network and other electronic devices through wireless communication technology. The wireless communication technology may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), wideband code division multiple access (WCDMA), time division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC, FM, and / or IR technology. The GNSS may 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 system (SBAS).
[0118] The electronic device with the above-mentioned components provided in the embodiment of the present application can be used to support the following Figure 4 In addition, the electronic device can also be used to support multi-channel scanning at the same time. The specific implementation will be described in detail later.
[0119] It should be noted that the composition of the electronic device provided in the above example is only an example and does not constitute a limitation on the electronic device. In other embodiments, the electronic device may also have other compositions.
[0120] Exemplary, reference Figure 5 , is a schematic diagram of the composition of another electronic device provided in an embodiment of the present application.
[0121] like Figure 5As shown, in this example, the electronic device may include an antenna module 401, an RF module 402, an AD conversion unit 403, a control module 405, and a baseband module 440, etc.
[0122] The following will illustrate this with examples.
[0123] In some embodiments of the present application, the antenna module 401 can be used to receive WIFI signals. The antenna module 401 may include one or more antennas. The one or more antennas may include an antenna whose working frequency band covers the 2.4 GHz frequency band. Exemplarily, the 2.4 GHz frequency band may include a frequency band from 2.4 Hz to 2.5 Hz.
[0124] In the following description, it is taken as an example that the one or more antennas of the antenna module 401 include a WIFI antenna, and the working frequency band of the WIFI antenna covers the 2.4 GHz frequency band.
[0125] In this way, when the antenna module 401 is working, all data in the 2.4 GHz frequency band can be received through the WIFI antenna and the corresponding antenna signal AT1 can be obtained. Among them, all data in the 2.4 GHz frequency band can include data in the 100 MHz frequency band from 2.4 GHz to 2.5 GHz in the frequency domain. In this way, the antenna signal AT1 can include data corresponding to the 100 MHz frequency band from 2.4 GHz to 2.5 GHz.
[0126] In the present application, when the electronic device performs channel scanning of different numbers, the valid data required by components such as the RF module 402 and the baseband module 440 can be included in the 100 MHz antenna signal AT1.
[0127] In the following description, the required valid data is referred to as sampling data.
[0128] Exemplarily, take the electronic device performing 5-channel multi-channel scanning (referred to as 5-channel scanning) as an example.
[0129] In this example, the electronic device performs a scan each time to achieve synchronous scanning of five channels. Accordingly, the frequency domain bandwidth of the sampled data may be 40 MHz.
[0130] refer to Figure 6Example. The antenna signal AT1 may include all data in the 100MHz frequency band corresponding to channel 1 to channel 13 (or channel 1 to channel 14). Then, when performing a 5-channel scan, the sampling data of the first scan may be the sampling data SD_A1, and the sampling data SD_A1 may be the signal of the 2402MHz to 2442MHz portion in the antenna signal AT1. Similar to the first scan, the sampling data of the second scan may be the sampling data SD_A2, and the sampling data may include a signal from 2422MHz to 2462MHz. The sampling data of the third scan may be the sampling data SD_A3, and the sampling data may include a signal from 2442MHz to 2482MHz.
[0131] It is understandable that in the embodiment of the present application, since the 1 MHz at the head of channel 1 and the 1 MHz at the tail of channel 5 generally do not include valid data, the sampled data SD_A1 can cover 2402 MHz to 2442 MHz for subsequent processing to obtain data segments from channel 1 to channel 5. The subsequent steps are similar and will not be repeated.
[0132] Thus, after three scans, the sampled data that needs to be processed later can be obtained from the 2.4GHz frequency band. Compared with single-channel scanning, it can save the time and power consumption of up to 10 scans and analyses. In this case, in this application, for the simultaneous scanning of 5 channels, the use of 40MHz as the bandwidth for each scan is only an example. In other implementations, the scanning bandwidth of each scan may also be different from 40MHz.
[0133] For example, in Figure 6 In the example, sample data distribution examples in 4-channel scanning, 3-channel scanning, and 2-channel scanning scenarios are also provided.
[0134] Take 4-channel scanning as an example. The sampling data bandwidth in each scan can be 35MHz. In this way, when performing 4-channel scanning, the sampling data of the first scan can be sampling data SD_B1, and the sampling data SD_B1 can be the signal of the 2402MHz to 2432MHz part of the antenna signal AT1. The sampling data of the second scan can be sampling data SD_B2, and the sampling data SD_B2 can be the signal of the 2417MHz to 2452MHz part of the antenna signal AT1. The sampling data of the third scan can be sampling data SD_B3, and the sampling data SD_B3 can be the signal of the 2432MHz to 2467MHz part of the antenna signal AT1. The sampling data of the fourth scan can be sampling data SD_B4, and the sampling data SD_B4 can be the signal of the 2447MHz to 2482MHz part of the antenna signal AT1. The data of all 13 channels can be obtained through 4 scans.
[0135] Take 3-channel scanning as an example. The bandwidth of the sampling data required in each sampling may be 30 MHz. The sampling data may include sampling data SD_C1, etc. The sampling data SD_C1 may be 2402 MHz to 2432 MHz in the antenna signal AT1. The sampling data SD_C1 may correspond to data including channels 1 to 3. Subsequent scanning may be implemented by a similar scheme, and scanning may be performed from channel 3 to channel 5, from channel 5 to channel 7, from channel 7 to channel 9, from channel 9 to channel 11, and from channel 11 to channel 13.
[0136] Take 2-channel scanning as an example. The bandwidth of the sampling data required in each sampling may be 25 MHz. The sampling data may include sampling data SD_D1, etc. The sampling data SD_D1 may be 2402 MHz to 2427 MHz in the antenna signal AT1. The sampling data SD_D1 may correspond to data including channel 1 to channel 2. Subsequent scanning may be implemented through a similar scheme to scan 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-mentioned example of multi-channel scanning, when the electronic device performs single-channel scanning, the sampling data required for each single-channel scanning may also be included in the antenna signal AT1 collected by the WIFI antenna.
[0138] In this application, if Figure 5 The RF module 402 shown can be used to perform radio frequency processing on the antenna signal AT1.
[0139] In some embodiments, the RF module 402 may include an analog amplification unit, a mixing unit, an analog filtering unit, etc.
[0140] Among them, the analog amplification unit may include a low noise amplifier (Low Noise Amplifier, LNA); the mixing unit may include a MIX component; the analog filtering unit may include a low pass filter (Low Pass Filter, LPF). In other embodiments, the various components in the RF module 402 may also be flexibly configured according to actual needs. In different implementations, the components in the RF module 402 may be more than the above examples, or less than the above examples. In other implementations, the components in the RFM module 402 may also be replaced by other forms of components with similar functions. The embodiments of the present application are not limited to this.
[0141] The LNA can amplify the analog signal. Parameters in the amplification process may include analog gain, or RF gain.
[0142] The MIX component can provide analog down-conversion processing for analog signals. For example, through the analog down-conversion processing, the RF module 402 can move the center frequency of the sampling signal included in the antenna signal AT1 to 0 MHz according to the current sampling signal.
[0143] Exemplary, combined Fig. 7A Take the first scan of the electronic device currently performing 5 channel scans as an example. In this way, the valid data of this scan can correspond to the sampled data SD_A1. Figure 6 In the example in FIG. 1 , the center frequency of the sampled data SD_A1 may be 2422 MHz. Fig. 7A As shown, the MIX component can be configured to perform analog down-conversion processing so that the antenna signal AT1 is shifted to a low frequency of 2442 MHz in the frequency domain, thereby adjusting the center frequency of the sampled data SD_A1 from 2422 MHz to 0 MHz.
[0144] Take the first scan of the electronic device currently performing 4 channel scans as an example. In this way, the valid data of this scan can correspond to the sampled data SD_B1. Figure 6 In the example in FIG. 1 , the central frequency point of the sampled data SD_B1 may be 2419.5 MHz. Fig. 7A As shown, the MIX component can be configured to perform analog down-conversion processing so that the antenna signal AT1 is shifted to a low frequency of 2419.5 MHz in the frequency domain, thereby adjusting the center frequency of the sampled data SD_B1 from 2419.5 MHz to 0 MHz.
[0145] Take the first scan of the electronic device currently performing 3 channel scans as an example. In this way, the valid data of this scan can correspond to the sampled data SD_C1. Figure 6 In the example in FIG. 1 , the center frequency of the sampled data SD_C1 may be 2417 MHz. Fig. 7A As shown, the MIX component can be configured to perform analog down-conversion processing so that the antenna signal AT1 is shifted to a low frequency of 2417 MHz in the frequency domain, thereby adjusting the center frequency of the sampled data SD_C1 from 2417 MHz to 0 MHz.
[0146] Take the first scan of the electronic device currently performing 2 channel scans as an example. In this way, the valid data of this scan can correspond to the sampled data SD_D1. Figure 6 In the example in FIG. 1 , the central frequency point of the sampled data SD_D1 may be 2414.5 MHz. Fig. 7AAs shown, the MIX component can be configured to perform analog down-conversion processing so that the antenna signal AT1 is shifted to a low frequency of 2414.5 MHz in the frequency domain, thereby adjusting the center frequency of the sampled data SD_D1 from 2414.5 MHz to 0 MHz.
[0147] In this way, after being processed by the MIX component, the center frequency point of the required sampling data can be adjusted to 0 MHz.
[0148] In this example, the center frequency of the passband of the low-pass filter in the RF module 402 can be configured as 0 MHz. The passband bandwidth of the passband of the low-pass filter in the RF module 402 can be configured to be consistent with the bandwidth of the sampling data corresponding to the current scan.
[0149] For example, taking the electronic device currently performing 5-channel scanning as an example, the pass bandwidth of the low-pass filter in the RF module 402 can be configured to 40MHz; taking the electronic device currently performing 4-channel scanning as an example, the pass bandwidth of the low-pass filter in the RF module 402 can be configured to 35MHz; taking the electronic device currently performing 3-channel scanning as an example, the pass bandwidth of the low-pass filter in the RF module 402 can be configured to 30MHz; taking the electronic device currently performing 2-channel scanning as an example, the pass bandwidth of the low-pass filter in the RF module 402 can be configured to 25MHz.
[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, Figure 5 The control module 405 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.
[0152] In some implementations, the RF module 402 may be configured with multiple MIX components with different analog down-conversion capabilities. For example, the RF module 402 may be configured with 4 MIX components, specifically including a MIX component for performing 2442MHz analog down-conversion; a MIX component for performing 2419.5MHz analog down-conversion; a MIX component for performing 2417MHz analog down-conversion; a MIX component for performing 2414.5MHz analog down-conversion, etc. 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 being scanned and the number of scans. As a result, the analog down-conversion corresponding to the current scan can be achieved through the MIX component.
[0153] In other implementations, a MIX component with adjustable analog down-conversion capability may be configured in the RF module 402. In this way, the control module 405 may adjust the analog down-conversion capability of the MIX component through control instructions according to the number of channels currently being scanned, thereby enabling the analog down-conversion corresponding to the current scan to be achieved through the MIX component.
[0154] Similar to the MIX component configuration, the low-pass filter in the RF module 402 can also be configured as a multi-channel low-pass filter with 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 of , 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. For 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 conversion unit 403 is different from the design frequency of the back-end component, a digital resampling (Resample) module can be configured at the output end of the AD conversion unit 403. For example, the digital sampling frequency of the AD conversion unit 403 is 160MHz, and the design frequency of the back-end module is 80MHz. Then, a 160MHz to 80MHz resampling module can be configured at the output end of the AD conversion unit 403, so that the back-end module can obtain a signal with a digital sampling frequency of 80MHz.
[0157] Thus, the AD conversion unit 403 can output a digital signal corresponding to the sampled data, and the digital signal 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, etc. 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] Taking multi-channel scanning as an example, the frequency shift unit group can be used to implement digital frequency shift processing (referred to as frequency shift processing) on the digital signal acquired by the AD conversion unit 403. In some implementations, the frequency shift processing can be implemented by digital down-conversion.
[0161] In some embodiments of the present application, the frequency shift unit group may be implemented by including one or more digital down converter (DDC) units.
[0162] For example, the frequency shift unit group may include DDC1 to DDCn, wherein the frequency shift capabilities of different DDCs are relatively fixed, and the frequency shift processing steps of different DDCs on digital signals are different.
[0163] In this way, the signal division module can control the DDC power-on operation of different channels under the control of the control module 405 in different scenarios, thereby realizing corresponding frequency shift processing on different channels.
[0164] Take the example of an electronic device supporting up to 5 channel scanning. DDC1 to DDC5 can be configured in the frequency shift unit group. Each DDC is connected in parallel. Each DDC can obtain the digital signal output by the AD conversion unit 403. As an example, the frequency shift processing capabilities of DDC1 to DDC5 may include: DDC1 performs 0MHz frequency shift processing, or DDC1 does not perform frequency shift processing; DDC2 performs -2.5MHz and / or -5MHz frequency shift processing; DDC3 performs 2.5MHz and / or 5MHz frequency shift processing; DDC4 performs -7.5MHz and / or -10MHz frequency shift processing; DDC5 performs 7.5MHz and / or 10MHz frequency shift processing.
[0165] Take the first scan of the electronic device performing a 5-channel scan as an example. The digital signal can be synchronously input to DDC1 to DDC5. Each DDC performs a corresponding frequency shift process on the digital signal. Therefore, after the frequency shift process of the 5 DDCs, the center frequency 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 scan of the 5-channel scan is as follows: Figure 6 The sample data SD_A1 is shown. Fig. 7A After the analog down-conversion process shown, the center frequency of the sampled data is adjusted to 0 MHz.
[0167] Since the sampled data includes data from 5 channels, the center frequencies of the frequency domains of the channels correspond to: the center frequency of channel 1 is -10 MHz, the center frequency of channel 2 is -5 MHz, the center frequency of channel 3 is 0 MHz, the center frequency of channel 4 is 5 MHz, and the center frequency of channel 5 is 10 MHz.
[0168] In this way, through the 0 MHz frequency shift processing of DDC1, the center frequency point of the digital signal output by DDC1 coincides with the center frequency point of channel 3.
[0169] Through the -5MHz frequency shift processing of DDC2, the center frequency of channel 4 is moved to 0MHz, and the center frequency of the digital signal output by DDC2 coincides with the center frequency of channel 4.
[0170] Through the 5MHz frequency shift processing of DDC3, the center frequency of channel 2 is moved to 0MHz, and the center frequency of the digital signal output by DDC3 coincides with the center frequency of channel 2.
[0171] Through the -10MHz frequency shift processing of DDC4, the center frequency of channel 5 is moved to 0MHz, and the center frequency of the digital signal output by DDC4 coincides with the center frequency of channel 5.
[0172] Through the 10MHz frequency shift processing of DDC5, the center frequency of channel 1 is moved to 0MHz, and the center frequency of the digital signal output by DDC5 coincides with the center frequency of channel 1.
[0173] In the present application, the signal division module 441 may further include a filter unit group. The filter unit group may 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 are all 22 MHz, that is, the single channel bandwidth.
[0175] Taking 5-channel scanning as an example, the signal division module 441 may include LPF1 to LPF5.
[0176] The DDC1 can be configured on the same link as LPF1. The DDC2 can be configured on the same link as LPF2. The DDC3 can be configured on the same link as LPF3. The DDC4 can be configured on the same link as LPF4. The DDC5 can be configured on the same link as LPF5.
[0177] In this way, through the digital filtering process of LPF1, the digital signal corresponding to channel 3 can be output. Through the digital filtering process of LPF2, the digital signal corresponding to channel 4 can be output. Through the digital filtering process of LPF3, the digital signal corresponding to channel 2 can be output. Through the digital filtering process of LPF4, the digital signal corresponding to channel 5 can be output. Through the digital filtering process of LPF5, the digital signal corresponding to channel 1 can be output.
[0178] Therefore, the separation of multi-channel data can be achieved through the processing of the signal division module 441.
[0179] It is understandable that the above examples all take 5-channel scanning as an example. When scanning other numbers of channels, the control module 405 can also separate the digital signals transmitted on each channel based on similar logic.
[0180] In the present application, the data of each channel separated by the signal division module 441 can be transmitted to the matching module 442 for processing.
[0181] In some embodiments, the matching module 442 may include a listening unit group. The listening unit group may include n clear channel assessment (CCA) units.
[0182] The n CCAs can be connected to one LPF respectively. Thus, the n DDCs, the n LFPs, and the n CCAs can constitute n signal processing links respectively.
[0183] In this example, CCA can be used to perform matching processing to determine whether data on the current signal processing link is transmitted using the target protocol type.
[0184] In some embodiments, the matching process may be performed based on a Baker code of the target protocol type.
[0185] Exemplarily, in some embodiments, CCA may perform correlation peak matching between input data (ie, a digital signal of a channel separated by DDC and LPF) and a baker code of a target protocol type.
[0186] When the peak value of the correlation peak is greater than the corresponding quantity threshold A, the corresponding match is successful. That is, the transmission of the data segment uses the target protocol type, and the channel used to receive the data segment can be the target channel.
[0187] In the above example, the matching process may be performed on a complete data segment of a channel. In other examples, the matching process may also be performed on parts of the complete data.
[0188] For example, Figure 7B As shown, a sliding window can be configured in CCA. The length of the sliding window is less than the number of bits of the complete data. CCA can slide the window for the input data and perform matching processing in each window.
[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, in Figure 7B When the data corresponding to the detection window 1 shown in the figure is matched with the reference Baker code for correlation peak in CCA, the peak value of the corresponding correlation peak 1 is greater than the peak threshold value. In this way, the counter is increased by 1.
[0191] CCA can continue to slide the window, such as after sliding 1 bit, to match the data in detection window 2. If the peak value of the correlation peak 2 of the data in detection window 2 and the reference Baker code is less than the peak value threshold, the counter remains unchanged.
[0192] By analogy, CCA can continuously slide the window on data segment 1, and finally determine whether 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 slides to the last bit.
[0193] For example, when the value of the counter reaches the corresponding quantity threshold B, the corresponding data segment successfully matches the target protocol type, that is, the transmission of the data segment uses the target protocol type, and the channel used to receive the data segment can be the target channel.
[0194] Alternatively, when the sliding window slides to the end of the data segment of the channel, the value of the counter still does not reach the preset quantity threshold, then the data segment fails to match the target protocol type, that is, the transmission of the data segment does not use the target protocol type.
[0195] Therefore, the electronic device can realize synchronous processing of multiple channel data through the cooperation of the above components, so as to determine whether the multiple channels include the target channel through one scan.
[0196] In some implementations, the CCA of the electronic device may mark the link corresponding to the target channel, thereby enabling other components to know that the data transmitted on the signal processing link is the target data transmitted using the target protocol type.
[0197] For example, the electronic device may configure an identifier (flag) for each signal processing link consisting of a DDC, LPF, and CCA. Generally, the flag may be configured as 0 by default. When the CCA on a link matches successfully and determines that the data segment processed on the channel is the target data, the CCA may configure the flag of the link to 1.
[0198] In some 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 some other embodiments of the present application, the electronic device may also 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] Among them, state0 corresponds to the initial state. State1 corresponds to the state where the correlation peak is matched successfully. State 2 corresponds to the state where the data verification fails. State 3 corresponds to the state where the data verification is successful.
[0202] The following explains them respectively.
[0203] It should be noted that, in the present application, the status parameters of the data may include: FlagSync(i), stop(i), CRC_ERROR_FLAG(i), and SFD_ERROR_FLAG(i), etc.
[0204] Among them, i corresponds to different signal transmission links. For example, when the electronic device supports up to 5 multi-channel scanning, 5 signal processing links can be configured. Each signal processing link can include a DDC, an LPF and a CCA. In this way, the value of i can include 1, 2, 3, 4, 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] Take the current 5-channel scanning as an example. When CCA starts to detect data of 5 signal transmission links, the state of each data may be state0.
[0206] When the data is in state 0, stop(i) of each data is 0, which means that all data segments are not suppressed from listening. Correspondingly, stop(i)=1 means that the listening of the data segment is suppressed.
[0207] It is understandable that when a data segment is determined as target data, since the frequency bands between adjacent channels overlap, it is possible that the data of the adjacent channels may be misdetected due to the information including the target data. Thus, in this example, when 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, thereby achieving suppression of the adjacent channels.
[0208] Combination Figure 7B In the description, CCA is used as an example to perform matching processing in the form of a sliding window.
[0209] As time goes by, the detection window for the data segments on each link keeps sliding, and the corresponding counter value keeps changing. For example, for a data segment on a signal processing link, after the detection window slides, each time the peak value of the correlation peak appears to be greater than the quantity threshold B, the counter is incremented by 1. In this example, FlagSync(i) can be used to indicate the real-time counter value of the corresponding data segment i on the signal processing link i after matching processing. The quantity threshold B can be equal to K.
[0210] Thus, when FlagSync(i) is less than K, the matching of data segment i has not been successful. Correspondingly, the state of data segment i remains at state0. When stop(i)=0 of data segment i, the electronic device can continue to listen to data segment i and input it into CCA for matching processing.
[0211] When FlagSync(i) of data segment i is greater than or equal to K, and stop(i)=0, the electronic device (such as the control module 405 ) may adjust the state of data segment i to state1 .
[0212] Thus, through state1, it can be indicated that the correlation peak of the data segment i is successfully matched. The data segment i may be the target data.
[0213] In some embodiments of the present application, when the electronic device configures data segment i to state1, it can also configure stop(i) of data segment i to stop(i)=1. This suppresses the monitoring of data segment i and saves corresponding power consumption. In some embodiments of the present application, when the electronic device configures data segment i to state1, it can also configure stop(i-1) of data segment i-1 to stop(i-1)=1; the electronic device can also configure stop(i+1) of data segment i+1 to stop(i-1)=1, thereby avoiding false detection of adjacent channel data.
[0214] Next, the CCA or parsing module may perform data verification on the data segment i of state1.
[0215] Exemplarily, the data check may include a check of a preamble and a header. For example, the data check may include a check of a start of frame delimiter (SFD) and a check of a cyclic redundancy check (CRC).
[0216] In some implementations, the SFD may be carried in the preamble, and the CRC information may be carried in the frame header. Thus, by checking the information of the preamble and the frame header, the SFD check and the CRC check may be implemented.
[0217] Correspondingly, CRC_ERROR_FLAG(i) is used to indicate whether the CRC check of data segment i is successful. For example, if the CRC check of data segment i is successful, the electronic device correspondingly configures CRC_ERROR_FLAG(i) to 0. For another example, if the CRC check of data segment i fails, the electronic device correspondingly configures CRC_ERROR_FLAG(i) to 1.
[0218] In addition, SFD_ERROR_FLAG(i) is used to indicate whether the SFD check of data segment i is successful. For example, if the SFD check of data segment i is successful, the electronic device correspondingly configures SFD_ERROR_FLAG(i) to 0. For another example, if the SFD check of data segment i fails, the electronic device correspondingly configures SFD_ERROR_FLAG(i) to 1.
[0219] Through the data verification process, the electronic device can adjust the state of the data segment i according to the data verification result.
[0220] For example, after data verification, CRC_ERROR_FLAG(i)=0 and SFD_ERROR_FLAG(i)=0. Then the electronic device adjusts the state of data segment i to state3, which corresponds to the start of parsing the subsequent bit data of data segment i.
[0221] For another example, after data verification, CRC_ERROR_FLAG(i)=1 or SFD_ERROR_FLAG(i)=1. Then the electronic device adjusts the state of data segment i to state2. This indicates that data verification has failed, and subsequent bit data of data segment i will not be parsed.
[0222] In the present application, when the electronic device configures the state of data segment i to be state2 or state3, it can also adjust the stop state parameters of the data on the adjacent signal processing link.
[0223] For example, the electronic device configures the state of data segment i to state 2. The electronic device may also configure stop(i-1) to 0 and stop(i+1) to 0. Thus, the signal monitoring of the adjacent link continues, and the adjacent link is not suppressed.
[0224] For another example, the electronic device configures the state of data segment i to state 3. The electronic device may also configure stop(i-1) to 1 and stop(i+1) to 1. Thus, the signal monitoring of the adjacent link is no longer performed, so as to save the corresponding power consumption.
[0225] In the present application, when the state of data segment i is configured as state3, the parsing module can perform parsing of the data intercepted on the signal processing link corresponding to the data segment i within a valid frame length interval, and then obtain valid data. The electronic device can use cnt to identify the position of the bit currently being parsed in the current frame. When cnt is less than the sum of the valid frame length and the frame interval, the parsing module can continue to parse the data. 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 parsing ends here, and the electronic device restores the stop(i) of data segment i to 0, and restores the stop(i-1) and stop(i+1) of the adjacent link to 0. As a result, data segment i, data segment i-1, and data segment i+1 are all restored to state0, and the next scan and parsing begins.
[0226] Correspondingly, when the state of data segment i is configured as state2, the electronic device can keep stop(i-1) and stop(i+1) of the adjacent link as 0 when cnt is less than the sum of the effective frame length and the frame interval, so that CCA can continue to monitor the adjacent channel. Correspondingly, when cnt is greater than or equal to the sum of the effective frame length and the frame interval, the current data segment i and the two adjacent data segments i-1, as well as the data segment i+1 are restored to state0. It can be understood that when i=1, it is only necessary to restore the data segment i and the data segment i+1 to state0.
[0227] In this way, when there are multiple data segments that are all transmitted using the target protocol type, parsing of other target data segments can be avoided after parsing of one data segment is completed.
[0228] For example, data segment 3 starts parsing first. When data segment 3 is parsed, data segment 1 and data segment 5 are being parsed. In this way, the electronic device can control the stop() configuration of data segment 3 and the adjacent data segments 2 and 4 to 0, and restore the state of data segment 3 and the adjacent data segments 2 and 4 to state 0. Accordingly, data segment 1 and data segment 5 are kept in state 3 so that data segment 1 and data segment 5 can continue to be parsed.
[0229] In the above example, it is taken that 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 clearing mechanism may also be configured in the state machine. Thus, when any link is abnormally hung or erroneous, the count clearing mechanism may be used to initialize the FlagSync(i) of each data segment to 0 and the state of each data segment to state0.
[0231] Therefore, through this Figure 7C As described above, the present application provides a logic based on state machine control, thereby achieving effective management of CCA listening and subsequent analysis.
[0232] It can be understood that, through the above description, in some implementations, taking the current 5-channel scan as an example, CCA can simultaneously determine that two or more channels are target channels. For example, CCA determines that channel 1 and channel 3 are both target channels through matching processing. For this, in some embodiments of the present application, the electronic device can be configured with multiple parsing modules to simultaneously implement parsing processing 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 configuration link flag to identify the target link can be flexibly adopted. Figure 7C The state machine control logic realizes the processing and control of the target data. This embodiment of the 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 next scan is performed on each component in the system, and this process is repeated to quickly determine the target channel in the current environment.
[0235] As an example, refer to Figure 8 In combination with the above description, the signal division module 441 and the matching module 442 in the electronic device can together constitute the digital processing part for implementing multi-channel scanning in the present application. In the following description, the combination of the signal division module 441 and the matching module 442 can be referred to as a channel scanning component.
[0236] like Figure 8 As shown, n signal processing chains may be configured in the channel scanning component, where n corresponds to the maximum number of channels that the channel scanning component can support for multi-channel scanning.
[0237] Each signal processing link can be configured with a DDC, an LPF, and a CCA. For specific connection forms and functions, please refer to the above 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 explanation, Figure 8 As shown, in the following description, the channel scanning component is simplified as a series connection of CCA, LPF and CCA. This simplified example does not constitute a specific limitation on the channel scanning component.
[0240] In addition, in Figure 5 In the example of , the baseband module 440 of the electronic device may also be configured with a parsing module 443. In some embodiments, the parsing module 443 may be used to parse the target data of the target channel, thereby obtaining valid data transmitted on the target channel.
[0241] In some implementations, taking the target protocol type as 802.11b as an example, the parsing module 443 may include 11bdemod.
[0242] The baseband module 440 of the electronic device may further include an AGC unit 444 .
[0243] In combination with the above description about 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 process may be determined by the AGC unit 444 of the baseband module 440 .
[0245] Exemplary, reference Fig. 9, which is an indication of a logical connection.
[0246] like Fig. 9 As shown, the antenna module 401 can be electrically connected to the RF module 402. The RF module 402 can be electrically connected to the AD conversion unit 403. The AD conversion unit 403 can be electrically connected to the channel scanning component. The channel scanning component can be electrically connected to the analysis module 433.
[0247] In addition, the CCA in the channel scanning component can also be electrically connected to the ADC unit 444.
[0248] In some embodiments, the CCA may transmit target data using a target protocol type to the AGC unit 444 .
[0249] In some other embodiments, the AGC unit 444 may obtain target data from the CCA according to a flag on a signal transmission link being identified as 1.
[0250] Correspondingly, the AGC unit 444 can determine the power of the current target data according to the target data. The AGC unit 444 can also determine the AGC gain according to the power of the current target data. By using the AGC gain to amplify the analog signal, the power of the target data can be adjusted to a reasonable range to facilitate subsequent accurate analysis.
[0251] As a possible implementation, the AGC unit 444 may determine the digital average power of the target data according to the following formula (1).
[0252] Formula (1):
[0253] Among them, Digital_power average That is, the digital average power. N is the number of IQ data pairs required to calculate the digital average power. This 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 is understandable that the above-mentioned solution of the AGC unit 444 determining the AGC gain is only one implementation. In other implementations, the AGC unit may also be implemented by other solutions to determine the AGC gain.
[0256] Above Fig. 9 In the example, the AGC unit 444 determines the AGC gain according to the target data after DDC, LPF and CCA processing. In other embodiments, the AGC unit 444 may determine the AGC gain by processing other signals on the signal link transmitting the target data.
[0257] Exemplary, reference Fig.10 , which is another example of the logical connection of each component.
[0258] Combination Fig. 9 In the description, Fig.10 In the example of , 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 may be a half-band FIR filter. The HBF may be used to provide a resampling capability for a digital signal, so as to perform frequency conversion on the digital signal and the output signal.
[0260] For example, after the AD conversion unit 403 performs analog-to-digital conversion on the signal transmitted by the RF module 402, an 80 MHz digital signal 1001 can be obtained. The 80 MHz digital signal 1001 can be transmitted to the HBF module for processing. After being processed by the HBF module, a 40 MHz 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 solution.
[0262] It is understandable that the digital signal 1002 includes all data of the 100 MHz frequency bandwidth of the 2.4 GHz 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 the 100 MHz frequency bandwidth. For the target data, this adjustment can play a role of coarse adjustment.
[0263] In some implementations, when the electronic device performs single-channel scanning according to demand, the electronic device may perform single-channel scanning according to the demand. Fig.10 The scheme shown is implemented to perform effective RF gain adjustment.
[0264] refer to Fig.11, which is another example of a logical connection provided by the embodiment of the present application. Fig.11 In the implementation, the AGC unit 444 can determine the AGC gain based on the digital signal after DDC processing and before LPF processing.
[0265] like Fig.11 As shown, in this example, different from Fig.10 In the implementation, the DDC can be electrically connected to the input end of the HBF module.
[0266] In the specific implementation, Fig.10 The DDC shown is specifically composed of n DDCs. Thus, the output ends of the n DDCs can be electrically connected to the input ends of the HBF module respectively.
[0267] In addition, in this Fig.11 In the example, CCA can also be connected to DDC for communication.
[0268] In this way, the DDC can obtain the signal transmission link for transmitting the target data from the CCA after the CCA matching is completed. For example, the data output by the signal transmission link corresponding to DDC1 is the target data. The DDC can transmit the digital signal 1004 after the DDC performs frequency shift processing on the signal transmission link for transmitting the target data to the HBF module. For example, the DDC can transmit the digital signal output by DDC1 as the digital signal 1004 to the HBF module.
[0269] For example, the digital signal 1004 has a sampling frequency of 80 MHz. The HFB module can process the digital signal 1004 to obtain 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 solution.
[0271] It can be understood that the digital signal 1005 is data with a frequency bandwidth of 100 MHz after frequency shift processing according to the target channel coverage frequency band. The central 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 achieve targeted analog gain adjustment for data transmitted by the target channel. For the target data, this adjustment can play a role of fine adjustment.
[0273] Thus, through the above Fig.10The 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, the electronic device may be compatible with configurations such as Fig.10 as well as Fig.11 In this way, the electronic device can use the following logic when starting multi-channel scanning: Fig.10 The scheme shown in the figure 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: Fig.10 When 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. Fig.11 The solution shown in the figure performs targeted RF gain adjustment on the target channel, thereby achieving gradual adjustment from coarse adjustment to fine adjustment, and obtaining a better RF gain adjustment effect.
[0275] It should be noted that in Fig.11 In the example of , a logical connection implementation of the parsing module 443 is also provided. Fig. 9 or Fig.10 In the scheme, Fig.11 In the example, the analysis module 443 can be electrically connected to the output end of the HBF module.
[0276] In this way, the HBF module can also transmit the digital signal 1004 to the analysis module 443 for analysis. It can be understood that the central 22MHz data of the digital signal 1004 is the target data, and the digital signal 1004 includes more data content than a single channel signal. Therefore, the analysis module 433 can obtain a more accurate and comprehensive analysis effect of the target data by analyzing more data.
[0277] In different implementations of the present application, Fig. 9 ( Fig.10 )or Fig.11 The logical connection and analysis scheme of the analysis module 443 provided can be flexibly selected according to actual conditions, and the present application embodiment does not limit this.
[0278] As Fig.11The scheme shown in the figure is implemented as an example. In some embodiments, the radio frequency signal output by the RF module 402 includes a large number of DC parts. It is understandable that a general radio frequency signal can be an AC signal (such as a sine wave) as a carrier, and the effective data is loaded into the radio frequency signal in the form of amplitude and phase modulation. In other words, the DC part in the radio frequency signal is actually not directly related to the effective data. In this way, the digital signal output by the AD conversion unit 403 after analog-to-digital conversion will also include an invalid DC part.
[0279] In this regard, in some embodiments of the present application, Fig.12 As shown, a DC removal module 1201 may be configured in series between the AD conversion unit 403 and the DDC. The DC removal module 1201 may be used to filter out the DC portion of the digital signal. This enables the removal of invalid signals from the digital signal input to the DDC, 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, due to Fig.12 The modules shown may be provided by two or more suppliers. Therefore, the design frequencies of the components in the entire link may be different. The design frequency may be an analog sampling frequency for the RF module 402. The design frequency may be a digital sampling frequency for other digital processing modules.
[0281] For example, Fig.13 As shown, the digital sampling frequency of the output signal of the AD conversion unit 403 can be 160MHz. The design frequency of the DC removal module 1201 and the digital processing modules such as 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 DC removal module 1201. The resampling module 1301 can have a digital resampling capability of 160MHz->80MHz. As a result, the sampling frequency of the digital signal input to the DC removal module 1201 and the subsequent digital processing modules such as DDC matches the design frequency of the module. Thus, a more accurate processing result is obtained.
[0282] For another example, DDC and LPF can digitally process 80MHz signals. CCA can digitally process 40MHz signals. In this way, a resampling module 1303 can be configured between LPF and 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 configured between an LPF and a CCA respectively. Thereby, 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, through the half-band filtering process of the HBF module, the 80 MHz signal is actually adjusted to 40 MHz. In this way, the sampling frequency of the signal input to the analysis module 443 can match the analysis module 443.
[0285] like Fig.13 In the example of FIG. 1 , the design frequency of DDC and LPF is 80 MHz, and the design frequency of CCA is 40 MHz. In this way, the resampling module 1303 can be configured between LPF and CCA. In other implementations, the design frequency of DDC is 80 MHz, and the design frequency of LPF and CCA is 40 MHz. In this way, Fig.14 As shown, a resampling module 1304 can be configured between the DDC and the LPF. The resampling module 1304 can have a digital resampling capability of 80MHz->40MHz. As a possible implementation, the resampling module 1304 can include n sub-sampling modules. Each sampling module can be configured between a DDC and an LPF respectively. Thereby, digital resampling on the corresponding signal processing link is realized. In this way, the sampling frequency of the digital signal input to the digital processing modules such as LPF and CCA can be matched with the design frequency of the module. Then, a more accurate filtering and matching processing result can be obtained.
[0286] It is understandable that if Fig.13 or Fig.14 The location of the resampling module shown can be flexibly set according to actual conditions. For example, the design frequency of components such as DDC, LPF, and CCA can be configured to a lower frequency, thereby saving circuit area. Accordingly, the resampling module is configured at the front end of the DDC, so that the above-mentioned circuit area can be saved while obtaining accurate digital processing results.
[0287] Combination Fig.10 The instructions in Figure 11 to Figure 14 The implementation scheme shown can also be applied to the case where the analysis module 443 is electrically connected to the output terminal of the CCA. Fig.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 analysis module 443 may be configured at the output end of the CCA. The analysis module 443 may be used to analyze and process the signal on the signal transmission link whose flag of the CCA mark is 1.
[0289] In such Fig.15 In the example, a DAGC module 1501 may be further provided between the CCA and the parsing module 443. The DAGC module 1501 may have the capability of digital signal amplification. For example, the DAGC module 1501 may be configured with parameters related to digital gain. The DAGC module 1501 may perform digital amplification processing on the input signal according to the digital gain. The input signal may be a signal on a signal transmission link with a flag of 1 marked by the CCA, that is, 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 be more conducive to the analysis module 443 to analyze the target data.
[0291] Above Fig.15 The solution implementation that the parsing module 443 parses the target data output by the CCA to obtain valid data is provided. In other embodiments, the parsing module 443 may also obtain signals of other nodes on the signal transmission link with flag 1 for parsing to obtain valid data.
[0292] For example, Fig.16 As shown, in some embodiments, the input end of the DAGC module 1501 can also be electrically connected to the output end of the resampling module 1304. In this way, the resampling module 1304 can trigger, based on the flag of the link being identified as 1, to transmit the signal on the signal transmission link with the flag identified as 1 to the DAGC module 1501 through the output end for digital amplification. Then, the amplified data is transmitted to the analysis module 443 for analysis processing.
[0293] In this way, the analysis module 443 can obtain relatively complete target data before LPF and CCA processing, thereby improving the accuracy of obtaining valid data through analysis.
[0294] In some 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] Exemplary, combined Figures 10 to 16 Instructions in reference Fig.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] An output terminal of the AD conversion unit 403 is electrically connected to an input terminal of the DC removal module 1201. An output terminal of the DC removal module 1201 is electrically connected to the DDC, LPF, and CCA in sequence. An output terminal of the CCA is electrically connected to the analysis module 443. Thus, single-channel or multi-channel scanning and analysis of target data are achieved.
[0297] Another output terminal of the AD conversion unit 403 is electrically connected to the input terminal of the HBF module. The output terminal of the HBF module is electrically connected to the input terminal of the AGC unit 444. The output terminal of the AGC unit 444 is electrically connected to another input terminal of the RF module 402. Thus, dynamic adjustment of analog gain is achieved.
[0298] In some embodiments, a reserved interface 1701 may be configured on the link between the DC removal module 1201 and the DDC. The reserved interface 1701 may be used to couple components related to signal strength measurement, thereby implementing signal strength detection of the digital signal output from the DC removal module 1201. For example, the signal strength detection may be detection of RSSI.
[0299] In other embodiments, a reserved interface 1702 may 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 may be used to couple components related to signal strength measurement. This enables detection of signal strength on one or more links between the DDC and the LPF. For example, the signal strength detection may be detection of RSSI.
[0300] In other embodiments, a reserved interface 1703 may 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 may be used to couple components related to signal strength measurement. This enables detection of signal strength on one or more links between the LPF and the CCA. For example, the signal strength detection may be detection of RSSI.
[0301] In other embodiments, the CCA unit configured on each link in the CCA may be a parameter-adjustable component. For example, by adjusting the parameters of the CCA unit, the Baker code and related thresholds used for matching processing can be flexibly configured. This enables the corresponding matching processing mechanism to be adapted to different scenarios with different target protocol types.
[0302] In this example, one or more CCA units of the CCA may be configured with a control end. The control ends of the CCA units may be electrically connected to the reserved control interface 1704, respectively. In this way, when no signal is input from the reserved control interface 1704, the CCA may perform matching processing on each link according to the default parameters. In some implementations, the CCA control end of the control module 405 may be electrically connected to the reserved control interface 1704, thereby implementing parameter configuration of the CCA unit through the reserved control interface 1704. In this way, when the CCA unit receives a new Baker code and / or related threshold through the reserved control interface 1704, it may perform matching processing according to the newly configured parameters.
[0303] In other embodiments, a reserved interface 1705 may be further configured on the link between the AD conversion unit 403 and the HBF module. Similar to the reserved interface 1701, the reserved interface 1702 and the reserved interface 1703, the reserved interface 1705 may be used to couple components related to signal strength measurement. This enables detection of the signal strength transmitted to the HBF module. For example, the signal strength detection may be detection of RSSI.
[0304] In combination with the above-mentioned description of the solution for adjusting the sampling frequency, in some cases, after the signal output by the RF module 402 is processed by the AD conversion unit 403, the bit width of the digital signal obtained may be different from the designed bit width of the back-end module (such as the channel scanning component).
[0305] For example, the bit width of the digital signal 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 processed by the AD conversion unit 403 is directly input into the channel scanning component for processing, there will be a problem of reduced digital processing accuracy due to insufficient bit width of the input digital signal.
[0306] Correspondingly, if the design bit width of the channel scanning component needs to be expanded 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 to the channel scanning component, the digital gain can be adjusted so that the bit width of the digital signal input to the channel scanning component matches the designed bit width of the channel scanning component, thereby improving the digital processing accuracy of the channel scanning component.
[0308] As an example, combining Fig.12 The example scheme shown is referenced Fig.18 In this Fig.18In the example of , after the digital signal is generated in the AD conversion unit 403, the DC signal can be filtered out by the DC removal module 1201. The bit width of the digital signal can be 5 bits.
[0309] In this example, the output end of the DC removal module 1201 can be electrically connected to the input end of the digital gain adjustment module 1801. The output end of the digital gain adjustment module 1801 can be electrically connected to the input ends of n DDCs respectively. The digital gain adjustment module can also be called a Dgian adjustment module or Dgain.
[0310] The digital gain adjustment module 1801 may have the capability of digital gain adjustment. For example, the digital gain adjustment module 1801 may adjust the 5-bit width of the input data through gain adjustment so that the digital gain adjustment module 1801 outputs 6-bit or 7-bit wide digital data.
[0311] Thus, by setting the digital gain adjustment module 1801, when the designed 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. Thus, the bit width of the digital signal input to the channel scanning component is included in the designed bit width range of the channel scanning component. Thus, the digital processing accuracy of the channel scanning component is improved.
[0312] It should be noted that the specific bit widths involved in this example are only examples. In other embodiments, the bit width of the digital signal output by the DC module 1201 may also be different from 5 bits. Similarly, the design bit width of the channel scanning component may 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 scenario. Thereby making the bit width of the digital signal input to the channel scanning component within the design bit width range.
[0313] As a specific example, Fig.18 A specific implementation of the digital gain adjustment module 1801 is also provided.
[0314] like Fig.18 As shown, the digital gain adjustment module 1801 may include a digital amplification unit and a power judgment unit. The input end of the digital amplification unit is electrically connected to the DC removal module 1201. The output end of the digital amplification unit is connected to the input end of the power judgment unit. An output end of the power judgment unit is connected to the input end of the DDC.
[0315] Another output terminal of the power determination unit is also connected to the control terminal of the digital amplification unit.
[0316] The digital amplifier unit is used to adjust the power of the input digital signal. For example, the digital amplifier unit can adjust the power of the input digital signal according to parameters such as digital gain. It can be understood that for a digital signal, the greater the power, the greater the bit width; conversely, the smaller the power, the smaller the bit width. In this way, by adjusting the power of the digital signal, the bit width of the digital signal can be adjusted.
[0317] The power judgment unit may be configured with a preset power threshold or power range. Taking the case where the power judgment unit is configured with a preset power range as an example, the power judgment unit may judge whether the digital signal is within the preset power range based on the digital signal from the digital amplification unit.
[0318] When the power of the digital signal from the digital amplifying unit is within a 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 amplification unit is not within the preset power range, the power judgment unit transmits the digital gain to the digital amplification unit. The digital gain can make the power of the amplified digital signal fall within the preset power range. Correspondingly, the digital amplification unit can perform amplification processing of the digital signal according to the digital gain from the power judgment unit. Thus, when the power judgment unit obtains the digital signal from the digital amplification unit again, the power of the digital signal can fall within the preset power range. Then, the power judgment unit can output the digital signal to the DDC.
[0320] In some embodiments, the preset power range configured by the power judgment unit may be related to the design bit width of the channel scanning component. For example, the preset power range may be included in the design bit width of the channel scanning component. In this way, the digital amplification unit may perform appropriate digital amplification processing on the digital signal from the DC removal module 1201 through adaptive control and adjustment of the power judgment unit. Thus, the bit width of the digital signal output to the DDC by the power judgment 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 realize 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 the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present application.
[0322] The above 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 embodiments of the present application is schematic and is only a logical function division. There may be other division methods in actual implementation.
[0323] For example, Fig.19 FIG. 1 is a schematic diagram showing the composition of an electronic device 1900. Fig.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. Fig.19 As shown, in this example, the electronic device may also be configured with an antenna 1903 for receiving and sending signals. Thus, the processor 1901 may process the signal received by the antenna 1903 according to the instructions stored in the memory 1902, or send the processed signal through the antenna 1903.
[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] Fig. 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 a possible design, the chip system also includes a memory for storing necessary program instructions and data for electronic devices. The chip system may be composed of chips, or may 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 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.
[0327] The functions or actions or operations or steps in the above embodiments can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using a software program, it can be implemented 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 process or function described in the embodiment of the present application is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions may be transmitted from a website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium may be any available medium that a computer can access or may include one or more servers, data centers and other data storage devices that can be integrated with the medium. The available medium may be a magnetic medium (eg, a floppy disk, a hard disk, a magnetic tape), an optical medium (eg, a DVD), or a semiconductor medium (eg, a solid state disk (SSD)).
[0328] Although the present application has been described in conjunction with specific features and embodiments thereof, it is obvious that various modifications and combinations may be made thereto without departing from the spirit and scope of the present application. Accordingly, this specification and the drawings are merely exemplary illustrations of the present application as defined by the appended claims, and are deemed to have covered any and all modifications, variations, combinations or equivalents within the scope of the present application. Obviously, those skilled in the art may 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 also intended to include these modifications and variations.
Claims
1. A signal scanning method, characterized in that: The method 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 are transmitted using different channels, and the multiple WIFI signals include at least one signal that uses a target protocol type for data transmission; The method comprises: The electronic device controls the antenna module to receive a first antenna signal, and the 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; 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 digitally process the first digital signal corresponding to the first analog signal, and determines a target channel among the M channels corresponding to the first analog signal; The electronic device parses and processes the data transmitted on the target channel.
2. The method according to claim 1, characterized in that The baseband module includes N frequency shifting units, N filtering units, and N listening units: An input end of each of the N frequency shifting units is coupled to the radio frequency module; An input end of each of the N filter units is coupled to an output end of a frequency shift unit respectively; An input end of each of the N listening units is coupled to an output end of a filtering unit respectively; One frequency shift unit, one filtering unit, and one listening unit constitute a signal processing link; Each of the N signal processing links in the baseband module is used to digitally process data of a channel so as to determine whether the channel is a target channel.
3. The method according to claim 2, characterized in that The electronic device further comprises an analog-to-digital conversion unit, The input end of the analog-to-digital conversion unit is coupled to the output end of the radio frequency module; the first output end of the analog-to-digital conversion unit is coupled to the input end of the baseband module; The analog-to-digital conversion unit is used to digitally sample the first analog signal to obtain a first digital signal corresponding to the first analog signal; The input end of each frequency shift unit of the N frequency shift units is coupled to the radio frequency module, and includes: The input end of each frequency shift unit is respectively coupled to the output end of the analog-to-digital conversion unit, so that the frequency shift unit can obtain the first digital signal.
4. The method according to claim 2 or 3, characterized in that: The frequency shift unit is used 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, the frequency domain bandwidth is a data segment between -11 MHz and 11 MHz, corresponding to complete data of a WIFI channel.
5. The method according to claim 4, characterized in that Different frequency shift processing units have different frequency domain lengths for performing frequency shift processing.
6. The method according to any one of claims 2 to 5, characterized in that: The pass bandwidth of each of the filter units is 22 MHz, and the center frequency of the pass frequency is 0 MHz.
7. The method according to any one of claims 2 to 6, characterized in that: The radio frequency module performs radio frequency processing on the first sampling signal, including: The RF module performs analog amplification processing on the first sampling signal according to a first RF gain.
8. The method according to claim 7, characterized in that Before the RF module performs RF processing on the first sampling signal, the method further includes: The RF module obtains the first RF gain.
9. The method according to claim 8, characterized in that The electronic device also includes an automatic gain control unit; The output end of the automatic gain control unit is coupled to the radio frequency module; The radio frequency module obtains the first radio frequency gain, including: The RF module obtains the first RF gain from the automatic gain control unit.
10. The method according to claim 9, characterized in that The method further includes: the automatic gain control unit determining the first radio frequency gain according to a first digital signal.
11. The method according to claim 10, characterized in that A first digital processing unit is also provided between the analog-to-digital conversion unit and the automatic gain control unit; The first input terminal of the automatic gain control unit is coupled to the output terminal of the first digital processing unit; the first input terminal of the first digital processing unit is coupled to the second output terminal of the analog-to-digital conversion unit; Before determining the first radio frequency gain, the method further includes: 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 the 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.
12. The method according to claim 11, characterized in that The first digital processing unit includes a half-band FIR filter.
13. The method according to claim 11 or 12, characterized in that: The determining the first radio frequency gain includes: The automatic gain control unit determines the first radio frequency gain according to the digital average power of the second digital signal.
14. The method according to any one of claims 11 to 13, characterized in that The RF module performs RF processing on the first sampling signal, further comprising: The RF module performs analog amplification processing on the first sampling signal according to a second RF gain.
15. The method according to claim 14, characterized in that The second input terminal of the first digital processing unit is coupled to the output terminal of each frequency shift unit in the N frequency shift units; Before the RF module generates the second RF gain, the method further includes: The first digital processing unit obtains a third digital signal according to the 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 to the first digital processing unit by a first frequency shift 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 that uses a target protocol type for data transmission.
16. The method according to any one of claims 2 to 15, characterized in that The interception unit is configured with a reference Baker code, and the reference Baker code corresponds to the target protocol type; The method further comprises: The monitoring unit performs matching processing on the reference Baker code and the first data segment from the filtering unit to obtain the number of correlation peaks corresponding to the first data segment and the reference Baker code; The monitoring unit determines that the first data segment is transmitted through the target protocol type according to the number of correlation peaks being greater than a preset threshold.
17. The method according to claim 16, characterized in that When the electronic device starts working, the electronic device configures the state of each signal processing link in the N signal processing links to state0, and the state0 instructs the listening unit in the corresponding signal processing link to perform the matching process; After the number of correlation peaks is greater than a preset threshold, before the monitoring unit determines that the first data segment is transmitted using the target protocol type, the method further includes: The electronic device configures the state of the first signal processing link transmitting the first data segment to state1, and the state1 indicates that the first data segment is matched successfully.
18. The method according to claim 17, characterized in that After the electronic device configures the state of the first signal processing link for transmitting the first data segment to state1, the method further includes: The electronic device configures the suppression flag stop() of the first signal processing link to a first value, wherein the suppression flag stop() is configured to the first value to indicate that the matching process is no longer performed on the first signal processing link; The electronic device configures a suppression flag stop() of a second signal processing link to a first value, wherein the second signal processing link is a link adjacent to the first signal processing link; Performing a start frame delimiter (SFD) check and a cyclic redundancy code (CRC) check on the first data segment; In the case where both the SFD check and the CRC check are successful, the method further includes: The state of the first signal processing link is configured as state3, which is used to indicate that the first data segment is transmitted through the target protocol type.
19. The method according to claim 18, characterized in that The electronic device further includes a parsing module, and the method further includes: 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 parsing process of the first data segment, the method further includes: The stop() of the first signal processing link and the second signal processing link are configured as a second value, and the suppression flag stop() is configured as a second value to indicate that the matching processing of the corresponding signal processing link is not suppressed.
20. An electronic device, characterized in that: The electronic device comprises: an antenna module, a memory and one or more processors; the memory is coupled to the processor; the antenna module is coupled to the processor; The memory is used to store computer program codes, and the computer program codes include computer instructions. When the processor executes the computer instructions, the electronic device executes the method as claimed in any one of claims 1 to 19.
Citation Information
Patent Citations
Multi-band WIFI scanning method and device, electronic equipment and storage medium
CN115643627A
WIFI scanning method based on bandwidth frequency band and STA communication device
CN117221947A
Signal scanning method and electronic equipment
CN119545475A
Wi-Fi PHY Layer Multi band Covert Channel Detector
KR102227317B1
Multichannel wireless local area network
US20150207578A1