Received signal strength determination method and electronic equipment

By adjusting the gain according to the digital average power of the target channel during the amplification process of the electronic device, the problem of inaccurate RSSI calculation in the prior art is solved, and a more accurate channel quality evaluation is achieved.

CN119497188APending Publication Date: 2025-02-21HONOR DEVICE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311056207.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-08-21
Publication Date
2025-02-21

AI Technical Summary

Technical Problem

When existing electronic devices measure the received signal strength (RSSI) of the received signal, it is difficult for them to accurately reflect the data signal strength on the target channel, resulting in inaccurate channel quality evaluation.

Method used

By flexibly adjusting the gain during the amplification process, the second gain is determined based on the digital average power of the target channel, and the received signal strength (RSSI) is calculated using this gain.

Benefits of technology

The accuracy of RSSI calculation is improved, so that the received signal strength more accurately reflects the data signal strength on the target channel, thereby improving the accuracy of channel quality evaluation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119497188A_ABST
    Figure CN119497188A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a received signal strength determination method and electronic equipment, and relates to the technical field of electronic equipment. The RSS I of the currently received signal can be accurately calculated according to the gain applied in the amplification processing process. In some implementations, the gain applied in the amplification process can be flexibly adjusted and determined by the electronic equipment according to the digital average power of the target channel. The method comprises the following steps: the electronic equipment receives a first wireless signal through a first antenna, and obtains a first analog signal corresponding to the first wireless signal; and the electronic equipment uses the first gain to perform first amplification processing on the first analog signal to obtain a second analog signal. And the electronic equipment determines a second gain according to the second analog signal. The second gain is different from the first gain. And determining the received signal strength RSS I of the third analog signal according to the second gain.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the technical field of electronic devices, and in particular to a method for determining received signal strength and an electronic device. Background Art

[0002] When receiving wireless signals, electronic devices can measure the received signal strength (RSSI) of the received signal to indicate the channel quality of the current received signal.

[0003] Generally, the electronic device can scan and determine the target channel to be used before measuring and calculating RSSI. The target channel can be a channel using a preset target protocol type. Currently, most single-channel scanning schemes are used to determine the target channel. In order to improve the efficiency of determining the target channel, a multi-channel scanning scheme that scans and analyzes multiple channels at the same time can also be considered.

[0004] Regardless of the single-channel scanning scheme or the multi-channel scanning, the electronic device can accurately calculate the RSSI after determining the target channel. Summary of the invention

[0005] The present application provides a method for determining received signal strength and an electronic device, which can accurately calculate the RSSI of a currently received signal according to the gain applied during the amplification process. In some implementations, the gain applied during the amplification process can be flexibly adjusted and determined by the electronic device according to the digital average power of the target channel.

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

[0007] In a first aspect, a method for determining a received signal strength RSSI is provided, the method being applied to an electronic device, the electronic device being configured with a first antenna, the method comprising: the electronic device receiving a first wireless signal through the first antenna, and acquiring a first analog signal corresponding to the first wireless signal. The electronic device uses a first gain to perform a first amplification process on the first analog signal, and acquires a second analog signal. The electronic device determines a second gain based on the second analog signal. The second gain is different from the first gain. Based on the second gain, the received signal strength RSSI of the third analog signal is determined.

[0008] Among them, the first wireless signal can be a wireless signal received by the first antenna on the target channel. Based on this scheme, the electronic device can flexibly adjust the analog gain in the amplification process according to the wireless signal corresponding to the target channel, so that the gain control accurately corresponds to the data transmitted on the target channel. Therefore, the RSSI calculated by the adjusted gain (such as the second gain) can more accurately correspond to the data received on the target channel, thereby achieving the effect of improving the accuracy of RSSI calculation.

[0009] Optionally, the method further includes: the electronic device receives a second wireless signal through the first antenna to obtain a third analog signal corresponding to the second wireless signal, and the electronic device uses the second gain to perform a second amplification process on the second analog signal.

[0010] It is thus clear that the second gain determined according to the target channel can be used for amplifying the subsequent received signal. It can be understood that no matter whether the acquired signal is a single-channel signal or a multi-channel signal, since the second gain corresponds to the target channel, the data received on the target channel can be accurately amplified after the amplification process. This supports the subsequent accurate calculation of RSSI.

[0011] Optionally, the operating frequency band of the first antenna includes 2.4 GHz-2.5 GHz. This example provides an application scenario limitation, such as application to a Wi-Fi scanning scenario.

[0012] Optionally, the first antenna uses the same channel to receive the first wireless signal and the second wireless signal, thereby clarifying that the first wireless signal and the second wireless signal may be different signals received on the target channel.

[0013] Optionally, the electronic device determines the second gain according to the second analog signal, including: the electronic device determines the first digital signal according to the second analog signal. The electronic device determines the second gain according to the first digital signal. In this example, the electronic device can determine the second gain corresponding to the target channel by digitally processing the received signal.

[0014] Optionally, determining the second gain according to the first digital signal includes: the electronic device determining a first digital average power of the first digital signal. The electronic device determines the second gain according to the first digital average power.

[0015] Optionally, determining the first digital average power of the first digital signal includes: the electronic device calculates, according to the first digital signal, to obtain the first digital average power by using the following formula:

[0016]

[0017] Among them, Digital_Power average is the first digital average power. N is the number of IQ data pairs determined according to the first digital signal. The first analog-to-digital conversion unit is used to obtain the first digital signal according to the second analog signal.

[0018] Thus, a digital average power calculation scheme is provided. Thus, after determining the data segment of the target channel, the corresponding digital average power can be calculated and obtained, and then used to accurately obtain the second gain for amplifying the data received on the subsequent target channel.

[0019] Optionally, determining the second gain according to the first digital average power includes: determining the second gain according to the first digital average power and a preconfigured reference power. Exemplarily, the second gain may be equal to the difference between the reference power and the first digital average power.

[0020] Optionally, the electronic device is provided with a first amplification unit, and the first amplification unit is used to perform the first amplification process. The received signal strength RSSI of the third analog signal is determined according to the second gain, including: the electronic device determines that the second gain is within a linear amplification interval, and the linear amplification interval corresponds to the first amplification unit. The electronic device determines the RSSI of the third analog signal according to the following formula:

[0021] RX_RSSI=ba*AGC_Gain.

[0022] Wherein, RX_RSSI is the RSSI of the third analog signal, AGC_Gain is the second gain, and a and b are preset parameters corresponding to the first amplification unit.

[0023] In this way, within the linear amplification interval corresponding to the first amplification unit, the electronic device can directly calculate and obtain the RSSI of the target channel according to the second gain and the preconfigured formula.

[0024] Optionally, the linear amplification interval is: (first endpoint gain, second endpoint gain), wherein the first endpoint gain is the minimum gain that the first amplification unit can provide, and the second endpoint gain is the maximum gain that the first amplification unit can provide.

[0025] Optionally, the electronic device is provided with a first amplifying unit, and the first amplifying unit is used to perform the first amplifying process. The received signal strength RSSI of the third analog signal is determined according to the second gain, including: the electronic device determines that the second gain is equal to the first endpoint gain, or the second gain is equal to the second endpoint gain. The first endpoint gain is the minimum gain that the first amplifying unit can provide, and the second endpoint gain is the maximum gain that the first amplifying unit can provide. The electronic device determines the RSSI of the third analog signal according to the first digital signal and a preconfigured first corresponding relationship. The first corresponding relationship includes a corresponding relationship between at least one peak-to-mean value and RSSI. Any one of the at least one peak-to-mean value corresponds to a related peak-to-mean value of a digital signal. The at least one peak-to-mean value includes a first peak-to-mean value, and the first peak-to-mean value corresponds to the first digital signal.

[0026] In this way, within the nonlinear amplification interval corresponding to the first amplification unit, the electronic device can determine the corresponding RSSI according to the peak-to-average value of the data segment of the target channel in the form of a table lookup.

[0027] Therefore, the present application provides at least two RSSI calculation methods, and thus the RSSI calculation process is differentiated according to the currently used gain, so that the RSSI calculation result is more accurate.

[0028] Optionally, the electronic device receives a first signal through the first antenna, including: the electronic device receives a first signal segment through the first antenna to obtain a first antenna signal. The first signal segment includes signals of at least two consecutive channels. The first signal segment includes the first signal. The first antenna signal includes the first analog signal. The electronic device uses a first gain to perform a first amplification process on the first analog signal to obtain a second analog signal, including: the electronic device uses the first gain to perform a first amplification process on the first antenna signal including the first analog signal to obtain a first radio frequency modulated signal. The first radio frequency modulated signal includes the second analog signal.

[0029] Optionally, the electronic device obtains a corresponding first digital signal according to the second analog signal: the electronic device performs analog-to-digital conversion on the first RF modulated signal to obtain a corresponding first digital signal segment, the first digital signal segment including at least two data segments corresponding to each channel in the at least two consecutive channels. The electronic device screens and determines the first digital signal from the first digital signal segment.

[0030] Optionally, the electronic device screens and determines the first digital signal from the first digital signal segment, including: the electronic device performs frequency shift filtering on the first digital signal segment to obtain the at least two data segments. The electronic device performs carrier sensing on the at least two data segments, and screens and uses a data segment of the target protocol type from the at least two data segments as the first digital signal.

[0031] In this example, multi-channel scanning is taken as an example. Thus, the electronic device can perform the above processing on the data of multiple channels obtained in the multi-channel scanning, so as to determine the target channel. Then, based on the gain control scheme and RSSI calculation scheme provided in the above example, an accurate RSSI calculation effect for the target channel in the multi-channel scanning process is achieved.

[0032] In a second aspect, an electronic device is provided, which is used to execute the method provided in the first aspect and any possible design thereof. The electronic device includes: a first antenna, which is used to receive a wireless signal between 2.4GHz and 2.5GHz. The first antenna is also used to convert the wireless signal into an analog signal. A radio frequency unit is used to perform radio frequency domain processing on the analog signal, and the radio frequency domain processing includes amplification processing to obtain a radio frequency modulated signal. An analog-to-digital conversion unit is used to perform analog-to-digital conversion on the radio frequency modulated signal to obtain a corresponding digital signal. A baseband module is used to perform digital processing on the digital signal, and the digital processing includes frequency shift filtering processing, matching processing, and calculation processing. The calculation processing is used to obtain the RSSI of the analog signal.

[0033] Optionally, the wireless signal includes wireless signals of at least two consecutive channels. The calculation process is used to obtain the RSSI of the analog signal, including: the calculation process is used to obtain the RSSI of the analog signal corresponding to the target channel. The target channel is a channel of the at least two consecutive channels that uses the target protocol type.

[0034] Optionally, the baseband module specifically includes: a signal division module, which is used to perform frequency shift filtering processing on the digital signal to obtain at least two data segments. Each of the at least two data segments corresponds to one of the at least two continuous channels. A matching module, which is used to perform matching processing on each of the at least two data segments. The matching processing is used to determine a target data segment using a target protocol type among the at least two data segments. The target channel is a channel that receives the target data segment. A calculation module, which is used to perform calculation processing on the target data segment to determine the RSSI of the analog signal corresponding to the target channel.

[0035] Optionally, the calculation module is further used to calculate the digital average power of the target data segment. The baseband module also includes: an automatic gain control AGC unit, which is used to determine a second gain according to the digital average power. The radio frequency unit is also used to amplify the analog signal according to the second gain.

[0036] Optionally, a calculation module is used to perform calculation processing on the target data segment to determine the RSSI of the analog signal corresponding to the target channel, specifically including: the calculation module is used to calculate and obtain the RSSI according to a preconfigured formula and the second gain when the second gain is in the linear amplification interval. The calculation module is also used to determine the RSSI according to a preconfigured first correspondence and the peak-to-mean value of the target data segment when the second gain is in the nonlinear amplification interval. The first correspondence includes at least one correspondence between the peak-to-mean value and the RSSI. The linear amplification interval and the nonlinear amplification interval are preconfigured in the electronic device, and the ranges of the linear amplification interval and the nonlinear amplification interval correspond to the amplification processing capability of the radio frequency unit.

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

[0038] Optionally, the chip system is a baseband processor.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

[0057] Fig.16 A schematic diagram of a wireless communication scenario;

[0058] Fig.17 A logic diagram of a gain control solution provided in an embodiment of the present application;

[0059] Fig.18 A logic diagram of a gain control solution provided in an embodiment of the present application;

[0060] Fig.19 A schematic diagram for comparing the effects of a gain control solution provided in an embodiment of the present application;

[0061] Fig. 20 A detailed logic diagram of a gain control solution provided in an embodiment of the present application;

[0062] Fig.21 A logical schematic diagram of an RSSI calculation solution provided in an embodiment of the present application;

[0063] Fig. 22 A schematic diagram of a gain linear amplification interval provided in an embodiment of the present application;

[0064] Fig.23 A schematic diagram of a gain nonlinear amplification interval provided in an embodiment of the present application;

[0065] Fig.24 A detailed logic diagram of an RSSI calculation solution provided in an embodiment of the present application;

[0066] Fig.25 A schematic diagram of a flow chart of gain control and RSSI calculation in a multi-channel scanning process provided by an embodiment of the present application;

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

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

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

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

[0071] like Figure 1As shown, device 21 can be used as a Wi-Fi access device (or receiving device). The environment in which device 21 is located may include a Wi-Fi network created by one or more devices. The device that creates the Wi-Fi network can be called a creating device.

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

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

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

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

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

[0077] like Figure 2 As shown in the figure, the 2.4GHz Wi-Fi frequency band can be divided into 14 channels. The coverage frequencies are arranged from low to high as channel 1, channel 2, channel 3, ..., channel 14. Among them, channels 1 to 13 are commonly used channels. Channel 14 is generally not used for data transmission.

[0078] In the channels 1 to 13, and 14, the bandwidth of each channel is 22 MHz.

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

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

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

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

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

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

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

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

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

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

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

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

[0091] The AD conversion unit 53 is used to digitally sample the analog signal, thereby converting the RF modulated signal into a corresponding digital modulated signal.

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

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

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

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

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

[0097] In this way, the device 21 can determine the data transmission channel (i.e., the target channel) and the protocol type (i.e., the target protocol type) used in the data transmission process required to achieve the target function. Thus, the device 21 can continue to receive data on the target channel and quickly parse the data according to the target protocol type, thereby achieving the purpose of supporting the target function.

[0098] Take the target protocol type as 802.11b as an example.

[0099] In order to determine Figure 4 In the environment shown, using the target channel of the target protocol type, the device 21 can respectively Figure 2 The channels shown are analyzed for single channel scan.

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

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

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

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

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

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

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

[0107] Device 21 may continue to scan and analyze other channels.

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

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

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

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

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

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

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

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

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

[0117] As an example, refer to Figure 7 , is a schematic diagram of the composition of an electronic device provided in an embodiment of the present application.

