CN107517314B - Mobile terminal, control method, control device, and storage medium - Google Patents

Mobile terminal, control method, control device, and storage medium Download PDF

Info

Publication number
CN107517314B
CN107517314B CN201710734728.0A CN201710734728A CN107517314B CN 107517314 B CN107517314 B CN 107517314B CN 201710734728 A CN201710734728 A CN 201710734728A CN 107517314 B CN107517314 B CN 107517314B
Authority
CN
China
Prior art keywords
communication line
mobile terminal
proximity sensor
call
finished
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
CN201710734728.0A
Other languages
Chinese (zh)
Other versions
CN107517314A (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 CN201710734728.0A priority Critical patent/CN107517314B/en
Publication of CN107517314A publication Critical patent/CN107517314A/en
Application granted granted Critical
Publication of CN107517314B publication Critical patent/CN107517314B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72454User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/02Constructional features of telephone sets
    • H04M1/0202Portable telephone sets, e.g. cordless phones, mobile phones or bar type handsets
    • H04M1/026Details of the structure or mounting of specific components
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M2250/00Details of telephonic subscriber devices
    • H04M2250/12Details of telephonic subscriber devices including a sensor for measuring a physical value, e.g. temperature or motion

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Environmental & Geological Engineering (AREA)
  • Telephone Function (AREA)

Abstract

The invention discloses a mobile terminal, a control method, a control device and a storage medium, wherein the control method comprises the following steps: detecting whether the mobile terminal is in the call process or after the call is finished; if the mobile terminal is in the process of calling or after the calling is finished, judging whether a communication line between the proximity sensor and the display screen control circuit is normal; and if not, repairing the communication line to ensure that the communication line is normal. The communication line between the proximity sensor and the display screen control circuit is repaired in the mobile terminal call process or after the call is finished, so that the proximity sensor can be ensured to be in a normal working state in the subsequent use process of the mobile terminal, and the experience of a user in using the mobile terminal is further improved.

Description

Mobile terminal, control method, control device, and storage medium
Technical Field
The present invention relates to the field of mobile terminal control technologies, and in particular, to a mobile terminal, a control method, a control apparatus, and a storage medium.
Background
At present, the control process of a proximity sensor in a mobile terminal such as a mobile phone is generally as follows: after a user dials or answers a call, the proximity sensor is started, then the user places the mobile phone at the ear, the proximity sensor senses that an object is close to the mobile phone, the mobile phone is turned off, when the call is ended, the user takes the mobile phone away from the ear, the call is interrupted, the proximity sensor senses that no object exists in the front, the mobile phone is turned on, and the proximity sensor goes to sleep.
Since the proximity sensor is often installed above the mobile phone, and is close to the antenna, during communication, the communication line is easily interfered by radio frequency, which may cause the signal of the communication line to be locked, so that the devices on the communication line stop working, for example, the mobile phone cannot perform normal screen-off and screen-on control.
Disclosure of Invention
An embodiment of the present invention provides a control method for a mobile terminal, where the control method includes:
detecting whether the mobile terminal is in the call process or after the call is finished;
if the mobile terminal is in the process of calling or after the calling is finished, judging whether a communication line between the proximity sensor and the display screen control circuit is normal;
and if not, repairing the communication line to ensure that the communication line is normal.
Another aspect of the embodiments of the present invention further provides a control apparatus for a mobile terminal; the device comprises:
the detection module is used for detecting whether the mobile terminal is in the call process or after the call is finished;
the judging module is used for judging whether a communication line between the proximity sensor and the display screen control circuit is normal or not in the conversation process of the mobile terminal or after the conversation is finished;
and the repairing module is used for repairing the communication line to ensure that the communication line is normal under the condition that the communication line is abnormal.
Further, an embodiment of the present invention also provides a mobile terminal, where the mobile terminal includes a processor and a memory, the processor is coupled to the memory, and when operating, the processor executes instructions to implement the method according to any one of the foregoing embodiments.
In addition, an embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, the computer program being executed by a processor to implement the method according to any one of the above embodiments.
According to the mobile terminal control method provided by the embodiment of the application, the communication line between the proximity sensor and the display screen control circuit is repaired in the mobile terminal call process or after the call is finished, so that the proximity sensor can be ensured to be in a normal working state in the subsequent use process of the mobile terminal, and the experience of a user in using the mobile terminal is further improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a flowchart illustrating a control method of a mobile terminal according to an embodiment of the present application;
FIG. 2 is a schematic diagram of a circuit structure of a proximity sensor and a display control circuit of a mobile terminal according to the present application;
fig. 3 is a flowchart illustrating another embodiment of a control method of a mobile terminal according to the present application;
fig. 4 is a flowchart illustrating a control method of a mobile terminal according to another embodiment of the present application;
fig. 5 is a flowchart illustrating a control method of a mobile terminal according to still another embodiment of the present disclosure;
fig. 6 is a flowchart illustrating a control method of a mobile terminal according to still another embodiment of the present disclosure;
fig. 7 is a block diagram schematically illustrating the configuration of an embodiment of the control apparatus of the mobile terminal according to the present invention;
FIG. 8 is a block diagram of a mobile terminal according to an embodiment of the present invention;
fig. 9 is a schematic structural component diagram of another embodiment of the mobile terminal of the present invention;
FIG. 10 is a schematic structural diagram of an embodiment of a storage medium according to the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be noted that the following examples are only illustrative of the present invention, and do not limit the scope of the present invention. Similarly, the following examples are only some but not all examples of the present invention, and all other examples obtained by those skilled in the art without any inventive work are within the scope of the present invention.
The terms "first", "second" and "third" in the present invention are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first," "second," or "third" may explicitly or implicitly include at least one of the feature. In the description of the present invention, "a plurality" means at least two, e.g., two, three, etc., unless specifically limited otherwise. All directional indicators (such as up, down, left, right, front, and rear … …) in the embodiments of the present invention are only used to explain the relative positional relationship between the components, the movement, and the like in a specific posture (as shown in the drawings), and if the specific posture is changed, the directional indicator is changed accordingly. Furthermore, the terms "include" and "have," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, article, or apparatus.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the invention. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
It should be noted that the mobile terminal referred to in this application includes a mobile phone, a tablet computer, a notebook computer, a wearable device, and the like, which are provided with a proximity sensor. The embodiment of the application firstly provides a control method of a mobile terminal. Referring to fig. 1, fig. 1 is a flowchart illustrating a control method of a mobile terminal according to an embodiment of the present application. The method includes, but is not limited to, the following steps.
Step S100, detecting whether the mobile terminal is in the process of communication or after the communication is finished.
Because the proximity sensor is often installed above the mobile phone, and is close to the antenna, the communication line signal communication process is easily interfered by radio frequency during communication, and the communication line signal is possibly locked, so that devices on the communication line stop working, and the mobile phone cannot normally perform control such as screen turning-off and screen turning-on.
The proximity sensor in this embodiment may be an optical sensor, and specifically may be an infrared sensor, and after infrared light is emitted by an infrared LED lamp and reflected by a near-distance object, the infrared detector measures the distance by receiving the intensity of the infrared light, and the general effective distance is about 10 cm. Whether the mobile phone is attached to the ear and a call is made is detected so as to automatically extinguish the screen and achieve the purpose of saving electricity. And the device can also be used for automatically realizing unlocking and screen locking actions in leather sheath and pocket modes.
In this step, whether the mobile terminal is in the process of communication or after the communication is finished can be further detected by detecting the working state of the antenna, and if the antenna is detected to be in the transmitting or receiving state of the high-frequency signal, the mobile terminal can be judged to be in the process of communication; if the antenna is detected to just stop the transmitting or receiving state of the high-frequency signal, the mobile terminal can be judged to be in the state after the conversation is finished.
And step S110, if the mobile terminal is in the process of calling or after the calling is finished, judging whether a communication line between the proximity sensor and the display screen control circuit is normal.
In step S100, if the state of the mobile terminal during the call or after the call is detected, it is determined whether the communication line between the proximity sensor and the display screen control circuit is normal. Referring to fig. 2, fig. 2 is a schematic circuit structure diagram of a proximity sensor and a display control circuit of a mobile terminal according to the present application, where reference numeral 201 denotes the proximity sensor, 202 denotes the display control circuit, 203 denotes a communication line, and 204 may be a CPU. The step of determining whether the communication line 203 between the proximity sensor 201 and the display screen control circuit 202 is normal specifically includes: the (CPU) transmits a signal to the proximity sensor 201 through the communication line 203, and determines that the communication line 203 is in an abnormal state if the proximity sensor 201 does not respond.
And step S120, if the communication line between the proximity sensor and the display screen control circuit is judged to be abnormal, repairing the communication line to enable the communication line to be recovered to be normal.
In this step, the step of repairing the communication line includes controlling a proximity sensor connected to the communication line to restart, specifically, restarting may be performed by turning on or off the proximity sensor.
Further, the step of repairing the communication line may further include restoring the communication line from the deadlock state to the active state. In this embodiment, the communication line may be a communication line of other protocols such as an I2C signal line, and is not listed here within the understanding range of those skilled in the art.
According to the mobile terminal control method provided by the embodiment, the communication line between the proximity sensor and the display screen control circuit is repaired in the mobile terminal call process or after the call is finished, so that the proximity sensor can be ensured to be in a normal working state in the subsequent use process of the mobile terminal, and the experience of a user in using the mobile terminal is further improved.
Referring to fig. 3, fig. 3 is a flowchart illustrating a control method of a mobile terminal according to another embodiment of the present application. The method includes, but is not limited to, the following steps.
Step S300, detecting whether the mobile terminal is in the process of the call or after the call is finished.
Similarly, the proximity sensor in this embodiment may be an optical sensor, and specifically may be an infrared sensor, and emits infrared rays through an infrared LED lamp, and after being reflected by a short-distance object, the infrared detector measures the distance by receiving the intensity of the infrared rays. Whether the mobile phone is attached to the ear and a call is made is detected so as to automatically extinguish the screen and achieve the purpose of saving electricity. And the device can also be used for automatically realizing unlocking and screen locking actions in leather sheath and pocket modes.
In this step, whether the mobile terminal is in the process of communication or after the communication is finished can be further detected by detecting the working state of the antenna, and if the antenna is detected to be in the transmitting or receiving state of the high-frequency signal, the mobile terminal can be judged to be in the process of communication; if the antenna is detected to just stop the transmitting or receiving state of the high-frequency signal, the mobile terminal can be judged to be in the state after the conversation is finished.
In step S300, if it is detected that the mobile terminal is not in the process of the call or after the call is ended, it indicates that the mobile terminal is not in the process of the call, so the process directly proceeds to step S330 to end the whole process; and if the mobile terminal is detected to be in the call process or after the call is finished, entering the next step.
Step S310, judging whether the communication line between the proximity sensor and the display screen control circuit is normal.
In step S300, if the state of the mobile terminal during the call or after the call is detected, it is determined whether the communication line between the proximity sensor and the display screen control circuit is normal. Referring to fig. 2, fig. 2 is a schematic circuit structure diagram of a proximity sensor and a display control circuit of a mobile terminal according to the present application, where reference numeral 201 denotes the proximity sensor, 202 denotes the display control circuit, 203 denotes a communication line, and 204 may be a CPU. The step of determining whether the communication line 203 between the proximity sensor 201 and the display screen control circuit 202 is normal specifically includes: the (CPU) transmits a signal to the proximity sensor 201 through the communication line 203, and determines that the communication line 203 is in an abnormal state if the proximity sensor 201 does not respond.
In step S310, if the communication line between the proximity sensor and the display screen control circuit is judged to be abnormal, the next step is performed, and if the communication line between the proximity sensor and the display screen control circuit is judged to be normal, the step S300 is returned to, and whether the mobile terminal is in the process of a call or after the call is ended is detected again.
In step S320, the communication line is repaired to restore the communication line to normal.
In this step, the step of repairing the communication line includes controlling a proximity sensor connected to the communication line to restart, specifically, restarting may be performed by turning on or off the proximity sensor.
Further, the step of repairing the communication line may further include restoring the communication line from the deadlock state to the active state. The above two modes can achieve the purpose of repairing the communication line, and of course, a person skilled in the art can also achieve the purpose of repairing the communication line by other methods, and detailed descriptions thereof are omitted here.
Alternatively, in the present embodiment, the communication line may be a communication line of other protocols such as I2C signal line, and is not listed here within the understanding range of those skilled in the art.
And step S330, ending.
According to the mobile terminal control method provided by the embodiment, the communication line between the proximity sensor and the display screen control circuit is repaired in the mobile terminal call process or after the call is finished, specifically, the proximity sensor can be restarted or the communication line can be restored to the working state from the deadlock state, the proximity sensor can be ensured to be in the normal working state in the subsequent use process of the mobile terminal, and the user experience of using the mobile terminal is further improved.
Referring to fig. 4, fig. 4 is a flowchart illustrating a control method of a mobile terminal according to another embodiment of the present application. The method includes, but is not limited to, the following steps.
Step S400, detecting whether the mobile terminal is in the process of the call or after the call is finished.
In this step, whether the mobile terminal is in the process of communication or after the communication is finished can be further detected by detecting the working state of the antenna, and if the antenna is detected to be in the transmitting or receiving state of the high-frequency signal, the mobile terminal can be judged to be in the process of communication; if the antenna is detected to just stop the transmitting or receiving state of the high-frequency signal, the mobile terminal can be judged to be in the state after the conversation is finished.
In step S400, if it is detected that the mobile terminal is not in the process of the call or after the call is ended, it indicates that the mobile terminal is not in the process of the call, so the process directly proceeds to step S430 to end the whole process; and if the mobile terminal is detected to be in the call process or after the call is finished, entering the next step.
And step S410, judging whether a communication line between the proximity sensor and the display screen control circuit is normal.
In step S400, if the state of the mobile terminal during the call or after the call is detected, it is determined whether the communication line between the proximity sensor and the display control circuit is normal. Referring to fig. 2, fig. 2 is a schematic circuit structure diagram of a proximity sensor and a display control circuit of a mobile terminal according to the present application, where reference numeral 201 denotes the proximity sensor, 202 denotes the display control circuit, 203 denotes a communication line, and 204 may be a CPU. The step of determining whether the communication line 203 between the proximity sensor 201 and the display screen control circuit 202 is normal specifically includes: the (CPU) transmits a signal to the proximity sensor 201 through the communication line 203, and determines that the communication line 203 is in an abnormal state if the proximity sensor 201 does not respond.
In step S410, if the communication line between the proximity sensor and the display screen control circuit is judged to be abnormal, the next step is performed, and if the communication line between the proximity sensor and the display screen control circuit is judged to be normal, the step S400 is returned to, and the step of re-detecting whether the mobile terminal is in the process of a call or after the call is ended is performed.
In step S420, the proximity sensor connected to the communication line is controlled to restart.
In this step, the process of controlling the proximity sensor connected to the communication line to restart may be specifically restarted by turning on and off the proximity sensor.
Alternatively, in the present embodiment, the communication line may be a communication line of other protocols such as I2C signal line, and is not listed here within the understanding range of those skilled in the art.
And step S430, ending.
According to the mobile terminal control method provided by the embodiment, the proximity sensor is restarted in the mobile terminal call process or after the call is finished, so that the communication line of the proximity sensor is guaranteed to be repaired.
Referring to fig. 5, fig. 5 is a flowchart illustrating a control method of a mobile terminal according to another embodiment of the present application. The method comprises the following steps.
Step S500, detecting whether the mobile terminal is in the process of a call or after the call is finished.
In this step, whether the mobile terminal is in the process of communication or after the communication is finished can be further detected by detecting the working state of the antenna, and if the antenna is detected to be in the transmitting or receiving state of the high-frequency signal, the mobile terminal can be judged to be in the process of communication; if the antenna is detected to just stop the transmitting or receiving state of the high-frequency signal, the mobile terminal can be judged to be in the state after the conversation is finished.
In step S500, if it is detected that the mobile terminal is not in the process of the call or after the call is ended, it indicates that the mobile terminal is not in the process of the call, so the process directly proceeds to step S530 to end the whole process; and if the mobile terminal is detected to be in the call process or after the call is finished, entering the next step.
Step S510, determining whether a communication line between the proximity sensor and the display screen control circuit is normal.
In step S500, if the state of the mobile terminal during the call or after the call is detected, it is determined whether the communication line between the proximity sensor and the display screen control circuit is normal. The step of judging whether the communication line between the proximity sensor and the display screen control circuit is normal specifically comprises: a signal is sent to the proximity sensor through the communication line, and if the proximity sensor does not respond, it is determined that the communication line is in an abnormal state. Please refer to fig. 2 and the related description of the above embodiments, which are not repeated herein.
In step S510, if the communication line between the proximity sensor and the display screen control circuit is judged to be abnormal, the next step is performed, and if the communication line between the proximity sensor and the display screen control circuit is judged to be normal, the step S500 is returned to, and the step of re-detecting whether the mobile terminal is in the process of a call or after the call is ended is performed.
Step S520, the communication line is restored from the locked state to the operating state.
Alternatively, in the present embodiment, the communication line may be a communication line of other protocols such as I2C signal line, and is not listed here within the understanding range of those skilled in the art.
And step S530, ending.
According to the mobile terminal control method provided by the embodiment, the communication line is restored to the working state from the locking state in the mobile terminal communication process or after the communication is finished, so that the communication line of the proximity sensor is guaranteed to be repaired, the proximity sensor can be in the normal working state in the subsequent use process of the mobile terminal, and the experience of a user in using the mobile terminal is further improved.
Referring to fig. 6, fig. 6 is a flowchart illustrating a control method of a mobile terminal according to another embodiment of the present application. The method includes, but is not limited to, the following steps.
Step S600, detecting whether the mobile terminal is in the process of a call or after the call is finished.
Similarly, the proximity sensor in this embodiment may be an optical sensor, and specifically may be an infrared sensor, and emits infrared rays through an infrared LED lamp, and after being reflected by a short-distance object, the infrared detector measures the distance by receiving the intensity of the infrared rays. Whether the mobile phone is attached to the ear and a call is made is detected so as to automatically extinguish the screen and achieve the purpose of saving electricity. And the device can also be used for automatically realizing unlocking and screen locking actions in leather sheath and pocket modes.
In this step, whether the mobile terminal is in the process of communication or after the communication is finished can be further detected by detecting the working state of the antenna, and if the antenna is detected to be in the transmitting or receiving state of the high-frequency signal, the mobile terminal can be judged to be in the process of communication; if the antenna is detected to just stop the transmitting or receiving state of the high-frequency signal, the mobile terminal can be judged to be in the state after the conversation is finished.
In step S600, if it is detected that the mobile terminal is not in the process of the call or after the call is ended, it indicates that the mobile terminal is not in the process of the call, so the process directly proceeds to step S640 to end the whole process; and if the mobile terminal is detected to be in the call process or after the call is finished, entering the next step.
Step S610, determining whether a communication line between the proximity sensor and the display screen control circuit is normal.
In step S600, if the state of the mobile terminal during the call or after the call is detected, it is determined whether the communication line between the proximity sensor and the display screen control circuit is normal. The step of judging whether the communication line between the proximity sensor and the display screen control circuit is normal specifically comprises: a signal is sent to the proximity sensor through the communication line, and if the proximity sensor does not respond, it is determined that the communication line is in an abnormal state. Please refer to fig. 2 and the related description of the above embodiments, which are not repeated herein.
In step S610, if the communication line between the proximity sensor and the display screen control circuit is determined to be abnormal, the next step is performed, and if the communication line between the proximity sensor and the display screen control circuit is determined to be normal, the step S600 is returned to, and whether the mobile terminal is in the process of a call or after the call is ended is detected again.
In step S620, the communication line is repaired to restore the communication line to normal.
In this step, the step of repairing the communication line includes controlling a proximity sensor connected to the communication line to restart, specifically, restarting may be performed by turning on or off the proximity sensor.
Further, the step of repairing the communication line may further include restoring the communication line from the deadlock state to the active state. The above two modes can achieve the purpose of repairing the communication line, and of course, a person skilled in the art can also achieve the purpose of repairing the communication line by other methods, and detailed descriptions thereof are omitted here.
Alternatively, in the present embodiment, the communication line may be a communication line of other protocols such as I2C signal line, and is not listed here within the understanding range of those skilled in the art.
In step S630, the proximity sensor is controlled to enter a sleep state.
After the step of repairing the communication line, the communication line of the proximity sensor can be judged to be restored to normal, so that the proximity sensor is controlled to enter a dormant state to wait for a wake-up command for the next use.
And step S640, ending.
According to the mobile terminal control method provided by the embodiment, the communication line between the proximity sensor and the display screen control circuit is repaired in the mobile terminal call process or after the call is finished, specifically, the proximity sensor can be restarted or the communication line can be restored to the working state from the deadlock state, the proximity sensor can be ensured to be in the normal working state in the subsequent use process of the mobile terminal, and the user experience of using the mobile terminal is further improved.
Further, an embodiment of the present invention further provides a control device of a mobile terminal, please refer to fig. 7, fig. 7 is a schematic block diagram illustrating a structural configuration of an embodiment of the control device of the mobile terminal of the present invention, where the device includes, but is not limited to, the following modules: a detection module 710, a determination module 720, and a repair module 730.
Specifically, the detecting module 710 is configured to detect whether the mobile terminal is in a call process or after the call is ended; the judging module 720 is configured to judge whether a communication line between the proximity sensor and the display screen control circuit is normal during a call of the mobile terminal or after the call is ended; the repair module 730 is used for repairing the communication line to make the communication line normal if the communication line is not normal.
For a specific matching working flow among the detecting module 710, the determining module 720 and the repairing module 730, please refer to the related description in the above method embodiments, which is not described herein again.
In addition, an embodiment of the present invention further provides a mobile terminal, please refer to fig. 8, where fig. 8 is a schematic structural diagram of an embodiment of the mobile terminal according to the present invention, and the mobile terminal includes a processor 81 and a memory 82. Wherein the processor 81 is coupled to the memory 82.
Specifically, the processor 81 is configured to detect whether the mobile terminal is in a call process or after the call is ended; if the mobile terminal is in the process of calling or after the calling is finished, judging whether a communication line between the proximity sensor and the display screen control circuit is normal; and if not, repairing the communication line to ensure that the communication line is normal. The memory 82 is used for storing information such as operation instructions of the processor 81. For the specific operation flow of the processor 81, please refer to the detailed description of the above method embodiment.
In addition, referring to fig. 9, fig. 9 is a schematic structural diagram of another embodiment of the mobile terminal of the present invention, where the mobile terminal 900 includes an RF circuit 910, a memory 920, an input unit 930, a display unit 940, a sensor 950, an audio circuit 960, a wifi module 970, a processor 980, a power supply 990, and the like. Wherein the RF circuit 910, the memory 920, the input unit 930, the display unit 940, the sensor 950, the audio circuit 960, and the wifi module 970 are respectively connected with the processor 980; the power supply 990 is used to supply power to the entire mobile terminal 90.
Specifically, the RF circuit 910 is used for transmitting and receiving signals; the memory 920 is used for storing data instruction information; the input unit 930 is used for inputting information, and may specifically include a touch panel 931 and other input devices 932 such as operation keys; the display unit 940 may include a display panel 941; the sensor 950 includes an infrared sensor, a laser sensor, etc. for detecting a user approach signal, a distance signal, etc.; a speaker 961 and a microphone 962 are connected to the processor 980 through the audio circuit 960 for emitting and receiving sound signals; the wifi module 970 is then used for receiving and transmitting wifi signals.
The processor 980 is further configured to detect whether the mobile terminal is in a call process or after the call is ended; if the mobile terminal is in the process of calling or after the calling is finished, judging whether a communication line between the proximity sensor and the display screen control circuit is normal; and if not, repairing the communication line to ensure that the communication line is normal. The memory 920 is used for storing information such as operating instructions of the processor 980. For the specific operation flow of the processor 980, please refer to the detailed description of the above method embodiments.
Referring to fig. 10, fig. 10 is a schematic structural diagram of a storage medium according to an embodiment of the invention.
The storage medium 1000 stores program data 1001, and the program data 1001 can be executed to implement the control method of the mobile terminal described in the above embodiments, and will not be described herein again.
As will be understood by those skilled in the art, the storage medium 1000 may be a physical storage medium such as a usb disk and an optical disk, or may be a virtual storage medium such as a server.
In the several embodiments provided in the present invention, it should be understood that the disclosed method, apparatus and device may be implemented in other manners. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the modules or units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, a network device, or the like) or a processor (processor) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
Compared with the prior art, the mobile terminal and the storage medium thereof provided by the embodiment of the invention can ensure that the proximity sensor is in a normal working state in the subsequent use process of the mobile terminal by repairing the communication line between the proximity sensor and the display screen control circuit in the mobile terminal call process or after the call is finished, thereby improving the experience of a user in using the mobile terminal.
The above description is only an embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes performed by the present specification and drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (7)

1. A control method of a mobile terminal, the control method comprising:
detecting whether the mobile terminal is in the call process or after the call is finished;
if the mobile terminal is in the process of calling or after the calling is finished, judging whether a communication line between the proximity sensor and the display screen control circuit is normal;
if not, repairing the communication line to ensure that the communication line is normal;
wherein, judge whether the communication line between proximity sensor and the display screen control circuit is normal step specifically includes: sending a signal to the proximity sensor through the communication line, and if the proximity sensor does not respond, judging that the communication line is in an abnormal state;
the step of repairing the communication line specifically includes controlling the proximity sensor connected to the communication line to restart and/or restoring the communication line from a locked state to an operating state.
2. The control method according to claim 1,
the communication line is an I2C signal line.
3. The control method of claim 1, further comprising, after the step of controlling the proximity sensor to restart: and controlling the proximity sensor to enter a dormant state.
4. The control method according to claim 1, wherein the proximity sensor is a light sensor.
5. A control apparatus of a mobile terminal; characterized in that the device comprises:
the detection module is used for detecting whether the mobile terminal is in the call process or after the call is finished;
the judging module is used for judging whether a communication line between the proximity sensor and the display screen control circuit is normal or not in the conversation process of the mobile terminal or after the conversation is finished;
the repair module is used for repairing the communication line to ensure that the communication line is normal under the condition that the communication line is abnormal;
the judging module is specifically used for sending a signal to the proximity sensor through the communication line if the mobile terminal is in the call process or after the call is finished, and judging whether the proximity sensor responds or not;
the repair module is specifically configured to, in a case where the proximity sensor does not respond, control the proximity sensor connected to the communication line to restart and/or restore the communication line from a locked state to a working state.
6. A mobile terminal, characterized in that the mobile terminal comprises a processor and a memory, the processor being coupled to the memory, the processor in operation executing instructions to implement the method according to any of claims 1-4.
7. A computer-readable storage medium, on which a computer program is stored, characterized in that the program is executed by a processor to implement the method according to any of claims 1-4.
CN201710734728.0A 2017-08-24 2017-08-24 Mobile terminal, control method, control device, and storage medium Active CN107517314B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710734728.0A CN107517314B (en) 2017-08-24 2017-08-24 Mobile terminal, control method, control device, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710734728.0A CN107517314B (en) 2017-08-24 2017-08-24 Mobile terminal, control method, control device, and storage medium

