CN109743443B - Terminal control method, terminal and computer readable storage medium - Google Patents

Terminal control method, terminal and computer readable storage medium Download PDF

Info

Publication number
CN109743443B
CN109743443B CN201811557229.XA CN201811557229A CN109743443B CN 109743443 B CN109743443 B CN 109743443B CN 201811557229 A CN201811557229 A CN 201811557229A CN 109743443 B CN109743443 B CN 109743443B
Authority
CN
China
Prior art keywords
terminal
antenna
diversity reception
communication quality
reception function
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
CN201811557229.XA
Other languages
Chinese (zh)
Other versions
CN109743443A (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.)
Nubia Technology Co Ltd
Original Assignee
Nubia Technology 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 Nubia Technology Co Ltd filed Critical Nubia Technology Co Ltd
Priority to CN201811557229.XA priority Critical patent/CN109743443B/en
Publication of CN109743443A publication Critical patent/CN109743443A/en
Application granted granted Critical
Publication of CN109743443B publication Critical patent/CN109743443B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Telephone Function (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention discloses a terminal control method, a terminal and a computer readable storage medium, wherein the method judges whether the terminal is in a global system for mobile communication (GSM) communication state currently; if yes, judging whether the terminal is in a charging state currently; if yes, judging whether the diversity receiving function of the terminal is opened or not; if the charging state is the current diversity receiving state, the diversity receiving function of the first antenna is turned off, wherein the first antenna is the antenna in the current diversity receiving state, the problem that the communication quality is poor in the existing charging process and the user experience satisfaction degree is low is solved, and the terminal and the computer readable storage medium reduce interference caused by charging, improve the communication quality and improve the user experience satisfaction degree by implementing the scheme.

Description

Terminal control method, terminal and computer readable storage medium
Technical Field
The present invention relates to the field of terminal technologies, and in particular, to a terminal control method, a terminal, and a computer-readable storage medium.
Background
With the development of terminal technology, the popularity of terminals such as smart phones and tablet computers is increasing, and the smart terminals become an indispensable part of people in life and work. At present, an intelligent terminal generally generates radiation interference in a charging process, an antenna of the terminal receives the radiation interference generated during charging, antenna sensitivity is deteriorated, receiving performance is deteriorated, communication quality is further affected, and user experience satisfaction is low.
Disclosure of Invention
The invention aims to solve the technical problem that in the existing charging process, the communication quality is poor, so that the user experience satisfaction is low, and provides a terminal, a terminal control method and a computer readable storage medium.
In order to solve the above technical problem, the present invention provides a terminal control method, including:
judging whether the terminal is in a global system for mobile communications (GSM) communication state currently;
if yes, judging whether the terminal is in a charging state currently;
if yes, judging whether the diversity receiving function of the terminal is opened or not;
if yes, the diversity reception function of the first antenna is closed, and the first antenna is the antenna in the diversity reception state currently.
Optionally, before turning off the diversity reception function of the first antenna, the method further includes:
judging whether the distance between the first antenna and the charging interface is smaller than a preset distance threshold value or not; if yes, closing the diversity reception function of the first antenna;
or the like, or, alternatively,
judging whether the first antenna is the antenna closest to the charging interface in the terminal; if yes, the diversity reception function of the first antenna is closed, and the terminal comprises at least two antennas.
Optionally, after the diversity reception function of the first antenna is turned off, the method further includes:
when the distance between the first antenna and the charging interface is smaller than a preset distance threshold, opening the diversity reception function of a second antenna, wherein the second antenna is an antenna of which the distance between the terminal and the charging interface is larger than the preset distance threshold;
and when the first antenna is the antenna closest to the charging interface in the terminal, the diversity reception function of the third antenna is turned on, and the third antenna is the antenna farthest from the charging interface in the terminal.
Optionally, before turning off the diversity reception function of the first antenna, the method further includes:
judging whether the current communication quality of the terminal is superior to a preset communication quality standard or not;
if not, the diversity reception function of the first antenna is closed.
Optionally, the determining whether the current communication quality of the terminal is higher than the preset communication quality standard includes:
and judging whether the current communication quality of the terminal is better than a preset communication quality standard or not according to the current signal strength and/or signal-to-noise ratio of the terminal.
Optionally, before turning off the diversity reception function of the first antenna, the method further includes:
when the terminal diversity function is judged to be turned on, stopping charging within a preset first time period;
judging whether the communication quality in the charging stopping process is better than the communication quality before the charging stopping process;
if yes, the diversity reception function of the first antenna is turned off.
Optionally, after the diversity reception function of the first antenna is turned off, the method further includes:
judging whether a main set receiving function of the terminal is opened or not;
if not, the main set receiving function of the first antenna is turned on.
Optionally, before turning off the diversity reception function of the first antenna, the method further includes:
judging whether a main set receiving function of the terminal is opened or not;
if yes, closing the diversity reception function of the terminal within a preset second time period;
judging whether the communication quality of the terminal in the closing process of the diversity receiving function is better than the communication quality before the closing of the diversity receiving function;
if yes, the diversity reception function of the first antenna is turned off.
Furthermore, the invention also provides a terminal, which comprises a processor, a memory and a communication bus;
the communication bus is used for realizing connection communication between the processor and the memory;
the processor is configured to execute one or more programs stored in the memory to implement the steps of any of the above-described terminal control methods.
Further, the present invention also provides a computer-readable storage medium storing one or more programs, which are executable by one or more processors to implement the steps of the terminal control method of any one of the above.
Advantageous effects
The invention provides a terminal control method, a terminal and a computer readable storage medium, aiming at the problem that the communication quality is poor in the existing charging process, so that the user experience satisfaction degree is low, whether the terminal is in the GSM communication state or not is judged; if yes, judging whether the terminal is in a charging state currently; if yes, judging whether the diversity receiving function of the terminal is opened or not; if so, closing the diversity reception function of the first antenna, wherein the first antenna is an antenna in a diversity reception state at present; that is to say, in the present invention, when the terminal is in the GSM communication state and in the charging state, the diversity reception function of the terminal is turned off, and when the terminal performs diversity reception, the terminal receives more interference signals generated by charging, which results in the reduction of the terminal antenna sensitivity.
Drawings
The invention will be further described with reference to the accompanying drawings and examples, in which:
fig. 1 is a schematic diagram of a hardware structure of an optional mobile terminal for implementing various embodiments of the present invention.
FIG. 2 is a diagram of a wireless communication system for the mobile terminal shown in FIG. 1;
fig. 3 is a basic flowchart of a terminal control method according to a first embodiment of the present invention;
fig. 4 is a flowchart of terminal communication quality determination according to a first embodiment of the present invention;
fig. 5 is a detailed flowchart of a terminal control method according to a second embodiment of the present invention;
fig. 6 is a schematic structural diagram of a terminal according to a third embodiment of the present invention.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
In the following description, suffixes such as "module", "component", or "unit" used to denote elements are used only for facilitating the explanation of the present invention, and have no specific meaning in itself. Thus, "module", "component" or "unit" may be used mixedly.
The terminal may be implemented in various forms. For example, the terminal described in the present invention may include a mobile terminal such as a mobile phone, a tablet computer, a notebook computer, a palmtop computer, a Personal Digital Assistant (PDA), a Portable Media Player (PMP), a navigation device, a wearable device, a smart band, a pedometer, and the like, and a fixed terminal such as a Digital TV, a desktop computer, and the like.
The following description will be given by way of example of a mobile terminal, and it will be understood by those skilled in the art that the construction according to the embodiment of the present invention can be applied to a fixed type terminal, in addition to elements particularly used for mobile purposes.
Referring to fig. 1, which is a schematic diagram of a hardware structure of a mobile terminal for implementing various embodiments of the present invention, the mobile terminal 100 may include: RF (Radio Frequency) unit 101, WiFi module 102, audio output unit 103, a/V (audio/video) input unit 104, sensor 105, display unit 106, user input unit 107, interface unit 108, memory 109, processor 110, and power supply 111. Those skilled in the art will appreciate that the mobile terminal architecture shown in fig. 1 is not intended to be limiting of mobile terminals, which may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
The following describes each component of the mobile terminal in detail with reference to fig. 1:
the radio frequency unit 101 may be configured to receive and transmit signals during information transmission and reception or during a call, and specifically, receive downlink information of a base station and then process the downlink information to the processor 110; in addition, the uplink data is transmitted to the base station. Typically, radio frequency unit 101 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 101 can also communicate with a network and other devices through wireless communication. The wireless communication may use any communication standard or protocol, including but not limited to GSM (Global System for Mobile communications), GPRS (General Packet Radio Service), CDMA2000(Code Division Multiple Access 2000), WCDMA (Wideband Code Division Multiple Access), TD-SCDMA (Time Division-Synchronous Code Division Multiple Access), FDD-LTE (Frequency Division duplex Long Term Evolution), and TDD-LTE (Time Division duplex Long Term Evolution).
WiFi belongs to short-distance wireless transmission technology, and the mobile terminal can help a user to receive and send e-mails, browse webpages, access streaming media and the like through the WiFi module 102, and provides wireless broadband internet access for the user. Although fig. 1 shows the WiFi module 102, it is understood that it does not belong to the essential constitution of the mobile terminal, and may be omitted entirely as needed within the scope not changing the essence of the invention.
The audio output unit 103 may convert audio data received by the radio frequency unit 101 or the WiFi module 102 or stored in the memory 109 into an audio signal and output as sound when the mobile terminal 100 is in a call signal reception mode, a call mode, a recording mode, a voice recognition mode, a broadcast reception mode, or the like. Also, the audio output unit 103 may also provide audio output related to a specific function performed by the mobile terminal 100 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 103 may include a speaker, a buzzer, and the like.
The a/V input unit 104 is used to receive audio or video signals. The a/V input Unit 104 may include a Graphics Processing Unit (GPU) 1041 and a microphone 1042, the Graphics processor 1041 Processing image data of still pictures or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 106. The image frames processed by the graphic processor 1041 may be stored in the memory 109 (or other storage medium) or transmitted via the radio frequency unit 101 or the WiFi module 102. The microphone 1042 may receive sounds (audio data) via the microphone 1042 in a phone call mode, a recording mode, a voice recognition mode, or the like, and may be capable of processing such sounds into audio data. The processed audio (voice) data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 101 in case of a phone call mode. The microphone 1042 may implement various types of noise cancellation (or suppression) algorithms to cancel (or suppress) noise or interference generated in the course of receiving and transmitting audio signals.
The mobile terminal 100 also includes at least one sensor 105, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that can adjust the brightness of the display panel 1061 according to the brightness of ambient light, and a proximity sensor that can turn off the display panel 1061 and/or a backlight when the mobile terminal 100 is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when stationary, and can be used for applications of recognizing the posture of a mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a fingerprint sensor, a pressure sensor, an iris sensor, a molecular sensor, a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which can be configured on the mobile phone, further description is omitted here.
The display unit 106 is used to display information input by a user or information provided to the user. The Display unit 106 may include a Display panel 1061, and the Display panel 1061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 107 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the mobile terminal. Specifically, the user input unit 107 may include a touch panel 1071 and other input devices 1072. The touch panel 1071, also referred to as a touch screen, may collect a touch operation performed by a user on or near the touch panel 1071 (e.g., an operation performed by the user on or near the touch panel 1071 using a finger, a stylus, or any other suitable object or accessory), and drive a corresponding connection device according to a predetermined program. The touch panel 1071 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 110, and can receive and execute commands sent by the processor 110. In addition, the touch panel 1071 may be implemented in various types, such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to the touch panel 1071, the user input unit 107 may include other input devices 1072. In particular, other input devices 1072 may include, but are not limited to, one or more of a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like, and are not limited to these specific examples.
Further, the touch panel 1071 may cover the display panel 1061, and when the touch panel 1071 detects a touch operation thereon or nearby, the touch panel 1071 transmits the touch operation to the processor 110 to determine the type of the touch event, and then the processor 110 provides a corresponding visual output on the display panel 1061 according to the type of the touch event. Although the touch panel 1071 and the display panel 1061 are shown in fig. 1 as two separate components to implement the input and output functions of the mobile terminal, in some embodiments, the touch panel 1071 and the display panel 1061 may be integrated to implement the input and output functions of the mobile terminal, and is not limited herein.
The interface unit 108 serves as an interface through which at least one external device is connected to the mobile terminal 100. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 108 may be used to receive input (e.g., data information, power, etc.) from external devices and transmit the received input to one or more elements within the mobile terminal 100 or may be used to transmit data between the mobile terminal 100 and external devices.
The memory 109 may be used to store software programs as well as various data. The memory 109 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 109 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The processor 110 is a control center of the mobile terminal, connects various parts of the entire mobile terminal using various interfaces and lines, and performs various functions of the mobile terminal and processes data by operating or executing software programs and/or modules stored in the memory 109 and calling data stored in the memory 109, thereby performing overall monitoring of the mobile terminal. Processor 110 may include one or more processing units; preferably, the processor 110 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 110.
The mobile terminal 100 may further include a power supply 111 (e.g., a battery) for supplying power to various components, and preferably, the power supply 111 may be logically connected to the processor 110 via a power management system, so as to manage charging, discharging, and power consumption management functions via the power management system.
Although not shown in fig. 1, the mobile terminal 100 may further include a bluetooth module or the like, which is not described in detail herein.
In order to facilitate understanding of the embodiments of the present invention, a communication network system on which the mobile terminal of the present invention is based is described below.
Referring to fig. 2, fig. 2 is an architecture diagram of a communication Network system according to an embodiment of the present invention, where the communication Network system is an LTE system of a universal mobile telecommunications technology, and the LTE system includes a UE (User Equipment) 201, an E-UTRAN (Evolved UMTS Terrestrial Radio Access Network) 202, an EPC (Evolved Packet Core) 203, and an IP service 204 of an operator, which are in communication connection in sequence.
Specifically, the UE201 may be the terminal 100 described above, and is not described herein again.
The E-UTRAN202 includes eNodeB2021 and other eNodeBs 2022, among others. Among them, the eNodeB2021 may be connected with other eNodeB2022 through backhaul (e.g., X2 interface), the eNodeB2021 is connected to the EPC203, and the eNodeB2021 may provide the UE201 access to the EPC 203.
The EPC203 may include an MME (Mobility Management Entity) 2031, an HSS (Home Subscriber Server) 2032, other MMEs 2033, an SGW (Serving gateway) 2034, a PGW (PDN gateway) 2035, and a PCRF (Policy and Charging Rules Function) 2036, and the like. The MME2031 is a control node that handles signaling between the UE201 and the EPC203, and provides bearer and connection management. HSS2032 is used to provide registers to manage functions such as home location register (not shown) and holds subscriber specific information about service characteristics, data rates, etc. All user data may be sent through SGW2034, PGW2035 may provide IP address assignment for UE201 and other functions, and PCRF2036 is a policy and charging control policy decision point for traffic data flow and IP bearer resources, which selects and provides available policy and charging control decisions for a policy and charging enforcement function (not shown).
The IP services 204 may include the internet, intranets, IMS (IP Multimedia Subsystem), or other IP services, among others.
Although the LTE system is described as an example, it should be understood by those skilled in the art that the present invention is not limited to the LTE system, but may also be applied to other wireless communication systems, such as GSM, CDMA2000, WCDMA, TD-SCDMA, and future new network systems.
Based on the above mobile terminal hardware structure and communication network system, the present invention provides various embodiments of the method.
First embodiment
In order to solve the problem that in the prior art, in the charging process, an antenna of a terminal may receive radiation interference during charging, which causes deterioration of antenna sensitivity and deterioration of receiving performance, and further affects communication quality, resulting in low user experience satisfaction, this embodiment provides a terminal control method, which may specifically refer to fig. 3, where fig. 3 is a basic flowchart of the terminal control method provided in this embodiment, and the terminal control method includes:
s301, judging whether the terminal is in a GSM (Global System For Mobile Communications) communication state currently.
If yes, go to S302; if not, turning to S301, and continuously judging whether the terminal is in the GSM communication state currently. The terminal may be the terminal shown in fig. 1, and of course, the terminal may also be another terminal.
That is to say, in this embodiment, it is determined whether the terminal is currently in the GSM communication state, and when the terminal is in the GSM communication state, the process goes to S302; when the terminal is not in the GSM communication state, S301 is switched. The GSM communication state of the terminal is a state in which the terminal communicates through GSM, for example, a call is made through GSM, and internet access is made through GSM.
S302, judging whether the terminal is in a charging state at present.
If yes, turning to S303; if not, turning to S302, and continuously judging whether the terminal is in the charging state currently.
That is, when it is determined that the terminal is currently in the GSM communication state, it is continuously determined whether the terminal is currently in the charging state, if so, the process goes to S303, and if not, the process goes to S302.
It should be noted that, in this embodiment, it is determined whether the terminal is currently in the GSM communication state, and then it is determined whether the terminal is currently in the charging state; in other embodiments, it may also be determined whether the terminal is currently in the charging state first, and then determined whether the terminal is currently in the GSM communication state, or determined whether the terminal is currently in the charging state and the GSM communication state simultaneously. It is only necessary to go to S303 when the terminal is currently in the GSM communication state and the charging state.
And S303, judging whether the diversity receiving function of the terminal is opened or not.
If yes, go to S304; if not, ending.
It should be understood that the terminal may turn on the main set reception function to receive signals, may turn on the diversity reception function to receive signals, or may turn on both the main set reception function and the diversity reception function to receive signals. In this embodiment, when the diversity reception function of the terminal is in the on state, the process goes to S304 regardless of whether the main set reception function is on, and if the diversity reception function is not on, the process ends.
And S304, closing the diversity reception function of the first antenna.
In this embodiment, the diversity reception function of the first antenna is turned off. The first antenna is an antenna currently in a diversity reception state, that is, an antenna implementing a terminal diversity reception function before S304.
In this embodiment, if the current communication quality of the terminal is better, the diversity reception function of the first antenna is turned off, and the improvement on the communication quality of the terminal is not large. Therefore, before turning off the diversity reception function of the first antenna at S304, referring to fig. 4 below, the following steps may also be performed:
s401, judging whether the current communication quality of the terminal is superior to a preset communication quality standard.
If yes, ending; if not, go to S402.
It should be understood that the communication quality is generally determined by a communication parameter that can indicate the quality of the communication, such as signal strength, signal-to-noise ratio, and the like, and therefore in this embodiment, the communication quality standard may be set according to the communication parameter that can indicate the quality of the communication, and then whether the current communication quality of the terminal is better than the preset communication quality standard may be determined according to the current communication parameter value of the terminal and the communication parameter value in the communication quality standard, where the communication quality standard may be flexibly set according to actual needs. For example, the communication quality standard may include a signal strength threshold and/or a signal-to-noise ratio threshold, and then, whether the current communication quality of the terminal is better than the preset communication quality standard is determined according to the current signal strength and/or signal-to-noise ratio of the terminal. That is, the communication quality standard may include only a signal strength threshold, and at this time, it may be determined whether the current signal strength of the terminal is greater than a preset signal strength threshold, and if so, it is determined that the current communication quality of the terminal is better than the preset communication quality standard; if not, judging that the current communication quality of the terminal is lower than the preset communication quality standard. The communication quality index may include only a signal-to-noise ratio threshold, and at this time, it may be determined whether the current signal-to-noise ratio of the terminal is lower than a preset signal-to-noise ratio threshold, and if so, it is determined that the current communication quality of the terminal is better than a preset communication quality standard; if not, judging that the current communication quality of the terminal is lower than the preset communication quality standard. The communication quality standard may also include a signal strength threshold and a signal-to-noise ratio threshold, at this time, it may be determined whether the current signal strength of the terminal is greater than a preset signal strength threshold, and whether the signal-to-noise ratio is lower than a preset signal-to-noise ratio threshold, when the current signal strength of the terminal is greater than the preset signal strength threshold and the current signal-to-noise ratio of the terminal is lower than the preset signal-to-noise ratio threshold, it is determined that the current communication quality of the terminal is better than the preset communication quality standard, and under other conditions (for example, the current signal strength of the terminal is less than or equal to the current signal strength of the. Of course, the preset communication quality standard may also include parameters of other standard communication qualities, and the judgment standard may be referred to the above description.
S402, the diversity receiving function of the first antenna is closed.
That is, in this embodiment, the diversity reception function of the first antenna may be turned off only when the current communication quality of the terminal is lower than the preset communication quality standard.
In this embodiment, in most cases, the charging may interfere with the diversity reception of the antenna, but in some cases, the interference caused by the charging is small, and the influence on the reception performance of the antenna is small, so that before the diversity reception function of the first antenna is turned off in S304, the charging may be stopped within a preset first time period when it is determined that the diversity reception function of the terminal is turned on, and then it may be determined whether the communication quality during the charging stop is better than the communication quality before the charging stop, and if so, the diversity reception function of the first antenna is turned off; if not, the process is ended. The preset first time period can be flexibly set according to actual needs. For example, assuming that the preset first time period is 30 milliseconds, when the diversity function of the terminal is determined to be on, the charging is stopped for 30 milliseconds, and whether the communication quality within the 30 milliseconds is better than the communication quality before the charging is stopped is determined, if so, the diversity reception function of the first antenna is turned off; if not, ending. For comparison between the communication quality and the communication quality, reference may be made to the aforementioned determination manner between the communication quality and the communication quality standard, that is, the comparison is performed through the communication parameters, and details are not described here.
In this embodiment, in the charging process, the communication quality degradation of the terminal may not be caused by diversity reception, and therefore, before the diversity reception function of the first antenna is turned off in S304, it may be further determined whether the main set reception function of the terminal is turned on, if so, the diversity reception function of the terminal is turned off in a preset second time period, and it is determined whether the communication quality of the terminal is better than the communication quality before the diversity reception function is turned off in the process of turning off the diversity reception function, and if so, the diversity reception function of the first antenna is turned off. That is, in this embodiment, assuming that both the diversity reception function and the primary set reception function of the terminal are in the on state, the diversity reception function is turned off in the second time period, and it is determined whether the communication quality in the second time period is better than the communication quality before the diversity reception function is turned off, if so, the diversity reception function is turned off (that is, the diversity reception function of the first antenna is turned off), and if not, the operation is ended. The second time period can be flexibly set according to actual needs. The comparison between the communication quality and the communication quality may refer to the determination manner between the communication quality and the communication quality standard, that is, the comparison is performed through the communication parameters, and details are not described herein.
In this embodiment, the closer the antenna is to the charging interface, the greater the radiation interference is, and the worse the diversity reception performance is. Therefore, before the diversity reception function of the first antenna is turned off in S304, it may be further determined whether the distance between the first antenna and the charging interface is smaller than a preset distance threshold; if yes, closing the diversity reception function of the first antenna; if not, ending. The preset distance threshold may be flexibly set according to actual needs, for example, set to 2 centimeters, 3 centimeters, and the like. Or, if the terminal includes at least two antennas, it may also be determined whether an antenna closest to the charging interface in the terminal is in a GSM communication state, if so, the diversity reception function of the first antenna is turned off, and if not, the process is ended. Since the position of each antenna in the terminal is fixed and the position of the charging interface of the terminal is also fixed, the antenna close to the charging interface may be set as a target antenna in advance, and when the diversity reception function of the target communication is turned on during charging and in the GSM communication state, the diversity reception function of the antenna may be turned off. It should be understood that the charging interface is an interface used by the terminal to obtain electric energy, and for some terminals, the charging interface is a USB (Universal Serial Bus) interface; for some terminals, a charging interface is separately provided.
In this embodiment, after the diversity reception function of the first antenna is turned off, it may be further determined whether the main set reception function of the terminal is turned on, and if not, the main set reception function of the first antenna is turned on.
In this embodiment, after the diversity reception function of the first antenna is turned off, when the distance from the first antenna to the charging interface is smaller than a preset distance threshold, the diversity reception function of the second antenna is turned on, where the distance from the second antenna to the charging interface in the terminal is greater than the distance threshold; and when the first antenna is the antenna closest to the charging interface in the terminal, the diversity reception function of the third antenna is turned on, wherein the third antenna is the antenna farthest from the charging interface in the terminal.
The terminal control method provided by this embodiment first determines whether the terminal is currently in a GSM communication state; if yes, continuously judging whether the terminal is in a charging state at present; if yes, judging whether the diversity receiving function of the terminal is opened or not; if so, closing the diversity reception function of the first antenna, wherein the first antenna is the antenna in the diversity reception state currently; that is to say, in this embodiment, when the terminal is in the GSM communication state and in the charging state, the diversity reception function of the terminal is turned off, and when the terminal performs diversity reception, the terminal receives more interference signals generated by charging, which results in a reduction in the sensitivity of the terminal antenna.
Second embodiment
For better connection of the present invention, the present embodiment is described with reference to a more specific example, assuming that the terminal includes two antennas, one of the antennas is disposed above the terminal, the other is disposed below the terminal, and the charging interface (where, the USB interface is the charging interface) is disposed below the terminal. Referring to fig. 5 below, fig. 5 is a detailed flowchart of a terminal control method according to a second embodiment of the present invention, where the terminal control method includes:
s501, judging whether the terminal is in a GSM communication state currently.
If yes, turning to S502; if not, turning to S501, and continuously judging whether the terminal is in the GSM communication state currently.
And S502, judging whether the terminal is in a charging state at present.
If yes, go to S503; if not, ending.
In this embodiment, when it is determined that the terminal is in the GSM communication state and in the charging state, the operation goes to S503.
S503, judging whether the diversity receiving function of the terminal is opened.
If yes, turning to S504; if not, ending.
In this embodiment, after it is determined that the diversity reception function of the terminal is turned on, the process goes to S504.
S504, judging whether the current communication quality of the terminal is superior to a preset communication quality standard.
If so, the process is terminated, otherwise, the process goes to step S505.
In this embodiment, the communication quality standard includes a signal strength threshold and a signal-to-noise ratio threshold. When the current signal intensity of the terminal is greater than the signal intensity threshold value and the current signal-to-noise ratio of the terminal is greater than the signal-to-noise ratio threshold value, judging that the current communication quality of the terminal is superior to a preset communication quality standard, and ending; in other cases, the current communication quality of the terminal is determined to be lower than the preset communication quality standard, and the process goes to S505. In other embodiments, it may also be determined whether the current communication quality of the terminal is better than the preset communication quality standard through other manners.
In this embodiment, S501, S502, 403, and S504 are sequentially executed, and in other embodiments, S501, S502, 403, and S504 may also be executed in other orders, for example, S503 is executed first, then S504 is executed, S then S501 is executed, and finally S502 is executed; or S501, S502, S403, and S504 are simultaneously performed.
And S505, judging whether the first antenna is a lower antenna.
If yes, go to S506; if not, ending.
In this embodiment, the first antenna is currently in a diversity reception state, that is, an antenna currently implementing a diversity reception function in the terminal. In this embodiment, since the lower antenna is the antenna closest to the charging interface in the terminal, whether the first antenna is the antenna farthest from the charging interface in the terminal is determined by determining whether the first antenna of the terminal is the lower antenna, and if yes, the process goes to S506; if not, ending.
S506, judging whether the terminal master set receiving function is opened or not.
If yes, turning to S511; if not, go to S507.
In this embodiment, after determining that the first antenna is the lower antenna, it is determined whether the main set receiving function of the terminal is turned on, and if the current main set function of the terminal is turned on, it indicates that both the current main set receiving function and the diversity receiving function of the terminal are in an on state, and the process goes to S511. In this embodiment, since the lower antenna is an antenna in a diversity reception state, if the main set reception function of the terminal is turned on, the upper antenna is an antenna that realizes the main set reception function.
And S507, stopping charging within a preset first time period.
In this embodiment, after it is determined that the master set receiving state of the terminal is in the off state, the charging is stopped within a preset first time period. Wherein, the first time period can be flexibly set according to actual needs.
And S508, judging whether the communication quality in the charging stopping process is better than the communication quality before the charging stopping process.
If yes, go to S509, otherwise, end.
That is, it is determined whether the communication quality of the terminal during the first period of time in which charging is stopped is better than the communication quality before charging is stopped. In this embodiment, whether the communication quality during the charging stop is better than the communication quality before the charging stop is determined according to the signal strength and the signal-to-noise ratio of the terminal. When the signal intensity during the charging stopping process is higher than the signal intensity before the charging stopping process and the signal-to-noise ratio during the charging stopping process is lower than the signal-to-noise ratio before the charging stopping process, determining that the communication quality during the charging stopping process is better than the communication quality before the charging stopping process, and turning to S509; in other cases, it is determined that the communication quality during the stop of charging is lower than the communication quality before the stop of charging, and the process ends. Of course, in other embodiments, it may also be determined whether the communication quality during the charging stop process is better than the communication quality before the charging stop process by other means (for example, by other communication parameters).
S509, the diversity reception function of the first antenna is turned off.
In this embodiment, the first antenna is the lower antenna, that is, the diversity reception function of the lower antenna is turned off.
And S510, opening the diversity receiving function of the upper antenna.
In this embodiment, after S509, the diversity receiving function of the upper antenna is turned on, and the upper antenna is the antenna farthest from the charging interface in the terminal.
In other embodiments, after S509, the primary set receiving function of the first antenna may also be turned on; or, the main set receiving function of the first communication is started, and the diversity receiving function of the second antenna is started.
And S511, the diversity reception function of the terminal is closed in a preset second time period.
In this embodiment, when it is determined that the primary set reception function of the terminal is turned on, the diversity reception function of the terminal is turned off within a preset second time period.
S512, judging whether the communication quality of the terminal in the closing process of the diversity receiving function is better than the communication quality before the closing of the diversity receiving function.
If yes, go to S513; if not, ending.
Please refer to S508, which is not described herein again, to determine whether the communication quality of the terminal during the diversity reception is better than the communication quality before the diversity reception function is turned off.
S513, the diversity receiving function of the first antenna is turned off.
The first antenna is the lower antenna, i.e. the diversity reception function of the lower antenna is switched off.
And S514, starting the diversity receiving function of the upper antenna and starting the main diversity receiving function of the lower antenna.
In this embodiment, since the upper antenna is the antenna for implementing the main set receiving function before S514, in S514, the main set receiving function of the upper antenna is turned off first, and then the main set receiving function of the lower antenna is turned on.
The terminal control method provided by this embodiment first determines whether the terminal is currently in a GSM communication state; if yes, continuously judging whether the terminal is in a charging state at present; if yes, judging whether the diversity receiving function of the terminal is opened or not; if so, closing the diversity reception function of the first antenna, wherein the first antenna is the antenna in the diversity reception state currently; that is to say, in this embodiment, when the terminal is in the GSM communication state and in the charging state, the diversity reception function of the terminal is turned off, and when the terminal performs diversity reception, the terminal receives more interference signals generated by charging, which results in a reduction in the sensitivity of the antenna of the terminal.
Third embodiment
Referring to fig. 6, the terminal provided in this embodiment includes a processor 601, a memory 602, and a communication bus 603.
The communication bus 603 in this embodiment is used for implementing connection communication between the processor 601 and the memory 602;
the processor 601 is configured to execute one or more programs stored in the memory 602 to implement the following steps:
judging whether the terminal is in a GSM communication state at present;
if yes, judging whether the terminal is in a charging state currently;
if yes, judging whether the diversity receiving function of the terminal is opened or not;
if so, the diversity reception function of the first antenna is closed, wherein the first antenna is the antenna currently in the diversity reception state.
It should be noted that, in this embodiment, it is determined whether the terminal is currently in the GSM communication state, and then it is determined whether the terminal is currently in the charging state; in other embodiments, it may also be determined whether the terminal is currently in the charging state first, and then determined whether the terminal is currently in the GSM communication state, or determined whether the terminal is currently in the charging state and the GSM communication state simultaneously. As long as the next step is executed when the terminal is currently in the GSM communication state and the charging state.
In this embodiment, before turning off the diversity reception function of the first antenna, the processor 601 may execute one or more programs stored in the memory to implement the following steps: judging whether the current communication quality of the terminal is superior to a preset communication quality standard or not, and if so, ending; if not, the diversity reception function of the first antenna is turned off, and specifically, the first embodiment and/or the second embodiment may be used, which is not described herein again.
In this embodiment, before turning off the diversity reception function of the first antenna, the processor 601 may execute one or more programs stored in the memory to implement the following steps: when the terminal diversity function is judged to be turned on, stopping charging within a preset first time period, then judging whether the communication quality in the charging stopping process is better than the communication quality before the charging stopping process, and if so, turning off the diversity receiving function of the first antenna; if not, the process is ended.
In this embodiment, before turning off the diversity reception function of the first antenna, the processor 601 may execute one or more programs stored in the memory to implement the following steps: when the diversity reception function and the main set reception function of the terminal are both in an on state, the diversity reception function is turned off in a second time period, and whether the communication quality in the second time period is better than the communication quality before the diversity reception function is turned off is judged, if so, the diversity reception function is turned off (that is, the diversity reception function of the first antenna is turned off), and if not, the operation is ended.
In this embodiment, before turning off the diversity reception function of the first antenna, the processor 601 may execute one or more programs stored in the memory to implement the following steps: judging whether the distance between the first antenna and the charging interface is smaller than a preset distance threshold value or not; if yes, closing the diversity reception function of the first antenna; if not, ending. Or, if the terminal comprises at least two antennas, judging whether an antenna closest to the charging interface in the terminal is in a GSM communication state, if so, closing the diversity reception function of the first antenna, and if not, ending the process.
In this embodiment, after turning off the diversity reception function of the first antenna, the processor 601 may execute one or more programs stored in the memory to implement the following steps: and judging whether the main set receiving function of the terminal is opened or not, and if not, opening the main set receiving function of the first antenna.
In this embodiment, after turning off the diversity reception function of the first antenna, the processor 601 may execute one or more programs stored in the memory to implement the following steps: after the diversity reception function of the first antenna is closed, when the distance from the first antenna to the charging interface is smaller than a preset distance threshold, the diversity reception function of a second antenna is opened, wherein the distance from the second antenna to the charging interface in the terminal is larger than the distance threshold; and when the first antenna is the antenna closest to the charging interface in the terminal, the diversity reception function of the third antenna is turned on, wherein the third antenna is the antenna farthest from the charging interface in the terminal.
It is to be noted that, in order to avoid redundant description, all examples of the first embodiment and the second embodiment are not fully set forth in the present embodiment, and it should be clear that all examples of the first embodiment and the second embodiment are applicable to the present embodiment.
The present embodiment also provides a computer-readable storage medium, such as a floppy disk, an optical disk, a hard disk, a flash memory, a U disk, a CF card, an SD card, an MMC card, etc., in which one or more programs implementing the above steps are stored, and the one or more programs can be executed by one or more processors to implement the steps of the terminal control method according to the first embodiment and/or the second embodiment.
The terminal and the computer-readable storage medium provided by this embodiment first determine whether the terminal is currently in a GSM communication state; if yes, continuously judging whether the terminal is in a charging state at present; if yes, judging whether the diversity receiving function of the terminal is opened or not; if so, closing the diversity reception function of the first antenna, wherein the first antenna is the antenna in the diversity reception state currently; that is to say, in this embodiment, when the terminal is in the GSM communication state and in the charging state, the diversity reception function of the terminal is turned off, and when the terminal performs diversity reception, the terminal receives more interference signals generated by charging, which results in a reduction in the sensitivity of the antenna of the terminal.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (9)

1. A terminal control method, characterized in that the terminal control method comprises:
judging whether the terminal is in a global system for mobile communications (GSM) communication state currently;
if yes, judging whether the terminal is in a charging state currently;
if yes, judging whether the diversity receiving function of the terminal is opened or not;
if so, closing the diversity reception function of a first antenna, wherein the first antenna is an antenna in a diversity reception state at present;
before the turning off the diversity reception function of the first antenna, the method further includes:
judging whether the distance between the first antenna and the charging interface is smaller than a preset distance threshold value or not; if yes, the diversity reception function of the first antenna is closed.
2. The terminal control method of claim 1, wherein after the turning off the diversity reception function of the first antenna, further comprising:
when the distance between the first antenna and the charging interface is smaller than the preset distance threshold, opening a diversity receiving function of a second antenna, wherein the second antenna is an antenna of which the distance between the terminal and the charging interface is larger than the preset distance threshold;
and when the first antenna is the antenna closest to the charging interface in the terminal, the diversity reception function of a third antenna is turned on, wherein the third antenna is the antenna farthest from the charging interface in the terminal.
3. The terminal control method of claim 1, wherein before turning off the diversity reception function of the first antenna, further comprising:
judging whether the current communication quality of the terminal is superior to a preset communication quality standard or not;
if not, the diversity reception function of the first antenna is closed.
4. The terminal control method according to claim 3, wherein the communication quality criteria comprises a signal strength threshold and/or a signal-to-noise ratio threshold, and the determining whether the current communication quality of the terminal is higher than the preset communication quality criteria comprises:
and judging whether the current communication quality of the terminal is better than a preset communication quality standard or not according to the current signal strength and/or signal-to-noise ratio of the terminal.
5. The terminal control method of claim 1, wherein before turning off the diversity reception function of the first antenna, further comprising:
when the terminal diversity function is judged to be turned on, stopping charging within a preset first time period;
judging whether the communication quality in the charging stopping process is better than the communication quality before the charging stopping process;
if yes, the diversity reception function of the first antenna is closed.
6. The terminal control method of claim 1, wherein after the turning off the diversity reception function of the first antenna, further comprising:
judging whether a main set receiving function of the terminal is opened or not;
and if not, opening the main set receiving function of the first antenna.
7. The terminal control method according to any one of claims 1 to 6, wherein before turning off the diversity reception function of the first antenna, further comprising:
judging whether a main set receiving function of the terminal is opened or not;
if yes, closing the diversity reception function of the terminal within a preset second time period;
judging whether the communication quality of the terminal in the closing process of the diversity receiving function is better than the communication quality before the closing of the diversity receiving function;
if yes, the diversity reception function of the first antenna is closed.
8. A terminal, characterized in that the terminal comprises a processor, a memory and a communication bus;
the communication bus is used for realizing connection communication between the processor and the memory;
the processor is configured to execute one or more programs stored in the memory to implement the steps of the terminal control method according to any one of claims 1 to 7.
9. A computer-readable storage medium, characterized in that the computer-readable storage medium stores one or more programs which are executable by one or more processors to implement the steps of the terminal control method according to any one of claims 1 to 7.
CN201811557229.XA 2018-12-19 2018-12-19 Terminal control method, terminal and computer readable storage medium Active CN109743443B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811557229.XA CN109743443B (en) 2018-12-19 2018-12-19 Terminal control method, terminal and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811557229.XA CN109743443B (en) 2018-12-19 2018-12-19 Terminal control method, terminal and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN109743443A CN109743443A (en) 2019-05-10
CN109743443B true CN109743443B (en) 2021-01-26

Family

ID=66360754

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811557229.XA Active CN109743443B (en) 2018-12-19 2018-12-19 Terminal control method, terminal and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN109743443B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114531173B (en) * 2022-04-06 2023-06-23 展讯通信(深圳)有限公司 Multi-antenna frequency division duplex mode terminal receiving sensitivity optimization method and device and terminal equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101483281A (en) * 2009-02-27 2009-07-15 深圳华为通信技术有限公司 Method and apparatus for controlling terminal antenna
CN105792259A (en) * 2016-04-26 2016-07-20 宇龙计算机通信科技(深圳)有限公司 3G communication control method of intelligent terminal
CN107277249A (en) * 2017-06-20 2017-10-20 维沃移动通信有限公司 It is a kind of to reduce the method and mobile terminal of interference of call signal

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101483281A (en) * 2009-02-27 2009-07-15 深圳华为通信技术有限公司 Method and apparatus for controlling terminal antenna
CN105792259A (en) * 2016-04-26 2016-07-20 宇龙计算机通信科技(深圳)有限公司 3G communication control method of intelligent terminal
CN107277249A (en) * 2017-06-20 2017-10-20 维沃移动通信有限公司 It is a kind of to reduce the method and mobile terminal of interference of call signal

Also Published As

Publication number Publication date
CN109743443A (en) 2019-05-10

Similar Documents

Publication Publication Date Title
CN107613489B (en) Wireless charging method, wireless hotspot device, terminal and storage medium
CN109195143B (en) Network access method, mobile terminal and readable storage medium
CN107027114A (en) A kind of SIM card switching method, equipment and computer-readable recording medium
CN110035176B (en) Brightness adjusting method of mobile terminal, mobile terminal and storage medium
CN109195213B (en) Mobile terminal screen control method, mobile terminal and computer readable storage medium
CN107463243B (en) Screen control method, mobile terminal and computer readable storage medium
CN108184023B (en) Screen state control method, mobile terminal and computer readable storage medium
CN109144441B (en) Screen adjusting method, terminal and computer readable storage medium
CN109144705B (en) Application management method, mobile terminal and computer readable storage medium
CN108600520B (en) Reception state control method, mobile terminal, and computer-readable storage medium
CN112261535A (en) Major-minor switching method and device for wireless earphone and readable storage medium
CN108536383B (en) Game control method, game control equipment and computer readable storage medium
CN114126015A (en) Power consumption control method, intelligent terminal and storage medium
CN108334266B (en) Control method of flexible terminal, flexible terminal and computer readable storage medium
CN112040065A (en) Holding state prompting method, mobile terminal and computer storage medium
CN112770378A (en) Power control method, terminal and computer readable storage medium
CN107517487B (en) Call control method and mobile terminal
CN109491577B (en) Holding interaction method and device and computer readable storage medium
CN112667339B (en) Screen refresh rate setting method, terminal and computer readable medium
CN112437472B (en) Network switching method, equipment and computer readable storage medium
CN111970738B (en) Network switching control method, device and computer readable storage medium
CN109561221B (en) Call control method, device and computer readable storage medium
CN109889660B (en) Temporary information recording method, storage medium and mobile terminal
CN109743443B (en) Terminal control method, terminal and computer readable storage medium
CN107682551B (en) Control method, terminal and storage medium of intelligent power amplifier

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
GR01 Patent grant
GR01 Patent grant