[0118] like Figure 7As shown, the electronic device may include a processor 710, an external memory interface 720, an internal memory 721, a universal serial bus (USB) connector 730, a charging management module 740, a power management module 741, a battery 742, an antenna 1, an antenna 2, a mobile communication module 750, a wireless communication module 760, an audio module 770, a speaker 770A, a receiver 770B, a microphone 770C, an earphone interface 770D, a sensor module 780, a button 790, a motor 791, an indicator 792, a camera module 793, a display screen 794, and a subscriber identification module (SIM) card interface 795, etc. The sensor module 780 may include a pressure sensor 780A, a gyroscope sensor 780B, an air pressure sensor 780C, a magnetic sensor 780D, an acceleration sensor 780E, a distance sensor 780F, a proximity light sensor 780G, a fingerprint sensor 780H, a temperature sensor 780J, a touch sensor 780K, an ambient light sensor 780L, a bone conduction sensor 780M, and the like.

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

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

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

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

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

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

[0125] In such Figure 7 In the example, the wireless communication function of the electronic device can be implemented through antenna 1, antenna 2, mobile communication module 750, wireless communication module 760, modem processor and baseband processor 710b.

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

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

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

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

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

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

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

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

[0134] like Figure 8As shown, in this example, the electronic device may include an antenna module 801, an RF module 802, an AD conversion unit 803, a control module 805, and a baseband module 840, etc.

[0135] The antenna module 801 may correspond to Figure 7 Antenna 1 and / or antenna 2 are shown.

[0136] As an implementation, the antenna module 801 may include one or more antennas for transmitting and receiving wireless signals. The antenna module 801 may include at least one 2.4 GHz antenna (or Wi-Fi antenna). The operating frequency band of the 2.4 GHz antenna may include a 2.4 GHz frequency band.

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

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

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

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

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

[0142] In different implementations of the present application, the AD conversion unit 803 may be integrated into the RF module 802 , or the AD conversion unit 803 may be integrated into the baseband module 840 , or may be separately configured between the RF module 802 and the baseband module 840 .

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

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

[0145] The signal division module 841 may include a frequency shift unit group. Taking multi-channel scanning as an example, the frequency shift unit group may be used to implement frequency shift processing on the sampled data of the collected data segments including multiple channels.

[0146] In some embodiments, the frequency shift unit group can be implemented by multiple digital downconverter (DDC) units. For example, the frequency shift unit group can include DDC1 to DDCn. Among them, the frequency shift capabilities of different DDCs are relatively fixed, and the signal division module can control the DDC power-on operation of different channels under the control of the control module 805 in different scenarios, thereby realizing corresponding frequency shift processing on different channels.

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

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

[0149] In the present application, each filter unit can form a signal division link with a frequency shift unit group. The signal division link can be used to separate and obtain a data segment corresponding to a channel from the sampled data.

[0150] In some embodiments, the filter unit group may be implemented by a plurality of low pass filters (LPF) having the same pass frequency band. For example, the filter unit group may include LPF1 to LPFn. In different embodiments, the LPF may adopt a finite impulse response (FIR) filter and / or an infinite impulse response (IIR) filter.

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

[0152] Exemplarily, in some embodiments, for each data segment corresponding to a channel, the matching module 842 may perform correlation peak matching on the data segment and the Baker code of the target protocol type. When the peak value of the correlation peak is greater than the corresponding quantity threshold, the corresponding matching is successful. That is, the transmission of the data segment uses the target protocol type, and the channel used to receive the data segment can be the target channel.

[0153] In other embodiments, for the data segment corresponding to any channel, the matching module 842 can use a sliding window to perform sampling and matching on the data segment. When the data in a window matches the Baker code of the target protocol type, the corresponding counter is incremented by 1. The matching module 842 can continue to slide the window, resample on the data segment, and continue to match the data in the new window with the Baker code of the target protocol type. When the match is successful, the counter is incremented by 1. The cycle is repeated until the value of the counter reaches a preset quantity threshold, and the corresponding data segment is successfully matched with the target protocol type. That is, the transmission of the data segment uses the target protocol type, and the channel used to receive the data segment can be the target channel.

[0154] Alternatively, when the sliding window slides to the end of the data segment of the channel, the value of the counter still does not reach the preset quantity threshold, then the data segment fails to match the target protocol type, that is, the transmission of the data segment does not use the target protocol type.

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

[0156] In some embodiments of the present application, the number of CCAs in the matching module 842 may be the same as the number of DDCs in the frequency shift unit group and / or the number of LFPs in the filter unit group. At the same time, a DDC, an LFP, and a CCA may jointly implement the function of screening a channel data segment from the sampled data and carrier sensing to determine whether it is the target channel. In the present application, the CCA, LPF, and DDC used to process a channel may constitute a channel processing link.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

[0176] The control module 805 can enable m DDCs among DDC1 to DDCn to power on and work through the control signal line, while other DDCs are not powered on. This is to facilitate m frequency shift processing of the sampled data through the m DDCs. This may include a frequency shift processing of 0 MHz (i.e., no shift in the frequency domain). After the frequency shift processing, the center frequencies of the m sampled data are all normalized to 0 MHz, and the data segments of 22 MHz, which are extended by 11 MHz to both sides from the center frequency, correspond to the data segments corresponding to the m channels.

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

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

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

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

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

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

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

[0184] Formula (1):

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

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

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

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

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

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

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

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

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

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

[0195] Exemplarily, the electronic device may obtain sampled data A1 including most signals from channels 1 to 5 through the first scan. The electronic device may obtain sampled data A2 including most signals from channels 5 to 9 through the second scan. The electronic device may obtain sampled data A3 including most signals from channels 9 to 13 through the third scan.

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

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

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

[0199] like Fig. 9 As shown, the antenna module 801 can send a multi-channel antenna signal 901 to the RF module 802. The RF module 802 can perform radio frequency domain processing such as amplification processing on the multi-channel antenna signal 901, thereby obtaining a multi-channel RF modulated signal 902. The multi-channel RF modulated signal 902 can be transmitted to the AD conversion unit 803 for analog-to-digital conversion to obtain a corresponding multi-channel digital signal 903.

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

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

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

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

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

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

[0206] Exemplarily, each frequency shift unit (such as each of DDC1 to DDC5) involved in the embodiment of the present application has a normalization processing function. The normalization processing is used to normalize the center frequency point of the high-frequency data segment to 0 MHz.

[0207] refer to Fig.11, taking the current sampling data as Fig.10 The sample data A1 shown is taken as an example.

[0208] Before normalization, the center frequency of the sampled data A1 may be 2421 MHz, and the two end frequencies of the sampled data A1 may be 2401 MHz and 2441 MHz respectively. After normalization, the center frequency of the sampled data A1 may be 0 MHz, and the two end frequencies of the sampled data A1 may be -20 MHz and 20 MHz respectively.

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

[0210] After the normalization process, each DDC and LPF may perform corresponding processing to obtain the data segment of each channel.

[0211] Exemplary, reference Fig.12 .

[0212] like Fig.12 As shown in 1201, after DDC1 performs normalization processing, the sampled data A1 can be subjected to 0MHz frequency shift processing. That is, the data distribution of the sampled data A1 after DDC1 processing is the same as the data distribution after normalization processing. In this way, the data segment within the range of + / -11MHz of the center frequency (and 0MHz) of the sampled data A1 corresponds to channel 3.

[0213] Therefore, after the sampled data A1 is filtered by LPF1, the retained data with a bandwidth of 22 MHz corresponds to the data segment corresponding to channel 3 (eg, data segment 3).

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

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

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

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

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

[0219] Combination Fig.13 The mechanism of 1301 and 1302 for matching the CCA is briefly described.

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

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

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

[0223] Taking the case of performing correlation peak detection on data segment 1 corresponding to channel 1 to determine whether data segment 1 is a target data segment using a target protocol type, the electronic device can determine the number of valid correlation peaks corresponding to data segment 1 based on the reference Baker code and data segment 1. The valid correlation peak can be a correlation peak whose peak value is greater than a preset peak threshold.

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

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

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

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

[0228] This process continues in this way until the detection window slides to the last bit of data segment 1.

[0229] The matching module 842 can determine whether the correlation peaks of the data in each detection window are valid correlation peaks, and then record the number of valid correlation peaks in the counter.

[0230] In some embodiments, after completing the data detection in all data segments 1, the matching module 842 can compare the value in the counter with the preset quantity threshold. When the value (i.e., the number of valid correlation peaks corresponding to the data segment 1) is greater than the preset quantity threshold, the data segment 1 is determined to be the target data segment. On the contrary, when the number of valid correlation peaks corresponding to the data segment 1 is less than the preset quantity threshold, the data segment 1 is determined not to be the target data segment.

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

[0232] Similarly, the matching module 842 can perform the following operations on other data segments (such as data segments 2 to 5). Fig.13 The matching process shown is performed to determine the target data segments included in data segments 2 to 5.

[0233] In this way, the matching module 842 can determine the channel corresponding to the target data segment in the sampled data A1 as the target channel using the target protocol type. Correspondingly, the matching module 842 can configure the CCA flag corresponding to the target channel to be a high level (or 1). Similarly, after completing the scanning and parsing of the sampled data A1, the electronic device can also Fig.10 The sampled data A2 and the sampled data A3 shown are scanned and analyzed to determine the target channel among channels 1 to 13 in the current environment.

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

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

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

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

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

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

