[go: up one dir, main page]

CN119135193A - Antenna switching method, device, computer equipment, storage medium and program product - Google Patents

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

Info

Publication number
CN119135193A
CN119135193A CN202310699409.6A CN202310699409A CN119135193A CN 119135193 A CN119135193 A CN 119135193A CN 202310699409 A CN202310699409 A CN 202310699409A CN 119135193 A CN119135193 A CN 119135193A
Authority
CN
China
Prior art keywords
antenna
delay
delay data
target application
switched
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310699409.6A
Other languages
Chinese (zh)
Inventor
宋梦丽
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Realme Mobile Telecommunications Shenzhen Co Ltd
Original Assignee
Realme Mobile Telecommunications Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Realme Mobile Telecommunications Shenzhen Co Ltd filed Critical Realme Mobile Telecommunications Shenzhen Co Ltd
Priority to CN202310699409.6A priority Critical patent/CN119135193A/en
Publication of CN119135193A publication Critical patent/CN119135193A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B1/00Details of transmission systems, not covered by a single one of groups H04B3/00 - H04B13/00; Details of transmission systems not characterised by the medium used for transmission
    • H04B1/005Details of transmission systems, not covered by a single one of groups H04B3/00 - H04B13/00; Details of transmission systems not characterised by the medium used for transmission adapting radio receivers, transmitters andtransceivers for operation on two or more bands, i.e. frequency ranges
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B1/00Details of transmission systems, not covered by a single one of groups H04B3/00 - H04B13/00; Details of transmission systems not characterised by the medium used for transmission
    • H04B1/38Transceivers, i.e. devices in which transmitter and receiver form a structural unit and in which at least one part is used for functions of transmitting and receiving
    • H04B1/40Circuits
    • H04B1/401Circuits for selecting or indicating operating mode
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B7/00Radio transmission systems, i.e. using radiation field
    • H04B7/02Diversity systems; Multi-antenna system, i.e. transmission or reception using multiple antennas
    • H04B7/04Diversity systems; Multi-antenna system, i.e. transmission or reception using multiple antennas using two or more spaced independent antennas
    • H04B7/0404Diversity systems; Multi-antenna system, i.e. transmission or reception using multiple antennas using two or more spaced independent antennas the mobile station comprising multiple antennas, e.g. to provide uplink diversity
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72454User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Environmental & Geological Engineering (AREA)
  • Human Computer Interaction (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

本申请涉及一种天线切换方法、装置、计算机设备、存储介质和计算机程序产品。该方法包括:获取终端当前运行的目标应用的第一延迟数据,该第一延迟数据用于指示该目标应用的延迟情况,根据该第一延迟数据确定是否需要将当前使用的第一WIFI天线切换为其他天线,若需要将该第一WIFI天线切换为其他天线,则执行天线切换流程。采用本方法可以有效的提高天线切换的准确性。

The present application relates to an antenna switching method, device, computer equipment, storage medium and computer program product. The method comprises: obtaining first delay data of a target application currently running on a terminal, the first delay data being used to indicate the delay of the target application, determining whether it is necessary to switch the first WIFI antenna currently in use to another antenna according to the first delay data, and if it is necessary to switch the first WIFI antenna to another antenna, executing an antenna switching process. The method can effectively improve the accuracy of antenna switching.

Description

Antenna switching method, apparatus, computer device, storage medium, and program product
Technical Field
The present application relates to the field of communications technologies, and in particular, to an antenna switching method, an apparatus, a computer device, a computer readable storage medium, and a computer program product.
Background
Currently, a WIFI antenna of a mobile terminal such as a mobile phone is generally arranged at the top end or the bottom end of the mobile phone, and in a horizontal screen state of the mobile phone, the WIFI antenna is very easy to hold by the palm of a user, so that the performance of the antenna is poor, and a WIFI signal is weakened.
In the conventional technology, whether the mobile phone is in a horizontal screen state or not is detected through a gyroscope, so that the state and the antenna with better performance are switched for a user.
However, this method results in poor accuracy in switching antennas for users due to different usage habits of users.
Disclosure of Invention
In view of the foregoing, it is desirable to provide an antenna switching method, apparatus, computer device, computer-readable storage medium, and computer program product with improved accuracy.
In a first aspect, the present application provides an antenna method. The method comprises the following steps:
The method comprises the steps of obtaining first delay data of a target application currently operated by a terminal, determining whether a currently used first WIFI antenna needs to be switched to other antennas according to the first delay data, and executing an antenna switching flow if the first WIFI antenna needs to be switched to the other antennas.
In a second aspect, the application further provides an antenna switching device. The device comprises:
the terminal comprises an acquisition module, a delay module and a delay module, wherein the acquisition module is used for acquiring first delay data of a target application currently operated by the terminal, and the first delay data is used for indicating the delay condition of the target application;
the determining module is used for determining whether the currently used first WIFI antenna needs to be switched to other antennas according to the first delay data;
And the first execution module is used for executing an antenna switching flow if the first WIFI antenna needs to be switched to other antennas.
In a third aspect, the present application also provides a computer device. The computer device comprises a memory storing a computer program and a processor implementing the steps of any of the above first aspects when the computer program is executed.
In a fourth aspect, the present application also provides a computer-readable storage medium. A computer readable storage medium having stored thereon a computer program which when executed by a processor performs the steps of any of the first aspects described above.
In a fifth aspect, the present application also provides a computer program product. The computer program product comprising a computer program which, when executed by a processor, implements the steps of any of the first aspects described above.
The antenna switching method, the device, the computer equipment, the storage medium and the computer program product firstly acquire first delay data of a target application currently operated by a terminal, the first delay data is used for indicating the delay condition of the target application, then determine whether a currently used first WIFI antenna needs to be switched to other antennas according to the first delay data, and execute an antenna switching flow if the currently used first WIFI antenna needs to be switched to other antennas. The antenna switching method provided by the application is used for determining whether to switch the currently used first WIFI antenna into other antennas based on the first delay data of the target application currently operated by the terminal, so that misjudgment caused by different use habits of users can be avoided.
Drawings
FIG. 1 is a flow chart of an antenna switching method according to an embodiment;
Fig. 2 is a flowchart of a method for determining whether a currently used first WIFI antenna needs to be switched to another antenna according to the first delay data according to an embodiment;
fig. 3 is a flowchart illustrating steps after performing an antenna switching procedure in one embodiment;
FIG. 4 is a flowchart of another embodiment of a method for determining whether to continue communication using a switched antenna according to the second delay data and the first delay data;
Fig. 5 is a flowchart of an antenna switching method according to another embodiment;
FIG. 6 is a block diagram of an antenna switching device according to one embodiment;
FIG. 7 is a block diagram of an antenna switching device according to one embodiment;
fig. 8 is an internal structural diagram of a computer device in one embodiment.
Detailed Description
The present application will be described in further detail with reference to the drawings and examples, in order to make the objects, technical solutions and advantages of the present application more apparent. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the application.
Currently, a WIFI antenna of a mobile terminal such as a mobile phone is generally arranged at the top end or the bottom end of the mobile phone, and in a horizontal screen state of the mobile phone, the WIFI antenna is very easy to hold by the palm of a user, so that the performance of the antenna is poor, and a WIFI signal is weakened. In the conventional technology, whether a mobile phone is in a horizontal screen state is usually detected through a gyroscope, so that the state and the antenna with better performance are switched for a user. However, this method results in poor accuracy in switching antennas for users due to different usage habits of users. In view of the above, the present application provides an antenna switching method capable of effectively improving the accuracy of antenna switching.
The antenna switching method provided by the embodiment of the application can be applied to a terminal, and the terminal can be, but is not limited to, various personal computers, notebook computers, smart phones, tablet computers, internet of things equipment and portable wearable equipment, wherein the Internet of things equipment can be an intelligent sound box, an intelligent television, an intelligent air conditioner, intelligent vehicle-mounted equipment and the like. The portable wearable device may be a smart watch, smart bracelet, headset, or the like.
In one embodiment, as shown in fig. 1, there is provided an antenna switching method, which includes the steps of:
Step 101, obtaining first delay data of a target application currently running by a terminal, wherein the first delay data is used for indicating delay conditions of the target application.
Alternatively, the terminal may be an electronic device with an antenna mounted thereon.
In an alternative embodiment of the application, the first delay data comprises at least one of screen delay data of an application screen and network delay data of a network response. In other words, in one possible implementation, the delay condition of the target application may be determined by the screen delay data of the application screen of the target application. In another possible implementation, the delay condition of the target application may also be determined by the network delay data of the network response of the target application. In another possible implementation manner, the delay condition of the target application may 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.
In an alternative embodiment of the present application, the target application is a game application, in which case, the first delay data of the target application currently running by the terminal may be obtained through a protocol channel with the game partner, and the first delay data of the target application currently running by the terminal may also be obtained through algorithm processing.
Step 102, determining whether the currently used first WIFI antenna needs to be switched to other antennas according to the first delay data.
In one possible implementation manner, if it is determined that the delay condition of the target application is a relatively serious condition according to the first delay data, the currently used first WIFI antenna is switched to another antenna.
In another possible implementation manner, if it is determined that the delay condition of the target application is a relatively slight condition according to the first delay data, the currently used first WIFI antenna is not switched to another antenna, and the first WIFI antenna is continuously used.
Step 103, if the first WIFI antenna needs to be switched to another antenna, executing an antenna switching process.
Alternatively, the other antenna may be other WIFI antennas, and may also be a cellular antenna.
In one possible implementation manner, if it is determined that the delay condition of the target application is relatively serious according to the first delay data, it is determined that the first WIFI antenna needs to be switched to another antenna, and a procedure of switching the first WIFI antenna currently used to another antenna is performed.
According to the antenna switching method, first delay data of a target application currently operated by a terminal are acquired, the first delay data are used for indicating delay conditions of the target application, whether a currently used first WIFI antenna needs to be switched to other antennas is determined according to the first delay data, and if the first WIFI antenna needs to be switched to the other antennas, an antenna switching flow is executed. The antenna switching method provided by the application is used for determining whether to switch the currently used first WIFI antenna into other antennas based on the first delay data of the target application currently operated by the terminal, so that misjudgment caused by different use habits of users can be avoided.
In one embodiment, as shown in fig. 2, the determining whether the currently used first WIFI antenna needs to be switched to another antenna according to the first delay data includes the following steps:
Step 201, determining the delay degree of the target application according to the first delay data.
Optionally, the degree of delay of the target application includes a slight delay, a medium delay, and a severe delay.
In one possible implementation, the delay time of the target application may be determined by the first delay data, and if the delay time is less than or equal to 30ms, the delay degree of the target application may be determined to be a slight delay according to the first delay data.
In another possible implementation, the delay time of the target application may be determined by the first delay data, and if the delay time is greater than 30ms but less than 60ms, the delay degree of the target application may be determined to be a medium delay according to the first delay data.
In another possible implementation manner, the delay time of the target application may be determined by the first delay data, and if the delay time is greater than or equal to 60ms, the delay degree of the target application may be determined to be a serious delay according to the first delay data.
Step 202, determining whether the first WIFI antenna needs to be switched to other antennas according to the delay degree.
In one possible implementation, if the severity of the target application is determined to be slightly delayed according to the first delay data, the first WIFI antenna is not switched to the other antenna.
In another possible implementation, if it is determined that the severity of the target application is medium latency according to the first latency data, the first WIFI antenna is switched to another antenna.
In another possible implementation manner, if the severity of the target application is determined to be severely delayed according to the first delay data, the first WIFI antenna is switched to another antenna.
According to the method for determining the delay degree of the target application according to the first delay data and determining whether to switch the first WIFI antenna into other antennas based on the delay degree of the target application, the accuracy of antenna switching can be effectively improved, and the problem of misjudgment of antenna switching caused by different habits of users can be effectively avoided because whether to switch the antennas is determined based on the delay degree of the target application instead of being determined according to the current horizontal screen or vertical screen state of the terminal.
In one embodiment, after determining whether the first WIFI antenna needs to be switched to another antenna according to the delay degree, determining the switched target antenna according to the delay degree if the first WIFI antenna needs to be switched to another antenna according to the delay degree is further included.
In an alternative embodiment of the present application, the target antenna is a second WIFI antenna or a cellular antenna.
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.
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.
In one embodiment, if the first WIFI antenna needs to be switched to another antenna, an antenna switching process is performed, including, if it is determined that the first WIFI antenna needs to be switched to another antenna according to the delay degree, performing an antenna switching process of switching the first WIFI antenna to the target antenna.
In one possible implementation manner, 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 procedure of switching the first WIFI antenna to the second WIFI antenna is performed, so that the terminal can communicate based on the second WIFI antenna.
In another possible implementation manner, if the delay degree is determined to be a serious delay according to the first delay data, determining that the target antenna is a cellular antenna performs a procedure of switching the first WIFI antenna to the cellular antenna, so that the terminal can communicate based on the cellular antenna.
According to the method for determining the switched target antenna according to the delay degree of the target application, a more suitable antenna can be selected for the terminal of the user according to the delay degree so as to be used by the user, and the accuracy of antenna switching is effectively improved.
In one embodiment, as shown in fig. 3, after performing the antenna switching procedure, the method further comprises the steps of:
Step 301, 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.
Alternatively, the preset time period may be set in advance by a technician, and the preset time period may be 60 seconds, 90 seconds, or 100 seconds.
In one possible implementation manner, the first delay data of the target application currently running by the terminal may be obtained through a protocol channel with the game partner, and the first delay data of the target application currently running by the terminal may also be obtained through algorithm processing.
Step 302, determining whether to continue using the switched antenna for communication according to the second delay data and the first delay data.
In one possible implementation, if it is determined that the antenna is switched to be effectively switched according to the second delay data and the first delay data, that is, the delay condition of the target application is improved, it is determined to continue to use the switched antenna for communication.
In another possible implementation manner, if it is determined that the antenna is switched to the invalid switch according to the second delay data and the first delay data, that is, the delay condition of the target application is not improved, it is determined that the antenna after the switch is not used for communication.
After the preset time length of the interval, the second delay data of the target application is obtained, and whether the method for communicating by using the switched antenna is continued or not is determined according to the second delay data and the first delay data, so that whether the antenna switching action is an effective switching action or not can be determined, the problem that the delay of the target application is not solved after the antenna switching action is executed is avoided, and the accuracy of the antenna switching can be effectively improved.
In one embodiment, as shown in fig. 4, the determining whether to continue to use the switched antenna for communication according to the second delay data and the first delay data includes the steps of:
Step 401, determining whether the delay condition of the target application is relieved according to the second delay data and the first delay data.
In one possible implementation, if the delay time of the target application is determined to be 20 seconds according to the second delay data, it is determined that the delay condition of the target application is relieved 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 smaller than the delay time of the target application determined according to the first delay data.
In another possible implementation manner, if the delay time of the target application is determined to be 50 seconds according to the second delay data, it is determined that the delay condition of the target application is not relieved if the delay time of the target application determined according to the first delay data is assumed to be 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.
In another possible implementation manner, if the delay time of the target application is determined to be 50 seconds according to the second delay data, it is determined that the delay condition of the target application is not relieved if the delay time of the target application determined according to the first delay data is assumed to be 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.
Step 402, if the delay condition of the target application is relieved, continuing to use the switched antenna for communication.
In one possible implementation manner, if the switched target antenna is the second WIFI antenna and the delay condition of the target application is determined to be relieved according to the first delay data and the second delay data, the second WIFI antenna is continuously used for communication.
In another possible implementation manner, if the target antenna after switching is a cellular antenna and it is determined that the delay condition of the target application is relieved according to the first delay data and the second delay data, communication is continued using the cellular antenna.
According to the second delay data and the first delay data, whether the delay condition of the target application is relieved is determined, if the delay condition of the target application is relieved, the method for communication by using the switched antenna is continued, the accuracy of antenna switching can be effectively improved, the problem that the delay condition of the target application is not relieved when the first antenna switching is invalid is avoided.
In one embodiment, determining whether the delay condition of the target application is relieved according to the second delay data and the first delay data further comprises returning to the step of executing the first delay data of the target application currently running by the acquisition terminal if the delay condition of the target application is not relieved.
In one possible implementation manner, if the switched antenna is the second WIFI antenna, determining that the delay condition of the target application is not relieved according to the first delay data and the second delay data, acquiring delay data of the target application currently operated by the terminal, taking the delay data as the first delay data, determining whether the second WIFI antenna currently used needs to be switched to another antenna according to the first delay data, and if the second WIFI antenna needs to be switched to another antenna, executing an antenna switching procedure.
In another possible implementation manner, if the switched antenna is the cellular antenna, and it is determined that the delay condition of the target application is not relieved according to the first delay data and the second delay data, delay data of the target application currently operated by the terminal is obtained, the delay data is used as the first delay data, whether the currently used cellular antenna needs to be switched to other antennas is determined according to the first delay data, and if the cellular antenna needs to be switched to other antennas, an antenna switching process is executed.
In one embodiment, as shown in fig. 5, another antenna switching method is provided, which includes the steps of:
step 501, obtaining first delay data of a target application currently running by a terminal, where the first delay data is used to indicate a delay condition of the target application.
Step 502, determining a delay degree of the target application according to the first delay data.
Step 503, if it is determined that the first WIFI antenna needs to be switched to another antenna according to the delay degree, executing an antenna switching process of switching the first WIFI antenna to the target antenna.
Step 504, 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.
Step 505, determining whether the delay condition of the target application is relieved according to the second delay data and the first delay data.
If the delay condition of the target application is relieved, step 506, continuing to use the switched antenna for communication.
And step 507, if the delay condition of the target application is not relieved, returning to the step of executing the first delay data of the target application currently running by the terminal.
It should be understood that, although the steps in the flowcharts related to the embodiments described above are sequentially shown as indicated by arrows, these steps are not necessarily sequentially performed in the order indicated by the arrows. The steps are not strictly limited to the order of execution unless explicitly recited herein, and the steps may be executed in other orders. Moreover, at least some of the steps in the flowcharts described in the above embodiments may include a plurality of steps or a plurality of stages, which are not necessarily performed at the same time, but may be performed at different times, and the order of the steps or stages is not necessarily performed sequentially, but may be performed alternately or alternately with at least some of the other steps or stages.
Based on the same inventive concept, the embodiment of the application also provides an antenna switching device for realizing the antenna switching method. The implementation of the solution provided by the device is similar to the implementation described in the above method, so the specific limitation in the embodiments of one or more antenna switching devices provided below may be referred to the limitation of the antenna switching method hereinabove, and will not be repeated here.
In one embodiment, as shown in fig. 6, there is provided an antenna switching apparatus 600, including an acquisition module 601, a determination module 602, and a first execution module 603, wherein:
The terminal comprises an acquisition module 601, a determination module 602, a first execution module 603 and a first execution module, wherein the acquisition module is used for acquiring first delay data of a target application currently running by the terminal, the first delay data is used for indicating the delay condition of the target application, the determination module 602 is used for determining whether a currently used first WIFI antenna needs to be switched to other antennas according to the first delay data, and the first execution module 603 is used for executing an antenna switching flow if the first WIFI antenna needs to be switched to other antennas.
In one embodiment, the determining module 601 is specifically configured to determine a delay degree of the target application according to the first delay data, and determine whether the first WIFI antenna needs to be switched to another antenna according to the delay degree.
In one embodiment, the determining module 601 is specifically configured to determine the target antenna after switching according to the delay degree if it is determined that the first WIFI antenna needs to be switched to another antenna according to the delay degree.
In one embodiment, the target antenna is a second WIFI antenna or a cellular antenna.
In one embodiment, the determining module 601 is specifically configured to execute an antenna switching process of switching the first WIFI antenna to the target antenna if it is determined that the first WIFI antenna needs to be switched to other antennas according to the delay degree.
In one embodiment, as shown in fig. 7, another antenna switching apparatus 700 is provided, the antenna switching apparatus 700 including a second execution module 604 in addition to the modules included in the antenna switching apparatus 600.
In one embodiment, the second execution module 604 is configured to obtain second delay data of the target application after a preset time interval, where the second delay data is used to indicate a delay condition of the target application, and determine whether to continue using the switched antenna for communication according to the second delay data and the first delay data.
In one embodiment, the second execution module 604 is specifically configured to determine whether the delay condition of the target application is alleviated according to the second delay data and the first delay data, and if the delay condition of the target application is alleviated, continue to use the switched antenna for communication.
In one embodiment, the second execution module 604 is specifically configured to return to executing the step of obtaining the first delay data of the target application currently running on the terminal if the delay condition of the target application is not relieved.
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.
In one embodiment, the target application is a game-like application.
The respective modules in the antenna switching device described above may be implemented in whole or in part by software, hardware, and combinations thereof. The above modules may be embedded in hardware or may be independent of a processor in the computer device, or may be stored in software in a memory in the computer device, so that the processor may call and execute operations corresponding to the above modules.
In one embodiment, a computer device is provided, which may be a terminal, and the internal structure thereof may be as shown in fig. 8. The computer device includes a processor, a memory, an input/output interface, a communication interface, a display unit, and an input means. 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. Wherein the processor of the computer device is configured 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 computer programs in the non-volatile storage media. 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 for carrying out wired or wireless communication with an external terminal, and the wireless mode can be realized through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. The computer program is executed by a processor to implement an antenna switching method. The display unit of the computer device is used for forming a visual picture, and 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 equipment can be a touch layer covered on the display screen, can also be a key, a track ball or a touch pad arranged on the shell of the computer equipment, and can also be an external keyboard, a touch pad or a mouse and the like.
It will be appreciated by those skilled in the art that the structure shown in FIG. 8 is merely a block diagram of some of the structures associated with the present inventive arrangements and is not limiting of the computer device to which the present inventive arrangements may be applied, and that a particular computer device may include more or fewer components than shown, or may combine some of the components, or have a different arrangement of components.
In one embodiment, a computer device is provided, which includes a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the processor obtains first delay data of a target application currently operated by a terminal, the first delay data is used for indicating a delay condition of the target application, determines whether a currently used first WIFI antenna needs to be switched to other antennas according to the first delay data, and executes an antenna switching flow if the first WIFI antenna needs to be switched to other antennas.
In one embodiment, the method determines whether the currently used first WIFI antenna needs to be switched to another antenna according to the first delay data, and the processor further performs the steps of determining the delay degree of the target application according to the first delay data, and determining whether the first WIFI antenna needs to be switched to another antenna according to the delay degree.
In one embodiment, the processor when executing the computer program further performs the step of determining a target antenna after switching according to the delay level if it is determined that the first WIFI antenna needs to be switched to another antenna according to the delay level.
In one embodiment, the target antenna is a second WIFI antenna or a cellular antenna.
In one embodiment, if the first WIFI antenna needs to be switched to another antenna, an antenna switching process is performed, and when the processor executes the computer program, the processor further performs the step of executing an antenna switching process of switching the first WIFI antenna to the target antenna if it is determined that the first WIFI antenna needs to be switched to another antenna according to the delay degree.
In one embodiment, after the antenna switching process is performed, the processor performs the computer program to further obtain second delay data of the target application after a preset time interval, where the second delay data is used to indicate a delay condition of the target application, and determine whether to continue using the switched antenna for communication according to the second delay data and the first delay data.
In one embodiment, the processor, when executing the computer program, further performs the step of determining whether to continue to use the switched antenna for communication based on the second delay data and the first delay data, determining whether the delay condition of the target application is alleviated based on the second delay data and the first delay data, and if the delay condition of the target application is alleviated, continuing to use the switched antenna for communication.
In an embodiment the processor when executing the computer program further performs the step of returning to the step of executing the first delay data of the target application that is currently running in the acquisition terminal if the delay condition of the target application is not alleviated.
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.
In one embodiment, the target application is a game-like application.
In one embodiment, a computer readable storage medium is provided having a computer program stored thereon, which when executed by a processor, performs the steps of:
The method comprises the steps of obtaining first delay data of a target application currently operated by a terminal, determining whether a currently used first WIFI antenna needs to be switched to other antennas according to the first delay data, and executing an antenna switching flow if the first WIFI antenna needs to be switched to the other antennas.
In one embodiment, the method determines whether the currently used first WIFI antenna needs to be switched to another antenna according to the first delay data, and the computer program when executed by the processor implements the steps of determining a delay degree of the target application according to the first delay data, and determining whether the first WIFI antenna needs to be switched to another antenna according to the delay degree.
In one embodiment, the computer program when executed by the processor performs the step of determining the target antenna after switching according to the delay level if it is determined that the first WIFI antenna needs to be switched to another antenna according to the delay level.
In one embodiment, the target antenna is a second WIFI antenna or a cellular antenna.
In one embodiment, if the first WIFI antenna needs to be switched to another antenna, an antenna switching process is performed, and when the computer program is executed by the processor, the following steps are implemented, if it is determined that the first WIFI antenna needs to be switched to another antenna according to the delay degree, the antenna switching process is performed to switch the first WIFI antenna to the target antenna.
In one embodiment, after the antenna switching process is performed, the computer program when executed by the processor performs the steps of obtaining second delay data of the target application after a preset time interval, where the second delay data is used to indicate a delay condition of the target application, and determining whether to continue using the switched antenna for communication according to the second delay data and the first delay data.
In one embodiment, the determining whether to continue using the switched antenna based on the second delay data and the first delay data, when executed by the processor, performs the steps of determining whether the delay condition of the target application is alleviated based on the second delay data and the first delay data, and if the delay condition of the target application is alleviated, continuing to use the switched antenna for communication.
In an embodiment the computer program when executed by the processor performs the step of returning to the step of obtaining the first delay data of the target application currently running by the terminal if the delay condition of the target application is not alleviated.
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.
In one embodiment, the target application is a game-like application.
In one embodiment, a computer program product is provided comprising a computer program which, when executed by a processor, performs the steps of:
The method comprises the steps of obtaining first delay data of a target application currently operated by a terminal, determining whether a currently used first WIFI antenna needs to be switched to other antennas according to the first delay data, and executing an antenna switching flow if the first WIFI antenna needs to be switched to the other antennas.
In one embodiment, the method determines whether the currently used first WIFI antenna needs to be switched to another antenna according to the first delay data, and the computer program when executed by the processor implements the steps of determining a delay degree of the target application according to the first delay data, and determining whether the first WIFI antenna needs to be switched to another antenna according to the delay degree.
In one embodiment, the computer program when executed by the processor performs the step of determining the target antenna after switching according to the delay level if it is determined that the first WIFI antenna needs to be switched to another antenna according to the delay level.
In one embodiment, the target antenna is a second WIFI antenna or a cellular antenna.
In one embodiment, if the first WIFI antenna needs to be switched to another antenna, an antenna switching process is performed, and when the computer program is executed by the processor, the following steps are implemented, if it is determined that the first WIFI antenna needs to be switched to another antenna according to the delay degree, the antenna switching process is performed to switch the first WIFI antenna to the target antenna.
In one embodiment, after the antenna switching process is performed, the computer program when executed by the processor performs the steps of obtaining second delay data of the target application after a preset time interval, where the second delay data is used to indicate a delay condition of the target application, and determining whether to continue using the switched antenna for communication according to the second delay data and the first delay data.
In one embodiment, the determining whether to continue using the switched antenna based on the second delay data and the first delay data, when executed by the processor, performs the steps of determining whether the delay condition of the target application is alleviated based on the second delay data and the first delay data, and if the delay condition of the target application is alleviated, continuing to use the switched antenna for communication.
In an embodiment the computer program when executed by the processor performs the step of returning to the step of obtaining the first delay data of the target application currently running by the terminal if the delay condition of the target application is not alleviated.
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.
In one embodiment, the target application is a game-like application.
Those skilled in the art will appreciate that implementing all or part of the above described methods may be accomplished by way of a computer program stored on a non-transitory computer readable storage medium, which when executed, may comprise the steps of the embodiments of the methods described above. Any reference to memory, database, or other medium used in embodiments provided herein may include at least one of non-volatile and volatile memory. The nonvolatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical Memory, high density embedded nonvolatile Memory, resistive random access Memory (ReRAM), magneto-resistive random access Memory (Magnetoresistive Random Access Memory, MRAM), ferroelectric Memory (Ferroelectric Random Access Memory, FRAM), phase change Memory (PHASE CHANGE Memory, PCM), graphene Memory, and the like. Volatile memory can include random access memory (Random Access Memory, RAM) or external cache memory, and the like. By way of illustration, and not limitation, RAM can be in various forms such as static random access memory (Static Random Access Memory, SRAM) or dynamic random access memory (Dynamic Random Access Memory, DRAM), etc. The databases referred to in the embodiments provided herein may include at least one of a relational database and a non-relational database. The non-relational database may include, but is not limited to, a blockchain-based distributed database, and the like. The processor referred to in the embodiments provided in the present application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic unit, a data processing logic unit based on quantum computing, or the like, but is not limited thereto.
The technical features of the above embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The foregoing examples illustrate only a few embodiments of the application and are described in detail herein without thereby limiting the scope of the application. It should be noted that it will be apparent to those skilled in the art that several variations and modifications can be made without departing from the spirit of the application, which are all within the scope of the application. Accordingly, the scope of the application should be assessed as that of the appended claims.

Claims (14)

1. An antenna switching method, the method comprising:
Acquiring first delay data of a target application currently operated by a terminal, wherein the first delay data is used for indicating the delay condition of the target application;
Determining whether a currently used first WIFI antenna needs to be switched to other antennas according to the first delay data;
and if the first WIFI antenna needs to be switched to other antennas, executing an antenna switching flow.
2. The method according to claim 1, wherein determining whether the currently used first WIFI antenna needs to be switched to another antenna according to the first delay data includes:
determining a delay degree of the target application according to the first delay data;
and determining whether the first WIFI antenna needs to be switched to other antennas according to the delay degree.
3. The method according to claim 2, wherein the method further comprises:
and if the first WIFI antenna is required to be switched to other antennas according to the delay degree, determining a switched target antenna according to the delay degree.
4. The method of claim 3, wherein the target antenna is a second WIFI antenna or a cellular antenna.
5. The method of claim 3, wherein the performing an antenna switching procedure if the first WIFI antenna needs to be switched to another antenna comprises:
and if the first WIFI antenna is required to be switched to other antennas according to the delay degree, executing an antenna switching flow for switching the first WIFI antenna to the target antenna.
6. The method according to any one of claims 1 to 5, wherein after performing the antenna switching procedure, the method further comprises:
after a preset time interval, acquiring second delay data of the target application, wherein the second delay data is used for indicating the delay condition of the target application;
and determining whether to continue to use the switched antenna for communication according to the second delay data and the first delay data.
7. The method of claim 6, wherein the determining whether to continue using the switched antenna based on the second delay data and the first delay data comprises:
determining whether a delay condition of the target application is alleviated according to the second delay data and the first delay data;
and if the delay condition of the target application is relieved, continuing to use the switched antenna for communication.
8. The method of claim 7, wherein the method further comprises:
And if the delay condition of the target application is not relieved, returning to the step of executing the first delay data of the target application which is currently operated by the terminal.
9. The method of any one of claims 1 to 5, wherein 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 of any one of claims 1 to 5, wherein the target application is a game-like application.
11. An antenna switching apparatus, the apparatus comprising:
The terminal comprises an acquisition module, a delay control module and a delay control module, wherein the acquisition module is used for acquiring first delay data of a target application currently operated by a terminal, and the first delay data is used for indicating the delay condition of the target application;
The determining module is used for determining whether the currently used first WIFI antenna needs to be switched to other antennas according to the first delay data;
And the first execution module is used for executing an antenna switching flow if the first WIFI antenna needs to be switched to other antennas.
12. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor implements the steps of the method of any one of claims 1 to 10 when the computer program is executed.
13. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any of claims 1 to 10.
14. A computer program product comprising a computer program, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any one of claims 1 to 10.
CN202310699409.6A 2023-06-13 2023-06-13 Antenna switching method, device, computer equipment, storage medium and program product Pending CN119135193A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310699409.6A CN119135193A (en) 2023-06-13 2023-06-13 Antenna switching method, device, computer equipment, storage medium and program product

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310699409.6A CN119135193A (en) 2023-06-13 2023-06-13 Antenna switching method, device, computer equipment, storage medium and program product

Publications (1)

Publication Number Publication Date
CN119135193A true CN119135193A (en) 2024-12-13

Family

ID=93750640

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310699409.6A Pending CN119135193A (en) 2023-06-13 2023-06-13 Antenna switching method, device, computer equipment, storage medium and program product

Country Status (1)

Country Link
CN (1) CN119135193A (en)

Similar Documents

Publication Publication Date Title
US10921967B2 (en) Electronic device and method for configuring display thereof
CN110888521B (en) A mobile terminal and method for running application program thereof
CN108648259B (en) Image rendering method, device, storage medium and intelligent terminal
US11138956B2 (en) Method for controlling display of terminal, storage medium, and electronic device
CN114253481A (en) Data storage method and device, computer equipment and storage medium
CN106527846A (en) Displaying method, displaying device and terminal equipment
CN119135193A (en) Antenna switching method, device, computer equipment, storage medium and program product
CN120200654A (en) Satellite communication mode determination method, device, equipment, storage medium and program product
CN118916112A (en) Page switching method, device, equipment, storage medium and program product
WO2025039975A1 (en) Page display method and apparatus and electronic device
CN116991800A (en) File acquisition systems, methods, devices, computer equipment and storage media
CN116489089A (en) Flow control method and device and computer equipment
CN117612192A (en) Electronic drawing information identification method, system, electronic equipment and storage medium
CN117784994A (en) Date selection method, device, computer equipment and storage medium
CN116910115A (en) Group query method, device, computer equipment and storage medium
CN119520272B (en) Configuration data issuing method, device, computer equipment and storage medium
US20100057656A1 (en) Device, system, and method of determining a solution scheme of a poly-algorithm solver
CN118740779B (en) Message-based circuit breaking methods, apparatus, computer equipment, and storage media
CN114258000B (en) Mini-program search method, device, computer equipment, and storage medium
CN117688638A (en) Electronic drawing generation method, system, electronic device and storage medium
US20150062128A1 (en) Image processing method and apparatus therefor
CN118939132A (en) Element processing method, device, electronic device and computer-readable storage medium
CN117909093A (en) Data distribution processing method and device for chip interface
CN118276977A (en) Method, device and computer equipment for enabling program functions of application programs
CN121262250A (en) Down sampling method, device and computer equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination