Scanning control method and electronic equipment

By using multiple signal processing links and control modules in electronic devices, simultaneous scanning of multiple Wi-Fi channels is realized, and the problems of low channel scanning efficiency and waste of hardware resources in the prior art are solved.

CN119545480AActive Publication Date: 2025-02-28HONOR DEVICE CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202311058783.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-08-21
Publication Date
2025-02-28
Estimated Expiration
2043-08-21

AI Technical Summary

Technical Problem

When existing electronic devices receive Wi-Fi signal, the process of determining the target channel through single-channel scanning is inefficient and requires more hardware resources.

Method used

A scan control method is provided, which enables or disables these links through a control module to achieve simultaneous scanning and parsing of multiple channels using at least two signal processing links.

Benefits of technology

Through one scan and parsing calculation, it is possible to quickly determine whether multiple channels contain target channels, which improves the efficiency of channel scanning and reduces the demand for hardware resources.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119545480A_ABST
    Figure CN119545480A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a scanning control method and electronic equipment, and relates to the technical field of electronic equipment. The electronic equipment can support scanning analysis of a plurality of channels at the same time. The method comprises the steps that the electronic equipment receives first sampling data through a first antenna, the first sampling data comprises data of M channels, and M is an integer larger than 0. The electronic equipment controls M signal processing links in the at least two signal processing links to be powered on through the control module, so that the M signal processing links carry out digital processing according to the first sampling data, and whether M channels corresponding to the first sampling data comprise a target channel or not is determined, the target channel is a channel for performing data transmission by using a preset target protocol type.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the technical field of electronic devices, and in particular to a scanning control method and electronic device. Background Art

[0002] When receiving wireless signals based on Wi-Fi, the electronic device may determine a target channel for subsequent data communication through channel scanning. Exemplarily, the target channel may be a channel for communication using a preset target protocol type.

[0003] Generally, the channel scanning scheme may include single channel scanning. The 13 channels specified by the Wi-Fi related protocols are scanned in sequence, and the data obtained from each scan is parsed to determine the protocol type used by each channel. Then, the target channel is determined based on the channel using the target protocol type. This will result in a lack of efficiency in the process of the electronic device determining the target channel. Summary of the invention

[0004] The present application provides a scanning control method and an electronic device, which can enable the electronic device to support scanning and parsing of multiple channels at the same time.

[0005] In order to achieve the above technical objectives, this application adopts the following technical solutions:

[0006] In a first aspect, a scanning control method is provided, which is applied to an electronic device, wherein the electronic device is provided with a first antenna, and the first antenna is used to receive a single-channel or multi-channel signal. At least two signal processing links are provided in the electronic device, and the at least two signal processing links are used to perform signal processing on data of different channels to determine whether the data transmitted on the corresponding channel uses a preset target protocol type. The electronic device is also provided with a control module, and the control module is used to control the enabling of the signal processing link. The method includes: the electronic device receives first sampling data through the first antenna, and the first sampling data includes data of M channels, where M is an integer greater than 0. The electronic device controls M signal processing links of the at least two signal processing links to enable power-on through the control module, so that the M signal processing links perform digital processing according to the first sampling data, and determine whether the M channels corresponding to the first sampling data include a target channel, and the target channel is a channel for data transmission using a preset target protocol type.

[0007] Based on this solution, the electronic device can implement multi-channel scanning or single-channel scanning in different situations based on at least two configured signal processing links. Exemplarily, taking multi-channel scanning as an example, through a single scan and analytical calculation, it can be determined whether the target channel can be included in multiple channels. In the present application, through the reasonable control of the control module, only limited hardware configuration (such as at least two signal processing links) is required to support different numbers of channel scans in different scenarios.

[0008] Optionally, the first antenna is a Wi-Fi antenna, and the operating frequency band of the first antenna includes 2.4 GHz-2.5 GHz. Exemplarily, the solution can be applied to a scanning scenario of a 2.4 GHz Wi-Fi frequency band.

[0009] Optionally, the signal processing link includes: a frequency shift unit, a filtering unit coupled to the frequency shift unit, and a carrier sense CCA unit coupled to the filtering unit. When the control module controls the signal processing link to power on. The method also includes: the frequency shift unit performs frequency shift processing on the first sampled data. When the frequency shift units included in different signal processing links perform frequency shift processing, the corresponding frequency shift lengths are different. The filtering unit performs filtering processing on the first sampled data after the frequency shift processing to obtain a data segment corresponding to a channel. The passing bandwidth of the filtering units included in different signal processing links is the data bandwidth of 1 channel. The CCA unit performs carrier sensing on the single-channel data segment obtained after the filtering processing 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 data segment to be obtained is moved to the center position of the sampled signal by the frequency shift unit, so that the data segment is obtained by filtering the filtering unit. Thereby, the separation of single channel data from the sampled data including multiple channel data is achieved.

[0010] Optionally, before the first sampling data is input into the frequency shift unit, the method further includes: the electronic device performs down-conversion processing on the first sampling data so that the center frequency of the first sampling data after the down-conversion processing is 0 MHz. The frequency shift unit performs frequency shift processing on the first sampling data, including: the frequency shift unit performs the frequency shift processing on the first sampling data after the down-conversion processing. Based on the down-conversion processing, the center frequency of the sampling data can be modulated to 0 MHz, thereby facilitating subsequent frequency shifting and filtering. It can be understood that since the center frequency is modulated from 2 GHz or higher to 0 MHz, the effect of frequency reduction is achieved, thereby improving the accuracy of back-end processing.

[0011] Optionally, the frequency shift unit includes a digital down-conversion DDC unit, and the filtering unit includes a low-pass filter LPF.

[0012] Optionally, the electronic device receives the first sampling data through the first antenna, including: the electronic device, under the control of the control module, controls the first antenna to receive electromagnetic waves of M channels, and converts the electromagnetic waves of the M channels into first analog signals.

[0013] Optionally, the method further includes: the electronic device performs radio frequency processing on the first analog signal to obtain a first radio frequency modulation signal, and 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 M signal processing links in the at least two signal processing links to enable power-on through the control module, so that the M signal processing links perform digital processing according to the first sampling data, and determines whether the M channels corresponding to the first sampling data include a target channel, including: the electronic device controls M signal processing links in the at least two signal processing links to enable power-on through the control module, so that the M signal processing links perform digital processing on the first digital signal, and determines whether the data segments corresponding to the M channels included in the first digital signal are respectively 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 an analog signal processing logic before an electronic device processes a digital signal. Therefore, based on the processing of the digital signal obtained after the analog signal processing, it can be determined whether the current sampled data includes a target data segment transmitted using a target channel.

[0015] Optionally, after the electronic device controls M signal processing links in the at least two signal processing links to be enabled and powered on through the control module, the method includes: the first frequency shift unit in the first signal processing link performs a first frequency shift process on the first digital signal to obtain a second digital signal, and the frequency shift length of the first frequency shift 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 process on the second digital signal to obtain the first data segment. The first signal processing link is included in the M signal processing links. Thus, a specific data processing mechanism on a signal processing link is provided.

[0016] Optionally, the M signal processing links also include a second signal processing link, and the M channels also include a second channel, and the second channel corresponds to a second data segment. The method also includes: the second frequency shift unit in the second signal processing link performs a second frequency shift process on the first digital signal to obtain a third digital signal, and the frequency shift length of the second frequency shift process is a 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 performs filtering process on the third digital signal to obtain the second data segment. The second frequency is different from the first frequency. Thus, another specific data processing mechanism on a signal processing link is provided.

[0017] It can be understood that the sampling signal can be collected and acquired in a relatively short time. Then, during the multi-signal scanning process, the division and processing of different channel data can be implemented synchronously by different signal processing links, thereby achieving the effect of parallel processing and saving corresponding time overhead.

[0018] Optionally, the method further includes: the first CCA unit in the first signal processing link performs carrier sensing on the first data segment, so as to determine whether the first data segment is transmitted using the target protocol type according to the Baker code of the target protocol type preset in the electronic device. Thus, through the carrier sensing technology, it is possible to achieve matching processing of the data segment 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, and the first CCA identifier is used to indicate whether the channel corresponding to the data segment currently processed by the first signal processing link is the target channel. The method also includes: when it is determined that the first data segment is transmitted using the target protocol type, the first CCA identifier is configured as a first value to indicate that the first channel corresponding to the first data segment is the target channel. In this example, the result of the matching process can be saved through the CCA identifier. This facilitates other modules to determine the target channel, target data, etc. according to the CCA identifier.

[0020] In different implementations, the CCA flag may be a hardware signal, such as a high level, a low level, etc. Alternatively, the CCA flag may be a digital signal, such as 1, 0, etc.

[0021] Optionally, the electronic device is configured with a basic frequency shift comparison table corresponding to the first frequency, and the basic frequency shift comparison table is used to perform the first frequency shift processing. The basic frequency shift comparison 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 configured with M-1 index tables. Among them, 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 table is used to indicate the position of the frequency shift coefficient corresponding to each bit of the data of the data segment in the frequency shift processing corresponding to the current frequency shift length, in the basic frequency shift comparison table. The first frequency shift unit in the first signal processing link performs the first frequency shift processing on the first digital signal, including: the first frequency shift unit performs the first frequency shift processing according to the basic frequency shift comparison table and the first digital signal.

[0022] Optionally, the M-1 index tables include a first index table, and the first index table corresponds to the frequency shift length of the second frequency. The second frequency shift unit in the second signal processing chain 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 comparison table, the first index table, and the first digital signal.

[0023] In this way, by storing a basic frequency shift comparison table and index tables corresponding to other frequency shift lengths, it is not necessary to store too many frequency shift comparison tables in the electronic device, thereby saving corresponding storage overhead. As an example, taking a maximum of 5 channel scans as an example. The first frequency shift processing corresponding to the basic frequency shift comparison table can be a 2.5MHz frequency shift processing, or a -2.5MHz frequency shift processing.

[0024] Optionally, the electronic device is configured with at least two signal processing links, including: the electronic device is configured with 5 signal processing links, which are used to support multi-channel scanning of no more than 5 channels at the same time under the control of the control module, or to support single-channel scanning.

[0025] This example and the following solution examples provide a specific implementation example of a hardware configuration that supports up to 5 channel scans during scanning of different numbers of channels.

[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. Among them, the third DDC unit is used to perform 0MHz frequency shift processing on the input digital signal. The fourth DDC unit is used to perform -2.5MHz frequency shift processing or -5MHz frequency shift processing on the input digital signal. The fifth DDC unit is used to perform 2.5MHz frequency shift processing or 5MHz frequency shift processing on the input digital signal. The sixth DDC unit is used to perform a -7.5 MHz frequency shift process or a -10 MHz frequency shift process on the input digital signal. The seventh DDC unit is used to perform a 7.5 MHz frequency shift process or a 10 MHz frequency shift process on the input digital signal.

[0027] In this example, each DDC in the pre-configured signal processing link can have a fixed one, two or more frequency shift processing capabilities. Therefore, in different scenarios, when frequency shift processing with different frequency shift lengths is required, the control module can achieve the corresponding frequency shift processing by controlling the enablement of the signal processing link where the corresponding DDC is located.

[0028] Optionally, the pass frequency bands of the third LPF unit, the fourth LPF unit, the fifth LPF unit, the sixth LPF unit and the seventh LPF unit are all first pass frequency bands, the center frequency of the first pass frequency band is 0 MHz, and the bandwidth of the first pass frequency band is 22 MHz.

[0029] Optionally, the electronic device is configured with 5 signal processing links to support multi-channel scanning of 5 channels at the same time. The first sampling data includes data of 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, data collected in the frequency band corresponding to the fifth channel, data collected in the frequency band corresponding to the sixth channel, and data collected in 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 adjacent in sequence, and the center frequency of the third channel is less than the center frequency of the fourth channel. The electronic device controls the M signal processing links in the at least two signal processing links to enable power-on through 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 work respectively through the control module. Among them, 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 according to the first sampling data. The third CCA unit in the third signal processing link is used to determine whether the fifth channel is the 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 according to the first sampling data. The fourth CCA unit in the fourth signal processing link is used to determine whether the sixth channel is the 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 according to the first sampling data. The fifth CCA unit in the fifth signal processing link is used to determine whether the fourth channel is the 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 according to the first sampling data. The sixth CCA unit in the sixth signal processing link is used to determine whether the seventh channel is the 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 according to the first sampling data. The seventh CCA unit in the seventh signal processing link is used to determine whether the third channel is the target channel. In this way, multi-channel scanning data processing of 5-channel scanning is realized.

[0030] Optionally, the electronic device is configured with 5 signal processing links to support multi-channel scanning of 4 channels at the same time. The first sampling data includes data of 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, data collected in the frequency band corresponding to the fifth channel, and data collected in the frequency band corresponding to the sixth channel. The third channel, the fourth channel, the fifth channel, and the sixth channel are adjacent in sequence, and the center frequency of the third channel is less than the center frequency of the fourth channel. The electronic device controls the M signal processing links in the at least two signal processing links to enable power-on through 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 work respectively through the control module. Among them, 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 according to 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 obtain the data segment of the fourth channel according to the first sampling data. The fifth CCA unit in the fifth signal processing link is used to determine whether the fourth channel is the 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 according to the first sampling data. The sixth CCA unit in the sixth signal processing link is used to determine whether the sixth channel is the 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 according to the first sampling data. The seventh CCA unit in the seventh signal processing link is used to determine whether the third channel is the target channel. In this way, multi-channel scanning data processing of 4-channel scanning is realized.

[0031] Optionally, the electronic device is configured with 5 signal processing links to support multi-channel scanning of 3 channels at the same time. The first sampling data includes data of 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 adjacent in sequence, and the center frequency of the third channel is less than the center frequency of the fourth channel. The electronic device controls the M signal processing links in the at least two signal processing links to enable power-on through 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 work respectively through the control module. Among them, 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 according to the first sampling data. The third CCA unit in the third signal processing link is used to determine whether the fourth channel is the 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 according to 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 obtain the data segment of the third channel according to the first sampling data. The fifth CCA unit in the fifth signal processing link is used to determine whether the third channel is the target channel. Thus, multi-channel scanning data processing of 3-channel scanning is realized.

[0032] Optionally, the electronic device is configured with 5 signal processing links to support multi-channel scanning of 2 channels at the same time. The first sampling data includes data of 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 less than the center frequency of the fourth channel. The electronic device controls the M signal processing links in the at least two signal processing links to enable power-on through the control module, including: the electronic device controls the fourth signal processing link and the fifth signal processing link to power on and work respectively through the control module. Among them, 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 according to the first sampling data. The fourth CCA unit in the fourth signal processing link is used to determine whether the fourth channel is the 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 according to the first sampling data. The fifth CCA unit in the fifth signal processing link is used to determine whether the third channel is the target channel. This enables multi-channel scanning data processing of 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, the electronic device 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 is used to store a computer program code, the computer program code comprising a computer instruction, and when the processor executes the computer instruction, the electronic device executes the method provided in the first aspect and any possible design thereof.

[0035] In a third aspect, a chip system is provided, which is applied to an electronic device. The chip system includes one or more interface circuits and one or more processors. The interface circuit and the processor are interconnected by a line. The interface circuit is used to receive a signal from a memory of the electronic device and send the signal to the processor, wherein the signal includes a computer instruction stored in the memory. When the processor executes the computer instruction, the electronic device executes the method provided in the first aspect and any possible design thereof.

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

[0037] In a fourth aspect, the present application also provides a computer-readable storage medium, including computer instructions. When the computer instructions are executed on an electronic device, the electronic device executes the technical solution provided in the above-mentioned first aspect and any possible implementation thereof.

[0038] In a fifth aspect, the present application also provides a computer program product, which, when executed on a computer, enables the computer to execute the technical solution provided in the above-mentioned first aspect and any possible implementation thereof.

[0039] It can be understood that the solutions provided in the second aspect to the fifth aspect of the present application can respectively correspond to the first aspect and any possible design thereof, so the beneficial effects that can be achieved are similar and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] Figure 1 A schematic diagram of a wireless communication scenario;

[0041] Figure 2 This is a schematic diagram of channel division in the 2.4G frequency band;

[0042] Figure 3 A schematic diagram of a type of protocol that may be used in a 2.4G band communication process;

[0043] Figure 4 A schematic diagram of a wireless communication scenario;

[0044] Figure 5 A schematic diagram of the composition of an electronic device;

[0045] Figure 6 A schematic diagram of determining a target channel for a single channel scan;

[0046] Figure 7 A schematic diagram of the composition of an electronic device provided in an embodiment of the present application;

[0047] Figure 8 A schematic diagram of the composition of an electronic device provided in an embodiment of the present application;

[0048] Fig. 9 A logical connection diagram of an electronic device provided in an embodiment of the present application;

[0049] Fig.10 A schematic diagram of multi-channel sampling provided in an embodiment of the present application;

[0050] Fig.11 A schematic diagram of data processing logic in a multi-channel scanning process provided by an embodiment of the present application;

[0051] Fig.12 A schematic diagram of data processing logic in a multi-channel scanning process provided by an embodiment of the present application;

[0052] Fig.13 A schematic diagram of data processing logic in a multi-channel scanning process provided by an embodiment of the present application;

[0053] Fig.14 A logical connection diagram of an electronic device provided in an embodiment of the present application;

[0054] Fig.15 A logical connection diagram of an electronic device provided in an embodiment of the present application;

[0055] Fig.16 A control logic diagram for implementing scanning of different numbers of channels provided in an embodiment of the present application;

[0056] Fig.17 A schematic diagram of a signal processing link for simultaneously scanning up to 5 channels provided in an embodiment of the present application:

[0057] Fig.18A logic diagram of a control signal processing link operation provided in an embodiment of the present application;

[0058] Fig.19 A schematic diagram of the composition of sampling data in a multi-channel scanning scenario with different numbers provided by an embodiment of the present application;

[0059] Fig. 20 A functional logic diagram of a signal division module provided in an embodiment of the present application;

[0060] Fig.21 A schematic diagram of down-conversion processing in a multi-channel scanning scenario with different numbers provided by an embodiment of the present application;

[0061] Fig. 22 A schematic diagram for comparing the frequency shifting functions of DDC on different links provided in an embodiment of the present application;

[0062] Fig.23 A schematic diagram of effective link enabling logic in a multi-channel scanning scenario with different numbers provided by an embodiment of the present application;

[0063] Fig.24 A schematic diagram of an effective link enabling logic for implementing single-channel scanning provided in an embodiment of the present application;

[0064] Fig.25 A schematic diagram of a frequency shift processing of a digital signal provided in an embodiment of the present application;

[0065] Fig.26 A schematic diagram of processing logic of different frequency shift lengths implemented based on different frequency shift comparison tables provided in an embodiment of the present application;

[0066] Fig. 27 A schematic diagram of storing a frequency shift comparison table in an electronic device provided in an embodiment of the present application;

[0067] Fig.28 A schematic diagram of processing logic of different frequency shift lengths implemented based on a basic frequency shift comparison table and an index table provided in an embodiment of the present application;

[0068] Fig.29 A schematic diagram of storing a basic frequency shift comparison table and an index table in an electronic device provided in an embodiment of the present application;

[0069] Fig.30 A schematic diagram of the composition of an electronic device provided in an embodiment of the present application;

[0070] Fig.31 A schematic diagram of the composition of a chip system provided in an embodiment of the present application. DETAILED DESCRIPTION

[0071] At present, most electronic devices with wireless communication functions can communicate based on wireless fidelity (Wi-Fi) networks, referred to as Wi-Fi communication. The frequency bands corresponding to Wi-Fi communication can include 2.4 GHz bands and 5 GHz bands. Take Wi-Fi communication, in which the frequency band corresponding to Wi-Fi communication is 2.4 GHz band, as an example. The 2.4 GHz band can include all or part of the frequency bands between 2400 MHz and 2500 MHz.

[0072] refer to Figure 1 , showing an example of a Wi-Fi communication scenario.

[0073] like Figure 1 As shown, device 21 can be used 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 called a creating device.

[0074] For example, in Figure 1 In the example of , the created device may include device 11, device 12, and device 13.

[0075] Among them, device 11 can create Wi-Fi network 1, so that device 11 can communicate with device 21 through Wi-Fi network 1. Device 12 can create Wi-Fi network 2, so that device 12 can communicate with device 21 through Wi-Fi network 2. Device 13 can create Wi-Fi network 3, so that device 13 can communicate with device 21 through Wi-Fi network 3.

[0076] It is understandable that, for any creating device (such as device 11, device 12 or device 13), when communicating with device 21 through the corresponding Wi-Fi network, the corresponding channel (Channel) and protocol type can be used for data transmission.

[0077] As an example, refer to Figure 2 , which is an example of dividing Wi-Fi communication channels in the 2.4 GHz frequency band.

[0078] Combination Figure 1 For example, in the process of device 11, device 12 and / or device 13 communicating with device 12 through the corresponding Wi-Fi network, the following method may be used: Figure 2 Any channel in the communication channel can be used to transmit data to device 12.

[0079] like Figure 2As shown in the figure, the 2.4GHz Wi-Fi frequency band can be divided into 14 channels. The coverage frequencies are arranged from low to high as 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 the channels 1 to 13, and 14, the bandwidth of each channel is 22 MHz.

[0081] The interval between the starting frequencies of two adjacent channels from channel 1 to channel 13 is 5MHz. For example, the frequency of channel 1 covers 2401MHz to 2423MHz. The frequency of channel 2 covers 2406MHz to 2428MHz. And so on.

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

[0083] In addition, when communicating over a Wi-Fi network, different communication connections may use different protocol types.

[0084] refer to Figure 3 , showing examples of the types of protocols that may be used in a 2.4 GHz band Wi-Fi network.

[0085] like Figure 3 As shown, in the 2.4 GHz band Wi-Fi communication process, the available protocol types may include 802.11b, 802.11g, 802.11n, etc.

[0086] Combined with the above Figures 1 to 3 Description, Figure 4 A specific example of using different channels and protocol types in different Wi-Fi communication processes is provided.

[0087] like Figure 4As shown, in this example, device 11 can communicate with other devices (such as device 21) using the protocol type of 802.11g on channel 3. Device 12 can communicate with other devices (such as device 21) using the protocol type of 802.11n on channel 6. Device 13 can communicate with other devices (such as device 21) using the protocol type of 802.11b on channel 9.

[0088] During the Wi-Fi communication process, the device 21 can achieve Wi-Fi communication with the device 11, the device 12 and / or the device 13 through the cooperation of various components therein. Take the scenario where the device 21 receives data as an example.

[0089] Figure 5 An example of the composition of a device 21 is provided. Figure 5 The composition shown can support device 21 to receive data via a Wi-Fi network.

[0090] like Figure 5 As shown, the device 21 may be configured with an antenna 51 , an RF module 52 , an AD conversion unit 53 , and a baseband module 54 .

[0091] The working frequency band of antenna 51 covers the 2.4 GHz frequency band. Antenna 51 can be used for Figure 2 For example, in some implementations, antenna 51 can be used to receive signals in the frequency bands corresponding to the channels shown. Figure 2 Data of one channel among channels 1 to 13 is shown.

[0092] The RF module 52 is used to perform radio frequency domain (or analog domain) processing. The radio frequency domain processing may include signal amplification, analog filtering, etc. In the present application, the analog signal processed in the radio frequency domain may be referred to as a radio frequency modulated signal.

[0093] The AD conversion unit 53 is used to perform digital sampling on the analog signal, thereby converting the RF modulated signal into a corresponding digital modulated signal.

[0094] The baseband module 54 is used to perform digital processing on the digital modulation signal.

[0095] Exemplarily, digital processing may include digital analysis of digital modulation signals. For example, the digital analysis may include analyzing the leading and / or frame header information of the digital modulation signal, thereby determining the protocol type used by the received data. According to the determined protocol type, the device 21 can analyze the data received on the channel to obtain the valid data carried therein. In the following examples, the digital modulation signal is referred to as a digital signal.

[0096] In some scenarios, the device 21 may filter data in the current environment according to a pre-configured target protocol type.

[0097] It is understandable that if Figure 4 As shown, there may be multiple different Wi-Fi networks in the environment near the device 21. The creation device that creates different Wi-Fi networks may attempt to communicate with the device 21 through different protocol types and / or channels.

[0098] Correspondingly, when the device 21 needs to implement a certain function (such as a target function) through a Wi-Fi network, the target protocol type corresponding to the pre-configured function can be used to screen and determine a target channel for data transmission using the target protocol type from multiple Wi-Fi networks distributed in the current environment. The target function implemented using the Wi-Fi network may include indoor positioning, indoor navigation, etc.

[0099] In this way, the device 21 can determine the data transmission channel (i.e., the target channel) and the protocol type (i.e., the target protocol type) used in the data transmission process required to achieve the target function. Thus, the 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 purpose of supporting the target function.

[0100] Take the target protocol type as 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, the device 21 can respectively Figure 2 The channels shown are analyzed for single channel scan.

[0102] Exemplary, reference Figure 6 , which is an example of a common single-channel scan.

[0103] Device 21 may start scanning and parsing from channel 1.

[0104] For example, the device 21 can control the antenna 51 to receive electromagnetic waves in the frequency band corresponding to channel 1 and convert the electromagnetic waves into analog signals. Figure 4 In the scenario shown, no device is transmitting data through channel 1, and the corresponding received signal does not include valid data. In this way, the signal strength of channel 1 is weak or no data can be received. Then, device 21 can determine that there is no data transmission on channel 1. Continue scanning and analyzing the next channel (such as channel 2).

[0105] The scanning process for channel 2 is similar, and then device 21 can continue to scan channel 3.

[0106] like Figure 6 As shown, the device 21 can control the antenna 51 to receive the electromagnetic wave of the frequency band corresponding to the channel 3, and convert the electromagnetic wave into an analog signal (such as the antenna signal a1). That is, by scanning the channel 3, the antenna signal a1 is obtained. Figure 4 In the illustrated scenario, there is a device 11 communicating with a device 21 via a channel 3, and the antenna signal a1 may include valid data. The device 21 may continue to perform subsequent processing.

[0107] The antenna 51 can transmit the antenna signal a1 to the RF module 52. The RF module 52 can perform RF domain processing on the antenna signal a1 to obtain an analog signal (such as RF modulated signal b1) after amplification, mixing (MIX), and filtering. The RF module 52 can send the RF modulated signal b1 to the AD conversion unit 53. The AD conversion unit 53 performs digital sampling on the RF modulated signal b1 to obtain the corresponding digital signal c1. The digital signal c1 can be transmitted to the baseband module 54 for analysis. For example, the baseband module 54 can parse the preamble and / or frame header information of the digital signal c1 to determine that the protocol type used by the signal received by the channel 3 is 802.11g.

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

[0109] Device 21 may 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 RF domain processing on the antenna signal a2 to obtain the RF modulation signal b2. After analog-to-digital conversion, the digital signal c2 corresponding to the RF modulation signal b2 is obtained. Based on the analysis of the digital signal c2, it can be determined that the protocol type used by the signal received by the channel 6 is 802.11n.

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

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

[0113] In the implementation of the above solution, the device 21 scans and analyzes one channel each time to determine the protocol type used by the channel. This solution can be called a single channel scanning solution.

[0114] Based on the single-channel scanning scheme, although the target channel using the target protocol type can be finally determined, the single-channel scanning performed before scanning channel 9 (i.e., the target channel) is invalid. This results in significant and invalid power consumption and time overhead. When the channel number of the target channel is greater than 9 (such as 10, 13, etc.), the invalid power consumption and time overhead are even more significant.

[0115] In this regard, an embodiment of the present application provides a multi-channel scanning solution, so that an electronic device (such as device 21) can perform simultaneous scanning and matching processing of two or more channels according to actual conditions. This enables the electronic device to quickly determine the target channel for data transmission using the target protocol type in the current environment. In some embodiments of the present application, based on the solution provided by the present application, the electronic device can also support single-channel scanning according to the current scene requirements.

[0116] The scheme is described in detail below with reference to the accompanying drawings.

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

[0118] Exemplarily, the electronic device may have Wi-Fi communication capability in the 2.4 GHz frequency band.

[0119] As an example, refer to Figure 7 , is a schematic diagram of the composition of an electronic device provided in an embodiment of the present 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, an earphone interface 770D, a sensor module 780, a button 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, an air pressure sensor 780C, a magnetic sensor 780D, an acceleration sensor 780E, a distance sensor 780F, a proximity light sensor 780G, a fingerprint sensor 780H, a temperature sensor 780J, a touch sensor 780K, an ambient light sensor 780L, a bone conduction sensor 780M, and the like.

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

[0122] The processor 710 can generate an operation control signal according to the instruction operation code and the timing signal to complete the control of fetching and executing instructions.

[0123] The processor 710 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 710 may be a cache memory. The memory may store instructions or data that have been used or are frequently used by the processor 710. If the processor 710 needs to use the instruction or data, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 710, and thus improves the efficiency of the system.

[0124] In some embodiments, the processor 710 may include one or more interfaces. The interface may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface, etc. The processor 710 may be connected to a touch sensor, an audio module, a wireless communication module, a display screen, a camera module, and the like through at least one of the above interfaces.

[0125] It is understandable that the interface connection relationship between the modules illustrated in the embodiments of the present application is only a schematic illustration and does not constitute a structural limitation on the electronic device. In other embodiments of the present application, the electronic device may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.

[0126] It should be noted that the structure illustrated in the embodiments of the present application does not constitute a specific limitation on the electronic device. In other embodiments of the present application, the electronic device may include more or fewer components than shown in the figure, or combine certain components, or split certain components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.