[0240] like Fig.14 As shown, the antenna module 801 in the electronic device can be coupled to the RF module 802. In order to facilitate the antenna module 801 to convert the received electromagnetic waves into antenna signals (such as Fig. 9 The multi-channel antenna signal 901 is transmitted to the RF module 802. The RF module 802 performs radio frequency domain processing on the multi-channel antenna signal 901 to obtain a multi-channel RF modulated signal 902.

[0241] The RF module 802 is coupled to the AD conversion unit 803 , so that the RF module 802 transmits the multi-channel RF modulated signal 902 to the AD conversion unit 803 for digital sampling to obtain the multi-channel digital signal 903 .

[0242] The AD conversion unit 803 is coupled to the signal division module 841 so that the signal division module 841 performs frequency shift filtering on the multi-channel digital signal 903 to obtain data segments of each channel included in the sampling data obtained by the current multi-channel scanning.

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

[0244] The matching module 842 is coupled to the calculation module 842 and the analysis module 844. The calculation module 842 and the analysis module 844 determine the target channel and the corresponding data segment according to the CCA identifier, so that the calculation module 842 and the analysis module 844 determine the target channel according to the CCA identifier and perform subsequent processing.

[0245] The calculation module 843 is also coupled to the AGC unit 845, so that the AGC unit 845 can obtain the digital average power of the target channel from the calculation module 843. The AGC unit 845 can flexibly adjust the AGC gain of the RF module 802 according to the digital average power.

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

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

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

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

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

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

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

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

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

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

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

[0257] As described above with respect to the electronic device provided in the embodiment of the present application, the electronic device has the capability of adaptively adjusting the AGC gain used by the RF module 802 .

[0258] Take multi-channel scanning as an example.

[0259] It is understandable that the sizes of signals on multiple channels covered during one scanning process may be different.

[0260] Exemplary, reference Fig.16 One scan may scan m signals of m channels. The multi-channel antenna signal 901 may include signal 1 of channel 1, signal 2 of channel 2, ..., signal m of channel m.

[0261] The signal strengths corresponding to different channels may be different. For example, the signal strength of signal 1 may be greater than the signal strength of signal 2, etc. In different situations, the target channel may be channel 1 corresponding to signal 1 having a greater signal strength. Alternatively, the target channel may also be channel 2 corresponding to signal 2 having a smaller signal strength, etc.

[0262] As an implementation, Fig.17As shown, the AGC unit 845 can perform averaging (or weighted averaging) and other processing based on the multi-channel digital signal 903 obtained by the AD conversion unit 803 through digital sampling to determine the AGC gain (such as the average RF gain). The AGC unit can transmit the AGC gain to the RF module 802 so that the RF module 802 can perform amplification processing in the subsequent RF domain processing according to the AGC gain.

[0263] It is understood that the AGC gain is generally expressed in normalized dB. For example, when the AGC gain is 3 dB, it corresponds to doubling the current power level.

[0264] In such Fig.16 In the scenario, signal 1 and signal 2 will be amplified according to the average RF gain. Take the average RF gain of 3dB as an example. Then, after the gain adjustment, the power level of signal 1 will be doubled, and the power level of signal 2 will also be doubled. Since the signal strength of signal 1 before amplification is greater than that of signal 2, after amplification, the actual amplified power value of signal 1 is greater than that of signal 2.

[0265] Thus, when signal 2 is the signal corresponding to the target channel, the small signal channel data does not obtain the appropriate analog AGC gain, and also causes a large error in the RSSI calculation or table lookup (single channel table building) results.

[0266] In order to accurately amplify the channel for receiving valid data, in the solution provided in the embodiment of the present application, the AGC unit 845 can determine and adjust the AGC gain according to the digital average power of the target channel.

[0267] In combination with the above description on the amplification process in the RF domain processing, the RF module 802 may include an amplification process in the process of performing RF domain processing.

[0268] Exemplarily, the amplification process may include: based on the configured AGC gain, the antenna signal (such as Fig. 9 The multi-channel antenna signal 901 shown in FIG. 1 is amplified according to the AGC gain, so that the amplitude of the effective data carried in the multi-channel antenna signal 901 is increased to facilitate subsequent accurate digital processing.

[0269] It should be noted that, limited by the bit width of the AD conversion unit 803 , the RF modulated signal (such as the multi-channel RF modulated signal 902 ) processed by the RF module 802 cannot be too large.

[0270] It is understandable that after the gain of the multi-channel antenna signal 901 is increased, the digital bit width required for valid data is larger during digital sampling. Thus, when the digital bit width required for valid data is larger than the bit width of the AD conversion unit 803, valid data will be truncated, resulting in loss of valid data.

[0271] In addition, the RF module 802 is also necessary for amplifying the antenna signal. Through this amplification process, the effective data can be amplified, and the proportion of effective data in the data segment after digital sampling can be increased. This enables subsequent digital processing to obtain effective data more effectively.

[0272] In other words, the AGC gain configured for the RF module 802 cannot be too small, otherwise the effective data will account for too small a proportion of the entire signal, making it impossible to accurately perform digital analysis.

[0273] In the following example provided in the embodiment of the present application, an accurate and flexible AGC gain adjustment mechanism is provided in combination with the AGC gain adjustment capability of the AGC unit 845 in the electronic device. This solution can be applied to the corresponding multi-channel scanning or single-channel scanning implemented in the aforementioned solution, thereby making the AGC gain configured for the RF module 802 more accurate and enabling more effective amplification of valid data.

[0274] Exemplarily, take the multi-channel scanning involved in the above example as an example.

[0275] refer to Fig.18 The AGC unit 845 can combine the digital average power of the target channel and the multi-channel digital signal 903 transmitted by the AD conversion unit 803 to comprehensively determine the AGC gain corresponding to the target channel.

[0276] The digital average power of the target channel may be obtained by calculation by the calculation module 843 according to the digital signal of the target channel.

[0277] The determination of the target channel can be implemented based on the CCA identifier. For specific implementation, please refer to the above Figures 8 to 15 Description.

[0278] As an example, the calculation module 843 determines that the data segment processed and obtained on the link in the current sampled data is the data segment of the target channel according to the CCA flag configuration of 1. The calculation module 843 can calculate and obtain the digital average power of the target channel according to the data segment of the target channel and the formula (1) provided in the above example.

[0279] It should be noted that, in the sampled data obtained by the current multi-channel scan, if there is no data segment corresponding to the target channel (that is, all data segments fail to match), then all CCA identifiers can be 0. In this way, the electronic device can continue the next multi-channel scan according to the multi-channel scanning scheme provided in the above embodiment, so as to obtain new sampled data for processing. Repeat this until the target channel of the target protocol type is confirmed, the link CCA identifier corresponding to the channel is configured to 1, or the traversal of all channels is completed.

[0280] like Fig.18 As shown, the AGC unit 845 can determine the AGC gain that needs to be currently used according to the digital average power of the target channel.

[0281] It can be understood that the AGC gain corresponds to the target channel, and thus can achieve effective amplification of the target channel.

[0282] In some embodiments, the AGC unit 845 may determine the AGC gain according to a preset target power and the digital average power.

[0283] For example, the AGC gain may be equal to the difference between the digital average power and the target power. It should be noted that in this calculation method, the units of the digital average power, the target power, and the AGC gain may be unified. For example, the digital average power, the target power, and the AGC gain may all be expressed in db after exponential conversion.

[0284] In other embodiments, the AGC unit 845 may determine the AGC gain through comprehensive judgment based on the preset target power, the digital average power, and the full digital signal corresponding to the current sampling data transmitted by the AD conversion unit 803 .

[0285] For example, after determining the AGC gain (such as AGC gain G1) according to the difference between the digital average power and the target power, the AGC unit 845 can determine whether the digital signal amplified according to the AGC gain G1 exceeds the maximum bit width of the AD conversion unit 803.

[0286] When the digital signal amplified according to the AGC gain G1 does not exceed the maximum bit width of the AD conversion unit 803 , it is determined to use the AGC gain G1 as the AGC gain of the RF module 802 .

[0287] Correspondingly, when the digital signal amplified according to the AGC gain G1 exceeds the maximum bit width of the AD conversion unit 803 , the gain that enables the AD conversion unit 803 to reach the maximum bit width is determined as the AGC gain of the RF module 802 .

[0288] like Fig.18As shown, the AGC unit 845 can send the AGC gain to the RF module 802. In this way, the RF module 802 can perform amplification processing according to the AGC gain.

[0289] It can be understood that, since the AGC gain is determined according to the digital average power of the target channel, the amplification processing performed according to the AGC gain can enable the target channel to be effectively amplified.

[0290] As a comparison, Fig.19 Shown in Fig.16 In the scenario shown, use Fig.17 The scheme shown (i.e., scheme A), and the use of Fig.18 The effect comparison example of the scheme shown (ie, scheme B) is shown. The signal strength corresponding to P1 may be the signal strength corresponding to the maximum bit width of the current AD conversion unit 803. Take channel 2 as the target channel as an example.

[0291] like Fig.19 As shown, before the amplification process, the signal of channel 1 (i.e., Ch1) is a large signal with a signal strength of P3. The signal of channel 2 (i.e., Ch2) is a small signal with a signal strength of P4. P3 is greater than P4.

[0292] In the case of using scheme A, after amplification, the signal of channel 1 is amplified to P1. The signal of channel 2 is amplified to P2. In this way, the signal of channel 1 is amplified by (P1-P3). The signal of channel 2 is amplified by (P2-P4). (P1-P3) is equal to (P1-P3), which is the average RF gain determined according to scheme A.

[0293] In the case of using scheme B, after amplification, the signal of channel 2 is amplified to P1. That is, the signal of channel 2 is amplified by (P1-P4). In addition, the signal of channel 1 can also be amplified to the same extent. Since the amplified signal of channel 1 is greater than P1, a certain amount of data truncation may occur during the digital sampling of the AD conversion unit 803. It can be understood that since channel 1 is not the target channel, the truncation of this part of the data will not affect the acquisition of valid data.

[0294] In contrast, based on Fig.18 The scheme B shown in FIG. 1 can make the signal of the target channel (such as channel 2) be amplified by (P1-P4), which is obviously greater than the scheme based on FIG. Fig.17 The enlarged processing of (P1-P3) obtained by the scheme A shown in FIG. Fig.17 The solution shown can achieve effective amplification of the signal in the target channel during multi-channel acquisition.

[0295] In order to more accurately describe the gain control scheme in the amplification process provided in the embodiment of the present application, the following is combined with Fig. 9 The process is described by taking 5-channel scanning as an example.

[0296] Exemplary, reference Fig. 20 , the antenna module 801 can receive electromagnetic waves with a bandwidth of 5 channels and generate a multi-channel antenna signal 901. For example, the multi-channel antenna signal 901 can be as follows Fig.10 The sampled data A1, sampled data A2 or sampled data A3 shown.

[0297] The RF module 802 may perform radio frequency domain processing on the multi-channel antenna signal 901. The radio frequency domain processing may include amplification processing.

[0298] Exemplarily, in some cases, the RF module 802 may be configured with an initial gain. Thus, when processing the antenna signal, the RF module 802 may perform amplification processing according to the initial gain before receiving the AGC gain sent by the AGC unit 845. Alternatively, the initial gain may be configured in the AGC unit 845. Thus, before receiving the digital average power of the target channel, the AGC unit 845 may use the initial gain to control the RF module 802 to perform amplification processing.

[0299] The multi-channel RF modulated signal 902 obtained by the RF module 802 after radio frequency domain processing can be transmitted to the AD conversion unit 803 for analog-to-digital conversion, thereby obtaining a multi-channel digital signal 903.

[0300] The AD conversion unit 803 can transmit the multi-channel digital signal 903 to the signal division module 841 for processing to obtain the data segments corresponding to each channel. Fig. 20 The data segments 1 to 5 shown correspond to channels 1 to 5, respectively. For specific implementation, please refer to the aforementioned Figure 8 and Fig. 9 The relevant instructions are not repeated here.

[0301] The AD conversion unit 803 may also transmit the multi-channel digital signal 903 to the AGC unit 845 so that the AGC unit 845 can combine the multi-channel digital signal 903 to determine that the amplification process after the gain adjustment will not cause the truncation of valid data.

[0302] Each acquired data segment can be transmitted to the CCA in the matching module 842 for carrier sensing. The carrier sensing is used to achieve matching with the target protocol type, thereby determining the target channel.

[0303] In this example, the channel using the target protocol type is taken as channel 2.

[0304] After carrier sensing, CCA3 in the matching module 842 can confirm that the input data segment 2 is matched successfully, and the CCA flag of the signal processing link is configured to 1. If other data segments fail to match, the corresponding CCA flag will not be changed and will remain 0. For the specific implementation of this process, please refer to Fig.13 The examples are not described here.

[0305] The calculation module 843 may determine, based on the CCA identifier of the link where CCA3 is located being 1, that the data segment processed on the link (eg, data segment 2) is the data segment received by the target channel.

[0306] In this way, the calculation module 843 can calculate and obtain the corresponding digital average power according to data segment 2. Fig.18 As described in the above example, the calculation module 843 can calculate and obtain the digital average power corresponding to the data segment 2 according to the formula (1) provided in the above example. The digital average power corresponding to the data segment 2 is the digital average power of the target channel.

[0307] like Fig. 20 As shown, the calculation module 843 can transmit the digital average power to the AGC unit 845.

[0308] The AGC unit 845 can determine the AGC gain corresponding to the target channel in the current scanning and parsing process according to the digital average power corresponding to the data segment 2 and the pre-configured reference power, wherein the reference power can be a pre-configured single-channel power reference value.

[0309] Exemplarily, the AGC unit 845 may determine the AGC gain according to the difference between the digital average power corresponding to the data segment 2 and the reference power.

[0310] The AGC unit 845 can also determine, based on the multi-channel digital signal 903 provided by the AD conversion unit 803, that effective data will not be truncated after the AGC gain amplification process.

[0311] The AGC unit 845 may transmit the determined AGC gain to the RF module 802 .

[0312] In this way, the RF module 802 can perform subsequent amplification processing on the multi-channel antenna signal received according to the AGC gain.

[0313] For example, the RF module 802 can control the amplifier (such as LNA) therein to perform amplification processing according to the AGC gain. Fig.19 The effect of scheme B is shown.

[0314] Therefore, based on the above Figure 18 to Figure 20 The description enables the multi-channel scanning solution provided by the embodiment of the present application to adjust the gain used in the amplification process of the target channel according to the digital average power of the target channel. Fig.16 In the scenario shown, even if the signal strength of the target channel is not a larger one in the frequency band of the sampled data, it can still be effectively amplified.

[0315] It is understandable that the description provided in the embodiments of the present application is based on the gain adjustment in the amplification process of the multi-channel scanning solution as an example. In other embodiments, the solution can also be applied to a single-channel scanning scenario.

[0316] Exemplary, combined Figure 8 as well as Fig. 9 As described in the description of the function of the control module 805, the control module 805 can control a signal processing link in the baseband module 840 to power on and operate, thereby realizing single-channel analog and digital processing.

[0317] In the single-channel scanning scenario, the target channel is the channel currently being scanned. In this way, the calculation module 843 can calculate the corresponding digital average power according to the data segment of the single channel currently scanned and obtained according to the above formula (1). Similar to the implementation of the solution of the above multi-channel scanning scenario, the AGC unit 845 can determine the AGC gain according to the digital average power and the preset reference power, combined with the data segment currently scanned and obtained by the AD conversion unit 803. The RF module 802 can control the LNA therein to adjust the gain during the amplification process according to the AGC gain, so as to achieve effective amplification of the data received on the currently scanned channel.

[0318] Whether in multi-channel scanning or single-channel scanning scenarios, use Fig.18 or Fig. 20 The solutions shown can effectively amplify the data received by the current target channel.

[0319] The effectively amplified data can support subsequent more accurate processing.

[0320] Exemplarily, the processing may include determining RSSI, signal-to-noise ratio (SIGNAL-NOISE RATIO, SNR), etc. of data transmitted on the current target channel.

[0321] Take the RSSI of the target channel as an example. The calculated RSSI can be used to evaluate the signal reception quality of the antenna port, reference for RF domain processing, and parameter display.

[0322] The present application also provides a method for determining RSSI. Figure 18 to Figure 20 A more effective gain adjustment scheme in the amplification process is provided, which can make the RSSI of the target channel determined more accurately.

[0323] In this example, the electronic device can determine the RSSI based on the AGC gain used by the RF module 802. The AGC gain can be based on Figure 18 to Figure 20 The scheme provided is determined.

[0324] Combination Fig.21 , to be applied to Fig.18 Taking the shown composition as an example, the RSSI determination scheme provided in the embodiment of the present application is explained.

[0325] like Fig.21 As shown, the calculation module 843 can obtain the gain currently used by the RF module 802 and determine the RSSI of the signal received by the antenna module 801 on the target channel.

[0326] Take the AGC gain currently used by the RF module 802 as an example.

[0327] In some embodiments, the calculation module 843 may obtain the AGC gain currently in use from the RF module 802. The calculation module 843 may calculate and obtain the RSSI corresponding to the current target channel according to the AGC gain according to a preconfigured solution.

[0328] In some embodiments, the calculation module 843 may obtain the currently used AGC gain of the configured RF module 802 from the AGC unit 845. The calculation module 843 may calculate and obtain the RSSI corresponding to the current target channel according to the AGC gain according to a preconfigured scheme.

[0329] The RSSI calculation scheme preconfigured in the calculation module 843 is described below with reference to the accompanying drawings.

[0330] It is understandable that the gain that LNA can provide is limited. For example, the gain provided by LNA during amplification can be Gain min To Gain max between.

[0331] As an example, refer to Fig. 22 , is an example of the relationship between LNA gain and RSSI. Fig. 22 In the example, Gain min Equal to 0, Gain max Equals 76.

[0332] It can be seen that when the AGC gain used by the LNA is between (0,76), the AGC gain and RSSI are approximately linearly related. When the AGC gain used by the LNA is 0 or 76, the same AGC gain can correspond to multiple different RSSIs.

[0333] Thus, based on Fig. 22 Similar to the working characteristics of LNA, in the solution provided by the embodiment of the present application, the calculation module 843 can determine the RSSI according to the currently used AGC gain. This solution is also a pre-configured RSSI calculation solution.

[0334] Exemplarily, in some embodiments, the AGC gain is taken as an example to be in a preset linear amplification interval.

[0335] The calculation module 843 of the electronic device can be determined according to the following formula (2).

[0336] Formula (2): RX_RSSI=ba*AGC_Gain, where (a>0).

[0337] Wherein, RX_RSSI is the RSSI of the target channel currently received by the antenna module 801. AGC_Gain is the gain (i.e., AGC gain) in the amplification process currently used by the RF module 802. b and a are related parameters of the LNA in the current RF module 802. The parameters such as a and b in the formula (2) can be determined based on the pre-analysis of the LNA configured in the RF module 802 and preset in the calculation module 843.

[0338] The preset linear amplification interval may be the Gain corresponding to the currently used LNA. min , Gain max ). For example, in Fig. 22 In the example of FIG. 1 , the linear amplification interval of the LNA may be (0,76).

[0339] In this example, when the calculation module 843 determines that the currently used AGC gain is between (0, 76), the RSSI of the target channel can be calculated according to formula (2).

[0340] In some other embodiments, the AGC gain is in a preset nonlinear amplification interval as an example. The AGC gain being in the nonlinear interval may include: the AGC gain is equal to the Gain of the currently used LNA min , or, the AGC gain is equal to the Gain of the LNA currently used max .

[0341] For example, in Fig. 22In the example, when the AGC gain is equal to 0, or the AGC gain is equal to 76, it corresponds to the AGC gain being in the nonlinear amplification range.

[0342] In the embodiment of the present application, when the AGC gain is in a preset nonlinear amplification interval, the calculation module 843 of the electronic device can determine the RSSI currently received on the target channel according to a pre-configured corresponding relationship.

[0343] In some embodiments, the corresponding relationship may be a corresponding relationship between the peak-to-average value of the data segment corresponding to the target channel and the RSSI. The peak-to-average value of the data segment corresponding to the target channel may correspond to: Fig.13 The peak-to-average value of the correlation peaks for the carrier sense involved in the matching process is shown.

[0344] 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 AGC gain greater than Gain max And AGC gain is less than Gain min The corresponding relationship between each peak-to-average value and RSSI in the interval.

[0345] Table 1 below shows an example of a lookup table of peak-to-average value and RSSI.

[0346] Table 1

[0347] Peak-to-mean RSSI Peak-to-mean CV1 Value a Peak-to-mean CV2 Value b …… ……

[0348] As shown in Table 1, when the peak-to-average value is CV1, the corresponding RSSI may be value a. When the peak-to-average value is CV2, the corresponding RSSI may be value b. And so on.

[0349] In this way, when the calculation module 843 determines that the currently used AGC gain is in the nonlinear amplification interval, the RSSI of the current target channel can be determined according to Table 1.

[0350] It is understandable that Table 1 may be pre-configured in the electronic device. Similar to the acquisition mechanism of each parameter in the above formula (2), each corresponding relationship in Table 1 may also correspond to the currently used LNA.

[0351] As an example, Fig.23 An example of the corresponding relationship between the peak-to-average value of an LNA and RX_RSSI is provided.

[0352] like Fig.23As shown in the figure, when RSSI is greater than 0dBm, the peak-to-average value fluctuates between 8 and 9. For example, as the signal power decreases, the carrier sense peak-to-average value decreases. When RSSI is less than -30dBm, the peak-to-average value shows a significant downward trend. For example, as the signal power decreases, the carrier sense peak-to-average value decreases.

[0353] Therefore, based on Fig.23 The corresponding relationship between the peak-to-average value and the RSSI in the nonlinear amplification interval shown in Table 1 can be used to construct a lookup table as shown in Table 1 and configure it in the electronic device. So that the electronic device can determine that the currently used gain is in the nonlinear amplification interval according to the AGC gain, and determine the RSSI according to the peak-to-average value of the current data segment according to the lookup table shown in Table 1.

[0354] Thus, in combination with the above description, the calculation module 843 can accurately determine the RSSI of the target channel according to the currently used AGC gain using the above formula (2) or the related scheme provided in Table 1.

[0355] The following combination Fig. 20 The example shown illustrates the implementation of the solution for calculating RSSI in this scenario.

[0356] refer to Fig.24 , the RF module 802 can be configured as follows: Fig. 20 The provided solution implements, under the control of the AGC unit 845, the amplification process is performed using the AGC gain corresponding to the target channel (such as channel 2).

[0357] In this way, the calculation module 843 can obtain the AGC gain currently in use from the RF module 802 when it is necessary to calculate the RSSI. It can be understood that the AGC gain currently in use can correspond to the target channel (such as channel 2). Thus, the calculation module 843 can accurately calculate the RSSI corresponding to channel 2 based on the AGC gain. For example, the calculation module 843 can determine the RSSI of the target channel (such as channel 2) according to the AGC gain when the AGC gain is in the linear amplification interval using a scheme corresponding to formula (2). For another example, the calculation module 843 can determine the RSSI of the target channel (such as channel 2) according to the AGC gain when the AGC gain is in the nonlinear amplification interval using a scheme corresponding to Table 1.

[0358] It is understandable that the above Figures 16 to 20 Provides gain adjustment scheme for target channel, and Figure 21 to Figure 24 The RSSI determination schemes provided are all illustrated by examples when multi-channel scanning is performed in the electronic device provided in the embodiments of the present application, thereby implementing customized gain adjustment and RSSI calculation for the target channel after the target channel is determined.

[0359] Exemplary, reference Fig.25 , is a flow chart of a solution provided in an embodiment of the present application. Fig.25 The solution provided can obtain Figure 16 to Figure 24 The scheme provides a similar effect. Figure 16 to Figure 24 In the description form, each module in the electronic device is used as the execution subject. Fig.25 In the provided solution example, an electronic device is used as the execution subject to illustrate the specific implementation of the solution.

[0360] like Fig.25 As shown, the program may include:

[0361] S2501. The electronic device obtains a target data segment of a target channel according to a signal processing link with a CCA identifier of 1.

[0362] S2502. The electronic device determines a target digital average power according to the target data segment.

[0363] S2503: The electronic device determines an AGC gain according to the target digital average power and a preset reference power.

[0364] S2504: The electronic device uses the AGC gain to amplify the analog signal on the target channel.

[0365] S2505: The electronic device determines the RSSI of the signal received on the target channel according to the AGC gain.

[0366] In such Fig.25 In the implementation of the provided solution, S2501 to S2504 can implement targeted amplification processing for the target channel, so that the signal on the target channel can be amplified to a greater extent under the premise of data truncation. The specific implementation of this process can refer to Figures 16 to 20 The description is not repeated here.

[0367] Combined with S2501-S2505, the RSSI of the target channel can be accurately calculated and determined. The specific implementation of this process can be referred to Figure 21 to Figure 24 The description is not repeated here.

[0368] It should be noted that in the implementation of the above solution, the AGC gain involved in the calculation of RSSI can be based on Figure 18 to Figure 20 It is understood that in other implementations, the gain used by the RF module 802 involved in the calculation of the RSSI may also be obtained by other means. For example, the gain involved in the calculation of the RSSI may also correspond to Fig.17In this way, by distinguishing the AGC gain (or average RF gain) in the linear amplification interval and the nonlinear amplification interval to perform RSSI calculations in different ways, the RSSI of the target channel can be calculated more accurately.

[0369] In addition, in the implementation of the solution provided in the embodiment of the present application, the above-mentioned gain adjustment solution and / or RSSI calculation solution can also be applied to the single-channel scanning scenario. In this way, the channel receiving data during the single-channel scanning process can correspond to the target channel. This enables more accurate gain adjustment and RSSI calculation during the single-channel scanning process.

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

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

[0372] For example, Fig.26 FIG. 2 shows a schematic diagram of the composition of an electronic device 2600. Fig.26 As shown, the electronic device 2600 may include: a processor 2601 and a memory 2602. The memory 2602 is used to store computer-executable instructions. Exemplarily, in some embodiments, when the processor 2601 executes the instructions stored in the memory 2602, the electronic device 2600 may execute any of the methods shown in the above embodiments. Fig.26 As shown, in this example, the electronic device may also be configured with an antenna 2603 for transmitting and receiving signals. Thus, the processor 2601 may process the signal received by the antenna 2603 according to the instructions stored in the memory 2602, or send the processed signal through the antenna 2603.

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

[0374] Fig. 27A schematic diagram of the composition of a chip system 2700 is shown. The chip system 2700 may include: a processor 2701 and a communication interface 2702, which are used to support related devices to implement the functions involved in the above embodiments. In one possible design, the chip system also includes a memory for storing program instructions and data necessary for the electronic device. The chip system may be composed of chips, or may include chips and other discrete devices. It should be noted that in some implementations of the present application, the communication interface 2702 may also be referred to as an interface circuit.

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

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

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

Claims

1. A method for determining received signal strength RSSI, characterized in that: The method is applied to an electronic device, wherein the electronic device is configured with a first antenna, and the method includes: The electronic device receives a first wireless signal through the first antenna, and acquires a first analog signal corresponding to the first wireless signal; The electronic device uses a first gain to perform a first amplification process on the first analog signal to obtain a second analog signal; The electronic device determines a second gain according to the second analog signal; the second gain is different from the first gain; A received signal strength RSSI of the third analog signal is determined according to the second gain.

2. The method according to claim 1, characterized in that The method further comprises: The electronic device receives a second wireless signal through the first antenna, and acquires a third analog signal corresponding to the second wireless signal; The electronic device performs a second amplification process on the second analog signal using the second gain.

3. The method according to claim 1 or 2, characterized in that: The operating frequency band of the first antenna includes 2.4 GHz-2.5 GHz.

4. The method according to claim 2, characterized in that: The first antenna uses the same channel to receive the first wireless signal and the second wireless signal.

5. The method according to any one of claims 1 to 4, characterized in that The electronic device determines a second gain according to the second analog signal, including: The electronic device determines a first digital signal according to the second analog signal; The electronic device determines the second gain according to the first digital signal.

6. The method according to claim 5, characterized in that The determining the second gain according to the first digital signal includes: The electronic device determines a first digital average power of the first digital signal; The electronic device determines the second gain according to the first digital average power.

7. The method according to claim 6, characterized in that The determining a first digital average power of the first digital signal comprises: The electronic device calculates and obtains the first digital average power according to the first digital signal by using the following formula: Among them, Digital_power average is the first digital average power; N is the number of IQ data pairs determined according to the first digital signal; the first analog-to-digital conversion unit is used to obtain the first digital signal according to the second analog signal.

8. The method according to claim 6 or 7, characterized in that: The determining the second gain according to the first digital average power includes: The second gain is determined according to the first digital average power and a preconfigured reference power.

9. The method according to any one of claims 1 to 8, characterized in that The electronic device is provided with a first amplifying unit, and the first amplifying unit is used to perform the first amplifying process; Determining a received signal strength RSSI of the third analog signal according to the second gain includes: The electronic device determines that the second gain is within a linear amplification interval, and the linear amplification interval corresponds to the first amplification unit; The electronic device determines the RSSI of the third analog signal according to the following formula: RX_RSSI = ba*AGC_Gain; Among them, RX_RSSI is the RSSI of the third analog signal, AGC_Gain is the second gain, and a and b are preset parameters corresponding to the first amplification unit.

10. The method according to claim 9, characterized in that The linear amplification interval is: (first endpoint gain, second endpoint gain); The first endpoint gain is a minimum gain that can be provided by the first amplifying unit, and the second endpoint gain is a maximum gain that can be provided by the first amplifying unit.

11. The method according to any one of claims 1 to 8, characterized in that The electronic device is provided with a first amplifying unit, and the first amplifying unit is used to perform the first amplifying process; Determining a received signal strength RSSI of the third analog signal according to the second gain includes: The electronic device determines that the second gain is equal to the first endpoint gain, or the second gain is equal to the second endpoint gain; wherein the first endpoint gain is the minimum gain that the first amplification unit can provide, and the second endpoint gain is the maximum gain that the first amplification unit can provide; The electronic device determines the RSSI of the third analog signal according to the first digital signal and a preconfigured first corresponding relationship; Wherein, the first corresponding relationship includes at least one corresponding relationship between a peak-to-average value and RSSI; Any one of the at least one peak-to-mean value corresponds to a peak-to-mean value related to a digital signal; the at least one peak-to-mean value includes a first peak-to-mean value, and the first peak-to-mean value corresponds to the first digital signal.

12. The method according to claim 5, characterized in that The electronic device receives a first signal through the first antenna, including: The electronic device receives a first signal segment through the first antenna to obtain a first antenna signal; The first signal segment includes signals of at least two consecutive channels; the first signal segment includes the first signal; the first antenna signal includes the first analog signal; The electronic device uses a first gain to perform a first amplification process on the first analog signal to obtain a second analog signal, including: The electronic device uses the first gain to perform the first amplification process on the first antenna signal including the first analog signal to obtain a first radio frequency modulated signal; the first radio frequency modulated signal includes the second analog signal.

13. The method according to claim 12, characterized in that The electronic device obtains a corresponding first digital signal according to the second analog signal: The electronic device performs analog-to-digital conversion on the first radio frequency modulated signal to obtain a corresponding first digital signal segment, wherein the first digital signal segment includes at least two data segments corresponding to each channel of the at least two consecutive channels; The electronic device screens and determines the first digital signal from the first digital signal segment.

14. The method according to claim 13, characterized in that The electronic device screens and determines the first digital signal from the first digital signal segment, including: The electronic device performs frequency shift filtering on the first digital signal segment to obtain the at least two data segments; The electronic device performs carrier sensing on the at least two data segments, and selects a data segment using a target protocol type from the at least two data segments as the first digital signal.

15. An electronic device, characterized in that: The electronic device is used to perform the method according to any one of claims 1 to 14; The electronic device comprises: A first antenna, used to receive wireless signals between 2.4 GHz and 2.5 GHz; the first antenna is also used to convert the wireless signals into analog signals; A radio frequency unit, configured to perform radio frequency domain processing on the analog signal, wherein the radio frequency domain processing includes amplification processing to obtain a radio frequency modulated signal; An analog-to-digital conversion unit, used to perform analog-to-digital conversion on the radio frequency modulated signal to obtain a corresponding digital signal; The baseband module is used to digitally process the digital signal, wherein the digital processing includes frequency shift filtering processing, matching processing, and calculation processing; the calculation processing is used to obtain the RSSI of the analog signal.

16. The electronic device according to claim 15, characterized in that: The wireless signal includes wireless signals of at least two consecutive channels; The calculation process is used to obtain the RSSI of the analog signal, including: The calculation process is used to obtain the RSSI of the analog signal corresponding to the target channel; The target channel is a channel using a target protocol type among the at least two consecutive channels.

17. The electronic device according to claim 16, characterized in that: The baseband module specifically includes: A signal division module, configured to perform frequency shift filtering on the digital signal to obtain at least two data segments; each of the at least two data segments corresponds to one of the at least two continuous channels; A matching module, configured to perform matching processing on each of the at least two data segments; the matching processing is configured to determine a target data segment using a target protocol type among the at least two data segments; the target channel is a channel that receives the target data segment; The calculation module is used to perform calculation processing on the target data segment to determine the RSSI of the analog signal corresponding to the target channel.

18. The electronic device according to claim 17, characterized in that: The calculation module is further used to calculate the digital average power of the target data segment; The baseband module also includes: An automatic gain control AGC unit, used for determining a second gain according to the digital average power; The radio frequency unit is further configured to perform the amplification process on the analog signal according to the second gain.

19. The electronic device according to claim 18, characterized in that: A calculation module is used to calculate and process the target data segment to determine the RSSI of the analog signal corresponding to the target channel, specifically including: The calculation module is used to calculate and obtain the RSSI according to a preconfigured formula and the second gain when the second gain is within the linear amplification interval; The calculation module is further used to determine the RSSI according to a preconfigured first corresponding relationship and a peak-to-mean value of the target data segment when the second gain is in the nonlinear amplification interval; the first corresponding relationship includes at least one corresponding relationship between the peak-to-mean value and the RSSI; The linear amplification interval and the nonlinear amplification interval are preconfigured in the electronic device, and the ranges of the linear amplification interval and the nonlinear amplification interval correspond to the amplification processing capability of the radio frequency unit.

20. A chip system, characterized in that: The chip system is applied to an electronic device; the chip system includes one or more interface circuits and one or more processors; the interface circuit and the processor are interconnected through lines; the interface circuit is used to receive a signal from a memory of the electronic device and send the signal to the processor, the signal including a computer instruction stored in the memory; when the processor executes the computer instruction, the electronic device executes the method as described in any one of claims 1-14.

21. The chip system according to claim 20, characterized in that: The chip system is a baseband processor.