CN111654578B - Mobile terminal sensor restoration method - Google Patents

Mobile terminal sensor restoration method Download PDF

Info

Publication number
CN111654578B
CN111654578B CN202010488662.3A CN202010488662A CN111654578B CN 111654578 B CN111654578 B CN 111654578B CN 202010488662 A CN202010488662 A CN 202010488662A CN 111654578 B CN111654578 B CN 111654578B
Authority
CN
China
Prior art keywords
proximity sensor
mobile terminal
sensor
place detection
frequency
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
CN202010488662.3A
Other languages
Chinese (zh)
Other versions
CN111654578A (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.)
TCL Communication Ningbo Ltd
Original Assignee
TCL Communication Ningbo 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 TCL Communication Ningbo Ltd filed Critical TCL Communication Ningbo Ltd
Priority to CN202010488662.3A priority Critical patent/CN111654578B/en
Publication of CN111654578A publication Critical patent/CN111654578A/en
Application granted granted Critical
Publication of CN111654578B publication Critical patent/CN111654578B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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

  • Telephone Function (AREA)

Abstract

The embodiment of the application discloses a method and a device for restoring a mobile terminal sensor. The method comprises the following steps: acquiring an in-place detection period of a sensor; starting in-place detection, and judging the state of the sensor according to an in-place detection result; and when the sensor is in an off-position state, restoring the sensor and starting restoration detection of the sensor. When the mobile terminal is provided with the proximity sensor, the scheme can perform real-time in-place detection on the proximity sensor during conversation, so that the proximity sensor is prevented from falling off, and meanwhile, the mobile terminal can be automatically identified without restarting after falling off and restoration, thereby bringing convenience to users.

Description

Mobile terminal sensor restoration method
Technical Field
The application relates to the technical field of terminals, in particular to a mobile terminal sensor restoration method.
Background
The communication is one of the most main basic functions of the mobile terminal, and the current mobile terminal generally adopts a large-screen display screen and a touch screen; when the screen is close to the face of a user in the process of making a call, in order to save the battery power, prevent the face from mistakenly touching the touch screen and prevent the face from being scalded by the overheated screen, in the prior art, a proximity sensor is arranged in the mobile terminal, whether an object (such as a face) is close to the mobile terminal during a call is detected by the proximity sensor, and the screen and the touch screen are closed when the object is detected to be close to the mobile terminal. Because the mobile terminal call is the most commonly used function, even many current software such as WeChat voice, online meeting and the like also have the function similar to the call, when the software executes operation, the proximity sensor is simultaneously started to detect whether an object approaches, the functions enable the proximity sensor to be used more frequently, on the other hand, the heating is increased due to the fact that the camera, the screen, the audio and the network are simultaneously started for a long time in the long-time video call, and in addition, the mobility of the mobile terminal can cause the situation that the strength of the adhesive on the proximity sensor connected through the flat cable is reduced, the proximity sensor is easy to fall off, the function of detecting whether the proximity sensor is in place is not good at the current mobile terminal, the call is interrupted when the proximity sensor falls off, and the mobile terminal needs to be restarted later, the proximity sensor can be made available again.
Therefore, the prior art has defects and needs to be improved and developed.
Disclosure of Invention
The embodiment of the application provides a restoration method of a mobile terminal sensor, which can perform real-time in-situ detection of the sensor during communication.
The restoration method for the mobile terminal sensor provided by the embodiment of the application comprises the following steps:
acquiring an in-place detection period of a sensor;
starting in-place detection, and judging the state of the sensor according to an in-place detection result;
and when the sensor is in an off-position state, restoring the sensor and starting restoration detection of the sensor.
Optionally, in some embodiments of the present application, the acquiring an in-place detection period of the sensor includes:
and detecting the conversation temperature of the mobile terminal, wherein the conversation temperature is greater than a preset temperature threshold value, and the in-place detection period is shortened.
Optionally, in some embodiments of the present application, the acquiring an in-place detection period of the sensor includes:
dividing the call frequency of the mobile terminal into a plurality of frequency intervals, and presetting an in-place detection period list corresponding to the frequency intervals;
and acquiring the actual call frequency of the mobile terminal, and selecting the corresponding in-place detection period according to the frequency interval where the actual call frequency is located.
Optionally, in some embodiments of the present application, the restoring the sensor and starting restoration detection of the sensor includes:
the sensor is subjected to an external force, the sensor generates displacement under the action of the external force, and the sensor is in a re-in-place state;
and reading the ID of the sensor, wherein the ID is successfully read, and the sensor finishes the recovery detection.
Optionally, in some embodiments of the present application, the detecting a call temperature of the mobile terminal includes:
the conversation temperature is the temperature value of the temperature sensor or the temperature of the conversation chip, and the temperature sensor corresponds to the sensor.
Optionally, in some embodiments of the present application, the determining the state of the sensor according to the in-place detection result includes:
the sensor is in an in-place state, and the in-place detection period is acquired.
Correspondingly, the embodiment of the present application further provides a restoring apparatus for a mobile terminal sensor, including:
the acquisition unit is used for acquiring the in-place detection period of the sensor;
the in-place detection unit is used for starting in-place detection and judging the state of the sensor according to an in-place detection result;
and the restoration detection unit is used for restoring the sensor when the sensor is not in the in-position state and starting restoration detection of the sensor.
Optionally, in some embodiments of the present application, the obtaining unit includes:
the system comprises a presetting unit, a processing unit and a processing unit, wherein the presetting unit is used for dividing the call frequency of the mobile terminal into a plurality of frequency intervals and presetting an in-place detection period list corresponding to the frequency intervals;
and the frequency acquisition unit is used for acquiring the actual call frequency of the mobile terminal and selecting the corresponding in-place detection period according to the frequency interval where the actual call frequency is located.
In addition, the embodiment of the application also provides a mobile terminal, which comprises a processor and a memory; the memory is used for storing a computer program; the processor is used for realizing the restoration method of the mobile terminal sensor when executing the program stored in the memory.
Optionally, in some embodiments of the present application, the mobile terminal includes a restoring apparatus of the mobile terminal sensor described above.
The embodiment of the application provides a restoration method and a device for a mobile terminal sensor, wherein the method comprises the following steps: acquiring an in-place detection period of a sensor; starting in-place detection, and judging the state of the sensor according to an in-place detection result; and when the sensor is in an off-position state, restoring the sensor and starting restoration detection of the sensor. When the mobile terminal is provided with the proximity sensor, the scheme can perform real-time in-place detection on the proximity sensor during conversation, so that the proximity sensor is prevented from falling off, and meanwhile, the mobile terminal can be automatically identified without restarting after falling off and restoration, thereby bringing convenience to users.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, 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 schematic flowchart of a restoring method for a mobile terminal sensor according to an embodiment of the present disclosure;
fig. 2 is a schematic structural diagram of a restoring apparatus of a mobile terminal sensor according to an embodiment of the present disclosure;
fig. 3 is a schematic structural diagram of a mobile terminal according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The embodiment of the application provides a restoration method and device for a mobile terminal sensor. The mobile terminal of the embodiment of the application can be a mobile phone, a tablet computer, a notebook computer and other devices. The embodiment of the application takes a proximity sensor in a mobile terminal as an example.
The following are detailed below. It should be noted that the following description of the embodiments is not intended to limit the preferred order of the embodiments.
A restoration method of a mobile terminal sensor comprises the following steps: acquiring an in-place detection period of a sensor; starting in-place detection, and judging the state of the sensor according to an in-place detection result; and when the sensor is in an off-position state, restoring the sensor and starting restoration detection of the sensor.
As shown in fig. 1, a specific process of the restoring method of the mobile terminal sensor may be as follows:
101. and acquiring an in-place detection period of the sensor.
For example, when performing presence detection on a proximity sensor of a mobile terminal, it is necessary to first acquire an presence detection period of the proximity sensor and detect whether the proximity sensor is present according to the presence detection period.
The mobile terminal starts a call function, and when a call is carried out, in order to prevent the proximity sensor from falling off, the proximity sensor is subjected to real-time in-place detection. The conversation frequency of the mobile terminal is divided into a plurality of frequency intervals, and an in-place detection period list corresponding to the frequency intervals is preset, namely, each frequency interval is respectively provided with a corresponding in-place detection period. The divided frequency intervals may be overlapping intervals, may be adjacent intervals, or may be intervals. And acquiring the actual call frequency of the current mobile terminal, and selecting a corresponding on-site detection period according to the interval where the actual call frequency is located. For example, the number of calls per hour is 3 or less, the number of calls per hour is 30 seconds, the number of calls per hour is 4 to 10, the number of calls per hour is 10 seconds, the number of calls per hour is 10 or more, and the number of calls per hour is 5 seconds, where the call times per hour are the same.
The communication temperature of the mobile terminal is detected, the communication temperature is a temperature value of a temperature sensor corresponding to the proximity sensor or a temperature of a communication related chip, and the temperature sensor corresponding to the proximity sensor is a temperature sensor at a position closest to the proximity sensor. And presetting a temperature threshold, and if the call temperature is greater than the temperature threshold, shortening the on-site detection period of the proximity sensor. For example, the preset temperature threshold is 50 degrees, the call frequency is 4 times per hour, the corresponding on-site detection period is 10 seconds, the call temperature of the mobile terminal is detected to be 55 degrees at the moment, and if the call temperature exceeds the temperature threshold, the on-site detection period of the proximity sensor is shortened to 5 seconds.
The mobile terminal starts a call function, and since the call of the mobile terminal is the most common function and many current applications such as WeChat voice, online conference and other software also have a function similar to the call, the call of the embodiment of the present application includes a voice call and a video call.
Wherein, because the call frequency of the mobile terminal will change, if the changed call frequency does not belong to the divided frequency interval, the in-place detection period of the proximity sensor keeps the original setting, for example, when the mobile terminal sets an on-site detection period list corresponding to the call frequency interval, the divided frequency intervals are intervals, that is, the number of calls per hour is 3 or less, the corresponding proximity sensor has an on-position detection period of 30 seconds, the number of calls per hour is 5 to 10, the corresponding proximity sensor has an on-site detection period of 10 seconds, the number of calls per hour is more than 12, the corresponding proximity sensor has an in-place detection period of 5 seconds, and if the obtained call frequency is changed from 2 calls per hour to 4 calls per hour, the in-place detection period of the proximity sensor is still 30 seconds.
102. And starting in-place detection, and judging the state of the sensor according to an in-place detection result.
For example, after acquiring an on-position detection period of the proximity sensor, the mobile terminal starts on-position detection, and determines the state of the proximity sensor according to the output on-position detection result.
And if the proximity sensor is not in the on-position state, the mobile terminal starts the restoration detection of the proximity sensor. And if the proximity sensor is in the in-place state, the mobile terminal acquires the in-place detection period of the proximity sensor again and detects whether the proximity sensor is in place according to the in-place detection period.
103. And when the sensor is in an off-position state, restoring the sensor and starting restoration detection of the sensor.
For example, after the mobile terminal starts on-position detection, if the proximity sensor is in an off-position state, the proximity sensor is restored, and restoration detection of the proximity sensor is started.
After the restoring proximity sensor, that is, the proximity sensor, is subjected to an external force, for example, the mobile terminal collides in the call process, the proximity sensor is displaced under the external force, so that the proximity sensor is in an in-place state again. And starting restoration detection of the proximity sensor, namely reading the ID of the proximity sensor, if the ID of the proximity sensor is successfully read, indicating that the restoration of the proximity sensor is successful, and ending the restoration detection of the proximity sensor. When the proximity sensor is restored, the mobile terminal makes it work again.
In the embodiment of the present application, the call time of each time is the same, the call frequency of the mobile terminal is divided, the number of calls per hour is 3 or less, the on-site detection period of the corresponding proximity sensor is 30 seconds, the number of calls per hour is 4 to 10, the on-site detection period of the corresponding proximity sensor is 10 seconds, and the number of calls per hour is 10 or more, and the on-site detection period in which the corresponding proximity sensor is not provided is set. Acquiring the communication frequency of the mobile terminal at the moment, wherein if the communication frequency is 10 times of communication in one hour, the in-place detection period of the proximity sensor at the moment is 10 seconds; if the call frequency is changed to 11 calls in one hour, the on-site detection period of the proximity sensor is kept unchanged for 10 seconds at the moment because the call frequency is not in the frequency interval set by the mobile terminal. The call temperature at this time is detected, the preset temperature threshold is 50 degrees, if the call temperature is 30 degrees, the proximity sensor continues to maintain the on-site detection period of 10 seconds, and if the call temperature is 55 degrees, the on-site detection period of the proximity sensor is shortened to 5 seconds, for example. Detecting whether the proximity sensor is in place according to the acquired in-place detection period, if the proximity sensor is in the in-place state, continuously acquiring the in-place detection period of the proximity sensor, and performing in-place detection; and if the proximity sensor is not in the in-place state, restoring the proximity sensor, starting restoration detection of the proximity sensor, finishing restoration by the proximity sensor after reading the ID of the proximity sensor, finishing restoration detection of the proximity sensor, and restarting the mobile terminal by the mobile terminal.
In order to better implement the method, an embodiment of the present application may further provide a restoring apparatus for a mobile terminal sensor, where the apparatus may be specifically integrated in a network device, and the network device may be a mobile terminal or another device.
For example, as shown in fig. 2, the restoring apparatus of the mobile terminal sensor may include an obtaining unit 201, an on-site detecting unit 202, and a restoring detecting unit 203, as follows:
(1) acquisition unit 201
An acquiring unit 201, configured to acquire an in-place detection period of the sensor.
For example, the obtaining unit 201 includes a preset unit and a frequency obtaining unit, where the preset unit is configured to divide the call frequency of the mobile terminal into a plurality of frequency intervals, and preset an in-place detection period list corresponding to the frequency intervals; the frequency acquisition unit is used for acquiring the actual call frequency of the mobile terminal and selecting a corresponding on-site detection period according to the frequency interval where the actual call frequency is located.
The obtaining unit 201 further includes a call temperature detecting module, configured to detect a call temperature of the mobile terminal, and if the call temperature is greater than a preset temperature threshold, shorten an in-place detection period of the proximity sensor. The call temperature is a temperature value of a temperature sensor corresponding to the proximity sensor or a temperature of a call related chip, and the temperature sensor corresponding to the proximity sensor is a temperature sensor at a position closest to the proximity sensor.
(2) In-situ detection unit 202
And the in-place detection unit 202 is used for starting in-place detection and judging the state of the sensor according to an in-place detection result.
For example, after the acquisition unit 201 acquires the presence detection period of the proximity sensor, the presence detection unit 202 turns on the presence detection of the proximity sensor, and determines the state of the proximity sensor based on the output presence detection result. And if the proximity sensor is in the out-of-position state, the mobile terminal starts the restoration detection of the proximity sensor. And if the proximity sensor is in the in-place state, the mobile terminal acquires the in-place detection period of the proximity sensor again and detects whether the proximity sensor is in place according to the in-place detection period.
(3) Reduction detecting unit 203
And the restoring detection unit 203 is used for restoring the sensor when the sensor is in an off-position state and starting restoring detection of the sensor.
For example, when the presence detection unit 202 starts the presence detection of the proximity sensor and determines that the proximity sensor is not in the presence state, the restoration detection unit 203 restores the proximity sensor and starts the restoration detection of the proximity sensor. After the restoring proximity sensor receives external force, the proximity sensor can displace under the action of the external force, so that the proximity sensor is in the in-place state again. And starting restoration detection of the proximity sensor, namely reading the ID of the proximity sensor, if the ID of the proximity sensor is successfully read, indicating that the restoration of the proximity sensor is successful, and ending the restoration detection of the proximity sensor. When the proximity sensor is restored, the mobile terminal makes it work again.
The embodiment of the application provides a method and a device for restoring a mobile terminal sensor, wherein the method for restoring the mobile terminal sensor comprises the following steps: acquiring an in-place detection period of a sensor; starting in-place detection, and judging the state of the sensor according to an in-place detection result; and when the sensor is in an off-position state, restoring the sensor and starting restoration detection of the sensor. When the mobile terminal is provided with the proximity sensor, the scheme can perform real-time in-place detection on the proximity sensor during conversation, so that the proximity sensor is prevented from falling off, and meanwhile, the mobile terminal can be automatically identified without restarting after falling off and restoration, thereby bringing convenience to users.
Accordingly, an embodiment of the present invention also provides a mobile terminal, as shown in fig. 3, the mobile terminal may include Radio Frequency (RF) circuit 301, memory 302 including one or more computer-readable storage media, input unit 303, display unit 304, sensor 305, audio circuit 306, Wireless Fidelity (WiFi) module 307, processor 308 including one or more processing cores, and power supply 309. Those skilled in the art will appreciate that the mobile terminal architecture shown in fig. 3 is not intended to be limiting of mobile terminals and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components. Wherein:
the RF circuit 301 may be used for receiving and transmitting signals during information transmission and reception or during a call, and in particular, for receiving downlink information from a base station and then processing the received downlink information by one or more processors 308; in addition, data relating to uplink is transmitted to the base station. In general, the RF circuit 301 includes, but is not limited to, an antenna, at least one Amplifier, a tuner, one or more oscillators, a Subscriber Identity Module (SIM) card, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like. In addition, the RF circuitry 301 may also communicate with networks and other devices via wireless communications. The wireless communication may use any communication standard or protocol, including but not limited to Global System for Mobile communications (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), email, Short Message Service (SMS), and the like.
The memory 302 may be used to store software programs and modules, and the processor 308 executes various functional applications and data processing by operating the software programs and modules stored in the memory 302. The memory 302 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the mobile terminal, and the like. Further, the memory 302 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, the memory 302 may also include a memory controller to provide the processor 308 and the input unit 303 access to the memory 302.
The input unit 303 may be used to receive input numeric or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control. In particular, in one particular embodiment, the input unit 303 may include a touch-sensitive surface as well as other input devices. The touch-sensitive surface, also referred to as a touch display screen or a touch pad, may collect touch operations by a user (e.g., operations by a user on or near the touch-sensitive surface using a finger, a stylus, or any other suitable object or attachment) thereon or nearby, and drive the corresponding connection device according to a predetermined program. Alternatively, the touch sensitive surface may comprise two parts, a touch detection means and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 308, and can receive and execute commands sent by the processor 308. In addition, touch sensitive surfaces may be implemented using various types of resistive, capacitive, infrared, and surface acoustic waves. The input unit 303 may include other input devices in addition to the touch-sensitive surface. In particular, other input devices may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The display unit 304 may be used to display information input by or provided to the user and various graphical user interfaces of the mobile terminal, which may be made up of graphics, text, icons, video, and any combination thereof. The Display unit 304 may include a Display panel, and optionally, the Display panel may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like. Further, the touch-sensitive surface may overlay the display panel, and when a touch operation is detected on or near the touch-sensitive surface, the touch operation is transmitted to the processor 308 to determine the type of touch event, and the processor 308 then provides a corresponding visual output on the display panel according to the type of touch event. Although in FIG. 3 the touch-sensitive surface and the display panel are shown as two separate components to implement input and output functions, in some embodiments the touch-sensitive surface may be integrated with the display panel to implement input and output functions.
The mobile terminal may also include at least one sensor 305, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor that may adjust the brightness of the display panel according to the brightness of ambient light, and a proximity sensor that may turn off the display panel and/or the backlight when the mobile terminal is moved to the ear. As one of the motion sensors, the gravity acceleration sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when the mobile phone is stationary, and can be used for applications of recognizing the posture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which can be configured on the mobile terminal, further description is omitted here.
Audio circuitry 306, a speaker, and a microphone may provide an audio interface between the user and the mobile terminal. The audio circuit 306 may transmit the electrical signal converted from the received audio data to a speaker, and convert the electrical signal into a sound signal for output; on the other hand, the microphone converts the collected sound signal into an electric signal, which is received by the audio circuit 306 and converted into audio data, which is then processed by the audio data output processor 308, and then transmitted to, for example, another mobile terminal via the RF circuit 301, or the audio data is output to the memory 302 for further processing. The audio circuitry 306 may also include an earbud jack to provide communication of a peripheral headset with the mobile terminal.
WiFi belongs to a short-distance wireless transmission technology, and the mobile terminal can help a user to send and receive e-mails, browse webpages, access streaming media and the like through the WiFi module 307, and provides wireless broadband internet access for the user. Although fig. 3 shows the WiFi module 307, it is understood that it does not belong to the essential constitution of the mobile terminal, and may be omitted entirely as needed within the scope of not changing the essence of the application.
The processor 308 is a control center of the mobile terminal, connects various parts of the entire mobile phone using various interfaces and lines, and performs various functions of the mobile terminal and processes data by operating or executing software programs and/or modules stored in the memory 302 and calling data stored in the memory 302, thereby performing overall monitoring of the mobile phone. Optionally, processor 308 may include one or more processing cores; preferably, the processor 308 may integrate an application processor, which primarily handles operating systems, user interfaces, applications, etc., and a modem processor, which primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 308.
The mobile terminal also includes a power supply 309 (e.g., a battery) for powering the various components, which may preferably be logically coupled to the processor 308 via a power management system that may be configured to manage charging, discharging, and power consumption. The power supply 309 may also include one or more dc or ac power sources, recharging systems, power failure detection circuitry, power converters or inverters, power status indicators, and any like components.
Although not shown, the mobile terminal may further include a camera, a bluetooth module, and the like, which will not be described herein. Specifically, in this embodiment, the processor 308 in the mobile terminal loads the executable file corresponding to the process of one or more application programs into the memory 302 according to the following instructions, and the processor 308 runs the application programs stored in the memory 302, thereby implementing various functions:
acquiring an in-place detection period of a sensor; starting in-place detection, and judging the state of the sensor according to an in-place detection result; and when the sensor is in an off-position state, restoring the sensor and starting restoration detection of the sensor.
It will be understood by those skilled in the art that all or part of the steps of the methods of the above embodiments may be performed by instructions or by associated hardware controlled by the instructions, which may be stored in a computer readable storage medium and loaded and executed by a processor.
To this end, embodiments of the present application provide a storage medium, in which a plurality of instructions are stored, where the instructions can be loaded by a processor to execute the steps in any one of the methods for restoring a sensor of a mobile terminal provided in embodiments of the present application. The above operations can be implemented in the foregoing embodiments, and are not described in detail herein.
Wherein the storage medium may include: read Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disks, and the like.
Since the instructions stored in the storage medium may execute the steps in any method for restoring a mobile terminal sensor provided in the embodiment of the present application, beneficial effects that can be achieved by any method for restoring a mobile terminal sensor provided in the embodiment of the present application may be achieved, for details, see the foregoing embodiment, and are not described herein again.
The foregoing describes in detail a method and an apparatus for restoring a mobile terminal sensor provided in an embodiment of the present application, and a specific example is applied in the description to explain the principle and the implementation of the present application, and the description of the foregoing embodiment is only used to help understand the method and the core idea of the present application; meanwhile, for those skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (7)

