Antenna switching method and device, computer equipment, storage medium and program product

By acquiring the delay data of the mobile terminal application to decide whether to switch the WIFI antenna, the problem of poor gyroscope detection accuracy in traditional methods is solved, and higher antenna switching accuracy and signal quality are achieved.

CN119135193APending Publication Date: 2024-12-13REALME MOBILE TELECOMM SHENZHEN CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310699409.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-06-13
Publication Date
2024-12-13

AI Technical Summary

Technical Problem

The WIFI antennas of mobile terminals such as mobile phones are easily held by the user's palm in a horizontal screen state, resulting in weaker signal. The traditional antenna switching accuracy is poor.

Method used

By obtaining the delay data of the target application currently running by the terminal, it decides whether to switch the WIFI antenna according to the delay situation. If switching is required, the antenna switching process will be performed to avoid misjudgment caused by different user usage habits.

Benefits of technology

It improves the accuracy of antenna switching, ensuring that different users can effectively switch to better performance antennas and improves signal quality.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119135193A_ABST
    Figure CN119135193A_ABST
Patent Text Reader

Abstract

The invention relates to an antenna switching method and device, computer equipment, a storage medium and a computer program product. The method comprises the steps that first delay data of a target application currently operated by a terminal is acquired, the first delay data is used for indicating the delay condition of the target application, whether a currently-used first WIFI antenna needs to be switched to other antennas or not is determined according to the first delay data, and if the first WIFI antenna needs to be switched to other antennas, the first WIFI antenna is switched to other antennas. And if so, executing an antenna switching process. By adopting the method, the accuracy of antenna switching can be effectively improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of communication technology, and in particular to an antenna switching method, apparatus, computer equipment, computer-readable storage medium, and computer program product. Background Art

[0002] At present, the WIFI antenna of mobile terminals such as mobile phones is generally set at the top or bottom of the phone. When the phone is in landscape mode, the WIFI antenna is very easy to be held by the palm of the user, which leads to poor antenna performance and weak WIFI signal.

[0003] In traditional technology, a gyroscope is usually used to detect whether the mobile phone is in landscape mode, so as to switch the state and select a better-performing antenna for the user.

[0004] However, due to different usage habits of users, the accuracy of switching antennas for users through this method is poor. Summary of the invention

[0005] Based on this, it is necessary to provide an antenna switching method, apparatus, computer device, computer-readable storage medium and computer program product with higher accuracy in order to solve the above technical problems.

[0006] In a first aspect, the present application provides an antenna method. The method comprises:

[0007] Obtain first delay data of a target application currently running on the terminal, where the first delay data is used to indicate a delay of the target application; determine whether it is necessary to switch the currently used first WIFI antenna to another antenna according to the first delay data; if it is necessary to switch the first WIFI antenna to another antenna, execute the antenna switching process.

[0008] In a second aspect, the present application also provides an antenna switching device. The device includes:

[0009] An acquisition module, used to acquire first delay data of a target application currently running on the terminal, where the first delay data is used to indicate a delay condition of the target application;

[0010] A determination module, configured to determine whether it is necessary to switch the currently used first WIFI antenna to another antenna according to the first delay data;

[0011] The first execution module is used to execute the antenna switching process if the first WIFI antenna needs to be switched to another antenna.

[0012] In a third aspect, the present application further provides a computer device, which includes a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, any of the steps described in the first aspect is implemented.

[0013] In a fourth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the computer program implements any of the steps described in the first aspect.

[0014] In a fifth aspect, the present application further provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, it implements any of the steps described in the first aspect.

[0015] The antenna switching method, device, computer equipment, storage medium and computer program product first obtain the first delay data of the target application currently running on the terminal, and the first delay data is used to indicate the delay of the target application, and then determine whether it is necessary to switch the first WIFI antenna currently in use to other antennas according to the first delay data. If it is necessary to switch the first WIFI antenna to other antennas, the antenna switching process is executed. The antenna switching method provided by the present application determines whether to switch the first WIFI antenna currently in use to other antennas based on the first delay data of the target application currently running on the terminal, so it can avoid misjudgment caused by different user habits. The antenna switching method provided by the present application can effectively improve the accuracy of antenna switching. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] Figure 1 is a schematic flow chart of an antenna switching method in an embodiment;

[0017] Figure 2 A flowchart of a method for determining whether it is necessary to switch a currently used first WIFI antenna to another antenna according to the first delay data according to an embodiment;

[0018] Figure 3 A schematic diagram of a flow chart of steps after executing an antenna switching process in one embodiment;

[0019] Figure 4 A flowchart of a method for determining whether to continue to use a switched antenna for communication according to the second delay data and the first delay data in another embodiment;

[0020] Figure 5 is a flow chart of an antenna switching method in another embodiment;

[0021] Figure 6 is a structural block diagram of an antenna switching device in one embodiment;

[0022] Figure 7 is a structural block diagram of an antenna switching device in one embodiment;

[0023] Figure 8 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION

[0024] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0025] At present, the WIFI antenna of mobile terminals such as mobile phones is generally set at the top or bottom of the mobile phone. When the mobile phone is in landscape mode, the WIFI antenna is very easy to be held by the palm of the user, which leads to poor antenna performance and weak WIFI signal. In traditional technology, a gyroscope is usually used to detect whether the mobile phone is in landscape mode, so as to switch the state and antenna with better performance for the user. However, due to different usage habits of users, the accuracy of switching antennas for users through this method is poor. In view of this, the present application provides an antenna switching method that can effectively improve the accuracy of antenna switching.

[0026] The antenna switching method provided in the embodiment of the present application can be applied to a terminal, which can be, but is not limited to, various personal computers, laptops, smart phones, tablet computers, IoT devices, and portable wearable devices. IoT devices can be smart speakers, smart TVs, smart air conditioners, smart car-mounted devices, etc. Portable wearable devices can be smart watches, smart bracelets, head-mounted devices, etc.

[0027] In one embodiment, Figure 1 As shown, an antenna switching method is provided, the method comprising the following steps:

[0028] Step 101: Acquire first delay data of a target application currently running on a terminal, where the first delay data is used to indicate a delay condition of the target application.

[0029] Optionally, the terminal may be equipped with an electronic device having an antenna.

[0030] In an optional embodiment of the present application, the first delay data includes at least one of the screen delay data of the application screen and the network delay data of the network response. In other words, in one possible implementation, the delay of the target application can be determined by the screen delay data of the application screen of the target application. In another possible implementation, the delay of the target application can also be determined by the network delay data of the network response of the target application. In another possible implementation, the delay of the target application can also be determined by the screen delay data of the application screen of the target application and the network delay data of the network response of the target application.

[0031] In an optional embodiment of the present application, the target application is a gaming application. In this case, the first delay data of the target application currently running on the terminal can be obtained through a protocol channel with a gaming partner, and the first delay data of the target application currently running on the terminal can also be obtained through algorithm processing.

[0032] Step 102: Determine whether it is necessary to switch the currently used first WIFI antenna to another antenna according to the first delay data.

[0033] In a possible implementation manner, if it is determined according to the first delay data that the delay situation of the target application is a relatively serious situation, the first WIFI antenna currently in use is switched to another antenna.

[0034] In another possible implementation, if it is determined according to the first delay data that the delay of the target application is relatively mild, the first WIFI antenna currently in use is not switched to another antenna, and the first WIFI antenna continues to be used.

[0035] Step 103: If the first WIFI antenna needs to be switched to another antenna, the antenna switching process is executed.

[0036] Optionally, the other antenna may be another WIFI antenna or a cellular antenna.

[0037] In one possible implementation, if it is determined based on the first delay data that the delay of the target application is a relatively serious situation, it is determined that the first WIFI antenna needs to be switched to another antenna, and a process of switching the currently used first WIFI antenna to another antenna is executed.

[0038] The above antenna switching method first obtains the first delay data of the target application currently running on the terminal, and the first delay data is used to indicate the delay of the target application, and then determines whether it is necessary to switch the first WIFI antenna currently in use to other antennas according to the first delay data. If it is necessary to switch the first WIFI antenna to other antennas, the antenna switching process is executed. The antenna switching method provided by the present application determines whether to switch the first WIFI antenna currently in use to other antennas based on the first delay data of the target application currently running on the terminal, so it can avoid misjudgment caused by different user habits. The antenna switching method provided by the present application can effectively improve the accuracy of antenna switching.

[0039] In one embodiment, Figure 2 As shown, the process of determining whether it is necessary to switch the currently used first WIFI antenna to another antenna according to the first delay data includes the following steps:

[0040] Step 201: Determine the delay degree of the target application according to the first delay data.

[0041] Optionally, the delay degree of the target application includes slight delay, medium delay and severe delay.

[0042] In a possible implementation, the delay time of the target application can be determined by the first delay data. If the delay time is less than or equal to 30 ms, the delay degree of the target application can be determined as a slight delay according to the first delay data.

[0043] In another possible implementation, the delay time of the target application can be determined by the first delay data. If the delay time is greater than 30 ms but less than 60 ms, the delay degree of the target application can be determined as medium delay based on the first delay data.

[0044] In another possible implementation, the delay time of the target application may be determined by the first delay data. If the delay time is greater than or equal to 60 ms, the delay degree of the target application may be determined as a severe delay based on the first delay data.

[0045] Step 202: Determine whether it is necessary to switch the first WIFI antenna to another antenna according to the delay degree.

[0046] In a possible implementation, if it is determined according to the first delay data that the severity of the target application is a slight delay, the first WIFI antenna is not switched to another antenna.

[0047] In another possible implementation, if it is determined according to the first delay data that the severity of the target application is medium delay, the first WIFI antenna is switched to another antenna.

[0048] In another possible implementation, if it is determined according to the first delay data that the severity of the target application is severe delay, the first WIFI antenna is switched to another antenna.

[0049] The above method of determining the delay degree of the target application according to the first delay data, and determining whether to switch the first WIFI antenna to other antennas based on the delay degree of the target application can effectively improve the accuracy of antenna switching. Since whether to switch the antenna is determined based on the delay degree of the target application rather than based on the current horizontal or vertical screen state of the terminal, it can effectively avoid the problem of misjudgment of antenna switching caused by different user habits.

[0050] In one embodiment, after determining whether the first WIFI antenna needs to be switched to another antenna according to the delay degree, the method further includes: if it is determined according to the delay degree that the first WIFI antenna needs to be switched to another antenna, determining a target antenna after switching according to the delay degree.

[0051] In an optional embodiment of the present application, the target antenna is: a second WIFI antenna or a cellular antenna.

[0052] In a possible implementation manner, if it is determined according to the first delay data that the delay degree is a medium delay, the target antenna is determined to be the second WIFI antenna.

[0053] In another possible implementation, if the delay degree is determined to be a severe delay according to the first delay data, the target antenna is determined to be a cellular antenna.

[0054] In one embodiment, if the first WIFI antenna needs to be switched to another antenna, an antenna switching process is executed, including: if it is determined according to the delay degree that the first WIFI antenna needs to be switched to another antenna, an antenna switching process of switching the first WIFI antenna to the target antenna is executed.

[0055] In one possible implementation, if the delay degree is determined to be a medium delay according to the first delay data, the target antenna is determined to be the second WIFI antenna, and a process of switching the first WIFI antenna to the second WIFI antenna is executed so that the terminal can communicate based on the second WIFI antenna.

[0056] In another possible implementation, if the delay degree is determined to be a severe delay based on the first delay data, the target antenna is determined to be a cellular antenna and a process of switching the first WIFI antenna to the cellular antenna is executed so that the terminal can communicate based on the cellular antenna.

[0057] The above method of determining the target antenna after switching according to the delay degree of the target application can select a more suitable antenna for the user's terminal according to the delay degree for the user to use, thereby effectively improving the accuracy of antenna switching.

[0058] In one embodiment, Figure 3 As shown, after executing the antenna switching process, the method further includes the following steps:

[0059] Step 301: After a preset time interval, obtain second delay data of the target application, where the second delay data is used to indicate the delay status of the target application.

[0060] Optionally, the preset time length can be set in advance by a technician, and the preset time length can be 60 seconds, 90 seconds, or 100 seconds.

[0061] In one possible implementation, the first delay data of the target application currently running on the terminal can be obtained through a protocol channel with a game partner, and the first delay data of the target application currently running on the terminal can also be obtained through algorithm processing.

[0062] Step 302: Determine whether to continue using the switched antenna for communication according to the second delay data and the first delay data.

[0063] In a possible implementation, if it is determined according to the second delay data and the first delay data that the secondary antenna switching is a valid switching, that is, the delay situation of the target application is improved, it is determined to continue to use the switched antenna for communication.

[0064] In another possible implementation, if it is determined based on the second delay data and the first delay data that the secondary antenna switching is invalid, that is, the delay of the target application is not improved, it is determined not to continue to use the switched antenna for communication.

[0065] The above method of obtaining the second delay data of the target application after a preset time interval, and determining whether to continue using the switched antenna for communication based on the second delay data and the first delay data, can determine whether the antenna switching action is a valid switching action, avoid the problem that the delay of the target application is not resolved after executing the antenna switching action, and can effectively improve the accuracy of antenna switching.

[0066] In one embodiment, Figure 4 As shown, the step of determining whether to continue to use the switched antenna for communication according to the second delay data and the first delay data includes the following steps:

[0067] Step 401: Determine whether the delay condition of the target application is alleviated according to the second delay data and the first delay data.

[0068] In one possible implementation, if the delay time of the target application determined according to the second delay data is 20 seconds, and assuming that the delay time of the target application determined according to the first delay data is 50 seconds, that is, the delay time of the target application determined according to the second delay data is less than the delay time of the target application determined according to the first delay data, it is determined that the delay condition of the target application has been alleviated.

[0069] In another possible implementation, if the delay time of the target application determined according to the second delay data is 50 seconds, and assuming that the delay time of the target application determined according to the first delay data is 50 seconds, that is, the delay time of the target application determined according to the second delay data is equal to the delay time of the target application determined according to the first delay data, then it is determined that the delay condition of the target application has not been alleviated.

[0070] In another possible implementation, if the delay time of the target application determined according to the second delay data is 50 seconds, and assuming that the delay time of the target application determined according to the first delay data is 40 seconds, that is, the delay time of the target application determined according to the second delay data is greater than the delay time of the target application determined according to the first delay data, then it is determined that the delay condition of the target application has not been alleviated.

[0071] Step 402: If the delay condition of the target application is alleviated, continue to use the switched antenna for communication.

[0072] In a possible implementation, if the target antenna after switching is the second WIFI antenna, and it is determined based on the first delay data and the second delay data that the delay condition of the target application has been alleviated, the second WIFI antenna continues to be used for communication.

[0073] In another possible implementation, if the target antenna after switching is a cellular antenna, and it is determined based on the first delay data and the second delay data that the delay condition of the target application has been alleviated, the cellular antenna continues to be used for communication.

[0074] The above method determines whether the delay condition of the target application is alleviated based on the second delay data and the first delay data. If the delay condition of the target application is alleviated, continuing to use the switched antenna for communication can effectively improve the accuracy of antenna switching and avoid the problem that the first antenna switching is invalid switching and does not alleviate the delay state of the target application.

[0075] In one embodiment, determining whether the delay condition of the target application is alleviated based on the second delay data and the first delay data also includes: if the delay condition of the target application is not alleviated, returning to the step of obtaining the first delay data of the target application currently running on the terminal.

[0076] In one possible implementation, if the switched antenna is the second WIFI antenna, and it is determined based on the first delay data and the second delay data that the delay condition of the target application has not been alleviated, the delay data of the target application currently running on the terminal is obtained, and the delay data is used as the first delay data, and it is determined based on the first delay data whether it is necessary to switch the currently used second WIFI antenna to other antennas. If it is necessary to switch the second WIFI antenna to other antennas, the antenna switching process is executed.

[0077] In another possible implementation, if the antenna after switching is the cellular antenna, and it is determined based on the first delay data and the second delay data that the delay condition of the target application has not been alleviated, the delay data of the target application currently running on the terminal is obtained, and the delay data is used as the first delay data, and it is determined based on the first delay data whether it is necessary to switch the currently used cellular antenna to other antennas. If it is necessary to switch the cellular antenna to other antennas, the antenna switching process is executed.

[0078] In one embodiment, Figure 5 As shown, another antenna switching method is provided, the method comprising the following steps:

[0079] Step 501: Acquire first delay data of a target application currently running on a terminal, where the first delay data is used to indicate a delay condition of the target application.

[0080] Step 502: Determine the delay degree of the target application according to the first delay data.

[0081] Step 503: If it is determined according to the delay degree that the first WIFI antenna needs to be switched to another antenna, an antenna switching process of switching the first WIFI antenna to the target antenna is executed.

[0082] Step 504: After a preset time interval, obtain second delay data of the target application, where the second delay data is used to indicate the delay status of the target application.

[0083] Step 505: Determine whether the delay condition of the target application is alleviated according to the second delay data and the first delay data.

[0084] Step 506: If the delay condition of the target application is alleviated, continue to use the switched antenna for communication.

