Antenna switching control method and device and storage medium
By adjusting the antenna mode according to the folded screen status and service type, the poor communication quality problem caused by antenna interference in the folded screen terminal is solved, and the signal reception performance and user experience of the terminal in different states is improved.
Patent Information
- Application Number
- CN202410047584.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-01-11
- Publication Date
- 2025-07-11
AI Technical Summary
In the folding state, the communication quality of the folding screen terminal is poor due to the interference of the antennas, and the existing ARD functions fail to effectively distinguish between the folding and expanding states, resulting in a poor user experience.
The antenna switching command is determined according to the state of the folded screen, and the control terminal switches to the multi-antenna mode in the folded state to reduce interference, and adjusts the antenna mode according to the service type and signal quality in the expanded state to optimize signal reception.
It improves the signal reception performance of folding screen terminals in different states and improves the user experience.
Smart Images

Figure CN120301474A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of communication technologies, and in particular, to an antenna switching control method, apparatus, and storage medium. Background Art
[0002] In related technologies, a terminal supports cellular communication and defaults to enabling the Antenna Receive Distribution (ARD) function. Among them, when the ARD function is enabled, the terminal dynamically switches the antenna mode according to the terminal signal quality index. For example, it dynamically switches between 2-way receive antennas (RX) and 4RX to improve the data transmission speed, enhance the network coverage, and improve the network connection stability.
[0003] In related technologies, terminals have different models. For example, a terminal can be a folding model with a folding screen. Among them, when the folding screen performs cellular communication based on the above ARD function in the folded state, there is a situation of poor communication quality. Summary of the Invention
[0004] To overcome the problems in related technologies, the present disclosure provides an antenna switching control method, apparatus, and storage medium.
[0005] According to a first aspect of an embodiment of the present disclosure, an antenna switching control method is provided, which is applied to a terminal. The terminal has a folding screen and supports switching between a first antenna mode and a second antenna mode. Among them, the number of antennas in the first antenna mode is greater than the number of antennas in the second antenna mode, and the method includes: determining an antenna switching command based on the current state of the folding screen of the terminal, where the current state of the folding screen includes a folded state or an unfolded state; and controlling the terminal to switch between the first antenna mode and the second antenna mode based on the antenna switching command.
[0006] In one embodiment, the determining an antenna switching command based on the current state of the folding screen of the terminal includes: in response to the folding screen state of the terminal being the folded state, determining that the antenna switching command is a first antenna switching command, and the first antenna switching command is used to control the terminal to switch to the first antenna mode.
[0007] In yet another embodiment, controlling the terminal to switch between a first antenna mode and a second antenna mode based on the antenna switching command includes: in response to the current execution command of the assigned ARD interface received by the terminal antenna being an ARD function enabling command, disabling the ARD function and controlling the terminal to switch to the first antenna mode, where the ARD function enabling command is used to control the terminal to switch between the first antenna mode and the second antenna mode based on the terminal signal quality index; in response to the current execution command of the assigned ARD interface received by the terminal antenna being an ARD function disabling command, maintaining the ARD function disabling command and maintaining the terminal in the first antenna mode, where in the case of the ARD function disabling command, the terminal is in the first antenna mode.
[0008] In yet another embodiment, the antenna switching control method further includes: determining that the terminal satisfies at least one of the following: the terminal is in a cellular communication state; the currently running application of the terminal is a preset whitelist application.
[0009] In yet another embodiment, determining the antenna switching command based on the current state of the terminal's folding screen includes:
[0010] In response to the folding screen state of the terminal being an unfolded state, determining the current service type corresponding to the currently running application of the terminal; invoking a current signal index threshold matching the current service type, where different service types correspond to different signal quality index thresholds, and the signal quality index threshold is used to control the terminal to execute the third antenna switching command or the fourth antenna switching command; determining the antenna switching command to be the third antenna switching command or the fourth antenna switching command based on the current signal index threshold and the current signal index of the terminal; the third antenna switching command is used to control the terminal to switch from the second antenna mode to the first antenna mode, and the fourth antenna switching command is used to control the terminal to switch from the first antenna mode to the second antenna mode.
[0011] In yet another embodiment, controlling the terminal to switch between the first antenna mode and the second antenna mode based on the antenna switching command includes: in response to the antenna switching command being the third antenna switching command, if the current signal index satisfies a first condition, then determining the currently executed antenna switching command; if the current antenna switching command is the same as the most recently executed antenna switching command, then maintaining the use of the most recently executed antenna switching command; if the current antenna switching command is different from the most recently executed antenna switching command, then executing the current antenna switching command.
[0012] In yet another embodiment, controlling the terminal to switch between the first antenna mode and the second antenna mode based on the antenna switching command includes: in response to the antenna switching command being the fourth antenna switching command, if the current antenna switching command is the same as the most recently executed antenna switching command, then continue to use the most recently executed antenna switching command; if the current antenna switching command is different from the most recently executed antenna switching command, then execute the current antenna switching command.
[0013] In yet another embodiment, the service types include voice communication services and data services, and the signal metric thresholds include a signal-to-noise ratio metric threshold, a reference signal received power metric threshold, and a downlink scheduling resource metric threshold; wherein, the signal-to-noise ratio metric threshold / reference signal received power metric threshold corresponding to the voice communication services is the same as the signal-to-noise ratio metric threshold / reference signal received power metric threshold corresponding to the data services; and the downlink scheduling resource metric threshold corresponding to the voice communication services is less than the downlink scheduling resource metric threshold corresponding to the data services.
[0014] In yet another embodiment, the signal metric thresholds include a signal-to-noise ratio metric threshold and a reference signal received power metric threshold, and the method further includes: monitoring the block error rate within a preset metric threshold range for the target metric threshold, and determining the average block error rate of the block error rate within a specified window. Based on the average block error rate and the average block error rate threshold, determine a first type of quantity and a second type of quantity, where the first type of value represents the quantity for which the metric threshold meets the condition, and the second type of quantity represents the quantity for which the metric threshold does not meet the condition; based on the ratio of the first type of quantity and the second type of quantity, and the number of times the terminal executes the target antenna switching command, adjust the target metric threshold.
[0015] In yet another embodiment, determining the first type of quantity and the second type of quantity based on the average block error rate and the average block error rate threshold includes: in response to the terminal determining that the average block error rate of a first quantity before executing the antenna switching command is less than a first average block error rate threshold, increment the first type of quantity; in response to the terminal determining that the average block error rate of the first quantity before executing the antenna switching command is greater than or equal to a second average block error rate threshold, increment the second type of quantity; the second average block error rate is greater than the first average block error rate.
[0016] In yet another embodiment, adjusting the target metric threshold based on the ratio of the first type of quantity and the second type of quantity, and the number of times the terminal executes the target antenna switching command includes: if the number of times the terminal executes the target antenna switching command is greater than a threshold number of times, and the ratio is greater than 1, then decrease the target metric threshold; or if the number of times the terminal executes the target antenna switching command is greater than the threshold number of times, and the ratio is less than or equal to 1, then increase the target metric threshold.
[0017] In yet another embodiment, adjusting the target threshold includes: in response to determining to adjust the target threshold for N consecutive times, adjusting the target metric threshold within a set time, where N is a positive integer.
[0018] According to a second aspect of the embodiments of the present disclosure, there is provided an antenna switching control device applied to a terminal. The terminal has a folding screen and supports switching between a first antenna mode and a second antenna mode. In the first antenna mode, the number of antennas is greater than that in the second antenna mode. The device includes: a determination unit configured to determine an antenna switching command based on the current state of the folding screen of the terminal; and a processing unit configured to control the terminal to switch between the first antenna mode and the second antenna mode based on the antenna switching command.
[0019] In one embodiment, the determination unit determines the antenna switching command based on the current state of the folding screen of the terminal in the following manner: in response to the folding screen state of the terminal being a folded state, determining the antenna switching command as a first antenna switching command, and the first antenna switching command is used to control the terminal to switch to the first antenna mode.
[0020] In another embodiment, the processing unit controls the terminal to switch between the first antenna mode and the second antenna mode based on the antenna switching command in the following manner: in response to the current execution command of the antenna reception allocation ARD interface of the terminal being an ARD function enabling command, turning off the ARD function and controlling the terminal to switch to the first antenna mode, where the ARD function enabling command is used to control the terminal to switch between the first antenna mode and the second antenna mode based on the terminal signal quality metric; in response to the current execution command of the antenna reception allocation ARD interface of the terminal being an ARD function disabling command, maintaining the ARD function disabling command and maintaining the terminal in the first antenna mode. In the case of the ARD function disabling command, the terminal is in the first antenna mode.
[0021] In another embodiment, the determination unit determines that the terminal meets at least one of the following: the terminal is in a cellular communication state; the currently running application of the terminal is a preset whitelist application.
[0022] In another embodiment, the determining unit determines the antenna switching command based on the current state of the folding screen of the terminal in the following manner: in response to the folding screen state of the terminal being the unfolded state, determine the current service type corresponding to the application currently running on the terminal; call the current signal index threshold matching the current service type, where different service types correspond to different signal quality index thresholds, and the signal quality index threshold is used to control the terminal to execute the third antenna switching command or the fourth antenna switching command; based on the current signal index threshold and the current signal index of the terminal, determine that the antenna switching command is the third antenna switching command or the fourth antenna switching command; the third antenna switching command is used to control the terminal to switch from the second antenna mode to the first antenna mode, and the fourth antenna switching command is used to control the terminal to switch from the first antenna mode to the second antenna mode.
[0023] In another embodiment, the processing unit controls the terminal to switch between the first antenna mode and the second antenna mode based on the antenna switching command in the following manner: in response to the antenna switching command being the third antenna switching command, if the current signal index meets the first condition, determine the currently executed antenna switching command; if the current antenna switching command is the same as the most recently executed antenna switching command, maintain the use of the most recently executed antenna switching command; if the current antenna switching command is different from the most recently executed antenna switching command, execute the current antenna switching command.
[0024] In another embodiment, the processing unit controls the terminal to switch between the first antenna mode and the second antenna mode based on the antenna switching command in the following manner: in response to the antenna switching command being the fourth antenna switching command, if the current antenna switching command is the same as the most recently executed antenna switching command, maintain the use of the most recently executed antenna switching command; if the current antenna switching command is different from the most recently executed antenna switching command, execute the current antenna switching command.
[0025] In another embodiment, the determining unit determines that the service types include voice communication services and data services, and the signal index thresholds include signal-to-noise ratio index thresholds, reference signal received power index thresholds, and downlink scheduling resource index thresholds; among them, the signal-to-noise ratio index thresholds / reference signal received power index thresholds corresponding to voice communication services are the same as those corresponding to data services; the downlink scheduling resource index threshold corresponding to voice communication services is less than the downlink scheduling resource index threshold corresponding to data services.
[0026] In another embodiment, the determining module determines signal metric thresholds including a signal-to-noise ratio metric threshold and a reference signal received power metric threshold in the following manner. The determining module further includes: monitoring the block error rate within a preset metric threshold range of the target metric threshold, and determining the average block error rate of the block error rate within a specified window. Based on the average block error rate and the average block error rate threshold, determine a first type of quantity and a second type of quantity. The first type of value represents the quantity for which the metric threshold meets the condition, and the second type of quantity represents the quantity for which the metric threshold does not meet the condition; based on the ratio of the first type of quantity to the second type of quantity, and the number of times the terminal executes the target antenna switching command, adjust the target metric threshold.
[0027] In another embodiment, the determining module determines a first type of quantity and a second type of quantity based on the average block error rate and the average block error rate threshold in the following manner: in response to the average block error rate of the first quantity before the terminal determines to execute the antenna switching command being less than the first average block error rate threshold, accumulate the first type of quantity; in response to the average block error rate of the first quantity before the terminal determines to execute the antenna switching command being greater than or equal to the second average block error rate threshold, accumulate the second type of quantity; the second average block error rate is greater than the first average block error rate.
[0028] In another embodiment, the processing unit adjusts the target metric threshold based on the ratio of the first type of quantity to the second type of quantity, and the number of times the terminal executes the target antenna switching command in the following manner: if the number of times the terminal executes the target antenna switching command is greater than the number threshold, and the ratio is greater than 1, then decrease the target metric threshold; or if the number of times the terminal executes the target antenna switching command is greater than the number threshold, and the ratio is less than or equal to 1, then increase the target metric threshold.
[0029] In another embodiment, the processing unit adjusts the target threshold in the following manner: in response to determining to adjust the target threshold continuously for N times, adjust the target threshold within a set time, where N is a positive integer.
[0030] According to a third aspect of the embodiments of the present disclosure, there is provided an antenna switching control device, including: a processor; a memory for storing processor-executable instructions. Wherein, the processor is configured to: execute the antenna switching control method described in the first aspect and its embodiments above.
[0031] According to a fourth aspect of the embodiments of the present disclosure, there is provided a non-transitory computer-readable storage medium, when the instructions in the storage medium are executed by a processor of a terminal, enabling the terminal to execute the antenna switching control method described in the first aspect and its embodiments above.
[0032] The technical solutions provided by the embodiments of the present disclosure may include the following beneficial effects: The terminal determines the corresponding antenna switching command based on whether the current state of the folding screen is the unfolded state or the folded state, and controls the terminal to switch between the first antenna mode and the second antenna mode based on the determined antenna switching command that matches the current state, so as to control the terminal to switch to the antenna switching mode that matches the terminal, overcoming the problem that the receiving performance of the terminal deteriorates due to inappropriate selection of the antenna mode.
[0033] It should be understood that the above general description and the following detailed description are only exemplary and explanatory, and cannot limit the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] The accompanying drawings herein are incorporated into the specification and constitute a part of this specification, showing embodiments consistent with the present disclosure, and are used together with the specification to explain the principles of the present disclosure.
[0035] Figure 1 is a flowchart of an antenna switching control method shown according to an exemplary embodiment.
[0036] Figure 2 is a flowchart of a terminal determining an antenna switching command in a folded state shown according to an exemplary embodiment.
[0037] Figure 3 is a flowchart of a terminal executing an antenna switching command in a folded state shown according to an exemplary embodiment.
[0038] Figure 4 is a flowchart of a terminal device with a folding screen executing a first antenna switching command in a folded state.
[0039] Figure 5 is a flowchart of a terminal determining an antenna switching command in an unfolded state shown according to an exemplary embodiment.
[0040] Figure 6 is a flowchart of a terminal determining an antenna switching command in an unfolded state shown according to an exemplary embodiment.
[0041] Figure 7 is a flowchart of a terminal determining an antenna switching command in an unfolded state shown according to an exemplary embodiment.
[0042] Figure 8 is a flowchart of a terminal executing an antenna switching command in an unfolded state shown according to an exemplary embodiment.
[0043] Figure 9 is a flowchart of a terminal device with a folding screen executing a third antenna switching command and a fourth antenna switching command in an unfolded state.
[0044] Figure 10 It is a flowchart of a calculation method for sliding average of bit error rate of a terminal in an unfolded state shown according to an exemplary embodiment.
[0045] Figure 11 It is a flowchart of a method for adjusting a target metric threshold of a terminal in an unfolded state shown according to an exemplary embodiment.
[0046] Figure 12 It is a flowchart for adjusting a target metric threshold of a terminal device with a foldable screen in an unfolded state.
[0047] Figure 13 It is a block diagram of an antenna switching control device shown according to an exemplary embodiment.
[0048] Figure 14 It is a block diagram of a device for antenna switching control shown according to an exemplary embodiment. Detailed implementation manners
[0049] Here, the exemplary embodiments will be described in detail, and the examples are shown in the drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The implementation manners described in the following exemplary embodiments do not represent all implementation manners consistent with the present disclosure.
[0050] As described in the background art, terminals with foldable screens are being rapidly popularized. When a terminal with a foldable screen uses cellular communication in the folded state, due to the mutual interference of antennas, the receiving performance of the terminal with a foldable screen in the folded state becomes poor, resulting in a poor user experience.
[0051] In the related art, the ARD function is default enabled in the terminal device under cellular communication. This function dynamically switches to two receive antennas (2RX) or four receive antennas (4RX) according to the signal quality metric to improve the data transmission speed, enhance the network coverage, and improve the network connection stability. However, this function does not distinguish between the folded state and the unfolded state of the foldable device, nor does it consider the reception requirements of foreground applications, only considering the signal quality metric, such as call and game scenarios, and there is a situation where the switching causes a poor user experience.
[0052] To address the above problems, when the terminal uses cellular communication in the folded state or the unfolded state, the antenna switching of the terminal is controlled based on the current state of the terminal's foldable screen, so as to ensure the receiving performance of the terminal's foldable screen in different states and improve the user experience.
[0053] In an example of the first embodiment of the present disclosure, the terminal has a foldable screen and supports switching between a first antenna mode and a second antenna mode, wherein the number of antennas in the first antenna mode is greater than the number of antennas in the second antenna mode.
[0054] In an example of the first embodiment of the present disclosure, the first antenna mode of the terminal is to set the number of receiving antennas of the terminal to 4. The second antenna mode of the terminal is to set the number of receiving antennas of the terminal to 2.
[0055] Figure 1 It is a flowchart of an antenna switching control method shown according to an exemplary embodiment, as Figure 1 shown, the antenna switching control method includes the following steps.
[0056] In step S11, based on the current state of the foldable screen of the terminal, an antenna switching command is determined.
[0057] In the embodiment of the present disclosure, the current state of the foldable screen includes a folded state or an unfolded state.
[0058] The antenna switching command includes a first antenna switching command, a second antenna switching command, a third antenna switching command, and a fourth antenna switching command.
[0059] In the embodiment of the present disclosure, the first antenna switching command is used to control the current command executed by the ARD interface of the terminal to be to turn off the ARD function; the second antenna switching command is used to control the current command executed by the ARD interface of the terminal to be to turn on the ARD function; the third antenna switching command is to control the terminal to switch from the second antenna mode to the first antenna mode; the fourth antenna switching command is to control the terminal to switch from the first antenna mode to the second antenna mode.
[0060] In step S12, based on the antenna switching command, the terminal is controlled to switch between the first antenna mode and the second antenna mode.
[0061] The antenna switching control method provided by the embodiment of the present disclosure listens to the change in the folded state of the foldable screen of the terminal, and determines whether the current foldable screen of the terminal is in a folded state or an unfolded state. According to the state of the foldable screen of the terminal, a corresponding antenna switching command is determined to control the terminal to switch the antenna mode, overcoming the problem that the receiving performance of the terminal deteriorates due to inappropriate selection of the antenna mode.
[0062] The following embodiments of the present disclosure further explain and illustrate the antenna switching control method in the above embodiments of the present disclosure.
[0063] In an example of the present disclosure, the state of the foldable screen of the terminal is a folded state, and the determined antenna switching command is the first antenna switching command, and the first antenna switching command is used to control the terminal to switch to the first antenna mode.
[0064] In the embodiment of the present disclosure, when the folding screen is in the folded state, the control terminal is switched to the first antenna mode. In the first antenna mode, the number of antennas is relatively large, which can avoid the degradation of communication performance caused by the decrease in the number of antennas in the folded state and the mutual interference of the signals received by the antennas.
[0065] In the embodiment of the present disclosure, when the folding screen is in the folded state, the execution process of switching the control terminal to the first antenna mode can be implemented in the following manner:
[0066] In step S21, determine the current command executed by the ARD interface of the terminal.
[0067] Among them, the commands executed by the ARD interface include the command to enable the ARD function or the command to disable the ARD function. Among them, in the case of the command to enable the ARD function, the ARD function is enabled, that is, the antenna mode is switched based on the signal quality index and the signal quality index threshold. For example, the switching between 4RX and 2RX is performed. The command to disable the ARD function means that the antenna mode is not switched. For example, the first antenna switching mode is maintained, such as the 4RX antenna mode.
[0068] In step S22, in response to the current command executed by the ARD interface assigned to the terminal antenna reception being the command to enable the ARD function, disable the ARD function to make the terminal in the first antenna mode.
[0069] The ARD function command is used to control the terminal to switch between the first antenna mode and the second antenna mode based on the terminal signal quality index.
[0070] In step S23, in response to the current command executed by the ARD interface assigned to the terminal antenna reception being the command to disable the ARD function, keep the command to disable the ARD function and keep the terminal in the first antenna mode.
[0071] Among them, in the case of the command to disable the ARD function, the terminal is in the first antenna mode.
[0072] The following embodiments of the present disclosure further explain and illustrate the antenna switching control method in the above embodiments of the present disclosure.
[0073] In response to the folding screen of the terminal being in the folded state, determine the most recent antenna switching command executed by the terminal in the folded state. In the embodiment of the present disclosure, the most recent antenna switching command executed by the terminal in the folded state includes the first antenna switching command or the second antenna switching command. In response to the comparison result between the current antenna switching command and the most recent antenna switching command executed by the terminal in the folded state being different, determine to execute the current antenna switching command. In response to the comparison result between the current antenna switching command and the most recent antenna switching command executed by the terminal in the folded state being the same, determine to keep the most recent executed antenna switching command.
[0074] In the embodiments of the present disclosure, by comparing the current antenna switching command with the most recently executed antenna switching command when the terminal is in the folded state, if the comparison results are the same, the most recently executed antenna switching command is maintained. This can reduce the process of the terminal executing commands once, achieving the effect of saving the operating resources of the terminal.
[0075] In the embodiments of the present disclosure, in response to determining an antenna switching command when the terminal is in the folded state, it is determined that the terminal satisfies at least one of the following: the terminal satisfies the cellular communication state; the application currently running on the terminal is a preset whitelist application.
[0076] In the embodiments of the present disclosure, when the terminal is in the folded state, the first antenna switching command is determined, and the terminal is maintained in the first antenna mode, overcoming the deterioration of the signal reception performance caused by the mutual interference of the antennas when the terminal is in the folded state. The signal reception performance of the terminal in the folded state is ensured, improving the user experience.
[0077] Figure 3 It is a flowchart of determining an antenna switching command when the terminal is in the folded state shown according to an exemplary embodiment. As Figure 3 shown, the antenna switching control method when the terminal is in the folded state includes the following steps.
[0078] In step S31, in response to the folded screen state of the terminal being the folded state, the current network connection state of the terminal is determined.
[0079] In the embodiments of the present disclosure, the current network connection state of the terminal is divided into Wireless Fidelity (WIFI) communication and cellular communication.
[0080] In step S32, in response to the current network connection state of the terminal being cellular communication, the application currently running on the terminal is determined.
[0081] In the embodiments of the present disclosure, when the terminal in the folded state is in the case of inserting a card and camping on the network, the network connection state of the terminal is cellular communication. The user can normally browse the web, play games, and send and receive data. At this time, the terminal is in the service connection state.
[0082] In step S33, in response to the application currently running on the terminal being a preset whitelist application, the antenna switching command is determined to be the first antenna switching command.
[0083] In the embodiments of the present disclosure, the preset whitelist application is an application running when the folded screen of the terminal is in the folded state. The running application can be a preset application with a communication quality requirement greater than a threshold. In one example, the preset whitelist application can be a data application, for example.
[0084] In an example of the first embodiment of the present disclosure, the preset whitelist applications include calls and data type applications adapted to the external screen.
[0085] In the embodiment of the present disclosure, the first antenna switching command is used to control the current command executed by the ARD interface of the terminal to turn off the ARD function and keep the terminal in the first antenna mode at this time.
[0086] In step S34, in response to the application currently running on the terminal being a non-preset whitelist application, the antenna switching command is determined to be the second antenna switching command.
[0087] In the embodiment of the present disclosure, the second antenna switching command is used to control the current command executed by the ARD interface of the terminal to turn on the ARD function.
[0088] Among them, step S34 is an optional step.
[0089] Figure 4 It is a schematic flow chart of a terminal device with a folding screen executing the first antenna switching command in the folded state.
[0090] In the embodiment of the present disclosure, in response to the folding screen of the terminal device being in the folded state currently, the current network connection state of the terminal device is determined. In response to the terminal device being in the cellular communication network currently, it is determined that the application currently running on the terminal is a preset whitelist application. In response to the application currently running on the terminal being a preset whitelist application, it is determined that the current antenna switching command is the first antenna switching command. Compared with the most recently executed antenna switching command, if they are different commands, the current antenna switching command is executed to turn off the ARD function and make the terminal in the first antenna mode, which ensures the receiving performance of the terminal in the folded state and improves the user experience.
[0091] The following embodiments of the present disclosure further explain and illustrate the antenna switching control method for the unfolded state of the terminal folding screen.
[0092] In the embodiment of the present disclosure, different signal quality index thresholds are set for different service types of the terminal. Among them, different service types correspond to different signal quality index thresholds, and the signal quality index thresholds are used to control the terminal to execute the third antenna switching command or the fourth antenna switching command. The third antenna switching command is used to control the terminal to switch from the second antenna mode to the first antenna mode, and the fourth antenna switching command is used to control the terminal to switch from the first antenna mode to the second antenna mode.
[0093] In the embodiments of the present disclosure, the service types include voice communication services and data services. In the embodiments of the present disclosure, the signal metric thresholds matching the voice communication services include: Signal to Noise Ratio (SNR) metric, Reference Signal Receiving Power (RSRP) metric, and Downlink Scheduling Resource metric DL Grant.
[0094] In the embodiments of the present disclosure, the signal metric thresholds matching the data services include:
[0095] Signal to Noise Ratio (SNR) metric, Reference Signal Receiving Power (RSRP) metric, and Downlink Scheduling Resource metric DL Grant.
[0096] In the embodiments of the present disclosure, the SNR metric threshold / RSRP metric threshold corresponding to the voice communication services is the same as the SNR metric threshold / RSRP metric threshold corresponding to the data services; the DL Grant threshold corresponding to the voice communication services is less than the DL Grant threshold corresponding to the data services.
[0097] In the embodiments of the present disclosure, when the folding screen state of the terminal is in the unfolded state, determine the current service type of the application currently running on the terminal. Invoke the current signal metric threshold matching the current service type; based on the current signal metric threshold and the current signal metrics of the terminal, determine that the antenna switching command is the third antenna switching command or the fourth antenna switching command.
[0098] Among them, in an exemplary embodiment of the present disclosure, the terminal may also, when determining to perform cellular communication, perform the above-mentioned antenna switching control based on the signal metric thresholds of different service types.
[0099] Figure 5 It is a flowchart of the terminal determining the antenna switching command in the unfolded state shown according to an exemplary embodiment, as Figure 5 shown, the terminal determining the antenna switching command in the unfolded state includes the following steps.
[0100] In step S51, in response to the folding screen state of the terminal being in the unfolded state, determine the current network connection state of the terminal.
[0101] In step S52, in response to the current network connection state of the terminal being cellular communication, determine the service type corresponding to the application currently running on the terminal.
[0102] In the embodiments of the present disclosure, the service types include voice communication services and data services. Among them, the data services include audio-visual services and game services.
[0103] In step S53, based on the current signal metric threshold and the current signal metric of the terminal, determine that the antenna switching command is the third antenna switching command or the fourth antenna switching command.
[0104] In an embodiment of the present disclosure, in response to the antenna switching command of the ARD function being to control the terminal to switch from the second antenna mode to the first antenna mode, determine that the current antenna switching command of the terminal in the unfolded state is the third antenna switching command. In response to the antenna switching command of the ARD function being to control the terminal to switch from the first antenna mode to the second antenna mode, determine that the current antenna switching command of the terminal in the unfolded state is the fourth antenna switching command.
[0105] In an embodiment of the present disclosure, when the terminal is in the unfolded state, according to the execution result of the ARD function, determine whether the current antenna switching command of the terminal in the unfolded state is the third antenna switching command or the fourth antenna switching command. Through the ARD function, the antenna switching command can be initially judged. Based on the antenna switching command, different threshold conditions are called to determine whether the current antenna switching command is executed. The terminal in the unfolded state can determine the corresponding antenna switching command according to different scenarios, ensuring the reception performance of the terminal in the unfolded state and improving the user experience.
[0106] In one example, in response to the antenna switching command being the third antenna switching command, if the current signal metric meets the first condition, determine the currently executed antenna switching command. If the current antenna switching command is the same as the most recently executed antenna switching command, keep using the most recently executed antenna switching command. If the current antenna switching command is different from the most recently executed antenna switching command, execute the current antenna switching command.
[0107] Figure 6 is a flowchart of a terminal determining an antenna switching command in an unfolded state shown according to an exemplary embodiment, as Figure 6 shown, the steps for a terminal to determine an antenna switching command in an unfolded state include the following.
[0108] In step S61, call the signal metric threshold that matches the current service type.
[0109] In step S62, in response to the current signal quality metric of the terminal meeting the called signal metric threshold, determine that the current antenna switching command of the terminal in the unfolded state is the fourth antenna switching command.
[0110] In step S63, in response to the current signal quality metric of the terminal not meeting the called signal metric threshold, keep the most recently executed antenna switching command.
[0111] In the embodiments of the present disclosure, in response to the current antenna switching command of the terminal in the unfolded state being the fourth antenna switching command, and based on the comparison result between the current signal quality index of the terminal and the called signal index threshold, it is determined whether to execute the fourth antenna switching command, which ensures the receiving performance of the terminal in the unfolded state and improves the user experience.
[0112] The following embodiments of the present disclosure further explain and illustrate the antenna switching control method in the above embodiments of the present disclosure.
[0113] Figure 7 is a flowchart of determining an antenna switching command by a terminal in an unfolded state shown according to an exemplary embodiment, as Figure 7 shown, determining an antenna switching command by a terminal in an unfolded state includes the following steps.
[0114] In step S71, in response to the current antenna switching command of the terminal in the unfolded state being the third antenna switching command, a first condition of the signal index is determined.
[0115] In the embodiments of the present disclosure, the first condition of the signal index includes: SNR and RSRP satisfy the corresponding signal index thresholds. In one example, the first condition is SNR ≤ 6 dBm || RSRP ≤ -105 dBm.
[0116] In step S72, in response to the current signal quality index of the terminal satisfying the first condition of the signal index, it is determined that the current antenna switching command of the terminal in the unfolded state is the third antenna switching command.
[0117] In step S73, in response to the current signal quality index of the terminal not satisfying the first condition of the signal index, the most recently executed antenna switching command is maintained.
[0118] In the embodiments of the present disclosure, in response to the current antenna switching command of the terminal in the unfolded state being the third antenna switching command, and based on the comparison result between the current signal quality index of the terminal and the called signal index threshold, it is determined whether to execute the third antenna switching command, which ensures the receiving performance of the terminal in the unfolded state and improves the user experience.
[0119] The following embodiments of the present disclosure further explain and illustrate the antenna switching control method in the above embodiments of the present disclosure.
[0120] Figure 8 is a flowchart of executing an antenna switching command by a terminal in an unfolded state shown according to an exemplary embodiment, as Figure 8 shown, executing an antenna switching command by a terminal in an unfolded state includes the following steps.
[0121] In step S81, in response to the folding screen of the terminal being in the unfolded state, determine the most recent antenna switching command executed by the terminal in the unfolded state.
[0122] In an embodiment of the present disclosure, the most recent antenna switching command executed by the terminal in the unfolded state includes a third antenna switching command or a fourth antenna switching command.
[0123] In step S82, in response to the comparison result between the current antenna switching command and the most recent antenna switching command executed by the terminal in the unfolded state being different, determine to execute the current antenna switching command.
[0124] In step S83, in response to the comparison result between the current antenna switching command and the most recent antenna switching command executed by the terminal in the folded state being the same, determine to maintain the most recent antenna switching command.
[0125] In an embodiment of the present disclosure, by comparing the current antenna switching command of the terminal in the unfolded state with the most recent antenna switching command executed, if the comparison result is the same, then maintain the use of the most recent antenna switching command. This can reduce the process of the terminal executing a command once and achieve the effect of saving the operating resources of the terminal.
[0126] Figure 9 It is a flowchart of a terminal device with a folding screen executing a third antenna switching command and a fourth antenna switching command in the unfolded state.
[0127] In an embodiment of the present disclosure, in response to the folding screen of the terminal device being currently in the unfolded state, determine the current network connection state of the terminal device. In response to the terminal device being currently in a cellular communication network, monitor the signal change of the terminal device. Based on the execution result of the ARD function, determine whether the current antenna switching command of the terminal device is a third antenna switching command or a fourth antenna switching command. In response to the current antenna switching command of the terminal device being a third antenna switching command, call the first condition of the signal index. If the current signal index of the terminal device meets the first condition of the signal index, then compare the current antenna switching command of the terminal device in the unfolded state with the most recent antenna switching command executed. In response to the comparison result being different, execute the third antenna switching command. In response to the current antenna switching command of the terminal device being a fourth antenna switching command, based on the service type of the application currently running on the terminal device, call the signal index threshold corresponding to the service type. If the current signal index of the terminal device meets the signal index threshold, then compare the current antenna switching command of the terminal device in the unfolded state with the most recent antenna switching command executed. In response to the comparison result being different, execute the fourth antenna switching command.
[0128] In one example, when the signal-to-noise ratio (SNR) in the terminal signal quality indicator is greater than the first SNR indicator threshold, the downlink scheduling resource indicator (DL Grant) is less than the first downlink scheduling resource indicator threshold, and there is no 3 / 4 stream downlink scheduling, the terminal is controlled to switch to the second antenna mode.
[0129] When the SNR in the terminal signal quality indicator is less than the first SNR indicator threshold, or the DL Grant is greater than the first downlink scheduling resource indicator threshold, or there is 3 / 4 stream downlink scheduling, the terminal is controlled to switch to the first antenna mode.
[0130] In one example of an embodiment of the present disclosure, the first SNR indicator threshold may be -6 dBm, and the first downlink scheduling resource indicator threshold may be 10%.
[0131] In one example of an embodiment of the present disclosure, the first condition of the signal indicator may be: the SNR ≤ 6 dBm or the reference signal received power indicator ≤ -105 dBm.
[0132] In the embodiments of the present disclosure, the signal indicator threshold includes a first signal indicator threshold and a second signal indicator threshold.
[0133] In one example of an embodiment of the present disclosure, the first signal indicator threshold may be: the SNR ≥ 9 dBm && the reference signal received power indicator RSRP ≥ -95 dBm && the downlink scheduling resource indicator ≤ 0%.
[0134] In one example of an embodiment of the present disclosure, the second signal indicator threshold may be: the SNR ≥ 9 dBm && the reference signal received power indicator RSRP ≥ -95 dBm && the downlink scheduling resource indicator ≤ 10%.
[0135] In the embodiments of the present disclosure, based on the comparison result of the current signal indicator of the terminal in the unfolded state with different thresholds, the third antenna switching command or the fourth antenna switching command is executed, and an appropriate terminal antenna mode can be selected, which can simultaneously meet the needs of the terminal for different service types, ensure the antenna reception performance, and improve the user experience.
[0136] In one example embodiment of the present disclosure, the signal indicator threshold includes a signal-to-noise ratio indicator threshold and a reference signal received power indicator threshold, and the signal-to-noise ratio indicator threshold and the reference signal received power indicator threshold can be dynamically adjusted.
[0137] In one example, the embodiments of the present disclosure can adjust the signal-to-noise ratio indicator threshold and the reference signal received power indicator threshold based on the block error rate.
[0138] In one example, the monitoring target metric threshold is the block error rate within the preset metric threshold range, and the average block error rate of the block error rate within the specified window is determined. Based on the average block error rate and the average block error rate threshold, the quantity of the first type and the quantity of the second type are determined. The quantity of the first type represents the number of times the metric threshold meets the condition, and the quantity of the second type represents the number of times the metric threshold does not meet the condition. Based on the ratio of the quantity of the first type to the quantity of the second type and the number of times the terminal executes the target antenna switching command, the target metric threshold is adjusted.
[0139] The following embodiments of the present disclosure further explain and illustrate the antenna switching control method in the above embodiments of the present disclosure.
[0140] Figure 10 is a flowchart of a calculation method for performing a moving average on the block error rate when the terminal is in the unfolded state according to an exemplary embodiment, as Figure 10 shown, the calculation method for performing a moving average on the block error rate when the terminal is in the unfolded state includes the following steps.
[0141] In step S101, in response to the current antenna switching command of the terminal, the initial value of the target metric threshold is determined.
[0142] In the embodiments of the present disclosure, the target metric threshold is the value of the reference signal received power metric RSRP in the signal metric threshold, where the target metric threshold includes a first target threshold and a second target threshold.
[0143] In step S102, in response to determining the initial value of the target metric threshold, the block error rate near the initial value of the target metric threshold is recorded.
[0144] In the embodiments of the present disclosure, the block error rate includes a first block error rate and a second block error rate.
[0145] In the embodiments of the present disclosure, the block error rate near the first target metric threshold is recorded as the first block error rate; the block error rate near the second target metric threshold is recorded as the second block error rate.
[0146] In step S103, a moving average calculation is performed on the downlink block error rate.
[0147] In the embodiments of the present disclosure, a moving average calculation is performed on the downlink first block error rate and the downlink second block error rate to obtain a first average block error rate and a second average block error rate respectively, and the calculation result of each time is recorded.
[0148] In step S104, in response to the terminal executing the antenna switching command, the quality of the block error rate before switching is determined.
[0149] In response to the average block error rate of the first quantity before the terminal determines to execute the antenna switching command being less than the first average block error rate threshold, accumulate the first type of quantity; in response to the average block error rate of the first quantity before the terminal determines to execute the antenna switching command being greater than or equal to the second average block error rate threshold, accumulate the second type of quantity; the second average block error rate is greater than the first average block error rate.
[0150] In the embodiments of the present disclosure, if the 3 - time downlink average block error rate before executing the antenna switching command is less than the first average block error rate threshold, the count of num_avg_better is incremented by 1; if the 3 - time downlink average block error rate before executing the antenna switching command is greater than or equal to the second average block error rate threshold, the count of num_avg_bad is incremented by 1.
[0151] In the embodiments of the present disclosure, num_avg_better represents the quantity of which the index threshold meets the condition, and num_avg_bad represents the quantity of which the index threshold does not meet the condition.
[0152] In the embodiments of the present disclosure, num_avg_better can be expressed as the first type of quantity; num_avg_bad can be expressed as the second type of quantity.
[0153] Based on the ratio of the first type of quantity to the second type of quantity, and the number of times the terminal executes the target antenna switching command, adjust the target index threshold, including: if the number of times the terminal executes the target antenna switching command is greater than the number threshold and the ratio is greater than 1, then lower the target index threshold; or if the number of times the terminal executes the target antenna switching command is greater than the number threshold and the ratio is less than or equal to 1, then increase the target index threshold.
[0154] Figure 11 is a flowchart of a method for adjusting the target index threshold of a terminal in the unfolded state shown according to an exemplary embodiment, as Figure 11 shown, the method for adjusting the target index threshold of a terminal in the unfolded state includes the following steps.
[0155] In step S111, record the number num_ard of times the third antenna switching command is executed throughout the day.
[0156] In step S112, calculate the ratio result of num_avg_better to num_avg_bad.
[0157] In step S113, in response to the calculation result of result, adjust the target index threshold.
[0158] In an embodiment of the present disclosure, if the number of times num_ard of executing the third antenna switching command throughout the day is greater than 20 and result > 1, then subtract 1 from the target metric threshold; if the number of times num_ard of executing the third antenna switching command throughout the day is greater than 20 and result ≤ 1, then add 1 to the target metric threshold.
[0159] In an embodiment of the present disclosure, the adjustment range of the target metric threshold is ±5 dBm of the initial value.
[0160] In an embodiment of the present disclosure, the determined target metric threshold adjusted on the current day can be recorded. If the target threshold is determined to be adjusted continuously for N times, then adjust the target threshold at a set time to make it effective. N is a positive integer.
[0161] In an embodiment of the present disclosure, record the target metric threshold adjusted on the current day. If the target metric thresholds recorded for two consecutive days are the same value, make the recorded target metric threshold effective; if the target metric thresholds recorded for two consecutive days are not the same value, then clear the target metric threshold recorded on the first day.
[0162] In an embodiment of the present disclosure, write the target metric threshold to be made effective at 12 o'clock on the second night into the EFS file: ard_config, and restart the subsystem to load the new target metric threshold.
[0163] In an embodiment of the present disclosure, considering that the environments of different terminals are not consistent, adjusting the target metric threshold can achieve better reception performance and improve the user experience.
[0164] In an embodiment of the present disclosure, taking a terminal device with a folding screen as an example, the antenna control method and application in the unfolded state involved in the above embodiments of the present disclosure will be exemplified.
[0165] Figure 12 It is a flowchart of adjusting the target metric threshold for a terminal device with a folding screen in the unfolded state.
[0166] In an embodiment of the present disclosure, in response to the current antenna switching command of the terminal, determine the initial value of the target metric threshold. In response to determining the initial value of the target metric threshold, record the block error rate near the initial value of the target metric threshold, and perform a moving average calculation on the downlink block error rate.
[0167] In an example of an embodiment of the present disclosure, when the current antenna switching command of the terminal is the third antenna switching command, the initial value of the first target metric threshold on the current day can be -105 dBm; when the current antenna switching command of the terminal is the fourth antenna switching command, the initial value of the second target metric threshold on the current day can be -95 dBm.
[0168] In an example of Embodiment 1 of the present disclosure, the value range near the first target index threshold may be: -102 dBm ≥ RSRP ≥ -105 dBm; the value range near the second target index threshold may be: -92 dBm ≥ RSRP ≥ -95 dBm.
[0169] In an example of Embodiment 1 of the present disclosure, the window size of the moving average calculation is set to 5.
[0170] In an example of Embodiment 1 of the present disclosure, if the 3 times of the second average block error rate in the downlink before executing the antenna switching command are all less than the first average block error rate threshold, the count of num_avg_better_2 is incremented by 1; if the 3 times of the second average block error rate in the downlink before executing the antenna switching command are all greater than or equal to the second average block error rate threshold, the count of num_avg_bad_2 is incremented by 1.
[0171] In an example of Embodiment 1 of the present disclosure, if the 3 times of the second average block error rate in the downlink before executing the antenna switching command are all less than the first average block error rate threshold, the count of num_avg_better_2 is incremented by 1; if the 3 times of the second average block error rate in the downlink before executing the antenna switching command are all greater than or equal to the second average block error rate threshold, the count of num_avg_bad_2 is incremented by 1.
[0172] In an example of Embodiment 1 of the present disclosure, the first average block error rate threshold may be 10%, and the second average block error rate may be 20%.
[0173] In the present embodiment, record the number of times num_ard of executing the third antenna switching command throughout the day, calculate the ratio result of num_avg_better and num_avg_bad, and adjust the target index threshold in response to the calculation result of result.
[0174] In the present embodiment, num_avg_better includes num_avg_better_1 and num_avg_better_2; num_avg_bad includes num_avg_bad_1 and num_avg_bad_2; result includes result_1 and result_2.
[0175] In the present embodiment, calculate the ratio of num_avg_better_1 and num_avg_bad_1, denoted as result_1; calculate the ratio of num_avg_better_2 and num_avg_bad_2, denoted as result_2.
[0176] In the first example of the embodiments of the present disclosure, if the number of times num_ard of executing the third antenna switching command throughout the day is greater than 20 and result_1 > 1, then subtract 1 from the first target metric threshold; if the number of times num_ard of executing the third antenna switching command throughout the day is greater than 20 and result_1 ≤ 1, then add 1 to the first target metric threshold.
[0177] In the first example of the embodiments of the present disclosure, if the number of times num_ard of executing the third antenna switching command throughout the day is greater than 20 and result_2 > 1, then subtract 1 from the second target metric threshold; if the number of times num_ard of executing the third antenna switching command throughout the day is greater than 20 and result_2 ≤ 1, then add 1 to the second target metric threshold.
[0178] In the embodiments of the present disclosure, record the target metric threshold adjusted on the current day. If the target metric thresholds recorded for two consecutive days are the same value, write the target metric threshold that will take effect at 12 o'clock on the second night into the EFS file: ard_config, and restart the subsystem to load the new target metric threshold.
[0179] In the embodiments of the present disclosure, if the target metric thresholds recorded for two consecutive days are not the same value, then clear the target metric threshold recorded on the first day.
[0180] In the embodiments of the present disclosure, by adjusting the target threshold, the terminal can select a suitable antenna mode in different environments, ensuring the antenna reception performance and improving the user experience.
[0181] Based on the same concept, the embodiments of the present disclosure further provide an antenna switching control device.
[0182] It can be understood that, in order to implement the above functions, the antenna switching control device provided in the embodiments of the present disclosure includes the corresponding hardware structures and / or software modules for executing each function. Combining the units and algorithm steps of the various examples disclosed in the embodiments of the present disclosure, the embodiments of the present disclosure can be implemented in the form of hardware or a combination of hardware and computer software. Whether a certain function is executed in the way of hardware or computer software driving the hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the technical solution of the embodiments of the present disclosure.
[0183] Figure 13 is a block diagram of an antenna switching control device shown according to an exemplary embodiment. Refer to Figure 13 , the device 100 includes a determination unit 101 and a processing unit 102.
[0184] The determination unit 101 is configured to determine an antenna switching command based on the current state of the terminal's folding screen.
[0185] The processing unit 102 is configured to control the terminal to switch between the first antenna mode and the second antenna mode based on the antenna switching command.
[0186] In one embodiment, the determination unit 101 is configured to determine an antenna switching command based on the current state of the terminal's folding screen: in response to the folding screen state of the terminal being the folded state, determining the antenna switching command as the first antenna switching command, where the first antenna switching command is used to control the terminal to switch to the first antenna mode.
[0187] In one embodiment, the processing unit 102 is configured to control the terminal to switch between the first antenna mode and the second antenna mode based on the antenna switching command: in response to the current execution command of the terminal's ARD interface being the ARD function enabling command, disabling the ARD function and controlling the terminal to switch to the first antenna mode, where the ARD function enabling command is used to control the terminal to switch between the first antenna mode and the second antenna mode based on the terminal signal quality index; in response to the current execution command of the terminal's ARD interface being the ARD function disabling command, maintaining the ARD function disabling command and keeping the terminal in the first antenna mode, where, in the case of the ARD function disabling command, the terminal is in the first antenna mode.
[0188] In one embodiment, the determination unit 101 is configured to: determine that the terminal satisfies at least one of the following: the terminal satisfies the cellular communication state; the current running application of the terminal is a preset whitelist application.
[0189] In one embodiment, the determination unit 101 is configured to determine an antenna switching command based on the current state of the terminal's folding screen:
[0190] In response to the folding screen state of the terminal being the unfolded state, determining the current service type corresponding to the currently running application of the terminal; invoking the current signal index threshold matching the current service type, where different service types correspond to different signal quality index thresholds, and the signal quality index threshold is used to control the terminal to execute the third antenna switching command or the fourth antenna switching command; based on the current signal index threshold and the current signal index of the terminal, determining the antenna switching command as the third antenna switching command or the fourth antenna switching command; the third antenna switching command is used to control the terminal to switch from the second antenna mode to the first antenna mode, and the fourth antenna switching command is used to control the terminal to switch from the first antenna mode to the second antenna mode.
[0191] In one embodiment, the processing unit 102 is configured to control the terminal to switch between a first antenna mode and a second antenna mode based on an antenna switching command: in response to the antenna switching command being a third antenna switching command, if the current signal metric meets the first condition, determine the currently executed antenna switching command; if the current antenna switching command is the same as the most recently executed antenna switching command, maintain the use of the most recently executed antenna switching command; if the current antenna switching command is different from the most recently executed antenna switching command, execute the current antenna switching command.
[0192] In one embodiment, the processing unit 102 is configured to control the terminal to switch between a first antenna mode and a second antenna mode based on an antenna switching command: in response to the antenna switching command being a fourth antenna switching command, if the current antenna switching command is the same as the most recently executed antenna switching command, maintain the use of the most recently executed antenna switching command; if the current antenna switching command is different from the most recently executed antenna switching command, execute the current antenna switching command.
[0193] In one embodiment, the determining unit 101 is configured to determine that the service types include voice communication services and data services, and the signal metric thresholds include a signal-to-noise ratio metric threshold, a reference signal received power metric threshold, and a downlink scheduling resource metric threshold; wherein, the signal-to-noise ratio metric threshold / reference signal received power metric threshold corresponding to the voice communication services is the same as the signal-to-noise ratio metric threshold / reference signal received power metric threshold corresponding to the data services; the downlink scheduling resource metric threshold corresponding to the voice communication services is less than the downlink scheduling resource metric threshold corresponding to the data services.
[0194] In one embodiment, the determining unit 101 is configured to determine that the signal metric thresholds include a signal-to-noise ratio metric threshold and a reference signal received power metric threshold. The determining module is further configured to: monitor the block error rate within a preset metric threshold range of the target metric threshold, and determine the average block error rate of the block error rate within a specified window. Based on the average block error rate and the average block error rate threshold, determine the first type of quantity and the second type of quantity. The first type of value represents the quantity of the metric threshold meeting the conditions, and the second type of quantity represents the quantity of the metric threshold not meeting the conditions; based on the ratio of the first type of quantity and the second type of quantity, and the number of times the terminal executes the target antenna switching command, adjust the target metric threshold.
[0195] In one embodiment, the determining unit 101 is configured to determine a first type of quantity and a second type of quantity based on the average block error rate and the average block error rate threshold: in response to the average block error rate of the first quantity before the terminal determines to execute the antenna switching command being less than the first average block error rate threshold, accumulating the first type of quantity; in response to the average block error rate of the first quantity before the terminal determines to execute the antenna switching command being greater than or equal to the second average block error rate threshold, accumulating the second type of quantity; the second average block error rate being greater than the first average block error rate.
[0196] In one embodiment, the processing unit 102 is configured to adjust the target metric threshold based on the ratio of the first type of quantity to the second type of quantity and the number of times the terminal executes the target antenna switching command: if the number of times the terminal executes the target antenna switching command is greater than the number threshold and the ratio is greater than 1, then decreasing the target metric threshold; or if the number of times the terminal executes the target antenna switching command is greater than the number threshold and the ratio is less than or equal to 1, then increasing the target metric threshold.
[0197] In one embodiment, the processing unit 102 is configured to adjust the target threshold: in response to determining to adjust the target threshold continuously for N times, adjusting the target threshold within a set time, where N is a positive integer.
[0198] Regarding the device in the above embodiments, the specific manners in which each module performs operations have been described in detail in the embodiments related to the method, and will not be elaborated herein.
[0199] Figure 14 It is a block diagram of a device 200 for antenna switching control shown according to an exemplary embodiment. For example, the device 200 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.
[0200] Referring to Figure 14 , the device 200 may include one or more of the following components: a processing component 202, a memory 204, a power component 206, a multimedia component 208, an audio component 210, an input / output (I / O) interface 212, a sensor component 214, and a communication component 216.
[0201] The processing component 202 generally controls the overall operation of the device 200, such as operations associated with display, telephone calls, data communication, camera operations, and recording operations. The processing component 202 may include one or more processors 220 to execute instructions to complete all or part of the steps of the above method. In addition, the processing component 202 may include one or more modules to facilitate the interaction between the processing component 202 and other components. For example, the processing component 202 may include a multimedia module to facilitate the interaction between the multimedia component 208 and the processing component 202.
[0202] The memory 204 is configured to store various types of data to support the operation of the device 200. Examples of such data include instructions for any application or method operating on the device 200, contact data, phone book data, messages, pictures, videos, and the like. The memory 204 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, a magnetic disk, or an optical disk.
[0203] The power supply component 206 provides power to various components of the device 200. The power supply component 206 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the device 200.
[0204] The multimedia component 208 includes a screen that provides an output interface between the device 200 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen can be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensors can not only sense the boundaries of the touch or swipe actions, but also detect the duration and pressure associated with the touch or swipe operations. In some embodiments, the multimedia component 208 includes a front camera and / or a rear camera. When the device 200 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera can receive external multimedia data. Each of the front camera and the rear camera can be a fixed optical lens system or have a focal length and optical zoom capabilities.
[0205] The audio component 210 is configured to output and / or input audio signals. For example, the audio component 210 includes a microphone (MIC) that is configured to receive external audio signals when the device 200 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals can be further stored in the memory 204 or transmitted via the communication component 216. In some embodiments, the audio component 210 further includes a speaker for outputting audio signals.
[0206] The I / O interface 212 provides an interface between the processing component 202 and a peripheral interface module, which can be a keyboard, a click wheel, buttons, etc. These buttons can include, but are not limited to: a home button, a volume button, a power button, and a lock button.
[0207] The sensor assembly 214 includes one or more sensors for providing a status assessment of various aspects of the device 200. For example, the sensor assembly 214 can detect the on / off state of the device 200, the relative positioning of components, such as components for the display and keypad of the device 200. The sensor assembly 214 can also detect a change in the position of the device 200 or a component of the device 200, the presence or absence of user contact with the device 200, the orientation or acceleration / deceleration of the device 200, and the temperature change of the device 200. The sensor assembly 214 can include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 214 can also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 214 can also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
[0208] The communication component 216 is configured to facilitate communication between the device 200 and other devices in a wired or wireless manner. The device 200 can access a wireless network based on communication standards, such as WiFi, 2G, or 3G, or a combination thereof. In an exemplary embodiment, the communication component 216 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 216 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
[0209] In an exemplary embodiment, the device 200 can be implemented by one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components for performing the above method.
[0210] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 204 including instructions, and the above instructions can be executed by a processor 220 of the device 200 to complete the above method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, and an optical data storage device, etc.
[0211] It should be understood that in the present disclosure, "a plurality of" means two or more, and other quantifiers are similar thereto. "And / or" describes the association relationship of associated objects and indicates that three relationships may exist. For example, A and / or B may represent three situations: A exists alone, A and B exist simultaneously, and B exists alone. The character " / " generally represents an "or" relationship between the associated objects before and after. The singular forms of "a", "an", and "the" are also intended to include the plural forms unless the context clearly indicates otherwise.
[0212] It can be further understood that the terms "first", "second", etc. are used to describe various information, but such information should not be limited to these terms. These terms are only used to distinguish information of the same type from each other and do not represent a specific order or degree of importance. In fact, expressions such as "first" and "second" can be used interchangeably completely. For example, without departing from the scope of the present disclosure, the first target index threshold can also be referred to as the second target index threshold, and similarly, the second target index threshold can also be referred to as the first target index threshold.
[0213] It can be further understood that unless otherwise specified, "connection" includes direct connection without other components between the two, and also includes indirect connection with other elements between the two.
[0214] It can be further understood that although the operations are described in a specific order in the drawings in the embodiments of the present disclosure, it should not be understood that these operations are required to be performed in the specific order shown or in a serial order, or that all the operations shown are required to be performed to obtain the desired result. In a specific environment, multitasking and parallel processing may be beneficial.
[0215] Those skilled in the art will readily conceive of other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the present disclosure, which follow the general principles of the present disclosure and include well-known common general knowledge or conventional technical means in the technical field not disclosed in the present disclosure.
[0216] It should be understood that the present disclosure is not limited to the exact structures described above and shown in the drawings, and various modifications and changes can be made without departing from its scope. The scope of the present disclosure is only limited by the appended claims.
Claims
1. An antenna switching control method, characterized in that, Applied to a terminal, the terminal has a folding screen and supports switching between a first antenna mode and a second antenna mode, where the number of antennas in the first antenna mode is greater than the number of antennas in the second antenna mode. The method includes: Based on the current state of the folding screen of the terminal, determine an antenna switching command, where the current state of the folding screen includes a folded state or an unfolded state; Based on the antenna switching command, control the terminal to switch between the first antenna mode and the second antenna mode.
2. The method according to claim 1, wherein The determining the antenna switching command based on the current state of the folding screen of the terminal includes: In response to the folding screen state of the terminal being the folded state, determine that the antenna switching command is a first antenna switching command, and the first antenna switching command is used to control the terminal to switch to the first antenna mode.
3. The method according to claim 2, wherein The controlling the terminal to switch between the first antenna mode and the second antenna mode based on the antenna switching command includes: In response to the current execution command of the ARD interface received by the terminal antenna being an ARD function enabling command, turn off the ARD function and control the terminal to switch to the first antenna mode, where the ARD function enabling command is used to control the terminal to switch between the first antenna mode and the second antenna mode based on the signal quality index of the terminal; In response to the current execution command of the ARD interface received by the terminal antenna being an ARD function disabling command, maintain the ARD function disabling command and maintain the terminal in the first antenna mode. In the case of the ARD function disabling command, the terminal is in the first antenna mode.
4. The method according to claim 2 or 3, characterized in that, The method further includes: Determine that the terminal satisfies at least one of the following: The terminal satisfies the cellular communication state; The current running application of the terminal is a preset whitelist application.
5. The method according to claim 1, wherein The determining the antenna switching command based on the current state of the folding screen of the terminal includes: In response to the folding screen state of the terminal being the unfolded state, determine the current service type corresponding to the currently running application of the terminal; Call the current signal index threshold matching the current service type, where different service types correspond to different signal quality index thresholds, and the signal quality index threshold is used to control the terminal to execute the third antenna switching command or the fourth antenna switching command; Based on the current signal index threshold and the current signal index of the terminal, determine that the antenna switching command is the third antenna switching command or the fourth antenna switching command; The third antenna switching command is used to control the terminal to switch from the second antenna mode to the first antenna mode, and the fourth antenna switching command is used to control the terminal to switch from the first antenna mode to the second antenna mode.
6. The method according to claim 5, wherein The controlling the terminal to switch between the first antenna mode and the second antenna mode based on the antenna switching command includes: In response to the antenna switching command being the third antenna switching command, if the current signal index satisfies the first condition, determine the currently executed antenna switching command; If the current antenna switching command is the same as the most recently executed antenna switching command, maintain the use of the most recently executed antenna switching command; If the current antenna switching command is inconsistent with the most recently executed antenna switching command, then execute the current antenna switching command.
7. The method according to claim 5, wherein Controlling the terminal to switch between a first antenna mode and a second antenna mode based on the antenna switching command includes: In response to the antenna switching command being a fourth antenna switching command, if the current antenna switching command is consistent with the most recently executed antenna switching command, then continue to use the most recently executed antenna switching command; If the current antenna switching command is inconsistent with the most recently executed antenna switching command, then execute the current antenna switching command.
8. The method according to any one of claims 5 to 7, characterized in that The service types include voice communication services and data services, and the signal metric thresholds include a signal-to-noise ratio metric threshold, a reference signal received power metric threshold, and a downlink scheduling resource metric threshold; Among them, the signal-to-noise ratio metric threshold / reference signal received power metric threshold corresponding to the voice communication service is the same as the signal-to-noise ratio metric threshold / reference signal received power metric threshold corresponding to the data service; The downlink scheduling resource metric threshold corresponding to the voice communication service is less than the downlink scheduling resource metric threshold corresponding to the data service.
9. The method according to any one of claims 5 to 8, characterized in that The signal metric thresholds include a signal-to-noise ratio metric threshold and a reference signal received power metric threshold, and the method further includes: Monitoring the block error rate within a preset metric threshold range of the target metric threshold and determining the average block error rate of the block error rate within a specified window; Based on the average block error rate and the average block error rate threshold, determining a first type of quantity and a second type of quantity, where the first type of value represents the quantity of metric thresholds that meet the conditions, and the second type of quantity represents the quantity of metric thresholds that do not meet the conditions; Adjusting the target metric threshold based on the ratio of the first type of quantity to the second type of quantity and the number of times the terminal executes the target antenna switching command.
10. The method according to claim 9, characterized in that, Determining the first type of quantity and the second type of quantity based on the average block error rate and the average block error rate threshold includes: In response to the terminal determining that the average block error rate of the first quantity before executing the antenna switching command is less than the first average block error rate threshold, accumulating the first type of quantity; In response to the terminal determining that the average block error rate of the first quantity before executing the antenna switching command is greater than or equal to the second average block error rate threshold, accumulating the second type of quantity; The second average block error rate is greater than the first average block error rate.
11. The method according to claim 9, characterized in that Adjusting the target metric threshold based on the ratio of the first type of quantity to the second type of quantity and the number of times the terminal executes the target antenna switching command includes: If the number of times the terminal executes the target antenna switching command is greater than the number threshold and the ratio is greater than 1, then decrease the target metric threshold; or If the number of times the terminal executes the target antenna switching command is greater than the number threshold and the ratio is less than or equal to 1, then increase the target metric threshold.
12. The method according to claim 10 or 11, characterized in that Adjusting the target metric threshold includes: In response to determining to adjust the target threshold continuously for N times, adjusting the target threshold within a set time, where N is a positive integer.
13. An antenna switching control device, characterized in that, Applied to a terminal, the terminal has a folding screen and supports switching between a first antenna mode and a second antenna mode, where the number of antennas in the first antenna mode is greater than the number of antennas in the second antenna mode. The device includes: A determination unit for determining an antenna switching command based on the current state of the folding screen of the terminal; A processing unit for controlling the terminal to switch between the first antenna mode and the second antenna mode based on the antenna switching command.
14. The device according to claim 13, wherein the determination unit determines the antenna switching command based on the current state of the folding screen of the terminal in the following manner: In response to the folding screen state of the terminal being a folded state, determine the application currently running on the terminal; Based on the currently running application being a preset whitelist application, determine the antenna switching command as a first antenna switching command, and the first antenna switching command is used to control the terminal antenna to receive and allocate the current execution command of the ARD interface to turn off the ARD function; Based on the currently running application being a non-preset whitelist application, determine the antenna switching command as a second antenna switching command, and the second antenna switching command is used to control the terminal antenna to receive and allocate the current execution command of the ARD interface to turn on the ARD function.
15. The device according to claim 14, wherein the processing unit controls the terminal to switch between the first antenna mode and the second antenna mode based on the antenna switching command in the following manner: In response to the current execution command of the ARD interface allocated to the terminal antenna being a command to turn on the ARD function, turn off the ARD function, and the ARD function command is used to control the terminal to switch between the first antenna mode and the second antenna mode based on the terminal signal quality index; In response to the current execution command for the allocated ARD interface received by the terminal antenna being the ARD function off command, the ARD function off command is maintained, and the terminal is maintained in the first antenna mode, where In the case of turning off the ARD function command, the terminal is in the first antenna mode.
16. The device according to claim 14 or 15, wherein the determination unit is further configured to: Determine that the terminal satisfies at least one of the following: The terminal satisfies the cellular communication state; The application currently running on the terminal is a preset whitelist application.
17. The device according to claim 13, wherein the determination unit determines the antenna switching command based on the current state of the folding screen of the terminal in the following manner: In response to the folding screen state of the terminal being an unfolded state, determine the current service type corresponding to the application currently running on the terminal; Based on the execution result of the ARD function in the ARD interface allocated to the terminal antenna, determine the antenna switching command as a third antenna switching command or a fourth antenna switching command; In response to the current antenna switching command being the fourth antenna switching command, a current signal metric threshold matching the current service type is called, where, Different service types correspond to different signal quality index thresholds, and the signal quality index threshold is used to control the terminal to execute the fourth antenna switching command; The third antenna switching command is used to control the terminal to switch from the second antenna mode to the first antenna mode, and the fourth antenna switching command is used to control the terminal to switch from the first antenna mode to the second antenna mode.
18. The apparatus according to claim 17, wherein the processing unit controls the terminal to switch between the first antenna mode and the second antenna mode based on the antenna switching command in the following manner: In response to the antenna switching command being the third antenna switching command, if the current signal metrics meet the first condition, determine the currently executed antenna switching command; If the current antenna switching command is the same as the most recently executed antenna switching command, keep using the most recently executed antenna switching command; If the current antenna switching command is different from the most recently executed antenna switching command, execute the current antenna switching command.
19. The apparatus according to claim 18, wherein the processing unit controls the terminal to switch between the first antenna mode and the second antenna mode based on the antenna switching command in the following manner: In response to the antenna switching command being the fourth antenna switching command, if the current signal metrics meet the signal quality metric threshold corresponding to the current service type, determine the current antenna switching command; If the current antenna switching command is the same as the most recently executed antenna switching command, keep using the most recently executed antenna switching command; If the current antenna switching command is different from the most recently executed antenna switching command, execute the current antenna switching command.
20. The apparatus according to any one of claims 17 to 19, wherein the determining unit determines the service type including voice communication services and data services in the following manner, and the signal metric threshold includes a signal-to-noise ratio metric threshold, a reference signal received power metric threshold, and a downlink scheduling resource metric threshold; Among them, The signal-to-noise ratio metric threshold / reference signal received power metric threshold corresponding to voice communication services is the same as the signal-to-noise ratio metric threshold / reference signal received power metric threshold corresponding to data services; The downlink scheduling resource metric threshold corresponding to voice communication services is less than the downlink scheduling resource metric threshold corresponding to data services.
21. The apparatus according to any one of claims 17 to 20, wherein the determining module determines the signal metric threshold including a signal-to-noise ratio metric threshold and a reference signal received power metric threshold in the following manner, and the determining module further includes: Monitor the block error rate within a preset metric threshold range of the target metric threshold and determine the average block error rate of the block error rate within the specified window Based on the average block error rate and the average block error rate threshold, determine the first type of quantity and the second type of quantity, where the first type of value represents the quantity of metric thresholds that meet the conditions, and the second type of quantity represents the quantity of metric thresholds that do not meet the conditions; Based on the ratio of the first type of quantity to the second type of quantity, and the number of times the terminal executes the target antenna switching command, adjust the target metric threshold.
22. The apparatus according to claim 21, wherein the determining module determines the first type of quantity and the second type of quantity based on the average block error rate and the average block error rate threshold in the following manner: In response to the average block error rate of the first quantity before the terminal determines to execute the antenna switching command being less than the first average block error rate threshold, accumulate the first type of quantity; In response to the first quantity of average block error rates being greater than or equal to the second average block error rate threshold before the terminal determines to execute the antenna switching command, accumulate the second type of quantity; The second average block error rate is greater than the first average block error rate.
23. The apparatus according to claim 21, wherein the processing unit adjusts the target metric threshold based on the ratio of the first type of quantity to the second type of quantity, and the number of times the terminal executes the target antenna switching command in the following manner: If the number of times the terminal executes the target antenna switching command is greater than the number threshold and the ratio is greater than 1, then reduce the target metric threshold; or If the number of times the terminal executes the target antenna switching command is greater than the number threshold and the ratio is less than or equal to 1, then increase the target metric threshold.
24. The apparatus according to claim 22 or 23, wherein the processing unit adjusts the target threshold in the following manner, including: In response to determining to adjust the target threshold continuously for N times, adjust the target threshold within a set time.
25. An antenna switching control device, characterized in that, Comprising: A processor; A memory for storing processor-executable instructions; Wherein, the processor is configured to execute the antenna switching control method according to any one of claims 1-12.
26. A non-transitory computer-readable storage medium, characterized in that, When the instructions in the storage medium are executed by the processor, execute the antenna switching control method according to any one of claims 1-12.