Receiving antenna control method, electronic device, readable storage medium, and chip

By dynamically adjusting the number and usage status of receiving antennas, it solves the problem of reduced communication rates of electronic devices when the downlink scheduling rate decreases, improves business experience and power consumption efficiency, and adapts to different application scenarios.

WO2024212656A1PCT designated stage expired Publication Date: 2024-10-17HUAWEI TECH CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2024/073009
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-04-14
Filing Date
2024-01-18
Publication Date
2024-10-17

AI Technical Summary

Technical Problem

In the existing technology, when the downlink scheduling rate decreases, the electronic device may further reduce the number of receiving antennas, resulting in a decrease in the downlink communication rate, a worsening of the service experience, and the inability to effectively respond to the service operation of the application layer.

Method used

By monitoring the running status of the foreground application, dynamically adjust the number of receiving antennas, increase or decrease the number of receiving antennas to improve the downlink communication rate, for example, add receiving antennas when the foreground application is stuck, use the highest specification receiving antenna when charging, and use the timer mechanism Optimize the enabling and disabling of receiving antennas to avoid frequent enabling or continuous use of the highest specification receiving antenna to save power consumption.

Benefits of technology

It improves the downlink communication rate and service fluency, improves user experience, reduces device power consumption, and adapts to different scenarios and application needs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024073009_17102024_PF_FP_ABST
    Figure CN2024073009_17102024_PF_FP_ABST
Patent Text Reader

Abstract

Embodiments of the present application relate to the technical field of communications, and provide a receiving (Rx) antenna control method, an electronic device, a readable storage medium, and a chip. The method is applied to an electronic device which comprises n Rx antennas. The method comprises: obtaining a running state of a foreground application; and when the running state meets a first condition and an electronic device receives signals by using k Rx antennas, switching to receive signals by using m Rx antennas, wherein k<m and m≤n. According to the technical solution provided by the embodiments of the present application, the number of Rx antennas enabled by the electronic device can be increased according to the running state of the foreground application, thereby improving the downlink communication rate, and improving the service smoothness and the user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Control method for receiving antenna, electronic device, readable storage medium and chip

[0001] This application claims priority to the Chinese patent application filed with the State Intellectual Property Office on April 14, 2023, with application number 202310446691.7 and application name “Control method, electronic device, readable storage medium and chip for receiving antenna”, the entire contents of which are incorporated by reference into this application. Technical Field

[0002] The present application relates to the field of communication technology, and in particular to a control method for a receiving antenna, an electronic device, a readable storage medium, and a chip. Background Art

[0003] With the evolution of communications technology, the number of transmitting and receiving antennas in electronic devices is increasing. This increase in antennas improves communication speeds, but also increases device power consumption. To balance communication speeds and power consumption, electronic devices often dynamically adjust the number of antennas in use.

[0004] Currently, the electronic device's modem typically dynamically adjusts the number of receiving antennas in use based on the network's downlink scheduling rate for the electronic device. For example, when the downlink scheduling rate is high, the number of receiving antennas in use increases, while when the downlink scheduling rate is low, the number of receiving antennas in use decreases. However, this approach can lead to the modem further reducing the number of receiving antennas in use if the downlink scheduling rate decreases but the electronic device actually needs a higher downlink communication rate. This can further reduce the downlink communication rate and degrade the service experience.

[0005] Summary of the Invention

[0006] The present application provides a receiving antenna control method, electronic device, readable storage medium and chip, which are used to solve the problem in the prior art that electronic devices incorrectly adjust the receiving antenna, resulting in a reduced downlink communication rate and a poor service experience.

[0007] To achieve the above objectives, this application adopts the following technical solutions:

[0008] In a first aspect, an embodiment of the present application provides a method for controlling a receiving antenna, which is applied to an electronic device comprising n receiving antennas. The method comprises: obtaining the running status of a foreground application; when the running status satisfies a first condition and the electronic device uses k receiving antennas to receive signals, switching to using m receiving antennas to receive signals, k<m, m≤n.

[0009] The electronic device switching to use m receiving antennas to receive signals may be to increase the number of receiving antennas but not use all receiving antennas to receive signals; or it may be to use all receiving antennas to receive signals.

[0010] Through the method provided in the embodiment of the present application, the electronic device can increase the number of enabled receiving antennas based on the actual operating status of the foreground application, thereby increasing the downlink communication rate, improving service fluency and user experience.

[0011] In some embodiments, the running state of the foreground application satisfies the first condition, including: the foreground application experiencing a freeze during operation. This method can increase the number of enabled receiving antennas, increase the downlink communication rate, and improve the foreground application freeze when the foreground application experiences a freeze, thereby improving the user experience.

[0012] In some embodiments, the running state of the foreground application satisfies the first condition, including: the foreground application successfully cold-starts, or the foreground application sends a preset data acquisition request to the network-side device, wherein the preset data acquisition request includes: a page refresh request, a data download request, or an information search request.

[0013] It should be understood that after the foreground application successfully cold starts, and when refreshing the page, downloading data or searching for information, the amount of downlink data is large. For these high-traffic data reception scenarios, electronic devices can increase the number of receiving antennas, thereby increasing the downlink communication rate, improving business fluency and user experience.

[0014] In some embodiments, the lag of the foreground application is determined by the foreground application itself.

[0015] In some embodiments, the foreground application freezes by the electronic device based on relevant parameters of the application processor (AP), or based on relevant parameters of the AP and relevant parameters of the modem. That is, the electronic device determines whether the foreground application freezes independently, without relying on the foreground application.

[0016] In some embodiments, the relevant parameters of the AP include: the round-trip delay RTT of the Transmission Control Protocol TCP stream of the foreground application, and / or the time interval between the first handshake and the second handshake during the TCP three-way handshake process, and / or the retransmission rate of the downlink data packet; and the relevant parameters of the modem include: reference signal strength, and / or reference signal quality, and / or the downlink bit error rate of the physical layer.

[0017] In some embodiments, when the operating status satisfies the first condition and the electronic device uses k receiving antennas to receive signals, it switches to using m receiving antennas to receive signals, including: when the operating status satisfies the first condition and the electronic device uses k receiving antennas to receive signals, starting a test timer and enabling n receiving antennas to receive signals; after the test timer expires, monitoring whether the jamming of the foreground application is improved; if the jamming of the foreground application is not improved, reducing the number of enabled receiving antennas; if the jamming of the foreground application is improved, continuing to use n receiving antennas to receive signals.

[0018] Because many factors affect the downlink reception rate, electronic devices need to test whether enabling all receiving antennas can improve the lag of foreground applications and avoid wasting power.

[0019] In some embodiments, if the foreground application's lag is not improved, the number of enabled receiving antennas is reduced, including: if the foreground application's lag is not improved, starting a first protection timer; and after the first protection timer expires, reducing the number of enabled receiving antennas. This method can prevent the electronic device from frequently activating all receiving antennas and avoid wasting device power.

