CN107835033B - Antenna tuning switch control method and device, terminal equipment and storage medium - Google Patents

Antenna tuning switch control method and device, terminal equipment and storage medium Download PDF

Info

Publication number
CN107835033B
CN107835033B CN201711243633.5A CN201711243633A CN107835033B CN 107835033 B CN107835033 B CN 107835033B CN 201711243633 A CN201711243633 A CN 201711243633A CN 107835033 B CN107835033 B CN 107835033B
Authority
CN
China
Prior art keywords
antenna tuning
tuning switch
state
use scene
switch state
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.)
Active
Application number
CN201711243633.5A
Other languages
Chinese (zh)
Other versions
CN107835033A (en
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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201711243633.5A priority Critical patent/CN107835033B/en
Publication of CN107835033A publication Critical patent/CN107835033A/en
Application granted granted Critical
Publication of CN107835033B publication Critical patent/CN107835033B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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/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

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Telephone Function (AREA)

Abstract

The embodiment of the application discloses a control method and device of an antenna tuning switch, terminal equipment and a storage medium. The method comprises the following steps: acquiring a current use scene of the terminal equipment; determining the state of a target antenna tuning switch according to the use scene; controlling a modem to switch an antenna tuning switch state to the target antenna tuning switch state. According to the control method of the antenna tuning switch, the state of the antenna adjusting switch is switched according to the current use scene of the terminal device, so that the performance of the antenna in the terminal device is optimal in the current use scene, and the signal receiving capability of the antenna in the terminal device is improved.

Description

Antenna tuning switch control method and device, terminal equipment and storage medium
Technical Field
The embodiment of the application relates to the technical field of mobile communication, in particular to a control method and device of an antenna tuning switch, terminal equipment and a storage medium.
Background
With the rapid development of communication network technology, mobile communication terminal devices such as mobile phones have become one of the indispensable tools in people's lives. Currently, most terminal devices are designed with metal bodies, so that the performance of the antenna in the terminal device is greatly challenged.
The antenna tuning switch is a switch for switching the working state of the antenna, and the antenna tuning switch switches the frequency band and the states of receiving and transmitting signals. When the antenna tuning switch is integrated in the terminal device, the connection between the antenna and the internal circuit of the terminal device may affect the signal receiving capability of the terminal device. In the related art, there are certain drawbacks to the control method for the antenna tuning switch.
Disclosure of Invention
The embodiment of the application provides a control method and device for an antenna tuning switch, a terminal device and a storage medium, which can improve the signal receiving capability of an antenna in the terminal device.
In a first aspect, an embodiment of the present application provides a method for controlling an antenna tuning switch, where the method includes:
acquiring a current use scene of the terminal equipment;
determining the state of a target antenna tuning switch according to the use scene;
controlling a modem to switch an antenna tuning switch state to the target antenna tuning switch state.
In a second aspect, an embodiment of the present application further provides a control apparatus for an antenna tuning switch, where the apparatus includes:
the terminal equipment comprises a use scene acquisition module, a service scene acquisition module and a service scene acquisition module, wherein the use scene acquisition module is used for acquiring a use scene in which the terminal equipment is currently located;
the target antenna tuning switch state determining module is used for determining the target antenna tuning switch state according to the use scene;
and the target antenna tuning switch state switching module is used for controlling the modem to switch the antenna tuning switch state to the target antenna tuning switch state.
In a third aspect, an embodiment of the present application further provides a terminal device, including: a processor, a memory and a computer program stored on the memory and executable on the processor, the processor implementing the control method according to the first aspect when executing the computer program.
In a fourth aspect, the present application further provides a storage medium, on which a computer program is stored, where the computer program is executed by a processor to implement the control method according to the first aspect.
According to the method and the device, the current use scene of the terminal device is obtained, the target antenna tuning switch state is determined according to the use scene, and finally the modem is controlled to switch the antenna tuning switch state to the target antenna tuning switch state. According to the control method of the antenna tuning switch, the state of the antenna adjusting switch is switched according to the current use scene of the terminal device, so that the performance of the antenna in the terminal device is optimal in the current use scene, and the signal receiving capability of the antenna in the terminal device is improved.
Drawings
Fig. 1 is a flowchart of a method for controlling an antenna tuning switch in an embodiment of the present application;
fig. 2 is a flowchart of another method for controlling an antenna tuning switch in an embodiment of the present application;
fig. 3 is a flowchart of a control method of an antenna tuning switch according to another embodiment of the present application;
fig. 4 is a flowchart of a control method of an antenna tuning switch according to another embodiment of the present application;
fig. 5 is a schematic structural diagram of a control device of an antenna tuning switch in an embodiment of the present application;
fig. 6 is a schematic structural diagram of a terminal device in an embodiment of the present application;
fig. 7 is a schematic structural diagram of another terminal device in the embodiment of the present application.
Detailed Description
The present application will be described in further detail with reference to the following drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the application and are not limiting of the application. It should be further noted that, for the convenience of description, only some of the structures related to the present application are shown in the drawings, not all of the structures.
In the related art, when the terminal device leaves a factory, only one antenna tuning switch state is set, and when the terminal device is in different use scenes such as holding by both hands, talking in a receiver mode, being shielded and the like, the signal receiving capability of the terminal device antenna is affected to different degrees. The fixed antenna tuning switch state makes the ability of the terminal equipment antenna to receive signals unable to reach the optimal state in different use scenes.
The antenna tuning switch can be applied to a terminal device for switching the antenna switching state. The antenna tuning switch is an impedance matching circuit for connecting a transmitter and an antenna, the input impedance of the antenna changes with the change of frequency, and when the frequency of the transmitter changes, if the impedance between the transmitter and the antenna is not matched, the radiation power of the antenna is reduced. The working state of the antenna is switched by using the antenna tuning switch, so that the impedance between the antenna and the transmitter can be matched, the antenna has the maximum radiation power, and the antenna has the optimal signal transceiving capacity. The antenna tuning switch is composed of a plurality of switches, and the antenna tuning switch state is a switch state formed by combining the states of the switches composing the antenna tuning switch, and can represent the frequency of the current antenna for receiving signals and the capability of receiving and transmitting signals, wherein the states of the switches comprise a low level state and a high level state.
Fig. 1 is a flowchart of a method for controlling an antenna tuning switch according to an embodiment of the present disclosure, where the method is applicable to a case of controlling a state of the antenna tuning switch, and the method may be executed by a control device of the antenna tuning switch, where the device may be integrated in a terminal device such as a mobile phone or a tablet computer. As shown in fig. 1, the method includes the following steps.
And step 110, acquiring a current use scene of the terminal equipment.
The usage scenario may be a scenario in which the user uses the terminal device, and may include a usage scenario in which both hands hold sideways, a usage scenario in an earpiece mode for a call, a usage scenario in which the user is blocked, and the like, and the usage scenario may further include information such as a type of an antenna tuning switch and a current transmission frequency band.
In this embodiment, the manner of acquiring the current usage scenario of the terminal device may be to detect at least one operation state information of the terminal device, and determine the current usage scenario of the terminal device according to the at least one operation state information.
The running state information may include sensor state information, screen state information, call state information, and foreground application information, among others. The sensor state information may include state information of a distance sensor, state information of a light sensor, state information of a gravitational acceleration sensor, and the like. The screen state information may include vertical screen state information, horizontal screen state information, and the like. The call state information may include an unlinked state and a call state. The foreground application information may be the type of the currently foreground running application, etc.
Specifically, the manner of detecting at least one operation state information of the terminal device may be that the terminal device monitors a sensor state, a screen state, a call state, and a foreground application in the operation state to obtain the operation state information of the current terminal device, and then integrates at least one of the operation state information to determine the current usage scenario of the terminal device.
Optionally, if the screen state information is a landscape screen state and the foreground application information is a target application, it is determined that the terminal device is in a scene in which both hands hold the terminal device sideways.
The target application may be an application that requires two hands to operate simultaneously, such as a large-scale network game. The landscape state information may include left landscape state information and right landscape state information. The mode of acquiring the screen state information as the horizontal screen state may be to acquire an aspect ratio of the current screen, where if the aspect ratio is less than 1, the screen state information is in the vertical screen state, and if the aspect ratio is greater than 1, the screen state information is in the horizontal screen state. The mode of determining whether the horizontal screen state is the left horizontal screen state or the right horizontal screen state may be that a gyroscope in the terminal device is used to detect the orientation of the home key of the terminal device, and if the orientation of the home key is left, the horizontal screen state is left, and if the orientation of the home key is right, the horizontal screen state is right. In the application scene, whether the screen state is the horizontal screen state or not can be determined only, and whether the screen state is the left horizontal screen state or the right horizontal screen state does not need to be determined. The manner of acquiring foreground application information as the target application may be to add a target tag to the target application, for example: the target tag may be "two hands are needed to operate simultaneously", and when the application running on the foreground is the application added with the target tag, the foreground application information may be determined to be the target application.
Specifically, when the current screen state information detected by the terminal device is a landscape screen state and foreground application information is a target application, the terminal device is currently in a scene where both hands hold the terminal device sideways. For example, if the aspect ratio of the current screen detected by the terminal device is greater than 1, and the application program currently running in the foreground is a large-scale network game that needs to be operated by both hands simultaneously, it may be determined that the terminal device is currently in a scene where both hands hold the terminal device sideways.
Optionally, if the sensor state information indicates that the distance between the screen and the obstacle is smaller than a first preset distance and the call state information indicates that the terminal device is in a call using scene in the earphone mode.
The sensor state information may be state information of the distance sensor, among others. The distance sensor may be an optical distance sensor, an infrared distance sensor or an ultrasonic distance sensor, and in this embodiment, an infrared distance sensor is preferably used. The first preset distance may be set to any value between 2-5 cm. The obtaining mode of the call state information may be to monitor the call state of the terminal device through the call management server, and determine whether the current call state of the terminal device is in a call or not in a call. The earphone mode call use scenario may be a use scenario in which the user places the terminal device near the ear and uses the earphone mode to perform a call.
Specifically, when the state information of the distance sensor in the terminal device is that the distance between the screen and the obstacle is smaller than a first preset distance, and the call state information is in a call, it is determined that the terminal device is in a handset mode call use scene.
Optionally, if the sensor state information indicates that the distance between the body and the obstacle exceeding the preset area ratio is smaller than the preset distance, it is determined that the terminal device is in a blocked use scene.
Wherein the preset area ratio may be set to any value between 80% and 90%. The sensor status information may be status information of the distance sensor. For example, when the distance between 100% of the fuselage and the obstacle is less than the preset distance, the blocked using scene may be that the terminal device is placed in a pocket or a bag.
Specifically, the distance between the body and the obstacle, which is detected by the distance sensor in the terminal device and exceeds the preset area ratio, is smaller than the preset distance, and then the terminal device is currently in a blocked use scene.
Optionally, if the distance between the body at the preset position and the obstacle is smaller than a second preset distance, the terminal device is determined to be in a blocked use scene. Wherein the preset position may be a position where the antenna is installed. The second preset distance may be set to any value between 2-5 cm.
And step 120, determining the state of the target antenna tuning switch according to the use scene.
The antenna tuning switch state can represent the frequency of the antenna receiving signal and the state of receiving and transmitting the signal. The antenna tuning switches can be of different types, and in different types of terminal equipment, different types of antenna tuning switches can be installed as required. The types of the antenna tuning switch may include a General purpose input/Output (GPIO) type and a Mobile Industry Processor Interface (MIPI) type. In this embodiment, the usage scenario of the terminal device and the target antenna on-off state have a one-to-one preset corresponding relationship, and after the current usage scenario of the terminal device is determined, the target antenna tuning on-off state corresponding to the usage scenario may be determined according to the usage scenario.
Optionally, a preset mapping table of the usage scenario and the antenna tuning on-off state is stored in the terminal device, and after the usage scenario of the terminal device is obtained, the antenna tuning on-off state corresponding to the usage scenario is searched from the preset mapping table, and is determined as the target antenna tuning on-off state. For example, table 1 is a preset mapping table of usage scenarios and antenna switch states.
TABLE 1
Figure BDA0001490368840000051
As shown in table 1, each usage scenario has a corresponding antenna tuning switch state under a different antenna tuning switch type. After the current use scene of the terminal equipment is obtained, the corresponding antenna tuning switch state can be searched in the mapping table according to the use scene.
Optionally, if the usage scene is a two-hand holding usage scene, searching an antenna tuning switch state corresponding to the two-hand holding usage scene from a preset mapping table, and determining the antenna tuning switch state as a target antenna tuning switch state; if the use scene is an earphone mode call use scene, searching an antenna tuning switch state corresponding to the earphone mode call use scene from a preset mapping table, and determining the antenna tuning switch state as a target antenna tuning switch state; and if the use scene is the shielded use scene, searching the antenna tuning switch state corresponding to the shielded use scene from a preset mapping table, and determining the antenna tuning switch state as the target antenna tuning switch state.
And step 130, controlling the Modem (Modem) to switch the antenna tuning switch state to the target antenna tuning switch state.
In this embodiment, after the terminal device operating system determines the target antenna tuning switch state corresponding to the usage scenario, the adjustment demodulator is controlled to switch the antenna tuning switch state to the target antenna tuning switch state. In this application scenario, the communication mode between the operating system and the Modem may be AT command or a high-pass information interface (QMI) protocol. For example, taking the mapping table of table 1 as an example, assuming that the type of the antenna switch installed in the current terminal device is type 1, the current antenna tuning switch state is a1, the operating system detects that the current usage scenario in which the terminal device is located is a handset mode call usage scenario, and the antenna tuning switch state corresponding to the handset mode call usage scenario in the mapping table is B1, then B1 is the target antenna tuning switch state, and the operating system controls the modem to switch the antenna tuning switch state from a1 to B1.
Optionally, the mode of switching the antenna tuning switch state to the target antenna tuning switch state may be that the modem immediately switches the antenna tuning switch state to the target antenna tuning switch state, or the modem switches the antenna tuning switch state to the target antenna tuning switch state after delaying the antenna tuning switch state for a preset time, where the preset time may be any time set between 3 and 5 seconds, and different use scenarios may set different preset times with different delays. For example, if the current usage scenario of the terminal device is a two-hand holding usage scenario or an earpiece mode call usage scenario, the operating system controls the modem to immediately switch the antenna tuning switch state to the target antenna tuning switch state; and if the current use scene of the terminal equipment is the blocked use scene, the operating system controls the modem to switch the antenna tuning switch state to the target antenna tuning switch state after delaying for preset time. The method has the advantages that the states of the antenna tuning switches can be switched in different modes according to different use scenes, reliability is improved, the states of the antenna tuning switches can be immediately adjusted to be the best states for the use scenes of face-to-face operation of users, such as the use scenes of holding hands across or the use scenes of earphone mode conversation, the signal receiving and transmitting capacity of the antenna under the current use scene can be quickly optimized, the states of the antenna tuning switches can be adjusted in a delayed mode for the use scenes of other non-users who directly participate, such as the use scenes which are shielded, and resources of terminal equipment can be saved and power consumption can be reduced.
According to the technical scheme of the embodiment, the current use scene of the terminal equipment is obtained, the state of the target antenna tuning switch is determined according to the use scene, and finally the modem is controlled to switch the state of the antenna tuning switch to the state of the target antenna tuning switch. According to the control method of the antenna tuning switch, the antenna adjusting switch state is switched according to the current use scene of the terminal device, and the antenna tuning switch state can be adaptively adjusted to be the proper antenna tuning switch state under different use scenes, so that the performance of an antenna in the terminal device is optimal in the current use scene, and the signal receiving capability of the antenna in the terminal device is improved.
Optionally, before obtaining the current usage scenario where the terminal device is located, the method further includes the following steps: debugging the state of an antenna tuning switch according to a use scene to obtain a debugging result; and establishing a preset mapping table of the use scene and the antenna tuning switch state according to the debugging result.
The debugging result may be a target antenna tuning switch state corresponding to each usage scenario.
In this embodiment, the manner of debugging the antenna tuning switch state according to the usage scenario to obtain the debugging result may be that the terminal device is placed in a preset usage scenario, and the antenna tuning switch state that enables the antenna to have the maximum signal receiving capability is obtained in the current usage scenario by modulating the antenna tuning switch state, so as to obtain the corresponding relationship between the usage scenario and the target antenna tuning switch state. For example, taking a two-hand handshake usage scenario as an example, assuming that there are 5 switches in the antenna tuning switches used by the current terminal device, and the initial states of the 5 switches are 00000, the terminal device is placed in the two-hand handshake usage scenario, and the 5 antenna switches are debugged, and in the debugging process, when the switch state is 01001, the capability of the antenna to receive signals is strongest, and it is determined that the target antenna tuning switch state corresponding to the two-hand handshake usage scenario in the antenna type is 01001.
After the debugging results of the target antenna tuning switch states respectively corresponding to the use scenes are obtained, a preset mapping table of the use scenes and the antenna tuning switch states is established according to the debugging results, and the preset mapping table is stored in the terminal equipment so that the operating system can access the preset mapping table.
Optionally, determining the target antenna tuning switch state according to the usage scenario may be further implemented by: acquiring a preset mapping table; and searching the antenna tuning switch state corresponding to the use scene from a preset mapping table, and determining the antenna tuning switch state as a target antenna tuning switch state.
The preset mapping table may be obtained by accessing the preset mapping table to a corresponding storage location. In this embodiment, after the operating system obtains the current usage scenario of the terminal device, the operating system accesses the preset mapping table to the corresponding storage location, and searches for the antenna tuning switch state corresponding to the current usage scenario in the preset mapping table, thereby determining the antenna tuning switch state as the target antenna tuning switch state.
According to the technical scheme, the antenna tuning switch state is debugged according to the use scene to obtain a debugging result, a preset mapping table of the use scene and the antenna tuning switch state is established according to the debugging result, then the preset mapping table is obtained, finally the antenna tuning switch state corresponding to the use scene is searched from the preset mapping table, and the antenna tuning switch state is determined to be the target antenna tuning switch state. And a preset mapping table is established, so that the rate of determining the state of the target antenna tuning switch by the terminal equipment can be improved.
Fig. 2 is a flowchart of another method for controlling an antenna tuning switch according to an embodiment of the present application. Optionally, as shown in fig. 2, the method includes the following steps.
Step 210, acquiring a current use scene of the terminal device.
And step 220, determining the state of the target antenna tuning switch according to the use scene.
Step 230, determining whether the time of the terminal device in the usage scenario exceeds a preset time, if so, performing step 240, otherwise, performing step 250.
Wherein the preset time may be set to any time value between 5-10 seconds. In this embodiment, the manner of determining whether the time of the terminal device in the usage scenario exceeds the preset time may be that, when the terminal device detected by the operating system enters the current usage scenario, a timer is started to time the terminal device in the current usage scenario, so as to determine whether the time of the terminal device in the current usage scenario exceeds the preset time.
Step 240, the modem is controlled to switch the antenna tuning switch state to the target antenna tuning switch state.
And if the time of the terminal equipment in the current use scene exceeds the preset time, controlling the modem to switch the antenna tuning switch state to the target antenna tuning switch state, and simultaneously closing the timer and stopping timing.
Step 250, the modem is controlled not to switch the antenna tuning switch state.
And if the time of the terminal equipment in the current use scene does not exceed the preset time, the operating system controls the modem not to switch the state of the antenna tuning switch.
According to the technical scheme of the embodiment, whether the time of the terminal equipment in the use scene exceeds the preset time or not is judged, and if the time exceeds the preset time, the modem is controlled to switch the antenna tuning switch state to the target antenna tuning switch state. The method can prevent the terminal device from being in a short time in the use scene and frequently switching the state of the antenna tuning switch, and can reduce the power consumption of the terminal device.
Fig. 3 is a flowchart of another method for controlling an antenna tuning switch according to an embodiment of the present application. Optionally, as shown in fig. 3, the method includes the following steps.
And step 310, acquiring the peak time of the terminal equipment according to the user behavior record.
The behavior record of the user can be a behavior record of the user using the terminal device. The manner of obtaining the peak time of the terminal device may be to count a time period in which the time when the terminal device is in the use state exceeds a preset time every day in the last month, and determine the time period as the peak time of the terminal device. The preset time may be set to any value between 1 and 2 hours.
And step 320, acquiring the current use scene of the terminal equipment in the peak period.
When entering a peak time period, the application scene of the terminal equipment in the peak time period is obtained by detecting at least one piece of operation state information of the terminal equipment. For example, assuming that the terminal device is obtained as 21-23 pm according to the user behavior record, when the terminal device is in the period, the current usage scenario of the terminal device is obtained.
Step 330, determining the tuning switch state of the target antenna according to the using scene.
Step 340, controlling the modem to switch the antenna tuning switch state to the target antenna tuning switch state.
Optionally, during the peak period, the target tuning switch state is determined according to the usage scenario, and the modem is controlled to switch the antenna tuning switch state to the target antenna tuning switch state.
According to the technical scheme of the embodiment, the use peak time of the terminal equipment is obtained according to the user behavior record, and the use scene where the terminal equipment is currently located is obtained in the peak time. The power consumption caused by the terminal device switching the antenna tuning switch state during off-peak hours can be reduced.
Optionally, the method further includes: and acquiring the current residual electric quantity of the terminal equipment, and controlling the terminal equipment to be switched to a target antenna tuning switch state if the residual electric quantity is larger than the preset electric quantity. Wherein the preset electric quantity can be set to any value between 5% and 10%. The method has the advantage that power consumption caused by switching the state of the antenna tuning switch when the power of the terminal equipment is low can be reduced.
Fig. 4 is a flowchart of a control method for an antenna tuning switch according to an embodiment of the present application. As a further explanation of the above embodiment, as shown in fig. 4, the method comprises the following steps.
Step 401, obtaining the peak time of the terminal device according to the user behavior record.
In step 402, at least one operating state information of the terminal device is detected during peak hours.
Step 403, determining the current usage scenario of the terminal device according to the at least one running state information, and obtaining a preset mapping table.
Step 404, if the usage scene is a two-hand holding usage scene, searching an antenna tuning switch state corresponding to the two-hand holding usage scene from a preset mapping table, and determining the antenna tuning switch state as a target antenna tuning switch state.
Step 405, if the usage scenario is an earphone mode call usage scenario, searching an antenna tuning switch state corresponding to the earphone mode call usage scenario from a preset mapping table, and determining the antenna tuning switch state as a target antenna tuning switch state.
Step 406, if the usage scene is an occluded usage scene, searching the antenna tuning switch state corresponding to the occluded usage scene from the preset mapping table, and determining the antenna tuning switch state as the target antenna tuning switch state.
Step 407, determining whether the time of the terminal device in the usage scene exceeds a preset time, if so, executing step 408, otherwise, executing step 409.
Step 408, the modem is controlled to switch the antenna tuning switch state to the target antenna tuning switch state.
Step 409, controlling the modem not to switch the antenna tuning switch state.
According to the technical scheme of the embodiment, the state of the antenna adjusting switch is switched according to the current use scene of the terminal equipment, so that the performance of the antenna in the terminal equipment is optimal in the current use scene, and the signal receiving capability of the antenna in the terminal equipment is improved.
Fig. 5 is a schematic structural diagram of a control device of an antenna tuning switch according to an embodiment of the present application. As shown in fig. 5, the apparatus includes: a scene acquisition module 510, a target antenna tuning switch state determination module 520, and a target antenna tuning switch state switching module 530 are used.
A usage scenario acquiring module 510, configured to acquire a current usage scenario of the terminal device;
a target antenna tuning switch state determination module 520, configured to determine a target antenna tuning switch state according to a usage scenario;
a target antenna tuning switch state switching module 530, configured to control the modem to switch the antenna tuning switch state to the target antenna tuning switch state.
Optionally, the scene obtaining module 510 is further configured to:
detecting at least one running state information of the terminal equipment;
and determining the current use scene of the terminal equipment according to the at least one piece of running state information.
Optionally, the running state information includes sensor state information, screen state information, call state information, and foreground application information, and the usage scenario obtaining module 510 is further configured to:
if the sensor state information indicates that the distance between the screen and the barrier is smaller than a first preset distance and the call state information indicates that the terminal equipment is in a call using scene in a receiver mode;
if the sensor state information is that the distance between the machine body at the preset position and the obstacle is smaller than a second preset distance, determining that the terminal equipment is in a sheltered use scene;
and if the sensor state information is that the distance between the machine body and the obstacle exceeding the preset area proportion is smaller than the preset distance, determining that the terminal equipment is in a sheltered use scene.
Optionally, the method further includes:
the debugging result acquisition module is used for debugging the state of the antenna tuning switch according to the use scene to obtain a debugging result;
the preset mapping table establishing module is used for establishing a preset mapping table of a use scene and an antenna tuning switch state according to a debugging result;
accordingly, the target antenna tuning switch state determination module 520 is further configured to:
acquiring a preset mapping table;
and searching the antenna tuning switch state corresponding to the use scene from a preset mapping table, and determining the antenna tuning switch state as a target antenna tuning switch state.
Optionally, the target antenna tuning switch state determining module 520 is further configured to:
if the use scene is a two-hand holding use scene, searching an antenna tuning switch state corresponding to the two-hand holding use scene from a preset mapping table, and determining the antenna tuning switch state as a target antenna tuning switch state;
if the use scene is an earphone mode call use scene, searching an antenna tuning switch state corresponding to the earphone mode call use scene from a preset mapping table, and determining the antenna tuning switch state as a target antenna tuning switch state;
and if the use scene is the shielded use scene, searching the antenna tuning switch state corresponding to the shielded use scene from a preset mapping table, and determining the antenna tuning switch state as the target antenna tuning switch state.
Optionally, the target antenna tuning switch state switching module 530 is further configured to:
judging whether the time of the terminal equipment in the use scene exceeds preset time or not;
and if so, controlling the modem to switch the antenna tuning switch to a target antenna tuning switch state.
Optionally, the scene obtaining module 510 is further configured to:
acquiring the peak time of use of the terminal equipment according to the user behavior record;
and acquiring the current use scene of the terminal equipment in the peak period.
The device can execute the methods provided by all the embodiments of the application, and has corresponding functional modules and beneficial effects for executing the methods. For details of the technology not described in detail in this embodiment, reference may be made to the methods provided in all the foregoing embodiments of the present application.
Fig. 6 is a schematic structural diagram of a terminal device according to an embodiment of the present application. As shown in fig. 6, the terminal device 600 comprises a memory 601 and a processor 602, wherein the processor 602 is configured to perform the following steps:
acquiring a current use scene of the terminal equipment;
determining the state of a target antenna tuning switch according to the use scene;
controlling a modem to switch an antenna tuning switch to the target antenna tuning switch state.
Fig. 7 is a schematic structural diagram of another terminal device provided in an embodiment of the present application. As shown in fig. 7, the terminal may include: a housing (not shown), a memory 701, a Central Processing Unit (CPU) 702 (also called a processor, hereinafter referred to as CPU), a computer program stored in the memory 701 and operable on the processor 702, a circuit board (not shown), and a power circuit (not shown). The circuit board is arranged in a space enclosed by the shell; the CPU702 and the memory 701 are provided on the circuit board; the power supply circuit is used for supplying power to each circuit or device of the terminal; the memory 701 is used for storing executable program codes; the CPU702 executes a program corresponding to the executable program code by reading the executable program code stored in the memory 701.
The terminal further comprises: peripheral interfaces 703, RF (Radio Frequency) circuitry 705, audio circuitry 706, speakers 711, power management chip 708, input/output (I/O) subsystems 709, touch screen 712, other input/control devices 710, and external port 704, which communicate over one or more communication buses or signal lines 707.
It should be understood that the illustrated terminal device 700 is merely one example of a terminal, and that the terminal device 700 may have more or fewer components than shown in the figures, may combine two or more components, or may have a different configuration of components. The various components shown in the figures may be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and/or application specific integrated circuits.
The following describes in detail the terminal device for controlling an antenna tuning switch provided in this embodiment, where the terminal device is a smart phone as an example.
A memory 701, the memory 701 being accessible by the CPU702, the peripheral interface 703, and the like, the memory 701 may include high speed random access memory, and may also include non-volatile memory, such as one or more magnetic disk storage devices, flash memory devices, or other volatile solid state storage devices.
A peripheral interface 703, said peripheral interface 703 may connect input and output peripherals of the device to the CPU702 and the memory 701.
An I/O subsystem 709, which I/O subsystem 709 may connect input and output peripherals on the device, such as a touch screen 712 and other input/control devices 710, to the peripheral interface 703. The I/O subsystem 709 may include a display controller 7091 and one or more input controllers 7092 for controlling other input/control devices 710. Where one or more input controllers 7092 receive electrical signals from or transmit electrical signals to other input/control devices 710, the other input/control devices 710 may include physical buttons (push buttons, rocker buttons, etc.), dials, slide switches, joysticks, click wheels. It is worth noting that the input controller 7092 may be connected to any one of the following: a keyboard, an infrared port, a USB interface, and a pointing device such as a mouse.
The touch screen 712 may be a resistive type, a capacitive type, an infrared type, or a surface acoustic wave type, according to the operation principle of the touch screen and the classification of a medium for transmitting information. Classified by the installation method, the touch screen 712 may be: external hanging, internal or integral. Classified according to technical principles, the touch screen 712 may be: a vector pressure sensing technology touch screen, a resistive technology touch screen, a capacitive technology touch screen, an infrared technology touch screen, or a surface acoustic wave technology touch screen.
A touch screen 712, the touch screen 712 being an input interface and an output interface between the user terminal and the user, displaying visual output to the user, which may include graphics, text, icons, video, and the like. Optionally, the touch screen 712 sends an electrical signal (e.g., an electrical signal of the touch surface) triggered by the user on the touch screen to the processor 702.
The display controller 7091 in the I/O subsystem 709 receives electrical signals from the touch screen 712 or transmits electrical signals to the touch screen 712. The touch screen 712 detects a contact on the touch screen, and the display controller 7091 converts the detected contact into an interaction with a user interface object displayed on the touch screen 712, i.e., implements a human-computer interaction, and the user interface object displayed on the touch screen 712 may be an icon for running a game, an icon networked to a corresponding network, or the like. It is worth mentioning that the device may also comprise a light mouse, which is a touch sensitive surface that does not show visual output, or an extension of the touch sensitive surface formed by the touch screen.
The RF circuit 705 is mainly used to establish communication between the smart speaker and a wireless network (i.e., a network side), and implement data reception and transmission between the smart speaker and the wireless network. Such as sending and receiving short messages, e-mails, etc.
The audio circuit 706 is mainly used to receive audio data from the peripheral interface 703, convert the audio data into an electric signal, and transmit the electric signal to the speaker 711.
And the loudspeaker 711 is used for reducing the voice signal received by the intelligent sound box from the wireless network through the RF circuit 705 into sound and playing the sound to the user.
And a power management chip 708 for supplying power and managing power to the hardware connected to the CPU702, the I/O subsystem, and the peripheral interface.
In this embodiment, the central processor 702 is configured to:
acquiring a current use scene of the terminal equipment;
determining the state of a target antenna tuning switch according to the use scene;
controlling a modem to switch an antenna tuning switch to the target antenna tuning switch state.
Further, the acquiring the current usage scenario of the terminal device includes:
detecting at least one running state information of the terminal equipment;
and determining the current use scene of the terminal equipment according to the at least one piece of running state information.
Further, the operation state information includes sensor state information, screen state information, call state information, and foreground application information, and determining the current usage scenario of the terminal device according to the at least one operation state information includes:
if the screen state information is a horizontal screen state and foreground application program information is a target application program, determining that the terminal equipment is in a scene of holding both hands horizontally;
if the sensor state information indicates that the distance between the screen and the barrier is smaller than a first preset distance and the call state information indicates that the terminal equipment is in a call using scene in a receiver mode;
and if the distance between the machine body and the obstacle at the preset position is smaller than a second preset distance, the terminal equipment is determined to be in a sheltered use scene.
Further, before obtaining the usage scenario where the terminal device is currently located, the method further includes:
debugging the state of an antenna tuning switch according to a use scene to obtain a debugging result;
establishing a preset mapping table of a use scene and an antenna tuning switch state according to the debugging result;
correspondingly, the determining the target antenna tuning switch state according to the usage scenario includes:
acquiring the preset mapping table;
and searching the antenna tuning switch state corresponding to the use scene from the preset mapping table, and determining the antenna tuning switch state as a target antenna tuning switch state.
Further, the searching for the antenna tuning switch state corresponding to the usage scenario from the preset mapping table includes:
if the use scene is a double-hand holding use scene, searching an antenna tuning switch state corresponding to the double-hand holding use scene from the preset mapping table, and determining the antenna tuning switch state as a target antenna tuning switch state;
if the use scene is an earphone mode call use scene, searching an antenna tuning switch state corresponding to the earphone mode call use scene from the preset mapping table, and determining the antenna tuning switch state as a target antenna tuning switch state;
and if the use scene is a blocked use scene, searching the antenna tuning switch state corresponding to the blocked use scene from the preset mapping table, and determining the antenna tuning switch state as a target antenna tuning switch state.
Further, the controlling the modem to switch an antenna tuning switch to the target antenna tuning switch state includes:
judging whether the time of the terminal equipment in the use scene exceeds preset time or not;
and if so, controlling the modem to switch the antenna tuning switch to the target antenna tuning switch state.
Further, the acquiring the current usage scenario of the terminal device includes:
acquiring the peak time of use of the terminal equipment according to the user behavior record;
and acquiring the current use scene of the terminal equipment in the peak period.
The embodiments of the present application also provide a storage medium containing terminal device executable instructions, which when executed by a terminal device processor, are used to execute a method for controlling an antenna tuning switch.
The computer storage media of the embodiments of the present application may take any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for aspects of the present application may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + +, or the like, as well as conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
Of course, the storage medium provided in the embodiments of the present application contains computer-executable instructions, and the computer-executable instructions are not limited to the antenna tuning switch control operation described above, and may also perform related operations in the antenna tuning switch control method provided in any embodiments of the present application.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present application and the technical principles employed. It will be understood by those skilled in the art that the present application is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the application. Therefore, although the present application has been described in more detail with reference to the above embodiments, the present application is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present application, and the scope of the present application is determined by the scope of the appended claims.

Claims (7)

1. A method for controlling an antenna tuning switch, comprising:
detecting at least one running state information of the terminal equipment;
acquiring the peak time of use of the terminal equipment according to the user behavior record; determining a use scene where the terminal equipment is currently located according to the at least one running state information in the peak period;
determining the state of a target antenna tuning switch according to the use scene;
judging whether the time of the terminal equipment in the use scene exceeds preset time or not;
if yes, controlling a modem to switch the antenna tuning switch state to the target antenna tuning switch state;
the running state information comprises sensor state information, screen state information, call state information and foreground application information.
2. The method according to claim 1, wherein the determining the current usage scenario of the terminal device according to the at least one operation status information comprises:
if the screen state information is a horizontal screen state and foreground application program information is a target application program, determining that the terminal equipment is in a scene of holding both hands horizontally;
if the sensor state information indicates that the distance between the screen and the barrier is smaller than a first preset distance and the call state information indicates that the terminal equipment is in a call using scene in a receiver mode;
and if the distance between the machine body and the obstacle at the preset position is smaller than a second preset distance, the terminal equipment is determined to be in a sheltered use scene.
3. The control method according to claim 2, before acquiring the usage scenario in which the terminal device is currently located, further comprising:
debugging the state of an antenna tuning switch according to a use scene to obtain a debugging result;
establishing a preset mapping table of a use scene and an antenna tuning switch state according to the debugging result;
correspondingly, the determining the target antenna tuning switch state according to the usage scenario includes:
acquiring the preset mapping table;
and searching the antenna tuning switch state corresponding to the use scene from the preset mapping table, and determining the antenna tuning switch state as a target antenna tuning switch state.
4. The control method according to claim 3, wherein the searching for the antenna tuning switch state corresponding to the usage scenario from the preset mapping table comprises:
if the use scene is a double-hand holding use scene, searching an antenna tuning switch state corresponding to the double-hand holding use scene from the preset mapping table, and determining the antenna tuning switch state as a target antenna tuning switch state;
if the use scene is an earphone mode call use scene, searching an antenna tuning switch state corresponding to the earphone mode call use scene from the preset mapping table, and determining the antenna tuning switch state as a target antenna tuning switch state;
and if the use scene is a blocked use scene, searching the antenna tuning switch state corresponding to the blocked use scene from the preset mapping table, and determining the antenna tuning switch state as a target antenna tuning switch state.
5. A control apparatus for an antenna tuning switch, comprising:
the terminal equipment comprises a use scene acquisition module, a service scene acquisition module and a service scene acquisition module, wherein the use scene acquisition module is used for acquiring a use scene in which the terminal equipment is currently located;
the target antenna tuning switch state determining module is used for determining the target antenna tuning switch state according to the use scene;
the target antenna tuning switch state switching module is used for controlling the modem to switch the antenna tuning switch state to the target antenna tuning switch state;
the usage scenario acquisition module is further configured to:
detecting at least one running state information of the terminal equipment;
acquiring the peak time of use of the terminal equipment according to the user behavior record; determining a use scene where the terminal equipment is currently located according to at least one piece of running state information in the peak period;
the target antenna tuning switch state switching module is further configured to: judging whether the time of the terminal equipment in the use scene exceeds preset time or not;
if yes, controlling a modem to switch the antenna tuning switch state to the target antenna tuning switch state;
the running state information comprises sensor state information, screen state information, call state information and foreground application information.
6. A terminal device, comprising: processor, memory and a computer program stored on the memory and executable on the processor, which when executed by the processor implements the control method according to any one of claims 1 to 4.
7. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the control method according to any one of claims 1 to 4.
CN201711243633.5A 2017-11-30 2017-11-30 Antenna tuning switch control method and device, terminal equipment and storage medium Active CN107835033B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711243633.5A CN107835033B (en) 2017-11-30 2017-11-30 Antenna tuning switch control method and device, terminal equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711243633.5A CN107835033B (en) 2017-11-30 2017-11-30 Antenna tuning switch control method and device, terminal equipment and storage medium

Publications (2)

Publication Number Publication Date
CN107835033A CN107835033A (en) 2018-03-23
CN107835033B true CN107835033B (en) 2020-06-05

Family

ID=61646979

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711243633.5A Active CN107835033B (en) 2017-11-30 2017-11-30 Antenna tuning switch control method and device, terminal equipment and storage medium

Country Status (1)

Country Link
CN (1) CN107835033B (en)

Families Citing this family (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108712178A (en) * 2018-04-25 2018-10-26 深圳市万普拉斯科技有限公司 The method, apparatus and mobile terminal of intelligent tuning antenna
CN108833683B (en) * 2018-05-28 2021-02-02 Oppo广东移动通信有限公司 Dynamic antenna adjustment implementation method and related product
CN110753396B (en) * 2018-07-23 2021-08-27 大唐移动通信设备有限公司 Method and device for determining switch state
CN109217909B (en) * 2018-09-30 2023-11-14 努比亚技术有限公司 Antenna switching method, mobile terminal and computer storage medium
CN109274441B (en) * 2018-11-06 2021-08-24 维沃移动通信有限公司 Tuning method and terminal equipment
CN109450508B (en) * 2018-11-26 2022-04-01 维沃移动通信有限公司 Antenna determination method and device and mobile terminal
CN110224732B (en) * 2019-04-19 2022-09-23 维沃移动通信(深圳)有限公司 Antenna switching method and terminal equipment
US11533640B2 (en) * 2019-11-01 2022-12-20 Qualcomm Incorporated Machine learning-assisted use case classification and adaptive antenna tuning
CN111147091B (en) * 2019-12-31 2021-06-04 上海摩勤智能技术有限公司 Antenna tuning switch logic control method, system and terminal
CN114513572A (en) * 2020-11-16 2022-05-17 深圳市万普拉斯科技有限公司 Method and device for switching antenna of terminal equipment and terminal
CN113489835A (en) * 2021-06-11 2021-10-08 Tcl通讯(宁波)有限公司 Tuning method of communication equipment, terminal and storage medium
CN113541723B (en) * 2021-07-27 2023-04-18 上海商米科技集团股份有限公司 System and method for handheld terminal talkback antenna and Tuner tuning
CN115801079A (en) * 2021-09-10 2023-03-14 中兴通讯股份有限公司 Antenna switching method, device, equipment and storage medium
CN117081622B (en) * 2023-09-18 2024-03-15 荣耀终端有限公司 Antenna state control method, chip, electronic device, and readable storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101860377A (en) * 2010-05-11 2010-10-13 中兴通讯股份有限公司 Mobile communication terminal and method for managing antenna of same
CN106027113A (en) * 2016-05-12 2016-10-12 广东欧珀移动通信有限公司 Method for improving stability of antenna and terminal
CN106549229A (en) * 2016-10-20 2017-03-29 惠州Tcl移动通信有限公司 A kind of mobile terminal reduces the method and system of antenna tuning switching loss

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8072285B2 (en) * 2008-09-24 2011-12-06 Paratek Microwave, Inc. Methods for tuning an adaptive impedance matching network with a look-up table
CN102098243B (en) * 2010-12-29 2016-04-13 中兴通讯股份有限公司 antenna impedance matching device and method
CN104049851B (en) * 2013-03-11 2018-06-01 联想(北京)有限公司 A kind of control method, device and electronic equipment
CN104426590A (en) * 2013-08-19 2015-03-18 中兴通讯股份有限公司 Method for reducing electromagnetic wave energy specific absorption rate and mobile terminal
CN106163225A (en) * 2015-04-28 2016-11-23 中兴通讯股份有限公司 Calorie control method and device
CN106131334B (en) * 2016-07-11 2019-12-10 Oppo广东移动通信有限公司 Method and device for controlling screen state of mobile terminal
CN106374969B (en) * 2016-09-30 2019-01-22 维沃移动通信有限公司 A kind of switching method and mobile terminal of antenna

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101860377A (en) * 2010-05-11 2010-10-13 中兴通讯股份有限公司 Mobile communication terminal and method for managing antenna of same
CN106027113A (en) * 2016-05-12 2016-10-12 广东欧珀移动通信有限公司 Method for improving stability of antenna and terminal
CN106549229A (en) * 2016-10-20 2017-03-29 惠州Tcl移动通信有限公司 A kind of mobile terminal reduces the method and system of antenna tuning switching loss

Also Published As

Publication number Publication date
CN107835033A (en) 2018-03-23

Similar Documents

Publication Publication Date Title
CN107835033B (en) Antenna tuning switch control method and device, terminal equipment and storage medium
CN107484231B (en) Screen parameter adjusting method, device, terminal and computer readable storage medium
CN108024128B (en) Control method and device for Bluetooth music playing, terminal equipment and storage medium
EP3531290A1 (en) Data backup method, apparatus, electronic device, storage medium, and system
CN108111974A (en) Control method, device, storage medium and the terminal of locating module
WO2018049897A1 (en) Data backup method and device
CN107770759B (en) Bluetooth voice link establishing method and device, storage medium and mobile terminal
CN106911956B (en) Audio data playing method and device and mobile terminal
CN108924375B (en) Ringtone volume processing method and device, storage medium and terminal
CN111373726B (en) Parameter adjustment method and terminal for audio service
KR20190049801A (en) Data sharing methods and terminals
CN107888768B (en) Unlocking control method, terminal and computer readable storage medium
CN106776259B (en) Mobile terminal frame rate detection method and device and mobile terminal
CN108322602B (en) Method, terminal and computer readable storage medium for processing application no response
KR20210017030A (en) Electronic device for reducing power consumption and operating method thereof
CN108234738B (en) Volume adjusting method, device, terminal and storage medium
CN107508996B (en) Safety positioning device, method, terminal equipment and storage medium
CN108055635B (en) Position information acquisition method and device, storage medium and terminal
CN109525919B (en) On-off control device, on-off control method, system and storage medium
CN108834013A (en) A kind of wearable device electric quantity balancing method and Related product
WO2020061824A1 (en) Charging prompt method and related product
CN109614248B (en) Message compression method, device, storage medium and terminal equipment
CN110673761B (en) Touch key detection method and terminal equipment thereof
US20150070360A1 (en) Method and mobile terminal for drawing sliding trace
CN111045737A (en) Equipment identifier acquisition method and device, terminal equipment and storage medium

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
CB02 Change of applicant information

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP., Ltd.

Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP., Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant