[go: up one dir, main page]

CN108829542B - Mobile terminal, control method thereof and storage medium - Google Patents

Mobile terminal, control method thereof and storage medium Download PDF

Info

Publication number
CN108829542B
CN108829542B CN201810639619.5A CN201810639619A CN108829542B CN 108829542 B CN108829542 B CN 108829542B CN 201810639619 A CN201810639619 A CN 201810639619A CN 108829542 B CN108829542 B CN 108829542B
Authority
CN
China
Prior art keywords
mobile terminal
data change
change value
distance sensor
threshold
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.)
Expired - Fee Related
Application number
CN201810639619.5A
Other languages
Chinese (zh)
Other versions
CN108829542A (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 CN201810639619.5A priority Critical patent/CN108829542B/en
Publication of CN108829542A publication Critical patent/CN108829542A/en
Application granted granted Critical
Publication of CN108829542B publication Critical patent/CN108829542B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1415Saving, restoring, recovering or retrying at system level
    • G06F11/1441Resetting or repowering

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Telephone Function (AREA)

Abstract

本申请提供了一种移动终端及其控制方法、存储介质,其中,该控制方法包括:检测加速度传感器以及距离传感器的数据变化值;判断是否所述加速度传感器的数据变化值大于第一阈值且所述距离传感器的数据变化值小于第二阈值;若是,则复位所述距离传感器。该控制方法通过加速度传感器和距离传感器的数据变化情况来判断距离传感器是否异常,进而复位重启距离传感器,可以避免由于距离传感器失效而引起的显示屏误触的问题发生。

Figure 201810639619

The present application provides a mobile terminal, a control method thereof, and a storage medium, wherein the control method includes: detecting a data change value of an acceleration sensor and a distance sensor; judging whether the data change value of the acceleration sensor is greater than a first threshold and all The data change value of the distance sensor is less than the second threshold; if so, the distance sensor is reset. The control method judges whether the distance sensor is abnormal according to the data changes of the acceleration sensor and the distance sensor, and then resets and restarts the distance sensor, which can avoid the problem of false touch of the display screen caused by the failure of the distance sensor.

Figure 201810639619

Description

Mobile terminal, control method thereof and storage medium
Technical Field
The invention relates to the technical field of mobile terminal control, in particular to a mobile terminal, a control method thereof and a storage medium.
Background
Currently, most mobile terminal devices (such as smart phones, tablet computers, and the like) are equipped with a distance sensor, which can be used to sense whether an object is hidden on the front of the mobile terminal device. For example, when a user makes a call, the distance sensor can detect that a human face approaches a mobile phone screen, so that the screen is automatically locked, misoperation is prevented, and electric quantity can be saved. However, when the distance sensor is abnormal and a user carries out a call by hand, the screen is not turned off, which may cause false triggering to cause unnecessary operation, and the use experience of the user is affected.
Disclosure of Invention
An embodiment of the present application provides a control method for a mobile terminal, where the control method includes:
detecting data change values of an acceleration sensor and a distance sensor;
judging whether the data change value of the acceleration sensor is larger than a first threshold value and the data change value of the distance sensor is smaller than a second threshold value;
and if so, resetting the distance sensor.
In another aspect, an embodiment of the present application further provides a mobile terminal, where the mobile terminal includes a processor and a memory, and the processor is coupled to the memory and executes instructions when operating to implement the control method according to any one of the foregoing embodiments.
Further, an embodiment of the present application further provides a mobile terminal, where the mobile terminal includes:
the detection module is used for detecting data change values of the acceleration sensor and the distance sensor;
the judging module is used for judging whether the data change value of the acceleration sensor is larger than a first threshold value and the data change value of the distance sensor is smaller than a second threshold value;
and the execution module is used for resetting the distance sensor.
In addition, the embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored, where the computer program is executed by a processor to implement the control method according to any one of the above embodiments.
According to the mobile terminal and the control method and the storage medium thereof, whether the distance sensor is abnormal or not is judged according to the data change conditions of the acceleration sensor and the distance sensor, and then the distance sensor is reset and restarted, so that the problem that a display screen is touched by mistake due to the fact that the distance sensor fails can be avoided.
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 flowchart illustrating another embodiment of a control method of a mobile terminal according to the present application;
fig. 3 is a flowchart illustrating a control method of a mobile terminal according to another embodiment of the present application;
FIG. 4 is a flowchart illustrating an embodiment of a method for determining whether a mobile terminal is in a call state;
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 an embodiment of a method for determining whether a mobile terminal changes an answering state;
FIG. 7 is a block diagram illustrating the structural components of an embodiment of a mobile terminal provided herein;
FIG. 8 is a block diagram illustrating the structural components of another embodiment of a mobile terminal provided herein;
FIG. 9 is a schematic structural diagram of an embodiment of a computer storage medium provided in the present application.
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. Likewise, 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 step 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.
As used herein, a "communication terminal" (or simply "terminal") includes, but is not limited to, a device that is configured to receive/transmit communication signals via a wireline connection, such as via a Public Switched Telephone Network (PSTN), a Digital Subscriber Line (DSL), a digital cable, a direct cable connection, and/or another data connection/network, and/or via a wireless interface (e.g., for a cellular network, a Wireless Local Area Network (WLAN), a digital television network such as a DVB-H network, a satellite network, an AM-FM broadcast transmitter, and/or another communication terminal). A communication terminal arranged to communicate over a wireless interface may be referred to as a "wireless communication terminal", "wireless terminal" or "mobile terminal". Examples of mobile terminals include, but are not limited to, satellite or cellular telephones; a Personal Communications System (PCS) terminal that may combine a cellular radiotelephone with data processing, facsimile and data communications capabilities; PDAs that may include radiotelephones, pagers, internet/intranet access, Web browsers, notepads, calendars, and/or Global Positioning System (GPS) receivers; and conventional laptop and/or palmtop receivers or other electronic devices that include a radiotelephone transceiver. The mobile phone is a mobile terminal equipped with a cellular communication module.
The following describes a control method of a mobile terminal according to several embodiments.
Example 1
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, where it is to be noted that the embodiment of the present application may be applied to a mobile terminal or a server, where the mobile terminal may be a mobile phone, a tablet computer, a wearable device, and the like, and the server may be a cloud server.
The control method of the mobile terminal in the embodiment includes, but is not limited to, the following steps:
step 110, detecting data change values of the acceleration sensor and the distance sensor.
In this step, the acceleration sensor may be a gyroscope inside the mobile terminal, and detecting the data change value of the acceleration sensor in this step refers to detecting the change condition of the acceleration sensor, that is, detecting the change condition of the acceleration or speed state of the mobile terminal, for example, the mobile terminal is originally in a constant-speed moving state and is now in an acceleration moving state; or the mobile terminal is originally in a stationary state and now changes to a mobile state.
The distance sensor is generally an infrared sensor, and the data change value detected by the distance sensor refers to a change of a distance between an object and the distance detected by the distance sensor, for example, the original distance between the object and the distance detected by the distance sensor is 30cm, and now the distance is changed to 2cm, and the difference of 28cm is the data change value of the distance sensor.
Step 120, determining whether the data variation value of the acceleration sensor is greater than a first threshold and the data variation value of the distance sensor is less than a second threshold.
In step 120, the first threshold and the second threshold may be set in advance, and in the determination of this step, it is necessary to simultaneously satisfy the condition that the data change value of the acceleration sensor is greater than the first threshold and the data change value of the distance sensor is less than the second threshold to trigger the next step.
And step 130, if yes, resetting the distance sensor.
In this step, if it is determined that the data change value of the acceleration sensor is greater than the first threshold and the data change value of the distance sensor is smaller than the second threshold while being satisfied, the distance sensor is reset and restarted. When the trigger condition is judged, if the data change value of the acceleration sensor is greater than a first threshold value, the mobile terminal is indicated to be moved, and the speed or the acceleration of the mobile terminal is changed; and if the data change value of the distance sensor is smaller than the second threshold value, the mobile terminal is not shielded, namely the mobile terminal is not subjected to the telephone answering action close to the head, and when the two conditions are simultaneously met, the fact that the distance sensor is abnormal can be judged, and then the reset and restart action of the distance sensor is executed. Normally, when there is an action of answering a call, the data change value of the acceleration sensor is larger than the first threshold value, and the data change value of the distance sensor is also larger than the second threshold value.
According to the mobile terminal control method provided by the embodiment, whether the distance sensor is abnormal or not is judged according to the data change conditions of the acceleration sensor and the distance sensor, and then the distance sensor is reset, so that the distance sensor in an abnormal state can be ensured to be automatically restarted.
Example 2
Referring to fig. 2, fig. 2 is a schematic flowchart illustrating a control method of a mobile terminal according to another embodiment of the present application, where the control method in the embodiment mainly includes the following steps:
step 210, determining whether the mobile terminal is in a call service state.
In this step, the call service state of the mobile terminal refers to a prompt state that a call is incoming or outgoing and is temporarily not answered. That is to say, the mobile terminal is in a state of un-answering ringing or vibration prompting of the call incoming call, or in a state of not answering the outgoing call. And if the mobile terminal is in the conversation service state, performing the next step, otherwise, repeating the step until the mobile terminal is in the conversation service state.
In step 220, data change values of the acceleration sensor and the distance sensor are detected.
For details and principles of the step, reference is made to the related description of the previous embodiment, and details are not provided here.
In step 230, it is determined whether the data variation of the acceleration sensor is greater than the first threshold and the data variation of the distance sensor is less than the second threshold.
In this step, if the two conditions that the data change value of the acceleration sensor is greater than the first threshold and the data change value of the distance sensor is less than the second threshold are not simultaneously satisfied, the process returns to step 220 to continue to detect the data change values of the acceleration sensor and the distance sensor; and if the data change value of the acceleration sensor is larger than the first threshold value and the data change value of the distance sensor is smaller than the second threshold value, the next step is carried out.
Step 240, the distance sensor is reset.
In this step, resetting the distance sensor is to perform a restart operation on the distance sensor.
And step 250, ending.
Compared with the previous embodiment, in the mobile terminal control method provided in this embodiment, when the mobile terminal is in a call service state, whether the distance sensor is abnormal is determined according to the data change conditions of the acceleration sensor and the distance sensor, and then the distance sensor is reset and restarted, so that the problem of mistaken touch of the display screen caused by failure of the distance sensor can be avoided.
Example 3
Referring to fig. 3, fig. 3 is a schematic flowchart illustrating a control method of a mobile terminal according to another embodiment of the present application, where the control method in the embodiment mainly includes the following steps:
step 310, determining whether the mobile terminal is in a call service state.
In this step, the call service state of the mobile terminal also refers to a prompt state that a call is incoming or outgoing and is temporarily not answered. And if the mobile terminal is in the conversation service state, performing the next step, otherwise, repeating the step until the mobile terminal is in the conversation service state.
In step 320, data change values of the acceleration sensor and the distance sensor are detected.
For details and principles of this step, please refer to the related description of embodiment 1, and detailed description is omitted here.
Step 330, determine whether the data variation of the acceleration sensor is greater than the first threshold and the data variation of the distance sensor is less than the second threshold.
In this step, if the two conditions that the data change value of the acceleration sensor is greater than the first threshold and the data change value of the distance sensor is less than the second threshold are not simultaneously satisfied, the process returns to step 320 to continue to detect the data change values of the acceleration sensor and the distance sensor; and if the data change value of the acceleration sensor is larger than the first threshold value and the data change value of the distance sensor is smaller than the second threshold value, the next step is carried out.
Step 340, reset the distance sensor.
In this step, resetting the distance sensor is to perform a restart operation on the distance sensor.
In step 350, data change values of the acceleration sensor and the distance sensor are detected.
Step 360, it is determined whether the data variation value of the acceleration sensor is greater than the first threshold and the data variation value of the distance sensor is less than the second threshold.
As can be seen from the above, step 350 and step 360 are repeated step 320 and step 330, and the detailed procedures of these steps are not described in detail here. In step 360, if the result of determining whether the data change value of the acceleration sensor is greater than the first threshold and the data change value of the distance sensor is less than the second threshold is still yes, it indicates that the reset and restart of the distance sensor is invalid and the purpose of recovering the function of the distance sensor is not achieved, so the next step is performed; and when the result that whether the data change value of the acceleration sensor is greater than the first threshold value and the data change value of the distance sensor is smaller than the second threshold value is judged to be negative, the reset and restart of the distance sensor are effective, the distance sensor recovers the normal function, the screen turning-off and the screen lighting of the display screen can be normally controlled through the distance sensor, and therefore the step 300 is entered, and the process is ended.
Step 370, determining whether the mobile terminal is in a call state.
In this step, the call state of the mobile terminal refers to a state in which the mobile terminal is performing a voice call, which is different from the aforementioned call service state (the call service state refers to a state in which a call is incoming or outgoing and is temporarily not answered). In this step, if the mobile terminal is determined to be in the call state, the process proceeds to step 380, and if the mobile terminal is determined not to be in the call state, the process proceeds to step 390.
The method for determining whether the mobile terminal is in the call state specifically includes the steps in fig. 4, please refer to fig. 4, fig. 4 is a flowchart illustrating an embodiment of the method for determining whether the mobile terminal is in the call state, and the method includes:
in step 371, it is determined whether the data change value of the acceleration sensor is greater than the third threshold and the data change value of the ambient light detection sensor is greater than the fourth threshold.
As can be seen from the above steps, since the distance sensor still does not recover the normal function after the restart, in this step, the acceleration sensor may also be a gyroscope inside the mobile terminal, and detecting the data change value of the acceleration sensor in this step refers to detecting the change condition of the acceleration sensor, that is, detecting the change condition of the acceleration or speed state of the mobile terminal, for example, the mobile terminal is originally in a constant-speed moving state and is now changed into an acceleration moving state; or the mobile terminal is originally in a stationary state and now changes to a mobile state.
The ambient light detection sensor is generally implemented by using a phototransistor, a photoresistor or a photodiode, and detecting the data change value of the ambient light detection sensor means that the ambient light detection sensor detects the change condition of the ambient light at the position where the ambient light detection sensor is located, and when the mobile terminal is in a continuous call process or in a non-call state, the ambient light detected by the ambient light detection sensor should be in a stable brightness state.
In this step, when the ambient light detected by the ambient light detection sensor changes (the data change value of the ambient light detection sensor is greater than the fourth threshold), and the acceleration sensor also detects that the moving state of the mobile terminal changes (the data change value of the acceleration sensor is greater than the third threshold), then step 372 is performed; otherwise, go to step 373.
And 372, judging that the mobile terminal is in a call state.
Step 373, determining that the mobile terminal is not in a call state.
Wherein step 372 is connected to step 380, and step 373 is connected to step 380.
And 380, controlling a display screen information screen of the mobile terminal.
And step 390, controlling the display screen of the mobile terminal to be always on.
And step 300, ending.
Compared with the foregoing embodiment, in the mobile terminal control method provided in this embodiment, after the distance sensor is restarted, the validity of the distance sensor is detected again, and when it is determined that the distance sensor is still not recovered, the screen turning-off and the screen turning-on of the display screen are controlled according to the data change conditions of the acceleration sensor and the ambient light detection sensor, so as to avoid the problem of the mistaken touch of the display screen due to the failure of the distance sensor.
Example 4
Referring to fig. 5, fig. 5 is a schematic flowchart illustrating a control method of a mobile terminal according to another embodiment of the present application, where the control method in this embodiment mainly includes the following steps:
step 401, determining whether the mobile terminal is in a call service state.
In step 402, data change values of the acceleration sensor and the distance sensor are detected.
In step 403, it is determined whether the data change value of the acceleration sensor is greater than the first threshold and the data change value of the distance sensor is less than the second threshold.
At step 404, the distance sensor is reset.
In step 405, data change values of the acceleration sensor and the distance sensor are detected.
Step 406, determining whether the data variation value of the acceleration sensor is greater than a first threshold and the data variation value of the distance sensor is less than a second threshold.
Please refer to the related description of the corresponding steps in embodiment 3 for steps 401 and 406, which are not repeated here.
Step 407, determine whether the mobile terminal is in a call state.
In this step, the call state of the mobile terminal refers to a state in which the mobile terminal is performing a voice call, which is different from the aforementioned call service state (the call service state refers to a state in which a call is incoming or outgoing and is temporarily not answered). In this step, if it is determined that the mobile terminal is in the call state, the process proceeds to step 408, and if it is determined that the mobile terminal is not in the call state, the process proceeds to step 409.
Please refer to the related description of the foregoing embodiments for a method for determining whether a mobile terminal is in a call state.
And step 408, controlling a display screen information screen of the mobile terminal.
And step 409, controlling the display screen of the mobile terminal to be normally bright.
Unlike embodiment 3, in this embodiment, step 410 is further included after the step of controlling the display screen of the mobile terminal in step 408, and it is determined whether the mobile terminal is finished in a call or changes an answering state. If yes, go to step 411; if the determination result is negative, go to step 412. Specifically, please refer to fig. 6, where fig. 6 is a flowchart illustrating an embodiment of a method for determining whether a mobile terminal is in an off state.
Step 4101, it is determined whether the data change value of the acceleration sensor is larger than a fifth threshold value and the data change value of the ambient light detection sensor is larger than a sixth threshold value.
In this step, if it is determined whether the data change value of the acceleration sensor is greater than the fifth threshold value and the data change value of the ambient light detection sensor is greater than the sixth threshold value, the process proceeds to step 4102, otherwise, the process proceeds to step 4103.
Step 4102, determining that the mobile terminal has changed the listening status.
Step 4103, determining that the mobile terminal has not changed the listening status.
The above is only a method for determining whether the mobile terminal changes the answering state, and certainly, in other embodiments, it may also be determined whether the mobile terminal changes its answering state by other ways, which are not listed and described in detail herein.
And step 411, controlling a display screen of the mobile terminal to be lightened.
Step 412, the mobile terminal is kept in the screen turning state.
And step 413, ending.
According to the mobile terminal control method provided by the embodiment, after the distance sensor is restarted, the effectiveness of the distance sensor is detected again, and when the distance sensor is judged not to be recovered, the screen turning-off and the screen lighting of the display screen are controlled through the data change conditions of the acceleration sensor and the ambient light detection sensor, so that the problem that the display screen is touched by mistake due to the failure of the distance sensor is avoided; in addition, the acceleration sensor and the ambient light detection sensor are further utilized to judge that the mobile terminal changes the answering state, so that the reliable control of the screen displaying and the screen lightening is realized.
Referring to fig. 7, fig. 7 is a schematic block diagram illustrating a structure of an embodiment of a mobile terminal provided in the present application, where the mobile terminal 70 includes a processor 71 and a memory 72. The processor 71 is coupled to a memory 72.
The processor 71 is specifically configured to detect data change values of the acceleration sensor and the distance sensor; judging whether the data change value of the acceleration sensor is larger than a first threshold value and the data change value of the distance sensor is smaller than a second threshold value; and if so, resetting the distance sensor. For a detailed control method flow, reference is made to the detailed description of the method embodiment shown in fig. 1-6.
Further, please refer to fig. 8, fig. 8 is a schematic block diagram illustrating a structural configuration of another embodiment of the mobile terminal provided in the present application, where the mobile terminal in the present embodiment includes a detecting module 81, a determining module 82, and an executing module 83.
Specifically, the detection module 81 is configured to detect data change values of an acceleration sensor and a distance sensor; the judging module 82 is configured to judge whether a data change value of the acceleration sensor is greater than a first threshold and a data change value of the distance sensor is less than a second threshold; the execution module 83 is configured to reset the distance sensor.
Further, the judging module 82 is further configured to judge whether the mobile terminal is in a call state, and when the judging module 82 judges that the mobile terminal is in the call state, the executing module 83 is configured to control the screen of the display screen of the mobile terminal; when the determining module 82 determines that the mobile terminal is not in a call state, the executing module 83 is configured to control the display screen of the mobile terminal to be normally on. The determining module 82 is specifically configured to determine whether the data change value of the acceleration sensor is greater than a third threshold and the data change value of the ambient light detection sensor is greater than a fourth threshold, and if yes, determine that the mobile terminal is in a call state. The judging module 82 is further configured to judge whether the mobile terminal is finished in a call or changes a call receiving state; if the determining module 82 determines that the mobile terminal is in a call end state or changes an answering state, the executing module 83 controls the display screen of the mobile terminal to be lit.
In addition, the determining module 82 is further specifically configured to determine whether the data change value of the acceleration sensor is greater than a fifth threshold and the data change value of the ambient light detection sensor is greater than a sixth threshold, and if so, determine that the mobile terminal changes the answering state. Further, the determining module 82 is further configured to determine whether the mobile terminal is in a call service state.
For the specific control process of each module, please refer to the related description of the foregoing method embodiment, which is not repeated herein. The mobile terminal provided by the embodiment judges whether the distance sensor is abnormal or not according to the data change conditions of the acceleration sensor and the distance sensor, and then resets and restarts the distance sensor; after the distance sensor is restarted, the effectiveness of the distance sensor is detected again, and when the distance sensor is judged to be still not recovered, the screen turning-off and the screen lighting of the display screen are controlled through the data change conditions of the acceleration sensor and the ambient light detection sensor, so that the problem that the display screen is touched by mistake due to the failure of the distance sensor is avoided; in addition, the acceleration sensor and the ambient light detection sensor are further utilized to judge that the mobile terminal changes the answering state, so that the reliable control of the screen displaying and the screen lightening is realized.
Referring to fig. 9, fig. 9 is a schematic structural diagram of an embodiment of a computer storage medium provided in the present application, where the computer storage medium 90 is used to store a computer program 91, and the computer program 91 is used to implement the control method provided in the embodiments of fig. 1 to fig. 6 when executed by a processor, and the computer storage medium 90 may be used in the above-mentioned mobile terminal or may be used in a server.
The computer program stored in the computer-readable storage medium of this embodiment is similar to the computer program stored in the memory in the embodiment of the electronic device described above, and the method steps implemented when the computer program is executed by the processor are similar, and are not described herein again.
In the several embodiments provided in the present invention, it should be understood that the disclosed system, apparatus and method may be implemented in other manners. For example, the above-described apparatus embodiments are merely illustrative, and for example, a division of a module or a unit is merely a logical division, and an actual implementation may have another division, 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.
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 substantially or partially implemented in the form of a software product stored in a storage medium and including 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.
The above description is only a part of the embodiments of the present invention, and not intended to limit the scope of the present invention, and all equivalent devices or equivalent processes performed by the present invention through the contents of the specification and the drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (6)

1.一种移动终端的控制方法,其特征在于,所述控制方法包括:1. A control method for a mobile terminal, wherein the control method comprises: 检测加速度传感器以及距离传感器的数据变化值;Detect the data change value of the acceleration sensor and the distance sensor; 判断是否所述加速度传感器的数据变化值大于第一阈值且所述距离传感器的数据变化值小于第二阈值;determining whether the data change value of the acceleration sensor is greater than a first threshold and the data change value of the distance sensor is less than a second threshold; 若是,则复位所述距离传感器;If so, reset the distance sensor; 在进行复位距离传感器的步骤之后还包括重复检测加速度传感器和距离传感器的数据变化值以及判断是否加速度传感器的数据变化值大于第一阈值且距离传感器的数据变化值小于第二阈值的步骤,若判断结果仍然为是,则判断移动终端是否处于通话状态;若判断移动终端处于通话状态,控制移动终端的显示屏息屏;若判断移动终端不处于通话状态,则控制移动终端的显示屏常亮;After the step of resetting the distance sensor, it also includes the step of repeatedly detecting the data change value of the acceleration sensor and the distance sensor and judging whether the data change value of the acceleration sensor is greater than the first threshold and the data change value of the distance sensor is less than the second threshold value. If the result is still yes, then judge whether the mobile terminal is in a call state; if it is judged that the mobile terminal is in a call state, control the display screen of the mobile terminal to keep the screen off; if it is judged that the mobile terminal is not in a call state, control the display screen of the mobile terminal to be always on; 所述判断移动终端处于通话状态,控制移动终端的显示屏息屏的步骤之后还包括:After the step of judging that the mobile terminal is in a call state, and controlling the display screen of the mobile terminal to keep the screen off, it further includes: 判断移动终端是否通话结束或者改变接听状态;Determine whether the mobile terminal ends the call or changes the answering state; 若是,则控制移动终端的显示屏点亮;If yes, then control the display screen of the mobile terminal to light up; 其中,所述判断移动终端是否改变接听状态的方法具体包括:判断是否加速度传感器的数据变化值大于第五阈值且环境光检测传感器的数据变化值大于第六阈值,若是,则判断移动终端改变了接听状态;Wherein, the method for judging whether the mobile terminal changes the answering state specifically includes: judging whether the data change value of the acceleration sensor is greater than the fifth threshold and the data change value of the ambient light detection sensor is greater than the sixth threshold, and if so, judging that the mobile terminal has changed answering state; 其中,判断移动终端是否处于通话状态的方法具体包括:判断是否加速度传感器的数据变化值大于第三阈值且环境光检测传感器的数据变化值大于第四阈值,若是,则判断移动终端处于通话状态。The method for judging whether the mobile terminal is in a call state specifically includes: judging whether the data change value of the acceleration sensor is greater than a third threshold and the data change value of the ambient light detection sensor is greater than a fourth threshold, and if so, judging that the mobile terminal is in a call state. 2.根据权利要求1所述的控制方法,其特征在于,所述控制方法在所述检测加速度传感器以及距离传感器的数据变化值的步骤之前还包括判断移动终端是否处于通话业务状态,若是,则进行所述检测加速度传感器以及距离传感器的数据变化值的步骤。2. The control method according to claim 1, wherein the control method further comprises judging whether the mobile terminal is in a call service state before the step of detecting the data change value of the acceleration sensor and the distance sensor, and if so, then The step of detecting the data change value of the acceleration sensor and the distance sensor is performed. 3.根据权利要求2所述的控制方法,其特征在于,所述移动终端的通话业务状态包括通话呼入或者呼出暂未接听的提示状态。3 . The control method according to claim 2 , wherein the call service state of the mobile terminal includes a prompt state of an incoming call or an outgoing call that is not answered temporarily. 4 . 4.一种移动终端,其特征在于,所述移动终端包括处理器和存储器,所述处理器耦合所述存储器,所述处理器在工作时执行指令以实现如权利要求1-3任一项所述的控制方法。4. A mobile terminal, characterized in that the mobile terminal comprises a processor and a memory, the processor is coupled to the memory, and the processor executes instructions during operation to implement any one of claims 1-3 the described control method. 5.一种移动终端,其特征在于,所述移动终端包括:检测模块、判断模块以及执行模块;5. A mobile terminal, characterized in that the mobile terminal comprises: a detection module, a judgment module and an execution module; 所述检测模块用于检测加速度传感器以及距离传感器的数据变化值;The detection module is used to detect the data change value of the acceleration sensor and the distance sensor; 所述判断模块用于判断是否所述加速度传感器的数据变化值大于第一阈值且所述距离传感器的数据变化值小于第二阈值;所述判断模块还用于判断移动终端是否处于通话状态,在所述判断模块判断移动终端处于通话状态时,所述执行模块用于控制移动终端显示屏的息屏;在所述判断模块判断移动终端没有处于通话状态时,所述执行模块用于控制移动终端显示屏常亮;所述判断模块还用于判断移动终端是否通话结束或者改变接听状态;若所述判断模块判断移动终端为通话结束或者改变接听状态,所述执行模块控制移动终端的显示屏点亮;所述判断模块具体用于判断是否加速度传感器的数据变化值大于第五阈值且环境光检测传感器的数据变化值大于第六阈值,若是,则判断移动终端改变接听状态;The judgment module is used to judge whether the data change value of the acceleration sensor is greater than the first threshold and the data change value of the distance sensor is less than the second threshold value; the judgment module is also used to judge whether the mobile terminal is in a call state, and the When the judgment module judges that the mobile terminal is in a call state, the execution module is used to control the screen of the mobile terminal display screen; when the judgment module judges that the mobile terminal is not in a call state, the execution module is used to control the mobile terminal The display screen is always on; the judgment module is also used to judge whether the mobile terminal has ended the call or changed the answering state; if the judgment module judges that the mobile terminal has ended the call or changed the answering state, the execution module controls the display point of the mobile terminal on; the judging module is specifically used to judge whether the data change value of the acceleration sensor is greater than the fifth threshold and the data change value of the ambient light detection sensor is greater than the sixth threshold, and if so, judge that the mobile terminal changes the answering state; 执行模块还用于复位所述距离传感器;The execution module is also used for resetting the distance sensor; 所述判断模块具体用于判断是否加速度传感器的数据变化值大于第三阈值且环境光检测传感器的数据变化值大于第四阈值,若是,则判断移动终端处于通话状态;The judging module is specifically configured to judge whether the data change value of the acceleration sensor is greater than the third threshold and the data change value of the ambient light detection sensor is greater than the fourth threshold, and if so, judge that the mobile terminal is in a call state; 所述检测模块还用于重复检测加速度传感器和距离传感器的数据变化值以及所述判断模块用于判断是否所述加速度传感器的数据变化值大于第一阈值且距离传感器的数据变化值小于第二阈值;若判断结果仍然为是,则判断移动终端是否处于通话状态;若判断移动终端处于通话状态,则所述执行模块控制移动终端的显示屏息屏;若判断移动终端不处于通话状态,则所述执行模块控制移动终端的显示屏常亮。The detection module is also used to repeatedly detect the data change value of the acceleration sensor and the distance sensor, and the judgment module is used to judge whether the data change value of the acceleration sensor is greater than the first threshold value and the data change value of the distance sensor is smaller than the second threshold value. ; If the judgment result is still yes, then judge whether the mobile terminal is in a call state; if it is judged that the mobile terminal is in a call state, the execution module controls the display screen of the mobile terminal to be off; if it is judged that the mobile terminal is not in a call state, the said The execution module controls the display screen of the mobile terminal to be always on. 6.一种计算机可读存储介质,其上存储有计算机程序,其特征在于,该程序被处理器执行以实现如权利要求1-3任一项所述的控制方法。6. A computer-readable storage medium on which a computer program is stored, wherein the program is executed by a processor to implement the control method according to any one of claims 1-3.
CN201810639619.5A 2018-06-20 2018-06-20 Mobile terminal, control method thereof and storage medium Expired - Fee Related CN108829542B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810639619.5A CN108829542B (en) 2018-06-20 2018-06-20 Mobile terminal, control method thereof and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810639619.5A CN108829542B (en) 2018-06-20 2018-06-20 Mobile terminal, control method thereof and storage medium

Publications (2)

Publication Number Publication Date
CN108829542A CN108829542A (en) 2018-11-16
CN108829542B true CN108829542B (en) 2022-03-29

Family

ID=64143290

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810639619.5A Expired - Fee Related CN108829542B (en) 2018-06-20 2018-06-20 Mobile terminal, control method thereof and storage medium

Country Status (1)

Country Link
CN (1) CN108829542B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI688882B (en) * 2019-03-29 2020-03-21 華碩電腦股份有限公司 Electronic device and controlling method thereof
CN110830644B (en) * 2019-09-16 2021-04-20 深圳市万普拉斯科技有限公司 Display screen control method, device, electronic device and storage medium
CN111327760B (en) * 2020-01-17 2021-06-18 珠海格力电器股份有限公司 Control method and device for false touch prevention mode, mobile terminal and storage medium
CN111432073A (en) * 2020-04-01 2020-07-17 Tcl移动通信科技(宁波)有限公司 Mobile terminal control method and device, storage medium and mobile terminal
WO2021196212A1 (en) * 2020-04-03 2021-10-07 深圳市大疆创新科技有限公司 Movable platform and control method therefor, and inertial sensor circuit
CN111654578B (en) * 2020-06-02 2021-06-15 Tcl通讯(宁波)有限公司 Mobile terminal sensor restoration method
CN112181209A (en) * 2020-11-03 2021-01-05 珠海格力电器股份有限公司 Method and device for recovering anti-false touch function, storage medium and electronic device

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102984372A (en) * 2012-11-21 2013-03-20 广东欧珀移动通信有限公司 A method, device and mobile terminal for turning off screen and turning on screen
CN103581394A (en) * 2012-08-02 2014-02-12 希姆通信息技术(上海)有限公司 Device and method for testing proximity sensor of mobile terminal
CN105334966A (en) * 2015-11-27 2016-02-17 广东欧珀移动通信有限公司 Method, device and terminal equipment for preventing misoperation
CN106331324A (en) * 2016-08-16 2017-01-11 努比亚技术有限公司 Screen extinguishment control method and control device for mobile terminal
CN106412243A (en) * 2016-09-05 2017-02-15 努比亚技术有限公司 Method for monitoring abnormity of distance sensor, and terminal
CN106534534A (en) * 2016-11-09 2017-03-22 广东欧珀移动通信有限公司 Working mode switching method and mobile terminal
CN106547638A (en) * 2016-11-08 2017-03-29 广东欧珀移动通信有限公司 Method, device and mobile terminal for preventing abnormal proximity state
CN106776092A (en) * 2016-12-06 2017-05-31 广东欧珀移动通信有限公司 A kind of condition detection method of proximity transducer, device and terminal
CN107454265A (en) * 2017-08-11 2017-12-08 北京安云世纪科技有限公司 Change the method and device of record call-information based on call mode

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9363010B2 (en) * 2012-12-03 2016-06-07 Samsung Electronics Co., Ltd. Mobile terminal and method of controlling function of the mobile terminal
KR102058369B1 (en) * 2013-01-29 2019-12-24 엘지전자 주식회사 Mobile terminal and cover for the same
WO2016052172A1 (en) * 2014-09-29 2016-04-07 シャープ株式会社 Portable terminal, method for controlling portable terminal, and control program
CN107102864A (en) * 2017-05-16 2017-08-29 广东欧珀移动通信有限公司 One kind puts out screen control method, device, storage medium and terminal

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103581394A (en) * 2012-08-02 2014-02-12 希姆通信息技术(上海)有限公司 Device and method for testing proximity sensor of mobile terminal
CN102984372A (en) * 2012-11-21 2013-03-20 广东欧珀移动通信有限公司 A method, device and mobile terminal for turning off screen and turning on screen
CN105334966A (en) * 2015-11-27 2016-02-17 广东欧珀移动通信有限公司 Method, device and terminal equipment for preventing misoperation
CN106331324A (en) * 2016-08-16 2017-01-11 努比亚技术有限公司 Screen extinguishment control method and control device for mobile terminal
CN106412243A (en) * 2016-09-05 2017-02-15 努比亚技术有限公司 Method for monitoring abnormity of distance sensor, and terminal
CN106547638A (en) * 2016-11-08 2017-03-29 广东欧珀移动通信有限公司 Method, device and mobile terminal for preventing abnormal proximity state
CN106534534A (en) * 2016-11-09 2017-03-22 广东欧珀移动通信有限公司 Working mode switching method and mobile terminal
CN106776092A (en) * 2016-12-06 2017-05-31 广东欧珀移动通信有限公司 A kind of condition detection method of proximity transducer, device and terminal
CN107454265A (en) * 2017-08-11 2017-12-08 北京安云世纪科技有限公司 Change the method and device of record call-information based on call mode

Also Published As

Publication number Publication date
CN108829542A (en) 2018-11-16

Similar Documents

Publication Publication Date Title
CN108829542B (en) Mobile terminal, control method thereof and storage medium
US9389716B2 (en) Mobile terminal apparatus
US8631328B2 (en) System and method for controlling interaction between a mobile terminal and a digital picture frame
EP2141582B1 (en) Character input method of mobile terminal
CN105224234B (en) Content of text selection method and mobile terminal
CN112424725A (en) Application program control method and electronic equipment
AU2019208662B2 (en) Service processing method and mobile communication terminal
CN105898069A (en) Information reminding method and device
CN105718405B (en) The method that the USB interface of mobile terminal and its processor is multiplexed
CN109753210B (en) Information display method of mobile terminal, mobile terminal and readable storage medium
CN106550126A (en) The control device and method of mobile terminal and its screen intensity
CN108495349B (en) A kind of operator network handover method and mobile terminal
CN110442437A (en) Application switching method and mobile terminal
CN106302137A (en) Group chat message processing apparatus and method
CN103095915A (en) Method of preventing faulty operation based on touch screen mobile phone and mobile phone
CN109766119B (en) Recovery partition upgrade method, terminal and computer readable storage medium
CN110413330B (en) Face unlocking initialization method, equipment and computer readable storage medium
CN109658883A (en) Screen display method, terminal and computer readable storage medium
CN109634629B (en) System upgrading method, terminal and computer readable storage medium
CN106331324B (en) Screen-off control method and device for mobile terminal
CN107122266B (en) Method and equipment for backing up data and computer readable storage medium
US9900426B2 (en) Electronic apparatus, method for controlling the same and processor for the same
CN108536508B (en) Interface processing method, device and mobile terminal
CN108391294A (en) A kind of method and mobile terminal of registered network
CN108924292B (en) Terminal control method, device, mobile terminal and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20220329

CF01 Termination of patent right due to non-payment of annual fee