[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 a single or multiple communication frequency bands. Different antennas can also be reused to improve the utilization of the antennas. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In some other embodiments, the antenna can be used in combination with a tuning switch.

[0129] The mobile communication module 750 can provide solutions for wireless communications including 2G / 3G / 4G / 5G, etc., applied to electronic devices. The mobile communication module 750 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The mobile communication module 750 can receive electromagnetic waves from the antenna 1, and filter, amplify, and process the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 750 can also amplify the signal modulated by the modulation and demodulation processor, and convert it into electromagnetic waves for radiation through the antenna 1. In some embodiments, at least some of the functional modules of the mobile communication module 750 can be set in the processor 710. In some embodiments, at least some of the functional modules of the mobile communication module 750 can be set in the same device as at least some of the modules of the processor 710.

[0130] The modem processor may include a modulator and a demodulator. Among them, the modulator is used to modulate the low-frequency baseband signal to be sent into a medium-high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After the low-frequency baseband signal is processed by the baseband processor, it is passed to the application processor. The application processor outputs a sound signal through an audio device (not limited to a speaker 770A, a receiver 770B, etc.), or displays an image or video through a display screen 794. In some embodiments, the modem processor may be an independent device. In other embodiments, the modem processor may be independent of the processor 710, and may be set in the same device as the mobile communication module 750 or other functional modules. For example, the modem processor may be integrated in the baseband processor 710b.

[0131] The wireless communication module 760 can provide wireless communication solutions including wireless local area networks (WLAN) (such as Wi-Fi networks), Bluetooth (BT), Bluetooth low energy (BLE), ultra wide band (UWB), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), etc., which are applied to electronic devices. 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, modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 710. The wireless communication module 760 can also receive the signal to be sent from the processor 710, modulate the frequency, amplify it, and convert it into electromagnetic waves for radiation through antenna 2.

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

[0133] Based on Figure 7 The composition of the electronic device shown in FIG. 1 can enable the electronic device to implement the single-channel scanning in the above example. Figure 7 The electronic device shown can also be used to support multi-channel scanning and analysis at the same time. The specific implementation will be described in detail later.

[0134] It should be pointed out that if Figure 7 The components of the electronic device shown are only examples and do not constitute a limitation on the electronic device. In other embodiments, the electronic device may also have other components.

[0135] Exemplary, reference Figure 8 , is a schematic diagram of the composition of another electronic device provided in an embodiment of the present application.

[0136] like Figure 8As shown, in this 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] The antenna module 801 may correspond to Figure 7 Antenna 1 and / or antenna 2 are shown.

[0138] As an implementation, the antenna module 801 may include one or more antennas for transmitting and receiving wireless signals. The 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 a 2.4 GHz frequency band.

[0139] The RF module 802 may be disposed between the antenna module 801 and the baseband module 840 to perform radio frequency domain processing on antenna signals. In some implementations, the RF module 802 may be a collection of devices and cables for performing analog signal processing between the antenna module 801 and the baseband module 840.

[0140] Exemplarily, the RF module 802 may include an RF transceiver, a low noise amplifier (Low Noise Amplifier, LNA), an RF mixer (MIX), a low pass filter (Low Pass Filter, LPF), etc.

[0141] In some embodiments, the LNA may have gain adjustment capability.

[0142] Exemplarily, the RF module 802 can adjust the gain used in the amplification process in different scenarios according to the instructions of the baseband module 840, so that the antenna signal can be amplified to the maximum extent without truncation of valid data. In some implementations, the LNA can have a linear amplification interval, within which the gain provided by the LNA has a linear relationship with the signal power before and after the amplification process. In this linear amplification interval, the relevant parameters of the antenna signal (such as the received signal strength (RSSI)) can be accurately determined according to the gain used by the current LNA. Correspondingly, outside the linear amplification interval, the signal power before and after the amplification process does not have a strict linear relationship. The electronic device can accurately determine the specific parameter value of the antenna signal received by the current antenna according to the correspondence between the gain used by the LNA of the current model pre-configured and the relevant parameters of the antenna signal (such as RSSI).

[0143] In other embodiments, the RF mixer in the RF module 802 can provide down-conversion processing for analog signals. The down-conversion processing for analog signals can also be referred to as analog down-conversion processing or down-conversion processing. For example, through the analog down-conversion processing, the RF module 802 can adjust the center frequency of the collected data obtained by the antenna module 801 from the original greater than 2 GHz to 0 MHz.

[0144] The AD conversion unit 803 is used to convert the radio frequency signal (analog signal) into a digital signal. In different implementations, the digital sampling frequency of the AD conversion unit 803 may be different. For example, the digital sampling frequency of the AD conversion unit 803 may be 80 MHz, 44 MHz, etc.

[0145] In different implementations of the present 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 may be separately configured between the RF module 802 and the baseband module 840 .

[0146] The baseband module 840 may include: Figure 7 The baseband processor 710b is shown. The baseband module 840 can be used to perform digital processing of signals.

[0147] In this application, if Figure 8 As shown, the baseband module 840 may be specifically configured with a signal division module 841, a matching module 842, a calculation module 843, an analysis module 844, an automatic gain control (AGC) unit 845, and the like.

[0148] The signal division module 841 may include a frequency shift unit group. Taking multi-channel scanning as an example, the frequency shift unit group may be used to implement frequency shift processing on the sampled data of the collected 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 can include DDC1 to DDCn. Among them, the frequency shift capabilities of different DDCs are relatively fixed, and the signal division module can control the DDC power-on operation of different channels under the control of the control module 805 in different scenarios, thereby realizing corresponding frequency shift processing on different channels.

[0150] The signal division module 841 may further include a filtering unit group. The filtering unit group is used to filter the sampled data after the frequency shift processing respectively, so as to obtain data segments corresponding to two or more channels included in the sampled data based on the sampled data after the frequency shift processing.

[0151] Exemplarily, the filter unit group is composed of a plurality of filter units. The number of filter units may correspond to the frequency shift unit group. For example, the number of filter units may be the same as the number of frequency shift units. In some implementations, the passbands of the respective filter units may be the same.

[0152] In the present application, each filter unit can form a signal division link with a frequency shift unit group. The signal division 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 a plurality of low pass filters (LPF) having the same pass frequency band. For example, the filter unit group may include LPF1 to LPFn. In different embodiments, the LPF may adopt a finite impulse response (FIR) filter and / or an infinite impulse response (IIR) filter.

[0154] The matching module 842 may be used to perform matching processing on the data segment corresponding to each channel, so as to determine the protocol type used by the data segment. The matching processing may be performed based on the Baker code of the target protocol type.

[0155] Exemplarily, in some embodiments, for each data segment corresponding to a channel, the matching module 842 may perform correlation peak matching on the data segment and the Baker code of the target protocol type. When the peak value of the correlation peak is greater than the corresponding quantity threshold, the corresponding matching 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 the data segment corresponding to any channel, the matching module 842 can use a sliding window to perform sampling and matching on the data segment. When the 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 on the data segment, and continue to match the data in the new window with the Baker code of the target protocol type. When the match is successful, the counter is incremented by 1. The cycle is repeated until the value of the counter reaches a preset quantity threshold, and the corresponding data segment is successfully matched with 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, when the sliding window slides to the end of the data segment of the channel, the value of the counter still does not reach the preset quantity threshold, then the data segment fails to match the target protocol type, that is, the transmission of the data segment does not use the target protocol type.

[0158] In a specific implementation, the function of the matching module 842 can be implemented by a listening unit group with carrier sensing capability. For example, the listening unit group can include two or more clear channel assessment (CCA) units. For example, the listening unit group can include CCA1 to CCAn.

[0159] In some embodiments of the present application, the number of CCAs in the matching module 842 may 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, a DDC, an LFP, and a CCA may jointly implement the function of screening a channel data segment from the sampled data and carrier sensing to determine whether it is the target channel. In the present application, the CCA, LPF, and DDC used to process a channel may constitute a signal processing link.

[0160] In addition, in the present application, each signal processing link may correspond to a CCA identifier. The CCA identifier may be implemented by a high level / low level, or 0 / 1. The CCA identifier may be used to indicate whether the data segment processed on the current signal processing link is data transmitted via the target protocol type.

[0161] Take the CCA mark as an example, which is implemented through high level / low level.

[0162] When the CCA flag is high, it indicates that the data segment / the channel of the data segment obtained by the current signal processing link screening uses the target protocol type. Correspondingly, when the CCA flag is low, it indicates that the data segment / the channel of the data segment obtained by the current signal processing link screening does not use the target protocol type.

[0163] Take the implementation of CCA identification through 0 / 1 as an example.

[0164] When the CCA flag is 1, it indicates that the data segment / the channel of the data segment obtained by the current signal processing link screening uses the target protocol type. Correspondingly, when the CCA flag is 0, it indicates that the data segment / the channel of the data segment obtained by the current signal processing link screening does not use the target protocol type.

[0165] In the following example, the CCA identification is implemented through 0 / 1.

[0166] In such Figure 8During the initialization of each component in the electronic device shown, the CCA flag of each signal processing link can be configured to 0.

[0167] After the matching module 842 determines that the match on a certain signal processing link is successful, the CCA flag of the signal processing link may be configured as 1, so that other modules can identify the target channel according to the CCA flag.

[0168] It should be noted that, in some cases, the matching module 842 may successfully match two or more data segments through carrier sensing of each CCAs.

[0169] Then, the matching module 842 may only configure the CCA flag of the earliest received data segment among these data segments to 1. The CCA flags of other data segments remain 0. That is, the channel of the earliest received data segment transmitted using the target protocol type is used as the target channel.

[0170] Alternatively, the matching module 842 may configure the CCA identifiers of all successfully matched data segments to 1. Correspondingly, when the electronic device needs to determine the target channel, the target channel may be selected according to the relevant parameters (such as RSSI) corresponding to each of the multiple channels whose CCA identifiers are configured to 1, according to the actual situation. For example, the channel with the largest RSSI is selected as the target channel.

[0171] The above Figure 8 The composition and working mechanism of the signal division module 841 and the matching module 842 are briefly described. In this way, in the multi-channel sampling process, the data segments of each channel are screened according to the sampled data, and it is determined whether the channel of each data segment is the target channel.

[0172] It should be pointed out that in the example provided in the embodiment of the present application, the signal division module 841 includes multiple DDCs and LPFs, and the matching module 843 includes multiple CCAs. In the specific implementation process, the signal division module 841 and / or the matching module 843 may not be set or may not be configured completely according to the above hardware composition. For example, the functions of DDC, LPF or CCA in the signal division module 841 and / or the matching module 843 can be a chip or circuit with logic implementation capabilities, which implements its frequency shift function, filtering function or carrier sensing function based on the corresponding code.

[0173] In such Figure 8 In the example of , the electronic device may also be configured with a control module 805. The control module 805 may be used to manage single-channel scanning or multi-channel scanning according to actual conditions.

[0174] For example, in Figure 8In the example of FIG. 8 , the control module 805 is used to control the upper layer implementation of various functions of the electronic device. For example, the control module 805 can be used to control the enabling of various components in the baseband module 840. In some implementations, the functions of the control module 805 may include: Figure 7 An application processor 710a is shown.

[0175] During multi-channel scanning, the control module 805 can be used to control the DDC, LPF and CCA in the baseband module 840 (i.e., the signal processing link in the working state) through control signals, thereby achieving a corresponding number of single-channel or multi-channel scans.

[0176] As an example, the control module 805 may be coupled to each of DDC1 to DDCn, each of LPF1 to LPFn, and each of CCA1 to CCAn through control signal lines.

[0177] In actual operation, the control module 805 may determine that m channels need to be used for synchronous scanning according to the current environment and a preset strategy, where m is a positive integer less than or equal to n.

[0178] When m is equal to 1, the electronic device may perform single-channel scanning. Correspondingly, when m is greater than 1, multi-channel scanning may be performed.

[0179] Take m greater than 1 and the electronic device performing multi-channel scanning as an example.

[0180] The control module 805 can enable m DDCs from DDC1 to DDCn to power on and work through the control signal line, while other DDCs are not powered on. This is to facilitate m frequency shift processing of the sampled data through the m DDCs. This may include a frequency shift processing of 0 MHz (i.e., no shift in the frequency domain). It is understandable that, since the frequency shift lengths of the frequency shift processing provided by different DDCs are different, the data segments covered by the center frequency points of the sampled data after the m frequency shift processing are extended to both sides by 11 MHz can correspond to data transmitted in different channels.

[0181] The control module 805 can enable m LPFs from LPF1 to LPFn to power on and other LPFs to not power on through the control signal line, so as to filter the m frequency-shifted sampled data through the m LPFs respectively, and then obtain the data segments corresponding to the m channels.

[0182] The control module 805 can enable m CCAs from CCA1 to CCAn to be powered on and other CCAs to be powered off through the control signal line, so as to match the acquired data segments of m channels through the m CCAs respectively, thereby determining whether the target channel is included in the m channels corresponding to the m data segments.

[0183] It can be understood that under the control of the control module 805, m DDCs, m LPFs and m CCAs can be the DDCs, LPFs and CCAs of m signal processing links. This enables the enabling control of m signal processing links, so that the baseband module 840 can smoothly implement the analysis and processing of the sampled data of m channels. Then, through a multi-channel scanning solution, the target channel using the target protocol type can be quickly determined through a small number of scanning and parsing. The CCA identifier of the target channel can be configured as 1.

[0184] like Figure 8 As shown, the electronic device may further include a parsing module 844, a calculating module 843 and an ACG unit 845.

[0185] The parsing module 844 may determine the target channel from the channel of the data segment corresponding to the signal processing link with the CCA identifier of 1. The parsing module 844 may also parse the data segment of the target channel and other data received on the target channel according to the target protocol type, thereby obtaining valid data sent through the target channel.

[0186] The calculation module 843 may also determine the target channel by the channel of the data segment corresponding to the signal processing link with the CCA identifier 1. The calculation module 843 may also be used to calculate and obtain the digital average power of the target channel according to the data segment corresponding to the target channel. The digital average power value may be used to adjust the gain (such as AGC gain, or AGC Gain) during the amplification process performed by the RF module 802.

[0187] As an example, the calculation module 843 may obtain the digital average power of a certain channel according to the following formula (1).

[0188] Formula (1):

[0189] Among them, Digital_power average That is, the digital average power. N is the number of IQ data pairs required to calculate the digital average power. This N can be determined according to the data segment corresponding to the target channel. The AD conversion unit 803 needs to be added to the calculation process together with its symbol.

[0190] In the present application, the calculation module 843 can also be used to calculate and obtain the corresponding RSSI and other parameters when the antenna module 801 receives the antenna signal of the target channel according to the data segment of the target channel and the AGC gain of the RF module 802 after the digital average power adjustment. The RSSI obtained by the calculation can be used to judge the current communication quality, display it separately, select the target data segment from multiple successfully matched data segments, and then determine the target channel, etc.

[0191] The technical solutions provided in the embodiments of the present application can be applied to Figure 7 or Figure 8 In the electronic device shown.

[0192] For example, it can be further clarified Figure 8 The working mechanism of the electronic device composed of the above-mentioned components when performing multi-channel scanning is as follows. Figure 8 Taking the composition of the electronic device shown as an example, the specific implementation of multi-channel scanning by the electronic device is illustrated.

[0193] refer to Fig. 9 , taking n equal to 5 as an example. The channel division module of the electronic device may include DDC1 to DDC5, and LPF1 to LPF5 correspond to DDC1 to DDC5 respectively. Each LFP can be coupled to a CCA. For example, LPF1 is coupled to CCA1, LPF2 is coupled to CCA2, LPF3 is coupled to CCA3, LPF4 is coupled to CCA4, and LPF5 is coupled to CCA5. Thus, the matching process of each data segment is realized through CCA to determine whether there is a target channel.

[0194] Among them, DDC1 and LPF1 can form a signal division link for implementing the screening of a channel data segment. DDC1, LPF1 and CCA1 can form a signal processing link for implementing the screening and matching of a channel data from sampled data.