[0020] In some embodiments, after the first protection timer times out and the number of enabled receiving antennas is reduced, the method further includes: starting a suppression timer, the duration of the suppression timer T = T1*prohibitN, where T1 is a preset duration and prohibitN is the number of freezes; after the suppression timer times out, the number of freezes is added by 1, and re-determining whether the foreground application freezes during operation.

[0021] Through this method, when an electronic device enables all receiving antennas multiple times but fails to improve the lag of the foreground application, the suppression timer can shorten the proportion of the activation time of all receiving antennas in the entire receiving antenna control process, thereby reducing device power consumption.

[0022] In some embodiments, if the foreground application's lag is improved, then n receiving antennas are continued to be used to receive signals, including: if the foreground application's lag is improved, then a second protection timer is started; and before the second protection timer expires, then n receiving antennas are used to receive signals. This method can prevent the electronic device from continuously using the highest-specification receiving antennas, thereby reducing device power consumption.

[0023] In some embodiments, the method further includes: after the second protection timer times out, reducing the number of enabled receiving antennas and starting an autonomous operation timer; and after the autonomous operation timer times out, re-determining whether the foreground application has any lag during operation.

[0024] In a second aspect, an embodiment of the present application provides a method for controlling a receiving antenna, which is applied to an electronic device comprising n receiving antennas. The method comprises: determining that a charging event occurs in the electronic device; in response to the charging event, while the electronic device is using k receiving antennas to receive signals, switching to using m receiving antennas to receive signals, where k is less than m and m is less than or equal to n.

[0025] Through the method provided in the embodiment of the present application, the electronic device can use the highest antenna specification to receive downlink signals in the charging state, maximize the smooth operation of various applications (including foreground applications and background applications) during the charging process of the device, and improve the user experience.

[0026] In some embodiments, the method further includes: after monitoring a charging end event, a device screen off event, or a data service deactivation event, reducing the number of enabled receiving antennas to reduce device power consumption.

[0027] In a third aspect, an embodiment of the present application provides an electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the method as described in the first or second aspect above is implemented.

[0028] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, it implements the method shown in the first or second aspect above.

[0029] In a fifth aspect, an embodiment of the present application provides a chip, which includes a processor and a memory, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, the method shown in the first or second aspect above is implemented.

[0030] It can be understood that the beneficial effects of the third to fifth aspects mentioned above can be found in the relevant descriptions of the first and second aspects mentioned above, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0031] FIG1 is a schematic diagram of a communication system provided by an embodiment of the present application;

[0032] FIG2A is a schematic diagram of an antenna switching process provided by an embodiment of the present application;

[0033] FIG2B is a schematic diagram of an antenna switching process provided by another embodiment of the present application;

[0034] FIG3 is a schematic diagram of an electronic device to which the receiving antenna control method provided in an embodiment of the present application is applicable;

[0035] FIG4 is a schematic diagram of a notification of a jamming event provided in an embodiment of the present application;

[0036] FIG5 is a schematic diagram of a process for determining a foreground application freeze condition according to an embodiment of the present application;

[0037] FIG6 is a flow chart of a method for controlling an Rx antenna according to an embodiment of the present application;

[0038] FIG7 is a flowchart of a method for controlling an Rx antenna provided by another embodiment of the present application;

[0039] FIG8 is a flowchart of a method for controlling an Rx antenna according to another embodiment of the present application;

[0040] FIG9 is a flow chart of a method for controlling an Rx antenna provided in another embodiment of the present application;

[0041] FIG10 is a schematic diagram of the structure of the chip provided in an embodiment of the present application. DETAILED DESCRIPTION

[0042] The technical solutions provided in the embodiments of the present application are described below with reference to the accompanying drawings.

[0043] It should be understood that 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 merely a way to describe the association relationship of associated objects, indicating that three relationships can exist, for example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone.

[0044] In this embodiment, the terms "first" and "second" are used for descriptive purposes only and should not be understood to indicate or imply relative importance or implicitly specify the number of the technical features indicated. Therefore, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features. In the description of this embodiment, unless otherwise specified, "plurality" means two or more.

[0045] The technical solutions of the embodiments of the present application can be applied to various communication systems, such as: long term evolution (LTE) system, LTE frequency division duplex (FDD) system, LTE time division duplex (TDD), universal mobile telecommunication system (UMTS), world-wide interoperability for microwave access (WiMAX) communication system, fifth generation (5G) system or new radio (NR), global system for mobile communications (GSM), code division multiple access (CDMA) communication system, time division-synchronous CDMA (TD-SCDMA) communication system, etc.

[0046] Figure 1 is a schematic diagram of a communication system provided by an embodiment of the present application. As shown in Figure 1, the communication system includes a network-side device and an electronic device that are wirelessly connected, and the two communicate with each other to achieve information interaction and transmission.

[0047] In this embodiment, the electronic device may be a mobile phone, a tablet computer, a wearable device (such as a smart watch), an in-vehicle 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), or other terminal devices. The embodiments of this application do not limit the specific type of the electronic device.

[0048] In this embodiment, the network side device may be a device capable of providing a random access function for an electronic device or a chip that can be set in the device. The device includes but is not limited to: an evolved Node B (eNB), a radio network controller (RNC), a Node B (NB), a base station controller (BSC), a base transceiver station (BTS), a home base station (for example, a home evolved NodeB, or a home Node B, HNB), a baseband unit (BBU), and can also be a gNB in ​​a 5G, such as NR, system, or a transmission point (TRP or TP), one or a group (including multiple) of antenna panels of a base station in a 5G system, or a network node constituting a gNB or a transmission point, such as a baseband unit (BBU), or a distributed unit (DU), a network side device in a future 5G network, or a network side device in a future evolved public land mobile network (PLMN) network, etc., and the embodiment of the present application is not limited.

[0049] The communication process between the network-side device and the electronic device includes: an uplink communication process and a downlink communication process. In the uplink communication process, the electronic device is the transmitter of the signal, and the network-side device is the receiver of the signal. The signal is called an uplink signal, and the data carried by the signal is called uplink data. In the downlink communication process, the network-side device is the transmitter of the signal, and the electronic device is the receiver of the signal. The signal is called a downlink signal, and the data carried by the signal is called downlink data. For example, in the process of an electronic device accessing a web page through cellular data, the process of the electronic device sending information such as a web page opening request and a web page refresh request to the base station is an uplink communication process, and the process of the base station sending web page information to the electronic device is a downlink communication process.

[0050] During communication, the transmitter transmits signals through the transmit antenna (i.e., the Tx antenna), and the receiver receives signals through the receive antenna (i.e., the Rx antenna). Specifically, during uplink communication, the electronic device transmits signals through the Tx antenna, and the network-side device receives signals through the Rx antenna. During downlink communication, the network-side device transmits signals through the Tx antenna, and the electronic device receives signals through the Rx antenna.

[0051] For ease of description, this embodiment uses k1Tx to represent k1 receive antennas, where k1 = 1, 2, ..., m, where m is the total number of receive antennas in the electronic device. Furthermore, k2Rx represents k2 transmit antennas, where k2 = 1, 2, ..., n, where n is the total number of transmit antennas in the electronic device. It can be understood that 2Tx represents two transmit antennas, 2Rx represents two receive antennas, 4Rx represents four receive antennas, and nRx represents all receive antennas in the electronic device, i.e., the highest-spec receive antennas.

[0052] It should be noted that antennas include various types according to different operating frequency bands of the antennas. The types of antennas described in this embodiment correspond to the types of communication systems currently used by electronic devices.

[0053] For example, when an electronic device currently communicates using a fifth-generation mobile communication technology (5G) cellular communication system, the antenna is an antenna used to transmit / receive the 5G cellular signal, referred to as a 5G cellular antenna. Furthermore, k1Tx represents k1 5G cellular receiving antennas, and m is the total number of 5G cellular receiving antennas in the electronic device; k2Rx represents k2 5G cellular transmitting antennas, and n is the total number of 5G cellular transmitting antennas in the electronic device. nRx represents all 5G cellular receiving antennas in the electronic device.

[0054] For example, when an electronic device communicates using a wireless fidelity (WiFi) communication system, the antenna is used to transmit and receive WiFi signals and is referred to as a WiFi antenna. Furthermore, k1Tx represents k1 WiFi receive antennas, and m is the total number of WiFi receive antennas in the electronic device. k2Rx represents k2 WiFi transmit antennas, and n is the total number of WiFi transmit antennas in the electronic device. nRx represents all WiFi receive antennas in the electronic device.

[0055] With the evolution of communication technology, the number of antennas in electronic devices continues to increase, with the number of RX antennas now commonly reaching four or even more. During downlink communications, the more RX antennas an electronic device uses, the higher the downlink data transmission rate, improving both the service experience on the electronic device and the user experience. The reasons are as follows.

[0056] In some embodiments, when an electronic device and a network-side device communicate based on spatial multiplexing technology, more Rx antennas can increase the number of spatial multiplexing layers, improve channel capacity, and thus increase the receiving rate of downlink data.

[0057] Spatial multiplexing refers to the use of multiple antennas at both the transmitter and receiver ends to form a massive multiple input, multiple output (MIMO) channel to transmit signals on the same frequency band. A MIMO channel consists of multiple MIMO sub-channels (also called virtual channels). Typically, one transmit antenna and one receive antenna constitute a MIMO sub-channel. As can be understood, because spatial multiplexing divides data into multiple paths and transmits them simultaneously on multiple MIMO sub-channels, it can increase channel capacity and improve data transmission rates.

[0058] In spatial multiplexing technology, the number of antenna layers equals the number of MIMO subchannels. Since the communication process involves the coordinated operation of transmit and receive antennas, the number of antenna layers is affected not only by the number of transmit antennas but also by the number of receive antennas. Generally, the maximum number of antenna layers is equal to the minimum of the number of transmit and receive antennas. Therefore, as the number of receive antennas in an antenna system increases, the number of antenna layers typically increases. For example, in a 4Tx+2Rx antenna system, the maximum number of antenna layers is 2. In a 4Tx+4Rx antenna system, the maximum number of antenna layers is 4. Therefore, as the number of receive antennas used by an electronic device increases, the number of spatial multiplexing layers increases when receiving downlink data. This improves the channel capacity during downlink data transmission, thereby increasing the downlink data transmission rate.

[0059] In other embodiments, based on more Rx antennas, the electronic device can improve the modulation and coding scheme (MCS) of the signal, thereby increasing the transmission rate of downlink data.

[0060] Among them, modulation is the process of converting the signal generated by the source into a form suitable for wireless transmission. MCS includes binary phase shift keying (BPSK), 16-quadrature amplitude modulation (QAM), quadrature phase shift keying (QPSK) and 64-QAM. MCS defines the number of effective bits that a resource unit (RE) can carry. Currently, there are 32 MCS schemes, with index numbers 0-31, of which schemes with index numbers 29-31 are reserved schemes. The higher the MCS index number, the higher the number of effective bits that an RE can carry. When the number of Rx antennas in an electronic device increases, the electronic device can increase the MCS to modulate the wireless signal. In this embodiment, increasing the MCS means selecting an MCS with a higher index number, thereby increasing the number of effective bits that can be carried on an RE during communication and increasing the data transmission rate.

[0061] During downlink communications, increasing the number of active Rx antennas in an electronic device can increase the downlink communication rate, but this also increases device power consumption. To balance downlink communication rate and device power consumption, electronic devices typically dynamically adjust the number of active Rx antennas based on current traffic conditions. This allows them to use fewer Rx antennas to receive signals when there is no data traffic or when data traffic is low, and more Rx antennas to receive signals when data traffic is high.

[0062] In some embodiments, as shown in FIG2A , the modem of the electronic device monitors the downlink scheduling rate of the network device to the electronic device in real time and controls the number of Rx antennas based on the relationship between the downlink scheduling rate and the scheduling rate threshold (rate). For example, when the downlink scheduling rate is high, more Rx antennas are used, and when the scheduling rate is low, fewer Rx antennas are used.

[0063] In this embodiment, downlink scheduling refers to the management and allocation of air interface radio resources by network-side devices (such as base stations) during downlink communications to ensure downlink data transmission. Because a network-side device is typically connected to multiple electronic devices, the network-side device must first perform downlink scheduling on the target electronic device before transmitting data to it. The electronic device then receives the downlink data based on this downlink scheduling.

[0064] In this embodiment, the downlink scheduling rate = A / B*100%, where A is the number of downlink scheduling messages actually received by the electronic device per unit time, and B is the maximum number of downlink scheduling messages that the network device can send to the electronic device per unit time under the current communication mode. It can be understood that the higher the downlink scheduling rate, the more frequently the network device calls on the electronic device to receive signals.

[0065] Figure 2B is a schematic diagram of the Rx antenna control process provided by one embodiment of the present application. Taking an electronic device with four Rx antennas as an example, it illustrates the process of switching Rx antennas in the electronic device's modem based on the downlink scheduling rate. Specifically, if the modem does not receive a valid downlink scheduling (also known as a valid downlink grant) within a preset time (e.g., 60 ms), the modem typically activates only one Rx antenna to conserve device power. After receiving a valid downlink scheduling, the modem first activates two Rx antennas to receive downlink data and continues to monitor the downlink scheduling rate. When the downlink scheduling rate exceeds a first threshold, rate1, the modem uses four Rx antennas to receive downlink data for faster reception. For example, rate1 = 15%. Furthermore, while the modem is using four Rx antennas to receive downlink data, if the downlink scheduling rate is detected to be below a second threshold, rate2, the modem switches to using two Rx antennas to receive downlink data to reduce power consumption. For example, rate2 = 6%. If the modem does not receive a valid downlink scheduling within a preset time (e.g., 60 ms), it switches to using one Rx antenna to further reduce power consumption.