Publications (2)

Publication Number Publication Date
CN107517314A CN107517314A (en) 2017-12-26
CN107517314B true CN107517314B (en) 2020-05-08

Family

ID=60723789

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710734728.0A Active CN107517314B (en) 2017-08-24 2017-08-24 Mobile terminal, control method, control device, and storage medium

Country Status (1)

Country Link
CN (1) CN107517314B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1991783A (en) * 2005-12-29 2007-07-04 国际商业机器公司 12c bus monitor and method for detecting and correcting hanged 12c bus
CN102016806A (en) * 2008-04-23 2011-04-13 艾勒博科技股份有限公司 Communication system with automatic restoring function against faulty operation and restoring method thereof
WO2014088761A1 (en) * 2012-12-08 2014-06-12 Masco Corporation Method for finding distance information from a linear sensor array
CN106021010A (en) * 2016-05-25 2016-10-12 广东欧珀移动通信有限公司 Processing method and device for anomaly of proximity detector
CN106502819A (en) * 2016-11-08 2017-03-15 广东欧珀移动通信有限公司 A kind of based on the control method of proximity transducer, device and mobile terminal

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR102320407B1 (en) * 2015-06-05 2021-11-03 삼성전자주식회사 Computing device including i2c communication module and communication error recovery method thereof

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1991783A (en) * 2005-12-29 2007-07-04 国际商业机器公司 12c bus monitor and method for detecting and correcting hanged 12c bus
CN102016806A (en) * 2008-04-23 2011-04-13 艾勒博科技股份有限公司 Communication system with automatic restoring function against faulty operation and restoring method thereof
WO2014088761A1 (en) * 2012-12-08 2014-06-12 Masco Corporation Method for finding distance information from a linear sensor array
CN106021010A (en) * 2016-05-25 2016-10-12 广东欧珀移动通信有限公司 Processing method and device for anomaly of proximity detector
CN106502819A (en) * 2016-11-08 2017-03-15 广东欧珀移动通信有限公司 A kind of based on the control method of proximity transducer, device and mobile terminal

