A signal scanning method and electronic device
By using a multi-channel scanning method, electronic devices can simultaneously process data acquisition and signal matching from multiple channels, solving the problem of low efficiency in Wi-Fi channel scanning in existing technologies and achieving rapid identification of target channels.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-08-21
- Publication Date
- 2026-03-20
AI Technical Summary
In the prior art, electronic devices are inefficient when scanning Wi-Fi channels, especially when determining the target channel, resulting in significant power consumption and time overhead.
A multi-channel scanning method is adopted, which enables simultaneous data acquisition and digital signal processing of multiple channels through the coordinated work of antenna module, radio frequency module and baseband module. Channel matching processing is performed by frequency shift unit, digital filtering unit and listening unit to quickly determine the target channel.
It improves the efficiency of channel scanning, reduces unnecessary power consumption and time overhead, and can quickly identify channels using the target protocol type, adapting to the multi-channel or single-channel scanning needs of different scenarios.
Smart Images

Figure CN119545475B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] Embodiments of the present application relate to the technical field of electronic device, and in particular, to a signal scanning method and an electronic device. BACKGROUND
[0002] In a Wi-Fi-based wireless signal receiving process, an electronic device can determine a target channel for subsequent data communication through channel scanning. For example, the target channel can be a channel for communication using a preset target protocol type.
[0003] Generally, the channel scanning scheme can include single-channel scanning. By sequentially scanning 13 channels specified by Wi-Fi-related protocols and analyzing the data obtained by each scan, the protocol type used by each channel can be determined. Then, the target channel can be determined according to the channel using the target protocol type. This can result in a lack of efficiency in the process of determining the target channel by the electronic device. SUMMARY
[0004] The present application provides a signal scanning method and an electronic device, which can enable the electronic device to support simultaneous scanning and analysis of multiple channels, and the electronic device can also determine single-channel scanning or multi-channel scanning through the scheme.
[0005] To achieve the above technical purposes, the present application adopts the following technical solutions:
[0006] In a first aspect, a signal scanning method is provided, which is applied to an electronic device including an antenna module, a radio frequency module, and a baseband module. The method is used to determine a target channel, which is a channel for data transmission using a target protocol type. The method includes: the antenna module receives a first sampling signal, and the bandwidth of the first sampling signal is a first bandwidth. The first sampling signal includes signals transmitted on at least two consecutive channels. The radio frequency module performs radio frequency processing on the first sampling signal to obtain a first analog signal. The first analog signal includes signals transmitted on M channels. The M channels are included in the at least two channels. The bandwidth of the first analog signal is a second bandwidth corresponding to the M channels, and the second bandwidth is less than or equal to the first bandwidth. The baseband module performs digital processing on a first digital signal corresponding to the first analog signal to determine a target channel in the M channels included in the first analog signal. For example, the working frequency range of the antenna module can include a 2.4 GHz frequency range of 2.4 GHz to 2.5 GHz.
[0007] In this way, the electronic device can simultaneously perform data acquisition of multiple channels, i.e., realize multi-channel scanning. In some implementations of this solution, the first bandwidth can be 100 MHz of the full 2.4 GHz frequency band. The second bandwidth corresponds to the number of M. For example, when M is 5, the second bandwidth is 40 MHz. For another example, when M is 4, the second bandwidth is 35 MHz, and so on. After obtaining the analog signals corresponding to the number of channels currently required to be scanned from the signals of the full frequency band, the electronic device in this example can also provide multi-channel digital signal processing capability. Through this multi-channel digital signal processing capability, the electronic device can determine whether there is a target channel from the M channels. In this way, because multiple channels are scanned simultaneously, the scanning efficiency is effectively improved.
[0008] Optionally, the baseband module includes N signal processing links, N being an integer greater than or equal to M. The baseband module processes the first digital signal, including: the baseband module processes the first digital signal through M signal processing links of the N signal processing links. Based on this implementation, the electronic device can enable M signal processing links to perform digital processing on the data of M channels. It can be understood that when the baseband module of the electronic device includes N signal processing links, the electronic device can provide digital processing capability for N channels simultaneously. In addition, the electronic device can also provide digital processing capability for any number (such as M) of channels less than N.
[0009] Optionally, each of the signal processing links includes: a frequency shift unit, a digital filter unit coupled to the frequency shift unit, and a listening unit coupled to the digital filter unit. The frequency shift unit is configured to perform frequency shift processing on the first digital signal. The frequency shift units configured on different signal processing links provide different frequency shift lengths. The frequency shift length is the movement length of the center frequency point of the first digital signal in the frequency domain during the frequency shift processing performed by the frequency shift unit. The digital filter unit is configured to perform digital filtering processing. The pass bandwidths of the digital filter units configured on different signal processing links are the same. The listening unit is configured to perform matching processing. The matching processing is configured to determine whether the data segment obtained by the digital filter unit is a target data segment corresponding to the target channel. Based on this implementation, each signal processing link can filter out a data segment corresponding to a channel according to the input digital signal of the second bandwidth, and determine whether the data segment is a target data segment using a target protocol type.
[0010] Optionally, the frequency shift unit provides a frequency shift length including a basic frequency shift length and N-1 first frequency shift lengths, any two of the N-1 first frequency shift lengths are different, and the first frequency shift length is an integer multiple of the basic frequency shift length. The electronic device is configured with a basic frequency shift table and N-1 index tables. The basic frequency shift table corresponds to the basic frequency shift length, and each index table corresponds to a first frequency shift length. The frequency shift unit is configured to perform frequency shift processing on the first digital signal, specifically including: the frequency shift unit is configured to perform frequency shift processing on the first digital signal according to the basic frequency shift length corresponding to the basic frequency shift table. The frequency shift unit is also configured to perform frequency shift processing on the first digital signal according to the first frequency shift length corresponding to the first index table and the basic frequency shift table. The first index table is included in the N-1 index tables. The present example provides a specific implementation of frequency shift processing. For example, based on the table lookup operation of the frequency shift table, frequency shift processing can be realized by digital down conversion. It should be noted that in the present example, since the integer multiple of the basic frequency shift length (such as 2.5MHz) can correspond to other first frequency shift lengths (such as 5MhHz, 7.5MHz, 10MHz, etc.), the frequency shift coefficient in the basic frequency shift table can include the first frequency shift length corresponding to the frequency shift coefficient. In this way, through the index table corresponding to each first frequency shift length, the required frequency shift coefficient can be obtained from the basic frequency shift table, thereby realizing the frequency shift processing of the corresponding frequency shift length. In this way, it can avoid configuring too much redundant data in the electronic device, so that the stored data is simplified.
[0011] Optionally, the center frequency of the digital filter unit is 0MHz, and the passband bandwidth of the digital filter unit is the frequency bandwidth of a channel. The present example limits the configuration of the digital filter unit. It can be understood that since different frequency shift processing is performed on different channels on different signal processing links, the digital filter units on each signal processing link are configured to be the same, and the same digital filtering capability can be provided to obtain the data segments corresponding to each channel respectively.
[0012] Optionally, the matching processing includes carrier sensing processing. When the listening unit performs the carrier sensing processing, the listening unit determines whether the data segment is the target data segment according to a preset reference baker code and the correlation peak information of the input data segment. The reference baker code corresponds to the target protocol type. The present example provides a specific scheme implementation for determining whether the data segment of a channel uses the target protocol type. Through the scheme, the listening unit can match and compare the frame header of the current data segment based on the reference baker code of the target protocol type, and then quickly determine whether the data segment is the target data segment.
[0013] Optionally, the frequency shifting unit comprises a digital down conversion (DDC) unit. The digital filtering unit comprises a digital low pass filter unit. The listening unit comprises a clear channel assessment (CCA) unit. It is to be noted that in some implementations, the DDC, the digital low pass filter and the CCA can be configured in the electronic device in the form of hardware to constitute the above-mentioned signal processing link. In other implementations, the baseband module of the electronic device can also run corresponding software codes so that the baseband module (or baseband chip) can provide logical implementation of the above-mentioned signal processing link.
[0014] Optionally, the N signal processing links comprise a first signal processing link, and the first signal processing link is configured to perform the digital processing on data of a first channel. The baseband module performs the digital processing on the first digital signal through M signal processing links in the N signal processing links, comprising: a first frequency shifting unit of the first signal processing link receives the first digital signal, and the first frequency shifting unit performs first frequency shifting processing on the first digital signal to obtain a second digital signal. A center frequency point of data corresponding to the first channel in the second digital signal is 0 MHz. A first digital filtering unit of the first signal processing link performs the digital filtering processing on the second digital signal to obtain a first data segment, and the first data segment is a data segment corresponding to the first channel. A first listening unit of the first signal processing link performs the matching processing on the first data segment to determine whether the first data segment is the target data segment.
[0015] Optionally, each signal processing link in the N signal processing links is configured with a CCA identifier, and the CCA identifier is configured as a first value to indicate that a currently processed data segment is the target data segment, and the CCA identifier is configured as a second value to indicate that the currently processed data segment is not the target data segment. The method further comprises: before performing the digital processing on the first digital signal, configuring the CCA identifier of the first signal processing link as the second value. In the case that the first data segment is the target data segment, the listening unit configures the CCA identifier of the first signal processing link as the first value. In this way, through the configuration of the CCA identifier, other components in the electronic device can determine the target data segment according to the CCA identifier so as to perform subsequent other processing.
[0016] Optionally, the electronic device is further configured with an analog-to-digital conversion unit, and the analog-to-digital conversion unit is configured between the radio frequency module and the baseband module. Before the baseband module performs the digital processing on the first digital signal corresponding to the first analog signal, the method further comprises: the analog-to-digital conversion unit performs digital sampling processing on the first analog signal based on a first sampling frequency to obtain the first digital signal.
[0017] Optionally, the signal processing link further comprises a digital resampling unit group. The digital resampling unit group comprises at least one digital resampling unit configured to adjust a sampling frequency of a digital signal from the first sampling frequency to a second sampling frequency. The second sampling frequency is the sampling frequency of the listening unit.
[0018] Optionally, the digital resampling unit group comprises one digital resampling unit configured between the analog-to-digital conversion unit and the baseband module. The baseband module performs digital processing on the first digital signal corresponding to the first analog signal, including that the baseband module performs the digital processing on a second digital signal corresponding to the first analog signal, the second digital signal being a digital signal obtained by the digital resampling unit group performing digital resampling processing on the first digital signal.
[0019] Optionally, the digital resampling unit group comprises N digital resampling units, each of which is configured between a frequency shift unit and a digital filter unit in the signal processing link.
[0020] Optionally, for any signal processing link, the digital resampling unit and the digital filter unit constitute a resampling filter unit configured to perform digital resampling processing and digital filter processing on data in the signal processing link.
[0021] Optionally, the digital resampling unit group comprises N digital resampling units, each of which is configured between a digital filter unit and a listening unit in the signal processing link.
[0022] In this way, when the sampling frequency of some or all components in digital processing (such as 44MHz) is different from the sampling frequency of the analog-to-digital conversion unit (such as 80MHz), the configuration of the digital resampling unit can be used to realize the unification of the sampling frequency. Further, the accuracy of digital processing is ensured.
[0023] Optionally, the baseband module further comprises an analysis module coupled to the N signal processing links, and the method further comprises that the analysis module performs analysis processing on a target data segment determined in the N signal processing links.
[0024] Optionally, the baseband module further comprises a digital gain control module configured between the listening unit and the analysis module, and the digital gain control module is configured to perform digital amplification on the target data segment according to a preset digital gain coefficient. For example, the digital gain coefficient can be used to amplify a 4-bit digital signal to a 7-bit digital signal.
[0025] Optionally, the baseband module further comprises a DC removal module, which is configured between the analog-digital conversion unit and the N signal processing links, and is used for performing digital DC removal processing on the digital signal input to the N signal processing links. And / or, the DC removal module is configured between the N signal processing links and the resolving module, and is used for performing digital DC removal processing on the target data segment. In this way, through DC removal processing, the invalid signals in the digital signal are filtered out to a certain extent, which facilitates subsequent accurate processing.
[0026] Optionally, the baseband module further comprises a calculation module coupled with the N signal processing links, and the method further comprises: the calculation module calculates and obtains the received signal strength RSSI of the target data segment according to the target data segment determined by the N signal processing links.
[0027] Optionally, the calculation module calculates the RSSI of the target data segment, comprising: the calculation module obtains a first radio frequency gain, which is a gain when the first sampling signal is analog amplified in the radio frequency processing of the first sampling signal by the radio frequency module. In the case that the first radio frequency gain is included in the preset linear amplification interval, the calculation module determines the RSSI of the target data segment according to a preconfigured first formula. The first formula comprises:
[0028] RX_RSSI = b - a * AGC_Gain,
[0029] wherein RX_RSSI is the RSSI of the target data segment, AGC_Gain is the first radio frequency gain, and a and b are preset parameters. In the case that the first radio frequency gain is included in the preset nonlinear amplification interval, the calculation module calculates a correlation peak average value of the target data segment, and determines the RSSI of the target data segment according to a preconfigured corresponding relationship between the correlation peak average value and the RSSI.
[0030] In this way, in the present application, by accurately dividing the radio frequency gain, different schemes are adopted to calculate the RSSI, which can effectively improve the calculation accuracy of the RSSI.
[0031] Optionally, the method further comprises: the calculation module calculates and obtains the digital average power corresponding to the target data segment according to a second formula.
[0032] The second formula comprises:
[0033] wherein Digital_power average is the digital average power. N is the number of IQ data pairs determined according to the target data segment.
[0034] Optionally, the method further comprises: adjusting, by the radio frequency module, the gain in the radio frequency processing to a second radio frequency gain, the second radio frequency gain corresponding to the digital average power.
[0035] Optionally, the baseband module further comprises an automatic gain control unit. The method further comprises: determining, by the automatic gain control unit, the second radio frequency gain according to the digital average power and a preset reference power. The automatic gain control unit sends the second radio frequency gain to the radio frequency module. In some implementations, the automatic gain control unit can also determine the second radio frequency gain in combination with the first digital signal, so that analog amplification processing based on the second radio frequency gain will not cause data truncation due to exceeding the maximum bit width of AD conversion.
[0036] In this way, the radio frequency gain adjustment for the target data segment can be realized based on the digital average power of the target data segment. Thus, in multi-channel scanning, the problem that the data received by the target channel cannot be effectively analog amplified due to the small power of the target channel can be avoided.
[0037] Optionally, the baseband module further comprises an automatic gain control unit. The method further comprises: adjusting, by the radio frequency module, the gain in the radio frequency processing to a third radio frequency gain, the third radio frequency gain being determined by the automatic gain control unit according to the first digital signal. In this example, the automatic gain control unit can also determine the relevant parameters (such as the third radio frequency gain) of the RF gain adjustment only based on the digital signal after AD conversion.
[0038] Optionally, the radio frequency processing of the radio frequency module on the first sampling signal comprises: analog amplification processing, analog down-conversion processing, and analog filtering processing of the radio frequency module on the first sampling signal.
[0039] Optionally, before the radio frequency module performs the radio frequency processing on the first sampling signal, the method further comprises: configuring the radio frequency module to perform the analog down-conversion processing according to a center frequency point corresponding to the scanning configuration. Configuring the radio frequency module to perform the analog filtering processing according to a bandwidth corresponding to the scanning configuration. The scanning configuration comprises performing single-channel scanning, or the scanning configuration comprises performing multi-channel scanning, and the number of channels in the multi-channel scanning. The number of channels in the multi-channel scanning corresponds to the number of M channels included in the first analog signal.
[0040] In this way, the center frequency point of the analog down-conversion and the bandwidth of the analog filtering processing in the radio frequency module can be flexibly configured according to the number of channels to be scanned currently, so that the various components configured in the electronic device can adapt to different multi-channel scanning schemes in different scenarios.
[0041] Optionally, the method further includes: determining, by the electronic device, the scan configuration according to a first cell identifier and a preconfigured first correspondence relationship. The first cell identifier is a cell identifier of a cell currently accessed by the electronic device in the cellular network. The first correspondence relationship includes a correspondence relationship between at least one cell identifier and a scan configuration, and the at least one cell identifier includes the first cell identifier. Alternatively, the electronic device determines a quantity of wireless access points (APs) corresponding to a current location according to the first cell identifier and a preconfigured second correspondence relationship. The second correspondence relationship includes a correspondence relationship between at least one cell identifier and a quantity of APs, and the at least one cell identifier includes the first cell identifier. The electronic device determines the scan configuration according to the quantity of APs corresponding to the current location.
[0042] The example provides a scheme implementation of determining a scan configuration. Thus, based on the scan configuration, the electronic device can perform corresponding multi-channel or single-channel scanning according to various schemes provided in the above examples.
[0043] In a second aspect, an electronic device is provided. The electronic device includes an antenna module, a memory and one or more processors. The memory and the processor are coupled. The antenna module and the processor are coupled. The memory is configured to store computer program code including computer instructions. When the processor executes the computer instructions, the electronic device performs the method provided in the first aspect and any possible design thereof.
[0044] In a third aspect, a chip system is provided. 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 a line. The interface circuit is configured to receive a signal from a memory of the electronic device and send the signal to the processor. The signal includes computer instructions stored in the memory. When the processor executes the computer instructions, the electronic device performs the method provided in the first aspect and any possible design thereof.
[0045] Optionally, the chip system is configured with at least two signal processing links. The at least two signal processing links are configured to perform signal processing on data of different channels to determine whether a preset target protocol type is used to transmit data on a corresponding channel. For example, the chip system can correspond to a baseband module or a baseband processor configured in the electronic device.
[0046] In a fourth aspect, the present application further provides a computer readable storage medium including computer instructions. When the computer instructions are run on an electronic device, the electronic device performs the technical solutions provided in the first aspect and any possible implementation thereof.
[0047] In a fifth aspect, the present application also provides a computer program product, which, when executed on a computer, causes the computer to perform the technical solutions provided in the first aspect and any possible implementation thereof.
[0048] It can be understood that the solutions provided in the second aspect to the fifth aspect of the present application can correspond to the first aspect and any possible implementation thereof respectively, and thus can achieve similar beneficial effects, which will not be described here again. BRIEF DESCRIPTION OF DRAWINGS
[0049] Figure 1 FIG. 1 is a schematic diagram of a wireless communication scenario;
[0050] Figure 2 FIG. 2 is a schematic diagram of channel division of a 2.4G frequency band;
[0051] Figure 3 FIG. 3 is a schematic diagram of single-channel scanning to determine a target channel;
[0052] Figure 4 FIG. 4 is a schematic diagram of a composition of an electronic device provided in an embodiment of the present application;
[0053] Figure 5 FIG. 5 is a schematic diagram of a logic connection of an electronic device provided in an embodiment of the present application;
[0054] Figure 6 FIG. 6 is a schematic diagram of multi-channel sampling provided in an embodiment of the present application;
[0055] Figure 7 FIG. 7 is a schematic diagram of a composition logic of an RF module provided in an embodiment of the present application;
[0056] Figure 8 FIG. 8 is a schematic diagram of a control logic of an RF module provided in an embodiment of the present application;
[0057] Figure 9 FIG. 9 is a schematic diagram of an analog down-conversion process provided in an embodiment of the present application;
[0058] Figure 10 FIG. 10 is a schematic diagram of a logic connection of an electronic device provided in an embodiment of the present application;
[0059] Figure 11 FIG. 11 is a schematic diagram of a logic connection of an electronic device for implementing maximum 5-channel scanning provided in an embodiment of the present application;
[0060] Figure 12 FIG. 12 is a schematic diagram of data processing logic in a multi-channel scanning process provided in an embodiment of the present application;
[0061] Figure 13A frequency shift processing implementation logic schematic diagram provided for the embodiment of the present application;
[0062] Figure 14 A frequency shift processing implementation logic schematic diagram provided for the embodiment of the present application;
[0063] Figure 15 A frequency shift processing implementation logic schematic diagram provided for the embodiment of the present application;
[0064] Figure 16 A frequency shift processing implementation logic schematic diagram provided for the embodiment of the present application;
[0065] Figure 17 A frequency shift processing implementation logic schematic diagram provided for the embodiment of the present application;
[0066] Figure 18 A frequency shift processing implementation logic schematic diagram provided for the embodiment of the present application;
[0067] Figure 19 A frequency shift processing implementation logic schematic diagram provided for the embodiment of the present application;
[0068] Figure 20 A frequency shift processing implementation logic schematic diagram provided for the embodiment of the present application;
[0069] Figure 21 A frequency shift processing implementation logic schematic diagram provided for the embodiment of the present application;
[0070] Figure 22 A frequency shift processing implementation logic schematic diagram provided for the embodiment of the present application;
[0071] Figure 23 A frequency shift processing implementation logic schematic diagram provided for the embodiment of the present application;
[0072] Figure 24 A frequency shift processing implementation logic schematic diagram provided for the embodiment of the present application;
[0073] Figure 25 A frequency shift processing implementation logic schematic diagram provided for the embodiment of the present application;
[0074] Figure 26 A frequency shift processing implementation logic schematic diagram provided for the embodiment of the present application;
[0075] Figure 27 A frequency shift processing implementation logic schematic diagram provided for the embodiment of the present application;
[0076] Figure 28A schematic diagram of determination logic of a scanning configuration provided for an embodiment of the present application;
[0077] Figure 29 A schematic diagram of determination logic of a scanning configuration provided for an embodiment of the present application;
[0078] Figure 30 A schematic diagram of an electronic device provided for an embodiment of the present application;
[0079] Figure 31 A schematic diagram of a chip system provided for an embodiment of the present application. DETAILED DESCRIPTION
[0080] Currently, most of the electronic devices with wireless communication function can perform communication based on a wireless fidelity (Wi-Fi) network, which is referred to as Wi-Fi communication for short. The frequency band corresponding to the Wi-Fi communication can include a 2.4 GHz frequency band and a 5 GHz frequency band, etc. Taking the Wi-Fi communication corresponding to the 2.4 GHz frequency band as an example, the 2.4 GHz frequency band can include all or part of the frequency band between 2400 MHz and 2500 MHz.
[0081] Reference Figure 1 shows an example of a Wi-Fi communication scenario.
[0082] As shown in Figure 1 , the device 21 can serve as a Wi-Fi access device (or referred to as a receiving device). In the environment where the device 21 is located, one or more devices can create a Wi-Fi network. The device creating the Wi-Fi network can be referred to as a creating device.
[0083] For example, in the example as Figure 1 , the creating device can include the device 11, the device 12, and the device 13.
[0084] Among them, the device 11 can create a Wi-Fi network 1, so that the device 11 communicates with the device 21 through the Wi-Fi network 1. The device 12 can create a Wi-Fi network 2, so that the device 12 communicates with the device 21 through the Wi-Fi network 2. The device 13 can create a Wi-Fi network 3, so that the device 13 communicates with the device 21 through the Wi-Fi network 3.
[0085] It can be understood that for any creating device (such as the device 11, the device 12, or the device 13), when communicating with the device 21 through the corresponding Wi-Fi network, the corresponding channel (Channel) and protocol type can be used for data transmission.
[0086] For example, in the example asFigure 1 In the example of FIG. 1, device 11 can communicate with other devices (e.g., device 21) on channel 3 using the 802.11g protocol type. Device 12 can communicate with other devices (e.g., device 21) on channel 6 using the 802.11n protocol type. Device 13 can communicate with other devices (e.g., device 21) on channel 9 using the 802.11b protocol type.
[0087] It is noted that the channels and / or protocol types that can be used in a 2.4 GHz communication scenario (e.g., communication of a 2.4 GHz-based Wi-Fi network) are not limited to the few examples shown in FIG. 1. Figure 2 Figure 1 It is noted that the channels and / or protocol types that can be used in a 2.4 GHz communication scenario (e.g., communication of a 2.4 GHz-based Wi-Fi network) are not limited to the few examples shown in FIG. 1.
[0088] As shown in FIG. 2, the 2.4 GHz Wi-Fi band can be divided into 14 channels. The channels are ordered from low to high in terms of the covered frequencies as channel 1, channel 2, channel 3, …, channel 14. Among them, channels 1 to 13 are normal channels. Channel 14 is generally not used for data transmission. Figure 2 In the channels 1 to 13 and channel 14, the bandwidth of each channel is 22 MHz.
[0089] In the channels 1 to 13, the spacing between the starting frequencies of two adjacent channels is 5 MHz. For example, the frequency of channel 1 covers 2401 MHz to 2423 MHz. The frequency of channel 2 covers 2406 MHz to 2428 MHz. And so on.
[0090] In the example of FIG. 2, the center frequencies of the channels are also shown. For example, the center frequency of channel 1 is 2412 MHz, the center frequency of channel 2 is 2417 MHz, the center frequency of channel 3 is 2422 MHz, the center frequency of channel 4 is 2427 MHz, the center frequency of channel 5 is 2432 MHz, the center frequency of channel 6 is 2437 MHz, the center frequency of channel 7 is 2442 MHz, the center frequency of channel 8 is 2447 MHz, the center frequency of channel 9 is 2452 MHz, the center frequency of channel 10 is 2457 MHz, the center frequency of channel 11 is 2462 MHz, the center frequency of channel 12 is 2467 MHz, the center frequency of channel 13 is 2472 MHz, and the center frequency of channel 14 is 2484 MHz.
[0091] Figure 2 In addition, in a 2.4 GHz communication scenario, different communication connections can also use different protocol types.
[0092] In addition, in a 2.4 GHz communication scenario, different communication connections can also use different protocol types.
[0093] Exemplarily, in the process of Wi-Fi communication in the 2.4 GHz frequency band, the protocol types that can be used can include 802.11b, 802.11g, 802.11n, etc.
[0094] In the process of Wi-Fi communication, the device 21 can realize Wi-Fi communication with the device 11, the device 12 and / or the device 13 through cooperation of various components therein. Taking a scenario in which the device 21 receives data as an example.
[0095] Exemplarily, the device 21 can be configured with an antenna 31, an RF module 32, an AD conversion unit 33 and a baseband module 34.
[0096] The working frequency band of the antenna 31 covers the 2.4 GHz frequency band. The antenna 31 can be used to perform signal transmission and reception in the frequency bands corresponding to the channels as shown in Figure 2 For example, in some implementations, the antenna 31 can be used to receive data in one of the channels 1 to 13 as shown in Figure 2
[0097] The RF module 32 is used to perform radio frequency domain (or analog domain) processing. The radio frequency domain processing can include signal amplification, mixing processing, filtering processing, etc. for analog signals. In this application, the analog signal after the radio frequency domain processing can be referred to as a radio frequency modulated signal. The mixing processing can also be referred to as analog down-conversion processing.
[0098] The AD conversion unit 33 is used to perform digital sampling on the analog signal, thereby converting the radio frequency modulated signal into a corresponding digital modulated signal.
[0099] The baseband module 34 is used to perform digital processing on the digital modulated signal.
[0100] Exemplarily, the digital processing can include digital analysis of the digital modulated signal. For example, the digital analysis can include analysis of the preamble and / or frame header information of the digital modulated 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 effective data carried therein. In the following examples, the digital modulated signal is referred to as a digital signal.
[0101] In some scenarios, the device 21 can perform screening of data in the current environment according to a pre-configured target protocol type.
[0102] It can be understood that in the scenario as shown in Figure 1 In the scenario as shown in In the scenario as shown in
[0103] Correspondingly, when device 21 needs to perform a certain function (such as a target function) via a Wi-Fi network, it can select and determine the target channel for data transmission using that target protocol type from multiple Wi-Fi networks distributed in the current environment by using the pre-configured target protocol type for that function. The target function implemented using the Wi-Fi network may include indoor positioning, precise indoor navigation, device proximity detection, etc.
[0104] In this way, device 21 can determine the data transmission channel (i.e., the target channel) and the protocol type used during data transmission (i.e., the target protocol type) required to achieve the target function. Therefore, device 21 can continue to receive data on the target channel and quickly parse the data according to the target protocol type, thereby achieving the goal of supporting the target function.
[0105] Take the target protocol type 802.11b as an example.
[0106] In order to determine Figure 1 In the environment shown, using the target channel of the target protocol type, device 21 can respectively target channels such as... Figure 2 The channel shown is analyzed using a single-channel scan.
[0107] For example, refer to Figure 3 This is an example of a common single-channel scan.
[0108] Device 21 can start scanning and parsing from channel 1.
[0109] For example, device 21 can control antenna 31 to receive electromagnetic waves in the frequency band corresponding to channel 1 and convert those electromagnetic waves into analog signals. Figure 1 In the scenario shown, no device is transmitting data through channel 1, and therefore the received signal does not contain valid data. Thus, the signal strength of channel 1 is weak or data cannot be received. Therefore, device 21 can determine that there is no data transmission on channel 1 and continue scanning and parsing the next channel (such as channel 2).
[0110] The scanning process for channel 2 is similar, and then device 21 can continue scanning for channel 3.
[0111] like Figure 3 As shown, device 21 can control antenna 31 to receive electromagnetic waves in the frequency band corresponding to channel 3 and convert these electromagnetic waves into an analog signal (such as antenna signal a1). That is, antenna signal a1 is obtained by scanning channel 3. Figure 1 In the scenario shown, if device 11 communicates with device 21 through channel 3, then the antenna signal a1 can include valid data. Device 21 can then proceed with further processing.
[0112] The antenna 31 can transmit an antenna signal a1 to the RF module 32. The RF module 32 can perform radio frequency domain processing on the antenna signal a1 to obtain an analog signal (e.g., a radio frequency modulation signal b1) after amplification, mixing (MIX), and filtering processing. The RF module 32 can send the radio frequency modulation signal b1 to the AD conversion unit 33. The AD conversion unit 33 performs digital sampling on the radio frequency modulation signal b1 to obtain a corresponding digital signal c1. The digital signal c1 can be transmitted to the baseband module 34 for analysis. For example, the baseband module 34 can analyze the digital signal c1 for preamble and / or frame header information to determine that the protocol type used by the signal received by the channel 3 is 802.11g.
[0113] In this way, the device 21 can determine that the current channel 3 has data transmission but does not use the target protocol type. The channel 3 is not the target channel.
[0114] The device 21 can continue to scan and analyze other channels.
[0115] For example, when the channel 6 is scanned, a corresponding antenna signal a2 can be obtained. Then, the RF module 32 performs radio frequency domain processing on the antenna signal a2 to obtain a radio frequency modulation signal b2. After analog-to-digital conversion, a digital signal c2 corresponding to the radio frequency modulation signal b2 is obtained. Based on the analysis of the digital signal c2, it can be determined that the protocol type used by the signal received by the channel 6 is 802.11n.
[0116] For another example, when the channel 9 is scanned, a corresponding antenna signal a3 can be obtained. Then, the RF module 32 performs radio frequency domain processing on the antenna signal a3 to obtain a radio frequency modulation signal b3. After analog-to-digital conversion, a digital signal c3 corresponding to the radio frequency modulation signal b3 is obtained. Based on the analysis of the digital signal c3, it can be determined that the protocol type used by the signal received by the channel 9 is 802.11b.
[0117] In this way, the device 21 can determine that the channel 9 is the target channel using the target protocol type.
[0118] In the implementation of the above scheme, the device 21 performs scanning and analysis of one channel at a time to determine the protocol type used by the channel. This scheme can be referred to as a single-channel scanning scheme.
[0119] Based on the single-channel scanning scheme, although the target channel using the target protocol type can be ultimately determined, the single-channel scanning performed before the channel 9 (i.e., the target channel) is scanned is invalid. This results in significant and invalid power consumption and time overhead. In the case where the channel number of the target channel is greater than 9 (e.g., 10, 13, etc.), the invalid power consumption and time overhead are even more significant.
[0120] To this end, embodiments of the present disclosure provide a multi-channel scanning scheme, so that an electronic device (e.g., device 21) can perform simultaneous scanning and matching processing of two or more channels according to actual conditions. Thus, the electronic device can quickly determine a target channel for data transmission using a target protocol type in the current environment. In some embodiments of the present disclosure, based on the scheme provided in the present disclosure, the electronic device can also support single-channel scanning according to the current scene requirements.
[0121] The scheme will be described in detail below with reference to the accompanying drawings.
[0122] It should be noted that the electronic device involved in the embodiments of the present disclosure can 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, a vehicle-mounted device, a smart home device, or a smart city device. The embodiments of the present disclosure do not specially limit the specific type of the electronic device.
[0123] For example, the electronic device can have Wi-Fi communication capability in the 2.4 GHz frequency band.
[0124] In some embodiments, the electronic device involved in the embodiments of the present disclosure can include a processor, an external memory interface, an internal memory, a universal serial bus (USB) connector, a charge management module, a power management module, a battery, an antenna 1, an antenna 2, a mobile communication module, a wireless communication module, an audio module, a speaker, a receiver, a microphone, a headset interface, a sensor module, a key, a motor, an indicator, a camera module, a display screen, and a subscriber identification module (SIM) card interface, etc. The sensor module can include a pressure sensor, a gyroscope sensor, a barometric pressure sensor, a magnetic sensor, an acceleration sensor, a distance sensor, a proximity light sensor, a fingerprint sensor, a temperature sensor, a touch sensor, an ambient light sensor, a bone conduction sensor, etc.
[0125] The processor can include one or more processing units, for example: the processor can include an application processor (AP), a modem, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor (BP or BBP), and / or a neural-network processing unit (NPU), etc. Among them, different processing units can be independent devices, or can be integrated in one or more processors.
[0126] The processor can generate operation control signals according to instruction opcodes and timing signals to complete the control of fetching and executing instructions.
[0127] The processor can also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor can be a cache memory. The memory can save instructions or data that have been used or used frequently by the processor. If the processor needs to use the instructions or data, it can directly call from the memory. Avoiding repeated access, reducing the waiting time of the processor, thus improving the efficiency of the system.
[0128] In some embodiments, the processor can include one or more interfaces. The interface can 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 can connect modules such as touch sensors, audio modules, wireless communication modules, display screens, camera modules, etc. through at least one of the above interfaces.
[0129] It can be understood that the interface connection relationship between the modules shown in the embodiments of the present application is only illustrative and does not constitute a structural limitation on the electronic device. In some other embodiments of the present application, the electronic device can use different interface connection manners or a combination of multiple interface connection manners.
[0130] It should be noted that the structure shown in the embodiments of the present application does not constitute a specific limitation on the electronic device. In some other embodiments of the present application, the electronic device can include more or fewer components than described above, or combine certain components, or split certain components, or different component arrangements. Any component involved in the above description can be implemented in hardware, software, or a combination of software and hardware.
[0131] In the present example, the wireless communication function of the electronic device can be implemented by the antenna 1, the antenna 2, the mobile communication module, the wireless communication module, the modem processor, and the baseband processor, etc.
[0132] The antenna 1 and the antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in the electronic device can be used to cover a single or multiple communication frequency bands. Different antennas can also be multiplexed to improve the utilization rate of the antennas. For example, the antenna 1 can be multiplexed as a diversity antenna of a wireless local area network. In some other embodiments, the antenna can be used in combination with a tuning switch.
[0133] The mobile communication module can provide a solution including 2G / 3G / 4G / 5G wireless communication applied to the electronic device. The mobile communication module can include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The mobile communication module can receive electromagnetic waves from the antenna 1, and perform filtering, amplification, etc. on the received electromagnetic waves, and transmit them to the modem processor for demodulation. The mobile communication module can also amplify the signals modulated by the modem processor and convert them into electromagnetic waves radiated by the antenna 1. In some embodiments, at least part of the functional modules of the mobile communication module can be arranged in the processor. In some embodiments, at least part of the functional modules of the mobile communication module and at least part of the modules of the processor can be arranged in the same device.
[0134] The modem processor can include a modulator and a demodulator. The modulator is configured to modulate a low-frequency baseband signal to be transmitted into a medium-high frequency signal. The demodulator is configured to demodulate a received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. The low-frequency baseband signal processed by the baseband processor is transmitted to the application processor. The application processor outputs a sound signal through an audio device (not limited to a speaker, a receiver, etc.), or displays an image or a video through a display screen. In some embodiments, the modem processor can be a separate device. In other embodiments, the modem processor can be independent of the processor, and can be disposed in the same device as the mobile communication module or other functional modules. For example, the modem processor can be integrated in the baseband processor.
[0135] The wireless communication module can provide a wireless communication solution including wireless local area networks (WLAN) (such as a Wi-Fi network), Bluetooth (BT), Bluetooth Low Energy (BLE), Ultra Wide Band (UWB), Global Navigation Satellite System (GNSS), frequency modulation (FM), near field communication (NFC), infrared technology (IR), and the like, which can be applied to an electronic device. The wireless communication module can be one or more devices integrated with at least one communication processing module. The wireless communication module receives an electromagnetic wave via the antenna 2, performs frequency modulation and filtering processing on the electromagnetic wave signal, and transmits the processed signal to the processor. The wireless communication module can also receive a signal to be transmitted from the processor, perform frequency modulation and amplification, and radiate the signal to the antenna 2 as an electromagnetic wave.
[0136] In some embodiments, the antenna 1 and the mobile communication module of the electronic device are coupled, and the antenna 2 and the wireless communication module are coupled, so that the electronic device can communicate with a network and other electronic devices through wireless communication technology. The wireless communication technology can include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), wideband code division multiple access (WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC, FM, and / or IR technology, etc. The GNSS can include global positioning system (GPS), global navigation satellite system (GLONASS), beidou navigation satellite system (BDS), quasi-zenith satellite system (QZSS), and / or satellite based augmentation systems (SBAS).
[0137] The electronic device provided by the embodiments of the present application has the above composition, that is, it can be used to support single channel scanning in the above examples. In addition, the electronic device can also be used to support multi-channel scanning analysis at the same time. The specific implementation is described in detail later.
[0138] It should be noted that the composition of the electronic device provided in the above examples is only an example and does not constitute a limitation on the electronic device. In other embodiments, the electronic device can also have other compositions.
[0139] For example, referring to Figure 4 Another composition of the electronic device provided by the embodiments of the present application is shown in the following schematic diagram.
[0140] As Figure 4As shown, in this example, the electronic device can include an antenna module 401, an RF module 402, an AD conversion unit 403, a control module 405, a baseband module 440, and the like.
[0141] In some implementations, as shown in Figure 4 As shown, the baseband module 440 can be configured with a signal division module 441, a matching module 442, a calculation module 443, an analysis module 444, an automatic gain control (AGC) unit 445, and the like. In other embodiments, the baseband module 440 can also be configured with more unit modules. The following will be illustrated respectively.
[0142] As an example, the electronic device has a composition as shown in Figure 4 As shown in Figure 5 , the logical connection between the modules is illustrated.
[0143] As shown in Figure 5 The antenna module 401 can be coupled with the RF module 402. In order to facilitate the antenna module 401 to transmit the received antenna signal SAT1 to the RF module 402 for radio frequency domain processing.
[0144] The RF module 402 can be coupled with the AD conversion unit 403. In order to facilitate the RF module 402 to transmit the radio frequency modulated signal SRF1 obtained after radio frequency domain processing to the AD conversion unit 403 for analog-to-digital conversion, and obtain the corresponding digital signal SD1.
[0145] The AD conversion unit 403 can be coupled with the signal division module 441. In order to facilitate the signal division module 441 to obtain the digital signal (i.e. data segment) of each channel in the plurality of channels corresponding to the current sampling configuration according to the digital signal SD1.
[0146] The signal division module 441 can be coupled with the matching module 442. In order to facilitate the matching module 442 to perform matching processing on the data segments corresponding to each channel respectively, and then determine whether the target channel is included in these channels. The data transmitted on the target channel can be a target data segment. The target data segment can be a data segment for data transmission using a target protocol type.
[0147] The matching module 442 can be coupled with the calculating module 443 and the parsing module 444 respectively. The calculating module 443 can calculate the corresponding RSSI, digital average power, etc. according to the target data segment. In addition, the parsing module 444 can parse the data received on the target channel according to the target protocol type to obtain the effective data transmitted on the target channel. For example, the effective data can include the hardware parameters and other data transmitted by the opposite wireless access point (AP).
[0148] In addition, as shown in Figure 5 The calculating module 443 can be coupled with the AGC unit 445. The AGC unit 445 can also be coupled with the AD conversion unit 403. The AGC unit 445 can determine the AGC power corresponding to the target data segment according to the digital average power from the calculating module 443 and the digital signal SD1 from the AGC unit 445. The AGC power can be used to provide the RF module 402 to perform analog amplification processing corresponding to the target data segment.
[0149] The functions of each module / unit in the composition as shown in Figure 4 and the logical connection as shown in Figure 5 will be described in detail below in combination with the drawings.
[0150] For example, the antenna module 401 can include one or more antennas for receiving and transmitting wireless signals. The antenna module 401 can include at least one 2.4GHz antenna (or Wi-Fi antenna). The working frequency band of the 2.4GHz antenna can include the 2.4GHz frequency band.
[0151] In some embodiments, the electronic device performs multi-channel scanning. The antenna module 401 can receive electromagnetic waves in space and convert the electromagnetic waves into analog signals (i.e., antenna signals SAT1).
[0152] It can be understood that the antenna module 401 can receive 2.4GHz full-band data and obtain corresponding antenna signals SAT1. For example, the antenna module 401 can receive electromagnetic waves of 100MHz from 2.4GHz to 2.5GHz and convert them into corresponding 100MHz bandwidth antenna signals SAT1.
[0153] In different numbers of multi-channel scanning implementations, the effective signals in the 100MHz antenna signals that need to be processed later can only be part of them.
[0154] For example, taking 5-channel scanning as an example. The corresponding sampling data bandwidth that needs to be processed later in each scan can be 40MHz. In combination with Figure 6The 100MHz frequency band corresponding to channel 1 to channel 13 (or channel 1 to channel 14) can be included in the antenna signal SAT1. Then, when performing 5-channel scanning, the sampling data of the first scanning can be sampling data SD_A1, which can be the signal of the 2402MHz to 2442MHz part in the antenna signal SAT1.
[0155] It can be understood that, in the embodiment of the present application, since the 1MHz at the head of channel 1 and the 1MHz at the tail of channel 5 generally do not include valid data, the sampling data SD_A1 can cover the 2402MHz to 2442MHz for subsequent processing to obtain the data segments of channel 1 to channel 5. The subsequent similar, will not be repeated.
[0156] Thus, through 3 scans, the sampling data required for subsequent processing can be obtained from the 2.4GHz frequency band. Compared with single-channel scanning, the time-consuming and power consumption of up to 10 scans for analysis can be saved. In the present application, using 40MHz as the scanning bandwidth for each scanning in the process of simultaneously performing 5-channel scanning is only an example, and in other implementations, the scanning bandwidth of each scanning can also be different from 40MHz.
[0157] Similarly to the first scanning, the sampling data of the second scanning can be sampling data SD_A2, which can include the signal of 2422MHz to 2462MHz. The sampling data of the third scanning can be sampling data SD_A3, which can include the signal of 2442MHz to 2482MHz.
[0158] In the example as shown in FIG. 6, the valid data distribution examples in the scenarios of 4-channel scanning, 3-channel scanning and 2-channel scanning are simultaneously provided. Figure 6
[0159] As shown in FIG. 7, the valid data distribution examples in the scenarios of 4-channel scanning, 3-channel scanning and 2-channel scanning are simultaneously provided. Figure 6 As shown, 4-channel scanning is taken as an example. The sampling data bandwidth in each scan can be 35MHz. In this way, in the 4-channel scanning, the sampling data in the first scan can be sampling data SD_B1, which can be the signal of the 2402MHz to 2432MHz part of the antenna signal SAT1. The sampling data in the second scan can be sampling data SD_B2, which can be the signal of the 2417MHz to 2452MHz part of the antenna signal SAT1. The sampling data in the third scan can be sampling data SD_B3, which can be the signal of the 2432MHz to 2467MHz part of the antenna signal SAT1. The sampling data in the fourth scan can be sampling data SD_B4, which can be the signal of the 2447MHz to 2482MHz part of the antenna signal SAT1. The data of the 13 channels can be obtained through the 4 scans.
[0160] In addition, in the 3-channel multi-channel scanning, the sampling data bandwidth required in each sampling can be 30MHz. The sampling data can include sampling data SD_C1 and the like. The sampling data SD_C1 can be 2402MHz to 2432MHz of the antenna signal SAT1. The sampling data SD_C1 can correspond to the data including channel 1 to channel 3. Subsequent scans can be implemented through similar schemes to perform scanning of channel 3 to channel 5, channel 5 to channel 7, channel 7 to channel 9, channel 9 to channel 11, and channel 11 to channel 13.
[0161] In the 2-channel multi-channel scanning, the sampling data bandwidth required in each sampling can be 25MHz. The sampling data can include sampling data SD_D1 and the like. The sampling data SD_D1 can be 2402MHz to 2427MHz of the antenna signal SAT1. The sampling data SD_D1 can correspond to the data including channel 1 to channel 2. Subsequent scans can be implemented through similar schemes to perform scanning of channel 2 to channel 3, channel 3 to channel 4, channel 4 to channel 5, channel 5 to channel 6, channel 6 to channel 7, channel 7 to channel 8, channel 8 to channel 9, channel 9 to channel 10, channel 10 to channel 11, channel 11 to channel 12, and channel 12 to channel 13.
[0162] Thus, in each scan, after the electronic device obtains the antenna signal SAT1 through the antenna module 401, the electronic device can perform radio frequency domain processing through the RF module 402, so as to obtain the required sampling data.
[0163] For example, in this application, RF module 402 is used to perform radio frequency domain processing on antenna signals. In some implementations, RF module 402 may be a collection of devices and cables for performing analog signal processing between antenna module 401 and baseband module 440.
[0164] In some embodiments, the RF module 402 may include an amplification unit, a mixing unit, an analog filtering unit, etc.
[0165] In such Figure 7 In the example, the amplification unit includes a low-noise amplifier (LNA) unit, the mixing unit includes a MIX unit, and the analog filtering unit includes an analog low-pass filter (LPF) unit. In this application, the amplification unit disposed in the RF module 402 for amplifying analog signals can also be called an analog amplification unit. Correspondingly, the unit module used to provide digital signal amplification processing capabilities can be called a digital amplification unit.
[0166] In some embodiments, the LNA can amplify analog signals. Parameters during the amplification process may include analog gain, or RF gain.
[0167] For example, RF module 402 can adjust the RF gain used for amplification processing in different scenarios according to the instructions of baseband module 440, thereby maximizing amplification of the antenna signal without effective data truncation. In some implementations, the LNA can have a linear amplification range, within which the gain provided by the LNA has a linear relationship with the signal power before and after amplification processing. Within this linear amplification range, the relevant parameters of the antenna signal (such as Received Signal Strength Indicator, RSSI) can be accurately determined based on the gain currently used by the LNA. Conversely, outside the linear amplification range, the signal power before and after amplification processing does not have a strictly linear relationship. Therefore, the electronic device can accurately determine the specific parameter values of the antenna signal currently received by the antenna based on the pre-configured correspondence between the gain used by the current LNA model and the relevant parameters of the antenna signal (such as the peak-to-average value corresponding to the relevant peak).
[0168] In other embodiments, the MIX unit in RF module 402 can provide analog down-conversion processing for analog signals. For example, through this analog down-conversion processing, RF module 402 can shift the center frequency of antenna signal SAT1 to 0MHz.
[0169] In other embodiments, the analog LPF unit in RF module 402 can provide analog filtering capabilities. For example, in different scenarios, the bandwidth of the analog LPF unit can correspond to the frequency domain width covered by the number of channels included in a single multi-channel scan in the current scenario. In different implementations, the center frequency of the frequency band through which the analog LPF passes can be 0MHz.
[0170] The bandwidth of the analog signal after analog filtering can correspond to the number of channels in the current multi-channel scan. For example, the bandwidth of the analog signal after analog filtering can be the frequency domain width covered by the channels in the current multi-channel scan.
[0171] Taking a 5-channel scan as an example. When the RF module 402 is working, such as... Figure 7 As shown, the 100MHz bandwidth antenna signal SAT1 can be transmitted to the LNA unit for analog amplification to obtain an amplified signal. This amplified signal can be an analog signal with a bandwidth of 100MHz. The MIX unit can perform analog down-conversion processing on the amplified signal to obtain a converted signal. This amplified signal can be an analog signal with a bandwidth of 100MHz, and the center frequency of this converted signal can be 0MHz. The analog LPF unit can perform analog filtering processing on the converted signal to obtain a filtered signal. This filtered signal can be an analog signal with a bandwidth of 40MHz, and the center frequency of this filtered signal can be 0MHz.
[0172] So, how should it be done? Figure 7 The filtered signal shown corresponds to the radio frequency modulation signal SRF1 in the previous example. Combined with... Figure 6 The explanation is that during the first scan of the 5-channel scan by the electronic device, this is how... Figure 7 The filtered signal shown can be mapped to the sampled data SD_A1.
[0173] It should be noted that, in combination Figure 6 The explanation states that in different scanning processes of multi-channel scanning with the same number of channels (such as the first and second scans of a 5-channel scan), or in multi-channel scanning processes with different numbers of channels (such as a 5-channel scan and a 4-channel scan), the center frequency of the acquired sampling data is different.
[0174] In the present application, the MIX unit needs to be processed by analog down-conversion with different frequency domain lengths to move the center frequency of the current required sampling data to 0 MHz. For example, in the first scan of 5-channel scanning, the MIX unit needs to move the center frequency of 2402 MHz to 2442 MHz (i.e. 2420 MHz) to 0 MHz. In the second scan of 5-channel scanning, the MIX unit needs to move the center frequency of 2422 MHz to 2462 MHz (i.e. 2440 MHz) to 0 MHz. In the first scan of 4-channel scanning, the MIX unit needs to move the center frequency of 2402 MHz to 2437 MHz (i.e. 2419.5 MHz) to 0 MHz.
[0175] In addition, the analog LPF unit also needs to be configured with different pass bandwidths to filter out the analog signal corresponding to the bandwidth of the current required sampling data from the antenna signal. For example, in 5-channel scanning, the analog LPF unit needs to provide a pass bandwidth of 40 MHz. In 4-channel scanning, the analog LPF unit needs to provide a pass bandwidth of 35 MHz.
[0176] Therefore, in order to enable the electronic device as shown in Figure 4 to provide multi-channel scanning of different channel numbers in different scenarios, in the embodiments of the present application, the control module 405 in the electronic device can control the switching of each component in the RF module 402 to different working states through the control signal flow, to provide the radio frequency domain processing capability matched with the current scenario.
[0177] For example, referring to 801 in Figure 8 , the control module 405 can control each component in the RF module 402 to work through the RF control signal flow.
[0178] As shown in Figure 8 , the control module 405 can control the LNA unit to work by powering on through the RF control signal 1, to realize the amplification processing of the antenna signal SAT1.
[0179] Correspondingly, as shown in 802, in response to the RF control signal 1, the LNA unit can be powered on to perform analog amplification processing on the antenna signal SAT1.
[0180] The control module 405 can control the MIX unit to work through the RF control signal 2. In some implementations, the RF control signal 2 can indicate the center frequency point currently required to perform the analog down-conversion processing. For example, when the first scan of the 5-channel scan is currently being performed, the RF control signal 2 can indicate that the center frequency point currently required to perform the analog down-conversion processing is 2420 MHz. For another example, when the second scan of the 5-channel scan is currently being performed, the RF control signal 2 can indicate that the center frequency point currently required to perform the analog down-conversion processing is 2440 MHz.
[0181] Correspondingly, as shown in 802, in response to the RF control signal 2, the MIX unit can perform the corresponding analog down-conversion processing according to the RF control signal 2. For example, when the RF control signal 2 indicates that the center frequency point currently required to perform the analog down-conversion processing is 2420 MHz, the MIX unit is configured to provide an analog down-conversion capability of 2420 MHz to 0 MHz, so as to shift the 100 MHz analog signal received by the current antenna by 2420 MHz, thereby shifting the center frequency point of the sampling data SD_A1 to 0 MHz.
[0182] As an example, referring to Figure 9 , a contrast example of the analog down-conversion processing in the scanning of different numbers of channels is provided.
[0183] As shown in Figure 9 , in the 5-channel sampling, the center frequency of the sampling data SD_A1 in the antenna signal is shifted from 2422 MHz to 0 MHz through the analog down-conversion processing. In the 4-channel sampling, the center frequency of the sampling data SD_B1 in the antenna signal is shifted from 2419.5 MHz to 0 MHz through the analog down-conversion processing. In the 3-channel sampling, the center frequency of the sampling data SD_C1 in the antenna signal is shifted from 2417 MHz to 0 MHz through the analog down-conversion processing. In the 2-channel sampling, the center frequency of the sampling data SD_D1 in the antenna signal is shifted from 2414.5 MHz to 0 MHz through the analog down-conversion processing.
[0184] Continuing to refer to Figure 8 , the control module 405 can also control the analog LPF unit to work through the RF control signal 3. In some implementations, the RF control signal 3 can indicate the bandwidth currently required to perform the analog filtering processing. For example, when the 5-channel scan is currently being performed, the RF control signal 3 can indicate that the bandwidth currently required to perform the analog filtering processing is 40 MHz. For another example, when the 4-channel scan is currently being performed, the RF control signal 3 can indicate that the bandwidth currently required to perform the analog filtering processing is 35 MHz.
[0185] Correspondingly, as shown in 802, in response to the RF control signal 3, the analog LPF unit can adjust / select an analog LPF unit corresponding to the required bandwidth according to the RF control signal 3, and perform corresponding analog down-conversion processing. For example, when the RF control signal 3 indicates that the current required bandwidth for performing analog filtering processing is 40MHz, the analog LPF unit can filter the 100MHz frequency conversion signal by 40MHz, thereby obtaining a 40MHz filtered signal, that is, one of the sampling signals in the 5-channel scanning. For example, when the RF control signal 3 indicates that the current required bandwidth for performing analog filtering processing is 35MHz, the analog LPF unit can filter the 100MHz frequency conversion signal by 35MHz, thereby obtaining a 35MHz filtered signal, that is, one of the sampling signals in the 4-channel scanning.
[0186] Thus, through the processing of the RF module 402, the sampling data corresponding to the current multi-channel sampling configuration can be separated from the antenna signal SAT1. The sampling data is the radio frequency modulated signal SRF1 in the foregoing example. The radio frequency modulated signal SRF1 can be transmitted to the AD conversion unit for analog-to-digital conversion to obtain a corresponding digital signal SD1.
[0187] In this application, the AD conversion unit 403 is configured to perform analog-to-digital conversion. In different implementations, the digital sampling frequency of the AD conversion unit 403 can be different. For example, the digital sampling frequency of the AD conversion unit 403 can be 80MHz, 44MHz, etc.
[0188] In different implementations of this application, the AD conversion unit 403 can be integrated in the RF module 402, or the AD conversion unit 403 can be integrated in the baseband module 440, or separately configured between the RF module 402 and the baseband module 440.
[0189] In this application, the baseband module 440 in the electronic device can be configured to perform digital processing of signals.
[0190] In this application, the baseband module 440 in the electronic device can be configured to perform digital processing of signals.
[0191] In some embodiments, with reference to Figure 10The group of frequency shifting units can be implemented by a plurality of digital down converters (DDC) units. For example, the group of frequency shifting units can include DDC1 to DDCn. The frequency shifting capability of different DDCs is relatively fixed. The signal dividing module can control the power-on operation of different DDCs in different channels under the control of the control module 405, so as to realize the corresponding frequency shifting processing in different channels.
[0192] In the example as shown in FIG. 4, each DDC can be used to separate the data segment of one channel from the digital signal SD1. For example, the DDC1 can be used to separate the data segment of channel 1 from the digital signal SD1. Through the processing of the DDC1, the center frequency of the frequency segment corresponding to the channel 1 in the digital signal SD1 can be moved to 0 MHz. Thus, the data segment of the channel 1 can be obtained through subsequent filtering processing. Figure 10
[0193] The signal dividing module 441 can further include a group of filtering units. The group of filtering units can be used to respectively perform digital filtering on the sampling data after frequency shifting processing (for example, the digital signal SD1), and obtain the data segment corresponding to each of the two or more channels included in the digital signal SD1.
[0194] For example, the number of filtering units can be the same as the number of frequency shifting units. In some implementations, the pass frequency band of each filtering unit can be the same. For example, the pass frequency band of each filtering unit can be the width of one channel, that is, 22 MHz. The center frequency of each filtering unit can be 0 MHz.
[0195] In the present application, each filtering unit and one frequency shifting unit can form a signal dividing link. The signal dividing link can be used to separate and obtain the data segment corresponding to one channel from the digital signal SD1.
[0196] In some embodiments, as shown in FIG. 4, the signal dividing module 441 can include a group of frequency shifting units and a group of filtering units. The group of frequency shifting units can be used to perform frequency shifting processing on the sampling data (for example, the digital signal SD1) to obtain the sampling data after frequency shifting processing (for example, the digital signal SD1). The group of filtering units can be used to perform digital filtering on the sampling data after frequency shifting processing (for example, the digital signal SD1) to obtain the data segment corresponding to each of the two or more channels included in the digital signal SD1. Figure 10 As shown, the filter unit group can be implemented by a plurality of digital low pass filters (LPF) with the same pass band. For example, the filter unit group can include LPF1 to LPFn. In different embodiments, the LPF can be a Finite Impulse Response (FIR) filter, and / or an Infinite Impulse Response (IIR). It should be noted that in the present example, the RF module 402 can also be configured with an analog LPF unit. Unlike the filtering capability of the analog signal provided by the analog LPF unit, in the present example, the LPF unit in the signal division module 441 can provide the filtering capability of the digital signal.
[0197] It should be noted that in the embodiments of the present application, the center frequency of a certain channel in the digital signal SD1 on the current link is moved to 0 MHz by DDC for digital down-conversion, and then the data segment of the channel is obtained by digital filtering through the LPF. In other embodiments, only the LPF unit can be configured in the channel division module 441. The pass frequency of different LPF units can correspond to the frequency of different channels in the digital signal SD1. In this way, without digital down-conversion by DDC, only by digital filtering of different pass bands of the LPF on different links, the respective data segments corresponding to each channel can be screened and obtained from the digital signal SD1.
[0198] The matching module 442 can 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 can be based on the baker code of the target protocol type.
[0199] For example, in some embodiments, the matching module 442 can perform correlation peak matching between the data segment corresponding to each channel 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.
[0200] In other embodiments, for any given data segment corresponding to a channel, the matching module 442 can use a sliding window to sample and match data on that data segment. When data in a window matches the baker code of the target protocol type, the corresponding counter is incremented by 1. The matching module 442 can continue to slide the window, resample the data segment, and continue to match data in new windows with the baker code of the target protocol type. When a match is successful, the counter is incremented by 1. This process is repeated until the counter value reaches a preset threshold, at which point the corresponding data segment is considered to have successfully matched the target protocol type. That is, the transmission of the data segment uses the target protocol type, and the channel used to receive the data segment can be the target channel.
[0201] Alternatively, if the counter value still hasn't reached the preset threshold when the sliding window reaches the end of a data segment for that channel, then the data segment fails to match the target protocol type. In other words, the transmission of that data segment did not use the target protocol type.
[0202] In specific implementations, such as Figure 10 As shown, the functionality of the matching module 442 can be implemented through a group of listening units with carrier sensing capability. For example, the listening unit group may include two or more Clear Channel Assessment (CCA) units. For instance, the listening unit group may include CCA1 to CCAn.
[0203] In some embodiments of this application, the number of CCAs in the matching module 442 can be the same as the number of DDCs in the frequency shift unit group and / or the number of LFPs in the filter unit group. At the same time, one DDC, one LFP, and one CCA can jointly perform the functions of filtering a channel data segment from the sampled data and determining whether it is a target channel through carrier sensing. In this application, the CCA, LFP, and DDC used for processing a channel can constitute a signal processing link.
[0204] Furthermore, in this application, each signal processing link can correspond to a CCA identifier. The CCA identifier can be implemented using a high / low level or 0 / 1. This CCA identifier can be used to indicate whether the data segment being processed on the current signal processing link is data transmitted via the target protocol type.
[0205] Taking the CCA identifier implemented through high / low levels as an example.
[0206] When the CCA flag is high, it indicates that the target protocol type is used for the data segment / channel selected by the current signal processing link. Conversely, when the CCA flag is low, it indicates that the target protocol type is not used for the data segment / channel selected by the current signal processing link.
[0207] Taking the implementation of CCA identification through 0 / 1 as an example.
[0208] When the CCA identification is 1, it indicates that the data segment obtained by the current signal processing link screening uses the target protocol type of the channel of the data segment. Correspondingly, when the CCA identification is 0, it indicates that the data segment obtained by the current signal processing link screening does not use the target protocol type of the channel of the data segment.
[0209] In the following examples, the implementation of CCA identification through 0 / 1 is taken as an example.
[0210] In the process of initializing each component in the electronic device as shown in FIG. 4A, the CCA identification of each signal processing link can be configured as 0. Figure 4
[0211] After the matching module 442 determines that the matching on a certain signal processing link is successful, the CCA identification of the signal processing link can be configured as 1. In order to facilitate other modules to identify the target channel according to the CCA identification.
[0212] It should be noted that in some cases, the matching module 442 may appear two or more data segments matching successfully through carrier sensing of each CCA.
[0213] Then, the matching module 442 can only configure the CCA identification of the earliest received data segment among these data segments as 1. The CCA identification of other data segments remains 0. That is, the channel of the earliest received data segment transmitted using the target protocol type is taken as the target channel. Alternatively, the matching module 442 can configure the CCA identification of each matching successful data segment as 1. Correspondingly, when the electronic device needs to determine the target channel, the target channel can be selected according to the actual situation according to the relevant parameters (such as RSSI) of the multiple channels corresponding to the CCA identification configured as 1. For example, the channel with the largest RSSI is taken as the target channel.
[0214] The above briefly describes the composition and working mechanism of the signal division module 441 and the matching module 442 involved in the embodiments of the present application. Thus, in the multi-channel sampling process, the data segments of each channel are screened according to the sampling data, and whether the channel of each data segment is the target channel is determined.
[0215] It should be noted that in the examples provided by the embodiments of the present application, the signal dividing module 441 includes multiple DDCs and LPFs, and the matching module 443 includes multiple CCAs, which are taken as examples for description. In the specific implementation process, the signal dividing module 441 and / or the matching module 443 can also not be configured or not completely configured according to the above-mentioned hardware composition. For example, the functions of the DDCs, LPFs or CCAs in the signal dividing module 441 and / or the matching module 443 can be chips or circuits with logical implementation capabilities, which realize the frequency shifting function, the filtering function or the carrier sensing function based on corresponding codes.
[0216] As shown in FIG. 4, the electronic device can further include a parsing module 444 and a computing module 443 and an ACG unit 445. Figure 4
[0217] The parsing module 444 can determine a target channel for a channel corresponding to a data segment of a signal processing link with a CCA identifier of 1. The parsing module 444 can further parse a data segment of the target channel and other data received on the target channel according to a target protocol type, so as to obtain valid data transmitted through the target channel.
[0218] The computing module 443 can also determine a target channel for a channel corresponding to a data segment of a signal processing link with a CCA identifier of 1. The computing module 443 can further be configured to calculate a digital average power of the target channel according to a data segment corresponding to the target channel. The digital average power value can be used to adjust the RF gain of the RF module 402 in the process of performing amplification processing, which can also be referred to as the AGC gain or AGC Gain.
[0219] As an example, the computing module 443 can obtain the digital average power of a certain channel according to the following formula (1).
[0220] Formula (1):
[0221] wherein Digital_power average is the digital average power. N is the number of IQ data pairs required for calculating the digital average power. The N can be determined according to the data segment corresponding to the target channel. The N is required to be added to the calculation together with its sign in the calculation process of the AD conversion unit 403.
[0222] In the present application, the computing module 443 can also be configured to calculate a corresponding RSSI and other parameters of the antenna signal received by the antenna module 401 for the target channel according to the data segment of the target channel and the AGC gain of the RF module 402 adjusted according to the digital average power. The calculated RSSI can be used for judging the current communication quality, being displayed alone, screening the target data segment from multiple matched data segments to determine the target channel, etc.
[0223] For example, the working mechanism of the electronic device with the composition as shown in Figure 4 The following takes the composition of the electronic device as shown in Figure 4 The following takes the composition of the electronic device as shown in Figure 11 The following takes the composition of the electronic device as shown in
[0224] Referring to Figure 11 Taking n equal to 5 as an example. The channel division module of the electronic device can include DDC1 to DDC5, and there are LPF1 to LPF5 corresponding to DDC1 to DDC5 respectively. Each LFP can be coupled with a CCA. For example, LPF1 is coupled with CCA1, LPF2 is coupled with CCA2, LPF3 is coupled with CCA3, LPF4 is coupled with CCA4, and LPF5 is coupled with CCA5. Thus, the matching processing of each data segment is realized through the CCA to determine whether there is a target channel.
[0225] Among them, DDC1 and LPF1 can constitute a signal division link 1 for realizing the screening of a channel data segment. DDC1, LPF1 and CCA1 can constitute a signal processing link 1 for realizing the screening and matching of a channel data segment from the sampling data.
[0226] Similarly, DDC2, LPF2 and CCA2 can constitute a signal processing link 2, DDC3, LPF3 and CCA3 can constitute a signal processing link 3, DDC4, LPF4 and CCA4 can constitute a signal processing link 4, and DDC5, LPF5 and CCA5 can constitute a signal processing link 5.
[0227] The electronic device as shown in Figure 11 The electronic device as shown in Figure 10 It can be understood that based on the composition as shown in
[0228] The following takes the electronic device determining to perform 5-channel multi-channel scanning as an example.
[0229] Combined with the foregoing description of the RF module 402 and the functions of each module therein, the 40MHz bandwidth digital signal SD1 obtained after processing by the AD conversion unit 403 can be input to modules such as the signal division module 441 as shown in Figure 11 for digital processing.
[0230] It should be noted that in combination with the example of analog down-conversion processing in Figure 9 , in a 5-channel scanning, the center frequency of the sampling data SD_A1 can be moved to 0MHz after analog down-conversion processing. 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.
[0231] In a 4-channel scanning, the center frequency of the sampling data SD_B1 can be moved to 0MHz after down-conversion processing. Correspondingly, in this data segment, the center frequency of channel 1 is -7.5MHz, the center frequency of channel 2 is
[0232] -2.5MHz, the center frequency of channel 3 is 2.5MHz, and the center frequency of channel 4 is 7.5MHz.
[0233] In a 3-channel scanning, the center frequency of the sampling data SD_C1 can be moved to 0MHz after down-conversion processing. 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.
[0234] In a 2-channel scanning, the center frequency of the sampling data SD_D1 can be moved to 0MHz after down-conversion processing. Correspondingly, in this data segment, the center frequency of channel 1 is -2.5MHz, and the center frequency of channel 2 is 2.5MHz.
[0235] That is, in the digital signal SD1 under different scenarios, the center frequency points corresponding to each channel can include at least 8 different cases of -10MHz, -7.5MHz, -5MHz, -2.5MHz, and 2.5MHz, 5MHz, 7.5MHz, and 10MHz.
[0236] Then, in the implementation of the scheme provided in Figure 11 , DDC1 to DDC5 can respectively provide at least 8 different frequency shift capabilities of -10MHz, -7.5MHz, -5MHz, -2.5MHz, and 2.5MHz, 5MHz, 7.5MHz, and 10MHz.
[0237] As an example, DDC1 can be used for 0MHz frequency shift processing. DDC2 can be used for -2.5MHz and / or -5MHz frequency shift processing. DDC3 can be used for 2.5MHz and / or 5MHz frequency shift processing. DDC4 can be used for -7.5MHz and / or -10MHz frequency shift processing. DDC5 can be used for 7.5MHz and / or 10MHz frequency shift processing.
[0238] In this way, by coordinating DDC1 to DDC5 and LPF1 to LPF5, the data segments corresponding to each channel can be obtained based on the digital signal SD1.
[0239] For example, refer to Figure 12 .like Figure 12 As shown in 1201, DDC1 can perform a 0MHz frequency shift on the sampled data SD_A1 that has been processed in the radio frequency domain. That is, the data distribution of the sampled data SD_A1 after DDC1 processing is the same in the frequency domain as the data after radio frequency domain processing. Thus, the data segment within + / -11MHz of the center frequency (0MHz) of the sampled data SD_A1 corresponds to channel 3.
[0240] Therefore, after the sampled data SD_A1 is filtered by LPF1, the data with a bandwidth of 22MHz that is retained corresponds to the data segment (such as data segment 3) of channel 3.
[0241] Figure 12 1202 in the example shows a logic example under the condition of frequency shifting to a non-0MHz frequency.
[0242] In example 1202, the example used is to obtain data segment 5 corresponding to channel 5 based on the sampled data SD_A1 processed in the radio frequency domain. The methods for obtaining other channels can be found in the example and will not be elaborated further.
[0243] As shown in 1202, the sampled data SD_A1 after radio frequency domain processing can be frequency shifted by -10MHz using DDC4, thereby moving the center frequency of the data segment corresponding to channel 5 in the frequency domain to 0MHz. In this way, after the sampled data SD_A1 is filtered by LPF4, the data with a bandwidth of 22MHz that is retained corresponds to the data segment (such as data segment 5) corresponding to channel 5.
[0244] Similarly, by shifting the frequency by 0MHz using DDC1 and filtering by 22MHz using LPF1, data segment 3 corresponding to channel 3 can be obtained. By shifting the frequency by -5MHz using DDC2 and filtering by 22MHz using LPF2, data segment 4 corresponding to channel 4 can be obtained. By shifting the frequency by 5MHz using DDC3 and filtering by 22MHz using LPF3, data segment 2 corresponding to channel 2 can be obtained. By shifting the frequency by -10MHz using DDC4 and filtering by 22MHz using LPF4, data segment 5 corresponding to channel 5 can be obtained. By shifting the frequency by 10MHz using DDC5 and filtering by 22MHz using LPF5, data segment 1 corresponding to channel 1 can be obtained.
[0245] The above Figure 12An example of division logic for different channels is provided. In some embodiments, the shifting table and the index table pre-configured in the electronic device can be used to implement the digital down conversion each time the DDC performs the digital down conversion.
[0246] For example, referring to Figure 13 The digital down conversion of the data segment 1 is taken as an example. The data segment 1 can include the data d0 of the first bit (marked as CNT=0), the data d1 of the second bit (marked as CNT=1), the data d2 of the third bit (marked as CNT=2), the data d3 of the fourth bit (marked as CNT=3), the data d4 of the fifth bit (marked as CNT=4), and so on.
[0247] The electronic device can implement the 2.5MHz digital down conversion of the data segment 1 according to the pre-configured 2.5MHz shifting table. In the following description, the digital down conversion is also referred to as the shifting processing.
[0248] As an example, the electronic device can be configured with the shifting coefficients corresponding to each bit in the data segment as shown in Table 1. In some implementations, the shifting coefficients of each bit shown in Table 1 can be obtained according to the sampling rate of the AD conversion unit 403 and the shifting processing mechanism of the 2.5MHz analog signal.
[0249] In the table, 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.
[0250] It should be noted that in this application, the shifting coefficient can include two parts: the part before the symbol (such as + / -) is the coefficient corresponding to the real part, and the part after the symbol is the coefficient corresponding to the imaginary part. The symbol + in the shifting coefficient corresponds to indicating the shifting processing in the low frequency direction. Conversely, the symbol - in the shifting coefficient corresponds to indicating the shifting processing in the high frequency direction.
[0251] Table 1
[0252] 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 …… ……
[0253] Based on the table 1 and the data of each bit in the data segment 1, the data of each bit after the 2.5MHz shifting processing can be obtained.
[0254] For example, referring to Figure 13As shown, in combination with Table 1, the electronic device (e.g., the DDC3 of the electronic device) can obtain the d0' corresponding to the CNT0 after 2.5MHz frequency shifting according to the d0 corresponding to the CNT0 and the frequency shifting coefficient (e.g., 1.0+0.0) corresponding to the CNT0.
[0255] The DDC3 of the electronic device can obtain the d1' corresponding to the CNT1 after 2.5MHz frequency shifting according to the d1 corresponding to the CNT1 and the frequency shifting coefficient (e.g., 0.93-0.34) corresponding to the CNT1.
[0256] The DDC3 of the electronic device can obtain the d2' corresponding to the CNT2 after 2.5MHz frequency shifting according to the d2 corresponding to the CNT2 and the frequency shifting coefficient (e.g., 0.75-0.65) corresponding to the CNT2.
[0257] The DDC3 of the electronic device can obtain the d3' corresponding to the CNT3 after 2.5MHz frequency shifting according to the d3 corresponding to the CNT3 and the frequency shifting coefficient (e.g., 0.48-0.87) corresponding to the CNT3.
[0258] The DDC3 of the electronic device can obtain the d4' corresponding to the CNT4 after 2.5MHz frequency shifting according to the d4 corresponding to the CNT4 and the frequency shifting coefficient (e.g., 0.14-0.99) corresponding to the CNT4. The same applies to other CNTs.
[0259] Thus, the d0', d1', d2', d3', d4', and the like can be the data segment after the DDC3 performs 2.5MHz frequency shifting on the data segment 1.
[0260] In this example, the frequency shifting table corresponding to the 2.5MHz frequency shifting length can be referred to as the basic frequency shifting table. Referring to Figure 14 , the electronic device can also store an index table corresponding to other frequency shifting lengths. It can be understood that the other frequency shifting lengths can include: -10MHz, -7.5MHz, -5MHz, -2.5MHz, and 5MHz, 7.5MHz, and 10MHz, and the like. It can be seen that the other frequency shifting lengths are all integer multiples of 2.5MHz. Therefore, the frequency shifting coefficients corresponding to the other frequency shifting lengths can all be obtained from the basic frequency shifting table according to the index table.
[0261] As an example, Table 2 below provides an example of an index table for 5MHz frequency shifting processing.
[0262] Table 2
[0263] CNT Index identification 0 0 1 2 2 4 …… ……
[0264] As shown in Table 2, 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 correspondence table, to realize 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 correspondence table, to realize 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 correspondence table, to realize 5MHz frequency shift processing. And so on.
[0265] In this way, through the index table of 5MHz frequency shift processing shown in Table 2, and the 2.5MHz frequency shift correspondence table, the DDC can realize 5MHz frequency shift processing on the data segment through table lookup.
[0266] It should be noted that in the above examples, the basic frequency shift correspondence table is taken as an example of the 2.5MHz corresponding frequency shift correspondence table. In other embodiments, the corresponding frequency shift length of the basic frequency shift correspondence table can also be different from 2.5MHz. For example, the basic frequency shift correspondence table can be a -2.5MHz corresponding frequency shift correspondence table. In different implementations, the selection of the corresponding frequency shift length (such as referred to as the basic frequency shift length) of the basic frequency shift correspondence table can follow the following rules: all frequency shift lengths that need to be provided by the electronic device can be obtained by multiplying the basic frequency shift length by an integer multiple coefficient. In this way, the frequency shift coefficients of all frequency shift lengths can be obtained in the basic frequency shift correspondence table.
[0267] In this way, the DDC on each signal processing link can provide corresponding frequency shift capability. Then, through the LPF, the data segment of a single channel can be obtained through filtering.
[0268] For example, taking 5-channel scanning as an example. Through the above frequency shift processing and filtering processing, data segment 1 to data segment 5 corresponding to channel 1 to channel 5 can be obtained.
[0269] The data segment 3, the data segment 4, the data segment 2, the data segment 5, and the data segment 1 can be transmitted to the corresponding CCA for carrier sensing, so as to determine whether there is a data segment using the target protocol type in the data segment through matching processing.
[0270] In combination with Figure 15 The mechanism of 1501 and 1502 for matching processing of CCA is briefly described.
[0271] In this application, the electronic device can perform matching processing for each of the acquired data segments. This matching processing can be based on a Baker code (such as a reference Baker code) corresponding to a preset target protocol type. Based on this matching processing, the electronic device can determine the data segments using the target protocol from the currently acquired data segments (such as data segments 1 to 5).
[0272] For example, when the target protocol type is 802.11b, the reference Baker code can be the Baker code corresponding to the preamble or header indicated by the 802.11b protocol. As an example, the reference Baker code can be the 11-bit Baker code corresponding to the 802.11b protocol.
[0273] In some embodiments, the matching process may be based on correlation peak detection.
[0274] Taking the detection of correlation peaks in data segment 1 corresponding to channel 1 to determine whether data segment 1 is a target data segment using the target protocol type as an example, the electronic device can determine the number of valid correlation peaks corresponding to data segment 1 based on the reference Baker code and data segment 1. Valid correlation peaks can be correlation peaks whose peak value is greater than a preset peak threshold. In some implementations, this number of valid correlation peaks can also be referred to as correlation peak information.
[0275] As an example, let's take data segment 1, which includes 10 bits of digital information. The listening unit can determine the number of valid correlation peaks corresponding to data segment 1 based on the preset detection window length and the sliding step size. The detection window length can be determined based on parameters such as the total length of data segment 1, the length of the reference Baker code, and the sampling factor during data acquisition.
[0276] Taking a preset detection window length of 4 bits and a sliding step size of 1 bit as an example.
[0277] like Figure 15 As shown in 1501, the listening unit (such as CCA5) can generate correlation peak 1 corresponding to the data in the current detection window (such as detection window 1) based on the first 4 bits of data segment 1 and the reference Baker code. If the peak value of correlation peak 1 is greater than the peak value threshold, correlation peak 1 is confirmed as a valid correlation peak. Then, the counter set in the listening unit to record the number of valid correlation peaks is incremented by 1.
[0278] Next, the detection window can slide backward according to the sliding step size. For example, as Figure 15As shown in 1502, the data in the detection window 2 can include the 2nd to 5th digit information in the data segment 1. Correspondingly, the listening unit can generate a correlation peak 2 corresponding to the data in the current detection window (e.g., the detection window 2) according to the data in the detection window 2 and the reference Baker code. In the case that the peak value of the correlation peak 2 is less than the peak threshold value, it is confirmed that the correlation peak 2 is not a valid correlation peak. Then, the counter set in the listening unit for recording the number of valid correlation peaks does not record.
[0279] By analogy, until the detection window slides to the last digit of the data segment 1.
[0280] The CCA unit of the matching module 442 can determine whether the correlation peak of the data in each detection window is a valid correlation peak, and then record the number of valid correlation peaks in the counter.
[0281] In some embodiments, after completing the detection of the data in all data segments 1, the matching module 442 can compare the value in the counter with the preset number threshold. In the case that the value (i.e., the number of valid correlation peaks corresponding to the data segment 1) is greater than the preset number threshold, it is determined that the data segment 1 is the target data segment. Conversely, in the case that the number of valid correlation peaks corresponding to the data segment 1 is less than the preset number threshold, it is determined that the data segment 1 is not the target data segment.
[0282] In other embodiments, the electronic device can determine that the correlation peaks are continuously present in the case that the number of valid correlation peaks in the data segment 1 is greater than the number threshold, and then determine that the data segment 1 is the target data segment. Thus, the accuracy of determining the target data segment is improved.
[0283] Similarly, the matching module 442 can perform the above matching processing on other data segments (e.g., data segments 2 to 5), so as to determine the target data segment included in the data segments 2 to 5.
[0284] In this way, the matching module 442 can determine the channel corresponding to the target data segment in the sampling data SD_A1 as the target channel using the target protocol type. Correspondingly, the matching module 442 can configure the CCA identifier corresponding to the target channel as high (or 1). Similarly, after completing the scanning and analysis of the sampling data SD_A1, the electronic device can also perform scanning and analysis on the sampling data SD_A2 and the sampling data SD_A3, so as to determine the target channel in the channels 1 to 13 in the current environment.
[0285] In some implementations, the channel 1 to the channel 13 can include one target channel (such as the channel 1), and after the scanning resolution is completed, the CCA identifier of the channel 1 corresponding to the signal processing link can be configured as high level (or 1), and the CCA identifiers of the links of other channels remain low level (or 0).
[0286] In some other implementations, the channel 1 to the channel 13 can include multiple channels using a target protocol type, and the matching module 442 can determine the channel using the target protocol type that receives the data earliest as the target channel according to the order of receiving the data of the multiple channels using the target protocol type, and configure the CCA identifier of the channel as high level (or 1).
[0287] In this way, through the above description, in the logical implementation as shown in Figure 11 , the target channel using the target protocol type represented by the CCA identifier can be identified in the case of scanning multiple channels (such as 5 channels) at one time.
[0288] Thereafter, the resolution module 444 can continue to receive data for subsequent communication according to the channel whose CCA identifier is configured as high level (or 1). Further, the data received on the target channel is resolved through the target protocol type to obtain the valid data carried therein.
[0289] It should be noted that in combination with the above description of the working mechanism of the control module 405 for controlling the components in the RF module 402 in different scenarios, the control module 405 can also be used to enable the control of the components in the baseband module 440 through a digital control signal stream (such as a DS control signal stream) in different scenarios. Further, the baseband module 440 can provide digital processing capability corresponding to the current multi-channel scanning in different scenarios.
[0290] For example, referring to Figure 16 , a logical diagram of a scanning control method for digital signal processing provided by the embodiments of the present application is shown.
[0291] As shown in Figure 16 , the DS control signal stream can include DS control signal 1 to DS control signal 3.
[0292] As shown in 1601 in Figure 16 , the control module 405 can control one or more DDCs in the DDC unit group to be powered on through the DS control signal 1. Correspondingly, as shown in 2002 in Figure 20 , the DDC unit group can enable the DDCs indicated by the DS control signal 1 to be powered on according to the DS control signal 1.
[0293] As shown in Figure 16As shown in 1601 of FIG. 16, the control module 405 can control one or more LPFs in the LPF unit group to be powered on through the DS control signal 2. Correspondingly, as shown in 2002 of FIG. 20, the LPF unit group can enable the LPF power-on operation indicated by the DS control signal 1 according to the DS control signal 2. Figure 20
[0294] As shown in 1601 of FIG. 16, the control module 405 can control one or more LPFs in the LPF unit group to be powered on through the DS control signal 2. Correspondingly, as shown in 2002 of FIG. 20, the LPF unit group can enable the LPF power-on operation indicated by the DS control signal 1 according to the DS control signal 2. Figure 16 Figure 20
[0295] It can be understood that, based on the scheme as shown in 1602 of FIG. 16, during the multi-channel scanning, the control module 405 can be configured to control the DDC, LPF and CCA in the baseband module 440 that are in the working state (i.e., the signal processing link in the working state) through the control signal, so as to realize the corresponding number of single-channel or multi-channel scanning. Figure 16
[0296] As an implementation, the control module 405 can be coupled with each of the DDC1 to DDCn, each of the LPF1 to LPFn, and each of the CCA1 to CCAn through the control signal line.
[0297] In actual work, the control module 405 can determine that m channels need to be used for synchronous scanning according to the determined scanning configuration. m is a positive integer less than or equal to n.
[0298] In the case where m is equal to 1, the electronic device can be caused to perform single-channel scanning. Correspondingly, in the case where m is greater than 1, multi-channel scanning can be performed.
[0299] Taking the case where m is greater than 1 and the electronic device performs multi-channel scanning as an example.
[0300] The control module 405 can enable m DDCs in the DDC1 to DDCn to be powered on through the control signal line, and the other DDCs are not powered on. So as to realize m times of frequency shift processing on the sampling data through the m DDCs. Which can include a 0MHz frequency shift processing (i.e., no movement in the frequency domain). It can be understood that, since the frequency shift lengths of the frequency shift processing provided by different DDCs are different, the data segments covered after the center frequency points of the sampling data after the m frequency shift processing are expanded to both sides by 11MHz can correspond to the data transmitted in different channels.
[0301] The control module 405 can enable m LPFs in the LPF1 to LPFn to be powered on through the control signal line, and other LPFs are not powered on. So as to filter the m pieces of sampling data after frequency shift processing through the m LPFs respectively, and then obtain the data segments corresponding to the m channels respectively.
[0302] The control module 405 can enable m CCAs in the CCA1 to CCAn to be powered on through the control signal line, and other CCAs are not powered on. So as to perform matching processing on the data segments of the m channels obtained through the m CCAs respectively, so as to determine whether the target channel is included in the m channels corresponding to the m data segments.
[0303] It can be understood that under the control of the control module 405, the m DDCs, m LPFs and m CCAs can be the DDCs, LPFs and CCAs of the m signal processing links. Thus, the enablement control of the m signal processing links is realized, and then the baseband module 440 can smoothly realize the analysis and processing of the sampling data of the m channels. Further, through the multi-channel scanning scheme, the target channel using the target protocol type can be quickly determined through a small number of scanning and analysis. The CCA identifier of the target channel can be configured as 1.
[0304] Through the control mechanism as shown in Figure 16 , the electronic device can provide corresponding digital processing capability in different numbers of multi-channel scanning processes.
[0305] In combination with the foregoing description of the DDC, LPF and CCA, since the frequency shift processing capability provided by the DDC is relatively fixed, the signal processing links enabled to be powered on by the control module 405 through the DS control signal flow in different scenarios are also relatively fixed. In some embodiments, the correspondence between different scanning configurations and the DS control signal flow can be pre-configured in the electronic device, so that the electronic device can adopt the corresponding DS control signal flow to control the corresponding signal processing link to be powered on after determining the scanning configuration.
[0306] As an example, taking n equal to 5, that is, 5 signal processing links are configured in the electronic device. It should be noted that in combination with the foregoing description of the DDC providing frequency shift processing capability on different signal processing links, since the frequency shift length of the frequency shift processing provided by different DDCs is relatively fixed, after the logical configuration of each signal processing link in the electronic device, the signal processing links enabled to be powered on can also be relatively fixed when actually supporting different numbers of channel scanning. Thus, the signal processing links enabled to be powered on (or become enabled to be effective) can provide a frequency shift length corresponding to the current number of scanning channels.
[0307] Referring to Figure 17, provide an example of enabling an effective signal processing link when the number of channels scanned is different.
[0308] As shown in FIG. 6, in some embodiments, taking 2-channel scanning as an example, the number of channels currently scanned by multi-channel scanning is 2. Figure 17
[0309] The control module 405 can control the signal processing link corresponding to DDC2-LPF2-CCA2 to be powered 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 processing based on the frequency shift processing capability of 2.5MHz provided by DDC2. Then, the carrier sensing is performed on the data segment by CCA2 to determine whether the data segment of channel 2 uses the target protocol type.
[0310] The control module 405 can also control the signal processing link corresponding to DDC3-LPF3-CCA3 to be powered 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 processing based on the frequency shift processing capability of 2.5MHz provided by DDC3. Then, the carrier sensing is performed on the data segment by CCA3 to determine whether the data segment of channel 1 uses the target protocol type.
[0311] In other embodiments, taking 3-channel scanning as an example, the number of channels currently scanned by multi-channel scanning is 3.
[0312] The control module 405 can control the signal processing link corresponding to DDC1-LPF1-CCA1 to be powered on, so as to obtain the data segment of channel 2 in the sampling data SD_C1 through filtering processing based on the 0MHz frequency shift processing of the sampling signal (such as sampling data SD_C1) by DDC1. Then, the carrier sensing is performed on the data segment by CCA1 to determine whether the data segment of channel 2 uses the target protocol type.
[0313] The control module 405 can also control the signal processing link corresponding to DDC2-LPF2-CCA2 to be powered on, 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 processing based on the frequency shift processing capability of 2.5MHz provided by DDC2. Then, the carrier sensing is performed on the data segment by CCA2 to determine whether the data segment of channel 3 uses the target protocol type.
[0314] The control module 405 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 processing based on the 5MHz frequency shift processing capability provided by DDC3. Then, the CCA3 performs carrier sensing on the data segment to determine whether the data segment of channel 1 uses the target protocol type.
[0315] In some other embodiments, for example, 4-channel scanning, that is, the number of channels of the current multi-channel scanning is 4.
[0316] The control module 405 can control the signal processing link corresponding to DDC2-LPF2-CCA2 to enable power-on, 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 processing based on the -2.5MHz frequency shift processing capability provided by DDC2. Then, the CCA2 performs carrier sensing on the data segment to determine whether the data segment of channel 3 uses the target protocol type.
[0317] The control module 405 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 processing based on the 2.5MHz frequency shift processing capability provided by DDC3. Then, the CCA3 performs carrier sensing on the data segment to determine whether the data segment of channel 2 uses the target protocol type.
[0318] The control module 405 can also control the signal processing link corresponding to DDC4-LPF4-CCA4 to enable power-on, 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 processing based on the -7.5MHz frequency shift processing capability provided by DDC4. Then, the CCA4 performs carrier sensing on the data segment to determine whether the data segment of channel 4 uses the target protocol type.
[0319] The control module 405 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 processing based on the 7.5MHz frequency shift processing capability provided by DDC5. Then, the CCA5 performs carrier sensing on the data segment to determine whether the data segment of channel 1 uses the target protocol type.
[0320] In some other embodiments, for example, 5-channel scanning, that is, the number of channels of the current multi-channel scanning is 5.
[0321] The control module 405 can control the signal processing link corresponding to DDC1-LPF1-CCA1 to be powered on, so as to perform 0MHz frequency shift processing on the sampling signal (such as sampling data SD_A1) based on DDC1, and then obtain the data segment of channel 3 in the sampling data SD_A1 through filtering processing. Then, the data segment is subjected to carrier sensing through CCA1, to determine whether the data segment of channel 3 uses the target protocol type.
[0322] The control module 405 can control the signal processing link corresponding to DDC2-LPF2-CCA2 to be powered on, so as to perform -5MHz frequency shift processing based on the frequency shift processing capability provided by DDC2, 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 processing. Then, the data segment is subjected to carrier sensing through CCA2, to determine whether the data segment of channel 4 uses the target protocol type.
[0323] The control module 405 can also control the signal processing link corresponding to DDC3-LPF3-CCA3 to be powered on, so as to perform 5MHz frequency shift processing based on the frequency shift processing capability provided by DDC3, 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 processing. Then, the data segment is subjected to carrier sensing through CCA3, to determine whether the data segment of channel 2 uses the target protocol type.
[0324] The control module 405 can also control the signal processing link corresponding to DDC4-LPF4-CCA4 to be powered on, so as to perform -10MHz frequency shift processing based on the frequency shift processing capability provided by DDC4, 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 processing. Then, the data segment is subjected to carrier sensing through CCA4, to determine whether the data segment of channel 5 uses the target protocol type.
[0325] The control module 405 can also control the signal processing link corresponding to DDC5-LPF5-CCA5 to be powered on, so as to perform 10MHz frequency shift processing based on the frequency shift processing capability provided by DDC5, 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 processing. Then, the data segment is subjected to carrier sensing through CCA5, to determine whether the data segment of channel 1 uses the target protocol type.
[0326] Thus, by the above example, configuring 5 DDCs with different frequency shift processing capabilities can 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. Thus, only the signal division links corresponding to the 5 DDCs (such as each DDC being coupled to a filter unit) need to be configured in the signal division module 441, and the support for data processing in various scenarios can be achieved. Further, the CCA coupled to each signal division link can perform matching processing on the corresponding data segment to determine whether the data segment is a data segment using the target protocol type.
[0327] It can be understood that, similar to the implementation described above, the logic composition as shown in Figure 11 may also be used to support single channel scanning. When single channel scanning is performed, the control module 405 can control the signal processing link corresponding to the DDC1-LPF1-CCA1 to be powered on. In this single channel scanning scenario, the digital signal SD1 input to the signal division module 441 can only include data of one channel. Thus, through the 0MHz frequency shift processing of the DDC1 and the filtering processing of the LPF1, the data segment of the single channel data can be obtained. Further, through the carrier sensing of the CCA1, it can be determined whether the channel is the target channel.
[0328] Thus, through the above description, the electronic device having the composition as shown in Figure 4 can adaptively support multi-channel scanning of different numbers of channels through the logical connection as shown in Figure 5 . At the same time, the electronic device can also support single channel scanning.
[0329] In addition, in combination with the above description of the AGC unit 445 and the calculation module 443, in some embodiments of the present application, the electronic device can also adaptively adjust the RF gain based on the target channel when performing multi-channel scanning, so that the target data segment can be accurately amplified.
[0330] For example, referring to Figure 18 , the RF module 402 can perform radio frequency domain processing on the antenna signal SAT1. The radio frequency domain processing can include amplification processing. In some cases, the RF module 402 can be configured with an initial gain. Thus, when processing the antenna signal, the RF module 402 can perform amplification processing according to the initial gain before receiving the AGC gain sent by the AGC unit 445. Alternatively, the initial gain can be configured in the AGC unit 445. Thus, before receiving the digital average power of the target channel, the AGC unit 445 can use the initial gain to control the RF module 402 to perform amplification processing.
[0331] The radio frequency modulation signal SRF1 obtained by the RF module 402 after radio frequency domain processing can be transmitted to the AD conversion unit 403 for analog-to-digital conversion, thereby obtaining the digital signal SD1.
[0332] The AD conversion unit 403 can transmit the digital signal SD1 to the signal division module 441 for processing to obtain the data segments corresponding to each channel. For example, it can obtain data segments 1 to 5 corresponding to channels 1 to 5 respectively.
[0333] In addition, the AD conversion unit 403 can also transmit the digital signal SD1 to the AGC unit 445 so that the AGC unit 445 can combine the digital signal SD1 to determine that the amplification process after gain adjustment will not cause the truncation of effective data.
[0334] The data segments acquired by the signal segmentation module 441 can be transmitted to the CCA in the matching module 442 for carrier sensing. This carrier sensing is used to perform matching processing with the target protocol type, thereby determining the target channel.
[0335] Taking channel 2 as an example, which uses the target protocol type.
[0336] After carrier sensing, the CCA3 in the matching module 442 confirms that the input data segment 2 has been successfully matched, and the corresponding CCA identifier of the signal processing link is configured to 1. If other data segments fail to match, the corresponding CCA identifier remains unchanged at 0.
[0337] The calculation module 443 can determine the data segment (such as data segment 2) being processed on the link where CCA3 is located as the target data segment based on the CCA identifier being 1.
[0338] Thus, the calculation module 443 can calculate the corresponding digital average power based on data segment 2. For example, the calculation module 443 can calculate the corresponding digital average power of data segment 2 according to formula (1) provided in the example above. The corresponding digital average power of data segment 2 is the digital average power of the target channel.
[0339] like Figure 18 As shown, the calculation module 443 can transmit the digital average power to the AGC unit 445.
[0340] AGC unit 445 can determine the AGC gain corresponding to the target channel in the current scanning resolution process according to the digital average power of data segment 2 and the preconfigured reference power. The reference power can be a preconfigured single-channel power reference value. For example, AGC unit 445 can determine the AGC gain according to the difference between the digital average power of data segment 2 and the reference power. AGC unit 445 can also determine that no valid data will be truncated after amplification processing according to the AGC gain based on the digital signal SD1 provided by AD conversion unit 403. In some other embodiments, AGC unit can also determine the AGC gain based on digital signal SD1 only. For example, the AGC gain can correspond to the amplification of the corresponding radio frequency modulation signal SRF1 of digital signal SD1, and the bit width of the digital signal obtained after amplification based on the AGC gain can be equal to or close to the maximum bit width of AD conversion unit 403.
[0341] AGC unit 445 can transmit the determined AGC gain to RF module 402.
[0342] In this way, RF module 402 can perform amplification processing on the subsequent received antenna signals according to the AGC gain.
[0343] In some other embodiments of the present application, computing module 443 of the electronic device can also have the computing capability of RSSI and the like. In the present application, computing module 443 can accurately calculate the RSSI of the antenna signal according to the currently used RF gain (such as AGC gain) according to the preconfigured RSSI calculation method.
[0344] For example, continuing to refer to Figure 18 , computing module 443 can obtain the currently used AGC gain from RF module 402 in the case of needing to calculate the RSSI. It can be understood that the currently used AGC gain can correspond to the target channel (such as channel 2). Therefore, computing module 443 can accurately calculate the RSSI corresponding to channel 2 based on the AGC gain. For example, computing module 443 can determine the RSSI of the target channel (such as channel 2) using the scheme corresponding to formula (2) when the AGC gain is in the linear amplification interval according to the AGC gain. For another example, computing module 443 can determine the RSSI of the target channel (such as channel 2) using the scheme corresponding to Table 1 when the AGC gain is in the nonlinear amplification interval according to the AGC gain.
[0345] wherein formula (2) is as follows:
[0346] Formula (2): RX_RSSI = b - a*AGC_Gain, wherein (a>0).
[0347] Wherein, RX_RSSI is the RSSI of the target channel currently received by the antenna module 401. AGC_Gain is the gain (i.e., AGC gain) in the amplification process currently used by the RF module 402. b and a are related parameters of the LNA in the current RF module 402. The parameters a and b in the formula (2) can be determined according to the pre-analysis of the LNA configured in the RF module 402 and pre-set in the calculation module 443.
[0348] The following is an example of Table 3:
[0349] Table 3
[0350] Peak to mean value RSSI Peak to mean value CV1 Value a Peak to mean value CV2 Value b …… ……
[0351] As shown in Table 3, when the peak-to-average value is CV1, the corresponding RSSI can be value a. When the peak-to-average value is CV2, the corresponding RSSI can be value b. And so on.
[0352] It can be understood that in the embodiments of the present application, when the AGC gain is in the preset nonlinear amplification interval, the calculation module 443 of the electronic device can determine the RSSI currently received on the target channel according to the pre-configured corresponding relationship (such as Table 3 described above).
[0353] In some embodiments, the corresponding relationship can be the corresponding relationship between the peak-to-average value of the target channel corresponding data segment and the RSSI. Wherein, the peak-to-average value of the target channel corresponding data segment can correspond to the peak-to-average value of the relevant peak of the carrier sensing involved in the aforementioned matching process.
[0354] As a specific implementation, the corresponding relationship between the peak-to-average value and the RSSI can be stored in the electronic device in the form of a lookup table. The lookup table can include the corresponding relationship between each peak-to-average value and the RSSI in the interval where the AGC gain is greater than Gain max and the AGC gain is less than Gain min .
[0355] In this way, based on different RF gains, the calculation module can perform fine RSSI calculation according to the above two cases, thereby obtaining more accurate RSSI calculation effect.
[0356] It should be noted that in the above examples, the electronic device calculates the RSSI of the target channel through the calculation module 443. In other embodiments, the electronic device can also provide the ability to calculate the RSSI of all channels.
[0357] For example, referring to Figure 19In the example shown in FIG. 19, in the matching module 442 of the electronic device, a set of listening units and a set of RSSI calculation units can be included. In the example, the set of listening units can include n CCA units for performing carrier sensing on the signals on the n signal processing links, respectively.
[0358] The set of RSSI calculation units can provide RSSI calculation capability for the signals on the n signal processing links. In the example, the RSSI calculation scheme for each signal processing link can refer to the implementation as shown in FIG. 18. Figure 18
[0359] As an example, as shown in FIG. 19, in the matching module 442, n RSSI calculation units can be included to form the set of RSSI calculation units. For example, the n RSSI calculation units can include RSSI calculation unit 1 to RSSI calculation unit n. Figure 19
[0360] Each RSSI calculation unit and a CCA unit form a parallel structure. For example, CCA1 is in parallel with RSSI calculation unit 1, CCA2 is in parallel with RSSI calculation unit 2, and CCAn is in parallel with RSSI calculation unit n.
[0361] In the example, after the signal division module 441 obtains the n data segments corresponding to the n channels from the digital signal SD1, the n data segments can be transmitted to the RSSI calculation units while being subjected to carrier sensing by the CCA units, according to the scheme provided in FIG. 18. Figure 18
[0362] It should be noted that the components of the electronic device provided in the implementation of the above embodiments are only examples. In other embodiments, the electronic device can be further configured with more or fewer components.
[0363] As an example, referring to FIG. 20, in the example, the electronic device can be further configured with a DC removal module 405. In different implementations, the DC removal module 405 can be used to remove DC from an analog signal, or to remove DC from a digital signal. Figure 20 It can be understood that a DC signal can increase the power of the entire signal, which can cause the signal power of the part carrying valid data to be too high, resulting in inaccurate processing. In addition, the larger the DC signal, the greater the interference it can cause. Therefore, in the example, the DC removal module 405 is configured to remove the DC signal.
[0364] In some embodiments, as shown in FIG. 21, in the example, the electronic device can be further configured with a DC removal module 405. In different implementations, the DC removal module 405 can be used to remove DC from an analog signal, or to remove DC from a digital signal.
[0365] Figure 20 As shown in Figure 2002, a DC de-DC module 405a can be configured in the electronic device. In this example, the DC de-DC module 405a can be configured between the AD conversion unit 403 and the signal division module 441. The DC de-DC module 405a can be used to perform digital DC de-DC processing on the digital signal SD1.
[0366] In other embodiments, such as Figure 20 As shown in 2003, a DC-DC de-diversion module 405b and a DC-DC de-diversion module 405c can be configured in the electronic device. In this example, the DC-DC de-diversion module 405b is similar to the DC-DC de-diversion module 405a in the previous example and can be configured between the AD conversion unit 403 and the signal division module 441. The DC-DC de-diversion module 405b can be used to perform digital DC-DC de-diversion processing on the digital signal SD1. Furthermore, in the example of 2403, a de-value stream module 405c can be configured between the matching module 442 and the calculation module 443 and / or the parsing module 444. The de-value stream module 405c can be used to perform digital DC-DC de-diversion processing on the target data segment.
[0367] It is understandable that in other cases, the location and number of de-DC modules configured in electronic devices may differ from the examples of 2002 and 2003 described above. For example, the de-DC module may be configured before the AD conversion unit 403 to perform analog de-DC processing on analog signals.
[0368] refer to Figure 21 2101 in the example. In some embodiments, the electronic device may also be configured with a digital gain control module 406.
[0369] like Figure 21 As shown in 2102, the digital gain control module 406 can be configured between the matching module 442 and the parsing module 444. Thus, the target data segment can be digitally amplified by the digital gain control module 406 before entering the parsing module 444 for parsing. For example, it can be amplified from 4 bits to 7 bits. This allows the parsing module 444 to perform parsing based on the amplified data, thereby improving parsing accuracy.
[0370] In some other embodiments of this application, the electronic device may also be configured with a digital resampling unit / unit group.
[0371] It can be understood that, in order to ensure the accuracy of the digital processing process, the digital sampling frequency of each module for processing the digital signal (such as the matching module 442, the analysis module 444, the calculation module 443, etc.) needs to be matched with the AD conversion unit 403. For example, when the sampling frequency of the AD conversion unit 403 is 80MHz, the sampling frequency of each module for processing the digital signal can also be 80MHz. In some cases, the sampling frequency of the AD conversion unit 403 is different from the sampling frequency of each module for processing the digital signal. In this way, the electronic device can realize the unification of the sampling frequency by configuring a digital resampling unit, thereby ensuring the accuracy of the digital processing.
[0372] In the following examples, the sampling frequency of the AD conversion unit 403 is 80MHz, and the sampling frequency of each component in the baseband module 440 is 44MHz.
[0373] In some embodiments, with reference to Figure 22 , an example of the composition logic of an electronic device. In this example, the sampling frequency of the AD conversion unit 403 is 80MHz, and the sampling frequency of each component in the baseband module 440 is 44MHz. Figure 22 In the scheme provided, as shown in 2201, a digital resampling unit 407a can be configured between the AD conversion unit 403 and the signal division module 441.
[0374] As shown in 2202, the digital resampling unit 407a can be used for digital resampling processing of the digital signal SD1. It can be understood that, when the sampling frequency of the AD conversion unit 403 is 80MHz, the data distribution of each bit in the digital signal SD1 also corresponds to 80MHz. Through the processing of the digital resampling unit 407a, the data of each bit in the digital signal SD1 is adjusted to correspond to 44MHz. Thus, in the subsequent digital processing (such as frequency shift processing, filtering processing, carrier sensing, etc.), the processing of each bit data can be matched with the input data corresponding to the sampling data of the digital processing, thereby obtaining accurate digital processing results.
[0375] In some embodiments, with reference to Figure 23 , another example of the composition logic of an electronic device. In this example, the sampling frequency of the frequency shift unit group can be the same as that of the AD conversion unit 403, such as both being 80MHz. The sampling frequency of the filtering unit group and the sensing unit group in the back end is different from that of the AD conversion unit 403, such as both being 44MHz.
[0376] In this example, the sampling frequency of the AD conversion unit 403 is 80MHz, and the sampling frequency of each component in the baseband module 440 is 44MHz. Figure 23In the scheme provided, as shown in 2301, the digital resampling unit group 407b can be configured in the signal division module 441. For example, the digital resampling unit group 407b can be configured between the frequency shift unit group and the filtering unit group. The digital resampling unit group 407b can be used for digital resampling processing on the 100MHz bandwidth data after frequency shift processing.
[0377] As shown in 2302, the digital resampling unit group 407b can include n digital resampling units, such as RSP1 to RSPn. Each RSP (resample) can be configured in series between the DDC and the LPF on the signal division link. For example, RSP1 is in series between DDC1 and LPF1, RSP2 is in series between DDC2 and LPF2, and RSPn is in series between DDCn and LPFn.
[0378] In this way, the RSP on any link can perform digital resampling processing on the 100MHz bandwidth digital signal after frequency shift processing. Thus, the 100MHz bandwidth digital signal after frequency shift processing is adjusted from a sampling frequency of 80MHz to a sampling frequency of 44MHz. This enables the filtering unit group to provide accurate filtering results when performing digital filtering, and accurately obtain the data segments corresponding to each channel. The sampling frequency of each channel data segment can be 44MHz. Further, the backend digital processing components such as the listening unit group, the calculation module 443, and the analysis module 444 can perform accurate digital processing based on the sampling frequency of 44MHz.
[0379] It can be understood that, as an implementation manner, the digital resampling processing process can sample the 80MHz digital signal at a higher frequency to obtain a higher frequency sampling signal. For example, the 80MHz digital signal is converted into a 880MHz sampling signal. In a specific implementation, 1 bit of data of the 80MHz sampling signal can correspond to 10 bits of the 880MHz sampling signal. Then, based on the 880MHz sampling signal, a low-frequency sampling is performed to obtain a 44MHz sampling signal. For example, 1 bit of data in the 44MHz sampling signal can correspond to 20 bits of data in the 880MHz sampling data. Thus, the resampling from 80MHz to 44MHz is realized.
[0380] In this process, as the sampling frequency changes, the bit width of the digital signal also changes correspondingly. In the signal division module 441, the digital filtering process performed by the filtering unit group also corresponds to the selective extraction of data on different bit widths of the digital signal.
[0381] Therefore, in some embodiments, the digital resampling processing and the digital filtering processing can be combined.
[0382] As an example, see reference Figure 24 .like Figure 24 As shown in 2401, the signal division module 441 can be configured with a frequency shift unit group and a resampling filter unit group 407c.
[0383] The frequency shift unit group can include n DDCs to implement frequency shift processing of different lengths respectively.
[0384] As shown in 2402, the resampling filter unit group 407c may include n resampling filter units. Each resampling filter unit can provide digital resampling and digital filtering capabilities.
[0385] In this example, any one of the n resampling filter units can form a signal partitioning link with a DDC. Thus, the digital signal SD1 with an 80MHz sampling frequency, after being frequency-shifted by any DDC unit, still has a sampling frequency of 80MHz. This 100MHz bandwidth digital signal after frequency shifting can be transmitted to the resampling filter unit on the current link for resampling filtering, thereby obtaining a data segment with a 44MHz sampling frequency and a 22MHz bandwidth. This achieves the effect of providing digital processing capabilities for a different number of channels with a smaller logic area.
[0386] It is understandable that the above Figures 22 to 24 The provided solutions are only a few specific implementations of the digital resampling unit / unit group configuration, and do not constitute a specific limitation on the configuration of the digital resampling unit / unit group.
[0387] In other embodiments, the digital resampling unit / unit group may also have other configurations.
[0388] For example, refer to Figure 25 .like Figure 25 As shown in 2501, the digital resampling unit group 407d can be configured between the filter unit group and the matching module 442. As shown in 2502, in this example, the digital resampling unit group 407d can include n RSPs, such as RSP1 to RSPn. Each RSP can be connected in series on a signal processing link, between the LPF and CCA. This enables digital resampling between the data segment entering the CCA for carrier sensing on the signal processing link. In some embodiments, this scheme can be applied to scenarios where the sampling frequency of the DDC and LPF is the same as that of the AD conversion unit 403, but the sampling frequency of the CCA is different from that of the AD conversion unit 403.
[0389] Understandably, in combination Figure 19 The implementation of the RSSI calculation scheme in China is based on, for example... Figures 22 to 25the configuration of the digital resampling unit / unit group in the signal division module 441 can also be combined with the RSSI calculation in the signal division module 441, so that the RSSI is obtained in the case of configuring the digital resampling unit / unit group. Figure 19
[0390] For example, referring to Figure 26 For example, referring to Figure 25 For example, referring to
[0391] For example, referring to Figure 26 As shown in 2601 in
[0392] For example, referring to Figure 26 As shown in 2602 in
[0393] In some embodiments of the present application, the RSSI calculation unit group can also be configured in the signal division module 441 and coupled with the digital resampling unit / unit group in parallel.
[0394] For example, referring to Figure 27 For example, referring to Figure 25 For example, referring to
[0395] For example, referring to Figure 27 As shown in 2701 in
[0396] For example, referring to Figure 27 As shown in 2702 in
[0397] It should be noted that, in the above embodiments, the configuration of the DC removal module, the digital gain control module, the digital resampling unit / unit group, and the RSSI calculation unit / unit group configured on the signal processing link are respectively described. The various embodiments are not mutually exclusive. In other embodiments, any two or more of the above components can be flexibly selected and configured in the electronic device according to actual needs, so as to provide corresponding digital processing functions.
[0398] In this way, by means of the above Figures 5 to 27 described in the various embodiments, the scheme implementation of the electronic device composed as shown in Figure 4 in the multi-channel scanning / single-channel scanning process is introduced in detail.
[0399] In the embodiments of the present application, a scheme implementation of an electronic device automatically determining a current scanning configuration is also provided. The scanning configuration can include performing a single-channel scanning configuration or performing a multi-channel scanning configuration. In some implementations, the scanning configuration can also include performing a single-channel scanning configuration and a channel number required in the single-channel scanning process. In other implementations, the scanning configuration can also include performing a multi-channel scanning configuration and a channel number required in the multi-channel scanning process. It can be understood that after determining the scanning configuration, the electronic device can generate the RF control signal flow involved in the above examples to control the RF module to work in the corresponding state according to the scheme implementation as shown in Figure 8 , and provide analog signal processing capability corresponding to the current scanning configuration. Similarly, after determining the scanning configuration, the electronic device can also generate the DS control signal flow involved in the above examples to control the baseband module to work in the corresponding state according to the scheme implementation as shown in Figure 16 , and provide digital signal processing capability corresponding to the current scanning configuration.
[0400] In the embodiments of the present application, the scanning configuration can be related to the current location of the electronic device.
[0401] For example, in some embodiments, the electronic device can determine the scanning configuration according to a decision scheme A as shown in Figure 28 .
[0402] As shown in Figure 28 , in some implementations, the decision scheme A can include a specific implementation as shown in 281.
[0403] In this example, the electronic device can determine the scanning configuration according to the relevant information of the cell of the cellular network accessed by the current electronic device. The relevant information of the cell of the cellular network can include a cell ID and the like.
[0404] In this 281 scheme, the electronic device can be configured with a correspondence 2801. The correspondence 2801 can include a correspondence of at least one cell identity and a scan configuration. Based on the correspondence 2801 and the cell identity of the current cellular network, the electronic device can determine the scan configuration to be used currently.
[0405] As an example, Table 4 below shows an example of the correspondence 2801.
[0406] Table 4
[0407] Cell identification Scan configuration Identification A1 1 / 6 / 11 single channel scan Identification A2 5 channel multi-channel scan …… ……
[0408] In combination with the example of Table 4, taking the cell identity of the cellular network currently accessed by the electronic device as an example of identity A1. Then, according to the correspondence 2801, the electronic device can determine that single channel scanning is to be performed currently. According to the correspondence 2801, the electronic device can also determine that it is not necessary to perform single channel scanning on all channels in sequence, but only needs to perform single channel scanning on channel 1, channel 6 and channel 11 respectively. Further, the electronic device can enable a signal processing link (such as the signal processing link corresponding to DDC1-LPF1-CCA1) to work in power-on mode, so as to provide digital processing capability of single channel data. Figure 9
[0409] As shown in Figure 28 In some other implementations, the decision scheme A can include the specific implementation shown in 282.
[0410] As an example, the electronic device can determine the number of wireless access points (Access Point, AP) in the current location according to the information related to the cell of the cellular network currently accessed by the electronic device. The AP can have the ability to create a Wi-Fi network. As an example, the AP can correspond to the devices in the environment currently located by the electronic device, which have the ability to create a Wi-Fi network. For example, in the scenario shown in Figure 1 , the AP can include device 11, device 12 and device 13.
[0411] As an example, the electronic device can determine the number of APs based on the information related to the cell of the cellular network currently accessed by the electronic device (such as cell identity) according to the pre-configured correspondence 2802. In this example, the correspondence 2802 can include a correspondence of at least one cell identity and the number of APs. Based on the correspondence 2802 and the number of APs in the current location, the electronic device can determine the scan configuration to be used currently. As an example, Table 5 below shows an example of the correspondence 2802.
[0412] Table 5
[0413] Cell identification AP number Identification B1 Number 1 Identification B2 Number 2 …… ……
[0414] For example, the cell identifier of the cellular network currently accessed by the electronic device is identifier B1. Then, according to the correspondence relationship 2802, the electronic device can determine that the number of APs in the current location is number 1.
[0415] In the example of the 282 as Figure 28 determined by the electronic device, the electronic device can also determine the scanning configuration currently required according to the determined number of APs.
[0416] For example, the electronic device can be configured with an AP number threshold. When the number of APs in the current location is greater than the AP number threshold, the electronic device can determine to perform single-channel scanning. Alternatively, when the number of APs in the current location is less than the AP number threshold, the electronic device can determine to perform multi-channel scanning.
[0417] In combination with the example in Table 5, the cell identifier of the cellular network currently accessed by the electronic device is identifier B1.
[0418] According to the correspondence relationship of Table 5, the electronic device can determine that the number of APs in the current location is number 1. When number 1 is greater than the AP number threshold, it indicates that the network environment in the current environment is relatively complex, and then the electronic device can determine to use single-channel scanning as the current scanning configuration, thereby performing scanning processing on the distribution of each channel one by one.
[0419] It should be noted that in the above implementation, single-channel scanning is performed when the number of APs is greater than the AP number threshold, and multi-channel scanning is performed when the number of APs is less than the AP number threshold. In other embodiments, the judgment mechanism can be configured to perform multi-channel scanning when the number of APs is greater than the AP number threshold, and perform single-channel scanning when the number of APs is less than the AP number threshold. It can be understood that different judgment mechanisms have different effects and can adapt to the needs of different scenarios. The electronic device can flexibly determine / configure the above different judgment mechanisms according to actual conditions, and then obtain a scanning configuration that adapts to the current scenario.
[0420] In this way, through the decision scheme A as Figure 28 shown, the electronic device can determine the scanning configuration currently required, and then control the corresponding signal processing link in the electronic device to be powered on to work, to implement single-channel scanning or multi-channel scanning. Further, according to the scanning result, the electronic device can provide indoor positioning, indoor accurate navigation, device proximity discovery, and other services based on the data transmitted on the target channel and / or the related parameters (such as RSSI, etc.) of the data.
[0421] Referring to Figure 29The embodiments of the present application also provide a scanning control method, which enables the electronic device to accurately determine a current required scanning configuration. Figure 29 The provided scheme can also be referred to as decision scheme B. Through implementation of the scheme as shown in Figure 29 The scanning decision unit in the electronic device can also determine the scanning configuration, and then enable the electronic device to provide a corresponding service according to a scanning result corresponding to the scanning configuration. The scanning decision unit can be configured in the baseband module 440 of the electronic device, or in the control module 405 of the electronic device.
[0422] For example, as shown in Figure 29 The scheme can include the following steps.
[0423] S2901, the scanning decision unit performs channel scanning on a preset channel.
[0424] For example, in some embodiments, the channel scanning on the preset channel can be single-channel scanning on the preset channel.
[0425] The preset channel can be pre-configured in the electronic device. For example, the preset channel can include 1 / 6 / 11. For another example, the preset channel can include 1 / 5 / 9 / 13. In some other embodiments of the present application, the scanning on the preset channel can also be multi-channel scanning on the preset channel. The number of channels used in the multi-channel scanning process can be pre-configured.
[0426] The preset channel can be configured in the electronic device in various ways.
[0427] For example, the preset channel can be configured in the electronic device when the electronic device is shipped.
[0428] For another example, the preset channel can be determined according to stored historical data before the scanning decision module of the electronic device determines the current scanning configuration. In some implementations, the historical data can include channel information (such as channel number) used by the current electronic device in a channel scanning related service process before the current time. In some other implementations, the historical data can include channel information used by the electronic device in a channel scanning related service process, which is acquired by the electronic device from a cloud server and collected by other electronic devices of the same or related type as the current electronic device in the current region.
[0429] In this way, through scanning on the preset channel, the scanning decision unit can filter and obtain a target channel from the preset channel. Alternatively, the target channel can not be included in the preset channel. The target channel can be a channel using a target protocol type.
[0430] In the present example, the electronic device can perform S2902-S2904 in the case that the target channel exists in the preset channel. Correspondingly, the electronic device can perform S2905 in the case that the target channel does not exist in the preset channel.
[0431] S2902, the scanning decision unit acquires the hardware parameter of the AP corresponding to the target channel.
[0432] Through the processing of S2901, the scanning decision unit has screened and acquired the target channel in the preset channel.
[0433] In the present example, the scanning decision unit can acquire the hardware parameter of the AP using the target channel for data transmission. It can be understood that in the same scenario, the number of APs using the target channel can be one or more. In this way, when the number of APs using the target channel is more than one, the scanning decision unit can acquire the hardware parameter of each AP respectively.
[0434] In the present application, the hardware parameter of the AP can include at least one of the following: media access control address (Media Access Control Address, MAC) address, service set identifier (Service Set Identifier, SSID), basic service set identifier (Basic Service Set Identifier, BSSID), extended service set identifier (Extended Service Set Identifier, ESSID), etc.
[0435] It can be understood that the hardware parameter of the AP can be used to indicate a fixed AP. The location of the fixed AP will not change frequently, so the scanning decision unit can determine which APs are included in the vicinity of the current location of the electronic device according to the hardware parameter of the AP.
[0436] Based on this, the electronic device can achieve relatively rough positioning. For example, the electronic device can be configured with a corresponding relationship 2803, which can be configured with a corresponding relationship between the hardware parameter of at least one AP and the location information. In this way, the electronic device can determine the current location according to the hardware parameter of at least one AP in the vicinity of the current location acquired by the scanning decision unit and the corresponding relationship 2803.
[0437] It should be noted that the configuration method of the corresponding relationship 2801, the corresponding relationship 2802 and the corresponding relationship 2803 involved in the embodiments of the present application is similar to the configuration method of the preset channel described above, which can be completed at the factory or configured according to historical data. The historical data can be collected by the current electronic device itself or obtained from the cloud.
[0438] Thus, the hardware parameters acquired by the S2902 can realize the positioning function.
[0439] In some scenarios, the electronic device can need to provide more accurate positioning function, or indoor navigation, device proximity discovery and other functions with high accuracy requirements. Thus, the electronic device can continue to perform the following S2904.
[0440] S2903, the scanning decision unit determines to continue scanning according to the current service requirement.
[0441] The service requirement can be the requirement of the service currently required to be provided by the electronic device. The current required service can include the scanning related service described above. In this example, when the electronic device determines that the current provided service is a service in the preset high accuracy service list, it can determine to continue scanning in order to obtain more information for providing more accurate services. For example, the high accuracy service list can include high accuracy indoor positioning, indoor navigation, device proximity discovery and other services.
[0442] S2904, the scanning decision unit determines the scanning configuration according to the hardware parameters, and controls the electronic device to scan according to the scanning configuration.
[0443] For example, in some embodiments, the scanning decision unit can determine the scanning configuration according to the number of APs indicated by the hardware parameters. In combination with the description of 282, in this example, the scanning decision unit can determine the scanning configuration according to the number of current APs and the size relationship of the AP number threshold. For specific implementation, reference can be made to the description in 282, which will not be repeated here. Figure 28
[0444] Thus, after determining the scanning configuration, the electronic device can comprehensively scan the channels in the current environment according to the scanning configuration. For example, the control module 405 of the electronic device can obtain the scanning configuration from the scanning decision unit, so as to control the RF module and / or the baseband module 440 to perform corresponding processing according to the control scheme provided in the above example.
[0445] After obtaining the scanning results of each channel, the electronic device can provide channel scanning related services with higher accuracy.
[0446] For example, the electronic device can accurately calculate the current position of the electronic device according to the RSSI of the data transmitted on each target channel determined by the comprehensive scanning, and the position of each AP.
[0447] S2905, single channel scanning or a preset number of multi-channel scanning is performed for all channels.
[0448] In combination with the description of S2901, in a case where it is determined that the target channel is not included in the preset channel after scanning the preset channel, the electronic device can perform the S2905.
[0449] In the S2905, the scanning decision unit can determine the current scanning configuration as a full scan on all channels. By way of example, through the full scan, the scanning decision unit can obtain the number of APs corresponding to all target channels in the current environment and / or the hardware parameters of the APs using the target channels.
[0450] As a possible implementation, after determining the target channel through the single-channel or multi-channel scan, the electronic device can communicate with the APs using the target channel to obtain the hardware parameters of the corresponding APs. In addition, the electronic device can also record the number of APs using the target channel.
[0451] It should be noted that, in the present example, the single-channel scan or multi-channel scan used in the specific scanning process and the number of channels used in the multi-channel scan process can be pre-configured in the electronic device or can be flexibly determined by the electronic device according to the actual situation such as the current load.
[0452] In this way, through the scan on all channels, the electronic device can determine the specific AP distribution in the current location.
[0453] It can be understood that, generally speaking, in a case where the current location of the electronic device is included in the historical trajectory, S2902 and related processing will be triggered since the preset channel can be obtained based on the historical data.
[0454] Correspondingly, in a case where the current location of the electronic device is not included in the historical trajectory, i.e., the electronic device is in a new location, the target channel can not be included in the preset channel. Then, through the processing of the S2905, the electronic device can obtain the AP distribution in the current new location.
[0455] By way of example, as shown in Figure 29 After obtaining the full scan result (such as the number of APs corresponding to all target channels in the current environment and / or the hardware parameters of the APs using the target channels), the electronic device can implement accurate positioning of the current location according to the scan result.
[0456] In some other implementations, the electronic device can also update the position information of the current location and the corresponding relationship between the number of APs, the hardware parameters of the APs, etc. in the current environment to the historical information. For example, the electronic device can perform S2906 to add the environmental information of the current location to the historical data according to the scan result. The environmental information can include the position information of the current location, the number of APs, the hardware parameters of the APs, etc.
[0457] Thus, the electronic device can update the preset channel and / or the corresponding relationship 2803 according to the historical information when the next time the scanning configuration needs to be determined or the next time the location is reached. Thus, high-precision positioning can be performed on the current location without the need to perform comprehensive scanning on all channels.
[0458] It can be understood that the above Figure 28 and Figure 29 at least two schemes for determining the scanning configuration are provided, and in the specific implementation process, the schemes can be flexibly selected. Alternatively, in some other embodiments, the scanning configuration in the current scenario can also be determined in combination with the schemes provided by Figure 28 and Figure 29 .
[0459] The above mainly introduces the schemes provided by the embodiments of the present application from the perspective of various functional modules. Those skilled in the art should easily realize that, in combination with the units and algorithm steps of the examples described in the embodiments disclosed in the present application, the present application can be realized in the form of hardware or a combination of hardware and computer software. Whether a certain 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. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of the present application.
[0460] The above integrated modules can be realized in the form of hardware or in the form of software functional modules. It should be noted that the division of modules in the embodiments of the present application is illustrative, and is only a logical functional division. There can be another division manner in actual implementation.
[0461] An example of Figure 30 a composition of an electronic device 3000 is shown. As Figure 30 shown, the electronic device 3000 can include a processor 3001 and a memory 3002. The memory 3002 is used to store computer execution instructions. Illustratively, in some embodiments, when the processor 3001 executes the instructions stored in the memory 3002, the electronic device 3000 can perform the method shown in any one of the above embodiments. As Figure 30 shown, in this example, the electronic device can also be configured with an antenna 3003 for signal transceiving. Thus, the processor 3001 can realize processing of the signal received by the antenna 3003 or transmitting the processed signal through the antenna 3003 according to the instructions stored in the memory 3002.
[0462] It should be noted that all the related content of each step involved in the above method embodiments can be cited to the function description of the corresponding function module, which will not be repeated here.
[0463] Figure 31 A schematic diagram of a chip system 3100 is shown. The chip system 3100 can include a processor 3101 and a communication interface 3102 to support the related devices or components to implement the functions involved in the above embodiments. In a possible design, the chip system further includes a memory for storing the necessary program instructions and data of the electronic device. The chip system can be composed of a chip, or can include a chip and other discrete devices. It should be noted that the communication interface 3102 can also be referred to as an interface circuit in some implementations of the present application. For example, the chip system 3100 can include a baseband chip. The baseband chip can be used to implement the functions of the baseband module 440 provided in various embodiments of the present application.
[0464] It should be noted that all the related content of each step involved in the above method embodiments can be cited to the function description of the corresponding function module, which will not be repeated here.
[0465] The functions or actions or operations or steps in the above embodiments can be implemented by software, hardware, firmware or any combination thereof, in whole or in part. When implemented by software, 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 flow or function described in the embodiments of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions can be stored in a computer readable storage medium or transferred from one computer readable storage medium to another, for example, the computer instructions can be transferred from one website, computer, server or data center to another website, computer, server or data center through wired (such as coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (such as infrared, wireless, microwave, etc.) mode. The computer readable storage medium can be any available medium that can be accessed by a computer or include one or more data storage devices that can be integrated with the medium, such as servers, data centers, etc. The available medium can be magnetic medium (such as floppy disk, hard disk, magnetic tape), optical medium (such as DVD), or semiconductor medium (such as solid state disk (SSD)), etc.
[0466] Although the present application has been described in connection with certain specific features and embodiments thereof, it is to be understood that it is intended to cover all modifications and variations of this application which are within the scope of the appended claims and their equivalents. Accordingly, the description and drawings are to be regarded as illustrative in nature and not as restrictive. It is intended that all such modifications and variations are included within the scope of the present application as defined by the following claims and their equivalents.
Claims
1. A signal scanning method, characterized in that, The method is applied to an electronic device, which includes an antenna module, a radio frequency module, and a baseband module. The method is used to determine a target channel, which is a channel that uses a target protocol type for data transmission; The method includes: The antenna module receives a first sampling signal, the bandwidth of which is a first bandwidth; the first sampling signal includes signals transmitted on at least two consecutive channels; The radio frequency module performs radio frequency processing on the first sampled signal to obtain a first analog signal; the first analog signal includes signals transmitted on M channels; the M channels are included in the at least two channels; the bandwidth of the first analog signal is the second bandwidth corresponding to the M channels, and the second bandwidth is less than or equal to the first bandwidth; The baseband module performs digital processing based on the first digital signal corresponding to the first analog signal to determine the target channel among the M channels included in the first analog signal.
2. The method according to claim 1, characterized in that, The baseband module includes N signal processing links, where N is an integer greater than or equal to M; The baseband module processes the first digital signal, including: The baseband module performs the digital processing on the first digital signal through M of the N signal processing links.
3. The method according to claim 2, characterized in that, Each of the signal processing links includes: a frequency shifting unit, a digital filtering unit coupled to the frequency shifting unit, and a listening unit coupled to the digital filtering unit; The frequency shifting unit is used to perform frequency shifting processing on the first digital signal; The frequency shifting units configured on different signal processing links provide different frequency shifting lengths. The frequency shifting length is the shifting length of the center frequency point of the first digital signal in the frequency domain during the frequency shifting process performed by the frequency shifting unit. The digital filtering unit is used to perform digital filtering processing; The digital filtering units configured on different signal processing links have the same bandwidth; The listening unit is used to perform matching processing; the matching processing is used to determine whether the data segment acquired by the digital filtering unit is a target data segment, and the target data segment corresponds to the target channel.
4. The method according to claim 3, characterized in that, The frequency shifting unit provides a frequency shifting length including a basic frequency shifting length and N-1 first frequency shifting lengths, wherein any two of the N-1 first frequency shifting lengths are different, and the first frequency shifting lengths are integer multiples of the basic frequency shifting length; The electronic device is configured with a basic frequency shift lookup table and N-1 index tables; the basic frequency shift lookup table corresponds to the basic frequency shift length, and each index table corresponds to a first frequency shift length; The frequency shifting unit is used to perform frequency shifting processing on the first digital signal, specifically including: The frequency shifting unit is used to perform frequency shifting processing on the first digital signal according to the basic frequency shifting lookup table, corresponding to the basic frequency shifting length. The frequency shifting unit is further configured to perform frequency shifting processing on the first digital signal according to the first index table and the basic frequency shifting lookup table, corresponding to the first frequency shifting length corresponding to the first index table; the first index table is included in the N-1 index tables.
5. The method according to claim 3 or 4, characterized in that, The center frequency of the digital filtering unit is 0MHz, and the bandwidth of the digital filtering unit is the bandwidth of one channel.
6. The method according to claim 3 or 4, characterized in that, The matching process includes carrier sensing processing; When the listening unit performs the carrier sensing process, the listening unit determines whether the data segment is the target data segment based on the preset reference Baker code and the correlation peak information of the input data segment. The reference baker code corresponds to the target protocol type.
7. The method according to claim 3 or 4, characterized in that, The frequency shifting unit includes a digital down-conversion (DDC) unit; the digital filtering unit includes a digital low-pass filter unit; and the listening unit includes an idle channel assessment (CCA) unit.
8. The method according to claim 3 or 4, characterized in that, The M signal processing links include a first signal processing link, which is used to perform the digital processing on the data of the first channel. The baseband module performs the digital processing on the first digital signal through M of the N signal processing links, including: The first frequency shifting unit of the first signal processing link receives the first digital signal, and the first frequency shifting unit performs a first frequency shifting process on the first digital signal to obtain a second digital signal; the center frequency of the data corresponding to the first channel in the second digital signal is 0MHz; The first digital filtering unit of the first signal processing link performs the digital filtering processing on the second digital signal to obtain a first data segment, wherein the first data segment is the data segment corresponding to the first channel. The first listening unit of the first signal processing link performs the matching process on the first data segment to determine whether the first data segment is the target data segment.
9. The method according to claim 8, characterized in that, Each of the N signal processing links is configured with a CCA identifier. The CCA identifier is configured with a first value to indicate that the currently processed data segment is the target data segment, and the CCA identifier is configured with a second value to indicate that the currently processed data segment is not the target data segment. The method further includes: Before performing digital processing on the first digital signal, the CCA identifier of the first signal processing link is configured to the second value; When the first data segment is the target data segment, the listening unit configures the CCA identifier of the first signal processing link to the first value.
10. The method according to claim 3, 4, or 9, characterized in that, The electronic device is also equipped with an analog-to-digital conversion unit, which is disposed between the radio frequency module and the baseband module; Before the baseband module performs digital processing on the first digital signal corresponding to the first analog signal, the method further includes: The analog-to-digital conversion unit performs digital sampling processing on the first analog signal based on the first sampling frequency to obtain the first digital signal.
11. The method according to claim 10, characterized in that, The signal processing link also includes: a digital resampling unit group; The digital resampling unit group includes at least one digital resampling unit, which is used to adjust the sampling frequency of the digital signal from the first sampling frequency to a second sampling frequency; the second sampling frequency is the sampling frequency of the listening unit.
12. The method according to claim 11, characterized in that, The digital resampling unit group includes a digital resampling unit, and the digital resampling unit group is configured between the analog-to-digital conversion unit and the baseband module; The baseband module performs digital processing based on the first digital signal corresponding to the first analog signal, including: The baseband module performs the digital processing on the second digital signal corresponding to the first analog signal. The second digital signal is the digital signal obtained by the digital resampling unit group after performing digital resampling processing on the first digital signal.
13. The method according to claim 11, characterized in that, The digital resampling unit group includes N digital resampling units, and each digital resampling unit is respectively configured between the frequency shift unit and the digital filtering unit in the signal processing link.
14. The method according to claim 13, characterized in that, For any signal processing link, The digital resampling unit and the digital filtering unit constitute a resampling and filtering unit, which is used to perform digital resampling and digital filtering on the data in the signal processing link.
15. The method according to claim 11, characterized in that, The digital resampling unit group includes N digital resampling units, and each digital resampling unit is respectively configured between the digital filtering unit and the listening unit in the signal processing link.
16. The method according to any one of claims 11-15, characterized in that, The baseband module further includes: a parsing module, which is coupled to each of the N signal processing links; the method further includes: The parsing module parses the target data segments determined in the N signal processing links.
17. The method according to claim 16, characterized in that, The baseband module further includes a digital gain control module, which is configured between the listening unit and the parsing module. The digital gain control module is used to digitally amplify the target data segment according to a preset digital gain coefficient.
18. The method according to claim 17, characterized in that, The baseband module further includes: a DC-DC de-conversion module, which is configured between the analog-to-digital conversion unit and the N signal processing links, for performing digital DC-DC de-conversion processing on the digital signals input to the N signal processing links; and / or, The DC removal module is configured between the N signal processing links and the parsing module, and is used to perform digital DC removal processing on the target data segment.
19. The method according to any one of claims 11-15 or 17 or 18, characterized in that, The baseband module further includes: a computing module, the computing module being coupled to the N signal processing links, and the method further includes: The calculation module calculates and obtains the received signal strength (RSSI) of the target data segment based on the target data segment determined in the N signal processing links.
20. The method according to claim 19, characterized in that, The calculation module calculates the RSSI of the target data segment, including: The calculation module obtains a first radio frequency gain, which is the gain of the first sampled signal when the radio frequency module performs analog amplification processing on the first sampled signal during radio frequency processing of the first sampled signal. When the first RF gain is included within a preset linear amplification range, the calculation module determines the RSSI of the target data segment according to a pre-configured first formula; the first formula includes: RX_RSSI = ba * AGC_Gain Wherein, RX_RSSI is the RSSI of the target data segment, AGC_Gain is the first RF gain, and a and b are preset parameters; When the first RF gain is included within a preset nonlinear amplification range, the calculation module calculates the correlation peak mean of the target data segment and determines the RSSI of the target data segment according to the pre-configured correspondence between the correlation peak mean and RSSI.
21. The method according to claim 19, characterized in that, The method further includes: The radio frequency module adjusts the gain in the radio frequency processing to a second radio frequency gain, which corresponds to the digital average power of the target data segment.
22. The method according to claim 21, characterized in that, The baseband module further includes an automatic gain control unit; the method further includes: The automatic gain control unit determines the second radio frequency gain based on the digital average power, the preset reference power, and the first digital signal; The automatic gain control unit sends the second radio frequency gain to the radio frequency module.
23. The method according to any one of claims 11-15, or 17, or 18, or any one of 20-22, characterized in that, The baseband module further includes an automatic gain control unit; the method further includes: The radio frequency module adjusts the gain in the radio frequency processing to a third radio frequency gain, which is determined by the automatic gain control unit based on the first digital signal.
24. The method according to any one of claims 2-4, characterized in that, The radio frequency module performs radio frequency processing on the first sampled signal, including: The radio frequency module performs analog amplification, analog down-conversion, and analog filtering on the first sampled signal.
25. The method according to claim 24, characterized in that, Before the radio frequency module performs radio frequency processing on the first sampled signal, the method further includes: According to the scanning configuration, the RF module is configured to execute the center frequency point corresponding to the analog downconversion process; According to the scanning configuration, configure the bandwidth corresponding to the analog filtering process performed by the RF module; The scanning configuration includes: performing a single-channel scan, or... The scanning configuration includes: performing a multi-channel scan, wherein the number of channels in the multi-channel scan corresponds to the number of M channels included in the first analog signal.
26. The method according to claim 25, characterized in that, The method further includes: The electronic device determines the scanning configuration based on a first cell identifier and a pre-configured first correspondence; the first cell identifier is the cell identifier of the cellular network currently accessed by the electronic device; the first correspondence includes a correspondence between at least one cell identifier and the scanning configuration, and the at least one cell identifier includes the first cell identifier; or, The electronic device determines the number of wireless access points (APs) corresponding to the current location based on the first cell identifier and a pre-configured second correspondence; the second correspondence includes a correspondence between at least one cell identifier and the number of APs, and the at least one cell identifier includes the first cell identifier; the electronic device determines the scanning configuration based on the number of APs corresponding to the current location.
27. An electronic device, characterized in that, The electronic device includes: an antenna module, a memory, and one or more processors; the memory and the processor are coupled; the antenna module and the processor are coupled. The memory is used to store computer program code, which includes computer instructions. When the processor executes the computer instructions, the electronic device performs the method as described in any one of claims 1-26.
28. A chip system, characterized in that, The chip system is applied to an electronic device; the chip system includes one or more interface circuits and one or more processors; the interface circuits and the processors are interconnected via lines; the interface circuits are used to receive signals from the memory of the electronic device and send the signals to the processors, the signals including computer instructions stored in the memory; when the processor executes the computer instructions, the electronic device performs the method as described in any one of claims 1-26.
Citation Information
Patent Citations
Multi-antenna multichannel multisite aggregated parallel polling method
CN104579616A
Wireless channel resource management method, device and system
WO2023284862A1