[0066] However, the modem cannot perceive the running status of the upper-layer application. When the downlink scheduling rate decreases but the electronic device actually needs to increase the downlink receiving rate, it may further reduce the number of Rx antennas in use, resulting in a further decrease in the downlink communication rate and a poor service experience.

[0067] For example, in crowded stadiums, cafeterias, stations, etc., a base station usually connects and schedules wireless resources for a large number of electronic devices. Due to limited base station resources, the downlink scheduling rate for an electronic device is usually low. When the downlink scheduling rate is low, users may experience slow web page refresh speeds and screen freezes when using electronic devices to surf the Internet, resulting in a poor service experience. In this case, if the electronic device continues to control the Rx antenna according to the above-mentioned Rx antenna control method, the number of Rx antennas actually used will be further reduced according to the lower downlink scheduling rate, resulting in a further decrease in the downlink communication rate and a worse service experience.

[0068] To this end, an embodiment of the present application provides a method for controlling a receiving antenna, which can control the number of Rx antennas according to the business operation status of the application layer, thereby improving the downlink communication rate and the smoothness of application operation.

[0069] Figure 3 is a schematic diagram of an electronic device to which the receiving antenna control method provided in an embodiment of the present application is applicable. As shown in Figure 3, the electronic device includes a status monitoring module 310, an antenna control component 320, and an antenna.

[0070] The status monitoring module 310 is used to monitor various states of the electronic device during operation. For example, the status monitoring module 310 includes a freeze monitoring unit 311, a service quality monitoring unit 312, an application behavior monitoring unit 313, and a whole device status monitoring unit 314. The functions of each unit are as follows.

[0071] The jam monitoring unit 311 is used to monitor the jamming of the foreground application (application, App) when it is running in the foreground. It should be noted that when the application is running in the foreground, the electronic device displays the application interface; while when the application is running in the background, the electronic device does not display the application interface. Among them, application jamming can be explained as the slow loading of data by the application while running in the foreground, which may be visually manifested as intermittent pauses and uneven screen performance.

[0072] In some embodiments, as shown in FIG4 , a jam notification interface is provided between the foreground application and the jam monitoring unit 311. The foreground application monitors its own jam conditions and, upon detecting a jam, notifies the jam monitoring unit 311 of the jam event. If the jam monitoring unit 311 receives a jam event, it determines that the foreground application has jammed. Similarly, if the jam monitoring unit 311 does not receive a jam event, it is determined that the foreground application has not jammed, or that the foreground application is not jammed.

[0073] In other embodiments, the jam monitoring unit 311 determines the jamming of the foreground application based on the transmission control protocol (TCP) stream obtained from the application processor (AP) and the air interface parameters obtained from the modem. See below for details.

[0074] Exemplarily, referring to FIG5 , the process of the jam monitoring unit 311 determining the jam condition of the foreground application includes S501 to S504 .

[0075] S501, obtaining the unique identifier (UID) of the foreground application.

[0076] In this embodiment, the unique identification information is used to uniquely identify each application installed in the electronic device, and different applications have different UIDs. The electronic device can identify the application based on the UID of the application.

[0077] S502: Obtain a TCP stream carrying the foreground application UID from the AP, and determine TCP communication parameters according to the TCP stream.

[0078] In this embodiment, the TCP communication parameters are used to represent the data exchange between the electronic device and the network device when communicating based on the TCP protocol. Exemplarily, the TCP communication parameters include round-trip time (RTT), SYN response duration, and TCP retransmission rate of downlink packets.

[0079] RTT represents the total time it takes for a message to be sent from the sender's network layer (L3) to the time it receives an acknowledgment from the receiver. RTT represents the latency of message transmission. A smaller RTT indicates a shorter message transmission latency, while a larger RTT indicates a longer message transmission latency.

[0080] The SYN response duration refers to the time interval between the first handshake and the second handshake in the TCP three-way handshake process. Specifically, when an electronic device and a network-side device communicate based on the TCP protocol, a three-way handshake is usually required. Taking the following downlink communication process where the electronic device is the client (client) and the network-side device is the server (Server) as an example, the first handshake is: the client sends a SYN message to the server to request to establish a connection with the server. The second handshake is: the server returns an ACK+SYN message to the electronic device to indicate that the server agrees and requests to establish a connection with the client. The third handshake is: the client sends an ACK message to the server to indicate that the client agrees to establish a connection with the server. Based on this, both the client and the server are ready for data transmission and can then transmit data. The time interval from the electronic device sending the SYN message to receiving the ACK+SYN message returned by the network-side device is the SYN response duration in this embodiment.

[0081] The TCP retransmission rate for downlink packets is the ratio of the number of retransmitted packets to the number of valid packets during TCP communication. The TCP retransmission rate indicates packet loss during TCP communication. A higher TCP retransmission rate indicates more packet loss and poorer communication quality.

[0082] S503: Obtain air interface parameters from the modem.

[0083] In this embodiment, the air interface parameters include reference signal receiving power (RSRP), and / or reference signal receiving quality (RSRQ), and / or the downlink bit error rate of the physical layer. The bit error rate (SER) is an indicator that measures the accuracy of data transmission within a specified time. Bit error rate = number of bit errors in transmission / total number of codes transmitted * 100%. It can be understood that the lower the bit error rate, the higher the accuracy of data transmission. The downlink bit error rate is used to indicate the accuracy of downlink data transmission.

[0084] It should be noted that this embodiment does not limit the order of S502 and S503, that is, the jam monitoring unit 311 can execute S502 first and then execute S503; it can also execute S503 first and then execute S502.

[0085] S504: Determine the jamming status of the foreground application based on the TCP communication parameters and the air interface parameters.

[0086] In some embodiments, when the RTT in the TCP communication parameters is greater than the RTT threshold, and / or the SYN response duration is greater than the response duration threshold, and / or the TCP retransmission rate of the downlink message is greater than the retransmission rate threshold, and / or the reference signal strength is lower than the signal strength threshold, and / or the reference signal quality is lower than the signal quality threshold, and / or the downlink bit error rate is greater than the bit error rate threshold, the jam monitoring unit 311 determines that the foreground application is jammed.

[0087] For example, the RTT threshold may be 2s, 2.5s, etc., the response time threshold may be 1s, 1.5s, etc., the retransmission rate threshold may be 10%, 15%, etc., the signal strength threshold may be -100dbm, -105dbm, etc., the signal quality threshold may be -10, -15, etc., the time threshold may be 1000ms, 1500ms, etc., the bit error rate threshold may be 15%, 20%, etc., and this embodiment does not impose any specific restrictions on this.

[0088] In other embodiments, the jam monitoring unit 311 can use a communication indicator to represent the overall communication quality of the foreground application during the downlink communication process. The communication indicator is determined based on TCP communication parameters and air interface parameters. The higher the communication indicator, the better the communication quality; the lower the communication indicator, the worse the communication quality. Based on this, the jam monitoring unit 311 can determine the communication indicator of the foreground application once every preset time (such as 1 second). If the communication indicator is less than the indicator threshold, it is determined that the foreground application is jammed.

[0089] The service quality monitoring unit 312 is used to monitor whether the service flow of the foreground application is abnormal. For example, the service quality monitoring unit 312 can monitor the SYN response duration of the service flow. If the SYN response duration exceeds a preset duration, such as 1.5 seconds, the service flow is determined to be abnormal. Alternatively, the service quality monitoring unit 312 can monitor the retransmission rate of downlink TCP packets. If the retransmission rate exceeds a retransmission rate threshold, such as 10%, the service flow of the foreground application is determined to be abnormal.

[0090] It's important to note that packet loss often occurs during communication. To ensure the receiving end receives data as completely as possible, the sending end may retransmit some packets. Therefore, the retransmission rate is the ratio of the number of retransmitted packets to the total number of packets within a preset time period. Generally speaking, a higher retransmission rate indicates poorer communication quality.

[0091] The application behavior monitoring unit 313 is used to monitor whether there is a sudden large flow of application traffic, that is, there is a large flow of data reception demand, such as application cold start, or the application initiates a large flow of business during operation.

[0092] Among them, application cold start refers to the process of recreating the process to start the application after the background process has ended (it can also be understood as the application exiting both the foreground and the background). After the application is successfully cold started, it usually needs to quickly load a large amount of data from the application server, which requires a high downlink data transmission rate. The high-traffic business initiated by the application during operation can be the application refreshing the current interface, or initiating a search for new content, initiating a download task, etc. For example, the browser application refreshes the web page, the navigation application plans the route based on the destination information, or the SMS video application refreshes the content, etc.

[0093] The whole device status monitoring unit 314 is used to monitor the operating status of the electronic device, such as the temperature of the device housing, whether it is in power saving mode, whether it is in charging state, and the remaining power.

[0094] Antenna control component 320 is used to dynamically adjust the active Rx antennas during downlink communications based on various monitoring results from status monitoring module 310, such as one or more of lag, service quality, application behavior, and device operating status. This process includes determining the number of Rx antennas and actually adjusting and controlling the Rx antennas.

[0095] Antennas include Tx and Rx antennas. In this electronic device, the Tx antenna is used to transmit signals during uplink communications, and the Rx antenna is used to receive signals during downlink communications. This electronic device includes n Rx antennas. However, in actual use, the electronic device does not necessarily always use all n Rx antennas to simultaneously receive downlink signals. Instead, the number of activated Rx antennas is dynamically adjusted to balance service quality and device power consumption. Inactivated Rx antennas do not receive downlink signals.

[0096] It should be noted that the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the electronic device. In other embodiments of the present application, the electronic device may include more components than shown in the figure, or combine certain components, or split certain components, or arrange the components differently. The illustrated components can be implemented in hardware, software, or a combination of software and hardware. For example, although not shown in this embodiment, the electronic device may also include one or more of a processor, a memory, a charging management module, a mobile communication module, a wireless communication module, a sensor, a speaker, a button, a display, and the like.

[0097] Based on the electronic device provided in the above embodiment, the control method of the Rx antenna provided in the embodiment of the present application is described in detail below.

[0098] FIG6 is a flow chart of a method for controlling an Rx antenna according to an embodiment of the present application. Referring to FIG6 , the method includes the following steps S601 to S603 .

[0099] S601: The electronic device determines that the running state of the foreground application meets a first condition, or a charging event occurs in the electronic device.

[0100] Optionally, the running status of the foreground application satisfies the first condition, including: the foreground application freezes during operation, or the foreground application successfully cold starts, or the foreground application sends a preset data acquisition request to the network side device, such as a page refresh request, a data download request, and an information search request.

[0101] S602: The electronic device determines whether the number k of currently used Rx antennas is less than n, where n is the total number of Rx antennas.

[0102] S603 : When k<n, the electronic device increases the number of enabled Rx antennas from k to m, where k<m≤n.

[0103] In some implementations, the electronic device can increase the number of enabled RX antennas from k to a maximum of n, enabling the highest-specification receive antenna (nRx) to receive downlink signals, thereby rapidly increasing the downlink communication rate. For example, if the electronic device includes four RX antennas but only uses two, the electronic device switches to using 4Rx to receive downlink signals.

[0104] In other implementations, the electronic device may appropriately increase the number of enabled RX antennas, but not increase it to the maximum value n, to save device power consumption. For example, when the electronic device includes a total of 8 RX antennas but the electronic device is currently using only 2 RX antennas, the electronic device switches to using 4 RX antennas to receive downlink signals.

[0105] It should be noted that when an electronic device has more enabled Rx antennas, during MIMO communication between the electronic device and the network device, the electronic device can notify the network device of the changed number of Rx antennas, allowing the network device to adaptively increase the number of Tx antennas, thereby improving the MIMO layer of the communication system, increasing the downlink communication rate, and enhancing the service experience. Alternatively, the electronic device can increase the MCS based on the changed number of Rx antennas to increase the number of effective bits that can be carried by a RE during communication, thereby improving the data transmission rate.

[0106] To sum up, in this embodiment, the electronic device adjusts the number of enabled Rx antennas based on the actual operation of the foreground application. When the foreground application has a poor service experience such as freezing, or when the electronic device is in a charging state and the power consumption of the device is not considered, or when the foreground application needs to receive large amounts of data, the number of enabled Rx antennas can be increased to improve the downlink communication rate, improve service fluency and user experience.

[0107] The following describes the control method of the Rx antenna provided in the embodiment of the present application in different scenarios, taking the example of an electronic device activating the highest-rule receiving antenna (nRx) to increase the downlink communication rate.

[0108] Example 1: Stuttering scenario

[0109] Figure 7 is a flow chart of an Rx antenna control method provided by another embodiment of the present application. This method involves the process of an electronic device activating the highest-specification receiving antenna (nRx) to receive downlink signals after a foreground application freezes. The method includes the following steps S701 to S709, which are specifically controlled and implemented by the antenna control component 320 of the electronic device.

[0110] S701: The electronic device determines whether a foreground application is stuck.

[0111] In this embodiment, the antenna control component 320 determines whether the foreground application is stuck based on the stuck event notified by the stuck monitoring unit 311. The process of the stuck monitoring unit 311 monitoring whether the foreground application is stuck is shown above and will not be repeated here.

[0112] Optionally, the antenna control component 320 may pre-configure an application whitelist containing identification information for applications with high downlink communication rate requirements. After determining that the foreground application is experiencing lag, the antenna control component 320 determines whether the foreground application is on the application whitelist. If so, the subsequent steps are continued to ensure the downlink communication rate for the foreground application. If not, the subsequent steps are skipped to prevent applications with low downlink rate requirements from frequently enabling the nRx function and increasing device power consumption.

[0113] S702: If the foreground application freezes, the electronic device initializes the freeze count prohibitN=1.

[0114] In this embodiment, the number of freezes is used to indicate the number of freezes that occur in the foreground application during this round of Rx antenna control.

[0115] S703: The electronic device determines whether the current usage ratio of the Rx antenna is greater than a usage threshold.

[0116] In this embodiment, the Rx antenna usage percentage = the number of currently used Rx antennas / the total number of Rx antennas n. The percentage threshold is a preset value, such as 75%, 80%, etc. It will be appreciated that when the Rx antenna usage percentage is greater than the percentage threshold, it indicates that the electronic device is using a larger number of Rx antennas to receive downlink data. When the Rx antenna usage percentage is less than the percentage threshold, it indicates that the electronic device is using fewer Rx antennas.

[0117] Optionally, in some other implementations, S703 may be replaced by: the electronic device determines whether the number of currently used Rx antennas is greater than an Rx antenna threshold. The Rx antenna threshold is typically less than or equal to the total number n of Rx antennas in the electronic device. For example, taking n=4, the Rx antenna threshold may be 3.

[0118] S704: When the usage ratio of the Rx antenna is less than the usage threshold, the electronic device turns on nRx and tests whether nRx can improve the lag of the foreground application.

[0119] It should be noted that the downlink communication quality is usually affected by many factors such as server load, node routing delay, cell bandwidth, cell load, downlink air interface quality, electronic device receiving antenna performance, electronic device central processing unit (CPU) performance, etc. In cases where the downlink air interface quality is poor, the cell load is high, the receiving antenna performance is not good enough, the downlink communication quality can be improved by adding enabled Rx antennas. However, in cases where the server itself is highly loaded, the node routing delay is large, the electronic device CPU performance is poor, etc., the electronic device cannot improve the downlink communication quality even if the enabled Rx antenna is added. Therefore, the antenna control component 320 needs to determine through testing whether turning on nRx can improve the jamming of the foreground application.

[0120] In some embodiments, when the usage percentage of the Rx antenna is less than a threshold, the antenna control component 320 controls the nRx antenna to be turned on for downlink signal reception and starts a test timer, appStallDetectTimer. The duration of appStallDetectTimer is a preset duration, for example, appStallDetectTimer = 1 minute. After the test timer expires, the antenna control component 320 determines whether the foreground application's lag has improved based on notifications from the lag monitoring unit 311.

[0121] Since the jam monitoring unit 311 monitors the jamming of the foreground application at a preset interval (e.g., 100ms) and notifies the antenna control component 320 of the jamming event after detecting the jamming of the foreground application, the antenna control component 320 can determine whether the jamming of the foreground application has improved based on the frequency of the received jamming events.

[0122] For ease of description, this embodiment refers to the frequency of received freeze events as the freeze frequency. The freeze frequency before nRx is turned on is the first freeze frequency, and the freeze frequency after nRx is turned on is the second freeze frequency. The second freeze frequency can be the freeze frequency during the test timer timing process, or it can be the freeze frequency within a preset time period (e.g., within 3 seconds) after the test timer ends.

[0123] In some embodiments, if the second freeze frequency is less than the first freeze frequency, it is considered that turning on nRx can improve the freeze condition of the foreground application. If the second freeze frequency is greater than or equal to the first freeze frequency, it is considered that turning on nRx has not improved the freeze condition of the foreground application.

[0124] If the lag of the foreground application is not improved, then steps S705 to S707 are executed to disable nRx. If the lag of the foreground application is improved, then steps S708 to S709 are executed to enable nRx.

[0125] In addition, before turning on nRx, the electronic device can comprehensively evaluate the overall status of the electronic device, such as the case temperature, remaining battery power, and whether it is in power saving mode. If the overall status of the electronic device meets the requirements, for example, the case temperature is below the temperature threshold, it is not in power saving mode, and the remaining battery power is greater than the battery threshold, then nRx is turned on. If the overall status of the electronic device does not meet the requirements, then nRx is not turned on.

[0126] S705: If the freezing of the foreground application is not improved, the electronic device turns off nRx after the first protection timer times out.

[0127] Specifically, if the foreground application's lag persists, antenna control component 320 starts a first protection timer, ProtectTimer1. ProtectTimer1 has a preset duration, exemplarily 30 seconds. After the first protection timer expires, antenna control component 320 turns off nRx. In this embodiment, antenna control component 320 delays turning off nRx to avoid frequent on-and-off cycles in the electronic device.

[0128] It should be noted that when an electronic device turns off nRx, it does not activate the highest-specification receive antenna to receive downlink signals. It does not shut down all RX antennas. The device can continue to use a smaller number of RX antennas to receive downlink signals. For example, if the highest specification receive antenna of an electronic device is 4Rx, after shutting down 4Rx, the electronic device can continue to use 1Rx or 2Rx to receive downlink signals.

[0129] S706: After turning off nRx, the electronic device starts a suppression timer, and increases the number of freezes prohibitN by 1 after the suppression timer times out.

[0130] In this embodiment, the inhibition timer appStallProhibitTimer=T1*prohibitN, where T1 is a preset duration. Taking T1=3S and prohibitN=2 as an example, appStallProhibitTimer=3S*2=6S.

[0131] It can be seen that the duration of the suppression timer is positively correlated with the number of times the foreground app freezes: that is, the greater the number of freezes, the longer the suppression timer. If an electronic device repeatedly turns on nRx but fails to improve the foreground app's freezes, the suppression timer can shorten the proportion of nRx's open time in the entire Rx antenna control process, reducing device power consumption.

[0132] S707: After the suppression timer times out, if the foreground application is not stuck, the current round of Rx antenna control ends and the process returns to S701 to wait for a new round of Rx antenna control to begin. If the foreground application is still stuck, the process returns to S703 and continues to use nRx to improve the foreground application's stuck state.

[0133] S708: If the freezing condition of the foreground application is improved, the electronic device turns off nRx after the second protection timer times out.

[0134] If the foreground application's lag improves, the electronic device can continue to use nRx to improve downlink communication quality and continue to improve the foreground application's lag. However, continued use of the highest-specification receiving antenna consumes significant power, and the electronic device's network environment may also improve. Therefore, the electronic device can turn off nRx after using it for a period of time to save power.

[0135] Specifically, the antenna control component 320 of the electronic device can start a second protection timer ProtectTimer2. The duration of ProtectTimer2 is a preset duration, exemplarily ProtectTimer2 = 3 minutes. Typically, the duration of ProtectTimer2 is greater than the duration of ProtectTimer1. During the timing of the second protection timer, the electronic device can continue to use nRx to receive downlink signals to continue to increase the downlink communication rate and improve the downlink communication quality. After the second protection timer expires, the electronic device turns off nRx to save device power consumption.

[0136] At step S709, after disabling nRx, the electronic device starts an autonomous operation timer. After the autonomous operation timer expires, the electronic device determines whether the foreground application is experiencing lag. If the foreground application is not experiencing lag, the current round of Rx antenna control ends and the process returns to step S701, waiting for the next round of Rx antenna control to begin. If the foreground application is still experiencing lag, the process returns to step S703 and continues using nRx to improve the foreground application's lag.

[0137] In this embodiment, the duration of the autonomous operation timer appStallPositiveTimer is a preset duration, illustratively, appStallPositiveTimer = 1min. During the autonomous operation timer timing, the electronic device can continue to use a small number of Rx antennas (for example, 2Rx) to receive downlink signals to monitor whether a small number of Rx antennas can ensure the smooth operation of the foreground application. After the autonomous operation timer times out, if the foreground application is not stuck, it means that a small number of Rx antennas can ensure the smooth operation of the foreground application, and this round of Rx antenna control ends. If the foreground application is stuck, it means that a small number of Rx antennas cannot guarantee the smooth operation of the foreground application, and the electronic device needs to continue to turn on nRx to improve the stuck situation of the foreground application.

[0138] In summary, the Rx antenna control method provided in this embodiment allows an electronic device to activate the highest-specification receive antenna to receive downlink signals after a foreground application experiences lag. This highest-specification receive antenna can increase the amount of data that can be scheduled in a single transmission by increasing the MCS index and / or MIMO layer during downlink communication, thereby improving the downlink signal reception rate, alleviating foreground application lag, and enhancing the user experience.

[0139] Example 2: High-volume data reception scenario

[0140] FIG8 is a flow chart of a method for controlling an Rx antenna according to another embodiment of the present application. Referring to FIG8 , the method includes the following steps S801 to S806 .

[0141] S801: The electronic device detects that a foreground application has a large data flow receiving demand.

[0142] Exemplarily, high-traffic data receiving scenarios include scenarios where the foreground application receives data from the application server after a cold start, or scenarios where the foreground application refreshes a page during operation, or scenarios where the foreground application downloads data during operation, or scenarios where the foreground application searches for information during operation. This embodiment does not impose specific restrictions on this.

[0143] Based on this, if the application behavior monitoring unit 313 detects that the foreground application has been successfully cold-started, or detects that the foreground application sends data acquisition requests such as page refresh requests, data download requests, and information search requests to the application server during operation, it is determined that the electronic device has a large-process data reception demand.

[0144] In S801 , the application behavior monitoring unit 313 monitors whether the foreground application has a high-traffic data reception requirement. If so, a high-traffic data reception notification is sent to the antenna control component 320 .

[0145] S802, the electronic device turns on nRx.

[0146] Optionally, before enabling nRx, the electronic device needs to comprehensively evaluate the overall status of the electronic device. If the overall status meets the requirements, nRx is enabled. If the overall status does not meet the requirements, nRx is not enabled. The details are not repeated here.

[0147] S803: The electronic device starts a protection timer.

[0148] In S802 to S803 , the antenna control component 320 controls and executes corresponding control operations.

[0149] Optionally, the antenna control component 320 can set timers of different lengths for different high-volume data reception scenarios. For example, for a scenario where an application successfully cold-starts, the timer coldStartStateTimer is set to 30s. For a scenario where an application is downloading data while running, the timer downloadTimer is set to 10s.

[0150] S804 , during the use of nRx, the electronic device determines whether the foreground application is switched.

[0151] For example, upon detecting a foreground application switch, i.e., upon detecting a foreground application switch to another application, the application behavior monitoring unit in the state monitoring module 310 notifies the antenna control component 320 of the foreground application switch event. During nRx operation, the electronic device determines whether the foreground application has switched based on whether a foreground application switch event is received.

[0152] During the use of nRx, if the electronic device switches the foreground application, step S806 is executed directly without executing S805, i.e., nRx is directly turned off without waiting for the timer to time out. If the electronic device does not switch the foreground application, subsequent steps S805 and S806 are continued, i.e., nRx is turned off after the timer times out.

[0153] S805: The protection timer of the electronic device times out.

[0154] S806, the electronic device turns off nRx.

[0155] In S805 to S806 , the antenna control component 320 controls and executes corresponding control operations.

[0156] It should be noted that in steps S803 to S806, to prevent the electronic device from continuously using the highest-order receiving antenna (i.e., nRx) to receive downlink signals, thereby increasing device power consumption, the electronic device may turn on nRx for only a period of time and then turn it off after the period. For example, the antenna control component 320 of the electronic device may first control the activation of a protection timer and then turn off nRx after the protection timer expires.

[0157] In summary, through the Rx antenna control method provided in the embodiment of the present application, the electronic device can use the highest-rule receiving antenna to receive downlink data when it detects that the electronic device has a high-traffic data reception requirement, thereby improving the reception rate of the downlink data.

[0158] Example 3: Charging Scenario

[0159] FIG9 is a flow chart of a method for controlling an Rx antenna according to another embodiment of the present application. Referring to FIG9 , the method includes the following steps S901 to S904 . S901 to S904 are specifically controlled and executed by the antenna control component 320 of the electronic device.

[0160] S901: The electronic device detects a charging event.

[0161] In this embodiment, the whole-machine state monitoring unit 314 specifically monitors whether the electronic device is in a charging state. If the whole-machine state monitoring unit 314 detects that the electronic device switches from a non-charging state to a charging state, it determines that a charging event has occurred and notifies the antenna control component 320 of the charging event.

[0162] S902, the electronic device turns on nRx.

[0163] In this embodiment, when the electronic device is in a charging state, the antenna control component 320 can enable the highest specification receiving antenna (i.e., nRx) to receive downlink signals without considering the device power consumption, so as to maximize the downlink receiving rate of the electronic device.

[0164] Optionally, before enabling nRx, the electronic device needs to comprehensively evaluate the overall status of the electronic device. If the overall status meets the requirements, nRx is enabled. If the overall status does not meet the requirements, nRx is not enabled. The details are not repeated here.

[0165] S903, when the electronic device is using nRx, it detects a charging end event, a screen off event, or a data service deactivation event.

[0166] In this embodiment, the whole-machine status monitoring unit 314 can monitor the working status of the screen and the data service status while monitoring the charging status of the electronic device, and notify the antenna control component 320 of the monitoring results. Among them, the screen working status includes screen off and screen on, and the data service status includes activation state and deactivation state. The activation state of the data service includes the state in which the cellular data switch of the electronic device is turned on and the cellular data function can be used. The deactivation state of the data service includes the state in which the cellular data switch of the electronic device is turned off, or the electronic device switches to the WiFi network and temporarily turns off the cellular data function.

[0167] For example, after the whole-machine status monitoring unit 314 detects that the electronic device switches from a charging state to a non-charging state, it notifies the antenna control component 320 of the charging end event; after detecting that the device screen is turned off, it notifies the antenna control component 320 of the screen off event; after detecting that the data service switches from an activated state to a deactivated state, it notifies the antenna control component 320 of the data service deactivation event.

[0168] S904, the electronic device turns off nRx.

