Scanning control method and electronic device
By configuring the signal processing link and control module, multi-channel scanning is achieved, solving the problem of low channel scanning efficiency in the existing technology, improving channel scanning efficiency and reducing power consumption.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- HONOR DEVICE CO LTD
- Filing Date
- 2023-08-21
- Publication Date
- 2026-06-12
Smart Images

Figure CN119545480B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of electronic device technology, and in particular to a scanning control method and an electronic device. Background Technology
[0002] During the reception of Wi-Fi-based wireless signals, electronic devices can determine the target channel for subsequent data communication through channel scanning. For example, this target channel could be a channel that communicates using a preset target protocol type.
[0003] Typically, this channel scanning scheme can include single-channel scanning. It involves sequentially scanning the 13 channels specified by the Wi-Fi protocol and parsing the data acquired from each scan to determine the protocol type used by each channel. Then, based on the channel using the target protocol type, the target channel is determined. However, this process leads to inefficiency in the electronic device's target channel determination. Summary of the Invention
[0004] This application provides a scanning control method and an electronic device that enables the electronic device to support simultaneous scanning and parsing of multiple channels.
[0005] To achieve the above technical objectives, this application adopts the following technical solution:
[0006] Firstly, a scanning control method is provided, applied to an electronic device equipped with a first antenna for receiving single-channel or multi-channel signals. The electronic device is equipped with at least two signal processing links for processing data from different channels to determine whether data transmitted on the corresponding channel uses a preset target protocol type. The electronic device also includes a control module for controlling the enabling of the signal processing links. The method includes: the electronic device receiving first sampled data through the first antenna, the first sampled data including data from M channels, where M is an integer greater than 0; and the electronic device controlling the control module to power on and enable the M signal processing links of the at least two signal processing links, so that the M signal processing links perform digital processing based on the first sampled data to determine whether the M channels corresponding to the first sampled data include a target channel, the target channel being a channel that transmits data using a preset target protocol type.
[0007] Based on this scheme, electronic devices can perform multi-channel scanning or single-channel scanning under different conditions, based on at least two configured signal processing links. For example, taking multi-channel scanning as an example, a single scan and analytical calculation can determine whether the target channel can be included among multiple channels. In this application, through reasonable control of the control module, only limited hardware configuration (such as at least two signal processing links) is required to support scanning different numbers of channels in different scenarios.
[0008] Optionally, the first antenna is a Wi-Fi antenna, and the operating frequency band of the first antenna includes 2.4GHz-2.5GHz. For example, this solution can be applied to scanning scenarios in the 2.4GHz Wi-Fi band.
[0009] Optionally, the signal processing link includes: a frequency shifting unit, a filtering unit coupled to the frequency shifting unit, and a carrier sensing (CCA) unit coupled to the filtering unit. When the control module controls the signal processing link to power on, the method further includes: the frequency shifting unit performing frequency shifting processing on the first sampled data. Different frequency shifting units included in the signal processing link perform different frequency shifting lengths. The filtering unit filters the frequency-shifted first sampled data to obtain a data segment corresponding to a channel. The bandwidth of the filtering units included in different signal processing links is the data bandwidth of one channel. The CCA unit performs carrier sensing on the single-channel data segment obtained after filtering to determine whether the data segment is transmitted through the target protocol type. This example provides a specific implementation of a signal processing link. The desired data segment is moved to the center of the sampled signal by the frequency shifting unit, and then filtered by the filtering unit to obtain the data segment. This achieves the separation of single-channel data from sampled data including multiple channel data.
[0010] Optionally, before the first sampled data is input to the frequency shift unit, the method further includes: the electronic device performing down-conversion processing on the first sampled data so that the center frequency of the down-converted first sampled data is 0MHz. The frequency shift unit performs frequency shift processing on the first sampled data, including performing the frequency shift processing on the down-converted first sampled data. Based on this down-conversion processing, the center frequency of the sampled data can be modulated to 0MHz, thereby facilitating subsequent frequency shifting and filtering. It is understood that because the center frequency is modulated from 2GHz or higher to 0MHz, a frequency reduction effect is achieved, thereby improving the accuracy of back-end processing.
[0011] Optionally, the frequency shifting unit includes a digital down-conversion (DDC) unit, and the filtering unit includes a low-pass filter (LPF).
[0012] Optionally, the electronic device receives first sampled data through the first antenna, including: under the control of the control module, the electronic device controls the first antenna to receive electromagnetic waves from M channels and converts the electromagnetic waves from the M channels into a first analog signal.
[0013] Optionally, the method further includes: the electronic device performing radio frequency processing on the first analog signal to obtain a first radio frequency modulated signal, the radio frequency processing including down-conversion processing and / or amplification processing and / or filtering processing; the electronic device performing analog-to-digital conversion on the first radio frequency modulated signal to obtain a first digital signal; the first digital signal including a data segment corresponding to each of the M channels; the electronic device controlling the power-on of the M signal processing links in the at least two signal processing links through the control module, so that the M signal processing links perform digital processing according to the first sampled data, and determine whether the M channels corresponding to the first sampled data include a target channel, including: the electronic device controlling the power-on of the M signal processing links in the at least two signal processing links through the control module, so that the M signal processing links perform digital processing on the first digital signal, and determine whether the data segments corresponding to the M channels included in the first digital signal are transmitted using the target protocol type. When the first data segment is transmitted using the target protocol type, the first channel corresponding to the first data segment is the target channel. The first data segment is included in the first digital signal, and the first channel is included in the M signal processing links.
[0014] This example provides analog signal processing logic for an electronic device prior to processing digital signals. Therefore, based on this processing of the digital signal obtained after analog signal processing, it is possible to determine whether the currently sampled data includes a target data segment transmitted using the target channel.
[0015] Optionally, after the electronic device enables and powers on M signal processing links out of the at least two signal processing links via the control module, the method includes: a first frequency shifting unit in the first signal processing link performs a first frequency shifting process on the first digital signal to obtain a second digital signal, wherein the frequency shifting length of the first frequency shifting process is a first frequency. In the second digital signal, the center frequency corresponding to the first data segment is 0MHz. A first filtering unit in the first signal processing link performs filtering processing on the second digital signal to obtain the first data segment. The first signal processing link is included in the M signal processing links. This provides a specific data processing mechanism on a signal processing link.
[0016] Optionally, the M signal processing links further include a second signal processing link, and the M channels further include a second channel corresponding to the second data segment. The method further includes: a second frequency shifting unit in the second signal processing link performing a second frequency shifting process on the first digital signal to obtain a third digital signal, wherein the frequency shifting length of the second frequency shifting process is a second frequency. In the third digital signal, the center frequency corresponding to the second data segment is 0MHz. A second filtering unit in the second signal processing link performs filtering processing on the third digital signal to obtain the second data segment. The second frequency is different from the first frequency. This provides yet another specific data processing mechanism on a signal processing link.
[0017] It is understandable that the sampling signal can be acquired in a short period of time. Therefore, during the multi-channel scanning process, the division and processing of data from different channels can be carried out synchronously by different signal processing links, thereby achieving the effect of simultaneous processing and saving corresponding time overhead.
[0018] Optionally, the method further includes: a first CCA unit in the first signal processing link performing carrier sensing on the first data segment to determine whether the first data segment uses the target protocol type for transmission based on the Barker code of the target protocol type preset in the electronic device. Thus, by using carrier sensing technology, it is possible to perform matching processing on data segments of any channel, thereby determining whether the data segment is a target data segment transmitted using the target channel.
[0019] Optionally, the first signal processing link is configured with a first CCA identifier, which indicates whether the channel corresponding to the data segment currently being processed by the first signal processing link is the target channel. The method further includes: when it is determined that the first data segment is transmitted using the target protocol type, the first CCA identifier is configured with a first value to indicate that the first channel corresponding to the first data segment is the target channel. In this example, the CCA identifier allows the matching process results to be saved. This facilitates other modules in determining the target channel, target data, etc., based on the CCA identifier.
[0020] In different implementations, the CCA identifier can be a hardware signal, such as a high level or a low level. Alternatively, the CCA identifier can be a digital signal, such as 1 or 0.
[0021] Optionally, the electronic device is configured with a basic frequency shift lookup table corresponding to the first frequency, which is used for performing the first frequency shifting process. The basic frequency shift lookup table includes at least one frequency shift coefficient, which corresponds to each bit of the first digital signal during the first frequency shifting process. The electronic device is also configured with M-1 index tables. Each of the M-1 index tables corresponds to a different frequency shift length, and the frequency shift length corresponding to any one of the M-1 index tables is an integer multiple of the first frequency. The index tables are used to indicate the position of the corresponding frequency shift coefficient of each bit of the data segment in the frequency shifting process corresponding to the current frequency shift length, within the basic frequency shift lookup table. The first frequency shifting unit in the first signal processing link performs the first frequency shifting process on the first digital signal, including: the first frequency shifting unit performs the first frequency shifting process according to the basic frequency shift lookup table and the first digital signal.
[0022] Optionally, the M-1 index tables include a first index table, which corresponds to the frequency shift length of the second frequency. The second frequency shift unit in the second signal processing link performs a second frequency shift processing on the first digital signal, including: the second frequency shift unit performs the second frequency shift processing according to the basic frequency shift lookup table, the first index table, and the first digital signal.
[0023] In this way, by storing a basic frequency shift lookup table and index tables corresponding to other frequency shift lengths, the electronic device does not need to store too many frequency shift lookup tables, thus saving corresponding storage overhead. As an example, taking a maximum of 5-channel scanning as an example, the first frequency shift process corresponding to the basic frequency shift lookup table can be a 2.5MHz frequency shift process or a -2.5MHz frequency shift process.
[0024] Optionally, the electronic device is configured with at least two signal processing links, including: the electronic device is configured with five signal processing links, used to support multi-channel scanning of no more than five channels simultaneously under the control of the control module, or to support single-channel scanning.
[0025] This example, along with the following scheme examples, provides a specific implementation example of a hardware configuration that supports up to 5 channel scans during different numbers of channel scans.
[0026] Optionally, the five signal processing links include: a third signal processing link, a fourth signal processing link, a fifth signal processing link, a sixth signal processing link, and a seventh signal processing link. The third signal processing link includes a third DDC unit, a third LPF unit, and a third CCA unit coupled in sequence. The fourth signal processing link includes a fourth DDC unit, a fourth LPF unit, and a fourth CCA unit coupled in sequence. The fifth signal processing link includes a fifth DDC unit, a fifth LPF unit, and a fifth CCA unit coupled in sequence. The sixth signal processing link includes a sixth DDC unit, a sixth LPF unit, and a sixth CCA unit coupled in sequence. The seventh signal processing link includes a seventh DDC unit, a seventh LPF unit, and a seventh CCA unit coupled in sequence. The third DDC unit is used to perform a 0MHz frequency shift on the input digital signal. The fourth DDC unit is used to perform a -2.5MHz or -5MHz frequency shift on the input digital signal. The fifth DDC unit is used to perform a 2.5MHz or 5MHz frequency shift on the input digital signal. The sixth DDC unit is used to perform a frequency shift of -7.5MHz or -10MHz on the input digital signal. The seventh DDC unit is used to perform a frequency shift of 7.5MHz or 10MHz on the input digital signal.
[0027] In this example, each DDC in the pre-configured signal processing link can have one, two, or more fixed frequency shift processing capabilities. Therefore, when different frequency shift lengths are required in different scenarios, the control module can achieve the corresponding frequency shift processing by controlling the enabling of the signal processing link where the corresponding DDC is located.
[0028] Optionally, the pass frequency band of the third LPF unit, the fourth LPF unit, the fifth LPF unit, the sixth LPF unit and the seventh LPF unit is the first pass frequency band, the center frequency of the first pass frequency band is 0MHz and the bandwidth of the first pass frequency band is 22MHz.
[0029] Optionally, the electronic device is configured with five signal processing links to support simultaneous multi-channel scanning of five channels. The first sampling data includes data from M channels, including data collected in the frequency bands corresponding to the third, fourth, fifth, sixth, and seventh channels. The third, fourth, fifth, sixth, and seventh channels are sequentially adjacent, and the center frequency of the third channel is lower than the center frequency of the fourth channel. The electronic device controls the power-on of M signal processing links among the at least two signal processing links through the control module, including: the electronic device controls the third, fourth, fifth, sixth, and seventh signal processing links to power on and operate respectively through the control module. The third DDC unit and the third LPF unit in the third signal processing link are used to acquire the data segment of the fifth channel based on the first sampling data. The third CCA unit in the third signal processing link is used to determine whether the fifth channel is a target channel. The fourth DDC unit and fourth LPF unit in the fourth signal processing link are used to acquire the data segment of the sixth channel based on the first sampled data. The fourth CCA unit in the fourth signal processing link is used to determine whether the sixth channel is a target channel. The fifth DDC unit and fifth LPF unit in the fifth signal processing link are used to acquire the data segment of the fourth channel based on the first sampled data. The fifth CCA unit in the fifth signal processing link is used to determine whether the fourth channel is a target channel. The sixth DDC unit and sixth LPF unit in the sixth signal processing link are used to acquire the data segment of the seventh channel based on the first sampled data. The sixth CCA unit in the sixth signal processing link is used to determine whether the seventh channel is a target channel. The seventh DDC unit and seventh LPF unit in the seventh signal processing link are used to acquire the data segment of the third channel based on the first sampled data. The seventh CCA unit in the seventh signal processing link is used to determine whether the third channel is a target channel. This achieves multi-channel scanning data processing with 5 channels.
[0030] Optionally, the electronic device is configured with five signal processing links to support simultaneous multi-channel scanning of four channels. The first sampling data includes data from M channels, including data collected in the frequency bands corresponding to the third, fourth, fifth, and sixth channels. The third, fourth, fifth, and sixth channels are sequentially adjacent, and the center frequency of the third channel is lower than that of the fourth channel. The electronic device controls the power-on of M signal processing links out of at least two signal processing links through the control module, including: the electronic device controls the power-on of the fourth, fifth, sixth, and seventh signal processing links respectively through the control module. The fourth DDC unit and the fourth LPF unit in the fourth signal processing link are used to acquire the data segment of the fifth channel based on the first sampling data. The fourth CCA unit in the fourth signal processing link is used to determine whether the fifth channel is a target channel. The fifth DDC unit and the fifth LPF unit in the fifth signal processing link are used to acquire the data segment of the fourth channel based on the first sampled data. The fifth CCA unit in the fifth signal processing link is used to determine whether the fourth channel is a target channel. The sixth DDC unit and the sixth LPF unit in the sixth signal processing link are used to acquire the data segment of the sixth channel based on the first sampled data. The sixth CCA unit in the sixth signal processing link is used to determine whether the sixth channel is a target channel. The seventh DDC unit and the seventh LPF unit in the seventh signal processing link are used to acquire the data segment of the third channel based on the first sampled data. The seventh CCA unit in the seventh signal processing link is used to determine whether the third channel is a target channel. This achieves multi-channel scanning data processing for 4-channel scanning.
[0031] Optionally, the electronic device is configured with five signal processing links to support simultaneous multi-channel scanning of three channels. The first sampling data includes data from M channels, including data collected in the frequency bands corresponding to the third channel, the fourth channel, and the fifth channel. The third, fourth, and fifth channels are sequentially adjacent, and the center frequency of the third channel is lower than the center frequency of the fourth channel. The electronic device controls the power-on of M signal processing links out of at least two signal processing links through the control module, including: the electronic device controls the third, fourth, and fifth signal processing links to power on and operate respectively through the control module. Specifically, the third DDC unit and the third LPF unit in the third signal processing link are used to acquire the data segment of the fourth channel based on the first sampling data. The third CCA unit in the third signal processing link is used to determine whether the fourth channel is a target channel. The fourth DDC unit and the fourth LPF unit in the fourth signal processing link are used to acquire the data segment of the fifth channel based on the first sampling data. The fourth CCA unit in the fourth signal processing link is used to determine whether the fifth channel is the target channel. The fifth DDC unit and the fifth LPF unit in the fifth signal processing link are used to acquire the data segment of the third channel based on the first sampled data. The fifth CCA unit in the fifth signal processing link is used to determine whether the third channel is the target channel. This achieves multi-channel scanning data processing with 3 channels.
[0032] Optionally, the electronic device is configured with five signal processing links to support simultaneous multi-channel scanning of two channels. The first sampling data includes data from M channels, including data collected in the frequency band corresponding to the third channel and data collected in the frequency band corresponding to the fourth channel. The third channel and the fourth channel are adjacent, and the center frequency of the third channel is lower than the center frequency of the fourth channel. The electronic device controls the power-on of M signal processing links among the at least two signal processing links through the control module, including: the electronic device controls the power-on of the fourth signal processing link and the fifth signal processing link respectively through the control module. The fourth DDC unit and the fourth LPF unit in the fourth signal processing link are used to acquire the data segment of the fourth channel based on the first sampling data. The fourth CCA unit in the fourth signal processing link is used to determine whether the fourth channel is a target channel. The fifth DDC unit and the fifth LPF unit in the fifth signal processing link are used to acquire the data segment of the third channel based on the first sampling data. The fifth CCA unit in the fifth signal processing link is used to determine whether the third channel is a target channel. This enables multi-channel scanning data processing with 2-channel scanning.
[0033] It is understandable that, in other scenarios, the hardware configuration and control scheme involved in this application can also be used to support the implementation of single-channel scanning.
[0034] In a second aspect, an electronic device is provided, comprising: a first antenna, a memory, and one or more processors. The memory is coupled to the processor. The first antenna is coupled to the processor. The memory stores computer program code, including computer instructions, which, when executed by the processor, cause the electronic device to perform the methods provided in the first aspect and any possible design thereof.
[0035] Thirdly, a chip system is provided for use in an electronic device. The chip system includes one or more interface circuits and one or more processors. The interface circuits and the processors are interconnected via lines. The interface circuits are used to receive signals from the electronic device's memory and send the signals to the processor, the signals including computer instructions stored in the memory. When the processor executes the computer instructions, the electronic device performs the methods provided in the first aspect and any of its possible designs.
[0036] Optionally, the chip system is configured with at least two signal processing links, which are used to process data from 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.
[0037] Fourthly, this application also provides a computer-readable storage medium including computer instructions that, when executed on an electronic device, cause the electronic device to perform the technical solutions provided in the first aspect and any possible implementation thereof.
[0038] Fifthly, this application also provides a computer program product that, when run on a computer, causes the computer to execute the technical solutions provided in the first aspect and any possible implementation thereof.
[0039] It is understood that the solutions provided in the second to fifth aspects of this application can be respectively associated with the first aspect and any of its possible designs, and therefore the beneficial effects achieved are similar, which will not be repeated here. Attached Figure Description
[0040] Figure 1 This is a schematic diagram of a wireless communication scenario;
[0041] Figure 2 This is a schematic diagram of channel allocation in the 2.4G frequency band;
[0042] Figure 3 This is a schematic diagram illustrating the protocol types that may be used in a 2.4G band communication process.
[0043] Figure 4 This is a schematic diagram of a wireless communication scenario;
[0044] Figure 5 This is a schematic diagram of the components of an electronic device;
[0045] Figure 6 A schematic diagram illustrating a single-channel scanning method for determining a target channel;
[0046] Figure 7 A schematic diagram illustrating the composition of an electronic device provided in an embodiment of this application;
[0047] Figure 8 A schematic diagram illustrating the composition of an electronic device provided in an embodiment of this application;
[0048] Figure 9 A schematic diagram of the logical connection of an electronic device provided in an embodiment of this application;
[0049] Figure 10 A schematic diagram of multi-channel sampling provided in an embodiment of this application;
[0050] Figure 11 A schematic diagram illustrating data processing logic during a multi-channel scanning process, provided as an embodiment of this application;
[0051] Figure 12 A schematic diagram illustrating data processing logic during a multi-channel scanning process, provided as an embodiment of this application;
[0052] Figure 13 A schematic diagram illustrating data processing logic during a multi-channel scanning process, provided as an embodiment of this application;
[0053] Figure 14 A schematic diagram of the logical connection of an electronic device provided in an embodiment of this application;
[0054] Figure 15 A schematic diagram of the logical connection of an electronic device provided in an embodiment of this application;
[0055] Figure 16 This application provides a schematic diagram of control logic for implementing scanning with different numbers of channels.
[0056] Figure 17 A schematic diagram of a signal processing link that enables simultaneous scanning of up to 5 channels is provided in this application embodiment:
[0057] Figure 18A logic diagram illustrating the operation of a control signal processing link provided in this application embodiment;
[0058] Figure 19 This application provides a schematic diagram illustrating the composition of sampling data in a multi-channel scanning scenario with varying quantities, as shown in the embodiments of this application.
[0059] Figure 20 This is a functional logic diagram of a signal division module provided in an embodiment of this application;
[0060] Figure 21 This application provides a schematic diagram of downconversion processing under different numbers of multi-channel scanning scenarios.
[0061] Figure 22 A schematic diagram comparing the frequency shifting functions of DDC on different links is provided for embodiments of this application;
[0062] Figure 23 This application provides a schematic diagram of effective link enabling logic under different numbers of multi-channel scanning scenarios.
[0063] Figure 24 This application provides a schematic diagram of an effective link enable logic for implementing single-channel scanning.
[0064] Figure 25 This is a schematic diagram of frequency shifting processing of a digital signal provided in an embodiment of this application;
[0065] Figure 26 A schematic diagram of processing logic for different frequency shift lengths based on different frequency shift lookup tables is provided for an embodiment of this application;
[0066] Figure 27 A schematic diagram illustrating the storage of a frequency shift lookup table in an electronic device, as provided in an embodiment of this application;
[0067] Figure 28 A schematic diagram of processing logic for different frequency shift lengths based on a basic frequency shift lookup table and an index table, provided for embodiments of this application;
[0068] Figure 29 A schematic diagram illustrating the storage of a basic frequency shift lookup table and an index table in an electronic device according to an embodiment of this application;
[0069] Figure 30 A schematic diagram illustrating the composition of an electronic device provided in an embodiment of this application;
[0070] Figure 31 This is a schematic diagram of the composition of a chip system provided in an embodiment of this application. Detailed Implementation
[0071] Currently, most electronic devices with wireless communication capabilities can communicate via Wireless Fidelity (Wi-Fi) networks, commonly referred to as Wi-Fi communication. The frequency bands for Wi-Fi communication can include the 2.4GHz band and the 5GHz band, among others. Taking Wi-Fi communication in the 2.4GHz band as an example, the 2.4GHz band can include all or part of the frequency range between 2400MHz and 2500MHz.
[0072] refer to Figure 1 This illustrates an example of a Wi-Fi communication scenario.
[0073] like Figure 1 As shown, device 21 can function as a Wi-Fi access device (or receiving device). The environment in which device 21 is located may include a Wi-Fi network created by one or more devices. The device that creates the Wi-Fi network can be referred to as the creating device.
[0074] For example, in such Figure 1 In the example, creating devices can include device 11, device 12, and device 13.
[0075] Specifically, device 11 can create Wi-Fi network 1, enabling device 11 to communicate with device 21 through Wi-Fi network 1. Device 12 can create Wi-Fi network 2, enabling device 12 to communicate with device 21 through Wi-Fi network 2. Device 13 can create Wi-Fi network 3, enabling device 13 to communicate with device 21 through Wi-Fi network 3.
[0076] It is understandable that any device (such as device 11, device 12, or device 13) can use the corresponding channel and protocol type to transmit data when communicating with device 21 through the corresponding Wi-Fi network.
[0077] As an example, see reference Figure 2 This is an example of a 2.4GHz band Wi-Fi communication channel allocation.
[0078] Combination Figure 1 For example, during the communication between device 11, device 12, and / or device 13 and device 12 via their respective Wi-Fi networks, the following can be used: Figure 2 Data can be transmitted between any of the channels and device 12.
[0079] like Figure 2As shown, the 2.4GHz Wi-Fi band can be divided into 14 channels. The coverage frequencies, from lowest to highest, are channel 1, channel 2, channel 3, ..., channel 14. Among them, channels 1 to 13 are commonly used channels. Channel 14 is generally not used for data transmission.
[0080] In channels 1 through 13, and channel 14, the bandwidth of each channel is 22MHz.
[0081] In channels 1 through 13, the starting frequency of any two adjacent channels is spaced 5 MHz apart. For example, channel 1 covers frequencies from 2401 MHz to 2423 MHz. Channel 2 covers frequencies from 2406 MHz to 2428 MHz, and so on.
[0082] In such Figure 2 The example also provides a schematic of the center frequency of each channel. 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.
[0083] Furthermore, different protocol types can be used for different communication connections when conducting Wi-Fi-based communication.
[0084] refer to Figure 3 This shows an example of the protocol types that may be used in a 2.4 GHz band Wi-Fi network.
[0085] like Figure 3 As shown, the protocol types that can be used in 2.4GHz band Wi-Fi communication include 802.11b, 802.11g, 802.11n, etc.
[0086] In combination with the above Figures 1 to 3 The explanation, Figure 4 This provides a specific example of using different channels and protocol types in different Wi-Fi communication processes.
[0087] like Figure 4As shown, in this example, device 11 can communicate with other devices (such as device 21) on channel 3 using the 802.11g protocol type. Device 12 can communicate with other devices (such as device 21) on channel 6 using the 802.11n protocol type. Device 13 can communicate with other devices (such as device 21) on channel 9 using the 802.11b protocol type.
[0088] During Wi-Fi communication, device 21 can achieve Wi-Fi communication with devices 11, 12, and / or 13 through the cooperation of its various components. Taking the scenario of device 21 receiving data as an example...
[0089] Figure 5 An example of the composition of a device 21 is provided. Based on this... Figure 5 The components shown enable device 21 to receive data via a Wi-Fi network.
[0090] like Figure 5 As shown, device 21 may be configured with an antenna 51, an RF module 52, an AD conversion unit 53, and a baseband module 54.
[0091] Antenna 51 operates in the 2.4 GHz frequency band. Antenna 51 can be used for, for example... Figure 2 The diagram shows the signal transmission and reception of each channel corresponding to its respective frequency band. For example, in some implementations, antenna 51 can be used to receive signals such as... Figure 2 The data for one of the channels 1 to 13 shown.
[0092] RF module 52 is used for radio frequency (or analog) domain processing. This radio frequency domain processing may include signal amplification, analog filtering, and other processing. In this application, the analog signal processed in the radio frequency domain can be referred to as a radio frequency modulated signal.
[0093] The AD conversion unit 53 is used to digitally sample analog signals, thereby converting the radio frequency modulated signal into the corresponding digital modulated signal.
[0094] The baseband module 54 is used for digital processing of digitally modulated signals.
[0095] For example, digital processing may include digital analysis of the digitally modulated signal. This digital analysis may include parsing the preamble and / or header information of the digitally modulated signal to determine the protocol type used by the received data. Based on the determined protocol type, device 21 can then parse the data received on the channel to obtain the valid data carried therein. In the following examples, the digitally modulated signal will be simply referred to as a digital signal.
[0096] In some scenarios, device 21 can filter data in the current environment based on the pre-configured target protocol type.
[0097] It is understandable that, such as Figure 4 As shown, multiple different Wi-Fi networks may exist in the vicinity of device 21. Devices creating different Wi-Fi networks can attempt to communicate with device 21 using different protocol types and / or channels.
[0098] Correspondingly, when device 21 needs to perform a certain function (such as a target function) via a Wi-Fi network, it can select and determine the target channel for data transmission using that target protocol type from multiple Wi-Fi networks distributed in the current environment by using the pre-configured target protocol type for that function. The target function implemented using the Wi-Fi network may include indoor positioning, indoor navigation, etc.
[0099] In this way, device 21 can determine the data transmission channel (i.e., the target channel) and the protocol type used during data transmission (i.e., the target protocol type) required to achieve the target function. Therefore, device 21 can continue to receive data on the target channel and quickly parse the data according to the target protocol type, thereby achieving the goal of supporting the target function.
[0100] Take the target protocol type 802.11b as an example.
[0101] In order to determine Figure 4 In the environment shown, using the target channel of the target protocol type, device 21 can respectively target channels such as... Figure 2 The channel shown is analyzed using a single-channel scan.
[0102] For example, refer to Figure 6 This is an example of a common single-channel scan.
[0103] Device 21 can start scanning and parsing from channel 1.
[0104] For example, device 21 can control antenna 51 to receive electromagnetic waves in the frequency band corresponding to channel 1 and convert those electromagnetic waves into analog signals. Figure 4 In the scenario shown, no device is transmitting data through channel 1, and therefore the received signal does not contain valid data. Thus, the signal strength of channel 1 is weak or data cannot be received. Therefore, device 21 can determine that there is no data transmission on channel 1 and continue scanning and parsing the next channel (such as channel 2).
[0105] The scanning process for channel 2 is similar, and then device 21 can continue scanning for channel 3.
[0106] like Figure 6 As shown, device 21 can control antenna 51 to receive electromagnetic waves in the frequency band corresponding to channel 3 and convert these electromagnetic waves into an analog signal (such as antenna signal a1). That is, antenna signal a1 is obtained by scanning channel 3. Figure 4 In the scenario shown, if device 11 communicates with device 21 through channel 3, then the antenna signal a1 can include valid data. Device 21 can then proceed with further processing.
[0107] Antenna 51 can transmit antenna signal a1 to RF module 52. RF module 52 can perform radio frequency domain processing on antenna signal a1 to obtain an amplified, mixed, and filtered analog signal (such as radio frequency modulated signal b1). RF module 52 can send radio frequency modulated signal b1 to AD conversion unit 53. AD conversion unit 53 digitally samples radio frequency modulated signal b1 to obtain the corresponding digital signal c1. Digital signal c1 can be transmitted to baseband module 54 for parsing. For example, baseband module 54 can parse preamble and / or frame header information from digital signal c1 to determine that the protocol type used by the signal received on channel 3 is 802.11g.
[0108] In this way, device 21 can determine that although there is data transmission on the current channel 3, the target protocol type is not being used. Therefore, channel 3 is not the target channel.
[0109] Device 21 can continue to scan and analyze other channels.
[0110] For example, when channel 6 is scanned, the corresponding antenna signal a2 can be obtained. Then, the RF module 52 performs radio frequency domain processing on the antenna signal a2 to obtain the radio frequency modulation signal b2. After analog-to-digital conversion, the digital signal c2 corresponding to the radio frequency 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 on channel 6 is 802.11n.
[0111] For example, when channel 9 is scanned, the corresponding antenna signal a3 can be obtained. Then, the RF module 52 performs radio frequency domain processing on the antenna signal a3 to obtain the radio frequency modulation signal b3. After analog-to-digital conversion, the digital signal c3 corresponding to the radio frequency 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 on channel 9 is 802.11b.
[0112] In this way, device 21 can determine that channel 9 is a target channel using the target protocol type.
[0113] In the above implementation, device 21 performs a scan and analysis of one channel at a time to determine the protocol type used by that channel. This scheme can be called a single-channel scanning scheme.
[0114] While the single-channel scanning scheme can ultimately determine the target channel for the target protocol type, the single-channel scans performed before reaching channel 9 (the target channel) are ineffective. This results in significant and inefficient power consumption and time overhead. This inefficient power consumption and time overhead becomes even more pronounced when the target channel number is greater than 9 (e.g., 10, 13, etc.).
[0115] To address this, embodiments of this application provide a multi-channel scanning scheme, enabling electronic devices (such as device 21) to simultaneously scan and match two or more channels according to actual conditions. This allows 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 this application, based on the scheme provided, the electronic device can also support single-channel scanning according to the needs of the current scenario.
[0116] The following is a detailed description of the scheme in conjunction with the accompanying drawings.
[0117] It should be noted that the electronic devices involved in the embodiments of this application may include at least one of the following: mobile phones, foldable electronic devices, tablet computers, desktop computers, laptop computers, handheld computers, laptops, ultra-mobile personal computers (UMPCs), netbooks, cellular phones, personal digital assistants (PDAs), augmented reality (AR) devices, virtual reality (VR) devices, artificial intelligence (AI) devices, wearable devices, in-vehicle devices, smart home devices, or smart city devices. The embodiments of this application do not impose any special limitations on the specific type of the electronic device.
[0118] For example, the electronic device may have Wi-Fi communication capabilities in the 2.4 GHz band.
[0119] As an example, see reference Figure 7 This is a schematic diagram of the composition of an electronic device provided in an embodiment of this application.
[0120] like Figure 7As shown, the electronic device may include a processor 710, an external memory interface 720, an internal memory 721, a universal serial bus (USB) connector 730, a charging management module 740, a power management module 741, a battery 742, an antenna 1, an antenna 2, a mobile communication module 750, a wireless communication module 760, an audio module 770, a speaker 770A, a receiver 770B, a microphone 770C, a headphone jack 770D, a sensor module 780, buttons 790, a motor 791, an indicator 792, a camera module 793, a display screen 794, and a subscriber identification module (SIM) card interface 795, etc. The sensor module 780 may include a pressure sensor 780A, a gyroscope sensor 780B, a barometric pressure sensor 780C, a magnetic sensor 780D, an accelerometer sensor 780E, a distance sensor 780F, a proximity sensor 780G, a fingerprint sensor 780H, a temperature sensor 780J, a touch sensor 780K, an ambient light sensor 780L, a bone conduction sensor 780M, etc.
[0121] The processor 710 may include one or more processing units, such as an application processor (AP) 710a, a modem, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor (BP or BBP) 710b, and / or a neural network processing unit (NPU). These different processing units may be independent devices or integrated into one or more processors.
[0122] The processor 710 can generate operation control signals based on the instruction opcode and timing signals to control the instruction fetching and execution.
[0123] The processor 710 may also include a memory for storing instructions and data. In some embodiments, the memory in the processor 710 may be a cache memory. This memory can store instructions or data that the processor 710 has used or that are used frequently. If the processor 710 needs to use the instruction or data, it can directly retrieve it from this memory. This avoids repeated accesses, reduces the waiting time of the processor 710, and thus improves the efficiency of the system.
[0124] In some embodiments, the processor 710 may include one or more interfaces. These interfaces 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 710 can connect to modules such as touch sensors, audio modules, wireless communication modules, displays, and camera modules through at least one of these interfaces.
[0125] It is understood that the interface connection relationships between the modules illustrated in the embodiments of this application are merely illustrative and do not constitute a limitation on the structure of the electronic device. In other embodiments of this application, the electronic device may also employ different interface connection methods or combinations of multiple interface connection methods as described in the above embodiments.
[0126] It should be noted that the structures illustrated in the embodiments of this application do not constitute a specific limitation on the electronic device. In other embodiments of this application, the electronic device may include more or fewer components than illustrated, or combine some components, or split some components, or have different component arrangements. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
[0127] In such Figure 7 In the example, the wireless communication function of the electronic device can be implemented through antenna 1, antenna 2, mobile communication module 750, wireless communication module 760, modem processor, and baseband processor 710b.
[0128] 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 one or more communication frequency bands. Different antennas can also be reused to improve antenna utilization. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In some other embodiments, the antennas can be used in conjunction with a tuning switch.
[0129] The mobile communication module 750 can provide solutions for wireless communication applications including 2G / 3G / 4G / 5G in electronic devices. The mobile communication module 750 may include at least one filter, switch, power amplifier, low noise amplifier (LNA), etc. The mobile communication module 750 can receive electromagnetic waves via antenna 1, and perform filtering, amplification, and other processing on the received electromagnetic waves before transmitting them to a modem processor for demodulation. The mobile communication module 750 can also amplify the signal modulated by the modem processor and convert it into electromagnetic waves for radiation via antenna 1. In some embodiments, at least some functional modules of the mobile communication module 750 may be housed in processor 710. In some embodiments, at least some functional modules of the mobile communication module 750 and at least some modules of the processor 710 may be housed in the same device.
[0130] The modem processor may include a modulator and a demodulator. The modulator modulates a low-frequency baseband signal to be transmitted into a mid-to-high frequency signal. The demodulator demodulates a received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After processing by the baseband processor, the low-frequency baseband signal is transmitted to the application processor. The application processor outputs sound signals through an audio device (not limited to a speaker 770A, receiver 770B, etc.) or displays images or videos through a display screen 794. In some embodiments, the modem processor may be a separate device. In other embodiments, the modem processor may be independent of the processor 710 and may be housed in the same device as the mobile communication module 750 or other functional modules. For example, the modem processor may be integrated into the baseband processor 710b.
[0131] The wireless communication module 760 can provide solutions for wireless communication applications in electronic devices, including wireless local area networks (WLAN) (such as Wi-Fi networks), Bluetooth (BT), Bluetooth Low Energy (BLE), ultra-wideband (UWB), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), and infrared (IR) technologies. The wireless communication module 760 can be one or more devices integrating at least one communication processing module. The wireless communication module 760 receives electromagnetic waves via antenna 2, performs frequency modulation and filtering of the electromagnetic wave signal, and sends the processed signal to processor 710. The wireless communication module 760 can also receive signals to be transmitted from processor 710, perform frequency modulation and amplification, and convert them into electromagnetic waves for radiation via antenna 2.
[0132] In some embodiments, antenna 1 of the electronic device is coupled to mobile communication module 750, and antenna 2 is coupled to wireless communication module 760, enabling the electronic device to communicate with networks and other electronic devices via wireless communication technology. This 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 technologies. 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 Systems (SBAS).
[0133] Based on such Figure 7 The composition of the electronic device shown enables it to perform single-channel scanning as described in the example above. Furthermore, this... Figure 7 The electronic device shown can also be used to support multi-channel scanning and parsing at the same time. The specific implementation will be described in detail later.
[0134] It should be pointed out that, as Figure 7 The composition of the electronic device shown is merely an example and does not constitute a limitation on the electronic device. In other embodiments, the electronic device may have other compositions.
[0135] For example, refer to Figure 8 This is a schematic diagram illustrating the composition of another electronic device provided in an embodiment of this application.
[0136] like Figure 8As shown in the example, the electronic device may include an antenna module 801, an RF module 802, an AD conversion unit 803, a control module 805, and a baseband module 840, etc.
[0137] Among them, antenna module 801 can correspond to, for example, Figure 7 Antenna 1 and / or antenna 2 are shown.
[0138] As one implementation, antenna module 801 may include one or more antennas for transmitting and receiving wireless signals. Antenna module 801 may include at least one 2.4 GHz antenna (or Wi-Fi antenna). The operating frequency band of the 2.4 GHz antenna may include the 2.4 GHz band.
[0139] RF module 802 can be disposed between antenna module 801 and baseband module 840 for radio frequency domain processing of antenna signals. In some implementations, RF module 802 can be a collection of devices and cables for analog signal processing between antenna module 801 and baseband module 840.
[0140] For example, RF module 802 may include an RF transceiver, a low noise amplifier (LNA), an RF mixer (MIX), a low pass filter (LPF), etc.
[0141] In some embodiments, the LNA may have gain adjustment capability.
[0142] For example, RF module 802 can adjust the gain used for amplification processing in different scenarios according to the instructions of baseband module 840, thereby maximizing amplification of the antenna signal without effective data truncation. In some implementations, the LNA can have a linear amplification range, within which the gain provided by the LNA has a linear relationship with the signal power before and after amplification processing. Within this linear amplification range, the relevant parameters of the antenna signal (such as Received Signal Strength Indicator, RSSI) can be accurately determined based on the gain used by the current LNA. Conversely, outside the linear amplification range, the signal power before and after amplification processing does not have a strictly linear relationship. Therefore, the electronic device can accurately determine the specific parameter values of the antenna signal received by the current antenna based on the pre-configured correspondence between the gain used by the current LNA and the relevant parameters of the antenna signal (such as RSSI).
[0143] In other embodiments, the RF mixer in RF module 802 can provide down-conversion processing for analog signals. This down-conversion processing for analog signals can also be referred to as analog down-conversion processing or down-conversion processing. For example, through this analog down-conversion processing, RF module 802 can adjust the center frequency of the acquired data obtained by antenna module 801 from greater than 2 GHz to 0 MHz.
[0144] The AD conversion unit 803 is used to convert radio frequency signals (analog signals) into digital signals. In different implementations, the digital sampling frequency of the AD conversion unit 803 can be different. For example, the digital sampling frequency of the AD conversion unit 803 can be 80MHz, 44MHz, etc.
[0145] In different implementations of this application, the AD conversion unit 803 may be integrated into the RF module 802, or the AD conversion unit 803 may be integrated into the baseband module 840, or it may be separately configured between the RF module 802 and the baseband module 840.
[0146] The baseband module 840 may include, for example: Figure 7 The baseband processor 710b is shown. This baseband module 840 can be used for digital processing of signals.
[0147] In this application, as Figure 8 As shown, the baseband module 840 can be specifically configured with a signal division module 841, a matching module 842, a calculation module 843, a parsing module 844, an automatic gain control (AGC) unit 845, etc.
[0148] The signal division module 841 may include a frequency shifting unit group. Taking multi-channel scanning as an example, this frequency shifting unit group can be used to perform frequency shifting processing on the sampled data of the acquired data segments including multiple channels.
[0149] In some embodiments, the frequency shift unit group can be implemented by multiple digital downconverter (DDC) units. For example, the frequency shift unit group may include DDC1 to DDCn. The frequency shifting capabilities of different DDCs are relatively fixed. Under the control of the control module 805, the signal partitioning module can control the power-on of DDCs on different paths in different scenarios, thereby realizing the corresponding frequency shifting processing on different paths.
[0150] The signal division module 841 may also include a filtering unit group. The filtering unit group is used to filter the frequency-shifted sampled data respectively, so as to obtain the data segments corresponding to the two or more channels included in the sampled data based on the frequency-shifted sampled data.
[0151] For example, a filter unit group consists of multiple filter units. The number of filter units can correspond to the number of frequency shift unit groups. For instance, the number of filter units can be the same as the number of frequency shift units. In some implementations, the pass frequency bands of each filter unit can be the same.
[0152] In this application, each filtering unit can form a signal partitioning link with a frequency shifting unit group. This signal partitioning link can be used to separate and obtain a data segment corresponding to a channel from the sampled data.
[0153] In some embodiments, the filter unit group may be implemented by multiple low-pass filters (LPFs) having the same pass frequency band. For example, the filter unit group may include LPF1 to LPFn. In different embodiments, the LPF may be a finite impulse response (FIR) filter and / or an infinite impulse response (IIR) filter.
[0154] The matching module 842 can be used to perform matching processing on the data segments corresponding to each channel, thereby determining the protocol type used by the data segment. The matching processing can be based on the Baker code of the target protocol type.
[0155] For example, in some embodiments, for each data segment corresponding to a channel, the matching module 842 can perform correlation peak matching between the data segment and the baker code of the target protocol type. If the peak value of the correlation peak is greater than the corresponding quantity threshold, the 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.
[0156] In other embodiments, for any given data segment corresponding to a channel, the matching module 842 can use a sliding window to sample and match data on that data segment. When data in a window matches the baker code of the target protocol type, the corresponding counter is incremented by 1. The matching module 842 can continue to slide the window, resample the data segment, and continue to match data in new windows with the baker code of the target protocol type. When a match is successful, the counter is incremented by 1. This process is repeated until the counter value reaches a preset threshold, at which point the corresponding data segment is considered to have successfully matched 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.
[0157] Alternatively, if the counter value still hasn't reached the preset threshold when the sliding window reaches the end of a data segment for that channel, then the data segment fails to match the target protocol type. In other words, the transmission of that data segment did not use the target protocol type.
[0158] In a specific implementation, the function of the matching module 842 can be achieved through a group of listening units with carrier sensing capability. For example, the listening unit group may include two or more Clear Channel Assessment (CCA) units. For instance, the listening unit group may include CCA1 to CCAn.
[0159] In some embodiments of this application, the number of CCAs in the matching module 842 can be the same as the number of DDCs in the frequency shift unit group and / or the number of LFPs in the filter unit group. At the same time, one DDC, one LFP, and one CCA can jointly perform the function of filtering a channel data segment from the sampled data and determining whether it is a target channel through carrier sensing. In this application, the CCA, LFP, and DDC used for processing a channel can constitute a signal processing link.
[0160] Furthermore, in this application, each signal processing link can correspond to a CCA identifier. The CCA identifier can be implemented using a high / low level or 0 / 1. This CCA identifier can be used to indicate whether the data segment being processed on the current signal processing link is data transmitted via the target protocol type.
[0161] Taking the CCA identifier implemented through high / low levels as an example.
[0162] When the CCA flag is high, it indicates that the target protocol type is used for the data segment / channel selected by the current signal processing link. Conversely, when the CCA flag is low, it indicates that the target protocol type is not used for the data segment / channel selected by the current signal processing link.
[0163] Take the CCA identifier implemented using 0 / 1 as an example.
[0164] When the CCA flag is 1, it indicates that the target protocol type is used for the data segment obtained by the current signal processing link. Conversely, when the CCA flag is 0, it indicates that the target protocol type is not used for the data segment obtained by the current signal processing link.
[0165] In the following example, the CCA identifier is implemented using 0 / 1.
[0166] In such Figure 8During the initialization process of each component in the electronic device shown, the CCA identifier of each signal processing link can be configured to 0.
[0167] After the matching module 842 determines that a match has been successfully made on a certain signal processing link, the CCA identifier of that signal processing link can be configured to 1. This allows other modules to identify the target channel based on the CCA identifier.
[0168] It should be noted that in some cases, the matching module 842 may find that two or more data segments are successfully matched by sensing the carriers of each CCA.
[0169] Therefore, the matching module 842 can configure the CCA identifier of only the earliest received data segment among these data segments to 1. The CCA identifiers of other data segments remain at 0. That is, the channel of the earliest received data segment using the target protocol type is used as the target channel.
[0170] Alternatively, the matching module 842 can configure the CCA identifier of each successfully matched data segment to 1. Correspondingly, when the electronic device needs to determine the target channel, it can select the target channel based on the relevant parameters (such as RSSI) corresponding to each of the multiple channels with the CCA identifier configured to 1, according to the actual situation. For example, the channel with the highest RSSI can be used as the target channel.
[0171] The above is for example Figure 8 The composition and working mechanism of the signal division module 841 and the matching module 842 shown are briefly explained. This enables the filtering of data segments for each channel based on the sampled data during multi-channel sampling, and the determination of whether the channel of each data segment is the target channel.
[0172] It should be noted that the examples provided in this application embodiment are illustrated by the signal division module 841 including multiple DDCs and LPFs, and the matching module 843 including multiple CCAs. In specific implementations, the signal division module 841 and / or the matching module 843 may not be configured with or may not be configured entirely according to the above hardware composition. For example, the functions of the DDCs, LPFs, or CCAs in the signal division module 841 and / or the matching module 843 may be implemented by chips or circuits with logic implementation capabilities, and their frequency shifting function, filtering function, or carrier sensing function may be implemented based on corresponding code.
[0173] In such Figure 8 In the example, the electronic device may also be configured with a control module 805. The control module 805 can be used to manage single-channel scanning or multi-channel scanning as needed.
[0174] For example, in such Figure 8In the example, control module 805 is used for the upper-level implementation of controlling various functions of the electronic device. For example, control module 805 can be used to control the enabling of various components in baseband module 840. In some implementations, the functions of control module 805 may include, for example... Figure 7 The application processor 710a is shown.
[0175] During multi-channel scanning, the control module 805 can control the DDC, LPF and CCA (i.e. signal processing link in operation) in the baseband module 840 through control signals, thereby realizing the corresponding number of single-channel or multi-channel scans.
[0176] As an example, the control module 805 can be coupled to each of DDC1 to DDCn, each of LPF1 to LPFn, and each of CCA1 to CCAn via control signal lines.
[0177] In actual operation, the control module 805 can determine the number of channels required for synchronous scanning based on the current environment and preset strategies. m is a positive integer less than or equal to n.
[0178] When m equals 1, the electronic device can perform single-channel scanning. Conversely, when m is greater than 1, multi-channel scanning can be performed.
[0179] Taking the case where m is greater than 1 and the electronic device performs multi-channel scanning as an example.
[0180] The control module 805 can enable m DDCs (DDCs) from DDC1 to DDCn to operate via control signal lines, while de-energizing the other DDCs. This allows for m frequency shifting operations on the sampled data using the m DDCs. This may include a 0MHz frequency shift (i.e., no shift in the frequency domain). It is understood that since the frequency shift lengths provided by different DDCs are different, the data segment covered by extending 11MHz to both sides of the center frequency of the sampled data after these m frequency shifting operations can correspond to data transmitted in different channels.
[0181] The control module 805 can enable m LPFs (LPF1 to LPFn) to power on and operate via control signal lines, while de-energizing the other LPFs. This allows the m frequency-shifted sampled data to be filtered by the m LPFs respectively, thereby obtaining the data segments corresponding to each of the m channels.
[0182] The control module 805 can power on m CCAs (CCA1 to CCA1) via control signal lines, while de-energizing the other CCAs. This allows the m CCAs to perform matching processing on the acquired data segments of the m channels, thereby determining whether the target channel is included among the m channels corresponding to those data segments.
[0183] Understandably, under the control of the control module 805, m DDCs, m LPFs, and m CCAs can serve as the DDCs, LPFs, and CCAs for m signal processing links. This enables the control of the m signal processing links, allowing the baseband module 840 to successfully analyze and process the sampled data from the m channels. Furthermore, through a multi-channel scanning scheme, the target channel using the target protocol type can be quickly determined with a small number of scans. The CCA identifier of this target channel can be configured to 1.
[0184] like Figure 8 As shown, the electronic device may also include a parsing module 844, a calculation module 843, and an ACG unit 845.
[0185] The parsing module 844 can determine the target channel by identifying the data segment corresponding to the signal processing link with CCA identifier 1. The parsing module 844 can also parse the data segment of the target channel, as well as other data received on that target channel, according to the target protocol type, thereby obtaining the valid data transmitted through the target channel.
[0186] The calculation module 843 can also determine the target channel by identifying the channel of the data segment corresponding to the signal processing link with CCA identifier 1. The calculation module 843 can also be used to calculate the digital average power of the target channel based on the data segment corresponding to the target channel. This digital average power value can be used to adjust the gain (e.g., AGC gain) during the amplification process performed by the RF module 802.
[0187] As an example, the calculation module 843 can obtain the digital average power of a channel according to the following formula (1).
[0188] Formula (1):
[0189] Among them, Digital_power average This 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 based on the data segment corresponding to the target channel. The AD conversion unit 803 needs to include the IQ data pairs in the calculation process.
[0190] In this application, the calculation module 843 can also be used to calculate and obtain parameters such as RSSI when the antenna module 801 receives the antenna signal of the target channel based on the data segment of the target channel and the AGC gain of the RF module 802 after digital average power adjustment. The calculated RSSI can be used to judge the current communication quality, display it separately, filter the target data segment from multiple successfully matched data segments, and thus determine the target channel.
[0191] The technical solutions provided in the embodiments of this application can all be applied to, for example... Figure 7 or Figure 8 In the electronic device shown.
[0192] For example, it can further clarify that... Figure 8 The working mechanism of the electronic device shown in the figure during multi-channel scanning is described below. Figure 8 Taking the composition of the electronic device shown as an example, we will illustrate the specific implementation of multi-channel scanning in this electronic device.
[0193] refer to Figure 9 Taking n=5 as an example, the channel partitioning module of this electronic device can include DDC1 to DDC5, with LPF1 to LPF5 corresponding to DDC1 to DDC5 respectively. Each LPF can be coupled to a CCA. For example, LPF1 is coupled to CCA1, LPF2 to CCA2, LPF3 to CCA3, LPF4 to CCA4, and LPF5 to CCA5. Thus, the CCA is used to perform matching processing on each data segment to determine whether a target channel exists.
[0194] DDC1 and LPF1 can form a signal partitioning link to filter a channel data segment. DDC1, LPF1, and CCA1 can form a signal processing link to filter and match channel data from sampled data.
[0195] Similarly, DDC2, LPF2, and CCA2 can form a signal processing link, DDC3, LPF3, and CCA3 can form a signal processing link, DDC4, LPF4, and CCA4 can form a signal processing link, and DDC5, LPF5, and CCA5 can form a signal processing link.
[0196] How Figure 9 The electronic equipment shown can support multi-channel scanning with up to 5 channels.
[0197] The following example illustrates how an electronic device performs a multi-channel scan across five channels. How then... Figure 9 All DDC, LPF, and CCA shown can be powered on and operated under the control of the control module.
[0198] In some implementations, such as Figure 10 As shown, each scan can acquire 40MHz of sampling data. In... Figure 9 In the example, the sampled data obtained in one sampling can correspond to the multi-channel antenna signal 901.
[0199] For example, the electronic device can acquire sampled data SD_A1, which includes most of the signals from channels 1 to 5, through a first scan. The electronic device can acquire sampled data SD_A2, which includes most of the signals from channels 5 to 9, through a second scan. The electronic device can acquire sampled data SD_A3, which includes most of the signals from channels 9 to 13, through a third scan.
[0200] Therefore, scanning and analysis of the 2.4GHz frequency band can be completed in just three scans. Compared to single-channel scanning, this saves up to 10 scans in terms of time and power consumption.
[0201] It is understood that in this application, the use of 40MHz as the bandwidth for each scan during the simultaneous 5-channel scanning process is merely an example. In other implementations, the scan bandwidth for each scan may be different from 40MHz.
[0202] For the sampled data acquired in each scan (such as sampled data SD_A1, sampled data SD_A2, and sampled data SD_A3), the electronic device can, based on, such as Figure 9 The logic shown is used to process the data to determine whether the target channel exists among the five channels included in the sampled data.
[0203] like Figure 9 As shown, antenna module 801 can send multi-channel antenna signal 901 to RF module 802. RF module 802 can perform radio frequency domain processing such as analog down-conversion processing and amplification processing on multi-channel antenna signal 901 to obtain multi-channel RF modulated signal 902.
[0204] refer to Figure 11 An example is given to illustrate analog downconversion processing.
[0205] Based on the current sampling data, as follows Figure 10 The sampled data SD_A1 shown is an example.
[0206] Before analog down-conversion, the center frequency of the sampled data SD_A1 can be 2422MHz, and the frequencies at both ends of the sampled data SD_A1 are 2402MHz and 2442MHz, respectively. After analog down-conversion, the center frequency of the sampled data SD_A1 can be 0MHz.
[0207] In other implementations, this is as follows Figure 11 The downconversion process shown can also be performed in the AD conversion unit 803.
[0208] After down-conversion, each DDC and LPF can perform corresponding processing to obtain data segments for each channel.
[0209] In this way, the sampled data after the analog down-conversion processing can also be used to obtain a multi-channel RF modulation signal 902 after amplification and other operations.
[0210] The multi-channel RF modulation signal 902 can be transmitted to the AD conversion unit 803 for analog-to-digital conversion to obtain the corresponding multi-channel digital signal 903. It is understood that, due to the aforementioned analog down-conversion process, the center frequency of this multi-channel digital signal 903 is 0MHz.
[0211] The multi-channel digital signal 903 can be transmitted to the signal division module 841 for frequency shifting.
[0212] In this example, DDC1 to DDC5 can each be configured with different frequency shift capabilities.
[0213] For example, DDC1 can be used for 0MHz frequency shifting. DDC2 can be used for -2.5MHz and / or -5MHz frequency shifting. DDC3 can be used for 2.5MHz and / or 5MHz frequency shifting. DDC4 can be used for -7.5MHz and / or -10MHz frequency shifting. DDC5 can be used for 7.5MHz and / or 10MHz frequency shifting.
[0214] Furthermore, the pass frequency band of each filter from LPF1 to LPF5 can be the same.
[0215] For example, each filter passes through a frequency band with a center frequency of 0MHz and a bandwidth of 22MHz.
[0216] In this way, by coordinating DDC1 to DDC5 and LPF1 to LPF5, the data segments corresponding to each channel can be obtained based on the sampled data.
[0217] For example, refer to Figure 12 .
[0218] like Figure 12As shown in 1201, DDC1 can perform a 0MHz frequency shift on the sampled data SD_A1 that has been processed in the radio frequency domain. That is, the data distribution of the sampled data SD_A1 after DDC1 processing is the same in the frequency domain as the data after radio frequency domain processing. Thus, the data segment within + / -11MHz of the center frequency (0MHz) of the sampled data SD_A1 corresponds to channel 3.
[0219] Therefore, after the sampled data SD_A1 is filtered by LPF1, the data with a bandwidth of 22MHz that is retained corresponds to the data segment (such as data segment 3) of channel 3.
[0220] Figure 12 1202 in the example shows a logic example under the condition of frequency shifting to a non-0MHz frequency.
[0221] In example 1202, the example used is to obtain data segment 5 corresponding to channel 5 based on the sampled data SD_A1 processed in the radio frequency domain. The methods for obtaining other channels can be found in the example and will not be elaborated further.
[0222] As shown in 1202, the sampled data SD_A1 after radio frequency domain processing can be frequency shifted by -10MHz using DDC4, thereby moving the center frequency of the data segment corresponding to channel 5 in the frequency domain to 0MHz. In this way, after the sampled data SD_A1 is filtered by LPF4, the data with a bandwidth of 22MHz that is retained corresponds to the data segment (such as data segment 5) corresponding to channel 5.
[0223] Similarly, by shifting the frequency by 0MHz using DDC1 and filtering by 22MHz using LPF1, data segment 3 corresponding to channel 3 can be obtained. By shifting the frequency by -5MHz using DDC2 and filtering by 22MHz using LPF2, data segment 4 corresponding to channel 4 can be obtained. By shifting the frequency by 5MHz using DDC3 and filtering by 22MHz using LPF3, data segment 2 corresponding to channel 2 can be obtained. By shifting the frequency by -10MHz using DDC4 and filtering by 22MHz using LPF4, data segment 5 corresponding to channel 5 can be obtained. By shifting the frequency by 10MHz using DDC5 and filtering by 22MHz using LPF5, data segment 1 corresponding to channel 1 can be obtained.
[0224] Continue to combine Figure 9 Data segments 3, 4, 2, 5, and 1 can be transmitted to their respective CCAs for carrier sensing, thereby determining whether any data segments using the target protocol type exist through matching processing.
[0225] Combination Figure 13 The mechanism of matching CCA in 1301 and 1302 is briefly explained.
[0226] In this application, the electronic device can perform matching processing for each of the acquired data segments. This matching processing can be based on a Baker code (such as a reference Baker code) corresponding to a preset target protocol type. Based on this matching processing, the electronic device can determine the data segments using the target protocol from the currently acquired data segments (such as data segments 1 to 5).
[0227] For example, when the target protocol type is 802.11b, the reference Baker code can be the Baker code corresponding to the preamble or header indicated by the 802.11b protocol. As an example, the reference Baker code can be the 11-bit Baker code corresponding to the 802.11b protocol.
[0228] In some embodiments, the matching process may be based on correlation peak detection.
[0229] Taking the correlation peak detection of data segment 1 corresponding to channel 1 to determine whether data segment 1 is a target data segment using the target protocol type as an example, the electronic device can determine the number of valid correlation peaks corresponding to data segment 1 based on the reference Baker code and data segment 1. Valid correlation peaks are those whose peak value is greater than a preset peak value threshold.
[0230] As an example, let's take data segment 1, which includes 10 bits of digital information. The listening unit can determine the number of valid correlation peaks corresponding to data segment 1 based on the preset detection window length and the sliding step size. The detection window length can be determined based on parameters such as the total length of data segment 1, the length of the reference Baker code, and the sampling factor during data acquisition.
[0231] Taking a preset detection window length of 4 bits and a sliding step size of 1 bit as an example.
[0232] like Figure 13 As shown in 1301, the listening unit (such as CCA5) can generate correlation peak 1 corresponding to the data in the current detection window (such as detection window 1) based on the first 4 bits of data segment 1 and the reference Baker code. If the peak value of correlation peak 1 is greater than the peak value threshold, correlation peak 1 is confirmed as a valid correlation peak. Then, the counter set in the listening unit to record the number of valid correlation peaks is incremented by 1.
[0233] Next, the detection window can slide backward according to the sliding step size. For example, as Figure 13As shown in 1302, the data in detection window 2 may include the 2nd to 5th digits of data segment 1. Correspondingly, the listening unit can generate a correlation peak 2 corresponding to the data in the current detection window (such as detection window 2) based on the data in detection window 2 and the reference Baker code. If the peak value of correlation peak 2 is less than the peak value threshold, it is confirmed that correlation peak 2 is not a valid correlation peak. Then, the counter set in the listening unit to record the number of valid correlation peaks will not be recorded.
[0234] This process continues until the detection window slides to the last position of data segment 1.
[0235] The matching module 842 can determine whether the correlation peaks of the data in each detection window are valid correlation peaks, and then record the number of valid correlation peaks in the counter.
[0236] In some embodiments, after completing the data detection in all data segments 1, the matching module 842 can compare the value in the counter with a preset quantity threshold. If the value (i.e., the number of valid correlation peaks corresponding to data segment 1) is greater than the preset quantity threshold, then data segment 1 is determined to be the target data segment. Conversely, if the number of valid correlation peaks corresponding to data segment 1 is less than the preset quantity threshold, then data segment 1 is determined not to be the target data segment.
[0237] In other embodiments, the electronic device can determine that data segment 1 is a target data segment if the number of valid correlation peaks in data segment 1 is greater than a threshold value. This improves the accuracy of target data segment determination.
[0238] Similarly, the matching module 842 can perform matching on other data segments (such as data segments 2 to 5). Figure 13 The matching process shown determines the target data segments included in data segments 2 through 5.
[0239] In this way, the matching module 842 can determine the channel corresponding to the target data segment in the sampled data SD_A1 as the target channel using the target protocol type. Correspondingly, the matching module 842 can configure the CCA identifier corresponding to this target channel to a high level (or 1). Similarly, after completing the scanning and parsing of the sampled data SD_A1, the electronic device can also perform other operations such as... Figure 10 The sampled data SD_A2 and SD_A3 shown are scanned and parsed to determine the target channel among channels 1 to 13 in the current environment.
[0240] In some implementations, channels 1 to 13 may include one target channel (such as channel 1). After the scanning and parsing are completed, the CCA identifier of the signal processing link corresponding to channel 1 can be configured to a high level (or 1), while the CCA identifier of the links of other channels remains low level (or 0).
[0241] In some implementations, channels 1 to 13 may include multiple channels using the target protocol type. In this case, the matching module 842 can determine the channel with the earliest received data as the target channel based on the order in which the data is received from each of the multiple channels using the target protocol type, and configure the CCA flag corresponding to that channel to a high level (or 1).
[0242] Thus, through Figures 10 to 13 The explanation is as follows: Figure 9 The logic implementation shown allows for the identification of target channels using the target protocol type by scanning multiple channels at once (e.g., 5 channels).
[0243] Subsequently, the parsing module 844 can continue to receive data for subsequent communication based on the channel configured to high level (or 1) according to the CCA identifier. Then, it parses the data received on the target channel according to the target protocol type to obtain the valid data carried within.
[0244] It should be noted that the above Figures 8 to 9 And subsequent Figures 10 to 13 The electronic device composition for implementing the multi-channel / single-channel scanning scheme in this application is merely an example. In other embodiments, the various components in the electronic device may be partially or wholly integrated into other components. This application does not limit the specific implementation of the functions of the various components in the electronic device.
[0245] For ease of explanation, Figure 14 A simplified logical connection example between multiple modules of an electronic device is provided. Figure 14 The logical connections shown can be mapped to, for example: Figures 8 to 13 Description of each component.
[0246] like Figure 14 As shown, the antenna module 801 in the electronic device can be coupled to the RF module 802. This allows the antenna module 801 to convert the received electromagnetic waves into antenna signals (such as...). Figure 9 The multi-channel antenna signal 901 shown is transmitted to the RF module 802. The RF module 802 performs radio frequency domain processing on the multi-channel antenna signal 901, including amplification and analog down-conversion, to obtain the multi-channel RF modulated signal 902.
[0247] The RF module 802 is coupled to the AD conversion unit 803 so that the RF module 802 can transmit the multi-channel RF modulated signal 902 to the AD conversion unit 803 for digital sampling to obtain the multi-channel digital signal 903.
[0248] The AD conversion unit 803 is coupled to the signal partitioning module 841 so that the signal partitioning module 841 can perform frequency shift filtering on the multi-channel digital signal 903 to obtain the data segments of each channel included in the sampling data acquired by the current multi-channel scan.
[0249] The signal segmentation module 841 is coupled to the matching module 842. This allows the matching module 842 to perform carrier sensing on the data segments of each channel to determine whether the target channel is present in one or more currently scanned channels. If present, the CCA identifier of the corresponding link is configured to 1. Otherwise, if not present, the CCA identifier of all links remains 0. The electronic device then continues with the next multi-channel / single-channel scan.
[0250] The matching module 842 is coupled to the calculation module 842 and the parsing module 844. The calculation module 842 and the parsing module 844 determine the target channel and the corresponding data segment based on the CCA identifier. This allows the calculation module 842 and the parsing module 844 to determine the target channel based on the CCA identifier and then perform subsequent processing.
[0251] The calculation module 843 is also coupled to the AGC unit 845 so that the AGC unit 845 can obtain the digital average power of the target channel from the calculation module 843. The AGC unit 845 flexibly adjusts the AGC gain of the RF module 802 based on the digital average power.
[0252] The calculation module 843 also calculates and determines relevant parameters, such as RSSI, when receiving data transmitted through the target channel, based on the AGC gain adjusted by the RF module 802.
[0253] It should be noted that in other embodiments, the electronic device may also have other components in order to achieve the above-mentioned compatibility of multi-channel and single-channel scanning.
[0254] For example, refer to Figure 15 This provides another electronic device composition and connection logic provided in the embodiments of this application.
[0255] Combination Figure 14 In such Figure 15 In the example, a DC-DC removal module 805 may also be included. In different implementations, the DC-DC removal module 805 may be used to perform DC-DC filtering of analog signals or to perform DC-DC filtering of digital signals.
[0256] Understandably, DC signals increase the overall signal power, potentially causing excessive power in the portion carrying valid data, leading to inaccurate processing. Furthermore, the stronger the DC signal, the greater the potential interference. Therefore, in this example, a DC filtering module 805 is configured to remove the DC signal.
[0257] In such Figure 15 In one example, the DC-DC removal module 805 can be configured between the AD conversion unit 803 and the signal division module 841 for DC filtering of digital signals. In other embodiments, the DC-DC removal module 805 can also be configured between the signal division module 841 and the matching module 842. In other embodiments, the DC-DC removal module 805 can also be configured between the matching module 842 and the parsing module 844. In other embodiments, the DC-DC removal module 805 can also be configured before the AD conversion unit 803 for DC filtering of analog signals. For example, the DC-DC removal module 805 is configured within the RF module 802. As another example, the DC-DC removal module 805 is configured between the RF module 802 and the AD conversion unit 803.
[0258] In other embodiments, the DC filtering module 805 may also be configured in two or more logical locations in the above embodiments to achieve multiple DC filtering.
[0259] refer to Figure 14 In such Figure 15 In the example, a digital resampling module 806 may also be included.
[0260] Understandably, to ensure the accuracy of the digital processing, the digital sampling frequency of each module processing the digital signal (such as the matching module 842, the parsing module 844, and the calculation module 843) needs to match that of the AD conversion unit 803. For example, if the sampling frequency of the AD conversion unit 803 is 80MHz, then the sampling frequency of each module processing the digital signal can also be 80MHz. However, in some cases, the sampling frequency of the AD conversion unit 803 differs from the sampling frequencies of the modules processing the digital signal. In this way, it can be configured as follows: Figure 15 The digital resampling module 806 shown achieves uniformity in sampling frequency, thereby ensuring the accuracy of digital processing.
[0261] For example, the sampling frequency of the AD conversion unit 803 is 80MHz, and the sampling frequency of each module processing the digital signal is 44MHz. Therefore, a digital resampling module 806 can be configured between the signal division module 841 and the matching module 842. This digital resampling module 806 can provide digital resampling processing from 80MHz to 44MHz.
[0262] The multi-channel / single-channel scanning schemes provided in the embodiments of this application can be applied to, for example... Figure 7 , Figure 8 , Figure 9 , Figure 14 as well as Figure 15 Among the provided electronic devices.
[0263] As mentioned above Figure 8 as well as Figure 9 As explained in the description, the electronic device provided in this application embodiment is capable of supporting simultaneous scanning of different numbers of channels in different scenarios.
[0264] For example, consider different numbers of scans, m, where m is an integer greater than or equal to 1. When m equals 1, the electronic device provided in this embodiment can support single-channel scanning. When m is greater than 1, such as when m equals 2, the electronic device provided in this embodiment can support multi-channel scanning of two channels simultaneously. When m equals 3, the electronic device provided in this embodiment can support multi-channel scanning of three channels simultaneously. When m equals 4, the electronic device provided in this embodiment can support multi-channel scanning of four channels simultaneously. When m equals 5, the electronic device provided in this embodiment can support multi-channel scanning of five channels simultaneously. And so on.
[0265] It is understandable that the maximum value of m, that is, the maximum number of simultaneously scanned channels that the electronic device can support, can be determined by the hardware configuration of the electronic device. For example, the number of signal processing links configured in the electronic device can correspond to the maximum number of simultaneously scanned channels that the electronic device can provide.
[0266] For example, in such Figure 9 In the example, the signal processing link may include: signal processing link 1 consisting of DDC1, LPF1, and CCA1; signal processing link 2 consisting of DDC2, LPF2, and CCA2; signal processing link 3 consisting of DDC3, LPF3, and CCA3; signal processing link 4 consisting of DDC4, LPF4, and CCA4; and signal processing link 5 consisting of DDC5, LPF5, and CCA5. Thus, the signal processing link can be... Figure 9 The combination of the channel division module 841 and the matching module 842 shown can support simultaneous scanning of up to 5 channels.
[0267] Combination Figure 8 As explained in the description, the control module 805 in the electronic device can be used to control the power-on operation / power-off inactivity of the signal processing link, thereby enabling different numbers of channel scans in different scenarios.
[0268] For example, refer to Figure 16 The control module 805 can send a control signal stream 1601 to the signal partitioning module 841 to power on m of the n DDCs and m of the n LPFs in the signal partitioning module 841, while keeping the other DDCs and LPFs off. In this way, the powered-on m DDCs and m LPFs can divide the data segments of m channels simultaneously during m channel scanning.
[0269] As a specific implementation, the control module 805 can be configured with multiple control ports. These multiple control ports may include 2n ports used to control each unit in the signal partitioning module 841, such as partitioning control ports. Among these 2n partitioning control ports, n partitioning control ports may be coupled to the control terminals of n DDCs respectively, for controlling the enabling of the n DDCs. Furthermore, these 2n partitioning control ports may also include n partitioning control ports coupled to the control terminals of n LPFs respectively, for controlling the enabling of the n LPFs.
[0270] When it is necessary to control the power-on operation of m DDCs and m LPFs, the corresponding partition control ports can send control signals to the m DDCs and m LPFs respectively to instruct them to power on and perform frequency shifting and filtering processing on the data from the m channels. This allows for the acquisition of the data segments corresponding to each of the m channels.
[0271] The control signals sent to m LPFs and m DDCs can form control signal stream 1601.
[0272] Based on a similar mechanism, the control module 805 can send a control signal stream 1602 to the matching module 842 to power on m of the n CCAs in the matching module 842, while the other CCAs remain powered off. In this way, the m CCAs can be used to perform matching processing (such as carrier sensing) on the data segments of the m channels obtained from the processing of the m signal partition links (i.e., m signal partition links composed of m DDCs and m LPFs), thereby determining whether the data segments of these m channels include the target channel using the target protocol type.
[0273] As a specific implementation, the multiple control ports on the control module 805 may also include n ports for controlling each unit in the matching module 842, such as matching control ports. These n matching control ports can be coupled to the control terminals of the n CCAs respectively to control the enabling of the n CCAs.
[0274] When it is necessary to control the power-on operation of m CCAs, the corresponding matching control port can send control signals to each of the m CCAs to instruct them to power on and perform carrier sensing on data from the m channels. This allows the system to determine whether the data segment of the m channels includes a target channel using the target protocol type. In some implementations, for the target channel, the CCA can also configure the CCA identifier on the corresponding signal processing link to 1, so that other modules can identify the target channel based on the CCA identifier.
[0275] The control signals sent to m CCAs can form control signal stream 1602.
[0276] Therefore, through the control signal streams 1601 and 1602, the corresponding DDC, LPF, and CCA in the signal division module 841 and matching module 842 can be powered on and operated, enabling the corresponding links to perform different multi-channel scanning or single-channel scanning according to the control signal streams.
[0277] As an example, combined Figure 9 Taking a scenario where n is 5 as an example, we will illustrate the enabling of the signal processing link in various scenarios.
[0278] refer to Figure 16 In this scenario, there may be 5 signal processing links, such as signal processing link 1 to signal processing link 5.
[0279] During multi-channel scanning, the multi-channel digital signal 903, after analog-to-digital conversion, can be transmitted to the signal division module 841 for frequency shifting and filtering to obtain the data segments corresponding to each channel. The data segments of each channel can be transmitted to the respective CCAs in the matching module 842 for carrier sensing, outputting the CCA identifier and data segment corresponding to each channel. Specifically, the CCA identifier of the target channel, determined through carrier sensing, can be configured as 1. Correspondingly, the CCA identifiers of other channels not using the target protocol type remain unchanged and are configured as 0.
[0280] In order to achieve such Figure 17 The logic shown is as follows: Figure 18 As shown, control module 805 can control the enabling of DDC1, LPF1, DDC2, LPF2, DDC3, LPF3, DDC4, LPF4, and DDC5, LPF5 via control signal flow 1601, thereby enabling the power-on operation of the corresponding signal-divided links. Control module 806 can also control the enabling of CCA1, CCA2, CCA3, CCA4, and CCA5 via control signal flow 1602, thereby enabling the power-on operation of the CCAs on the corresponding links. For specific implementation details, please refer to the above. Figure 16 The relevant explanations are in the text.
[0281] Thus, based on such Figures 16 to 18 As explained, when different numbers of multi-channel scans are required, the control module 805 can control the power-on of a corresponding number of signal processing links to perform processing such as segmentation and matching of the received signals including data from multiple channels. For example, when performing multi-channel scans of up to m channels, the control module 805 can enable m signal processing links to power on.
[0282] It should be noted that in some embodiments of this application, the frequency shifting capabilities provided by each DDC in the signal partitioning module 841 may differ. In specific implementations, the required frequency shifting processing varies depending on the value of m. Based on this, embodiments of this application also provide a link control scheme for multi-channel scanning, enabling accurate and effective frequency shifting processing for multi-channel scanning with different channel numbers in different scenarios with minimal circuit area.
[0283] The following examples, with reference to the accompanying drawings, illustrate the implementation of this scheme and the rationale behind it.
[0284] For example, let's take an m=5 value. Then, in an electronic device, we can configure features such as... Figure 18 The diagram shows five signal processing links. Based on these five signal processing links, data processing can be achieved during multi-channel / single-channel scanning processes with different channel numbers, such as m=1, m=2, m=3, m=4, or m=5.
[0285] refer to Figure 19 Examples of sampled data during multi-channel scanning with different numbers of channels are provided.
[0286] Taking a 5-channel scan as an example, each scan can use a 40MHz bandwidth to simultaneously acquire data from all 5 channels. For example, the first scan can scan the 2402MHz to 2442MHz frequency band, thereby obtaining sampled data SD_A1. This sampled data SD_A1 can include data from channels 1 to 5. It is understood that since the first 1MHz of channel 1 and the last 1MHz of channel 5 generally do not contain valid data, in this example, the sampled data SD_A1 can cover the 2402MHz to 2442MHz band for subsequent processing to acquire data from channels 1 to 5. The process is similar thereafter. The second scan can scan the 2422MHz to 2462MHz frequency band, thereby obtaining sampled data SD_A2. This sampled data SD_A2 can include data from channels 5 to 9. The third scan can scan the 2442MHz to 2482MHz frequency band, thereby obtaining sampled data SD_A3. This sampled data SD_A3 can include data from channels 9 to 13. Thus, since channel 14 is generally not used, a complete scan of the 2.4 GHz band can be completed in three scans. Figure 19 The 5-channel sampling shown is merely an example. In other embodiments, the bandwidth of the 5-channel sampling can also be configured to 42MHz to fully cover 5 consecutive channels. In other embodiments, the 5-channel sampling can still use 40MHz, with the starting frequency corresponding to the initial frequency of the first of the 5 channels to be covered. For example, the first scan can cover 2401MHz to 2441MHz; the second scan can cover 2421MHz to 2461MHz; and the third scan can cover 2441MHz to 2481MHz.
[0287] Taking a 4-channel scan as an example, each scan can use a 35MHz bandwidth to achieve simultaneous acquisition of data from four channels. For example, the first scan can scan the 2402MHz to 2437MHz frequency band, thereby obtaining sampled data SD_B1. This sampled data SD_B1 can include data from channels 1 to 4. The second scan can scan the 2417MHz to 2452MHz frequency band, thereby obtaining sampled data SD_B2. This sampled data SD_B2 can include data from channels 4 to 7. The third scan can scan the 2432MHz to 2447MHz frequency band, thereby obtaining sampled data SD_B3. This sampled data SD_B3 can include data from channels 7 to 10. The fourth scan can scan the 2447MHz to 2482MHz frequency band, thereby obtaining sampled data SD_B4. This sampled data SD_B4 can include data from channels 10 to 13. In this way, a complete scan of the 2.4GHz frequency band can be completed through 4 scans. Similar to the description in the 5-channel scanning scheme above, this... Figure 19The 4-channel sampling shown is merely an example. In other embodiments, the bandwidth of the 4-channel sampling can also be configured to 37MHz to fully cover four consecutive channels. In other embodiments, the 4-channel sampling can still use 35MHz, with the starting frequency corresponding to the initial frequency of the first of the four channels to be covered. For example, the first scan can cover 2401MHz to 2436MHz; the second scan can cover 2416MHz to 2451MHz; the third scan can cover 2431MHz to 2446MHz; and the fourth scan can cover 2446MHz to 2481MHz.
[0288] Taking a 3-channel scan as an example, each scan can use a 30MHz bandwidth to achieve simultaneous acquisition of data from all three channels. For instance, the first scan can scan the 2402MHz to 2432MHz frequency band, thereby acquiring sampled data SD_C1. This sampled data SD_C1 can include data from channels 1 to 3. The second scan can scan the 2412MHz to 2442MHz frequency band, thereby acquiring sampled data SD_C2. This sampled data SD_C2 can include data from channels 3 to 5. The third scan can scan the 2422MHz to 2452MHz frequency band, thereby acquiring sampled data SD_C3. This sampled data SD_C3 can include data from channels 5 to 7. The fourth scan can scan the 2432MHz to 2462MHz frequency band, thereby acquiring sampled data SD_C4. This sampled data SD_C4 can include data from channels 7 to 9. The fifth scan can scan the 2442MHz to 2472MHz frequency band, thereby acquiring sampled data SD_C5. The sampled data SD_C5 can include data from channels 9 to 11. The sixth scan can scan the 2452MHz to 2482MHz frequency band, thereby obtaining sampled data SD_C6. The sampled data SD_C6 can include data from channels 11 to 13. Similar to the description in the above 5-channel scanning scheme, this... Figure 19 The 3-channel sampling shown is merely an example. In other embodiments, the bandwidth of the 3-channel sampling can also be configured to 32MHz to fully cover three consecutive channels. In other embodiments, the 3-channel sampling can still use 30MHz, with the starting frequency corresponding to the initial frequency of the first of the three channels to be covered. For example, the first scan can cover 2401MHz to 2431MHz; the second scan can cover 2411MHz to 2441MHz; the third scan can cover 2421MHz to 2451MHz; the fourth scan can cover 2431MHz to 2461MHz; the fifth scan can cover 2441MHz to 2471MHz; and the sixth scan can cover 2451MHz to 2481MHz.
[0289] Taking a two-channel scan as an example, each scan can use a 25MHz bandwidth to achieve simultaneous acquisition of data from two channels. For example, the first scan can scan the 2402MHz to 2427MHz frequency band, thereby obtaining sampled data SD_C1. This sampled data SD_C1 can include data from channel 1 to channel 2. The second scan can scan the 2407MHz to 2432MHz frequency band, thereby obtaining sampled data SD_C2. This sampled data SD_C2 can include data from channel 2 to channel 3. The third scan can scan the 2412MHz to 2437MHz frequency band, thereby obtaining sampled data SD_C3. This sampled data SD_C3 can include data from channel 3 to channel 4. The fourth scan can scan the 2417MHz to 2442MHz frequency band, thereby obtaining sampled data SD_C4. This sampled data SD_C4 can include data from channel 4 to channel 5. The fifth scan can scan the 2422MHz to 2447MHz frequency band, thereby obtaining sampled data SD_C5. The sampled data SD_C5 can include data from channels 5 to 6. The 6th scan can scan the 2427MHz to 2452MHz frequency band, thereby obtaining sampled data SD_C6. This sampled data SD_C6 can include data from channels 6 to 7. The 7th scan can scan the 2432MHz to 2457MHz frequency band, thereby obtaining sampled data SD_C6. This sampled data SD_C6 can include data from channels 7 to 8. The 8th scan can scan the 2437MHz to 2462MHz frequency band, thereby obtaining sampled data SD_C5. This sampled data SD_C5 can include data from channels 8 to 9. The 9th scan can scan the 2442MHz to 2467MHz frequency band, thereby obtaining sampled data SD_C6. This sampled data SD_C6 can include data from channels 9 to 10. The 10th scan can scan the 2447MHz to 2472MHz frequency band, thereby obtaining sampled data SD_C6. This sampled data SD_C6 can include data from channels 10 to 11. The 11th scan can scan the 2452MHz to 2477MHz frequency band, thereby acquiring sampled data SD_C6. This sampled data SD_C6 can include data from channels 11 to 12. The 12th scan can scan the 2457MHz to 2482MHz frequency band, thereby acquiring sampled data SD_C6. This sampled data SD_C6 can include data from channels 12 to 13. Similar to the description in the 5-channel scanning scheme above, this... Figure 19The two-channel sampling shown is merely an example. In other embodiments, the bandwidth of the two-channel sampling can also be configured to 27MHz to fully cover two consecutive channels. In other embodiments, the two-channel sampling can still use 25MHz, with the starting frequency corresponding to the initial frequency of the first of the two channels to be covered. For example, the first scan can cover 2401MHz to 2426MHz; the second scan can cover 2406MHz to 2431MHz; the third scan can cover 2411MHz to 2436MHz; the fourth scan can cover 2416MHz to 2441MHz; the fifth scan can cover 2421MHz to 2446MHz; the sixth scan can cover 2426MHz to 2451MHz; the seventh scan can cover 2431MHz to 2456MHz; the eighth scan can cover 2436MHz to 2461MHz; the ninth scan can cover 2441MHz to 2466MHz; the tenth scan can cover 2446MHz to 2471MHz; the eleventh scan can cover 2451MHz to 2476MHz; and the twelfth scan can cover 2456MHz to 2481MHz.
[0290] It should be noted that, as Figure 19 The bandwidth and coverage band of the sampling data segments provided in the related descriptions are merely examples. In other embodiments of this application, bandwidths and / or coverage bands different from those provided in the examples above may be used based on different numbers of multi-channel scanning processes. This application does not impose specific limitations on these aspects.
[0291] This allows for scanning data from multiple channels simultaneously, reducing the number of scans in the 2.4GHz band and improving efficiency compared to a single-channel scanning scheme.
[0292] In conjunction with the foregoing description, after acquiring sampling data of different lengths, the electronic device can also convert the sampling data into corresponding digital signals through radio frequency domain processing, analog-to-digital conversion, etc.
[0293] Digital signals can be processed by the signal division module 841 to obtain the data segments corresponding to each channel.
[0294] For example, such as Figure 20 As shown, in some embodiments, the signal division module 841 may include frequency shifting processing.
[0295] Understandably, down-conversion can shift the center frequency of an analog signal to 0MHz. However, since different numbers of multi-channel scans result in different frequencies covered by the analog signal, the actual center frequencies of each channel will differ after down-conversion.
[0296] For example, refer to Figure 21 Taking a 5-channel sampled analog signal undergoing downconversion as an example, after downconversion, the center frequency of the sampled data SD_A1 can be moved to 0MHz. Correspondingly, in this data segment, the center frequency of channel 1 is -10MHz, the center frequency of channel 2 is -5MHz, the center frequency of channel 3 is 0MHz, the center frequency of channel 4 is 5MHz, and the center frequency of channel 5 is 10MHz.
[0297] In combination with the above Figure 12 The explanation of frequency shifting processing is in this... Figure 21 In the scenario of 5-channel sampling and scanning shown, the DDC needs to provide frequency shift processing of 10MHz, 5MHz, -5MHz and -10MHz respectively, and then obtain the data segments corresponding to each of the 5 channels through filtering processing.
[0298] In other multi-channel sampling scan processes, the required frequency shift processing length can be different.
[0299] Taking the downconversion processing of 4-channel sampled data as an example, after downconversion, the center frequency of the sampled data SD_B1 can be moved to 0MHz. Correspondingly, in this data segment, the center frequency of channel 1 is -7.5MHz, the center frequency of channel 2 is -2.5MHz, the center frequency of channel 3 is 2.5MHz, and the center frequency of channel 4 is 7.5MHz.
[0300] Thus, in this Figure 21 In the scenario of 4-channel sampling and scanning shown, the DDC needs to provide frequency shift processing of 7.5MHz, 2.5MHz, -2.5MHz and -7.5MHz respectively, and then obtain the data segments corresponding to each of the 4 channels through filtering processing.
[0301] Taking down-conversion processing of data sampled from 3 channels as an example, after down-conversion processing, the center frequency of the sampled data SD_C1 can be moved to 0MHz. Correspondingly, in this data segment, the center frequency of channel 1 is -5MHz, the center frequency of channel 2 is 0MHz, and the center frequency of channel 3 is 5MHz.
[0302] Thus, in this Figure 21 In the scenario of 3-channel sampling and scanning shown, the DDC needs to provide frequency shift processing of 5MHz and -5MHz respectively, and then obtain the data segments corresponding to the three channels through filtering processing.
[0303] Taking down-conversion processing of data sampled from two channels as an example, after down-conversion, the center frequency of the sampled data SD_D1 can be moved to 0MHz. Correspondingly, in this data segment, the center frequency of channel 1 is -2.5MHz, and the center frequency of channel 2 is 2.5MHz.
[0304] Thus, in this Figure 21 In the scenario of two-channel sampling scanning shown, the DDC needs to provide frequency shift processing of 2.5MHz and -2.5MHz respectively, and then obtain the data segments corresponding to the two channels through filtering processing.
[0305] In summary, in the implementation of the scheme that provides a maximum of 5 channel scanning, the signal division module 841 needs to be able to provide frequency shift processing capabilities of at least -7.5MHz, -5MHz, -2.5MHz, and 2.5MHz, 5MHz, and 7.5MHz.
[0306] In some embodiments of this application, as shown Figure 18 Taking the logic structure shown as an example, the signal division module 841 may include DDC1 to DDC5, which respectively support the above-mentioned frequency shifting processing capabilities.
[0307] For example, refer to Figure 22 DDC1 can provide 0MHz frequency shift processing capability. Thus, DDC1 can avoid frequency shifting of the input data. For example, DDC1 can be used for processing channel 3 in a 5-channel scanning scenario and channel 2 in a 3-channel scanning scenario, as described in the above example. Therefore, by subsequent filtering with a center frequency of 0MHz across the frequency band, the data segment of channel 3 in the 5-channel scanning scenario or channel 2 in the 3-channel scanning scenario can be obtained. In other embodiments, DDC1 can also be used for signal processing in a single-channel scan.
[0308] DDC2 can provide frequency shifting capabilities of -2.5MHz and -5MHz. Thus, DDC2 can be used to perform frequency domain shifting on input data segments. For example, DDC2 can be used to process channel 4 in a 5-channel scanning scenario, channel 3 in a 4-channel scanning scenario, channel 3 in a 3-channel scanning scenario, and channel 2 in a 2-channel scanning scenario, as described in the examples above. Through frequency shifting, DDC2 can move the center frequency of the corresponding channel data segment to 0MHz, facilitating subsequent filtering processing using a frequency band with a center frequency of 0MHz to obtain the data segment of that channel.
[0309] DDC3 can provide frequency shifting capabilities of 2.5MHz and 5MHz. Thus, similar to DDC2, DDC3 can be used to perform frequency domain shifting on input data segments. For example, DDC3 can be used to process channel 2 in a 5-channel scanning scenario, channel 2 in a 4-channel scanning scenario, channel 1 in a 3-channel scanning scenario, and channel 1 in a 2-channel scanning scenario, as described in the examples above. Through frequency shifting, DDC3 can move the center frequency of the corresponding channel data segment to 0MHz, facilitating subsequent filtering processing using a frequency band with a center frequency of 0MHz to obtain the data segment of that channel.
[0310] DDC4 can provide frequency shift processing capabilities of -7.5MHz and -10MHz. Thus, DDC3 can also be used to perform frequency domain shifting on input data segments. For example, DDC4 can be used in the above examples to process channel 5 in a 5-channel scanning scenario and channel 4 in a 4-channel scanning scenario. Through frequency shifting, DDC4 can move the center frequency of the corresponding channel data segment to 0MHz, so that the data segment of that channel can be obtained through subsequent filtering processing with a center frequency of 0MHz in the frequency band.
[0311] DDC5 can provide frequency shifting capabilities of 7.5MHz and 10MHz. Thus, DDC5 can also be used to perform frequency domain shifting on input data segments. For example, DDC5 can be used in the above example to process channel 1 in a 5-channel scanning scenario and channel 4 in a 4-channel scanning scenario. Through frequency shifting, DDC4 can move the center frequency of the corresponding channel data segment to 0MHz, so that the data segment of that channel can be obtained through subsequent filtering processing with a center frequency of 0MHz in the frequency band.
[0312] As an example, Figure 23 Examples of signal processing link enablement scenarios with varying numbers of channels are provided. In some implementations, this is as follows: Figure 23 The enable status of each unit module on the signal processing link shown, and the correspondence between the number of channels in the current multi-channel scan, can be pre-configured in the electronic device so that the control module 805 can control the corresponding unit module on the signal processing link to be enabled and powered on according to the number of channels currently used in the multi-channel scan, thereby achieving link enable control that matches the current number of channels.
[0313] like Figure 23 As shown, in some embodiments, a 2-channel scan is used as an example, meaning that the number of channels in the current multi-channel scan is 2.
[0314] The control module 805 can power on the signal processing link corresponding to DDC2-LPF2-CCA2, so as to obtain the data segment of channel 2 in the current sampled signal (such as sampled data SD_D1) through frequency shifting and filtering based on the -2.5MHz frequency shifting processing capability provided by DDC2. Then, CCA2 performs carrier sensing on this data segment to determine whether the data segment of channel 2 uses the target protocol type.
[0315] The control module 805 can also power on the signal processing link corresponding to DDC3-LPF3-CCA3, so as to obtain the data segment of channel 1 in the current sampled signal (such as sampled data SD_D1) through frequency shifting and filtering based on the 2.5MHz frequency shifting processing capability provided by DDC3. Then, the CCA3 performs carrier sensing on the data segment to determine whether the data segment of channel 1 uses the target protocol type.
[0316] In other embodiments, a 3-channel scan is used as an example, meaning that the number of channels in the current multi-channel scan is 3.
[0317] The control module 805 can power on the signal processing link corresponding to DDC1-LPF1-CCA1, so that the sampled signal (such as sampled data SD_C1) can be frequency-shifted to 0MHz based on DDC1, and then the data segment of channel 2 in the sampled data SD_C1 can be obtained through filtering. Then, the data segment of channel 2 can be carrier-sensing through CCA1 to determine whether the data segment of channel 2 uses the target protocol type.
[0318] The control module 805 can also power on the signal processing link corresponding to DDC2-LPF2-CCA2, so as to obtain the data segment of channel 3 in the current sampled signal (such as sampled data SD_C1) through frequency shifting and filtering based on the -5MHz frequency shifting processing capability provided by DDC2. Then, the CCA2 performs carrier sensing on the data segment to determine whether the data segment of channel 3 uses the target protocol type.
[0319] The control module 805 can also power on the signal processing link corresponding to DDC3-LPF3-CCA3, so as to obtain the data segment of channel 1 in the current sampled signal (such as sampled data SD_C1) through frequency shifting and filtering based on the 5MHz frequency shifting processing capability provided by DDC3. Then, the CCA3 performs carrier sensing on the data segment to determine whether the data segment of channel 1 uses the target protocol type.
[0320] In other embodiments, a 4-channel scan is used as an example, meaning that the number of channels in the current multi-channel scan is 4.
[0321] The control module 805 can power on the signal processing link corresponding to DDC2-LPF2-CCA2, so as to obtain the data segment of channel 3 in the current sampled signal (such as sampled data SD_B1) through frequency shifting and filtering based on the -2.5MHz frequency shifting processing capability provided by DDC2. Then, CCA2 performs carrier sensing on this data segment to determine whether the data segment of channel 3 uses the target protocol type.
[0322] The control module 805 can also power on the signal processing link corresponding to DDC3-LPF3-CCA3, so as to obtain the data segment of channel 2 in the current sampled signal (such as sampled data SD_B1) through frequency shifting and filtering based on the 2.5MHz frequency shifting processing capability provided by DDC3. Then, the CCA3 performs carrier sensing on the data segment to determine whether the data segment of channel 2 uses the target protocol type.
[0323] The control module 805 can also power on the signal processing link corresponding to DDC4-LPF4-CCA4, so that based on the -7.5MHz frequency shift processing capability provided by DDC4, it can obtain the data segment of channel 4 in the current sampled signal (such as sampled data SD_B1) through frequency shift processing and filtering processing. Then, CCA4 performs carrier sensing on this data segment to determine whether the data segment of channel 4 uses the target protocol type.
[0324] The control module 805 can also power on the signal processing link corresponding to DDC5-LPF5-CCA5, so that based on the 7.5MHz frequency shift processing capability provided by DDC5, it can obtain the data segment of channel 1 in the current sampled signal (such as sampled data SD_B1) through frequency shift processing and filtering processing. Then, the CCA5 performs carrier sensing on this data segment to determine whether the data segment of channel 1 uses the target protocol type.
[0325] In other embodiments, a 5-channel scan is used as an example, meaning that the number of channels in the current multi-channel scan is 5.
[0326] The control module 805 can power on the signal processing links corresponding to DDC1-LPF1-CCA1, so that the sampled signal (such as sampled data SD_A1) can be frequency-shifted to 0MHz based on DDC1, and then the data segment of channel 3 in the sampled data SD_A1 can be obtained through filtering. Then, the data segment of channel 3 can be carrier-sensing through CCA1 to determine whether the data segment of channel 3 uses the target protocol type.
[0327] The control module 805 can power on the signal processing link corresponding to DDC2-LPF2-CCA2, so as to obtain the data segment of channel 4 in the current sampled signal (such as sampled data SD_A1) through frequency shifting and filtering based on the -5MHz frequency shifting processing capability provided by DDC2. Then, CCA2 performs carrier sensing on this data segment to determine whether the data segment of channel 4 uses the target protocol type.
[0328] The control module 805 can also power on the signal processing link corresponding to DDC3-LPF3-CCA3, so as to obtain the data segment of channel 2 in the current sampled signal (such as sampled data SD_A1) through frequency shifting and filtering based on the 5MHz frequency shifting processing capability provided by DDC3. Then, the CCA3 performs carrier sensing on the data segment to determine whether the data segment of channel 2 uses the target protocol type.
[0329] The control module 805 can also power on the signal processing link corresponding to DDC4-LPF4-CCA4, so that based on the -10MHz frequency shift processing capability provided by DDC4, the data segment of channel 5 in the current sampled signal (such as sampled data SD_A1) can be obtained through frequency shift processing and filtering. Then, the CCA4 performs carrier sensing on this data segment to determine whether the data segment of channel 5 uses the target protocol type.
[0330] The control module 805 can also power on the signal processing link corresponding to DDC5-LPF5-CCA5, so that based on the 10MHz frequency shift processing capability provided by DDC5, the data segment of channel 1 in the current sampled signal (such as sampled data SD_A1) can be obtained through frequency shift processing and filtering. Then, the CCA5 performs carrier sensing on this data segment to determine whether the data segment of channel 1 uses the target protocol type.
[0331] Thus, by configuring five DDCs with different frequency shifting capabilities in the above example, it is possible to achieve full coverage of the frequency shifting processing required for single-channel scanning, 2-channel multi-channel scanning, 3-channel multi-channel scanning, 4-channel multi-channel scanning, and 5-channel multi-channel scanning. This means that by configuring the signal partitioning links corresponding to these five DDCs in the signal partitioning module 841 (e.g., each DDC is coupled to a filter unit), support for data processing in various different scenarios can be achieved. Furthermore, by using the CCA coupled to each signal partitioning link, matching processing of corresponding data segments is achieved to determine whether the data segment uses the target protocol type.
[0332] Furthermore, the embodiments provided in this application, such as Figure 17 or Figure 18The logic shown can also be used to support single-channel scanning.
[0333] For example, refer to Figure 24 During single-channel scanning, the control module 805 can power on the signal processing link corresponding to DDC1-LPF1-CCA1. In this single-channel scanning scenario, such as... Figure 24 The multi-channel digital signal 903 shown can include data from only one channel. Thus, by using 0MHz frequency shift processing with DDC1 and filtering processing with LPF1, the data segment of this single channel can be obtained. Then, by using carrier sensing with CCA1, it can be determined whether this channel is the target channel.
[0334] Therefore, through the above Figures 16 to 24 The provided solution example, combined with Figures 8 to 15 With the explanation provided, those skilled in the art should have a detailed understanding of the specific implementation of the multi-channel scanning scheme provided in the embodiments of this application, as well as its compatibility with scanning for different numbers of channels.
[0335] In some implementations, the frequency shifting process performed by the DDC can be implemented based on entries pre-configured in the electronic device. Generally, different frequency shifting lengths (e.g., -2.5MHz, 2.5MHz, 7.5MHz, -7.5MHz, 10MHz, or -10MHz) require different entries. Therefore, based on existing implementations, in order for different DDCs to provide various frequency shifting capabilities, multiple entries corresponding to each frequency shifting length need to be configured in the electronic device.
[0336] In some embodiments of this application, a lookup table entry and an index table for different frequency shift processing lengths can be pre-configured. This allows different DDCs to provide corresponding frequency shift processing capabilities based on the index table and the lookup table entry corresponding to the current frequency shift processing length. This avoids configuring multiple different lookup table entries in the electronic device, saving storage space, and also avoids frequency shift processing anomalies caused by incorrect calls when multiple lookup table entries exist.
[0337] The following is a detailed introduction to this implementation.
[0338] Based on the foregoing description of frequency shifting, in this application, frequency shifting can be a frequency shifting process applied to the digital signal obtained by analog-to-digital conversion from the down-converted analog signal. Specifically, different DDCs provide different lengths of frequency shifting processing. In the following examples, the length of the frequency shifting processing will be simply referred to as the frequency shift length.
[0339] In this application, by means of Figure 17 or Figure 18The example shown illustrates five signal processing links performing a maximum of five channel scans. The frequency shift lengths involved in data processing can include -2.5MHz, 2.5MHz, 7.5MHz, -7.5MHz, 10MHz, and -10MHz. In other implementations, the frequency shift lengths involved in the data processing can differ depending on the number of signal processing links. Similar implementations are described in the exemplary descriptions provided in this application.
[0340] It is understandable that the implementation of frequency shifting for digital signals can be referenced from the implementation of frequency shifting for analog signals corresponding to digital signals.
[0341] For example, consider a 2.5MHz frequency shift processing of an analog sine wave signal.
[0342] For analog signals, a 2.5MHz frequency shift is equivalent to shifting the signal waveform 2.5MHz higher in the frequency domain. Thus, the shift of this sinusoidal signal to higher / lower frequencies corresponds to the calculation of cos(a) + / - sin(b), where a and b correspond to the frequency domain shift step size.
[0343] As an example, referring to Table 1, taking x = 2.5MHz as an example, an example is given of the sub-channel center frequency point after down-conversion, the corresponding frequency shift length, and the calculation method of the frequency shift processing of the analog signal.
[0344] Among them, combined Figure 19 as well as Figure 21 For example, a sub-channel center frequency of -10MHz corresponds to the frequency shifting process of channel 1, channel 5, and channel 9 in a 5-channel scan.
[0345] The sub-channel center frequency of -7.5MHz corresponds to the frequency shifting process of channels 1, 4, 7, and 10 in the 4-channel scanning.
[0346] The sub-channel center frequency of -5MHz corresponds to the frequency shifting process of channels 1, 3, 5, 7, 9, and 11 in a 3-channel scan, and the frequency shifting process of channels 2, 6, and 10 in a 5-channel scan.
[0347] The sub-channel center frequency of -2.5MHz corresponds to the frequency shifting process of channels 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, and 12 in a 2-channel scan, as well as the frequency shifting process of channels 2, 5, 8, and 11 in a 4-channel scan.
[0348] A sub-channel center frequency of 0MHz corresponds to the frequency shifting processes of channels 3, 7, and 11 in a 5-channel scan, as well as the frequency shifting processes of channels 2, 4, 6, 8, 10, and 12 in a 3-channel scan, and the frequency shifting processes of each channel in a single-channel scan.
[0349] Correspondingly, the sub-channel center frequency of 2.5MHz corresponds to the frequency shifting process of channels 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, and 13 in a 2-channel scan, and the frequency shifting process of channels 3, 6, 9, and 12 in a 4-channel scan.
[0350] The sub-channel center frequency of 5MHz corresponds to the frequency shifting process of channels 3, 5, 7, 9 and 11 in the 3-channel scan, and the frequency shifting process of channels 4, 8 and 12 in the 5-channel scan.
[0351] The sub-channel center frequency of 10MHz corresponds to the frequency shifting process of channels 5, 9, and 13 in the 5-channel scan.
[0352] Table 1
[0353] Sub-channel center frequency (MHz) Frequency shift length (MHz) Frequency shifting of analog signals -10 10 Cos(4x)-i*sin(4x) -7.5 7.5 Cos(3x)-i*sin(3x) -5 5 Cos(2x)-i*sin(2x) -2.5 2.5 Cos(x) - i*sin(x) 0 0 1 2.5 -2.5 Cos(x) + i*sin(x) 5 -5 Cos(2x) + i*sin(2x) 7.5 -7.5 Cos(3x) + i*sin(3x) 10 -10 Cos(4x) + i*sin(4x)
[0354] As shown in Table 1, for a data segment with a sub-channel center frequency of -10MHz, the frequency shift processing of the analog signal by 10MHz can be achieved by using Cos(4x)-i*sin(4x), thereby moving the center frequency of the data segment to 0MHz.
[0355] Similarly, for a data segment with a subchannel center frequency of -7.5MHz, the frequency shift of the analog signal can be achieved by using Cos(3x)-i*sin(3x), thereby moving the center frequency of the data segment to 0MHz.
[0356] For a data segment with a subchannel center frequency of -5MHz, the frequency shift processing of the analog signal by 5MHz can be achieved using the method Cos(2x)-i*sin(2x), thereby moving the center frequency of the data segment to 0MHz.
[0357] For a data segment with a subchannel center frequency of -2.5MHz, the frequency shift of the analog signal can be achieved by using Cos(x)-i*sin(x), thereby moving the center frequency of the data segment to 0MHz.
[0358] Correspondingly, for each data segment with a center frequency greater than 0 in the sub-channel, the calculation method used is the same as that used for a center frequency less than 0. The difference is that the sign of the imaginary part changes from + to -, which enables frequency shifting in different directions.
[0359] Based on the description in Table 1, it can be seen that in the frequency shifting process of each frequency shift length involved in this application, the frequency domain shift of the analog signal can be realized by using x = 2.5MHz as a reference and through a pre-configured calculation method.
[0360] Based on the explanations in Table 1 above, since a digital signal is essentially a data set obtained by sampling an analog signal, the corresponding digital signal can also exhibit characteristics similar to those in Table 1 when undergoing frequency shifting. For example, when the frequency shift length is a multiple of 2.5 MHz, the relevant parameters can be obtained based on the 2.5 MHz frequency shift parameters.
[0361] As an example, we will first briefly explain the conventional digital signal frequency shifting mechanism.
[0362] For example, refer to Figure 25 Taking digital signal as data segment 1 as an example.
[0363] This data segment 1 may include the first bit (e.g., CNT 0) of data d0, the second bit (e.g., CNT 1) of data d1, the third bit (e.g., CNT 2) of data d2, the fourth bit (e.g., CNT 3) of data d3, the fifth bit (e.g., CNT 4) of data d4, and so on.
[0364] The electronic device can perform 2.5MHz frequency shift processing on data segment 1 according to a pre-configured 2.5MHz frequency shift lookup table.
[0365] As an example, the electronic device can be configured with frequency shift coefficients corresponding to each bit as shown in Table 2. In some implementations, the frequency shift coefficients for each bit shown in Table 2 can be obtained based on the sampling rate of the AD conversion unit 803 and the frequency shift processing mechanism of the 2.5MHz analog signal shown in Table 1 above.
[0366] In this context, CNT, from smallest to largest, indicates the position of each data point in the digital signal. The smaller the CNT, the earlier the data is located in the digital signal, and the earlier the DDC receives the data. Conversely, the larger the CNT, the later the data is located in the digital signal, and the later the DDC receives the data.
[0367] It should be noted that in the examples in Table 2, the frequency shift coefficients can include two parts: the part before the sign (e.g., + / -) is the coefficient corresponding to the real part, and the part after the sign is the coefficient corresponding to the imaginary part. A + sign in the frequency shift coefficient indicates a frequency shift towards lower frequencies. Conversely, a - sign indicates a frequency shift towards higher frequencies.
[0368] Table 2
[0369] Frequency shift length / MHz 2.5 CNT x 0 1.0+0.0 1 0.93-0.34 2 0.75-0.65 3 0.48-0.87 4 0.14-0.99 …… ……
[0370] Based on Table 2 and the data of each bit in data segment 1, the data of each bit after the 2.5MHz frequency shift processing can be obtained.
[0371] For example, such as Figure 25 As shown in Table 2, the electronic device (such as the DDC3 of the electronic device) can obtain the corresponding d0' of CNT0 after the 2.5MHz frequency shift processing based on d0 corresponding to CNT0 and the frequency shift coefficient (such as 1.0+0.0) corresponding to CNT0.
[0372] Based on d1 corresponding to CNT1 and the frequency shift coefficient (e.g., 0.93-0.34) corresponding to CNT1, the DDC3 of the electronic device can obtain the corresponding d1' of CNT1 after 2.5MHz frequency shift processing.
[0373] Based on d2 corresponding to CNT2 and the frequency shift coefficient (e.g., 0.75-0.65) corresponding to CNT2, the DDC3 of the electronic device can obtain the corresponding d2' of CNT2 after 2.5MHz frequency shift processing.
[0374] Based on the d3 corresponding to CNT3 and the frequency shift coefficient (e.g., 0.48-0.87) corresponding to CNT3, the DDC3 of the electronic device can obtain the corresponding d3' of CNT3 after 2.5MHz frequency shift processing.
[0375] Based on d4 corresponding to CNT4 and the frequency shift coefficient (e.g., 0.14-0.99) corresponding to CNT4, the DDC3 of the electronic device can obtain the corresponding d4' of CNT4 after a 2.5MHz frequency shift. And so on.
[0376] Therefore, the data d0', d1', d2', d3', d4', etc., can be the data segment after DDC3 performs a 2.5MHz frequency shift on data segment 1.
[0377] Based on the above Figure 25 And the implementation mechanism of Table 2, such as Figure 26The DDC3 shown can perform frequency shifting on the input data segment before 2.5MHz frequency shifting based on the 2.5MHz frequency shift lookup table (as shown in Table 2) stored in the electronic device, thereby obtaining the data segment after 2.5MHz frequency shifting.
[0378] Similar to the 2.5MHz frequency shift processing, processing of other frequency shift lengths can also be achieved through a frequency shift lookup table of corresponding lengths pre-stored in the electronic device.
[0379] For example, consider a 5MHz frequency shift process. Combined with... Figure 22 The explanation indicates that this 5MHz frequency shift processing can also be implemented using DDC3. Therefore, as... Figure 26 As shown, DDC3 can perform frequency shifting on the input 5MHz data segment before frequency shifting based on a 5MHz frequency shift lookup table stored in the electronic device, thereby obtaining the data segment after 5MHz frequency shifting.
[0380] The frequency shifting process is similar for other lengths.
[0381] Therefore, based on this scheme, it is necessary to store a frequency shift lookup table corresponding to each possible frequency shift length in the electronic device.
[0382] For example, such as Figure 27 As shown, electronic devices can store frequency shift lookup tables for -10MHz, -7.5MHz, -5MHz, -2.5MHz, 10MHz, 7.5MHz, 5MHz, and 2.5MHz respectively.
[0383] Correspondingly, embodiments of this application also provide a method for implementing different frequency shift lengths. Unlike... Figure 26 or Figure 27 The scheme shown in this example only requires storing one basic frequency shift lookup table (such as a 2.5MHz frequency shift lookup table) in the electronic device. The electronic device can also store index tables corresponding to other frequency shift lengths, which can realize frequency shift processing for each frequency shift length.
[0384] The following is a detailed explanation.
[0385] For example, as illustrated in Table 1, each frequency shift length involved in this application can be an integer multiple of 2.5 MHz. Correspondingly, Table 2 can include the frequency shift coefficients of each bit of data in other frequency shift processes that are integer multiples of 2.5 MHz.
[0386] As an example, Table 3 below provides a comparison of the frequency shift coefficients for each bit in frequency shifting processes of 1x (i.e., 2.5MHz), 2x (i.e., 5MHz), 3x (i.e., 7.5MHz), and 4x (i.e., 10MHz) at 2.5MHz.
[0387] Table 3
[0388] Frequency shift length / MHz 0 2.5 5 7.5 10 CNT 0 x 2x 3x 4x 0 1.0+0.0 1.0+0.0 1.0+0.0 1.0+0.0 1.0+0.0 1 1.0+0.0 0.93-0.34 0.75-0.65 0.48-0.87 0.14-0.99 2 1.0+0.0 0.75-0.65 0.14-0.99 …… …… 3 1.0+0.0 0.48-0.87 …… …… …… 4 1.0+0.0 0.14-0.99 …… …… …… …… …… …… …… …… ……
[0389] As shown in Table 3, the frequency shift coefficients for 5MHz are already included in the frequency shift coefficients for 2.5MHz. The difference is that the frequency shift coefficients in the 5MHz frequency shifting process only correspond to a portion of the frequency shift coefficients in the 2.5MHz process. For example, in 5MHz, the frequency shift coefficient of CNT1 is 0.75-0.65, which is the frequency shift coefficient of CNT2 in 2.5MHz. Similarly, in 5MHz, the frequency shift coefficient of CNT2 is 0.14-0.99, which is the frequency shift coefficient of CNT4 in 2.5MHz.
[0390] In this embodiment, the frequency shift coefficient of each bit can be obtained from the 2.5MHz frequency shift comparison table shown in Table 2 by using the index table corresponding to the 5MHz frequency shift processing.
[0391] For example, Table 4 provides an example of an index table for 5MHz frequency shifting processing.
[0392] Table 4
[0393] CNT Index identifier 0 0 1 2 2 4 …… ……
[0394] As shown in Table 4, when performing a 5MHz frequency shift, the data from CNT0 can be processed according to the frequency shift coefficient of CNT0 in the 2.5MHz frequency shift lookup table to achieve a 5MHz frequency shift. Similarly, the data from CNT1 can be processed according to the frequency shift coefficient of CNT2 in the 2.5MHz frequency shift lookup table to achieve a 5MHz frequency shift. Furthermore, the data from CNT2 can be processed according to the frequency shift coefficient of CNT4 in the 2.5MHz frequency shift lookup table to achieve a 5MHz frequency shift, and so on.
[0395] Thus, by using the index table for 5MHz frequency shifting processing shown in Table 4, and the 2.5MHz frequency shifting lookup table, the DDC can perform 5MHz frequency shifting processing on the data segment by looking up the table.
[0396] From the perspective of DDC3, such as Figure 28 As shown, a 2.5MHz frequency shift lookup table is used as the basic frequency shift lookup table. DDC3 can use, for example, a frequency shift lookup table like... Figure 26A similar approach is to perform frequency shifting on the input data segment before 2.5MHz frequency shifting based on a 2.5MHz frequency shift lookup table stored in the electronic device (as shown in Table 2), thereby obtaining the data segment after 2.5MHz frequency shifting.
[0397] When performing 5MHz frequency shifting, DDC3 can use the 2.5MHz frequency shift lookup table and the 5MHz index table to perform frequency shifting on the input data segment before 5MHz frequency shifting, thereby obtaining the data segment after 5MHz frequency shifting.
[0398] It is understandable that, as shown in Table 3, the specific implementation of frequency shifting for positive integer multiples of 2.5MHz (such as 5MHz, 7.5MHz, 10MHz, etc.) can refer to the above-mentioned 5MHz frequency shifting implementation.
[0399] In other cases, the frequency shifting of negative integers of 2.5MHz can also be achieved using a similar implementation, so that the electronic device does not need to store too many frequency shift lookup tables to achieve the corresponding frequency shifting.
[0400] As an example, Table 5 below provides an example of the frequency shift coefficient correspondence between frequency shift lengths that are negative integer multiples of 2.5 MHz and frequency shift processing.
[0401] Table 5
[0402] Frequency shift length / MHz -10 -7.5 -5 -2.5 0 CNT -4x -3x -2x -x 0 0 1.0+0.0 1.0+0.0 1.0+0.0 1.0+0.0 1.0+0.0 1 0.14+0.99 0.48+0.87 0.75+0.65 0.93+0.34 1.0+0.0 2 …… …… 0.14+0.99 0.75+0.65 1.0+0.0 3 …… …… …… 0.48+0.87 1.0+0.0 4 …… …… …… 0.14+0.99 1.0+0.0 …… …… …… …… …… ……
[0403] As shown in Table 5, in conjunction with the frequency shift coefficient of 2.5MHz mentioned above, the sign of the frequency shift coefficient corresponding to the frequency shift length that is a negative integer multiple of 2.5MHz is "+". In addition, the numerical relationship between the real part and the imaginary part is similar to that of the frequency shift coefficient corresponding to the frequency shift length that is a positive integer multiple of 2.5MHz.
[0404] Thus, in this application, a correspondence can be established between a basic frequency shift lookup table and the frequency shift coefficients corresponding to frequency shift lengths that are negative integer multiples of 2.5 MHz, using an index table. This allows the DDC to perform frequency shift processing of the corresponding length based on the basic frequency shift lookup table and the index table.
[0405] As one possible implementation, the index table for frequency shift lengths that are negative integer multiples of 2.5 MHz can be configured with corresponding identifiers. These identifiers can indicate that the index table corresponds to frequency shift processing that is a negative integer multiple of 2.5 MHz. Thus, the DDC, based on the identifier configuration, can retrieve the corresponding frequency shift coefficient using the CNT indicated by the index table when calling the index table and the basic frequency shift lookup table, and change the sign of the frequency shift coefficient from "-" to "+" for the current frequency shift processing. This allows for the implementation of corresponding frequency shift processing based on a 2.5 MHz frequency shift lookup table, as well as index tables for -10 MHz, -7.5 MHz, -5 MHz, -2.5 MHz, 5 MHz, 7.5 MHz, and 10 MHz.
[0406] Thus, based on this... Figure 28 The solution shown is implemented as follows: Figure 29 As shown, an electronic device can store only one 2.5MHz frequency shift lookup table as the basic frequency shift lookup table. The electronic device can also store index tables corresponding to other frequency shift lengths. Based on this basic frequency shift lookup table and the index tables, each DDC in the electronic device can perform frequency shifting processing for different frequency shift lengths.
[0407] In some other embodiments of this application, the electronic device may also store a frequency shift lookup table of -2.5MHz as a second basic frequency shift lookup table. This second basic lookup table is used to implement frequency shift processing with frequency shift lengths that are integer multiples of -2.5MHz. In this way, the index tables corresponding to frequency shift processing such as -10MHz, -7.5MHz, and -5MHz do not need to be set with the above-mentioned identifiers.
[0408] Correspondingly, the 2.5MHz frequency shift lookup table serves as the first basic frequency shift lookup table, used for frequency shifting at 2.5MHz, 5MHz, 7.5MHz, and 10MHz.
[0409] Of course, in other implementations, the -2.5MHz frequency shift lookup table can also be used as the first frequency shift lookup table, and the 2.5MHz frequency shift lookup table can be used as the second basic frequency shift lookup table. This application does not limit this.
[0410] It is understandable that in the above examples, electronic devices are all assumed to have, for example, the following features. Figure 17 or Figure 18 The example shown illustrates a maximum of five channel scans. This allows each frequency shift length to be an integer multiple of 2.5 MHz. Therefore, a 2.5 MHz frequency shift lookup table can be stored as the basic lookup table in the electronic device, while other frequency shift lengths can be stored in corresponding index tables.
[0411] In other implementations, when the number of signal processing links in a multi-channel scanning configuration differs, a similar implementation can be used. A frequency shift lookup table corresponding to the common factor of each frequency shift length during the required frequency shifting process can be stored as a basic frequency shift lookup table in the electronic device. Corresponding index tables for other frequency shift lengths can then be stored.
[0412] Understandably, since the index table contains significantly less data than the frequency shift lookup table, it is more appropriate to use a different approach. Figure 29 The proposed solution is comparable to Figure 27 The proposed solution achieves the effect of reducing the storage of duplicate data and saving corresponding storage costs.
[0413] It should be noted that, taking a sinusoidal signal as the analog signal corresponding to the data segment as an example, in the time domain, a complete cycle of a sinusoidal signal can be obtained by mirroring the sinusoidal signal within 1 / 4 of a cycle in the time domain and reversing its amplitude. Therefore, corresponding to the digital signal obtained after sampling, the complete data segment within that cycle can be determined using data within 1 / 4 of a cycle. The frequency shift coefficients in the frequency shifting process also have similar characteristics.
[0414] Therefore, in some embodiments of this application, the frequency shift coefficients of each bit during the 2.5MHz frequency shift processing within 1 / 4 of a cycle can be stored in the basic frequency shift lookup table. This further saves storage space.
[0415] Furthermore, based on the above description of using a 2.5MHz frequency shift lookup table as the basic lookup table, in some other embodiments, a -2.5MHz frequency shift lookup table can also be stored in the electronic device as the basic lookup table, and the corresponding index tables for other frequency shift lengths can be adjusted accordingly.
[0416] The foregoing mainly describes the solutions provided by the embodiments of this application from the perspective of various functional modules. Those skilled in the art should readily recognize that, based on the units and algorithm steps of the examples described in conjunction with the embodiments disclosed herein, this application can be implemented in hardware or a combination of hardware and computer software. Whether a function is executed in hardware or by computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0417] The integrated modules described above can be implemented in hardware or as software functional modules. It should be noted that the module division in this embodiment is illustrative and represents only one logical functional division; in actual implementation, other division methods may be used.
[0418] For example, Figure 30 A schematic diagram of the composition of an electronic device 3000 is shown. (As shown) Figure 30 As shown, the electronic device 3000 may include a processor 3001 and a memory 3002. The memory 3002 is used to store computer execution instructions. Exemplarily, in some embodiments, when the processor 3001 executes the instructions stored in the memory 3002, the electronic device 3000 may perform any of the methods shown in the above embodiments. Figure 30 As shown, in this example, the electronic device may also be equipped with an antenna 3003 for transmitting and receiving signals. Therefore, the processor 3001 can process the signals received by the antenna 3003 or transmit the processed signals through the antenna 3003 according to the instructions stored in the memory 3002.
[0419] It should be noted that all relevant content of each step involved in the above method embodiments can be referenced from the functional description of the corresponding functional module, and will not be repeated here.
[0420] Figure 31 A schematic diagram of a chip system 3100 is shown. The chip system 3100 may include a processor 3101 and a communication interface 3102, used to support related devices in implementing the functions involved in the above embodiments. In one possible design, the chip system also includes a memory for storing necessary program instructions and data for the electronic device. 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 this application, the communication interface 3102 may also be referred to as an interface circuit. Exemplarily, the chip system 3100 may include a baseband chip. This baseband chip can be used to implement the various functions of the baseband module 840 provided in the various embodiments of this application.
[0421] It should be noted that all relevant content of each step involved in the above method embodiments can be referenced from the functional description of the corresponding functional module, and will not be repeated here.
[0422] The functions, actions, 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 software programs, they can be implemented, in whole or in part, in the form of a computer program product. This computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of this application are generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium can be any available medium accessible to a computer or include one or more data storage devices such as servers and data centers that can be integrated with the medium. The available media can be magnetic media (e.g., floppy disks, hard disks, magnetic tapes), optical media (e.g., DVDs), or semiconductor media (e.g., solid-state disks (SSDs)).
[0423] Although this application has been described in conjunction with specific features and embodiments, it is obvious that various modifications and combinations can be made thereto without departing from the spirit and scope of this application. Accordingly, this specification and drawings are merely exemplary illustrations of this application as defined by the appended claims, and are considered to cover any and all modifications, variations, combinations, or equivalents within the scope of this application. Clearly, those skilled in the art can make various alterations and modifications to this application without departing from the spirit and scope of this application. Thus, if such modifications and modifications of this application fall within the scope of the claims of this application and their equivalents, this application is also intended to include such modifications and modifications.
Claims
1. A scanning control method characterized by comprising: The method is applied to an electronic device, which is equipped with a first antenna for receiving single-channel or multi-channel signals. The electronic device is equipped with at least two signal processing links, which are used to simultaneously process data from at least two different channels to determine whether the data transmitted on the corresponding channel uses a preset target protocol type. The electronic device is also provided with a control module, which is used to control the enabling of the signal processing link; The method includes: The electronic device receives first sampled data through the first antenna. The first sampled data includes data from M channels, where M is an integer greater than 1. The electronic device controls the power-on of M signal processing links out of the at least two signal processing links through the control module, so that the M signal processing links perform digital processing based on the first sampled data to determine whether the M channels corresponding to the first sampled data include a target channel, wherein the target channel is a channel that uses a preset target protocol type for data transmission.
2. The method of claim 1, wherein, The first antenna is a Wi-Fi antenna, and the operating frequency band of the first antenna includes 2.4GHz-2.5GHz.
3. The method according to claim 1 or 2, characterized in that, The signal processing link includes: a frequency shifting unit, a filtering unit coupled to the frequency shifting unit, and a carrier sensing (CCA) unit coupled to the filtering unit; When the control module controls the signal processing link to power on and operate, the method further includes: The frequency shifting unit performs frequency shifting processing on the first sampled data; the frequency shifting length is different when the frequency shifting units included in different signal processing links perform frequency shifting processing. The filtering unit filters the first sampled data after frequency shifting to obtain a data segment corresponding to a channel; the bandwidth of the filtering units included in different signal processing links is the data bandwidth of one channel; The CCA unit performs carrier sensing on the single-channel data segment obtained after filtering to determine whether the data segment is transmitted through the target protocol type.
4. The method of claim 3, wherein, Before the first sampled data is input to the frequency shift unit, the method further includes: The electronic device performs down-conversion processing on the first sampled data so that the center frequency of the down-converted first sampled data is 0MHz; The frequency shifting unit performs frequency shifting processing on the first sampled data, including: The frequency shifting unit performs the frequency shifting process on the first sampled data after the down-conversion process.
5. The method according to claim 3, characterized in that, The frequency shifting unit includes a digital down-conversion (DDC) unit, and the filtering unit includes a low-pass filter (LPF).
6. The method according to claim 4 or 5, characterized in that, The electronic device receives first sampled data via the first antenna, including: Under the control of the control module, the electronic device controls the first antenna to receive electromagnetic waves from M channels and converts the electromagnetic waves from the M channels into a first analog signal.
7. The method according to claim 6, characterized in that, The method further includes: The electronic device performs radio frequency processing on the first analog signal to obtain a first radio frequency modulated signal. The radio frequency processing includes down-conversion processing and / or amplification processing and / or filtering processing. The electronic device performs analog-to-digital conversion on the first radio frequency modulation signal to obtain a first digital signal; the first digital signal includes a data segment corresponding to each of the M channels; The electronic device controls the power-on of M signal processing links out of the at least two signal processing links via the control module, so that the M signal processing links perform digital processing based on the first sampled data to determine whether the target channel is included among the M channels corresponding to the first sampled data, including: The electronic device controls the power-on of M signal processing links out of the at least two signal processing links through the control module, so that the M signal processing links perform digital processing on the first digital signal to determine whether the data segments corresponding to the M channels included in the first digital signal are transmitted using the target protocol type. When the first data segment is transmitted using the target protocol type, the first channel corresponding to the first data segment is the target channel; the first data segment is included in the first digital signal, and the first channel is included in the M signal processing links.
8. The method according to claim 7, characterized in that, After the electronic device enables and powers on M signal processing links out of the at least two signal processing links via the control module, the method includes: The first frequency shifting unit in the first signal processing link performs a first frequency shifting process on the first digital signal to obtain a second digital signal. The frequency shifting length of the first frequency shifting process is a first frequency. In the second digital signal, the center frequency corresponding to the first data segment is 0MHz. The first filtering unit in the first signal processing link performs filtering processing on the second digital signal to obtain the first data segment; The first signal processing link is included in the M signal processing links.
9. The method according to claim 8, characterized in that, The M signal processing links further include a second signal processing link, and the M channels further include a second channel, which corresponds to a second data segment; The method further includes: The second frequency shift unit in the second signal processing link performs a second frequency shift processing on the first digital signal to obtain a third digital signal. The frequency shift length of the second frequency shift processing is the second frequency. In the third digital signal, the center frequency corresponding to the second data segment is 0MHz. The second filtering unit in the second signal processing link filters the third digital signal to obtain the second data segment; The second frequency is different from the first frequency.
10. The method according to claim 9, characterized in that, The method further includes: The first CCA unit in the first signal processing link performs carrier sensing on the first data segment in order to determine whether the first data segment is transmitted using the target protocol type based on the Barker code of the target protocol type preset in the electronic device.
11. The method according to claim 10, characterized in that, The first signal processing link is configured with a first CCA identifier, which is used to indicate whether the channel corresponding to the data segment currently being processed by the first signal processing link is the target channel; The method further includes: If it is determined that the first data segment is transmitted using the target protocol type, the first CCA identifier is configured with a first value to indicate that the corresponding first channel of the first data segment is the target channel.
12. The method according to any one of claims 9-11, characterized in that, The electronic device is equipped with a basic frequency shift lookup table corresponding to the first frequency, and the basic frequency shift lookup table is used to perform the first frequency shift processing; the basic frequency shift lookup table includes at least one frequency shift coefficient, and the at least one frequency shift coefficient corresponds to the data of each bit of the first digital signal during the first frequency shift processing; The electronic device is also equipped with M-1 index tables; The M-1 index tables correspond to different frequency shift lengths, and the frequency shift length corresponding to any one of the M-1 index tables is an integer multiple of the first frequency. The index tables are used to indicate the position of the corresponding frequency shift coefficient of each bit of the data segment in the basic frequency shift lookup table during the frequency shift processing corresponding to the current frequency shift length. The first frequency shifting unit in the first signal processing link performs a first frequency shifting process on the first digital signal, including: The first frequency shifting unit performs the first frequency shifting process according to the basic frequency shifting lookup table and the first digital signal.
13. The method according to claim 12, characterized in that, The M-1 index tables include a first index table, which corresponds to the frequency shift length of the second frequency; The second frequency shift unit in the second signal processing link performs a second frequency shift processing on the first digital signal, including: The second frequency shifting unit performs the second frequency shifting process according to the basic frequency shifting lookup table, the first index table, and the first digital signal.
14. The method according to claim 1, 2, 4, 5, 7, 8, 9, 10, 11, or 13, characterized in that, The electronic device is equipped with at least two signal processing links, including: The electronic device is equipped with five signal processing links, which are used to support multi-channel scanning of no more than five channels simultaneously under the control of the control module, or to support single-channel scanning.
15. The method according to claim 14, characterized in that, The five signal processing links include: the third signal processing link, the fourth signal processing link, the fifth signal processing link, the sixth signal processing link, and the seventh signal processing link. The third signal processing link includes a third DDC unit, a third LPF unit, and a third CCA unit coupled in sequence; the fourth signal processing link includes a fourth DDC unit, a fourth LPF unit, and a fourth CCA unit coupled in sequence; the fifth signal processing link includes a fifth DDC unit, a fifth LPF unit, and a fifth CCA unit coupled in sequence; the sixth signal processing link includes a sixth DDC unit, a sixth LPF unit, and a sixth CCA unit coupled in sequence; the seventh signal processing link includes a seventh DDC unit, a seventh LPF unit, and a seventh CCA unit coupled in sequence. Specifically, the third DDC unit is used to perform a 0MHz frequency shift on the input digital signal; the fourth DDC unit is used to perform a -2.5MHz or -5MHz frequency shift on the input digital signal; the fifth DDC unit is used to perform a 2.5MHz or 5MHz frequency shift on the input digital signal; the sixth DDC unit is used to perform a -7.5MHz or -10MHz frequency shift on the input digital signal; and the seventh DDC unit is used to perform a 7.5MHz or 10MHz frequency shift on the input digital signal.
16. The method according to claim 15, characterized in that, The pass frequency band of the third LPF unit, the fourth LPF unit, the fifth LPF unit, the sixth LPF unit, and the seventh LPF unit is all the first pass frequency band. The center frequency of the first pass band is 0MHz, and the bandwidth of the first pass band is 22MHz.
17. The method according to claim 15 or 16, characterized in that, The electronic device is equipped with five signal processing links to support simultaneous multi-channel scanning of five channels. The first sampled data includes data from M channels, including: The first sampling data includes data collected in the frequency band corresponding to the third channel, the frequency band corresponding to the fourth channel, the frequency band corresponding to the fifth channel, the frequency band corresponding to the sixth channel, and the frequency band corresponding to the seventh channel; the third channel, the fourth channel, the fifth channel, the sixth channel, and the seventh channel are sequentially adjacent, and the center frequency of the third channel is less than the center frequency of the fourth channel; The electronic device controls the power-on of M signal processing links out of the at least two signal processing links via the control module, including: The electronic device controls the third signal processing link, the fourth signal processing link, the fifth signal processing link, the sixth signal processing link, and the seventh signal processing link to power on and operate respectively through the control module; The third DDC unit and the third LPF unit in the third signal processing link are used to obtain the data segment of the fifth channel based on the first sampled data; the third CCA unit in the third signal processing link is used to determine whether the fifth channel is a target channel. The fourth DDC unit and the fourth LPF unit in the fourth signal processing link are used to obtain the data segment of the sixth channel based on the first sampled data; the fourth CCA unit in the fourth signal processing link is used to determine whether the sixth channel is a target channel. The fifth DDC unit and the fifth LPF unit in the fifth signal processing link are used to obtain the data segment of the fourth channel based on the first sampled data; the fifth CCA unit in the fifth signal processing link is used to determine whether the fourth channel is a target channel. The sixth DDC unit and the sixth LPF unit in the sixth signal processing link are used to obtain the data segment of the seventh channel based on the first sampled data; the sixth CCA unit in the sixth signal processing link is used to determine whether the seventh channel is a target channel. The seventh DDC unit and the seventh LPF unit in the seventh signal processing link are used to obtain the data segment of the third channel based on the first sampled data; the seventh CCA unit in the seventh signal processing link is used to determine whether the third channel is a target channel.
18. The method according to claim 15 or 16, characterized in that, The electronic device is equipped with five signal processing links to support simultaneous multi-channel scanning of four channels. The first sampled data includes data from M channels, including: The first sampling data includes data collected in the frequency band corresponding to the third channel, the frequency band corresponding to the fourth channel, the frequency band corresponding to the fifth channel, and the frequency band corresponding to the sixth channel; the third channel, the fourth channel, the fifth channel, and the sixth channel are sequentially adjacent, and the center frequency of the third channel is less than the center frequency of the fourth channel; The electronic device controls the power-on of M signal processing links out of the at least two signal processing links via the control module, including: The electronic device controls the fourth signal processing link, the fifth signal processing link, the sixth signal processing link, and the seventh signal processing link to power on and operate respectively through the control module; The fourth DDC unit and the fourth LPF unit in the fourth signal processing link are used to obtain the data segment of the fifth channel based on the first sampled data; the fourth CCA unit in the fourth signal processing link is used to determine whether the fifth channel is a target channel. The fifth DDC unit and the fifth LPF unit in the fifth signal processing link are used to obtain the data segment of the fourth channel based on the first sampled data; the fifth CCA unit in the fifth signal processing link is used to determine whether the fourth channel is a target channel. The sixth DDC unit and the sixth LPF unit in the sixth signal processing link are used to obtain the data segment of the sixth channel based on the first sampled data; the sixth CCA unit in the sixth signal processing link is used to determine whether the sixth channel is a target channel. The seventh DDC unit and the seventh LPF unit in the seventh signal processing link are used to obtain the data segment of the third channel based on the first sampled data; the seventh CCA unit in the seventh signal processing link is used to determine whether the third channel is a target channel.
19. The method according to claim 15 or 16, characterized in that, The electronic device is equipped with five signal processing links to support simultaneous multi-channel scanning of three channels. The first sampled data includes data from M channels, including: The first sampling data includes data collected in the frequency band corresponding to the third channel, data collected in the frequency band corresponding to the fourth channel, and data collected in the frequency band corresponding to the fifth channel; the third channel, the fourth channel, and the fifth channel are sequentially adjacent, and the center frequency of the third channel is less than the center frequency of the fourth channel; The electronic device controls the power-on of M signal processing links out of the at least two signal processing links via the control module, including: The electronic device controls the third signal processing link, the fourth signal processing link, and the fifth signal processing link to power on and operate respectively through the control module; The third DDC unit and the third LPF unit in the third signal processing link are used to obtain the data segment of the fourth channel based on the first sampled data; the third CCA unit in the third signal processing link is used to determine whether the fourth channel is a target channel. The fourth DDC unit and the fourth LPF unit in the fourth signal processing link are used to obtain the data segment of the fifth channel based on the first sampled data; the fourth CCA unit in the fourth signal processing link is used to determine whether the fifth channel is a target channel. The fifth DDC unit and the fifth LPF unit in the fifth signal processing link are used to obtain the data segment of the third channel based on the first sampled data; the fifth CCA unit in the fifth signal processing link is used to determine whether the third channel is a target channel.
20. The method according to claim 15 or 16, characterized in that, The electronic device is equipped with five signal processing links to support multi-channel scanning of two channels simultaneously. The first sampled data includes data from M channels, including: The first sampling data includes data collected in the frequency band corresponding to the third channel and data collected in the frequency band corresponding to the fourth channel; the third channel and the fourth channel are adjacent, and the center frequency of the third channel is lower than the center frequency of the fourth channel; The electronic device controls the power-on of M signal processing links out of the at least two signal processing links via the control module, including: The electronic device controls the fourth signal processing link and the fifth signal processing link to power on and operate respectively through the control module; The fourth DDC unit and the fourth LPF unit in the fourth signal processing link are used to obtain the data segment of the fourth channel based on the first sampled data; the fourth CCA unit in the fourth signal processing link is used to determine whether the fourth channel is a target channel. The fifth DDC unit and the fifth LPF unit in the fifth signal processing link are used to obtain the data segment of the third channel based on the first sampled data; the fifth CCA unit in the fifth signal processing link is used to determine whether the third channel is a target channel.
21. An electronic device, characterized in that, The electronic device includes: a first antenna, a memory, and one or more processors; the memory and the processors are coupled; the first antenna and the processors are coupled. The memory is used to store computer program code, which includes computer instructions. When the processor executes the computer instructions, it causes the electronic device to perform the method as described in any one of claims 1-20.
22. A chip system, characterized in that, The chip system is applied to an electronic device; the chip system includes one or more interface circuits and one or more processors; the interface circuits and the processors are interconnected via lines; the interface circuits are used to receive signals from the memory of the electronic device and send the signals to the processors, the signals including computer instructions stored in the memory; when the processor executes the computer instructions, the electronic device performs the method as described in any one of claims 1-20.
23. The chip system according to claim 22, characterized in that, The chip system is configured with at least two signal processing links, which are used to process data from different channels to determine whether the data transmitted on the corresponding channel uses a preset target protocol type.