[0085] Step 507: If the delay condition of the target application is not alleviated, return to the step of obtaining the first delay data of the target application currently running on the terminal.

[0086] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0087] Based on the same inventive concept, the embodiment of the present application also provides an antenna switching device for implementing the antenna switching method involved above. The implementation solution provided by the device to solve the problem is similar to the implementation solution recorded in the above method, so the specific limitations in one or more antenna switching device embodiments provided below can refer to the limitations of the antenna switching method above, and will not be repeated here.

[0088] In one embodiment, Figure 6 As shown, an antenna switching device 600 is provided, comprising: an acquisition module 601, a determination module 602 and a first execution module 603, wherein:

[0089] The acquisition module 601 is used to obtain the first delay data of the target application currently running in the terminal, and the first delay data is used to indicate the delay of the target application; the determination module 602 is used to determine whether it is necessary to switch the currently used first WIFI antenna to other antennas according to the first delay data; the first execution module 603 is used to execute the antenna switching process if it is necessary to switch the first WIFI antenna to other antennas.

[0090] In one embodiment, the determination module 601 is specifically used to: determine the delay degree of the target application according to the first delay data; and determine whether it is necessary to switch the first WIFI antenna to other antennas according to the delay degree.

[0091] In one embodiment, the determination module 601 is specifically configured to: if it is determined according to the delay degree that the first WIFI antenna needs to be switched to another antenna, determine a target antenna after switching according to the delay degree.

[0092] In one embodiment, the target antenna is: a second WIFI antenna or a cellular antenna.

[0093] In one embodiment, the determination module 601 is specifically configured to: if it is determined according to the delay degree that the first WIFI antenna needs to be switched to another antenna, execute an antenna switching process of switching the first WIFI antenna to the target antenna.

[0094] In one embodiment, Figure 7 As shown, another antenna switching device 700 is provided. In addition to the modules included in the antenna switching device 600, the antenna switching device 700 further includes a second execution module 604.

[0095] In one embodiment, the second execution module 604 is used to: obtain second delay data of the target application after a preset time interval, and the second delay data is used to indicate the delay status of the target application; determine whether to continue using the switched antenna for communication based on the second delay data and the first delay data.

[0096] In one embodiment, the second execution module 604 is specifically used to: determine whether the delay condition of the target application is alleviated according to the second delay data and the first delay data; if the delay condition of the target application is alleviated, continue to use the switched antenna for communication.

[0097] In one embodiment, the second execution module 604 is specifically configured to: if the delay condition of the target application is not alleviated, return to the step of obtaining first delay data of the target application currently running on the terminal.

[0098] In one embodiment, the first delay data includes at least one of screen delay data of an application screen and network delay data of a network response.

[0099] In one embodiment, the target application is a game application.

[0100] Each module in the above antenna switching device can be implemented in whole or in part by software, hardware, or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute operations corresponding to each module.

[0101] In one embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as follows: Figure 8 As shown. The computer device includes a processor, a memory, an input / output interface, a communication interface, a display unit and an input device. Among them, the processor, the memory and the input / output interface are connected through a system bus, and the communication interface, the display unit and the input device are connected to the system bus through the input / output interface. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The input / output interface of the computer device is used to exchange information between the processor and the external device. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be implemented through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. When the computer program is executed by the processor, an antenna switching method is implemented. The display unit of the computer device is used to form a visually visible picture, which can be a display screen, a projection device or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covering the display screen, or a button, trackball or touchpad set on the computer device shell, or an external keyboard, touchpad or mouse.

[0102] Those skilled in the art will understand that Figure 8 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0103] In one embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the following steps when executing the computer program: obtaining first delay data of a target application currently running on a terminal, the first delay data being used to indicate a delay condition of the target application; determining whether it is necessary to switch a currently used first WIFI antenna to another antenna according to the first delay data; and executing an antenna switching process if it is necessary to switch the first WIFI antenna to another antenna.

[0104] In one embodiment, the processor determines whether it is necessary to switch the currently used first WIFI antenna to other antennas according to the first delay data, and further implements the following steps when executing the computer program: determining the delay degree of the target application according to the first delay data; and determining whether it is necessary to switch the first WIFI antenna to other antennas according to the delay degree.

[0105] In one embodiment, when the processor executes the computer program, the following steps are further implemented: if it is determined according to the delay degree that the first WIFI antenna needs to be switched to another antenna, a target antenna after switching is determined according to the delay degree.

[0106] In one embodiment, the target antenna is: a second WIFI antenna or a cellular antenna.

[0107] In one embodiment, if it is necessary to switch the first WIFI antenna to another antenna, an antenna switching process is executed, and the processor further implements the following steps when executing the computer program: if it is determined according to the delay degree that the first WIFI antenna needs to be switched to another antenna, the antenna switching process of switching the first WIFI antenna to the target antenna is executed.

[0108] In one embodiment, after executing the antenna switching process, the processor also implements the following steps when executing the computer program: after a preset time interval, obtaining second delay data of the target application, the second delay data is used to indicate the delay status of the target application; determining whether to continue using the switched antenna for communication based on the second delay data and the first delay data.

[0109] In one embodiment, the processor determines whether to continue using the switched antenna for communication based on the second delay data and the first delay data, and also implements the following steps when executing the computer program: determines whether the delay condition of the target application is alleviated based on the second delay data and the first delay data; if the delay condition of the target application is alleviated, continues to use the switched antenna for communication.

[0110] In one embodiment, when executing the computer program, the processor further implements the following steps: if the delay condition of the target application is not alleviated, returning to the step of obtaining first delay data of the target application currently running on the terminal.

[0111] In one embodiment, the first delay data includes at least one of screen delay data of an application screen and network delay data of a network response.

[0112] In one embodiment, the target application is a game application.

[0113] In one embodiment, a computer readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:

[0114] Obtain first delay data of a target application currently running on the terminal, where the first delay data is used to indicate a delay of the target application; determine whether it is necessary to switch the currently used first WIFI antenna to another antenna according to the first delay data; if it is necessary to switch the first WIFI antenna to another antenna, execute the antenna switching process.

[0115] In one embodiment, the first delay data is used to determine whether it is necessary to switch the currently used first WIFI antenna to other antennas. When the computer program is executed by the processor, the following steps are implemented: determining the delay degree of the target application according to the first delay data; and determining whether it is necessary to switch the first WIFI antenna to other antennas according to the delay degree.

[0116] In one embodiment, when the computer program is executed by the processor, the following steps are implemented: if it is determined according to the delay degree that the first WIFI antenna needs to be switched to another antenna, then the target antenna after switching is determined according to the delay degree.

[0117] In one embodiment, the target antenna is: a second WIFI antenna or a cellular antenna.

[0118] In one embodiment, if it is necessary to switch the first WIFI antenna to another antenna, an antenna switching process is executed, and the following steps are implemented when the computer program is executed by the processor: if it is determined according to the delay degree that the first WIFI antenna needs to be switched to another antenna, the antenna switching process of switching the first WIFI antenna to the target antenna is executed.

[0119] In one embodiment, after executing the antenna switching process, the computer program implements the following steps when executed by the processor: after a preset time interval, obtaining second delay data of the target application, the second delay data is used to indicate the delay status of the target application; determining whether to continue using the switched antenna for communication based on the second delay data and the first delay data.

[0120] In one embodiment, the determination as to whether to continue using the switched antenna for communication is made based on the second delay data and the first delay data, and the following steps are implemented when the computer program is executed by the processor: determining whether the delay condition of the target application is alleviated based on the second delay data and the first delay data; if the delay condition of the target application is alleviated, continuing to use the switched antenna for communication.

[0121] In one embodiment, when the computer program is executed by a processor, the following steps are implemented: if the delay condition of the target application is not alleviated, return to the step of obtaining first delay data of the target application currently running on the terminal.

[0122] In one embodiment, the first delay data includes at least one of screen delay data of an application screen and network delay data of a network response.

[0123] In one embodiment, the target application is a game application.

[0124] In one embodiment, a computer program product is provided, comprising a computer program, which, when executed by a processor, implements the following steps:

[0125] Obtain first delay data of a target application currently running on the terminal, where the first delay data is used to indicate a delay of the target application; determine whether it is necessary to switch the currently used first WIFI antenna to another antenna according to the first delay data; if it is necessary to switch the first WIFI antenna to another antenna, execute the antenna switching process.

[0126] In one embodiment, the first delay data is used to determine whether it is necessary to switch the currently used first WIFI antenna to other antennas. When the computer program is executed by the processor, the following steps are implemented: determining the delay degree of the target application according to the first delay data; and determining whether it is necessary to switch the first WIFI antenna to other antennas according to the delay degree.

[0127] In one embodiment, when the computer program is executed by the processor, the following steps are implemented: if it is determined according to the delay degree that the first WIFI antenna needs to be switched to another antenna, then the target antenna after switching is determined according to the delay degree.

[0128] In one embodiment, the target antenna is: a second WIFI antenna or a cellular antenna.

[0129] In one embodiment, if it is necessary to switch the first WIFI antenna to another antenna, an antenna switching process is executed, and the following steps are implemented when the computer program is executed by the processor: if it is determined according to the delay degree that the first WIFI antenna needs to be switched to another antenna, the antenna switching process of switching the first WIFI antenna to the target antenna is executed.

[0130] In one embodiment, after executing the antenna switching process, the computer program implements the following steps when executed by the processor: after a preset time interval, obtaining second delay data of the target application, the second delay data is used to indicate the delay status of the target application; determining whether to continue using the switched antenna for communication based on the second delay data and the first delay data.

[0131] In one embodiment, the determination as to whether to continue using the switched antenna for communication is made based on the second delay data and the first delay data, and the following steps are implemented when the computer program is executed by the processor: determining whether the delay condition of the target application is alleviated based on the second delay data and the first delay data; if the delay condition of the target application is alleviated, continuing to use the switched antenna for communication.

[0132] In one embodiment, when the computer program is executed by a processor, the following steps are implemented: if the delay condition of the target application is not alleviated, return to the step of obtaining first delay data of the target application currently running on the terminal.

[0133] In one embodiment, the first delay data includes at least one of screen delay data of an application screen and network delay data of a network response.

[0134] In one embodiment, the target application is a game application.

[0135] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.

[0136] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0137] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.

Claims

1. An antenna switching method, characterized in that: The method comprises: Acquire first delay data of a target application currently running on the terminal, where the first delay data is used to indicate a delay condition of the target application; Determine whether it is necessary to switch the currently used first WIFI antenna to another antenna according to the first delay data; If the first WIFI antenna needs to be switched to another antenna, the antenna switching process is executed.

2. The method according to claim 1, characterized in that The determining, according to the first delay data, whether it is necessary to switch the currently used first WIFI antenna to another antenna includes: determining a delay degree of the target application according to the first delay data; Determine whether it is necessary to switch the first WIFI antenna to another antenna according to the delay degree.

3. The method according to claim 2, characterized in that The method further comprises: If it is determined according to the delay degree that the first WIFI antenna needs to be switched to another antenna, a target antenna after switching is determined according to the delay degree.

4. The method according to claim 3, characterized in that The target antenna is: a second WIFI antenna or a cellular antenna.

5. The method according to claim 3, characterized in that: If the first WIFI antenna needs to be switched to another antenna, the antenna switching process is executed, including: If it is determined according to the delay degree that the first WIFI antenna needs to be switched to another antenna, an antenna switching process of switching the first WIFI antenna to the target antenna is executed.

6. The method according to any one of claims 1 to 5, characterized in that: After executing the antenna switching process, the method further includes: After a preset time interval, obtaining second delay data of the target application, where the second delay data is used to indicate a delay condition of the target application; Determine whether to continue using the switched antenna for communication according to the second delay data and the first delay data.

7. The method according to claim 6, characterized in that The determining whether to continue to use the switched antenna for communication according to the second delay data and the first delay data includes: Determining whether the delay condition of the target application is alleviated according to the second delay data and the first delay data; If the delay condition of the target application is alleviated, the switched antenna is continued to be used for communication.

8. The method according to claim 7, characterized in that The method further comprises: If the delay condition of the target application is not alleviated, the process returns to the step of acquiring first delay data of the target application currently running on the terminal.

9. The method according to any one of claims 1 to 5, characterized in that: The first delay data includes at least one of screen delay data of an application screen and network delay data of a network response.

10. The method according to any one of claims 1 to 5, characterized in that: The target application is a game application.

11. An antenna switching device, characterized in that: The device comprises: An acquisition module, used for acquiring first delay data of a target application currently running on the terminal, wherein the first delay data is used for indicating a delay condition of the target application; A determination module, configured to determine whether it is necessary to switch the currently used first WIFI antenna to another antenna according to the first delay data; The first execution module is used to execute the antenna switching process if the first WIFI antenna needs to be switched to another antenna.

12. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 10 are implemented.

13. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 10 are implemented.

14. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 10 are implemented.