[0195] Similarly, DDC2, LPF2 and CCA2 can constitute a signal processing link, DDC3, LPF3 and CCA3 can constitute a signal processing link, DDC4, LPF4 and CCA4 can constitute a signal processing link, and DDC5, LPF5 and CCA5 can constitute a signal processing link.

[0196] The Fig. 9 The electronic device composition shown can support multi-channel scanning of up to 5 channels.

[0197] The following example takes the case where the electronic device determines to perform multi-channel scanning of 5 channels. Fig. 9 All DDCs, LPFs and CCAs shown can be powered on and operated under the control of the control module.

[0198] In some implementations, such as Fig.10 As shown, each scan can collect 40MHz of sampling data. Fig. 9 In the example, the sampled data acquired in one sampling may correspond to the multi-channel antenna signal 901.

[0199] Exemplarily, the electronic device may obtain the sampling data SD_A1 including most of the signals from channel 1 to channel 5 through the first scan. The electronic device may obtain the sampling data SD_A2 including most of the signals from channel 5 to channel 9 through the second scan. The electronic device may obtain the sampling data SD_A3 including most of the signals from channel 9 to channel 13 through the third scan.

[0200] Therefore, the scanning and analysis of the 2.4GHz frequency band can be covered by three scans, which can save the time and power consumption of up to 10 scans and analysis compared to single-channel scanning.

[0201] It is to be understood that, in the present application, the use of 40 MHz as the bandwidth for each scan during the simultaneous scanning of 5 channels is only an example, and in other implementations, the scanning bandwidth for each scan may also be different from 40 MHz.

[0202] For each scanned acquired sampling data (such as sampling data SD_A1, sampling data SD_A2, and sampling data SD_A3), the electronic device can be based on Fig. 9 The logic shown performs processing to determine whether there is a target channel among the five channels included in the sampled data.

[0203] like Fig. 9 As shown, the antenna module 801 can send the multi-channel antenna signal 901 to the RF module 802. The RF module 802 can perform RF domain processing such as analog down-conversion processing and amplification processing on the multi-channel antenna signal 901, thereby obtaining the multi-channel RF modulated signal 902.

[0204] refer to Fig.11 , an example is given to illustrate the analog down-conversion processing.

[0205] Take the current sampling data as Fig.10 The sample data SD_A1 shown is taken as an example.

[0206] Before the analog down-conversion process, the center frequency of the sampled data SD_A1 may be 2422 MHz, and the two end frequencies of the sampled data SD_A1 are 2402 MHz and 2442 MHz respectively. After the analog down-conversion process, the center frequency of the sampled data SD_A1 may be 0 MHz.

[0207] In other implementations, the Fig.11 The down-conversion process shown may also be performed in the AD conversion unit 803 .

[0208] After the down-conversion process, each DDC and LPF can perform corresponding processing to obtain the data segment of 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 modulated signal 902 based on operations such as amplification processing.

[0210] The multi-channel RF modulated signal 902 may be transmitted to the AD conversion unit 803 for analog-to-digital conversion to obtain a corresponding multi-channel digital signal 903. It is understandable that due to the aforementioned analog down-conversion process, the center frequency of the multi-channel digital signal 903 is 0 MHz.

[0211] The multi-channel digital signal 903 may be transmitted to the signal division module 841 for frequency shift processing.

[0212] In this example, DDC1 to DDC5 may be configured with different frequency shift capabilities, respectively.

[0213] For example, DDC1 can be used to perform a frequency shift of 0 MHz. DDC2 can be used to perform a frequency shift of -2.5 MHz and / or -5 MHz. DDC3 can be used to perform a frequency shift of 2.5 MHz and / or 5 MHz. DDC4 can be used to perform a frequency shift of -7.5 MHz and / or -10 MHz. DDC5 can be used to perform a frequency shift of 7.5 MHz and / or 10 MHz.

[0214] Furthermore, the pass frequency band of each filter in LPF1 to LPF5 may be the same.

[0215] For example, the passband of each filter is a frequency band with a center frequency of 0 MHz and a bandwidth of 22 MHz.

[0216] In this way, through the coordination of DDC1 to DDC5 and LPF1 to LPF5, the data segments corresponding to each channel can be obtained according to the sampled data.

[0217] Exemplary, reference Fig.12 .

[0218] like Fig.12As shown in 1201, DDC1 can perform a frequency shift of 0 MHz on the sampled data SD_A1 processed in the RF domain. That is, the data distribution of the sampled data SD_A1 processed by DDC1 is the same as the distribution of the data processed in the RF domain in the frequency domain. In this way, the data segment within the range of + / -11 MHz of the center frequency (and 0 MHz) of the sampled data SD_A1 corresponds to channel 3.

[0219] Therefore, after the sampled data SD_A1 is filtered by LPF1, the retained data of 22 MHz bandwidth corresponds to the data segment corresponding to channel 3 (such as data segment 3).

[0220] Fig.12 1202 in the figure shows a logic example in the case of frequency shift processing other than 0 MHz.

[0221] In the example of 1202, the example of obtaining data segment 5 corresponding to channel 5 according to the sampled data SD_A1 processed in the radio frequency domain is used for explanation. The obtaining methods of other channels can be referred to and will not be described in detail.

[0222] As shown in 1202, the sampled data SD_A1 processed in the RF domain can be processed by -10MHz frequency shift through DDC4, so that the center frequency point of the data segment corresponding to channel 5 in the frequency domain is moved to 0MHz. In this way, after the sampled data SD_A1 is filtered by LPF4, the retained 22MHz bandwidth data also corresponds to the data segment corresponding to channel 5 (such as data segment 5).

[0223] Similarly, through the 0MHz frequency shift of DDC1 and the 22MHz filtering of LPF1, the data segment 3 corresponding to channel 3 can be obtained. Through the -5MHz frequency shift of DDC2 and the 22MHz filtering of LPF2, the data segment 4 corresponding to channel 4 can be obtained. Through the 5MHz frequency shift of DDC3 and the 22MHz filtering of LPF3, the data segment 2 corresponding to channel 2 can be obtained. Through the -10MHz frequency shift of DDC4 and the 22MHz filtering of LPF4, the data segment 5 corresponding to channel 5 can be obtained. Through the 10MHz frequency shift of DDC5 and the 22MHz filtering of LPF5, the data segment 1 corresponding to channel 1 can be obtained.

[0224] Continue to combine Fig. 9 , the data segment 3, data segment 4, data segment 2, data segment 5 and data segment 1 can be transmitted to the corresponding CCA for carrier sensing respectively, so as to determine whether there is a data segment using the target protocol type in these data segments through matching processing.

[0225] Combination Fig.13 1301 and 1302 briefly describe the mechanism of matching processing of CCA.

[0226] In the present application, the electronic device may perform a matching process on each of the acquired data segments. The matching process may be performed based on a preset Baker code corresponding to the target protocol type (such as a reference Baker code). Based on the matching process, the electronic device may determine the data segment using the target protocol from the currently acquired data segments (such as data segments 1 to 5).

[0227] Exemplarily, when the target protocol type is 802.11b protocol, the reference Baker code may be a Baker code corresponding to the preamble and frame header indicated by the 802.11b protocol. As an example, the reference Baker code may be an 11-bit Baker code corresponding to the 802.11b protocol.

[0228] In some embodiments, the matching process may be performed based on correlation peak detection.

[0229] Taking the case of performing correlation peak detection on data segment 1 corresponding to channel 1 to determine whether data segment 1 is a target data segment using a target protocol type, 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. The valid correlation peak can be a correlation peak whose peak value is greater than a preset peak threshold.

[0230] As an example, take data segment 1 including 10 bits of digital information as an example. The listening unit can determine the number of valid correlation peaks corresponding to data segment 1 according to a preset detection window length and a sliding step size. The length of the detection window can be determined according to parameters such as the total length of data segment 1, the length of the reference Baker code, and the sampling multiple when data is collected.

[0231] Take the preset detection window length of 4 bits and the sliding step length of 1 bit as an example.

[0232] like Fig.13 As shown in 1301, the listening unit (such as CCA5) can generate a correlation peak 1 corresponding to the data in the current detection window (such as detection window 1) according to the first 4 bits of data segment 1 and the reference Baker code. In the case where the peak value of the correlation peak 1 is greater than the peak value threshold, the correlation peak 1 is confirmed to be a valid correlation peak. Then, correspondingly, the counter for recording the number of valid correlation peaks set in the listening unit is increased by 1.

[0233] Then, the detection window can slide backward according to the sliding step size. Fig.13As shown in 1302, the data in the detection window 2 may include the 2nd to 5th digital information in the data segment 1. Correspondingly, the listening unit can generate the correlation peak 2 corresponding to the data in the current detection window (such as detection window 2) according to the data in the detection window 2 and the reference Baker code. In the case where the peak value of the correlation peak 2 is less than the peak value threshold, it is confirmed that the correlation peak 2 is not a valid correlation peak. Then, correspondingly, the counter for recording the number of valid correlation peaks set in the listening unit is not recorded.

[0234] This process continues in this way until the detection window slides to the last bit 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 the preset quantity threshold. When the value (i.e., the number of valid correlation peaks corresponding to the data segment 1) is greater than the preset quantity threshold, the data segment 1 is determined to be the target data segment. On the contrary, when the number of valid correlation peaks corresponding to the data segment 1 is less than the preset quantity threshold, the data segment 1 is determined not to be the target data segment.

[0237] In other embodiments, when the number of effective correlation peaks in data segment 1 is greater than a number threshold, the electronic device may determine that these correlation peaks appear continuously, and further determine that data segment 1 is a target data segment, thereby improving the accuracy of determining the target data segment.

[0238] Similarly, the matching module 842 can perform the following operations on other data segments (such as data segments 2 to 5). Fig.13 The matching process shown is performed to determine the target data segments included in data segments 2 to 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 flag corresponding to the target channel to be high level (or 1). Similarly, after completing the scanning and parsing of the sampled data SD_A1, the electronic device can also Fig.10 The sampled data SD_A2 and the sampled data SD_A3 shown are scanned and analyzed to determine the target channel among channels 1 to 13 in the current environment.

[0240] In some implementations, channel 1 to channel 13 may include one target channel (such as channel 1). After the scanning and analysis is completed, the CCA identifier of the signal processing link corresponding to channel 1 can be configured to a high level (or 1), and the CCA identifiers of the links of other channels remain at a low level (or 0).

[0241] In other implementations, the channel 1 to the channel 13 may include multiple channels using the target protocol type. The matching module 842 may use the channel using the target protocol type that receives the data earliest as the target channel according to the order in which the data from the multiple channels using the target protocol type are received, and configure the CCA flag corresponding to the channel to a high level (or 1).

[0242] In this way, through Figure 10 to Figure 13 The description is as follows Fig. 9 In the logical implementation shown, it is possible to identify the target channel using the target protocol type through the CCA identification mark when scanning multiple channels (such as 5 channels) at one time.

[0243] After that, the parsing module 844 can continue to receive data for subsequent communication according to the channel with the CCA flag configured as a high level (or 1), and then parse the data received on the target channel according to the target protocol type to obtain the valid data carried therein.

[0244] It should be noted that the above Figure 8 to Figure 9 And follow-up Figure 10 to Figure 13 The electronic device composition for implementing the multi-channel / single-channel scanning solution of the present application is only an example. In other embodiments, each component in the electronic device may also be partially or completely integrated into other components. The embodiments of the present application do not limit the specific implementation form of the functions of each component in the electronic device.

[0245] For ease of explanation, Fig.14 An example of a simplified logical connection between multiple modules of an electronic device is provided. Fig.14 The logical connections shown can be mapped to Figures 8 to 13 Description of each component in .

[0246] like Fig.14 As shown, the antenna module 801 in the electronic device can be coupled to the RF module 802. In order to facilitate the antenna module 801 to convert the received electromagnetic waves into antenna signals (such as Fig. 9 The multi-channel antenna signal 901 shown in FIG. 1 is transmitted to the RF module 802. The RF module 802 performs radio frequency domain processing including amplification processing, analog down-conversion processing, etc. on the multi-channel antenna signal 901 to obtain a 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 transmits 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 division module 841 so that the signal division module 841 performs frequency shift filtering on the multi-channel digital signal 903 to obtain data segments of each channel included in the sampling data obtained by the current multi-channel scanning.

[0249] The signal division module 841 is coupled to the matching module 842. The matching module 842 performs carrier sensing on the data segments of each channel respectively, thereby determining whether one or more channels currently scanned are in the target channel. If so, the CCA flag of the corresponding link is configured as 1. On the contrary, if not, the CCA flags of all links remain 0. The electronic device continues to perform the next multi-channel / single-channel scan.

[0250] The matching module 842 is coupled to the calculation module 842 and the analysis module 844. The calculation module 842 and the analysis module 844 determine the target channel and the corresponding data segment according to the CCA identifier, so that the calculation module 842 and the analysis module 844 determine the target channel according to the CCA identifier and 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 can flexibly adjust the AGC gain of the RF module 802 according to the digital average power.

[0252] The calculation module 843 also calculates and determines relevant parameters, such as RSSI, when receiving data transmitted by the target channel according to the AGC gain adjusted by the RF module 802 .

[0253] It should be pointed out that, in other embodiments, in order to achieve the above-mentioned compatible multi-channel and single-channel scanning, the electronic device may also have other components.

[0254] Exemplary, reference Fig.15 , which is the composition and connection logic of another electronic device provided in an embodiment of the present application.

[0255] Combination Fig.14 , in such Fig.15 In the example of , a DC removal module 805 may also be included. In different implementations, the DC removal module 805 may be used to remove the DC of analog signals, or to remove the DC of digital signals.

[0256] It is understandable that the DC signal will increase the power of the entire signal, which may cause the power of the part of the signal carrying valid data to be too high, resulting in inaccurate processing. In addition, the larger the DC signal, the greater the interference that may be generated. Therefore, in this example, the DC signal is filtered out by configuring the DC removal module 805.

[0257] In such Fig.15 In the example of , the DC removal module 805 can be configured between the AD conversion unit 803 and the signal division module 841 to perform DC filtering of the digital signal. In other embodiments, the DC removal module 805 can also be configured between the signal division module 841 and the matching module 842. In other embodiments, the DC removal module 805 can also be configured between the matching module 842 and the analysis module 844. In other embodiments, the DC removal module 805 can also be configured before the AD conversion unit 803 to perform DC filtering of the analog signal. For example, the DC removal module 805 is configured in the RF module 802. For another example, the DC removal module 805 is configured between the RF module 802 and the AD conversion unit 803.

[0258] In other embodiments, the DC removal module 805 may also be configured at two or more logical positions in the above embodiments to achieve multiple DC filtering.

[0259] refer to Fig.14 , in such Fig.15 In the example, a digital resampling module 806 may also be included.

[0260] It is understandable that in order to ensure the accuracy of the digital processing process, the digital sampling frequency of each module that processes the digital signal (such as the matching module 842, the analysis module 844, the calculation module 843, etc.) needs to match the AD conversion unit 803. For example, when the sampling frequency of the AD conversion unit 803 is 80MHz, the sampling frequency of each module that processes the digital signal can also be 80MHz. In some cases, the sampling frequency of the AD conversion unit 803 is different from the sampling frequency of each module that processes the digital signal. In this way, by configuring Fig.15 The digital resampling module 806 shown achieves the unification of sampling frequency, thereby ensuring the accuracy of digital processing.

[0261] For example, the sampling frequency of the AD conversion unit 803 is 80 MHz, and the sampling frequency of each module for processing digital signals is 44 MHz. Then, a digital resampling module 806 can be configured between the signal division module 841 and the matching module 842. The digital resampling module 806 can provide digital resampling processing from 80 MHz to 44 MHz.

[0262] The multi-channel / single-channel scanning solutions provided in the embodiments of the present application can be applied to Figure 7 , Figure 8 , Fig. 9 , Fig.14 as well as Fig.15 provided in electronic equipment.

[0263] As mentioned above Figure 8 as well as Fig. 9 As described above, the composition of the electronic device provided in the embodiment of the present application can support simultaneous scanning of different numbers of channels in different scenarios.

[0264] Exemplarily, take the scanning number of different numbers as m, where m is an integer greater than or equal to 1. When m is equal to 1, the composition of the electronic device provided in the embodiment of the present application can be used to support single-channel scanning. When m is greater than 1, such as when m is equal to 2, the composition of the electronic device provided in the embodiment of the present application can be used to support multi-channel scanning of 2 channels at the same time. When m is equal to 3, the composition of the electronic device provided in the embodiment of the present application can be used to support multi-channel scanning of 3 channels at the same time. When m is equal to 4, the composition of the electronic device provided in the embodiment of the present application can be used to support multi-channel scanning of 4 channels at the same time. When m is equal to 5, the composition of the electronic device provided in the embodiment of the present application can be used to support multi-channel scanning of 5 channels at the same time. 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 Fig. 9 In the example of , the signal processing link may include: signal processing link 1 composed of DDC1, LPF1 and CCA1, signal processing link 2 composed of DDC2, LPF2 and CCA2, signal processing link 3 composed of DDC3, LPF3 and CCA3, signal processing link 4 composed of DDC4, LPF4 and CCA4, and signal processing link 5 composed of DDC5, LPF5 and CCA5. Fig. 9 The composition of the channel division module 841 and the matching module 842 shown can support simultaneous scanning of a maximum of 5 channels.

[0267] Combination Figure 8 As described in the description, the control module 805 in the electronic device can be used to control the power-on / power-off of the signal processing link, thereby realizing different numbers of channel scans in different scenarios.

[0268] Exemplary, reference Fig.16 The control module 805 can send a control signal stream 1601 to the signal division module 841 to control the n DDCs in the signal division module 841 and m DDCs and m LPFs among the n LPFs to power on, while other DDCs and LPFs are not powered on. In this way, the powered-on m DDCs and m LPFs can realize the division of data segments of m channels when scanning m channels at the same time.

[0269] As a specific implementation, a plurality of control ports may be configured on the control module 805. The plurality of control ports may include 2n ports for controlling each unit in the signal division module 841, such as called division control ports. The 2n division control ports may include n division control ports respectively coupled to the control ends of n DDCs, for controlling the enabling of n DDCs. In addition, the 2n division control ports may also include n division control ports respectively coupled to the control ends of n LPFs, for controlling the enabling of n LPFs.

[0270] When it is necessary to control the power-on operation of m DDCs and m LPFs, the corresponding divided control ports can send control signals to the m DDCs and m LPFs respectively, for instructing the m DDCs and m LPFs to power on, so as to implement frequency shift processing and filtering processing on the data of the m channels, and then obtain the data segments corresponding to the m channels.

[0271] The control signals sent to the m LPFs and the m DDCs may constitute a 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 control m CCAs out of the n CCAs in the matching module 842 to power on, and other CCAs not to power on. 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 by processing the m signal division links (i.e., the m signal division links composed of m DDCs and m LPFs), respectively, so as to determine whether the target channel using the target protocol type is included in the data segments of the m channels.

[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. The n matching control ports may 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 the m CCAs respectively to instruct the m CCAs to power on, realize carrier sensing of data including m channels, and then determine whether the data segments of the m channels include 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 the m CCAs may constitute a control signal stream 1602 .

[0276] Therefore, through the control signal flow 1601 and the control signal flow 1602, the corresponding DDC, LPF and CCA in the signal division module 841 and the matching module 842 can be powered on and enabled to realize different multi-channel scanning or single-channel scanning of the corresponding link according to the control signal flow.

[0277] As an example, combining Fig. 9 In the scenarios, taking n as 5 as an example, examples are given to illustrate the enabling of the signal processing link in various scenarios.

[0278] refer to Fig.16 In this scenario, five signal processing links may be included, such as signal processing link 1 to signal processing link 5.

[0279] When performing 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 shift processing and filtering processing, so as to obtain the data segments corresponding to each channel. The data segments of each channel can be transmitted to each CCA in the matching module 842 for carrier sensing, and the CCA identifier and data segment corresponding to each channel are output. Among them, the CCA identifier of the target channel determined by carrier sensing can be configured as 1. Correspondingly, the CCA identifiers of other channels that do not use the target protocol type remain unchanged and are configured as 0.

[0280] In order to achieve Fig.17 The logic shown, such as Fig.18 As shown, the control module 805 can control the enablement of DDC1, LPF1, DDC2, LPF2, DDC3, LPF3, DDC4, LPF4, and DDC5, LPF5 through the control signal flow 1601 to realize the power-on work of the corresponding signal division link. The control module 806 can also control the enablement of CCA1, CCA2, CCA3, CCA4 and CCA5 through the control signal flow 1602 to realize the power-on work of CCA on the corresponding link. For specific implementation, please refer to the above Fig.16 See the relevant instructions in .

[0281] Thus, based on Figure 16 to Figure 18 As described above, when different numbers of multi-channel scans are required, the control module 805 can control the corresponding number of signal processing links to power on and implement division, matching, and other processing of the received signals including multiple channel data. 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 the present application, in the signal division module 841, the frequency shift processing capabilities that each DDC can provide may be different. In the specific implementation process, when m is different, the frequency shift processing required to be performed is also different. Based on this, the embodiment of the present application also provides a link control scheme in a multi-channel scanning process, so that the frequency shift processing of the multi-channel scanning process with different numbers of channels can be accurately and effectively implemented in different scenarios through the minimum circuit area.

[0283] The implementation of the scheme and the reasons are explained below with examples in conjunction with the accompanying drawings.

[0284] For example, m is equal to 5. Then, the electronic device may be configured as follows: Fig.18 Based on the five signal processing links, data processing in a multi-channel / single-channel scanning process with different numbers of channels, such as m=1, m=2, m=3, m=4 or m=5, can be achieved.

[0285] refer to Fig.19 , provides examples of sampled data during multi-channel scanning with different numbers of channels.

[0286] Take 5-channel scanning as an example. Each scan can use 40MHz bandwidth to achieve synchronous acquisition of 5 channel data. For example, the first scan can scan the frequency band from 2402MHz to 2442MHz, thereby obtaining sampled data SD_A1. The sampled data SD_A1 may include data from channel 1 to channel 5. It can be understood that since the 1MHz at the head of channel 1 and the 1MHz at the tail of channel 5 generally do not include valid data, in this example, the sampled data SD_A1 can cover 2402MHz to 2442MHz for subsequent processing to obtain the data segment from channel 1 to channel 5. The subsequent steps are similar and will not be repeated. The second scan can scan the frequency band from 2422MHz to 2462MHz, thereby obtaining sampled data SD_A2. The sampled data SD_A2 may include data from channel 5 to channel 9. The third scan can scan the frequency band from 2442MHz to 2482MHz, thereby obtaining sampled data SD_A3. The sampled data SD_A3 may include data from channel 9 to channel 13. In this way, since channel 14 is generally not used, a complete scan of the 2.4 GHz frequency band can be completed by scanning three times. Fig.19 The 5-channel sampling shown is only an example. In other embodiments, the bandwidth of the 5-channel sampling can also be configured to 42MHz to completely cover 5 consecutive channels. In other embodiments, the 5-channel sampling can still use 40MHz, and the starting frequency can correspond to the initial frequency of the first channel 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; the third scan can cover 2441MHz to 2481MHz.

[0287] Take 4-channel scanning as an example. Each scan can use 35MHz bandwidth to achieve synchronous acquisition of 4 channel data. For example, the first scan can scan the frequency band from 2402MHz to 2437MHz, thereby obtaining sampled data SD_B1. The sampled data SD_B1 may include data from channel 1 to channel 4. The second scan can scan the frequency band from 2417MHz to 2452MHz, thereby obtaining sampled data SD_B2. The sampled data SD_B2 may include data from channel 4 to channel 7. The third scan can scan the frequency band from 2432MHz to 2447MHz, thereby obtaining sampled data SD_B3. The sampled data SD_B3 may include data from channel 7 to channel 10. The fourth scan can scan the frequency band from 2447MHz to 2482MHz, thereby obtaining sampled data SD_B4. The sampled data SD_B4 may include data from channel 10 to channel 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 above 5-channel scanning scheme, the following example shows how to perform a 4-channel scan. Fig.19The 4-channel sampling shown is only an example. In other embodiments, the bandwidth of the 4-channel sampling can also be configured to 37MHz to completely cover 4 consecutive channels. In other embodiments, the 4-channel sampling can still use 35MHz, and the starting frequency can correspond to the initial frequency of the first channel of the 4 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; the fourth scan can cover 2446MHz to 2481MHz.

[0288] Take 3-channel scanning as an example. Each scan can use 30MHz bandwidth to achieve synchronous acquisition of 3 channel data. For example, the first scan can scan the frequency band from 2402MHz to 2432MHz, thereby obtaining sampled data SD_C1. The sampled data SD_C1 may include data from channel 1 to channel 3. The second scan can scan the frequency band from 2412MHz to 2442MHz, thereby obtaining sampled data SD_C2. The sampled data SD_C2 may include data from channel 3 to channel 5. The third scan can scan the frequency band from 2422MHz to 2452MHz, thereby obtaining sampled data SD_C3. The sampled data SD_C3 may include data from channel 5 to channel 7. The fourth scan can scan the frequency band from 2432MHz to 2462MHz, thereby obtaining sampled data SD_C4. The sampled data SD_C4 may include data from channel 7 to channel 9. The fifth scan can scan the frequency band from 2442MHz to 2472MHz, thereby obtaining sampled data SD_C5. The sampled data SD_C5 may include data from channels 9 to 11. The sixth scan may scan the frequency band from 2452 MHz to 2482 MHz, thereby obtaining sampled data SD_C6. The sampled data SD_C6 may include data from channels 11 to 13. Similar to the description in the above 5-channel scanning scheme, the sampled data SD_C6 may include data from channels 11 to 13. Fig.19 The 3-channel sampling shown is only an example. In other embodiments, the bandwidth of the 3-channel sampling can also be configured to 32MHz to fully cover 3 consecutive channels. In other embodiments, the 3-channel sampling can still use 30MHz, and the starting frequency can correspond to the initial frequency of the first channel of the 3 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; the sixth scan can cover 2451MHz to 2481MHz.

[0289] Take 2-channel scanning as an example. Each scan can use 25MHz bandwidth to achieve synchronous acquisition of 2 channel data. For example, the first scan can scan the frequency band from 2402MHz to 2427MHz, thereby obtaining sampled data SD_C1. The sampled data SD_C1 may include data from channel 1 to channel 2. The second scan can scan the frequency band from 2407MHz to 2432MHz, thereby obtaining sampled data SD_C2. The sampled data SD_C2 may include data from channel 2 to channel 3. The third scan can scan the frequency band from 2412MHz to 2437MHz, thereby obtaining sampled data SD_C3. The sampled data SD_C3 may include data from channel 3 to channel 4. The fourth scan can scan the frequency band from 2417MHz to 2442MHz, thereby obtaining sampled data SD_C4. The sampled data SD_C4 may include data from channel 4 to channel 5. The fifth scan can scan the frequency band from 2422MHz to 2447MHz, thereby obtaining sampled data SD_C5. The sampled data SD_C5 may include data from channel 5 to channel 6. The 6th scan may scan the frequency band from 2427 MHz to 2452 MHz, thereby obtaining sampled data SD_C6. The sampled data SD_C6 may include data from channel 6 to channel 7. The 7th scan may scan the frequency band from 2432 MHz to 2457 MHz, thereby obtaining sampled data SD_C6. The sampled data SD_C6 may include data from channel 7 to channel 8. The 8th scan may scan the frequency band from 2437 MHz to 2462 MHz, thereby obtaining sampled data SD_C5. The sampled data SD_C5 may include data from channel 8 to channel 9. The 9th scan may scan the frequency band from 2442 MHz to 2467 MHz, thereby obtaining sampled data SD_C6. The sampled data SD_C6 may include data from channel 9 to channel 10. The 10th scan may scan the frequency band from 2447 MHz to 2472 MHz, thereby obtaining sampled data SD_C6. The sampled data SD_C6 may include data from channel 10 to channel 11. The 11th scan may scan the frequency band from 2452MHz to 2477MHz, thereby obtaining sampled data SD_C6. The sampled data SD_C6 may include data from channels 11 to 12. The 12th scan may scan the frequency band from 2457MHz to 2482MHz, thereby obtaining sampled data SD_C6. The sampled data SD_C6 may include data from channels 12 to 13. Similar to the description in the above 5-channel scanning scheme, the 12th scan may scan the frequency band from 2457MHz to 2482MHz, thereby obtaining sampled data SD_C6. The sampled data SD_C6 may include data from channels 12 to 13. Fig.19The 2-channel sampling shown is only an example. In other embodiments, the bandwidth of the 2-channel sampling can also be configured to be 27 MHz for complete coverage of two consecutive channels. In other embodiments, the 2-channel sampling can still use 25 MHz, and the starting frequency can correspond to the initial frequency of the first channel of the two channels to be covered. For example, the 1st scan can cover 2401MHz to 2426MHz; the 2nd scan can cover 2406MHz to 2431MHz; the 3rd scan can cover 2411MHz to 2436MHz; the 4th scan can cover 2416MHz to 2441MHz; the 5th scan can cover 2421MHz to 2446MHz; the 6th scan can cover 2426MHz to 2451MHz; the 7th scan can cover 2431MHz to 2456MHz; the 8th scan can cover 2436MHz to 2461MHz; the 9th scan can cover 2441MHz to 2466MHz; the 10th scan can cover 2446MHz to 2471MHz; the 11th scan can cover 2451MHz to 2476MHz; the 12th scan can cover 2456MHz to 2481MHz.

[0290] It should be noted that if Fig.19 The bandwidth of the sampling data segment and the covered frequency band provided in the related description are only examples. In other embodiments of the present application, the multi-channel scanning process based on different numbers may also use bandwidths and / or covered frequency bands different from those provided in the above examples. The embodiments of the present application do not specifically limit this.

[0291] This makes it possible to scan data from multiple channels at one time. Compared with a single-channel scanning solution, this reduces the number of scans in the 2.4 GHz frequency band and improves efficiency.

[0292] In combination with the above 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] The digital signal can be processed by the signal division module 841 to obtain the data segments corresponding to each channel.

[0294] For example, Fig. 20 As shown, in some embodiments, the function of the signal division module 841 may include frequency shift processing.

[0295] It is understandable that the center frequency of the analog signal can be moved to 0 MHz through down-conversion processing. However, since the analog signal coverage frequency is different when scanning different numbers of channels, the center frequency of each channel is actually different after down-conversion processing.

[0296] Exemplary, reference Fig.21 Take the down-conversion processing of the analog signal sampled by 5 channels as an example. After the down-conversion processing, 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] Combined with the above Fig.12 In the description of frequency shift processing, Fig.21 In the scenario of 5-channel sampling scanning shown in the figure, the DDC is required to provide frequency shift processing of 10 MHz, 5 MHz, -5 MHz and -10 MHz respectively, and then obtain the data segments corresponding to the 5 channels respectively through filtering processing.

