Signal processing method and electronic equipment
By using carrier sense synchronization to determine the target channel and calculate the received signal strength indication in a multi-channel scenario, the delay and accuracy problems of target channel determination and signal strength indication acquisition in a multi-channel scenario are solved, and efficient signal processing is achieved.
Patent Information
- Application Number
- CN202311042137.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-08-17
- Publication Date
- 2025-02-21
AI Technical Summary
In multi-channel scenarios, it is difficult for the prior art to simultaneously determine the target channel and accurately obtain its received signal strength indication, resulting in an increase in delay and inaccurate signal strength indication.
The target channel is synchronized by carrier sensing in a multiple channel, and the received signal strength indication of each channel is calculated based on the mixed signal during carrier sensing to obtain the received signal strength indication of the target channel.
It realizes the rapid determination of the target channel and obtains accurate received signal strength indication in a multi-channel parallel scanning scenario, reducing the delay and improving signal processing efficiency.
Smart Images

Figure CN119496574A_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of communications, and in particular, relates to a signal processing method and an electronic device. Background Art
[0002] In order to adapt to the communication needs in different scenarios, a variety of different frequency bands are usually used to transmit wireless network signals. In different working frequency band intervals, in order to avoid competition between devices, each working frequency band interval will also be divided into a preset number of channels. For example, at a bandwidth of 20MHz, the wireless fidelity (wireless fidelity, Wifi) 2.4GHz band includes 13 channels, the Wifi5.2GHz band includes 8 completely independent channels, and the Wifi5.8GHz band includes 5 independent channels. The wireless network receiver can determine the target channel from the available channels in the frequency band it supports.
[0003] On the other hand, the received signal strength indicator is a value used to indicate the signal strength of a certain location within the coverage of a wireless network. It has many applications in the field of communications. For example, the received signal strength indicator can be used to evaluate the quality of the network or to calculate the distance between the transmitter and the receiver. Therefore, it is of great significance to determine the received signal strength indicator of the target channel. Summary of the invention
[0004] The embodiments of the present application provide a signal processing method and an electronic device, which can determine a received signal strength indicator of a target channel.
[0005] In a first aspect, a signal processing method is provided, the method comprising: receiving a mixed signal of n channels from an antenna port, where n is a positive integer greater than 1; determining a target channel in the n channels by carrier sensing; during the carrier sensing process, calculating a received signal strength indication of the n channels at the antenna port based on the mixed signal; and obtaining a received signal strength indication of the target channel at the antenna port from the received signal strength indication of the n channels at the antenna port.
[0006] Based on the above scheme, signals of n channels can be obtained at the same time, and the target channel and the received signal strength indication of the target channel at the antenna port can be determined in the n channels, so that the corresponding service can be executed according to the received signal strength indication of the target channel. On the other hand, the received signal strength indication of the n channels at the antenna port is calculated synchronously during the carrier sensing process, so it is not necessary to calculate the received signal strength indication of the target channel after determining the target channel, thereby reducing the delay.
[0007] In combination with the first aspect, in certain implementations of the first aspect, the calculation of the received signal strength indication of the n channels at the antenna port based on the mixed signal includes: determining the received signal strength indication of the i-th channel at the antenna port based on the absolute power of the i-th channel in the digital domain and the initial instantaneous analog gain of the n channels, the initial instantaneous analog gain being used to adjust the signal amplitude of the mixed signal, where i∈[1,n] and i is an integer.
[0008] Based on the above scheme, the absolute power of the channel in the digital domain and the initial instantaneous analog gain are considered simultaneously to calculate the received signal strength indication of the channel, that is, the initial instantaneous analog gain used when processing the mixed signal can be fed back into the calculation process of the received signal strength indication.
[0009] In combination with the first aspect, in some implementations of the first aspect, the received signal strength indication of the i-th channel at the antenna port, the absolute power of the i-th channel in the digital domain, and the instantaneous analog gain satisfy the following relationship:
[0010] RX_RSSI i =RSSI preamble -AGC Gain -offset,
[0011] Among them, the RX_RSSI i Indicates the received signal strength indicator of the i-th channel at the antenna port. The RSSI preamble represents the absolute power of the i-th channel in the digital domain, the AGC_Gain represents the instantaneous analog gain, and the offset represents the calibration constant.
[0012] The instantaneous analog gain may be an initial instantaneous analog gain or a final locked analog gain.
[0013] In the above scheme, the absolute power of the channel in the digital domain is subtracted from the instantaneous analog gain value used by the RF link, so that the target channel signal is effectively gained using the final locked uniform gain value, thereby obtaining a relatively more accurate received signal strength indication in a multi-channel scenario.
[0014] In combination with the first aspect, in certain implementations of the first aspect, the absolute power of the i-th channel in the digital domain is determined according to the analog voltage and resistance value of the i-th channel.
[0015] In combination with the first aspect, in certain implementations of the first aspect, the analog voltage of the i-th channel is determined based on the in-phase signal and the orthogonal signal of the i-th channel, the maximum analog voltage of the RF circuit, and the bit width of the analog-to-digital converter, wherein the RF circuit is used to process the mixed signal, and the analog-to-digital converter is used to perform analog-to-digital conversion on the mixed signal.
[0016] In combination with the first aspect, in some implementations of the first aspect, the analog voltage of the i-th channel, the in-phase signal and the quadrature signal of the i-th channel, the maximum analog voltage of the radio frequency circuit, and the bit width of the analog-to-digital converter satisfy the following relationship:
[0017]
[0018] Among them, the U dBV Represents the analog voltage of the i-th channel. i represents the in-phase signal of the i-th channel, the Q i represents the orthogonal signal of the i-th channel, the V max Indicates the maximum analog voltage of the RF circuit. bit represents the bit width of the analog-to-digital converter, and N is the number of signal pairs consisting of the configured in-phase signal and the orthogonal signal.
[0019] Based on the above scheme, the analog voltage of the i-th channel can be estimated by the ratio of the analog voltage of the i-th channel to the maximum RF voltage, so that the absolute power of the i-th channel in the digital domain can be calculated based on the analog voltage, and the received signal strength indication of the i-th channel at the antenna port can be calculated based on the absolute power.
[0020] In combination with the first aspect, in certain implementations of the first aspect, after determining the target channel in the n channels through carrier sensing, the method also includes: when the signal of the target channel appears, dynamically adjusting the initial instantaneous analog gain to obtain a final locked analog gain value, and the final locked analog gain is used to adjust the signal amplitude of the target channel.
[0021] Exemplarily, after the target channel signal appears, the initial instantaneous analog gain is dynamically adjusted within a certain period of time (such as within 3 to 5 μs) through the automatic gain controller AGC (so that the target channel signal amplitude is close to the target amplitude, and at the same time, the mixed signal does not exceed the maximum output value of the analog-to-digital conversion port), wherein the final locked analog gain is used to adjust the signal amplitude of the target channel.
[0022] Based on the above solution, the gain value can be set according to the actual signal strength in the target channel, so that the data transmitted in the target channel can receive a stable gain that conforms to the actual signal strength of the data.
[0023] In combination with the first aspect, in certain implementations of the first aspect, the method further includes: locking the gain value of a gain controller to the final locked analog gain, the gain controller being used to control the gain used when performing amplitude adjustment on a mixed signal received from an antenna port.
[0024] Based on the above scheme, the data transmitted in the target channel can continue to receive a stable gain that matches the actual signal strength of the data, preventing the gain value change from affecting the absolute power of the data transmitted in the target channel.
[0025] In combination with the first aspect, in certain implementations of the first aspect, the method further includes: after the data transmission of the target channel is completed, unlocking the gain of the gain controller.
[0026] In combination with the first aspect, in certain implementations of the first aspect, the method further includes: unlocking the gain of the gain controller after a preset time expires.
[0027] Based on the above scheme, the gain value of the gain controller can be unlocked after the data transmission of the target channel is completed or after the preset time expires. This can prevent the gain determined according to the signal strength of the target channel (i.e., the final locked gain) from affecting the absolute power of the data of other subsequent channels.
[0028] In combination with the first aspect, in certain implementations of the first aspect, calculating the received signal strength indication of the n channels at the antenna port based on the mixed signal includes: based on the mixed signal, simultaneously calculating the received signal strength indication of each channel in the n channels at the antenna port.
[0029] Based on the above solution, the calculation time of the received signal strength indication can be saved, and the situation where the received signal strength indication of the target channel has not been calculated when the carrier sense process is completed can be avoided as much as possible.
[0030] In combination with the first aspect, in some implementations of the first aspect, the method further includes: locating the current position based on the received signal strength indication of the target channel.
[0031] Based on the above scheme, the calculation application of the positioning algorithm can be performed through the received signal strength indication of the target channel to determine the current position of the receiver.
[0032] In a second aspect, a signal processing method is provided, the method comprising: receiving a mixed signal of n channels from an antenna port; determining a target channel in the n channels by carrier sensing; determining a received signal strength indication of the target channel at the antenna port based on the absolute power of the target channel in the digital domain and an initial instantaneous analog gain, the initial instantaneous analog gain being used to adjust the signal amplitude of the mixed signal, where i∈[1,n] and i is an integer.
[0033] Based on the above scheme, the absolute power of the channel in the digital domain and the initial instantaneous analog gain are considered simultaneously to calculate the received signal strength indication of the channel, that is, the initial instantaneous gain used when processing the mixed signal can be fed back into the calculation process of the received signal strength indication.
[0034] In combination with the second aspect, in some implementations of the second aspect, the received signal strength indication of the i-th channel at the antenna port, the absolute power of the i-th channel in the digital domain, and the instantaneous analog gain satisfy the following relationship:
[0035] RX_RSSI i =RSSI preamble -AGC Gain -offset,
[0036] Among them, the RX_RSSI i Indicates the RSSI of the i-th channel at the antenna port. preamble represents the absolute power of the i-th channel in the digital domain, the AGC_Gain represents the instantaneous analog gain, and the offset represents the calibration constant.
[0037] In combination with the second aspect, in certain implementations of the second aspect, the absolute power of the i-th channel in the digital domain is determined according to the analog voltage and resistance value of the i-th channel.
[0038] In combination with the second aspect, in certain implementations of the second aspect, the analog voltage of the i-th channel is determined based on the in-phase signal and the orthogonal signal of the i-th channel, the maximum analog voltage of the RF circuit, and the bit width of the analog-to-digital converter, wherein the RF circuit is used to process the mixed signal, and the analog-to-digital converter is used to perform analog-to-digital conversion on the mixed signal.
[0039] In combination with the second aspect, in some implementations of the second aspect, the analog voltage of the i-th channel, the in-phase signal and the quadrature signal of the i-th channel, the maximum analog voltage of the radio frequency circuit, and the bit width of the analog-to-digital converter satisfy the following relationship:
[0040]
[0041] Among them, the UdBV Represents the analog voltage of the i-th channel. i represents the in-phase signal of the i-th channel, the Q i represents the orthogonal signal of the i-th channel, the V max Indicates the maximum analog voltage of the RF circuit. bit represents the bit width of the analog-to-digital converter, and N is the number of signal pairs consisting of the configured in-phase signal and the orthogonal signal.
[0042] Based on the above scheme, the analog voltage of the i-th channel can be estimated by the ratio of the analog voltage of the i-th channel to the maximum RF voltage, so that the absolute power of the i-th channel in the digital domain can be calculated based on the analog voltage, and the received signal strength indication of the i-th channel at the antenna port can be calculated based on the absolute power.
[0043] In a third aspect, a signal processing method is provided, which includes: receiving a mixed signal of n channels from an antenna port, where n is a positive integer greater than 1; determining a target channel in the n channels through carrier sensing; dynamically adjusting an initial instantaneous gain according to the signal strength of the target channel to obtain a final locked analog gain value, wherein the initial instantaneous gain is determined based on an average power of the mixed signal, and the final locked analog gain value is used to adjust the signal amplitude of the target channel; and adjusting the signal amplitude of the target channel according to the final locked analog gain.
[0044] Exemplarily, in one implementation, when the target channel signal appears, the automatic gain controller AGC dynamically adjusts the initial instantaneous analog gain according to the signal strength of the target channel within a certain period of time (for example, within 3 to 5 μs) (so that the signal amplitude of the target channel is close to the set target amplitude, and at the same time, the mixed signal amplitude does not exceed the maximum output value of the analog-to-digital conversion port) to obtain the final locked analog gain, which is used to adjust the signal amplitude of the target channel, or in other words, the final locked analog gain is used to adjust the signal amplitude of the mixed signal.
[0045] Based on the above solution, the gain value can be set according to the actual signal strength in the target channel, so that the data transmitted in the target channel can receive a stable gain that conforms to the actual signal strength of the data.
[0046] In combination with the third aspect, in certain implementations of the third aspect, the initial instantaneous analog gain is determined according to an average power of the mixed signal.
[0047] In combination with the third aspect, in certain implementations of the third aspect, the method further includes: locking the gain of a gain controller to be the final locked analog gain, the gain controller being used to control the gain value used when performing gain processing on data received from an antenna port.
[0048] Based on the above scheme, the data transmitted in the target channel can continue to receive a stable gain that matches the actual signal strength of the data, preventing the gain value change from affecting the absolute power of the data transmitted in the target channel.
[0049] In combination with the third aspect, in certain implementations of the third aspect, the method further includes: after the data transmission of the target channel is completed, unlocking the gain value of the gain controller.
[0050] In combination with the third aspect, in certain implementations of the third aspect, the method further includes: unlocking the gain of the gain controller after a preset time expires.
[0051] Based on the above scheme, the gain value of the gain controller can be unlocked after the data transmission of the target channel is completed or after the preset time expires. This can prevent the gain determined according to the signal strength of the target channel (i.e., the final locked analog gain) from affecting the absolute power of the data of other subsequent channels.
[0052] In a fourth aspect, an electronic device is provided, comprising a transceiver module for receiving a mixed signal of n channels from an antenna port, where n is a positive integer greater than 1; a determination module for determining a target channel among the n channels by carrier sensing; a calculation module for calculating a received signal strength indication of the n channels at the antenna port based on the mixed signal during the carrier sensing performed by the determination module; and an acquisition module for acquiring a received signal strength indication of the target channel at the antenna port from the received signal strength indication of the n channels at the antenna port.
[0053] In a fifth aspect, an electronic device is provided, comprising a memory and a processor, wherein the memory stores a computer program that can be run on the processor, and when the processor executes the computer program, the electronic device implements the steps of the signal processing method described in any one of the first to third aspects above.
[0054] In a sixth aspect, a computer-readable storage medium is provided, which stores a computer program. When the computer program is executed by a processor, the steps of the signal processing method described in any one of the first to third aspects above are implemented.
[0055] In a seventh aspect, a computer program product is provided. When the computer program product is run on an electronic device, the electronic device executes the signal processing method described in any one of the first to third aspects above.
[0056] In an eighth aspect, a chip system is provided, which includes a processor coupled to a memory, and the processor executes a computer program stored in the memory to implement the signal processing method described in any one of the first to third aspects above.
[0057] The chip system may be a single chip or a chip module composed of multiple chips.
[0058] It can be understood that the beneficial effects of the fourth to eighth aspects mentioned above can be found in the relevant descriptions of the first to third aspects mentioned above, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0059] Figure 1 A schematic diagram of a multi-channel parallel scanning scenario provided by an embodiment of the present application is shown;
[0060] Figure 2 A schematic flow chart of a signal processing method provided in an embodiment of the present application is shown;
[0061] Figure 3 Another schematic diagram of a multi-channel parallel scanning scenario provided by an embodiment of the present application is shown;
[0062] Figure 4 A schematic flow chart of another signal processing method provided in an embodiment of the present application is shown;
[0063] Figure 5 A schematic diagram of another scenario of multi-channel parallel scanning provided by an embodiment of the present application is shown;
[0064] Figure 6 A schematic flow chart of another signal processing method provided in an embodiment of the present application is shown;
[0065] Figure 7 A schematic diagram of another scenario of multi-channel parallel scanning provided by an embodiment of the present application is shown;
[0066] Figure 8 A schematic diagram of the structure of the device provided in the embodiment of the present application is shown;
[0067] Fig. 9 is another structural schematic diagram of the device provided in the embodiment of the present application;
[0068] Fig.10 is a software structure block diagram of the device in the embodiment of the present application;
[0069] Fig.11 A structural block diagram of an electronic device provided in an embodiment of the present application is shown;
[0070] Fig.12A structural block diagram of another electronic device provided in an embodiment of the present application is shown. DETAILED DESCRIPTION
[0071] The technical solutions in the embodiments of the present application will be described below in conjunction with the drawings in the embodiments of the present application.
[0072] The terms "first", "second", "third", "fourth" and other various terminology and numbers (if any) in the specification and claims of this application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the numbers used in this way can be interchanged where appropriate, so that the embodiments described herein can be implemented in an order other than that illustrated or described herein.
[0073] It is understood that the various numbers involved in this application are only used for the convenience of description and are not used to limit the scope of this application. The size of the sequence number of each process does not mean the order of execution. The execution order of each process should be determined by its function and internal logic.
[0074] The terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion. For example, a process, method, system, product, or apparatus that includes a series of steps or elements is not necessarily limited to those steps or elements explicitly listed, but may include other steps or elements not explicitly listed or inherent to such process, method, product, or apparatus.
[0075] In the description of the embodiments of the present application, unless otherwise specified, " / " means or, for example, A / B can mean A or B; "and / or" in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships, for example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In the description of the present application, unless otherwise specified, "multiple" means two or more.
[0076] In the various embodiments of the present application, if there is no special explanation and logical conflict, the terms and / or descriptions between different embodiments are consistent and can be referenced to each other, and the technical features in different embodiments can be combined to form new embodiments according to their inherent logical relationships. The specific operating methods in the method embodiments of the present application can also be applied to device embodiments or system embodiments.
[0077] In the present application, "pre-configuration" may include pre-definition, for example, protocol definition. Among them, "pre-definition" may be implemented by pre-saving corresponding codes, tables or other methods that can be used to indicate relevant information in a device (for example, including each network element), and the present application does not limit the specific implementation method.
[0078] The "storage" or "saving" involved in the embodiments of the present application may refer to saving in one or more memories. The one or more memories may be set separately or integrated in an encoder or decoder, a processor, or an electronic device. The one or more memories may also be partially set separately and partially integrated in a decoder, a processor, or an electronic device. The type of memory may be any form of storage medium, which is not limited by the present application.
[0079] The arrows or boxes shown by dashed lines in the schematic diagrams of the drawings in the present specification represent optional steps or optional modules.
[0080] The method provided in the embodiment of the present application can be applied to a wireless network receiver (hereinafter referred to as a receiver), such as a Wifi receiver. The receiver can be installed in an electronic device, and the electronic device can be, for example, a mobile phone, a tablet computer, a wearable device, a vehicle-mounted device, an augmented reality (AR) / virtual reality (VR) device, a laptop computer, an ultra-mobile personal computer (UMPC), a netbook, a personal digital assistant (PDA), etc. The embodiment of the present application does not impose any restrictions on the specific type of the electronic device.
[0081] As mentioned in the background technology section, each working frequency band is divided into a preset number of channels. A channel is a transmission channel for data signals that use wireless signals (electromagnetic waves) as transmission carriers. Various wireless network devices within the coverage area of the wireless signal should use different channels as much as possible to avoid interference between signals.
[0082] The receiver can determine the target channel among the available channels within the frequency band supported by the receiver. For example, the receiver can determine the target channel among the channels within the frequency band supported by the receiver by channel scanning. In one implementation method involved in the present application, the receiver can scan the channels supported by the receiver in sequence until the target channel is determined. However, if the receiver supports many channels, channel scanning may take a long time, thereby affecting the user experience. In view of this, the present application proposes another implementation method, in which the receiver can perform parallel scanning on multiple channels supported by the receiver, that is, it can scan multiple channels at the same time to improve the efficiency of channel scanning. The following is combined with Figure 1 This implementation is described as an example.
[0083] like Figure 1 As shown, the receiver performs parallel scanning of multiple channels and receives signals from n channels from the antenna port. The n channels are represented by Ch1, Ch2, ..., Chn, respectively, and the signals of the n channels are represented by Ch1 signal, Ch2 signal, ..., Chn signal, respectively, and n is a positive integer greater than 1. It can be understood that the n channels here are channels within the frequency band supported by the receiver; it can also be understood that the signal received by the receiver from the antenna port is a mixed in-phase quadrature (IQ) signal (or mixed IQ data) of the n channels, where the IQ signal refers to a pair of phase-orthogonal modulation signals in digital communication, that is, a baseband signal. Then, the receiver performs signal processing on the mixed IQ signal and determines the target channel in the multi-channel channel through carrier sensing (the specific process is not limited here).
[0084] Furthermore, the received signal strength indication of the target channel may be obtained to execute the corresponding service. For example, the current position of the receiver may be located according to the received signal strength indication of the target channel. However, in this scenario, how to obtain the received signal strength indication of the target channel still needs to be considered.
[0085] Based on this, an embodiment of the present application provides a signal processing method, in which a target channel is determined in n channels by carrier sensing. And, in the process of performing carrier sensing, the received signal strength indication of these n channels is synchronously calculated. When the target channel is determined, the received signal strength indication of the target channel can be directly obtained. In this way, the received signal strength indication of the target channel can be obtained in a scenario of multi-channel parallel scanning, and by synchronously performing carrier sensing and calculation of the received signal strength indication, the delay can be reduced and the efficiency can be improved.
[0086] Combine the following Figure 2 The method 200 shown is an exemplary description of a possible implementation of the signal processing method provided in an embodiment of the present application. Among them, the method 200 can be executed by a receiver, or by an electronic device where the receiver is located. The receiver here is, for example, a multi-channel scanning Wifi receiver, which refers to a receiver that can perform parallel scanning of Wifi signals of multiple channels. For convenience, the following description is taken as an example of the receiver executing the method 200.
[0087] S210, receiving a mixed signal of n channels from an antenna port.
[0088] Exemplarily, the receiver receives mixed signals of n channels from an antenna port.
[0089] Among them, the antenna port refers to the input interface of the receiving antenna on the receiver, and the receiver can receive the target frequency band signal through the antenna port; the n channels are part or all of the channels in the frequency band supported by the receiver, and n is a positive integer greater than 1; the mixed signal is a signal obtained by mixing the signal of each channel in the n channels together, for example, a mixed IQ signal (including an in-phase (I) signal and an orthogonal (Q) signal) obtained by mixing the IQ signal of each channel in the n channels.
[0090] S220, determining a target channel among n channels through carrier sensing.
[0091] Exemplarily, after receiving a mixed signal of n channels from the antenna port, the mixed signal can be processed by the radio frequency circuit. For example, the signal is gain processed by a low noise amplifier (LNA), mixed by a mixer (MIX), filtered by a low pass filter (LPF), and so on. Then, the analog signal can be converted into a digital signal by analog-digital (AD) conversion, and then the mixed signal can be separated by channel separation filtering to obtain n digital domain signals, which correspond to the n channels one by one, and the n digital domain signals refer to the digital signals obtained after the analog domain signals of the n channels are processed and analog-to-digital converted.
[0092] After acquiring the n-channel digital domain signal, the target channel is determined in the n-channel based on the n-channel digital domain signal. For example, the target channel can be determined in the n-channel through a clear channel assessment (CCA) process. The CCA process can be used to determine the busy or idle state of the channel. Specifically, for example, in the CCA process, carrier sensing (or energy detection) can be used to determine whether a specific frequency range or bandwidth of the channel is in an "idle" state suitable for transmission, or a "busy" state that is not suitable for transmission or unavailable. Therefore, the state of the n-channel can be determined through the carrier sensing process, and the target channel can be determined in the n-channel based on the judgment result.
[0093] It is understandable that the target channel in the embodiment of the present application represents a channel to be used, or a channel used to perform a service. For example, the target channel determined in the embodiment of the present application is used for data transmission, or the target channel in the embodiment of the present application is used to determine the target signal and obtain information about the target signal. For example, in the scenario of Wifi communication, the name of the target Wifi signal can be solved according to the determined target channel.
[0094] S230, in the process of performing carrier sensing, calculating the received signal strength indicator of the n channels at the antenna port based on the mixed signal.
[0095] Exemplarily, during the execution of S220, received signal strength indicators of n channels at antenna ports are synchronously calculated.
[0096] It can be understood that the received signal strength indication described in the embodiment of the present application refers to a value used to identify the network signal strength (such as Wi-Fi signal strength). Specifically, it can be a received signal strength indication (RSSI), or it can be other existing or future values used to identify signal strength, which is not limited in the present application.
[0097] It can also be understood that the calculation of the received signal strength indication of the channel described in the embodiment of the present application may refer to the calculation of the received signal strength indication of the signal within the channel.
[0098] It can also be understood that the present embodiment does not limit the specific method for calculating the received signal strength indication. In one possible implementation, the received signal strength indication of n channels at the antenna port can be calculated by using the method shown in step S430 in method 400. The specific scheme can be referred to the description of method 400, which will not be repeated here.
[0099] It can also be understood that the received signal strength indication of the n-channel at the antenna port refers to the received signal strength indication of the original signal of the n-channel received by the receiver at the antenna port, rather than the received signal strength indication of the signal after data processing. Figure 1 For example, the received signal strength indication of n channels at the antenna port refers to the received signal strength indication of the Ch1 signal, the Ch2 signal, ..., the Chn signal that have not undergone the signal processing process.
[0100] In a possible implementation, the received signal strength indicator of each of the n channels at the antenna port is calculated. In this way, no matter which channel is the determined target channel, the received signal strength indicator of the channel has been calculated in advance.
[0101] In a possible implementation, the received signal strength indications of n channels at the antenna port are calculated simultaneously. In this way, the calculation time of the received signal strength indication can be saved, and the situation in which the received signal strength indication of the target channel has not been calculated when the carrier sensing process is completed can be avoided as much as possible.
[0102] S240, obtaining a received signal strength indication of a target channel at an antenna port from the received signal strength indications of n channels at the antenna port.
[0103] Exemplarily, since the received signal strength indications of n channels have been pre-calculated during the carrier sensing process, after the target channel is determined, the received signal strength indication of the target channel can be directly obtained from the received signal strength indications of these n channels, without the need to calculate the received signal strength indication of the target channel after determining the target channel, thereby reducing latency.
[0104] Optionally, after the target channel is determined, the calculation of the received signal strength indicators of other channels except the target channel may be stopped.
[0105] Further optionally, after the signal strength indication of the target channel is calculated, the signal strength indication of the target channel may be reported to the protocol layer.
[0106] Further optionally, after the received signal strength indication of the target channel is calculated, a corresponding service can be executed based on the received signal strength indication of the target channel. For example, the received signal strength indication of the target channel can be used to locate the current position, that is, the received signal strength indication of the target channel is used to execute the calculation application of the positioning algorithm to determine the current position of the receiver.
[0107] In summary, through the above method 200, the target channel and the received signal strength indication of the target channel at the antenna port can be determined in the scenario of multi-channel parallel scanning, so that the corresponding service can be executed according to the received signal strength indication of the target channel. On the other hand, during the carrier sensing process, the received signal strength indication of n channels at the antenna port is synchronously calculated, so that it is not necessary to calculate the received signal strength indication of the target channel after determining the target channel, thereby reducing the delay.
[0108] However, in the above scenario of multi-channel parallel scanning, the RSSI of the target channel may be inaccurate, thus affecting the execution of subsequent services. Figure 3 A possible situation is illustrated below.
[0109] like Figure 3 As shown, after the receiver receives signals of n channels (represented by Ch1 signal, Ch2 signal, ..., Chn signal respectively) from the antenna port, the mixed IQ signal is processed by the RF circuit (for example, including LNA, MIX, LPF process), and then the analog signal is converted into a digital signal by AD conversion, and then the mixed signal is separated by channel separation filtering to obtain n digital domain signals. These n digital domain signals correspond to n channels one by one and are represented by Ch1 signal', Ch2 signal', ..., Chn signal' respectively. Taking Ch1 signal' as an example, Ch1 signal' is the digital domain signal after the Ch1 signal executes the above signal processing process.
[0110] The gain value (AGCGain) used by the above RF circuit when amplifying the signal is determined by the automatic gain control (AGC) based on the average power of the signal of the above n channels. That is to say, in the above example, the signals of the n channels are processed using the same gain. Since the signal strengths of different channels are different, after the signals of the n channels are processed using the same gain, the absolute power of the signal in the target channel (hereinafter referred to as the target signal) may change, because the gain applied to the target signal does not depend on the signal strength of the target signal itself, but on the average power of the n-channel signal. Therefore, the RSSI value of the target channel calculated in this case may be inaccurate, thereby affecting the execution of subsequent services.
[0111] Based on this, the embodiment of the present application provides a signal processing method, which can reduce the influence of the gain processing process on the absolute power of the target channel, so as to obtain a more accurate RSSI value of the target channel at the antenna port. Figure 4 The method 400 in the embodiment of the present invention is used as an exemplary description of the solution. It is understandable that the method 400 can be implemented independently or in combination with the method 200, and the present application does not limit this. When implemented in combination with the method 200, the solution provided by the method 400 in step S430 can be regarded as a possible implementation of step S230 in the method 200, and the details can be referred to the description of step S430.
[0112] S410, receiving a mixed signal of n channels from an antenna port.
[0113] S420, determining a target channel from n channels through carrier sensing.
[0114] It can be understood that S410 and S420 are similar to S210 and S220 in method 200, and for the sake of brevity, they are not repeated here.
[0115] S430, determining a received signal strength indicator of the target channel at the antenna port according to the absolute power of the target channel in the data domain and the instantaneous analog gain.
[0116] Exemplarily, after a series of processing is performed on the mixed signal through the RF circuit and the signals of n channels in the digital domain are obtained through AD conversion and channel separation processes, the receiver can determine the received signal strength indication of the target channel at the antenna port based on the absolute power of the target channel in the digital domain and the instantaneous analog gain.
[0117] The absolute power of the target channel in the digital domain refers to the absolute power of the digital signal obtained after the signal of the target channel is processed and AD converted. Figure 3 For example, assuming that Ch2 is the target channel, the absolute power of the Ch2 signal ' is the absolute power of the target channel in the digital domain.
[0118] The instantaneous analog gain is used to adjust the signal amplitude of the mixed signal received by the receiver from the antenna port, or the instantaneous analog gain is the gain value used when amplifying the mixed signal, or the instantaneous analog gain is the gain value used when the RF circuit processes the mixed signal. In one implementation, the instantaneous analog gain is determined based on the average power of the mixed signal.
[0119] The following is an illustrative description of a specific implementation method in which a receiver calculates a received signal strength indicator of a target channel with reference to an example.
[0120] In a possible implementation, during the carrier sensing process, the received signal strength indication of the n-channel at the antenna port is calculated according to the absolute power of the n-channel in the digital domain and the initial instantaneous analog gain, and the initial instantaneous analog gain is used to adjust the signal amplitude of the mixed signal, and the initial instantaneous analog gain is determined based on the average power of the mixed signal. After the target channel is determined by carrier sensing, the automatic gain controller dynamically adjusts the initial instantaneous analog gain according to the signal strength of the target channel to obtain the final locked analog gain, and the final locked analog gain is used to adjust the signal amplitude of the mixed signal. The specific implementation is not limited in this embodiment. As an example, the AGC will dynamically adjust the initial instantaneous analog gain within a certain time (such as within 3 to 5 μs) to obtain the final locked analog gain, so that the signal amplitude of the target channel is close to the target amplitude (that is, the difference between the signal amplitude of the target channel and the target amplitude is less than the preset threshold value), and at the same time, the mixed signal will not exceed the maximum output value of the analog-to-digital conversion port). It can be understood that the above-mentioned final locked analog gain is used to amplify the data transmitted in the target channel so that the data transmitted in the target channel can accept a stable gain. In addition, the present application does not limit the specific implementation method for the receiver to obtain the final locked analog gain. In one implementation method, the receiver can read the final locked analog gain from a register.
[0121] Further, after determining the final locked analog gain, the gain value of the final locked AGC is the final locked analog gain, and the received signal result strength indication of the n-channel is recalculated according to the AGC locked mark, and the received signal strength indication of the final target channel at the antenna port is obtained from the recalculated received signal strength indication of the n-channel at the antenna port. That is, in the process of carrier sensing, the received signal strength indication of the n-channel at the antenna port is calculated in advance according to the absolute power of each channel in the digital domain and the initial instantaneous analog gain value of each channel in the n-channel, and the target channel is one of the n-channels. Therefore, after determining the target channel, the instantaneous value of the AGC analog gain (that is, the initial instantaneous analog gain) is dynamically adjusted and finally locked, and the received signal strength pre-indication of the n-channel at the antenna port is recalculated, so that the received signal strength indication of the target channel at the antenna port can be directly obtained from the pre-acquired received signal strength indication of the n-channel at the antenna port, thereby reducing the delay. This implementation can be combined with the above method 200, that is, this implementation can be used as a possible implementation of step S230 of method 200.
[0122] Taking the i-th channel among n channels as an example, a specific implementation method for calculating the received signal strength indication of the i-th channel at the antenna port is introduced below, where i∈[1,n] and is an integer. It can be understood that the following calculation method can be used to calculate the received signal strength indication of n channels during the process of performing carrier sensing (recorded as situation 1), and can also be used to calculate the received signal strength indication of n channels after the target channel is determined (or after the signal of the target channel is found). In situation 1, the following instantaneous analog gain value is the initial instantaneous analog gain; in situation 2, the following instantaneous analog gain value is the final locked analog gain.
[0123] For example, the absolute power of the i-th channel in the digital domain can be converted into the received signal strength indication of the i-th channel at the antenna port by removing the amplification effect of the radio frequency circuit (i.e., subtracting the instantaneous analog gain). Specifically, the received signal strength indication of the i-th channel at the antenna port can be calculated by the following formula:
[0124] RX_RSSI i =RSSI preamble -AGC_Gain-offset,
[0125] Among them, RX_RSSI i Indicates the received signal strength indication of the i-th channel at the antenna port (in dBm), RSSI preamble It represents the absolute power of the i-th channel in the digital domain, AGC_Gain represents the instantaneous analog gain, and offset represents the calibration constant.
[0126] It is understandable that the above calibration constant offset is used to compensate for some impairments in the signal processing process, such as impairments generated when performing channel separation through channel separation filtering, and impairments generated by the resampling process, etc. The offset here can be set as a configurable parameter to improve the compatibility of practical applications.
[0127] Furthermore, the absolute power of the i-th channel in the digital domain (i.e., the preamble of CCA, i.e., the RSSI preamble ) can be determined according to the analog voltage and RF resistance of the i-th channel. An example is given below:
[0128] Assume that the RF resistance R is 50Ω and the current power is P current (unit: mW), then the absolute value of the current power is RSSI preamble (Unit: dBm):
[0129] RSSI preamble =10×lg(P current ),
[0130] According to the power calculation formula (Where P is in W, U is the analog voltage in V, and R is the RF resistance 50Ω), the current analog voltage value can be obtained as:
[0131]
[0132] The analog voltage U current The conversion formula from the unit of dBV is:
[0133] U dBV =20×lg(U current ),
[0134] According to the above formula, the relationship between absolute power and analog voltage can be obtained:
[0135]
[0136] Therefore, in the design of RF resistance of 50Ω, the absolute power RSSI of the i-th channel in the digital domain is preamble =U dBV +13.
[0137] Furthermore, the analog voltage of the i-th channel (i.e., the above-mentioned U dBV ) is determined according to the in-phase signal and the orthogonal signal of the i-th channel, the maximum analog voltage of the radio frequency circuit, and the bit width of the analog-to-digital converter, wherein the radio frequency circuit is used to process the mixed signal, and the analog-to-digital converter is used to perform analog-to-digital conversion on the mixed signal.
[0138] Specifically, the U of the i-th channel can be estimated by the ratio of the analog voltage of the i-th channel to the maximum RF voltage. current (unit is V), and then get U through the conversion formula dBV (in dBV), for example:
[0139]
[0140] Among them, U dBV Represents the analog voltage of the i-th channel, I i represents the in-phase signal of the i-th channel, Q i represents the orthogonal signal of the i-th channel, that is, I i and Q i Respectively represent the real and imaginary parts of the complex sampling point signal; V max Indicates the maximum analog voltage of the RF circuit, adc bit represents the bit width of the analog-to-digital converter, and N is the number of signal pairs consisting of the configured in-phase signal and orthogonal signal.
[0141] Combining the above derivation process, the received signal strength indicator of the i-th channel at the antenna port can be obtained as:
[0142]
[0143] V max , Offset is simplified to the calibration constant offset′, so the simplified calculation formula can be obtained:
[0144]
[0145] It is understandable that in order to improve the compatibility of practical applications, the data length N (i.e., the amount of IQ data involved in the above operation, or the time length corresponding to the IQ data involved in the above operation) and the calibration constant offset′ can be set as configurable items, and the specific method is not limited here.
[0146] In summary, based on the calculation method provided in the above implementation, the target channel received signal strength indication can be instantaneously calculated by reading the initial analog gain used by the RF link, and the gain dynamic feedback adjustment can be performed based on the comparison of the signal amplitude of the target channel signal with the set target amplitude (so that the target channel signal strength amplitude is close to the target amplitude, and at the same time, the mixed signal does not exceed the maximum output value of the AD port), thereby enhancing the effective gain of the smaller target channel signal in the mixed signal, eliminating the influence of the RF link on the absolute power of the target channel after amplifying the mixed signal using the initial gain value, so that a more accurate received signal strength indication can be obtained. Figure 5 Introduction This application provides a specific application of the calculation method in a practical scenario.
[0147] from Figure 5 It can be seen that Figure 5 The scheme shown in Figure 3 On the basis of , the calculation process of RSSI (corresponding to the received signal strength indication in the above embodiment) is added. Specifically, after the receiver receives Ch1 signal, Ch2 signal, ..., Chn signal from the antenna port, it processes the mixed IQ signal through the RF circuit, and then converts the analog signal into a digital signal through AD conversion, and then separates the mixed signal through channel separation filtering (optionally, resampling and LPF processes can also be performed) to obtain n digital domain signals: Ch1 signal', Ch2 signal', ..., Chn signal'.
[0148] Furthermore, by reading AGCGain (corresponding to the instantaneous analog gain in the above embodiment) from RF (such as the AGC register in RF), the RSSI of each channel is calculated based on the absolute power of each channel in the digital domain and the AGCGain, and represented by RSSI 1, RSSI 2, ..., RSSIn respectively.
[0149] On the other hand, the target channel is determined by carrier sensing, and the RSSI of the target channel is obtained from RSSI 1, RSSI 2, ..., RSS In. For example, if the target channel is Ch2, the RSSI of the target channel is RSSI 2.
[0150] In another possible implementation, after the target channel is determined by carrier sensing, the final received signal strength indication of the target channel at the antenna port can be determined based on the absolute power of the target channel in the digital domain and the final locked analog gain. In other words, this implementation does not need to calculate the received signal strength indication of other channels except the target channel, thereby reducing power consumption. The specific calculation method of the received signal strength indication of the target channel is similar to the aforementioned scheme and will not be repeated here.
[0151] However, in the above scheme, although the target channel can be determined and a relatively accurate received signal strength indication can be calculated, if data is subsequently transmitted through the target channel and the initial instantaneous analog gain is still used to process the data of the target channel, the absolute power of the data will change.
[0152] Based on this, the embodiment of the present application provides a signal processing method, which can adjust the gain value of the radio frequency circuit so as to process the data of the target channel with a stable gain. Figure 6 The method 600 in the embodiment of the present invention is used as an exemplary description of the solution. It is understandable that the method 600 can be implemented independently or in combination with the method 200 or the method 400. For example, the solution shown in S630-S640 in the method 600 can be further implemented on the basis of the solution provided by the method 200 or the method 400. For details, please refer to the description of the S630-S640 section.
[0153] S610: Receive a mixed signal of n channels from an antenna port.
[0154] S620, determining a target channel from n channels through carrier sensing.
[0155] It can be understood that S610 and S620 are similar to S210 and S220 in method 200, and for the sake of brevity, they are not repeated here.
[0156] S630: dynamically adjust the initial instantaneous analog gain according to the signal strength of the target channel to obtain a final locked analog gain.
[0157] It can be understood that the initial instantaneous analog gain here has the same meaning as the initial instantaneous analog gain introduced in method 400, and for the sake of brevity, it will not be repeated here.
[0158] Exemplarily, after the target channel is determined, the gain of the radio frequency circuit may be adjusted to a final locked analog gain according to the signal strength of the target channel.
[0159] Optionally, in a possible implementation, the initial instantaneous analog gain can be adjusted to obtain the final locked analog gain based on the difference between the received signal strength indication of the target channel and the preconfigured target received signal strength indication. The specific process is not limited in this application.
[0160] Optionally, the initial instantaneous analog gain may be adjusted multiple times based on a preset rule, which is not limited in the present application.
[0161] S640: Adjust the signal amplitude of the target channel according to the final locked analog gain.
[0162] Exemplarily, after adjusting the initial instantaneous analog gain to obtain the final locked analog gain, the final locked analog gain can be used to adjust the signal amplitude of the target channel, or in other words, the data transmitted in the target channel can be amplified using the final locked analog gain.
[0163] In one possible implementation, after determining the final locked analog gain, the gain value of the locked gain controller is the final locked analog gain, wherein the gain controller here is used to control the gain used when performing amplitude adjustment on the signal received from the antenna port, that is, the gain controller here is located in the RF circuit that performs signal processing on the mixed signal, and the gain controller is, for example, an AGC controller; locking the gain value of the gain controller to the final locked analog gain means temporarily setting the gain value of the gain controller to a fixed value, that is, the final locked analog gain, and the gain value of the gain controller will not be changed until further instructions are received (or before the preset time expires).
[0164] Further optionally, after the data transmission of the target channel is completed (or after a preset time expires), the gain of the gain controller is unlocked, that is, the gain value of the gain controller is no longer restricted to a fixed value.
[0165] In summary, based on the solution provided by the above method 600, the gain value of the gain controller can be set according to the actual signal strength in the target channel, so that the data transmitted in the target channel can receive a stable gain that conforms to the actual signal strength of the data. Figure 7 A specific application of method 600 in an actual scenario is introduced.
[0166] from Figure 7 It can be seen that Figure 7 The scheme shown in Figure 5 Specifically, after the receiver receives Ch1 signal, Ch2 signal, ..., Chn signal from the antenna port, it obtains n digital domain signals: Ch1 signal', Ch2 signal', ..., Chn signal' through RF, AD conversion, channel separation filtering (optionally including resampling and LPF).
[0167] After the target channel is determined through carrier sensing, CCAFLAG is fed back to the AGC, and the CCAFLAG is used to indicate the target channel. For example, CCAFLAG includes n indicator bits, and these n indicator bits correspond one-to-one to n channels. When an indicator bit is "0", it indicates that the channel corresponding to the indicator bit is not the target channel; when an indicator bit is "1", it indicates that the channel corresponding to the indicator bit is the target channel. The AGC receives CCAFLAG. If CCAFLAG indicates that there is a target channel (that is, there is only one indicator bit in CCAFLAG that is "1"), the AGC adjusts the gain value according to the signal strength of the target channel to prevent the absolute power of the data transmitted in the target channel from changing due to the mismatch of the gain value.
[0168] Corresponding to the methods given in the above-mentioned method embodiments, the embodiments of the present application also provide corresponding devices, which include modules for executing the corresponding methods in the above-mentioned method embodiments. The module can be software, hardware, or a combination of software and hardware. It can be understood that the technical features described in the above-mentioned method embodiments are also applicable to the following device embodiments. Therefore, the contents not described in detail can be referred to the above method embodiments, and for the sake of brevity, they will not be repeated here.
[0169] Figure 8 1 shows a structural block diagram of an apparatus 1000 provided in an embodiment of the present application. For convenience, only the parts related to the embodiment of the present application are shown. The apparatus 1000 may be an electronic device or a receiver arranged on an electronic device. Figure 8 , the device 1000 may specifically include the following units or modules:
[0170] The receiving antenna is used to receive mixed signals of n channels, where n is a positive integer greater than 1.
[0171] The RF module is connected to the receiving antenna and is used to process the mixed signal received from the receiving antenna. Exemplarily, the RF module may include one or more of the following: a low-noise amplifier, used to perform gain processing on the signal; a mixer, used to perform mixing processing on the signal; and a low-pass filter, used to perform filtering processing on the signal.
[0172] The gain controller is used to control the gain value used when the mixed signal received from the antenna port is adjusted in amplitude. It is understandable that the gain controller can be a unit in the RF module or a unit outside the RF module, and this application does not limit it.
[0173] The analog-to-digital converter is connected to the radio frequency module and is used to convert the analog signal received from the radio frequency module into a digital signal.
[0174] The channel separation filter is connected to the analog-to-digital converter and is used for separating the mixed digital signals.
[0175] The carrier sensing module is connected to the channel separation filter (there may be other modules in between, which are not limited here), and is used to determine the target channel through carrier sensing in the multi-channel channel.
[0176] The calculation module is used to calculate the received signal strength indication of n channels.
[0177] The signal generator is connected to the carrier sensing module and the gain controller, and is used to obtain the carrier sensing result (corresponding to the CCAFLAG in the above scheme) from the carrier sensing module, and send the carrier sensing result to the gain control module.
[0178] The signal processing module is used to obtain the signal of the target channel and process the signal of the target channel based on business needs.
[0179] It can be understood that the above-mentioned device 1000 can implement the solutions provided by the above-mentioned methods 200, 400, and 600. For example, when the device 1000 is applied to the method 200, the carrier sensing module and the calculation module work synchronously, that is, the carrier sensing process and the calculation process of the received signal strength indication are carried out synchronously. After the carrier sensing module determines the target channel, the signal processing module can directly obtain the received signal strength indication of the target channel from the received signal strength indications of the n channels pre-calculated by the calculation module, thereby reducing the delay. The specific implementation method can refer to the specific process in the method 200, which will not be repeated here. ; For another example, when the device 1000 is applied to the method 400, the calculation module may adopt the calculation method of the received signal strength indication provided by the method 400, so as to obtain a more accurate received signal strength indication. The specific implementation method can refer to the specific process in the method 400, which will not be repeated here; for another example, when the device 1000 is applied to the method 400, after the gain controller receives the carrier sensing result from the signal generator, if there is a target channel among the n channels, it adjusts its own gain value and locks the gain value after the adjustment. The specific implementation method can refer to the specific process in the method 600, which will not be repeated here.
[0180] Fig. 9 1 shows a structural block diagram of the device 1100 provided in an embodiment of the present application. For the sake of convenience, only the parts related to the embodiment of the present application are shown. Fig. 9 , the device 1100 may specifically include the following modules:
[0181] The transceiver module 1110 is used to receive a mixed signal of n channels from an antenna port, where n is a positive integer greater than 1;
[0182] A determination module 1120, configured to determine a target channel in the n channels by carrier sensing;
[0183] The calculation module 1130 is used to calculate the received signal strength indicator of the n channels at the antenna port based on the mixed signal during the process of the determination module 1120 performing the carrier sensing;
[0184] The acquisition module 1140 is configured to acquire the received signal strength indication of the target channel at the antenna port from the received signal strength indications of the n channels at the antenna port.
[0185] That is to say, in the device provided in the embodiment of the present application, the determination module 1120 and the calculation module 1130 can be executed synchronously, so that the carrier sensing process and the calculation process of the received signal strength indication can be executed synchronously, so that after the determination module 1120 determines the target channel, the acquisition module 1140 can directly obtain the received signal strength indication of the target channel, thereby reducing the delay.
[0186] It can be understood that the four modules described in the above-mentioned device 1100 can be four separate modules, or two or more of the modules can be combined into one module. For example, the determination module 1120, the calculation module 1130, and the acquisition module 1140 can be combined into one processing module, and this application does not limit this.
[0187] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units or modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.
[0188] like Fig.10 As shown, the embodiment of the present application further provides a device 1200, which includes: a processor 1210, a memory 1220, and a computer program stored in the memory 1220 and executable on the processor 1210. When the processor 1210 executes the computer program, the steps performed by the processor in any of the above method embodiments are implemented.
[0189] It is understandable that if the above-mentioned integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, which can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a computer-readable storage medium. When the computer program is executed by the processor, the steps of the above-mentioned various method embodiments can be implemented. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may at least include: any entity or device that can carry the computer program code to the camera / electronic device, a recording medium, a computer memory, a read-only memory (ROM), a random access memory (RAM), an electric carrier signal, a telecommunication signal, and a software distribution medium. For example, a USB flash drive, a mobile hard disk, a magnetic disk or an optical disk. In some jurisdictions, according to legislation and patent practice, computer-readable media cannot be electric carrier signals and telecommunication signals.
[0190] An embodiment of the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in the above-mentioned method embodiments can be implemented.
[0191] An embodiment of the present application provides a computer program product. When the computer program product is run on an electronic device, a mobile terminal can implement the steps in the above-mentioned method embodiments when executing the computer program product.
[0192] The method provided in the embodiment of the present application can be applied to an electronic device, or installed in a receiver of the electronic device. The electronic device can be, for example, a mobile phone, a tablet computer, a wearable device, a vehicle-mounted device, an augmented reality (AR) / virtual reality (VR) device, a notebook computer, an ultra-mobile personal computer (UMPC), a netbook, a personal digital assistant (PDA), etc. The embodiment of the present application does not impose any restrictions on the specific type of the electronic device.
[0193] For example, Fig.111 shows a schematic diagram of the structure of the electronic device 100. The electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, etc.
[0194] It is to be understood that the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may include more or fewer components than shown in the figure, or combine some components, or split some 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.
[0195] The processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (AP), a modem processor, a graphics processor (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Different processing units may be independent devices or integrated into one or more processors.
[0196] The controller may be the nerve center and command center of the electronic device 100. The controller may generate an operation control signal according to the instruction operation code and the timing signal to complete the control of fetching and executing instructions.
[0197] The processor 110 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may store instructions or data that the processor 110 has just used or cyclically used. If the processor 110 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.
[0198] In some embodiments, the processor 110 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.
[0199] The I2C interface is a bidirectional synchronous serial bus, including a serial data line (SDA) and a serial clock line (SCL). In some embodiments, the processor 110 may include multiple groups of I2C buses. The processor 110 may be coupled to the touch sensor 180K, the charger, the flash, the camera 193, etc. through different I2C bus interfaces. For example: the processor 110 may be coupled to the touch sensor 180K through the I2C interface, so that the processor 110 communicates with the touch sensor 180K through the I2C bus interface, thereby realizing the touch function of the electronic device 100.
[0200] The I2S interface can be used for audio communication. In some embodiments, the processor 110 can include multiple I2S buses. The processor 110 can be coupled to the audio module 170 via the I2S bus to achieve communication between the processor 110 and the audio module 170. In some embodiments, the audio module 170 can transmit an audio signal to the wireless communication module 160 via the I2S interface to achieve the function of answering a call through a Bluetooth headset.
[0201] The PCM interface can also be used for audio communication, sampling, quantizing and encoding analog signals. In some embodiments, the audio module 170 and the wireless communication module 160 can be coupled via a PCM bus interface. In some embodiments, the audio module 170 can also transmit audio signals to the wireless communication module 160 via the PCM interface to realize the function of answering calls via a Bluetooth headset. Both the I2S interface and the PCM interface can be used for audio communication.
[0202] The UART interface is a universal serial data bus for asynchronous communication. The bus can be a bidirectional communication bus. It converts the data to be transmitted between serial communication and parallel communication. In some embodiments, the UART interface is generally used to connect the processor 110 and the wireless communication module 160. For example, the processor 110 communicates with the Bluetooth module in the wireless communication module 160 through the UART interface to implement the Bluetooth function. In some embodiments, the audio module 170 can transmit an audio signal to the wireless communication module 160 through the UART interface to implement the function of playing music through a Bluetooth headset.
[0203] The MIPI interface can be used to connect the processor 110 with peripheral devices such as the display screen 194 and the camera 193. The MIPI interface includes a camera serial interface (CSI), a display serial interface (DSI), etc. In some embodiments, the processor 110 and the camera 193 communicate via the CSI interface to implement the shooting function of the electronic device 100. The processor 110 and the display screen 194 communicate via the DSI interface to implement the display function of the electronic device 100.
[0204] The GPIO interface can be configured by software. The GPIO interface can be configured as a control signal or as a data signal. In some embodiments, the GPIO interface can be used to connect the processor 110 with the camera 193, the display 194, the wireless communication module 160, the audio module 170, the sensor module 180, etc. The GPIO interface can also be configured as an I2C interface, an I2S interface, a UART interface, a MIPI interface, etc.
[0205] The USB interface 130 is an interface that complies with the USB standard specification, and specifically can be a Mini USB interface, a Micro USB interface, a USB Type C interface, etc. The USB interface 130 can be used to connect a charger to charge the electronic device 100, and can also be used to transfer data between the electronic device 100 and a peripheral device. It can also be used to connect headphones to play audio through the headphones. The interface can also be used to connect other electronic devices, such as AR devices, etc.
[0206] It is understandable that the interface connection relationship between the modules illustrated in the embodiment of the present application is only a schematic illustration and does not constitute a structural limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.
[0207] The charging management module 140 is used to receive charging input from a charger. The charger may be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 may receive charging input from a wired charger through the USB interface 130. In some wireless charging embodiments, the charging management module 140 may receive wireless charging input through a wireless charging coil of the electronic device 100. While the charging management module 140 is charging the battery 142, it may also power the electronic device through the power management module 141.
[0208] The power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and / or the charging management module 140, and supplies power to the processor 110, the internal memory 121, the external memory, the display screen 194, the camera 193, and the wireless communication module 160. The power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle number, battery health status (leakage, impedance), etc. In some other embodiments, the power management module 141 can also be set in the processor 110. In other embodiments, the power management module 141 and the charging management module 140 can also be set in the same device.
[0209] The wireless communication function of the electronic device 100 can be implemented through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor and the baseband processor.
[0210] Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in electronic device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve the utilization of 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.
[0211] The mobile communication module 150 can provide solutions for wireless communications including 2G / 3G / 4G / 5G, etc., applied to the electronic device 100. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The mobile communication module 150 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 150 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 150 can be set in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the same device as at least some of the modules of the processor 110.
[0212] 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 170A, a receiver 170B, etc.), or displays an image or video through a display screen 194. In some embodiments, the modem processor may be an independent device. In other embodiments, the modem processor may be independent of the processor 110 and be set in the same device as the mobile communication module 150 or other functional modules.
[0213] The wireless communication module 160 can provide wireless communication solutions including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), etc., which are applied to the electronic device 100. The wireless communication module 160 can be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, modulates the frequency of the electromagnetic wave signal and performs filtering, and sends the processed signal to the processor 110. The wireless communication module 160 can also receive the signal to be sent from the processor 110, modulate the frequency of it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.
[0214] In some embodiments, the antenna 1 of the electronic device 100 is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, so that the electronic device 100 can communicate with the network and other devices through wireless communication technology. The wireless communication technology may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), wideband code division multiple access (WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC, FM, and / or IR technology. The GNSS may include a global positioning system (GPS), a global navigation satellite system (GLONASS), a Beidou navigation satellite system (BDS), a quasi-zenith satellite system (QZSS) and / or a satellite based augmentation system (SBAS).
[0215] The electronic device 100 implements the display function through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing, which connects the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
[0216] The display screen 194 is used to display images, videos, etc. The display screen 194 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-OLED, a quantum dot light-emitting diode (QLED), etc. In some embodiments, the electronic device 100 may include 1 or N display screens 194, where N is a positive integer greater than 1.
[0217] The electronic device 100 can realize the shooting function through ISP, camera 193, video codec, GPU, display screen 194 and application processor.
[0218] ISP is used to process the data fed back by camera 193. For example, when taking a photo, the shutter is opened, and the light is transmitted to the camera photosensitive element through the lens. The light signal is converted into an electrical signal, and the camera photosensitive element transmits the electrical signal to ISP for processing and converts it into an image visible to the naked eye. ISP can also perform algorithm optimization on the noise, brightness, and skin color of the image. ISP can also optimize the exposure, color temperature and other parameters of the shooting scene. In some embodiments, ISP can be set in camera 193.
[0219] The camera 193 is used to capture still images or videos. The object generates an optical image through the lens and projects it onto the photosensitive element. The photosensitive element can be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal, and then passes the electrical signal to the ISP to be converted into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into an image signal in a standard RGB, YUV or other format. In some embodiments, the electronic device 100 may include 1 or N cameras 193, where N is a positive integer greater than 1.
[0220] The digital signal processor is used to process digital signals, and can process not only digital image signals but also other digital signals. For example, when the electronic device 100 is selecting a frequency point, the digital signal processor is used to perform Fourier transform on the frequency point energy.
[0221] Video codecs are used to compress or decompress digital videos. The electronic device 100 may support one or more video codecs. Thus, the electronic device 100 may play or record videos in a variety of coding formats, such as Moving Picture Experts Group (MPEG) 1, MPEG2, MPEG3, MPEG4, etc.
[0222] NPU is a neural network (NN) computing processor. By drawing on the structure of biological neural networks, such as the transmission mode between neurons in the human brain, it can quickly process input information and can also continuously self-learn. Through NPU, applications such as intelligent cognition of electronic device 100 can be realized, such as image recognition, face recognition, voice recognition, text understanding, etc.
[0223] The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100. The external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function, such as storing music, video and other files in the external memory card.
[0224] The internal memory 121 can be used to store computer executable program codes, which include instructions. The processor 110 executes various functional applications and data processing of the electronic device 100 by running the instructions stored in the internal memory 121. The internal memory 121 may include a program storage area and a data storage area. Among them, the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc. The data storage area may store data created during the use of the electronic device 100 (such as audio data, a phone book, etc.), etc. In addition, the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc.
[0225] The electronic device 100 can implement audio functions such as music playing and recording through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone jack 170D, and the application processor.
[0226] The audio module 170 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signals. The audio module 170 can also be used to encode and decode audio signals. In some embodiments, the audio module 170 can be arranged in the processor 110, or some functional modules of the audio module 170 can be arranged in the processor 110.
[0227] The speaker 170A, also called a "speaker", is used to convert an audio electrical signal into a sound signal. The electronic device 100 can listen to music or listen to a hands-free call through the speaker 170A.
[0228] The receiver 170B, also called a "earpiece", is used to convert audio electrical signals into sound signals. When the electronic device 100 receives a call or voice message, the voice can be received by placing the receiver 170B close to the human ear.
[0229] Microphone 170C, also called "microphone" or "microphone", is used to convert sound signals into electrical signals. When making a call or sending a voice message, the user can speak by putting their mouth close to microphone 170C to input the sound signal into microphone 170C. The electronic device 100 can be provided with at least one microphone 170C. In other embodiments, the electronic device 100 can be provided with two microphones 170C, which can not only collect sound signals but also realize noise reduction function. In other embodiments, the electronic device 100 can also be provided with three, four or more microphones 170C to collect sound signals, reduce noise, identify the sound source, realize directional recording function, etc.
[0230] The earphone interface 170D is used to connect a wired earphone and can be a USB interface 130 or a 3.5 mm open mobile terminal platform (OMTP) standard interface or a cellular telecommunications industry association of the USA (CTIA) standard interface.
[0231] The pressure sensor 180A is used to sense the pressure signal and can convert the pressure signal into an electrical signal. In some embodiments, the pressure sensor 180A can be set on the display screen 194. There are many types of pressure sensors 180A, such as resistive pressure sensors, inductive pressure sensors, capacitive pressure sensors, etc. The capacitive pressure sensor can be a parallel plate including at least two conductive materials. When a force acts on the pressure sensor 180A, the capacitance between the electrodes changes. The electronic device 100 determines the intensity of the pressure according to the change in capacitance. When a touch operation acts on the display screen 194, the electronic device 100 detects the touch operation intensity according to the pressure sensor 180A. The electronic device 100 can also calculate the touch position according to the detection signal of the pressure sensor 180A. In some embodiments, touch operations acting on the same touch position but with different touch operation intensities can correspond to different operation instructions. For example: when a touch operation with a touch operation intensity less than the first pressure threshold acts on the short message application icon, an instruction to view the short message is executed. When a touch operation with a touch operation intensity greater than or equal to the first pressure threshold acts on the short message application icon, an instruction to create a new short message is executed.
[0232] The gyro sensor 180B can be used to determine the motion posture of the electronic device 100. In some embodiments, the angular velocity of the electronic device 100 around three axes (i.e., x, y, and z axes) can be determined by the gyro sensor 180B. The gyro sensor 180B can be used for anti-shake shooting. For example, when the shutter is pressed, the gyro sensor 180B detects the angle of the electronic device 100 shaking, calculates the distance that the lens module needs to compensate based on the angle, and allows the lens to offset the shaking of the electronic device 100 through reverse movement to achieve anti-shake. The gyro sensor 180B can also be used for navigation and somatosensory game scenes.
[0233] The air pressure sensor 180C is used to measure air pressure. In some embodiments, the electronic device 100 calculates the altitude through the air pressure value measured by the air pressure sensor 180C to assist positioning and navigation.
[0234] The magnetic sensor 180D includes a Hall sensor. The electronic device 100 can use the magnetic sensor 180D to detect the opening and closing of the flip leather case. In some embodiments, when the electronic device 100 is a flip phone, the electronic device 100 can detect the opening and closing of the flip cover according to the magnetic sensor 180D. Then, according to the detected opening and closing state of the leather case or the opening and closing state of the flip cover, the flip cover can be automatically unlocked.
[0235] The acceleration sensor 180E can detect the magnitude of the acceleration of the electronic device 100 in all directions (generally three axes). When the electronic device 100 is stationary, the magnitude and direction of gravity can be detected. It can also be used to identify the posture of the electronic device and is applied to applications such as horizontal and vertical screen switching and pedometers.
[0236] The distance sensor 180F is used to measure the distance. The electronic device 100 can measure the distance by infrared or laser. In some embodiments, when shooting a scene, the electronic device 100 can use the distance sensor 180F to measure the distance to achieve fast focusing.
[0237] The proximity light sensor 180G may include, for example, a light emitting diode (LED) and a light detector, such as a photodiode. The light emitting diode may be an infrared light emitting diode. The electronic device 100 emits infrared light outward through the light emitting diode. The electronic device 100 uses a photodiode to detect infrared reflected light from nearby objects. When sufficient reflected light is detected, it can be determined that there is an object near the electronic device 100. When insufficient reflected light is detected, the electronic device 100 can determine that there is no object near the electronic device 100. The electronic device 100 can use the proximity light sensor 180G to detect that the user holds the electronic device 100 close to the ear to talk, so as to automatically turn off the screen to save power. The proximity light sensor 180G can also be used in leather case mode and pocket mode to automatically unlock and lock the screen.
[0238] The ambient light sensor 180L is used to sense the ambient light brightness. The electronic device 100 can adaptively adjust the brightness of the display screen 194 according to the perceived ambient light brightness. The ambient light sensor 180L can also be used to automatically adjust the white balance when taking pictures. The ambient light sensor 180L can also cooperate with the proximity light sensor 180G to detect whether the electronic device 100 is in a pocket to prevent accidental touches.
[0239] The fingerprint sensor 180H is used to collect fingerprints. The electronic device 100 can use the collected fingerprint characteristics to implement fingerprint unlocking, access application locks, fingerprint photography, fingerprint call answering, etc.
[0240] The temperature sensor 180J is used to detect temperature. In some embodiments, the electronic device 100 uses the temperature detected by the temperature sensor 180J to execute a temperature processing strategy. For example, when the temperature reported by the temperature sensor 180J exceeds a threshold, the electronic device 100 reduces the performance of a processor located near the temperature sensor 180J to reduce power consumption and implement thermal protection. In other embodiments, when the temperature is lower than another threshold, the electronic device 100 heats the battery 142 to avoid abnormal shutdown of the electronic device 100 due to low temperature. In other embodiments, when the temperature is lower than another threshold, the electronic device 100 performs a boost on the output voltage of the battery 142 to avoid abnormal shutdown caused by low temperature.
[0241] The touch sensor 180K is also called a "touch panel". The touch sensor 180K can be set on the display screen 194, and the touch sensor 180K and the display screen 194 form a touch screen, also called a "touch screen". The touch sensor 180K is used to detect touch operations acting on or near it. The touch sensor can pass the detected touch operation to the application processor to determine the type of touch event. Visual output related to the touch operation can be provided through the display screen 194. In other embodiments, the touch sensor 180K can also be set on the surface of the electronic device 100, which is different from the position of the display screen 194.
[0242] The bone conduction sensor 180M can obtain a vibration signal. In some embodiments, the bone conduction sensor 180M can obtain a vibration signal of a vibrating bone block of the vocal part of the human body. The bone conduction sensor 180M can also contact the human pulse to receive a blood pressure beat signal. In some embodiments, the bone conduction sensor 180M can also be set in an earphone and combined into a bone conduction earphone. The audio module 170 can parse out a voice signal based on the vibration signal of the vibrating bone block of the vocal part obtained by the bone conduction sensor 180M to realize a voice function. The application processor can parse the heart rate information based on the blood pressure beat signal obtained by the bone conduction sensor 180M to realize a heart rate detection function.
[0243] The key 190 includes a power key, a volume key, etc. The key 190 may be a mechanical key or a touch key. The electronic device 100 may receive key input and generate key signal input related to user settings and function control of the electronic device 100.
[0244] Motor 191 can generate vibration prompts. Motor 191 can be used for incoming call vibration prompts, and can also be used for touch vibration feedback. For example, touch operations acting on different applications (such as taking pictures, audio playback, etc.) can correspond to different vibration feedback effects. For touch operations acting on different areas of the display screen 194, motor 191 can also correspond to different vibration feedback effects. Different application scenarios (for example: time reminders, receiving messages, alarm clocks, games, etc.) can also correspond to different vibration feedback effects. The touch vibration feedback effect can also support customization.
[0245] Indicator 192 may be an indicator light, which may be used to indicate charging status, power changes, messages, missed calls, notifications, etc.
[0246] The SIM card interface 195 is used to connect a SIM card. The SIM card can be connected to and separated from the electronic device 100 by inserting it into the SIM card interface 195 or pulling it out from the SIM card interface 195. The electronic device 100 can support 1 or N SIM card interfaces, where N is a positive integer greater than 1. The SIM card interface 195 can support Nano SIM cards, Micro SIM cards, SIM cards, and the like. Multiple cards can be inserted into the same SIM card interface 195 at the same time. The types of the multiple cards can be the same or different. The SIM card interface 195 can also be compatible with different types of SIM cards. The SIM card interface 195 can also be compatible with external memory cards. The electronic device 100 interacts with the network through the SIM card to implement functions such as calls and data communications. In some embodiments, the electronic device 100 uses an eSIM, i.e., an embedded SIM card. The eSIM card can be embedded in the electronic device 100 and cannot be separated from the electronic device 100.
[0247] The software system of the electronic device 100 may adopt a layered architecture, an event-driven architecture, a micro-core architecture, a micro-service architecture, or a cloud architecture. The embodiment of the present application takes the Android system of the layered architecture as an example to exemplify the software structure of the electronic device 100.
[0248] Fig.12 It is a software structure diagram of the electronic device of the embodiment of the present application. The layered architecture divides the software into several layers, each layer has a clear role and division of labor. The layers communicate with each other through software interfaces. In some embodiments, the Android system is divided into four layers, from top to bottom, namely, the application layer, the application framework layer, the Android runtime (Android runtime) and the system library, and the kernel layer. The application layer can include a series of application packages.
[0249] like Fig.12 As shown, the application package may include camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message and other applications.
[0250] The application framework layer provides an application programming interface (API) and a programming framework for the application programs of the application layer. The application framework layer includes some predefined functions. As a possible implementation, the software for feature matching described in the above embodiments of the present application can be located in the application framework layer.
[0251] like Fig.12 As shown, the application framework layer may include a window manager, a content provider, a view system, a phone manager, a resource manager, a notification manager, and the like.
[0252] The window manager is used to manage window programs. The window manager can obtain the display screen size, determine whether there is a status bar, lock the screen, capture the screen, etc.
[0253] Content providers are used to store and retrieve data and make it accessible to applications. The data may include videos, images, audio, calls made and received, browsing history and bookmarks, phone books, etc.
[0254] The view system includes visual controls, such as controls for displaying text, controls for displaying images, etc. The view system can be used to build applications. A display interface can be composed of one or more views. For example, a display interface including a text notification icon can include a view for displaying text and a view for displaying images.
[0255] The phone manager is used to provide communication functions for electronic devices, such as the management of call status (including answering, hanging up, etc.).
[0256] The resource manager provides various resources for applications, such as localized strings, icons, images, layout files, video files, and so on.
[0257] The notification manager enables applications to display notification information in the status bar. It can be used to convey notification-type messages and can disappear automatically after a short stay without user interaction. For example, the notification manager is used to notify download completion, message reminders, etc. The notification manager can also be a notification that appears in the system top status bar in the form of a chart or scroll bar text, such as notifications of applications running in the background, or a notification that appears on the screen in the form of a dialog window. For example, a text message is displayed in the status bar, a prompt sound is emitted, an electronic device vibrates, an indicator light flashes, etc.
[0258] Android Runtime includes core libraries and virtual machines. Android Runtime is responsible for scheduling and management of the Android system.
[0259] The core library consists of two parts: one part is the function that needs to be called by the Java language, and the other part is the Android core library.
[0260] The application layer and the application framework layer run in a virtual machine. The virtual machine executes the Java files of the application layer and the application framework layer as binary files. The virtual machine is used to perform functions such as object life cycle management, stack management, thread management, security and exception management, and garbage collection.
[0261] The system library may include multiple functional modules, such as surface manager, media libraries, 3D graphics processing library (such as OpenGL ES), 2D graphics engine (such as SGL), etc.
[0262] The surface manager is used to manage the display subsystem and provide the fusion of 2D and 3D layers for multiple applications.
[0263] The media library supports playback and recording of a variety of commonly used audio and video formats, as well as static image files, etc. The media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
[0264] The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.
[0265] A 2D graphics engine is a drawing engine for 2D drawings.
[0266] The kernel layer is the layer between hardware and software. The kernel layer contains at least display driver, camera driver, audio driver, and sensor driver.
[0267] It should be understood that the embodiments of the present application can be applicable to Android, IOS and other systems.
[0268] It should be noted that in the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0269] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software 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 this application.
[0270] In the embodiments provided in the present application, it should be understood that the disclosed devices / network equipment and methods can be implemented in other ways. For example, the device / network equipment embodiments described above are merely schematic. For example, the division of the modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0271] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0272] The embodiments described above are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.
Claims
1. A signal processing method, characterized in that: include: Receiving a mixed signal of n channels from an antenna port, where n is a positive integer greater than 1; Determine a target channel among the n channels by carrier sensing; In the process of performing the carrier sensing, calculating the received signal strength indicator of the n channels at the antenna port based on the mixed signal; The received signal strength indication of the target channel at the antenna port is obtained from the received signal strength indications of the n channels at the antenna port.
2. The method according to claim 1, characterized in that The calculating the received signal strength indication of the n channels at the antenna port based on the mixed signal includes: According to the absolute power of the i-th channel in the digital domain among the n channels and the initial instantaneous analog gain value, the received signal strength indication of the i-th channel at the antenna port is determined, and the initial instantaneous analog gain is used to adjust the signal amplitude of the mixed signal, wherein i∈[1,n] and i is an integer.
3. The method according to claim 2, characterized in that The received signal strength indicator of the i-th channel at the antenna port, the absolute power of the i-th channel in the digital domain, and the initial instantaneous analog gain satisfy the following relationship: RX_RSSI i =RSSI preamble -AGC_Gain-offset, Among them, the RX_RSSI i represents the received signal strength indicator of the i-th channel at the antenna port, the RSSI preamble represents the absolute power of the i-th channel in the digital domain, the AGC_Gain represents the initial instantaneous analog gain, and the offset represents a calibration constant.
4. The method according to claim 2 or 3, characterized in that: The absolute power of the i-th channel in the digital domain is determined according to the analog voltage and radio frequency resistance of the i-th channel.
5. The method according to claim 4, characterized in that The analog voltage of the i-th channel is determined based on the in-phase signal and the orthogonal signal of the i-th channel, the maximum analog voltage of the radio frequency circuit, and the bit width of the analog-to-digital converter, wherein the radio frequency circuit is used to process the mixed signal, and the analog-to-digital converter is used to perform analog-to-digital conversion on the mixed signal.
6. The method according to claim 5, characterized in that The analog voltage of the i-th channel, the in-phase signal and the quadrature signal of the i-th channel, the maximum analog voltage of the radio frequency circuit, and the bit width of the analog-to-digital converter satisfy the following relationship: Among them, the U dBV represents the analog voltage of the i-th channel, the I i represents the in-phase signal of the i-th channel, the Q i represents the orthogonal signal of the i-th channel, the V max Indicates the maximum analog voltage of the RF circuit, the adc bit represents the bit width of the analog-to-digital converter, and N is the number of signal pairs consisting of the configured in-phase signal and the orthogonal signal.
7. The method according to claim 2 or 3, characterized in that: After determining the target channel in the n channels by carrier sensing, the method further includes: The initial instantaneous analog gain is adjusted according to the signal strength of the target channel to obtain a final locked analog gain, and the final locked analog gain is used to adjust the signal amplitude of the target channel.
8. The method according to claim 7, characterized in that The method further comprises: The gain value of the locked gain controller is the final locked analog gain, and the gain controller is used to control the gain used when the amplitude of the signal received from the antenna port is adjusted.
9. The method according to claim 8, characterized in that The method further comprises: After the data transmission of the target channel is completed, the gain value of the gain controller is unlocked.
10. The method according to any one of claims 1 to 3, characterized in that The calculating the received signal strength indication of the n channels at the antenna port based on the mixed signal includes: Based on the mixed signal, a received signal strength indicator of each of the n channels at the antenna port is calculated simultaneously.
11. The method according to any one of claims 1 to 3, characterized in that The method further comprises: The current position is determined based on the received signal strength indication of the target channel.
12. An electronic device, characterized in that: The electronic device comprises: A transceiver module, used for receiving a mixed signal of n channels from an antenna port, where n is a positive integer greater than 1; A determination module, used for determining a target channel among the n channels by carrier sensing; A calculation module, configured to calculate, in the process in which the determination module performs the carrier sensing, a received signal strength indicator of the n channels at the antenna port based on the mixed signal; The acquisition module is used to acquire the received signal strength indication of the target channel at the antenna port from the received signal strength indications of the n channels at the antenna port.
13. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the electronic device implements the signal processing method according to any one of claims 1 to 11.
14. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by an electronic device, the steps of the method according to any one of claims 1 to 11 are implemented.
15. A chip system, characterized in that: The chip system is coupled to a memory, and the chip system is used to read and execute a computer program stored in the memory to implement the signal processing method according to any one of claims 1 to 11.