Also Published As

Publication number Publication date
CN107517314A (en) 2017-12-26

Similar Documents

Publication Publication Date Title
US10963211B2 (en) Electronic device and method for controlling audio path thereof
EP3637225B1 (en) Display processing method and apparatus
US9942697B2 (en) Wireless data input and output method and apparatus
KR102495239B1 (en) Electronic device including electronic pen and method for recognizing insertion of the electronic pen therein
US11320919B2 (en) Touch and display driver integration circuit
CN108365881B (en) Antenna control method, antenna control device, storage medium and electronic equipment
CN108509291B (en) Application program is operating abnormally restorative procedure and system and mobile terminal
CN109542928B (en) Error management method, device, storage medium and terminal equipment
CN105828140A (en) Main control equipment, controlled equipment and method for awakening controlled equipment
KR102265648B1 (en) Electronic device and method of sending a message using electronic device
KR20140062709A (en) Mobile device and control method for the same
CN107766218B (en) System optimization method and device, storage medium and terminal equipment
CN107517314B (en) Mobile terminal, control method, control device, and storage medium
WO2015070718A1 (en) Communication number notification method and communication device
KR102553573B1 (en) Electronic device and method for detecting touch input of the same
CN109857305B (en) Input response method and mobile terminal
CN103729283A (en) System log output method and device and terminal device
CN106776092B (en) State detection method and device of proximity sensor and terminal
CN108881623B (en) Mobile terminal control method, mobile terminal and storage medium thereof
CN113420283A (en) Starting-up method and device of mobile terminal, storage medium and mobile terminal
CN108365867B (en) Antenna switching method and device, storage medium and electronic equipment
US10666789B2 (en) Control method and device for sensors of mobile terminal, storage medium and mobile terminal
CN108365882B (en) Antenna control method, antenna control device, storage medium and electronic equipment
KR102515282B1 (en) Method and electronic device for controlling power supply
CN111026259A (en) Control method and device of mobile terminal and storage medium

Legal Events

Date Code Title Description
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
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.

GR01 Patent grant
GR01 Patent grant