1. A restoration method of a mobile terminal sensor is characterized by comprising the following steps:
dividing the call frequency of the mobile terminal into a plurality of frequency intervals, and presetting an in-place detection period list corresponding to the frequency intervals;
acquiring the actual call frequency of the mobile terminal, and selecting the corresponding in-place detection period according to the frequency interval where the actual call frequency is located;
acquiring an in-place detection period of a proximity sensor;
starting in-place detection, and judging the state of the proximity sensor according to an in-place detection result;
the proximity sensor is in an off-position state, the proximity sensor is restored, the proximity sensor is subjected to an external force, the proximity sensor generates displacement under the action of the external force, and the proximity sensor is in a re-on-position state;
starting restoration detection of the proximity sensor, reading the ID of the proximity sensor, wherein the ID is successfully read, and the proximity sensor finishes the restoration detection.
2. The recovery method of the mobile terminal sensor according to claim 1, wherein the obtaining the in-place detection period of the proximity sensor comprises:
and detecting the conversation temperature of the mobile terminal, wherein the conversation temperature is greater than a preset temperature threshold value, and the in-place detection period is shortened.
3. The restoration method for the sensor of the mobile terminal according to claim 2, wherein the detecting the call temperature of the mobile terminal comprises:
the conversation temperature is a temperature value of a temperature sensor or a temperature of a conversation chip, and the temperature sensor corresponds to the sensor.
4. The restoring method of the sensor of the mobile terminal according to claim 1, wherein the determining the state of the proximity sensor according to the in-place detection result comprises:
and the proximity sensor is in an in-place state, and the in-place detection period is acquired.
5. A restoration device of a mobile terminal sensor is characterized by comprising:
the system comprises a presetting unit, a processing unit and a processing unit, wherein the presetting unit is used for dividing the call frequency of the mobile terminal into a plurality of frequency intervals and presetting an in-place detection period list corresponding to the frequency intervals;
the frequency acquisition unit is used for acquiring the actual call frequency of the mobile terminal and selecting the corresponding in-place detection period according to the frequency interval where the actual call frequency is located;
the acquisition unit is used for acquiring an in-place detection period of the proximity sensor;
the in-place detection unit is used for starting in-place detection and judging the state of the proximity sensor according to an in-place detection result;
the restoring detection unit is used for restoring the proximity sensor when the proximity sensor is in an out-of-position state, the proximity sensor is subjected to an external force, the proximity sensor generates displacement under the action of the external force, and the proximity sensor is in a re-in-position state; starting restoration detection of the proximity sensor, reading the ID of the proximity sensor, wherein the ID is successfully read, and the proximity sensor finishes the restoration detection.
6. A mobile terminal, characterized in that the mobile terminal comprises a processor and a memory; the memory is used for storing a computer program; the processor, when executing the program stored in the memory, is configured to implement the method for restoring the sensor of the mobile terminal according to any one of claims 1 to 4.
7. Mobile terminal according to claim 6, characterized in that it comprises a restoring means of the mobile terminal sensor according to claim 5.
CN202010488662.3A 2020-06-02 2020-06-02 Mobile terminal sensor restoration method Active CN111654578B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010488662.3A CN111654578B (en) 2020-06-02 2020-06-02 Mobile terminal sensor restoration method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010488662.3A CN111654578B (en) 2020-06-02 2020-06-02 Mobile terminal sensor restoration method

Publications (2)

Publication Number Publication Date
CN111654578A CN111654578A (en) 2020-09-11
CN111654578B true CN111654578B (en) 2021-06-15

Family

ID=72348452

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010488662.3A Active CN111654578B (en) 2020-06-02 2020-06-02 Mobile terminal sensor restoration method

Country Status (1)

Country Link
CN (1) CN111654578B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
SE455648B (en) * 1983-02-28 1988-07-25 United Technologies Corp DEVICE FOR DETECTING VOLTAGE DIFFERENCES BETWEEN MULTIPLE SIGNALS
CN202372132U (en) * 2011-11-21 2012-08-08 豫北光洋转向器有限公司 Detection line for component assembly of automobile redirector
CN202710088U (en) * 2012-06-27 2013-01-30 浙江吉润汽车有限公司 Proximity sensor provided with protection device
CN105979100A (en) * 2016-06-30 2016-09-28 维沃移动通信有限公司 Method for recovering working condition of inertial sensor and mobile terminal
CN106547667A (en) * 2015-09-16 2017-03-29 比亚迪股份有限公司 A kind of fault cues method and system of mobile terminal
CN108829542A (en) * 2018-06-20 2018-11-16 Oppo广东移动通信有限公司 Mobile terminal and its control method, storage medium
US10394542B1 (en) * 2018-04-16 2019-08-27 Infineon Technologies Ag Low-power device recovery using a backup firmware image

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP3694191A1 (en) * 2013-08-23 2020-08-12 FINEWELL Co., Ltd. Mobile telephone
CN106254661B (en) * 2016-08-15 2019-09-13 Oppo广东移动通信有限公司 A kind of data processing method of proximity sensor, device and mobile terminal

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
SE455648B (en) * 1983-02-28 1988-07-25 United Technologies Corp DEVICE FOR DETECTING VOLTAGE DIFFERENCES BETWEEN MULTIPLE SIGNALS
CN202372132U (en) * 2011-11-21 2012-08-08 豫北光洋转向器有限公司 Detection line for component assembly of automobile redirector
CN202710088U (en) * 2012-06-27 2013-01-30 浙江吉润汽车有限公司 Proximity sensor provided with protection device
CN106547667A (en) * 2015-09-16 2017-03-29 比亚迪股份有限公司 A kind of fault cues method and system of mobile terminal
CN105979100A (en) * 2016-06-30 2016-09-28 维沃移动通信有限公司 Method for recovering working condition of inertial sensor and mobile terminal
US10394542B1 (en) * 2018-04-16 2019-08-27 Infineon Technologies Ag Low-power device recovery using a backup firmware image
CN108829542A (en) * 2018-06-20 2018-11-16 Oppo广东移动通信有限公司 Mobile terminal and its control method, storage medium

Also Published As

Publication number Publication date
CN111654578A (en) 2020-09-11

Similar Documents

Publication Publication Date Title
CN104383681B (en) Method for controlling game program, device and mobile terminal
CN107465841B (en) Fault information reporting method and terminal
CN107786424B (en) Audio and video communication method, terminal and server
CN110688051B (en) Screen recording operation method and device, computer readable storage medium and terminal
CN107066090B (en) Method for controlling fingerprint identification module and mobile terminal
CN109688611B (en) Frequency band parameter configuration method, device, terminal and storage medium
CN106066769B (en) A kind of processing method and mobile terminal of mobile terminal
CN111885591A (en) Network connection method, device, storage medium and terminal
CN110891262A (en) Bluetooth pairing method, system and terminal equipment
CN111083285A (en) Mobile terminal call positioning system and method
CN105635379B (en) Noise suppression method and device
CN112367425B (en) Volume adjusting method and device and terminal
CN111654578B (en) Mobile terminal sensor restoration method
CN111308303B (en) Method and device for detecting radio frequency power amplifier of mobile terminal
CN111966206A (en) Power-saving control method and device for fingerprint sensor and mobile terminal
CN112286849A (en) Wireless charging base data switching method and system, storage medium and terminal equipment
CN112542867A (en) Mobile terminal power supply control method and device, terminal equipment and storage medium
CN111106846A (en) Method, system and mobile terminal for reducing SAR value
CN110891304B (en) gPS power consumption control method for mobile terminal
CN106033358B (en) Batch installation method and device of application programs
CN109995441B (en) Communication information processing method, device and storage medium
CN111405649B (en) Information transmission method and device and mobile terminal
CN112199021B (en) Application program opening method and device and mobile terminal
CN111966271B (en) Screen panorama screenshot method and device, terminal equipment and storage medium
CN112531835B (en) Mobile terminal charging method and device, storage medium and mobile terminal

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