[0298] In other multi-channel sampling scanning processes, the required frequency shift processing lengths may be different.

[0299] Take the down-conversion processing of 4-channel sampled data as an example. After down-conversion processing, 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] In this way, Fig.21 In the scenario of 4-channel sampling and scanning shown in the figure, the DDC is required to provide frequency shift processing of 7.5 MHz, 2.5 MHz, -2.5 MHz and -7.5 MHz respectively, and then obtain the data segments corresponding to the 4 channels respectively through filtering processing.

[0301] Take the down-conversion processing of 3-channel sampled data 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] In this way, Fig.21 In the scenario of 3-channel sampling and scanning shown in the figure, the DDC is required to provide 5 MHz and -5 MHz frequency shift processing respectively, and then obtain the data segments corresponding to the 3 channels respectively through filtering processing.

[0303] Take the down-conversion processing of the data sampled from 2 channels as an example. After the down-conversion processing, the center frequency of the sampled data SD_D1 can be moved to 0 MHz. Correspondingly, in this data segment, the center frequency of channel 1 is -2.5 MHz, and the center frequency of channel 2 is 2.5 MHz.

[0304] In this way, Fig.21 In the scenario of 2-channel sampling and scanning shown in the figure, the DDC is required to provide frequency shift processing of 2.5 MHz and -2.5 MHz respectively, and then obtain the data segments corresponding to the two channels respectively through filtering processing.

[0305] In summary, in the implementation of a solution that provides a maximum of 5-channel scanning, the signal division module 841 needs to be able to provide at least -7.5 MHz, -5 MHz, -2.5 MHz, and 2.5 MHz, 5 MHz and 7.5 MHz frequency shift processing capabilities.

[0306] In some embodiments of the present application, Fig.18 Taking the logical structure shown as an example, the signal division module 841 may include DDC1 to DDC5 to respectively support the above-mentioned frequency shift processing capabilities.

[0307] Exemplary, reference Fig. 22 . DDC1 can provide 0MHz frequency shift processing capability. In this way, the DDC1 can perform frequency domain shift on the input data. For example, the DDC1 can be used for the processing of channel 3 in the 5-channel scanning scenario, the processing of channel 2 in the 3-channel scanning scenario, etc. in the above example. Thus, through subsequent filtering processing with the center frequency of the pass band being 0MHz, the data segment of channel 3 in the 5-channel scanning scenario or channel 2 in the 3-channel scanning scenario can be obtained. In other embodiments, the DDC1 can also be used for signal processing for single-channel scanning.

[0308] DDC2 can provide -2.5MHz and -5MHz frequency shift processing capabilities. In this way, the DDC2 can be used to perform frequency domain shifting on the input data segment. For example, the DDC2 can be used in the above example to process channel 4 in a 5-channel scanning scenario, channel 3 in a 4-channel scanning scenario, channel 3 in a 3-channel scanning scenario, and channel 2 in a 2-channel scanning scenario. Through frequency shift processing, DDC2 can move the center frequency of the corresponding channel data segment to 0MHz, so as to obtain the data segment of the channel through subsequent filtering processing with the center frequency of the frequency band being 0MHz.

[0309] DDC3 can provide 2.5MHz and 5MHz frequency shift processing capabilities. In this way, similar to DDC2, the DDC3 can be used to perform frequency domain shifting on the input data segment. For example, the DDC3 can be used in the above example 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, channel 1 in a 2-channel scanning scenario, etc. Through frequency shift processing, DDC3 can move the center frequency of the corresponding channel data segment to 0MHz, so as to obtain the data segment of the channel through subsequent filtering processing with the center frequency of the frequency band being 0MHz.

[0310] DDC4 can provide -7.5MHz and -10MHz frequency shift processing capabilities. In this way, the DDC3 can also be used to perform frequency domain shifting on the input data segment. For example, the DDC4 can be used in the above example to process channel 5 in a 5-channel scanning scenario, channel 4 in a 4-channel scanning scenario, etc. Through frequency shift processing, DDC4 can move the center frequency of the corresponding channel data segment to 0MHz, so as to obtain the data segment of the channel through subsequent filtering processing with the center frequency of the frequency band being 0MHz.

[0311] DDC5 can provide 7.5MHz and 10MHz frequency shift processing capabilities. In this way, the DDC5 can also be used to perform frequency domain shifting on the input data segment. For example, the DDC5 can be used in the above example to process channel 1 in a 5-channel scanning scenario, channel 4 in a 4-channel scanning scenario, etc. Through frequency shift processing, DDC4 can move the center frequency of the corresponding channel data segment to 0MHz, so as to obtain the data segment of the channel through subsequent filtering processing with the center frequency of the frequency band being 0MHz.

[0312] As an example, Fig.23 Provides examples of enabling signal processing links for different numbers of multi-channel scanning scenarios. Fig.23 The enabling status of each unit module on the signal processing link shown, and the corresponding relationship between the number of channels in the currently performed multi-channel scan can be pre-configured in the electronic device, so that the control module 805 can control the unit module on the corresponding signal processing link to enable power-on according to the number of channels in the currently used multi-channel scan, thereby realizing link enablement control that matches the current number of channels.

[0313] like Fig.23 As shown, in some embodiments, 2-channel scanning is taken as an example, that is, the number of channels in the current multi-channel scanning is 2.

[0314] The control module 805 can control the signal processing link corresponding to DDC2-LPF2-CCA2 to enable power-on, so as to obtain the data segment of channel 2 in the current sampling signal (such as sampling data SD_D1) through frequency shift processing and filtering based on the -2.5MHz frequency shift processing capability provided by DDC2. Then, the data segment is carrier sensed through CCA2 to determine whether the data segment of channel 2 uses the target protocol type.

[0315] The control module 805 can also control the signal processing link corresponding to DDC3-LPF3-CCA3 to enable power-on, so as to obtain the data segment of channel 1 in the current sampling signal (such as sampling data SD_D1) through frequency shift processing and filtering based on the 2.5MHz frequency shift processing capability provided by DDC3. Then, the data segment is carrier sensed through CCA3 to determine whether the data segment of channel 1 uses the target protocol type.

[0316] In some other embodiments, taking 3-channel scanning as an example, the number of channels in the current multi-channel scanning is 3.

[0317] The control module 805 can control the signal processing link corresponding to DDC1-LPF1-CCA1 to enable power-on, so as to perform 0MHz frequency shift processing on the sampled signal (such as sampled data SD_C1) based on DDC1, and then obtain the data segment of channel 2 in the sampled data SD_C1 through filtering processing. Then, the data segment is carrier sensed through CCA1 to determine whether the data segment of channel 2 uses the target protocol type.

[0318] The control module 805 can also control the signal processing link corresponding to DDC2-LPF2-CCA2 to enable power-up, so as to obtain the data segment of channel 3 in the current sampling signal (such as sampling data SD_C1) through frequency shift processing and filtering based on the -5MHz frequency shift processing capability provided by DDC2. Then, the data segment is carrier sensed through CCA2 to determine whether the data segment of channel 3 uses the target protocol type.

[0319] The control module 805 can also control the signal processing link corresponding to DDC3-LPF3-CCA3 to enable power-on, so as to obtain the data segment of channel 1 in the current sampling signal (such as sampling data SD_C1) through frequency shift processing and filtering based on the 5MHz frequency shift processing capability provided by DDC3. Then, the data segment is carrier sensed through CCA3 to determine whether the data segment of channel 1 uses the target protocol type.

[0320] In some other embodiments, taking 4-channel scanning as an example, the number of channels in the current multi-channel scanning is 4.

[0321] The control module 805 can control the signal processing link corresponding to DDC2-LPF2-CCA2 to enable power-up, so as to obtain the data segment of channel 3 in the current sampling signal (such as sampling data SD_B1) through frequency shift processing and filtering based on the -2.5MHz frequency shift processing capability provided by DDC2. Then, the data segment is carrier sensed through CCA2 to determine whether the data segment of channel 3 uses the target protocol type.

[0322] The control module 805 can also control the signal processing link corresponding to DDC3-LPF3-CCA3 to enable power-on, so as to obtain the data segment of channel 2 in the current sampling signal (such as sampling data SD_B1) through frequency shift processing and filtering based on the 2.5MHz frequency shift processing capability provided by DDC3. Then, the data segment is carrier sensed through CCA3 to determine whether the data segment of channel 2 uses the target protocol type.

[0323] The control module 805 can also control the signal processing link corresponding to DDC4-LPF4-CCA4 to enable power-up, so as to obtain the data segment of channel 4 in the current sampling signal (such as sampling data SD_B1) through frequency shift processing and filtering based on the -7.5MHz frequency shift processing capability provided by DDC4. Then, the data segment is carrier sensed through CCA4 to determine whether the data segment of channel 4 uses the target protocol type.

[0324] The control module 805 can also control the signal processing link corresponding to DDC5-LPF5-CCA5 to enable power-on, so as to obtain the data segment of channel 1 in the current sampling signal (such as sampling data SD_B1) through frequency shift processing and filtering based on the 7.5MHz frequency shift processing capability provided by DDC5. Then, the data segment is carrier sensed through CCA5 to determine whether the data segment of channel 1 uses the target protocol type.

[0325] In some other embodiments, taking 5-channel scanning as an example, the number of channels in the current multi-channel scanning is 5.

[0326] The control module 805 can control the signal processing link corresponding to DDC1-LPF1-CCA1 to enable power-on, so as to perform 0MHz frequency shift processing on the sampled signal (such as sampled data SD_A1) based on DDC1, and then obtain the data segment of channel 3 in the sampled data SD_A1 through filtering processing. Then, the data segment is carrier sensed through CCA1 to determine whether the data segment of channel 3 uses the target protocol type.

[0327] The control module 805 can control the signal processing link corresponding to DDC2-LPF2-CCA2 to enable power-on, so as to obtain the data segment of channel 4 in the current sampling signal (such as sampling data SD_A1) through frequency shift processing and filtering based on the -5MHz frequency shift processing capability provided by DDC2. Then, the data segment is carrier sensed through CCA2 to determine whether the data segment of channel 4 uses the target protocol type.

[0328] The control module 805 can also control the signal processing link corresponding to DDC3-LPF3-CCA3 to enable power-on, so as to obtain the data segment of channel 2 in the current sampling signal (such as sampling data SD_A1) through frequency shift processing and filtering based on the 5MHz frequency shift processing capability provided by DDC3. Then, the data segment is carrier sensed through CCA3 to determine whether the data segment of channel 2 uses the target protocol type.

[0329] The control module 805 can also control the signal processing link corresponding to DDC4-LPF4-CCA4 to enable power-up, so as to obtain the data segment of channel 5 in the current sampling signal (such as sampling data SD_A1) through frequency shift processing and filtering based on the -10MHz frequency shift processing capability provided by DDC4. Then, the data segment is carrier sensed through CCA4 to determine whether the data segment of channel 5 uses the target protocol type.

[0330] The control module 805 can also control the signal processing link corresponding to DDC5-LPF5-CCA5 to enable power-on, so as to obtain the data segment of channel 1 in the current sampling signal (such as sampling data SD_A1) through frequency shift processing and filtering based on the 10MHz frequency shift processing capability provided by DDC5. Then, the data segment is carrier sensed through CCA5 to determine whether the data segment of channel 1 uses the target protocol type.

[0331] In this way, by configuring 5 DDCs with different frequency shift processing capabilities in the above example, it is possible to achieve full coverage of the required frequency shift processing in the corresponding processing processes of single-channel scanning, 2-channel multi-channel scanning, 3-channel multi-channel scanning, 4-channel multi-channel scanning, and 5-channel multi-channel scanning. As a result, it is only necessary to configure the signal division links corresponding to the 5 DDCs in the signal division module 841 (such as each DDC coupled to a filtering unit) to support data processing in a variety of different scenarios. Then, through the CCA coupled to each signal division link, the matching processing of the corresponding data segment is realized to determine whether the data segment is a data segment using the target protocol type.

[0332] In addition, the embodiments of the present application provide Fig.17 or Fig.18The logical organization shown can also be used to support single channel scanning.

[0333] Exemplary, reference Fig.24 When performing single-channel scanning, the control module 805 can control the signal processing link corresponding to DDC1-LPF1-CCA1 to enable power. In this single-channel scanning scenario, Fig.24 The multi-channel digital signal 903 shown may include data of only one channel. Thus, through the 0 MHz frequency shift processing of DDC1 and the filtering processing of LPF1, the data segment of the single channel data can be obtained. Then, through the carrier sensing of CCA1, it is determined whether the channel is the target channel.

[0334] Therefore, through the above Figure 16 to Figure 24 The provided solution examples are combined with Figures 8 to 15 With the above description, those skilled in the art should be able to have a detailed understanding of the specific implementation of the multi-channel scanning solution provided in the embodiment of the present application, as well as the scanning compatibility of different numbers of channels.

[0335] In some implementations, the process of DDC performing frequency shift processing can be implemented according to table entries pre-configured in the electronic device. Generally, frequency shift processing of different lengths (such as -2.5MHz, 2.5MHz, 7.5MHz, -7.5MHz, 10MHz or -10MHz) requires different table entries. Therefore, based on the existing solution implementation, in order to enable different DDCs to provide a variety of different frequency shift processing capabilities, it is necessary to configure multiple table entries corresponding to each frequency shift processing length in the electronic device.

[0336] For this, in some embodiments of the present application, a lookup table item 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 according to the corresponding index table and the lookup table item according to the length of the current frequency shift processing. This can avoid configuring multiple different lookup table items in the electronic device, saving storage space, and also avoiding the problem of abnormal frequency shift processing due to call errors when there are multiple lookup table items.

[0337] The implementation is described in detail below.

[0338] Combined with the above description of frequency shift processing, in the present application, frequency shift processing can be a frequency shift processing of a digital signal obtained by analog-to-digital conversion of an analog signal after down-conversion processing. Specifically, the length of frequency shift processing provided by different DDCs is different. In the following examples, the length of frequency shift processing is referred to as frequency shift length.

[0339] In this application, by Fig.17 or Fig.18The five signal processing links shown in the figure are used as an example to perform channel scanning of up to five channels. The frequency shift lengths involved in the data processing process may include -2.5MHz, 2.5MHz, 7.5MHz, -7.5MHz, 10MHz, and -10MHz. In some other implementations, when the number of signal processing links is more or less, the corresponding frequency shift lengths involved in the data processing process may also be different. The specific implementation is similar, and reference may be made to the exemplary description provided in this application.

[0340] It can be understood that the frequency shift processing implementation of the digital signal can refer to the frequency shift processing implementation of the analog signal corresponding to the digital signal.

[0341] Exemplarily, the 2.5 MHz frequency shift processing of the analog signal being a sine wave signal is taken as an example.

[0342] For analog signals, the 2.5MHz frequency shift is equivalent to shifting the signal waveform 2.5MHz toward the high frequency direction in the frequency domain. In this way, the movement of the sine wave signal toward high / low frequency can correspond to the calculation process of cos(a)+ / -sin(b). Among them, a and b can correspond to the frequency domain step size of the movement.

[0343] As an example, referring to Table 1, taking x=2.5 MHz as an example, the calculation method of the sub-channel center frequency point after down-conversion processing, the corresponding frequency shift length, and the frequency shift processing of the analog signal is illustrated.

[0344] Among them, combined Fig.19 as well as Fig.21 In the example, the sub-channel center frequency of -10 MHz can correspond to the frequency shift processing process of channel 1, channel 5, and channel 9 in the 5-channel scan.

[0345] The sub-channel center frequency point of -7.5 MHz may correspond to the frequency shift processing of channel 1, channel 4, channel 7, and channel 10 in the 4-channel scan.

[0346] The sub-channel center frequency of -5 MHz can correspond to the frequency shift processing of channel 1, channel 3, channel 5, channel 7, channel 9, and channel 11 in the 3-channel scan, and the frequency shift processing of channel 2, channel 6, and channel 10 in the 5-channel scan.

[0347] The sub-channel center frequency of -2.5 MHz can correspond to the frequency shift processing process of channel 1, channel 2, channel 3, channel 4, channel 5, channel 6, channel 7, channel 8, channel 9, channel 10, channel 11, and channel 12 in 2-channel scanning, and the frequency shift processing process of channel 2, channel 5, channel 8, and channel 11 in 4-channel scanning.

[0348] The sub-channel center frequency point of 0 MHz can correspond to the frequency shift processing process of channels 3, 7, and 11 in 5-channel scanning, and the frequency shift processing process of channels 2, 4, 6, 8, 10, and 12 in 3-channel scanning. The frequency shift processing process, as well as the frequency shift processing process of each channel in single-channel scanning.

[0349] Correspondingly, the sub-channel center frequency of 2.5 MHz can correspond to the frequency shift processing process of channel 2, channel 3, channel 4, channel 5, channel 6, channel 7, channel 8, channel 9, channel 10, channel 11, channel 12, and channel 13 in the 2-channel scan, and the frequency shift processing process of channel 3, channel 6, channel 9, and channel 12 in the 4-channel scan.

[0350] The sub-channel center frequency of 5 MHz can correspond to the frequency shift processing of channel 3, channel 5, channel 7, channel 9, and channel 11 in the 3-channel scan, and the frequency shift processing of channel 4, channel 8, and channel 12 in the 5-channel scan.

[0351] The sub-channel center frequency point of 10 MHz can correspond to the frequency shift processing process of channel 5, channel 9, and channel 13 in the 5-channel scan.

[0352] Table 1

[0353] Sub-channel center frequency (MHz) Frequency shift length(MHz) Frequency Shift Processing 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 -10 MHz, the Cos(4x)-i*sin(4x) method can be used to implement a 10 MHz frequency shift process on the analog signal, thereby moving the center frequency of the data segment to 0 MHz.

[0355] Similarly, for a data segment with a sub-channel center frequency of -7.5 MHz, the Cos(3x)-i*sin(3x) method can be used to implement a 7.5 MHz frequency shift processing on the analog signal, thereby moving the center frequency of the data segment to 0 MHz.

[0356] For a data segment with a sub-channel center frequency of -5 MHz, the Cos(2x)-i*sin(2x) method can be used to implement a 5 MHz frequency shift process on the analog signal, thereby moving the center frequency of the data segment to 0 MHz.

[0357] For a data segment with a sub-channel center frequency of -2.5 MHz, the Cos(x)-i*sin(x) method can be used to implement a 2.5 MHz frequency shift process on the analog signal, thereby moving the center frequency of the data segment to 0 MHz.

[0358] Correspondingly, for each data segment whose sub-channel center frequency is greater than 0, the calculation method used corresponds to the calculation method whose center frequency is less than 0. The difference is that the sign of the imaginary part changes from + to -, so that frequency movement in different directions can be achieved.

[0359] Based on the description in Table 1, it can be seen that in the frequency shift processing of each frequency shift length involved in the present application, x=2.5 MHz can be used as a reference to achieve frequency domain shift of the analog signal through a preconfigured calculation method.

[0360] Based on the relevant description of Table 1 above, since the digital signal is equivalent to a data set obtained by sampling the analog signal, when the corresponding digital signal is subjected to frequency shift processing, it can also have similar characteristics as those in Table 1 above. For example, when the frequency shift length is a multiple of 2.5 MHz, the relevant parameters can be obtained based on the frequency shift parameters of 2.5 MHz.

[0361] As an example, a conventional digital signal frequency shift processing mechanism is first briefly described.

[0362] Exemplary, reference Fig.25 . Take the digital signal as data segment 1 as an example.

[0363] The data segment 1 may include data d0 at the first bit (such as marked as CNT is 0), data d1 at the second bit (such as marked as CNT is 1), data d2 at the third bit (such as marked as CNT is 2), data d3 at the fourth bit (such as marked as CNT is 3), data d4 at the fifth bit (such as marked as CNT is 4), and so on.

[0364] The electronic device can implement 2.5 MHz frequency shift processing on data segment 1 according to a pre-configured 2.5 MHz frequency shift comparison table.

[0365] As an example, the electronic device may be configured with frequency shift coefficients corresponding to the respective bits shown in Table 2. In some implementations, the frequency shift coefficients of the respective bits shown in Table 2 may be obtained according to the sampling rate of the AD conversion unit 803 and the frequency shift processing mechanism of the analog signal corresponding to 2.5 MHz shown in Table 1 above.

[0366] Among them, CNT indicates the position of each data in the digital signal from small to large. The smaller the CNT, the earlier the position of the data in the digital signal, and the earlier the DDC receives the data. Conversely, the larger the CNT, the later the position of the data in the digital signal, and the later the DDC receives the data.

[0367] It should be noted that in the example of Table 2, the frequency shift coefficient may include two parts: the part before the sign (such as + / -) is the coefficient corresponding to the real part, and the part after the sign is the coefficient corresponding to the imaginary part. The sign in the frequency shift coefficient is +, which corresponds to the indication of frequency shift processing in the low frequency direction. On the contrary, the sign in the frequency shift coefficient is -, which corresponds to the indication of frequency shift processing in the high frequency direction.

[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 2.5 MHz frequency shift processing can be obtained.

[0371] For example, Fig.25 As shown, in combination with Table 2, the electronic device (such as DDC3 of the electronic device) can obtain d0' corresponding to CNT0 after the 2.5MHz frequency shift processing according to d0 corresponding to CNT0 and the frequency shift coefficient (such as 1.0+0.0) corresponding to CNT0.

[0372] The DDC3 of the electronic device can obtain d1' corresponding to CNT1 after the 2.5 MHz frequency shift processing according to d1 corresponding to CNT1 and the frequency shift coefficient (eg, 0.93-0.34) corresponding to CNT1.

[0373] The DDC3 of the electronic device can obtain d2' corresponding to CNT2 after the 2.5 MHz frequency shift processing according to d2 corresponding to CNT2 and the frequency shift coefficient (such as 0.75-0.65) corresponding to CNT2.

[0374] The DDC3 of the electronic device can obtain the corresponding d3' corresponding to CNT3 after the 2.5 MHz frequency shift processing according to d3 corresponding to CNT3 and the frequency shift coefficient corresponding to CNT3 (eg, 0.48-0.87).

[0375] The DDC3 of the electronic device can obtain the corresponding d4' corresponding to CNT4 after the 2.5 MHz frequency shift processing according to d4 corresponding to CNT4 and the frequency shift coefficient corresponding to CNT4 (eg, 0.14-0.99).

[0376] Therefore, the data d0', d1', d2', d3', d4' and so on can be the data segments after DDC3 performs 2.5 MHz frequency shift processing on data segment 1.

[0377] Based on the above Fig.25 And the implementation mechanism of Table 2, such as Fig.26The DDC3 shown can perform frequency shift processing on the input data segment before 2.5 MHz frequency shift processing based on the 2.5 MHz frequency shift comparison table (such as Table 2) stored in the electronic device, thereby obtaining the data segment after 2.5 MHz frequency shift processing.

[0378] Similar to the 2.5 MHz frequency shift processing, processing of other frequency shift lengths can also be implemented through a frequency shift comparison table of corresponding lengths pre-stored in the electronic device.

[0379] For example, a 5MHz frequency shift process is used as an example. Fig. 22 The 5MHz frequency shift processing can also be achieved by DDC3. Fig.26 As shown, DDC3 can perform frequency shift processing on the input data segment before 5 MHz frequency shift processing based on the 5 MHz frequency shift comparison table stored in the electronic device, thereby obtaining the data segment after 5 MHz frequency shift processing.

[0380] The frequency shift processing for other lengths is similar.

[0381] Thus, based on the implementation of this solution, it is necessary to store a frequency shift comparison table corresponding to each possible frequency shift length in the electronic device.

[0382] For example, Fig. 27 As shown, the electronic device can store a -10MHz frequency shift comparison table, a -7.5MHz frequency shift comparison table, a -5MHz frequency shift comparison table, a -2.5MHz frequency shift comparison table, a 10MHz frequency shift comparison table, a 7.5MHz frequency shift comparison table, a 5MHz frequency shift comparison table, a 2.5MHz frequency shift comparison table, etc.

[0383] Correspondingly, the embodiment of the present application also provides a method for realizing different frequency shift lengths. Fig.26 or Fig. 27 The scheme shown is implemented. In this example, the electronic device only needs to store a basic frequency shift comparison table (such as a 2.5MHz frequency shift comparison table). The electronic device can also store index tables corresponding to other frequency shift lengths to implement frequency shift processing for each frequency shift length.

[0384] The details are described below.

[0385] For example, as shown 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 frequency shift coefficients of data of each bit in other frequency shift processing of integer multiples of 2.5 MHz.

[0386] As an example, the following Table 3 provides a comparative example of the frequency shift coefficient of each bit in the frequency shift processing of 1 times (ie 2.5MHz), 2 times (ie 5MHz), 3 times (ie 7.5MHz), and 4 times (ie 10MHz) of 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 various frequency shift coefficients of 5MHz are already included in the frequency shift coefficients of 2.5MHz. The difference is that the frequency shift coefficients in the 5MHz frequency shift process only correspond to a portion of the frequency shift coefficients of 2.5MHz. For example, in 5MHz, the frequency shift coefficients of CNT1 are 0.75-0.65, which are the frequency shift coefficients of CNT2 in 2.5MHz. For another example, in 5MHz, the frequency shift coefficients of CNT2 are 0.14-0.99, which are the frequency shift coefficients of CNT4 in 2.5MHz.

[0390] In this embodiment, the frequency shift coefficient of each bit can be obtained from the 2.5 MHz frequency shift comparison table shown in Table 2 through the index table corresponding to the 5 MHz frequency shift processing.

[0391] For example, Table 4 provides an example of an index table for a 5 MHz frequency shift process.

[0392] Table 4

[0393] CNT Index ID 0 0 1 2 2 4 …… ……

[0394] As shown in Table 4, when performing 5MHz frequency shift processing, the data of CNT0 can be processed according to the frequency shift coefficient of CNT0 in the 2.5MHz frequency shift comparison table to achieve 5MHz frequency shift processing. In addition, the data of CNT1 can be processed according to the frequency shift coefficient of CNT2 in the 2.5MHz frequency shift comparison table to achieve 5MHz frequency shift processing. In addition, the data of CNT2 can be processed according to the frequency shift coefficient of CNT4 in the 2.5MHz frequency shift comparison table to achieve 5MHz frequency shift processing. And so on.

[0395] In this way, through the index table of 5 MHz frequency shift processing shown in Table 4 and the 2.5 MHz frequency shift comparison table, the DDC can realize the 5 MHz frequency shift processing of the data segment by looking up the table.

[0396] From the perspective of DDC3, Fig.28 As shown in the figure, the 2.5MHz frequency shift comparison table is taken as the basic frequency shift comparison table. DDC3 can be used as follows Fig.26A similar solution is implemented by performing frequency shift processing on the input data segment before 2.5 MHz frequency shift processing based on the 2.5 MHz frequency shift comparison table (such as Table 2) stored in the electronic device, thereby obtaining the data segment after 2.5 MHz frequency shift processing.

[0397] When performing 5MHz frequency shift processing, DDC3 can perform frequency shift processing on the input data segment before 5MHz frequency shift processing according to the 2.5MHz frequency shift comparison table and the 5MHz index table, thereby obtaining the data segment after 5MHz frequency shift processing.

[0398] It is understandable that, as shown in Table 3, the specific implementation of the frequency shift processing of positive integer multiples of 2.5 MHz (such as 5 MHz, 7.5 MHz, 10 MHz, etc.) can refer to the above-mentioned frequency shift processing implementation of 5 MHz.

[0399] In other cases, the frequency shift processing of a negative integer of 2.5 MHz may also be implemented similarly, so that the electronic device does not need to store too many frequency shift comparison tables to implement the corresponding frequency shift processing.

[0400] As an example, the following Table 5 provides an example of the comparison relationship between the frequency shift length of a negative integer multiple of 2.5 MHz and the frequency shift coefficient of the 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, combined with the above-mentioned frequency shift coefficient of 2.5 MHz, the sign of the frequency shift coefficient corresponding to the frequency shift length of the negative integer multiple of 2.5 MHz is "+", and the numerical relationship between the real part and the imaginary part is similar to the frequency shift coefficient corresponding to the frequency shift length of the positive integer multiple of 2.5 MHz.

[0404] Thus, in the present application, a corresponding relationship between a basic frequency shift comparison table and the frequency shift coefficient corresponding to the frequency shift length of a negative integer multiple of 2.5 MHz can also be established in the form of an index table, so that the DDC can implement frequency shift processing of corresponding length according to the basic frequency shift comparison table and the index table.

[0405] As a possible implementation, the index table of the frequency shift lengths of negative integer multiples of 2.5MHz can be configured with a corresponding identifier. The identifier can be used to indicate that the index table corresponds to the frequency shift processing of negative integer multiples of 2.5MHz. In this way, the DDC can, according to the configuration of the identifier, use the CNT indicated by the index table to obtain the corresponding frequency shift coefficient when calling the index table and the basic frequency shift comparison table, and change the sign in the frequency shift coefficient from "-" to "+" to perform the current frequency shift processing. In this way, the corresponding frequency shift processing can be implemented according to a 2.5MHz frequency shift comparison table, as well as index tables of -10MHz, -7.5MHz, -5MHz, -2.5MHz, 5MHz, 7.5MHz and 10MHz.

[0406] Thus, based on this Fig.28 The solution shown is implemented as Fig.29 As shown, only one 2.5MHz frequency shift comparison table can be stored in the electronic device as a basic frequency shift comparison table. The electronic device can also store index tables corresponding to other frequency shift lengths. According to the basic frequency shift comparison table and the index table, each DDC in the electronic device can implement frequency shift processing with different frequency shift lengths.

[0407] In some other embodiments of the present application, the electronic device may also store a -2.5MHz frequency shift comparison table as a second basic frequency shift comparison table. The second basic comparison table is used to implement frequency shift processing of 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 identifier.

[0408] Correspondingly, the 2.5 MHz frequency shift comparison table is used as the first basic frequency shift comparison table for performing frequency shift processing of 2.5 MHz, 5 MHz, 7.5 MHz and 10 MHz.

[0409] Of course, in other implementations, the -2.5 MHz frequency shift comparison table may also be used as the first frequency shift comparison table, and the 2.5 MHz frequency shift comparison table may be used as the second basic frequency shift comparison table. This application does not limit this.

[0410] It can be understood that in the above examples, the electronic device has Fig.17 or Fig.18 The example of scanning 5 channels at most is used for explanation. In this way, each frequency shift length can be an integer multiple of 2.5 MHz. Therefore, the 2.5 MHz frequency shift comparison table can be stored in the electronic device as a basic frequency shift comparison table, and other frequency shift lengths can be stored in the corresponding index table.

[0411] In other implementations, when the number of signal processing links in the multi-channel scanning configuration is different, based on similar implementations, the frequency shift comparison table corresponding to the common factors of each frequency shift length in the required frequency shift processing process can be stored in the electronic device as a basic frequency shift comparison table. The corresponding other frequency shift lengths can be stored in the corresponding index table.

[0412] It is understandable that since the amount of data in the index table is significantly smaller than that in the frequency shift comparison table, Fig.29 The solution shown can be compared to Fig. 27 The solution shown is implemented to achieve the effect of reducing the storage of duplicate data and saving corresponding storage overhead.

[0413] It should be noted that the analog signal corresponding to the data segment is a sine wave signal as an example. In the time domain, a complete cycle of a sine wave signal can be obtained by mirroring the sine wave signal in 1 / 4 cycle based on the time domain and reversing the amplitude. Then, corresponding to the digital signal obtained after sampling, the complete data segment in the cycle can be determined through the data in 1 / 4 cycle. The frequency shift coefficient in the frequency shift processing process also has similar characteristics.

[0414] Therefore, in some embodiments of the present application, the basic frequency shift comparison table may only store the frequency shift coefficients of each bit during the 2.5 MHz frequency shift process within a 1 / 4 period, thereby further saving storage space overhead.

[0415] In addition, based on the above description of using the 2.5MHz frequency shift comparison table as the basic comparison table, in other embodiments, the -2.5MHz frequency shift comparison table can also be stored in the electronic device as the basic comparison table, and the corresponding index tables of other corresponding frequency shift lengths can be adjusted accordingly.

[0416] The above mainly introduces the solution provided by the embodiment of the present application from the perspective of each functional module. Those skilled in the art should easily realize that, in combination with the units and algorithm steps of each example described in the embodiment disclosed herein, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present application.

[0417] The above integrated modules can be implemented in the form of hardware or software functional modules. It should be noted that the division of modules in the embodiments of the present application is schematic and is only a logical function division. There may be other division methods in actual implementation.

[0418] For example, Fig.30 FIG. 1 is a schematic diagram showing the composition of an electronic device 3000. Fig.30 As shown, the electronic device 3000 may include: a processor 3001 and a memory 3002. The memory 3002 is used to store computer-executable instructions. Exemplarily, in some embodiments, when the processor 3001 executes the instructions stored in the memory 3002, the electronic device 3000 may execute any of the methods shown in the above embodiments. Fig.30 As shown, in this example, the electronic device may also be configured with an antenna 3003 for receiving and sending signals. Thus, the processor 3001 may process the signal received by the antenna 3003 or send the processed signal through the antenna 3003 according to the instructions stored in the memory 3002.

[0419] It should be noted that all relevant contents of each step involved in the above method embodiment can be referred to the functional description of the corresponding functional module and will not be repeated here.

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

[0421] It should be noted that all relevant contents of each step involved in the above method embodiment can be referred to the functional description of the corresponding functional module and will not be repeated here.

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

[0423] Although the present application has been described in conjunction with specific features and embodiments thereof, it is obvious that various modifications and combinations may be made thereto without departing from the spirit and scope of the present application. Accordingly, this specification and the drawings are merely exemplary illustrations of the present application as defined by the appended claims, and are deemed to have covered any and all modifications, variations, combinations or equivalents within the scope of the present application. Obviously, those skilled in the art may make various modifications and variations to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.

Claims

1. A scanning control method, characterized in that: The method is applied to an electronic device, wherein the electronic device is equipped with a first antenna, and the first antenna is used to receive a single-channel or multi-channel signal; The electronic device is configured with at least two signal processing links, and the at least two signal processing links are used to perform signal processing on data of different channels to determine whether the data transmitted on the corresponding channel uses a preset target protocol type; The electronic device is further provided with a control module, and the control module is used to control the enabling of the signal processing link; The method comprises: The electronic device receives first sampled data through the first antenna, where the first sampled data includes data of M channels, where M is an integer greater than 0; The electronic device controls M signal processing links of the at least two signal processing links through the control module to enable power-on, so that the M signal processing links perform digital processing according to the first sampling data, and determine whether the M channels corresponding to the first sampling data include a target channel, and the target channel is a channel for data transmission using a preset target protocol type.

2. The method according to claim 1, characterized in that The first antenna is a Wi-Fi antenna, and the operating frequency band of the first antenna includes 2.4 GHz-2.5 GHz.

3. The method according to claim 1 or 2, characterized in that: The signal processing link comprises: a frequency shift unit, a filter unit coupled to the frequency shift unit, and a carrier sense CCA unit coupled to the filter unit; In the case where the control module controls the signal processing link to power on and operate; the method further includes: The frequency shift unit performs frequency shift processing on the first sampling data; when the frequency shift units included in different signal processing chains perform frequency shift processing, the corresponding frequency shift lengths are different; The filtering unit performs filtering processing on the first sampling data after the frequency shift processing to obtain a data segment corresponding to a channel; the passing bandwidth of the filtering units included in the 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 the filtering process to determine whether the data segment is transmitted through a target protocol type.

4. The method according to claim 3, characterized in that Before the first sampling data is input into 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 point of the first sampled data after the down-conversion processing is 0 MHz; The frequency shifting unit performs frequency shifting processing on the first sampling data, including: The frequency shift unit performs the frequency shift processing on the first sampling data after the down-conversion processing.

5. The method according to claim 3 or 4, characterized in that: The frequency shift unit includes a digital down-conversion DDC unit, and the filtering unit includes a low-pass filter LPF.

6. The method according to any one of claims 3 to 5, characterized in that: The electronic device receives first sample data through the first antenna, including: Under the control of the control module, the electronic device controls the first antenna to receive electromagnetic waves of M channels and converts the electromagnetic waves of the M channels into first analog signals.

7. The method according to claim 6, characterized in that The method further comprises: The electronic device performs radio frequency processing on the first analog signal to obtain a first radio frequency modulated signal, wherein 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 modulated signal to obtain a first digital signal; the first digital signal includes a data segment corresponding to each channel in the M channels; The electronic device controls M signal processing links of the at least two signal processing links through the control module to enable power-on, so that the M signal processing links perform digital processing according to the first sampled data, and determines whether the M channels corresponding to the first sampled data include a target channel, including: The electronic device controls M signal processing links of the at least two signal processing links to be powered on through the control module, so that the M signal processing links perform digital processing on the first digital signal, and determine whether data segments respectively 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 controls M signal processing links of the at least two signal processing links through the control module to enable power-on, the method includes: A first frequency shift unit in the first signal processing link performs a first frequency shift process on the first digital signal to obtain a second digital signal, wherein the frequency shift length of the first frequency shift process is a first frequency; in the second digital signal, the center frequency corresponding to the first data segment is 0 MHz; 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 chain is included in the M signal processing chains.

9. The method according to claim 8, characterized in that The M signal processing links further include a second signal processing link, the M channels further include a second channel, and the second channel corresponds to a second data segment; The method further comprises: The second frequency shift unit in the second signal processing link performs a second frequency shift process on the first digital signal to obtain a third digital signal, wherein the frequency shift length of the second frequency shift process is a second frequency; in the third digital signal, the center frequency corresponding to the second data segment is 0 MHz; The second filtering unit in the second signal processing chain performs filtering processing on 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 8 or 9, characterized in that: The method further comprises: The first CCA unit in the first signal processing link performs carrier sensing on the first data segment to determine whether the first data segment is transmitted using the target protocol type according to a Baker 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, and the first CCA identifier is used to indicate whether a channel corresponding to a data segment currently processed by the first signal processing link is a target channel; The method further comprises: In a case where it is determined that the first data segment is transmitted using the target protocol type, the first CCA identifier is configured as a first value, used to indicate that a first channel corresponding to the first data segment is a target channel.

12. The method according to any one of claims 9 to 11, characterized in that: The electronic device is provided with a basic frequency shift comparison table corresponding to the first frequency, and the basic frequency shift comparison table is used to perform the first frequency shift processing; the basic frequency shift comparison table includes at least one frequency shift coefficient, and the at least one frequency shift coefficient corresponds to data of each bit of the first digital signal in the first frequency shift processing; The electronic device is also configured with M-1 index tables; The M-1 index tables correspond to different frequency shift lengths respectively, 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 table is used to indicate the position of the frequency shift coefficient corresponding to each bit of the data segment in the frequency shift processing corresponding to the current frequency shift length, in the basic frequency shift comparison table; The first frequency shift unit in the first signal processing link performs a first frequency shift process on the first digital signal, including: The first frequency shift unit performs the first frequency shift processing according to the basic frequency shift comparison 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, and the first index table 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 process on the first digital signal, including: The second frequency shift unit performs the second frequency shift processing according to the basic frequency shift comparison table, the first index table, and the first digital signal.

14. The method according to any one of claims 1 to 13, characterized in that The electronic device is configured with at least two signal processing links, including: The electronic device is configured with 5 signal processing links, which are used to support multi-channel scanning of no more than 5 channels at the same time, or to support single-channel scanning under the control of the control module.

15. The method according to claim 14, characterized in that 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; Among them, the third DDC unit is used to perform a 0MHz frequency shift processing on the input digital signal; the fourth DDC unit is used to perform a -2.5MHz frequency shift processing or a -5MHz frequency shift processing on the input digital signal; the fifth DDC unit is used to perform a 2.5MHz frequency shift processing or a 5MHz frequency shift processing on the input digital signal; the sixth DDC unit is used to perform a -7.5MHz frequency shift processing or a -10MHz frequency shift processing on the input digital signal; the seventh DDC unit is used to perform a 7.5MHz frequency shift processing or a 10MHz frequency shift processing on the input digital signal.

16. The method according to claim 15, characterized in that The pass frequency bands of the third LPF unit, the fourth LPF unit, the fifth LPF unit, the sixth LPF unit, and the seventh LPF unit are all the first pass frequency band, The center frequency of the first pass frequency band is 0 MHz, and the bandwidth of the first pass frequency band is 22 MHz.

17. The method according to claim 15 or 16, characterized in that The electronic device is configured with 5 signal processing links to support multi-channel scanning of 5 channels simultaneously; The first sampling data includes data of M channels, including: The first sampling data includes data collected in a frequency band corresponding to the third channel, data collected in a frequency band corresponding to the fourth channel, data collected in a frequency band corresponding to the fifth channel, data collected in a frequency band corresponding to the sixth channel, and data collected in a frequency band corresponding to the seventh channel; the third channel, the fourth channel, the fifth channel, the sixth channel, and the seventh channel are adjacent in sequence, and the center frequency of the third channel is less than the center frequency of the fourth channel; The electronic device controls M signal processing links of the at least two signal processing links to enable power-on through 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 through the control module to power on and operate respectively; 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 according to the first sampling data; the third CCA unit in the third signal processing link is used to determine whether the fifth channel is the 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 according to the first sampling 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 according to the first sampling 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 according to the first sampling 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 according to the first sampling data; the seventh CCA unit in the seventh signal processing link is used to determine whether the third channel is the target channel.

18. The method according to claim 15 or 16, characterized in that The electronic device is configured with 5 signal processing links to support multi-channel scanning of 4 channels simultaneously; The first sampling data includes data of M channels, including: The first sampling data includes data collected in a frequency band corresponding to the third channel, data collected in a frequency band corresponding to the fourth channel, data collected in a frequency band corresponding to the fifth channel, and data collected in a frequency band corresponding to the sixth channel; the third channel, the fourth channel, the fifth channel, and the sixth channel are adjacent in sequence, and the center frequency of the third channel is less than the center frequency of the fourth channel; The electronic device controls M signal processing links of the at least two signal processing links to enable power-on through 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 be powered on and operated 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 according to 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 obtain the data segment of the fourth channel according to the first sampling 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 according to the first sampling 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 according to the first sampling data; the seventh CCA unit in the seventh signal processing link is used to determine whether the third channel is the target channel.

19. The method according to claim 15 or 16, characterized in that The electronic device is configured with 5 signal processing links to support multi-channel scanning of 3 channels simultaneously; The first sampling data includes data of M channels, including: The first sampling data includes data collected in a frequency band corresponding to the third channel, data collected in a frequency band corresponding to the fourth channel, and data collected in a frequency band corresponding to the fifth channel; the third channel, the fourth channel, and the fifth channel are adjacent in sequence, and the center frequency of the third channel is less than the center frequency of the fourth channel; The electronic device controls M signal processing links of the at least two signal processing links to enable power-on through 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 be powered on and operated 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 according to 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 obtain the data segment of the fifth channel according to 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 obtain the data segment of the third channel according to the first sampling data; the fifth CCA unit in the fifth signal processing link is used to determine whether the third channel is the target channel.

20. The method according to claim 15 or 16, characterized in that The electronic device is configured with 5 signal processing links to support multi-channel scanning of 2 channels simultaneously; The first sampling data includes data of M channels, including: The first sampling data includes data collected in a frequency band corresponding to the third channel and data collected in a 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 smaller than the center frequency of the fourth channel; The electronic device controls M signal processing links of the at least two signal processing links to enable power-on through the control module, including: The electronic device controls the fourth signal processing link and the fifth signal processing link to be powered on and operated 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 according to 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 obtain the data segment of the third channel according to the first sampling data; the fifth CCA unit in the fifth signal processing link is used to determine whether the third channel is the target channel.

21. An electronic device, characterized in that: The electronic device comprises: 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 is used to store computer program codes, and the computer program codes include computer instructions. When the processor executes the computer instructions, the electronic device executes the method as claimed in any one of claims 1 to 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 circuit and the processor are interconnected through lines; the interface circuit is used to receive a signal from a memory of the electronic device and send the signal to the processor, the signal including computer instructions stored in the memory; when the processor executes the computer instructions, the electronic device executes 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, and the at least two signal processing links are used to perform signal processing on data of different channels to determine whether the data transmitted on the corresponding channel uses a preset target protocol type.

Citation Information

Patent Citations

  • Channel scanning method and device

    CN105592526A

  • Multi-band WIFI scanning method and device, electronic equipment and storage medium

    CN115643627A

  • Channel scanning

    US20060215627A1

  • Method and apparatus for scanning multiple channels in a wireless network

    US20130286937A1