[0169] In this embodiment, the antenna control component 320 controls nRx to be turned off. As previously mentioned, when an electronic device turns off nRx, it means not enabling the highest antenna rule to receive downlink signals, not turning off all Rx antennas. The device can continue to use a smaller number of receiving antennas (such as 1Rx or 2Rx) to receive downlink signals, which will not be further described here.

[0170] Through the method provided in the embodiment of the present application, the electronic device can use the highest antenna specification to receive downlink signals in the charging state, maximize the smooth operation of various applications (including foreground applications and background applications) during the charging process of the device, and improve the user experience.

[0171] It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application.

[0172] Based on the same concept, as an implementation of the above-mentioned control method for the Rx antenna, the present application also provides the following technical solution.

[0173] An embodiment of the present application provides an electronic device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the Rx antenna control method described in the above embodiments is implemented.

[0174] The embodiments of the present application further provide a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the Rx antenna control method shown in the above embodiments is implemented.

[0175] An embodiment of the present application also provides a chip, as shown in FIG10 , which includes a processor and a memory. The memory stores a computer program. When the computer program is executed by the processor, the Rx antenna control method shown in the above embodiments is implemented.

[0176] An embodiment of the present application further provides a computer program product, which includes a computer program. When the computer program is executed by an electronic device, the electronic device implements the Rx antenna control method provided in the above embodiments.

[0177] It should be understood that the processor mentioned in the embodiments of the present application may be a central processing unit (CPU), or may be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or any conventional processor, etc.

[0178] It should also be understood that the memory mentioned in the embodiments of the present application may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of RAM are available, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct rambus RAM (DR RAM).

[0179] In the embodiments provided in this application, the division of each framework or module is merely a logical function division. In actual implementation, there may be other division methods, for example, multiple frameworks or modules can be combined or integrated into another system, or some features can be ignored or not executed.

[0180] In addition, the functional modules in the various embodiments of the present application may be integrated into a processing module, or each module may exist physically separately, or two or more modules may be integrated into a single module. The above-mentioned integrated modules may be implemented in the form of hardware or software functional modules.

[0181] Those skilled in the art will clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0182] References to "one embodiment" or "some embodiments" in this specification mean that a particular feature, structure, or characteristic described in conjunction with that embodiment is included in one or more embodiments of the present application. Thus, phrases such as "in one embodiment," "in some embodiments," "in other embodiments," and "in other embodiments" appearing in various places in this specification do not necessarily refer to the same embodiment, but rather mean "one or more but not all embodiments," unless otherwise specifically emphasized. The terms "including," "comprising," "having," and variations thereof all mean "including but not limited to," unless otherwise specifically emphasized.

[0183] The above-described embodiments 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, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. These modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the various embodiments of the present application, and should all be included in the scope of protection of the present application.

Claims

1. A method for controlling a receiving antenna, characterized in that: Applied to an electronic device, the electronic device includes n receiving antennas, and the method includes: Determine the running status of the foreground application; When the operating state satisfies the first condition and the electronic device uses k receiving antennas to receive signals, it switches to using m receiving antennas to receive signals, where k<m, m≤n.

2. The method according to claim 1, characterized in that The running state satisfies the first condition, including: the foreground application freezes during running.

3. The method according to claim 1, characterized in that: The running state satisfies the first condition, including: the foreground application is cold-started successfully, or the foreground application sends a preset data acquisition request to the network side device.

4. The method according to claim 3, characterized in that The preset data acquisition request includes: a page refresh request, a data download request or an information search request.

5. The method according to claim 2, characterized in that: The freeze is determined by the foreground application; or, The jamming is determined by the electronic device according to relevant parameters of an application processor AP, or according to relevant parameters of the AP and relevant parameters of a modem Modem.

6. The method according to claim 5, characterized in that The AP related parameters include: the loop delay RTT of the transmission control protocol TCP stream of the foreground application, and / or the time interval between the first handshake and the second handshake in the TCP three-way handshake process, and / or the retransmission rate of the downlink data packet; and, The relevant parameters of the Modem include: reference signal strength, and / or reference signal quality, and / or downlink bit error rate of the physical layer.

7. The method according to claim 2, 5 or 6, characterized in that: When the operating state satisfies the first condition and the electronic device uses the k receiving antennas to receive signals, switching to using the m receiving antennas to receive signals includes: When the operating state satisfies the first condition and the electronic device uses the k receiving antennas to receive signals, a test timer is started and n receiving antennas are enabled to receive signals; After the test timer times out, monitoring whether the jamming of the foreground application is improved; If the jamming of the foreground application is not improved, reducing the number of the enabled receiving antennas; If the jamming of the foreground application is improved, continue to use the n receiving antennas to receive signals.

8. The method according to claim 7, characterized in that If the jamming of the foreground application is not improved, reducing the number of enabled receiving antennas, including: If the jamming of the foreground application is not improved, starting a first protection timer; After the first protection timer times out, the number of the enabled receiving antennas is reduced.

9. The method according to claim 8, characterized in that After the first protection timer times out, after reducing the number of the enabled receiving antennas, the method further includes: Start a suppression timer, the duration of which is T=T1*prohibitN, where T1 is a preset duration and prohibitN is the number of freezes; After the suppression timer times out, the number of freezes is increased by 1, and it is re-determined whether the foreground application freezes during operation.

10. The method according to any one of claims 7 to 9, characterized in that: If the jamming of the foreground application is improved, continuing to use the n receiving antennas to receive signals includes: If the jamming of the foreground application is improved, starting a second protection timer; Before the second protection timer expires, the n receiving antennas are used to receive signals.

11. The method according to claim 10, characterized in that The method further comprises: After the second protection timer times out, reducing the number of the enabled receiving antennas and starting an autonomous operation timer; and, After the autonomous operation timer times out, it is re-determined whether the foreground application is stuck during operation.

12. A method for controlling a receiving antenna, characterized in that: Applied to an electronic device, the electronic device includes n receiving antennas, and the method includes: Determining that a charging event occurs in the electronic device; In response to the charging event, when the electronic device uses k receiving antennas to receive signals, it switches to using m receiving antennas to receive signals, where k<m, m≤n.

13. The method according to claim 12, characterized in that The method further comprises: After monitoring a charging end event, a device screen off event, or a data service deactivation event, the number of enabled receiving antennas is reduced.

14. An electronic device, characterized in that: The method comprises a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the method according to any one of claims 1 to 13 when executing the computer program.

15. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 13 is implemented.

16. A chip, characterized in that: The chip includes a processor and a memory, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, the method according to any one of claims 1 to 13 is implemented.

Citation Information

Patent Citations

  • Control method of receiving antenna, electronic equipment, readable storage medium and chip

    CN118804343A

  • Antenna control method and device, memory medium and electronic device

    CN108551685A

  • Multi-antenna equipment control method and device

    CN109327612A

  • Antenna control method and terminal

    CN110290277A

  • Antenna switching method and device, electronic equipment and storage medium

    CN115361047A