CN106250257B - Static recovery method and mobile terminal - Google Patents

Static recovery method and mobile terminal Download PDF

Info

Publication number
CN106250257B
CN106250257B CN201610603149.8A CN201610603149A CN106250257B CN 106250257 B CN106250257 B CN 106250257B CN 201610603149 A CN201610603149 A CN 201610603149A CN 106250257 B CN106250257 B CN 106250257B
Authority
CN
China
Prior art keywords
mobile terminal
state information
register
display screen
target
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
CN201610603149.8A
Other languages
Chinese (zh)
Other versions
CN106250257A (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.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201610603149.8A priority Critical patent/CN106250257B/en
Publication of CN106250257A publication Critical patent/CN106250257A/en
Application granted granted Critical
Publication of CN106250257B publication Critical patent/CN106250257B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/0703Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
    • G06F11/0751Error or fault detection not based on redundancy
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3234Power saving characterised by the action undertaken
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/0703Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
    • G06F11/0793Remedial or corrective actions

Abstract

The embodiment of the invention discloses a static electricity recovery method and a mobile terminal. The method comprises the following steps: detecting the state of a display screen of the mobile terminal to obtain target state information; and performing static recovery processing on the mobile terminal based on the target state information. According to the embodiment of the invention, the state of the display screen of the mobile terminal is detected to obtain the target state information, and the static recovery processing is selectively carried out on the mobile terminal based on the target state information, namely at least one of register read-back operation, register recovery operation and mobile terminal restart operation is selectively carried out on the mobile terminal, so that the probability that a user sees a splash screen is reduced, and the power consumption is reduced.

Description

Static recovery method and mobile terminal
Technical Field
The embodiment of the invention relates to the field of communication, in particular to a static electricity recovery method and a mobile terminal.
Background
Static electricity is a phenomenon generally existing in the natural world, electrostatic discharge (ESD) in an electronic product may damage the electronic product, for example, damage a display screen of the electronic product, which may cause undesirable phenomena such as color change, screen splash, screen blackout, etc. on the display screen, and damage to the electronic product caused by the ESD may not be automatically recovered, which may affect the service life of the electronic product.
In order to solve the above problems, in the prior art, when manufacturing an electronic product, various registers are disposed inside an integrated circuit, and when the electronic product is operating, the operating state of the integrated circuit can be determined by reading register values of the registers, and the state values of the registers are usually read at regular intervals. When the integrated circuit is judged to be abnormal according to the read register value, the integrated circuit is judged to be caused by electrostatic discharge, and the register is recovered to ensure normal use of the integrated circuit. Therefore, the damage of the mobile terminal caused by the electrostatic discharge can be obviously reduced by the recovery mechanism of the register in the prior art.
The register needs to reinitialize the screen in the recovery process, and a screen flashing phenomenon can be generated. Because the prior art needs to read the register value of the register at intervals, the reading interval time is short, generally 2 ms/time, when the electronic product is in a working state, the screen flashing phenomenon frequently occurs on the display screen, and the experience effect of a user is seriously influenced. Meanwhile, frequent recovery operations may result in increased power consumption and shortened battery life of the mobile terminal.
Disclosure of Invention
The invention provides a static electricity recovery method, which aims to solve the problems that when a mobile terminal is in a working state, a display screen frequently flickers, the experience effect of a user is seriously influenced, power consumption is increased due to frequent recovery operation, and the service life of a mobile terminal battery is shortened.
In a first aspect, a static electricity recovery method is provided, where the method is applied to a mobile terminal, and the method includes:
detecting the state of a display screen of the mobile terminal to obtain target state information;
and performing static recovery processing on the mobile terminal based on the target state information.
In a second aspect, a mobile terminal is provided, including:
the target state information obtaining module is used for detecting the state of a display screen of the mobile terminal to obtain target state information;
and the static electricity recovery execution module is used for carrying out static electricity recovery processing on the mobile terminal based on the target state information obtained by the target state information obtaining module.
In this way, in the embodiment of the present invention, the target state information is obtained by detecting the state of the display screen of the mobile terminal, and the static electricity recovery processing is selectively performed on the mobile terminal based on the target state information, that is, at least one of the register read-back operation, the register recovery operation, and the mobile terminal restart operation is selectively performed on the mobile terminal, so that the probability that the user sees a splash screen is reduced, and power consumption is reduced.
The foregoing description is only an overview of the technical solutions of the present invention, and the embodiments of the present invention are described below in order to make the technical means of the present invention more clearly understood and to make the above and other objects, features, and advantages of the present invention more clearly understandable.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments of the present invention 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 that other drawings can be obtained according to these drawings without inventive labor.
FIG. 1 is a flow chart of a method of electrostatic recovery in accordance with one embodiment of the present invention;
FIG. 2 is a flow chart of a static recovery method according to another embodiment of the invention;
FIG. 3 is a block diagram of a mobile terminal of one embodiment of the present invention;
fig. 4 is a block diagram of a mobile terminal according to another embodiment of the present invention;
fig. 5 is a block diagram of a mobile terminal according to another embodiment of the present invention;
fig. 6 is a block diagram of a mobile terminal according to another embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. 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 invention.
Example one
Fig. 1 is a flow chart of a static electricity recovery method according to an embodiment of the present invention. The static electricity restoration method shown in fig. 1 includes:
step 101, detecting the state of the display screen of the mobile terminal to obtain target state information.
An Integrated Circuit (IC) is a micro-electronic device or component having a micro-structure with desired Circuit functions, including electronic devices such as transistors, resistors, capacitors, inductors, etc. required for a Circuit, and multiple electronic devices are interconnected by wiring and fabricated on one or more small semiconductor wafers or dielectric substrates and then packaged in a package. Electrostatic discharge can reduce the performance of electronic devices in electronic products and the resistance of damaged electronic devices to static electricity. Since the integrated circuit includes a plurality of electronic devices, the electrostatic discharge may cause great damage to the integrated circuit.
In the prior art, the screen flashing phenomenon frequently occurs on the display screen due to the electrostatic recovery processing of the mobile terminal. The embodiment of the invention aims to reduce the probability of seeing the splash screen by a user and reduce the power consumption, so that in order to reduce the probability of seeing the splash screen by the user, the static electricity recovery processing can be carried out on the mobile terminal when the display screen is out of the sight of the user.
Specifically, the state of the display screen of the mobile terminal may be detected to obtain target state information, which may indicate whether the display screen is out of the user's sight. For example, if the obtained target state information indicates that the display screen faces the ground, the display screen is indicated to be out of the sight of the user, and then the next operation can be performed to perform static electricity recovery processing on the mobile terminal; if the obtained target state information indicates that the display screen is not shielded, the display screen is indicated to be within the sight of the user, and at this time, if the static electricity recovery processing is performed on the mobile terminal, the screen flashing influences the experience effect of the user, so that the static electricity recovery processing is not performed on the mobile terminal.
In the embodiment of the invention, the mobile terminal can be a mobile phone, a tablet, a notebook, a desktop computer and the like.
And 102, performing static electricity recovery processing on the mobile terminal based on the target state information.
And after the target state information is obtained, analyzing the target state information, and when the target state information indicates that the display screen is out of sight of the user, performing static electricity recovery processing operation on the mobile terminal, wherein the static electricity recovery processing operation generally comprises at least one of register read-back operation, register recovery operation and mobile terminal restart operation. The adverse effect of electrostatic discharge on the integrated circuit and the mobile terminal can be effectively solved through electrostatic recovery processing.
According to the embodiment of the invention, the state of the display screen of the mobile terminal is detected to obtain the target state information, and the static recovery processing is selectively carried out on the mobile terminal based on the target state information, namely at least one of register read-back operation, register recovery operation and mobile terminal restart operation is selectively carried out on the mobile terminal, so that the probability that a user sees a splash screen is reduced, and the power consumption is reduced.
Example two
Fig. 2 is a flowchart of a static electricity recovery method according to another embodiment of the present invention. The static electricity restoration method shown in fig. 2 includes:
step 201, detecting the state of the display screen of the mobile terminal to obtain target state information.
And detecting the state of the display screen of the mobile terminal, wherein the obtained target state information can indicate whether the display screen is out of the sight of the user.
Whether a display screen of the mobile terminal is shielded or not can be detected by using an infrared sensor or other suitable equipment, and accordingly, the obtained target state information can comprise a shielded state and an unshielded state, wherein the shielded state indicates that the display screen is out of the sight of the user, and the unshielded state indicates that the display screen is in the sight of the user.
Normally, when the detection value of the infrared sensor is 1, the indication display screen is shielded; when the detection value of the infrared sensor is 0, the indication display screen is not shielded. When the display screen is sheltered from, even the display screen generates the screen flashing phenomenon, the user can not perceive the phenomenon, so that the experience effect of the user is ensured.
The three-axis data of the mobile terminal can be detected by using the gravity sensor, the Z-axis data of the mobile terminal is specifically detected, whether the display screen of the mobile terminal faces the ground or not is judged according to the detected Z-axis data, correspondingly, the obtained target state information can comprise that the display screen faces the ground and the display screen does not face the ground, wherein the display screen faces the ground and can indicate that the display screen is outside the sight of the user, and the display screen does not face the ground and can indicate that the display screen is outside the sight of the user.
Before the mobile terminal leaves a factory, data of a gravity sensor in the mobile terminal can be checked, after the check, the polarity of Z-axis data, namely the positive and negative of the Z-axis data when the front of a display screen of the mobile terminal faces upwards is recorded, and the polarity of the Z-axis data can be used for judging that the front of the display screen faces upwards or the front of the display screen faces downwards. When the gravity sensor is used for detecting the direction information of the display screen, the polarity of Z-axis data of the gravity sensor is judged in real time, and if the polarity of the current Z-axis data is opposite to the polarity of the recorded Z-axis data when the front of the display screen faces upwards, the fact that the front of the display screen faces downwards is judged, namely the display screen faces towards the ground. Normally, when the detection value of the gravity sensor is 1, the display screen is indicated to face the ground; when the detected value is 0, the display screen is indicated to face upward.
Besides the weight sensor, the infrared sensor can be used for detecting whether the display screen of the mobile terminal faces the ground or not. Normally, when the detection value of the infrared sensor is 1, the display screen is indicated to face the ground; when the detection value of the infrared sensor is 0, the display screen is directed upward, i.e., in the direction opposite to the ground.
Step 202, based on the target state information, performing the register read-back operation on at least one register of the mobile terminal to obtain a register value.
When the display screen of the mobile terminal is detected to be shielded, if the obtained target state information is in a shielded state, the screen flashing does not cause bad experience to a user, and at the moment, the static electricity recovery processing is carried out on the mobile terminal.
When triaxial data of the mobile terminal are detected, if the detected Z-axis polarity indicates that the display screen faces the ground, the obtained target state information indicates that the splash screen does not cause bad experience to a user, and static electricity recovery processing is performed on the mobile terminal.
At least one register is arranged in the electronic product aiming at the integrated circuit, and different performances of the integrated circuit, such as voltage and screen color, can be detected through different registers. The register is internally provided with a plurality of register values, only one of the register values generally indicates that the register is in a normal state, and other register values can indicate different exception causes. If a register value indicating a normal state is read from the register, determining that the register is in the normal state; if other register values are read from the register, the register is judged to be in an abnormal state. Specific judgment needs to be made with reference to specific integrated circuit specifications. The register value of the register is used to control the operation of the integrated circuit, and therefore when a problem occurs in the register value, it needs to be restored to the correct value.
Therefore, the static electricity recovery processing of the mobile terminal according to the embodiment of the present invention may include at least one of a register read-back operation, a register recovery operation, and a mobile terminal restart operation. Specifically, after the display screen is judged to be blocked or the display screen faces the ground, a read-back recovery mechanism for the register can be started, the register read-back operation is executed on at least one register of the mobile terminal, the register value of the at least one register is read, and further processing is performed according to the read at least one register value.
In practice, some integrated circuits are provided with a detection unit therein, which can detect the voltage of the integrated circuit or the error related to the interface of the mobile industry processor, if an abnormality is detected, the detection unit will send a level signal, and the operator can determine whether the integrated circuit is working normally by detecting the level signal sent by the detection unit.
Step 203, judging whether the integrated circuit provided with the at least one register is in a normal working state or not based on the register value.
After at least one register of the mobile terminal executes read-back operation, the read register value is judged by referring to the specification of the integrated circuit, whether the read register value is a correct value indicating that the integrated circuit is in a normal state or not is judged, and if the read register value is the correct value, the integrated circuit is in the normal state; if not, the integrated circuit is in an abnormal state.
And 204, if the integrated circuit is judged to be in a normal working state, continuing to execute the register read-back operation on the at least one register of the mobile terminal, and clearing the accumulated times of the integrated circuit in an abnormal state.
And performing register read-back operation aiming at the register, and increasing the accumulated times of the integrated circuit in the abnormal state when the integrated circuit is judged to be in the abnormal state according to the read register value, wherein the accumulated times is increased once.
And if the integrated circuit is judged to be in a normal working state according to the read register value, which indicates that the electrostatic discharge does not influence the integrated circuit, continuously executing the read-back operation on at least one register of the mobile terminal, and resetting the recorded accumulated times of the integrated circuit in the abnormal state.
And if the integrated circuit is judged to be in the abnormal working state according to the read register value, and the electrostatic discharge is indicated to cause adverse effect on the integrated circuit, adding one to the accumulated times of the register in the abnormal state to obtain the target accumulated times.
Further, whether the target accumulated times reach a preset time threshold value or not is judged, if the target accumulated times reach the preset time threshold value, the serious adverse effect of the electrostatic discharge on the integrated circuit and the mobile terminal is shown, the work of the integrated circuit is seriously influenced, and then the mobile terminal is restarted; if the target accumulated times does not reach the preset times threshold value, the electrostatic discharge causes certain adverse effect on the integrated circuit, but the adverse effect is small, and the adverse effect is within an acceptable range, the restarting operation of the mobile terminal is not executed, the register recovery operation is executed on the register of the mobile terminal, and then the step of detecting the state of the display screen of the mobile terminal is continuously executed.
In practice, register restore operations may include both a power-back initialization and a direct restore of registers. The process of the power-on initialization comprises the following steps: firstly making IC sleep, resetting pin level pull down and power down (indicating IC to clear up the previous error register value); then powering on and resetting; and finally, initializing, rewriting the correct register value of the register, and restoring the register to a preset state, wherein the power-on refers to the configuration of a power supply circuit of the IC, and the initialization refers to the writing of the register to the IC. The flow is performed according to the specification of the IC. The above process is prior art and the present invention is not described herein.
The re-power-up initialization process is time consuming because it writes all registers of the integrated circuit once. Now, some special registers are designed for a part of ICs, for example, registers for detecting colors, when the registers are restored in advance, a reinitialization process is not required to be executed, all registers are not required to be written once, and only the registers are required to be rewritten once, so that the time consumption of restoration operation is short, and the process is a direct restoration register.
The embodiment of the invention has the following advantages: on one hand, the damage of electrostatic discharge to the integrated circuit is effectively reduced, and the normal use of the integrated circuit is ensured; on the other hand, the integrated circuit is selectively subjected to static electricity management, so that the probability that a user sees the splash screen is low, the power consumption is low, and the service life of the equipment battery is ensured.
According to the embodiment of the invention, the state of the display screen of the mobile terminal is detected to obtain the target state information, and the static recovery processing is selectively carried out on the mobile terminal based on the target state information, namely at least one of register read-back operation, register recovery operation and mobile terminal restart operation is selectively carried out on the mobile terminal, so that the probability that a user sees a splash screen is reduced, and the power consumption is reduced.
EXAMPLE III
Fig. 3 is a block diagram of a mobile terminal of one embodiment of the present invention. The mobile terminal shown in fig. 3 includes:
a target state information obtaining module 301, configured to detect a state of a display screen of the mobile terminal, so as to obtain target state information.
And an electrostatic recovery execution module 302, configured to perform electrostatic recovery processing on the mobile terminal based on the target state information obtained by the target state information obtaining module.
With reference to fig. 4, the other modules of the mobile terminal, the sub-modules included in the modules, and the functions thereof will be described based on fig. 3.
Fig. 4 is a block diagram of a mobile terminal according to another embodiment of the present invention. The mobile terminal shown in fig. 4 includes:
a target state information obtaining module 401, configured to detect a state of a display screen of the mobile terminal, and obtain target state information.
And an electrostatic recovery execution module 402, configured to perform electrostatic recovery processing on the mobile terminal based on the target state information obtained by the target state information obtaining module.
The electrostatic recovery execution module 402 includes:
a read-back operation execution sub-module 4021, configured to execute the register read-back operation on at least one register of the mobile terminal to obtain a register value;
the state judgment submodule 4022 is configured to judge whether the integrated circuit on which the at least one register is mounted is in a normal operating state based on the register value obtained by the read-back operation execution submodule;
a read-back operation continuing sub-module 4023, configured to, if the state determination sub-module determines that the integrated circuit is in a normal operating state, continue to perform read-back operation on the at least one register of the mobile terminal, and clear the cumulative number of times that the integrated circuit is in an abnormal state.
In this embodiment of the present invention, preferably, the target state information obtaining module 401 is specifically configured to detect whether a display screen of the mobile terminal is shielded, so as to obtain the target state information;
wherein the target state information includes: an occluded state and an unoccluded state.
In this embodiment of the present invention, preferably, the static electricity restoration executing module 402 is specifically configured to perform the static electricity restoration processing on the mobile terminal if the target state information obtained by the target state information obtaining module is in a blocked state.
In this embodiment of the present invention, preferably, the target state information obtaining module 401 is specifically configured to detect three-axis data of the mobile terminal, so as to obtain the target state information;
wherein the target state information includes: the display screen faces the ground and the display screen does not face the ground.
In this embodiment of the present invention, preferably, the static electricity restoration executing module 402 is specifically configured to perform the static electricity restoration processing on the mobile terminal if the target state information obtained by the target state information obtaining module indicates that the display screen faces the ground.
In this embodiment of the present invention, preferably, the static electricity restoration execution module 402 further includes:
the number-of-times accumulation sub-module 4024 is configured to, after the step of determining whether the integrated circuit mounted with the at least one register is in a normal operating state based on the register value, add one to the number of times that the register is in the abnormal operating state to obtain a target number of times of accumulation if the state determination sub-module determines that the integrated circuit is in the abnormal operating state;
the number judgment sub-module 4025 is configured to judge whether the target accumulated number obtained by the number accumulation sub-module reaches a preset number threshold;
the mobile terminal restarting sub-module 4026 is configured to execute the mobile terminal restarting operation if the number judgment sub-module judges that the target accumulated number of times reaches a preset number threshold.
In this embodiment of the present invention, preferably, the static electricity restoration execution module 402 further includes:
the recovery operation execution sub-module 4027 is configured to, after the step of determining whether the target accumulated number obtained by the number accumulation sub-module reaches the preset number threshold, execute the register recovery operation on the register of the mobile terminal if the number determination sub-module determines that the target accumulated number does not reach the preset number threshold, and then continue to execute the step of detecting the state of the display screen of the mobile terminal.
According to the embodiment of the invention, the state of the display screen of the mobile terminal is detected to obtain the target state information, and the static recovery processing is selectively carried out on the mobile terminal based on the target state information, namely at least one of register read-back operation, register recovery operation and mobile terminal restart operation is selectively carried out on the mobile terminal, so that the probability that a user sees a splash screen is reduced, and the power consumption is reduced.
Since the embodiment of the mobile terminal basically corresponds to the method embodiments shown in fig. 1-2, the description of the embodiment is not detailed, and reference may be made to the related description in the foregoing embodiments, which is not repeated herein.
Example four
Fig. 5 is a block diagram of a mobile terminal according to another embodiment of the present invention. The mobile terminal 500 shown in fig. 5 includes: at least one processor 501, memory 502, at least one network interface 504, and a user interface 503. The various components in the mobile terminal 500 are coupled together by a bus system 505. It is understood that the bus system 505 is used to enable connection communications between these components. The bus system 505 includes a power bus, a control bus, and a status signal bus in addition to a data bus. For clarity of illustration, however, the various buses are labeled as bus system 505 in FIG. 5.
The user interface 503 may include, among other things, a display, a keyboard, or a pointing device (e.g., a mouse, trackball, touch pad, or touch screen, among others.
It is to be understood that the memory 502 in embodiments of the present invention may be either volatile memory or nonvolatile memory, or may include both volatile and nonvolatile memory. The non-volatile Memory may be a Read-Only Memory (ROM), a Programmable ROM (PROM), an Erasable PROM (EPROM), an Electrically Erasable PROM (EEPROM), or a flash Memory. Volatile Memory can be Random Access Memory (RAM), which acts as external cache Memory. By way of example, but not limitation, many forms of RAM are available, such as Static random access memory (Static RAM, SRAM), Dynamic Random Access Memory (DRAM), Synchronous Dynamic random access memory (Synchronous DRAM, SDRAM), Double Data rate Synchronous Dynamic random access memory (ddr SDRAM ), Enhanced Synchronous SDRAM (ESDRAM), Synchlink DRAM (SLDRAM), and direct memory bus RAM (DRRAM). The memory 502 of the subject systems and methods described in connection with the embodiments of the invention is intended to comprise, without being limited to, these and any other suitable types of memory.
In some embodiments, memory 502 stores elements, executable modules or data structures, or a subset thereof, or an expanded set thereof as follows: an operating system 5021 and application programs 5022.
The operating system 5021 includes various system programs, such as a framework layer, a core library layer, a driver layer, and the like, and is used for implementing various basic services and processing hardware-based tasks. The application 5022 includes various applications, such as a Media Player (Media Player), a Browser (Browser), and the like, for implementing various application services. The program for implementing the method according to the embodiment of the present invention may be included in the application program 5022.
In the embodiment of the present invention, the processor 501 is configured to detect a state of a display screen of the mobile terminal by calling a program or an instruction stored in the memory 502, specifically, a program or an instruction stored in the application 5022, obtain target state information, and perform static electricity recovery processing on the mobile terminal based on the target state information.
The method disclosed by the above-mentioned embodiments of the present invention may be applied to the processor 501, or implemented by the processor 501. The processor 501 may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware or instructions in the form of software in the processor 501. The Processor 501 may be a general-purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic device, or discrete hardware components. The various methods, steps and logic blocks disclosed in the embodiments of the present invention may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in connection with the embodiments of the present invention may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software module may be located in ram, flash memory, rom, prom, or eprom, registers, etc. storage media as is well known in the art. The storage medium is located in the memory 502, and the processor 501 reads the information in the memory 502 and completes the steps of the method in combination with the hardware.
It is to be understood that the embodiments described herein may be implemented in hardware, software, firmware, middleware, microcode, or any combination thereof. For a hardware implementation, the processing units may be implemented within one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), general purpose processors, controllers, micro-controllers, microprocessors, other electronic units configured to perform the functions described herein, or a combination thereof.
For a software implementation, the techniques described in this disclosure may be implemented with modules (e.g., procedures, functions, and so on) that perform the functions described in this disclosure. The software codes may be stored in a memory and executed by a processor. The memory may be implemented within the processor or external to the processor.
Optionally, the processor 501 is further configured to: detecting whether a display screen of the mobile terminal is shielded or not to obtain the target state information;
wherein the target state information includes: an occluded state and an unoccluded state.
Optionally, the processor 501 is further configured to: and if the target state information is in a shielded state, performing static recovery processing on the mobile terminal.
Optionally, the processor 501 is further configured to: detecting triaxial data of the mobile terminal to obtain the target state information;
wherein the target state information includes: the display screen faces the ground and the display screen does not face the ground.
Optionally, the processor 501 is further configured to: and if the target state information indicates that the display screen faces the ground, performing static electricity recovery processing on the mobile terminal.
Optionally, the processor 501 is further configured to: executing the register read-back operation on at least one register of the mobile terminal to obtain a register value;
judging whether the integrated circuit provided with the at least one register is in a normal working state or not based on the register value;
and if the integrated circuit is judged to be in a normal working state, continuing to execute the register read-back operation on the at least one register of the mobile terminal, and clearing the accumulated times of the integrated circuit in an abnormal state.
Optionally, the processor 501 is further configured to: after the step of judging whether the integrated circuit provided with the at least one register is in a normal working state or not based on the register value, if the integrated circuit is judged to be in an abnormal working state, adding one to the number of times of accumulation of the register in the abnormal state to obtain a target number of times of accumulation;
judging whether the target accumulated times reach a preset time threshold value or not;
and if the target accumulated times reach a preset time threshold, executing the restart operation of the mobile terminal.
Optionally, the processor 501 is further configured to: after the step of judging whether the target accumulated times reaches a preset times threshold value, if the target accumulated times does not reach the preset times threshold value, executing the register recovery operation on a register of the mobile terminal, and then continuing to execute the step of detecting the state of a display screen of the mobile terminal.
The mobile terminal 500 can implement the processes implemented by the mobile terminal in the foregoing embodiments, and in order to avoid repetition, the detailed description is omitted here.
According to the embodiment of the invention, the state of the display screen of the mobile terminal is detected to obtain the target state information, and the static recovery processing is selectively carried out on the mobile terminal based on the target state information, namely at least one of register read-back operation, register recovery operation and mobile terminal restart operation is selectively carried out on the mobile terminal, so that the probability that a user sees a splash screen is reduced, and the power consumption is reduced.
EXAMPLE five
Fig. 6 is a block diagram of a mobile terminal according to another embodiment of the present invention. Specifically, the mobile terminal 600 in fig. 6 may be a mobile phone, a tablet computer, a Personal Digital Assistant (PDA), or a vehicle-mounted computer.
The mobile terminal 600 in fig. 6 includes a Radio Frequency (RF) circuit 610, a memory 620, an input unit 630, a display unit 640, a processor 660, an audio circuit 670, a wifi (wireless fidelity) module 680, and a power supply 690.
The input unit 630 may be used, among other things, to receive numeric or character information input by a user and to generate signal inputs related to user settings and function control of the mobile terminal 600. Specifically, in the embodiment of the present invention, the input unit 630 may include a touch panel 631. The touch panel 631, also referred to as a touch screen, may collect touch operations of a user (e.g., operations of the user on the touch panel 631 by using a finger, a stylus, or any other suitable object or accessory) thereon or nearby, and drive the corresponding connection device according to a preset program. Alternatively, the touch panel 631 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 660, and can receive and execute commands sent by the processor 660. In addition, the touch panel 631 may be implemented using various types, such as resistive, capacitive, infrared, and surface acoustic wave. In addition to the touch panel 631, the input unit 630 may also include other input devices 632, and the other input devices 632 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.
Among other things, the display unit 640 may be used to display information input by a user or information provided to the user and various menu interfaces of the mobile terminal 600. The display unit 640 may include a display panel 641, and optionally, the display panel 641 may be configured in the form of an LCD or an Organic Light-Emitting Diode (OLED).
It should be noted that the touch panel 631 may cover the display panel 641 to form a touch display screen, and when the touch display screen detects a touch operation thereon or nearby, the touch display screen is transmitted to the processor 660 to determine the type of the touch event, and then the processor 660 provides a corresponding visual output on the touch display screen according to the type of the touch event.
The touch display screen comprises an application program interface display area and a common control display area. The arrangement modes of the application program interface display area and the common control display area are not limited, and can be an arrangement mode which can distinguish two display areas, such as vertical arrangement, left-right arrangement and the like. The application interface display area may be used to display an interface of an application. Each interface may contain at least one interface element such as an icon and/or widget desktop control for an application. The application interface display area may also be an empty interface that does not contain any content. The common control display area is used for displaying controls with high utilization rate, such as application icons like setting buttons, interface numbers, scroll bars, phone book icons and the like.
The processor 660 is a control center of the mobile terminal 600, connects various parts of the entire mobile phone by using various interfaces and lines, and performs various functions of the mobile terminal 600 and processes data by operating or executing software programs and/or modules stored in the first memory 621 and calling data stored in the second memory 622, thereby integrally monitoring the mobile terminal 600. Optionally, processor 660 may include one or more processing units.
In the embodiment of the present invention, the processor 660 is configured to detect a state of the display screen of the mobile terminal by calling a software program and/or a module stored in the first memory 621 and/or data stored in the second memory 622, obtain target state information, and perform the static electricity recovery processing on the mobile terminal based on the target state information.
Optionally, the processor 660 is further configured to: detecting whether a display screen of the mobile terminal is shielded or not to obtain the target state information;
wherein the target state information includes: an occluded state and an unoccluded state.
Optionally, the processor 660 is further configured to: and if the target state information is in a shielded state, performing static recovery processing on the mobile terminal.
Optionally, the processor 660 is further configured to: detecting triaxial data of the mobile terminal to obtain the target state information;
wherein the target state information includes: the display screen faces the ground and the display screen does not face the ground.
Optionally, the processor 660 is further configured to: and if the target state information indicates that the display screen faces the ground, performing static electricity recovery processing on the mobile terminal.
Optionally, the processor 660 is further configured to: executing the register read-back operation on at least one register of the mobile terminal to obtain a register value;
judging whether the integrated circuit provided with the at least one register is in a normal working state or not based on the register value;
and if the integrated circuit is judged to be in a normal working state, continuing to execute the register read-back operation on the at least one register of the mobile terminal, and clearing the accumulated times of the integrated circuit in an abnormal state.
Optionally, the processor 660 is further configured to: after the step of judging whether the integrated circuit provided with the at least one register is in a normal working state or not based on the register value, if the integrated circuit is judged to be in an abnormal working state, adding one to the number of times of accumulation of the register in the abnormal state to obtain a target number of times of accumulation;
judging whether the target accumulated times reach a preset time threshold value or not;
and if the target accumulated times reach a preset time threshold, executing the restart operation of the mobile terminal.
Optionally, the processor 660 is further configured to: after the step of judging whether the target accumulated times reaches a preset times threshold value, if the target accumulated times does not reach the preset times threshold value, executing the register recovery operation on a register of the mobile terminal, and then continuing to execute the step of detecting the state of a display screen of the mobile terminal.
Therefore, according to the embodiment of the invention, the state of the display screen of the mobile terminal is detected to obtain the target state information, and the static recovery processing is selectively carried out on the mobile terminal based on the target state information, namely at least one of register read-back operation, register recovery operation and mobile terminal restart operation is selectively carried out on the mobile terminal, so that the probability that a user sees a splash screen is reduced, and the power consumption is reduced.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution 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 functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) 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: various media capable of storing program codes, such as a U disk, a removable hard disk, a ROM, a RAM, a magnetic disk, or an optical disk.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (16)

1. A static electricity recovery method, which is applied to a mobile terminal, is characterized by comprising the following steps:
detecting the state of a display screen of the mobile terminal to obtain target state information;
performing static recovery processing on the mobile terminal based on the target state information;
wherein the target status information indicates whether the display screen is out of sight of a user;
the performing static electricity restoration processing on the mobile terminal based on the target state information includes:
under the condition that the target state information indicates that the display screen is out of sight of the user, performing static electricity recovery processing on the mobile terminal;
the display screen being out of sight of the user comprising: the mobile terminal is in the sight of a user and the display screen is shielded or faces the ground.
2. The method according to claim 1, wherein the step of detecting the state of the display screen of the mobile terminal to obtain the target state information comprises:
detecting whether a display screen of the mobile terminal is shielded or not to obtain the target state information;
wherein the target state information includes: an occluded state and an unoccluded state.
3. The method according to claim 2, wherein the step of performing the electrostatic recovery process on the mobile terminal based on the target state information comprises:
and if the target state information is in a shielded state, performing static recovery processing on the mobile terminal.
4. The method according to claim 1, wherein the step of detecting the state of the display screen of the mobile terminal to obtain the target state information comprises:
detecting triaxial data of the mobile terminal to obtain the target state information;
wherein the target state information includes: the display screen faces the ground and the display screen does not face the ground.
5. The method according to claim 4, wherein the step of performing the electrostatic recovery processing on the mobile terminal based on the target state information comprises:
and if the target state information indicates that the display screen faces the ground, performing static electricity recovery processing on the mobile terminal.
6. The method according to claim 1, wherein the step of performing the electrostatic recovery process on the mobile terminal comprises:
executing the register read-back operation on at least one register of the mobile terminal to obtain a register value;
judging whether the integrated circuit provided with the at least one register is in a normal working state or not based on the register value;
and if the integrated circuit is judged to be in a normal working state, continuing to execute the register read-back operation on the at least one register of the mobile terminal, and clearing the accumulated times of the integrated circuit in an abnormal state.
7. The method of claim 6, wherein after the step of determining whether the integrated circuit on which the at least one register is mounted is in a normal operating state based on the register value, the method further comprises:
if the integrated circuit is judged to be in the abnormal working state, adding one to the accumulated times of the register in the abnormal state to obtain the target accumulated times;
judging whether the target accumulated times reach a preset time threshold value or not;
and if the target accumulated times reach a preset time threshold, executing the restart operation of the mobile terminal.
8. The method of claim 7, wherein after the step of determining whether the target cumulative number of times reaches a preset number threshold, the method further comprises:
and if the target accumulated times do not reach a preset times threshold value, executing register recovery operation on a register of the mobile terminal, and then continuously executing the step of detecting the state of the display screen of the mobile terminal.
9. A mobile terminal, comprising:
the target state information obtaining module is used for detecting the state of a display screen of the mobile terminal to obtain target state information;
the static electricity recovery execution module is used for carrying out static electricity recovery processing on the mobile terminal based on the target state information obtained by the target state information obtaining module;
wherein the target status information indicates whether the display screen is out of sight of a user;
the static electricity recovery execution module is further used for performing static electricity recovery processing on the mobile terminal under the condition that the target state information indicates that the display screen is out of sight of the user;
the display screen being out of sight of the user comprising: the mobile terminal is in the sight of a user and the display screen is shielded or faces the ground.
10. The mobile terminal of claim 9, wherein:
the target state information obtaining module is specifically used for detecting whether a display screen of the mobile terminal is shielded or not to obtain the target state information;
wherein the target state information includes: an occluded state and an unoccluded state.
11. The mobile terminal of claim 10, wherein:
the static electricity recovery execution module is specifically configured to perform static electricity recovery processing on the mobile terminal if the target state information obtained by the target state information obtaining module is in a blocked state.
12. The mobile terminal of claim 9, wherein:
the target state information obtaining module is specifically used for detecting triaxial data of the mobile terminal to obtain the target state information;
wherein the target state information includes: the display screen faces the ground and the display screen does not face the ground.
13. The mobile terminal of claim 12, wherein:
the static electricity recovery execution module is specifically configured to perform static electricity recovery processing on the mobile terminal if the target state information obtained by the target state information obtaining module indicates that the display screen faces the ground.
14. The mobile terminal of claim 9, wherein the static electricity restoration execution module comprises:
the read-back operation execution submodule is used for executing the register read-back operation on at least one register of the mobile terminal to obtain a register value;
the state judgment submodule is used for judging whether the integrated circuit provided with the at least one register is in a normal working state or not based on the register value obtained by the read-back operation execution submodule;
and the read-back operation continuous execution submodule is used for continuously executing the read-back operation on the at least one register of the mobile terminal and clearing the accumulated times of the integrated circuit in the abnormal state if the state judgment submodule judges that the integrated circuit is in the normal working state.
15. The mobile terminal of claim 14, wherein the static recovery performing module further comprises:
a number accumulation submodule, configured to, after the step of determining whether the integrated circuit mounted with the at least one register is in a normal operating state based on the register value, add one to the number of times that the register is in the abnormal operating state to obtain a target number of times if the state determination submodule determines that the integrated circuit is in the abnormal operating state;
the frequency judgment submodule is used for judging whether the target accumulated frequency obtained by the frequency accumulation submodule reaches a preset frequency threshold value or not;
and the mobile terminal restarting submodule is used for executing the mobile terminal restarting operation if the frequency judging submodule judges that the target accumulated frequency reaches a preset frequency threshold.
16. The mobile terminal of claim 15, wherein the static electricity restoration execution module further comprises:
and the recovery operation execution submodule is used for executing register recovery operation on a register of the mobile terminal if the frequency judgment submodule judges that the target accumulative frequency does not reach the preset frequency threshold value after the step of judging whether the target accumulative frequency obtained by the frequency accumulation submodule reaches the preset frequency threshold value, and then continuing to execute the step of detecting the state of the display screen of the mobile terminal.
CN201610603149.8A 2016-07-27 2016-07-27 Static recovery method and mobile terminal Active CN106250257B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610603149.8A CN106250257B (en) 2016-07-27 2016-07-27 Static recovery method and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610603149.8A CN106250257B (en) 2016-07-27 2016-07-27 Static recovery method and mobile terminal

Publications (2)

Publication Number Publication Date
CN106250257A CN106250257A (en) 2016-12-21
CN106250257B true CN106250257B (en) 2020-02-21

Family

ID=57604551

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610603149.8A Active CN106250257B (en) 2016-07-27 2016-07-27 Static recovery method and mobile terminal

Country Status (1)

Country Link
CN (1) CN106250257B (en)

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106649017A (en) * 2016-12-30 2017-05-10 珠海市魅族科技有限公司 On screen display abnormality processing method and mobile terminal
CN107180614B (en) * 2017-06-26 2019-10-11 奇瑞汽车股份有限公司 Vehicle-carrying display screen automatic recovery system, control method
CN108572878A (en) * 2017-10-09 2018-09-25 北京视联动力国际信息技术有限公司 A kind of audio-frequency detection and device
CN108364595B (en) * 2018-01-26 2021-10-15 努比亚技术有限公司 Electrostatic discharge detection method, mobile terminal and computer readable storage medium
CN108549587A (en) * 2018-03-28 2018-09-18 努比亚技术有限公司 display module monitoring method, mobile terminal and computer readable storage medium
CN110875590A (en) * 2018-08-31 2020-03-10 北京小米移动软件有限公司 Electrostatic protection circuit, method and device of sensor chip
CN109738719B (en) * 2018-12-19 2021-05-04 Oppo广东移动通信有限公司 Electrostatic discharge ESD detection method and related product
CN109739692A (en) * 2018-12-21 2019-05-10 Oppo广东移动通信有限公司 Fault recovery method and Related product
CN109884427B (en) * 2019-02-11 2021-06-08 Oppo广东移动通信有限公司 Electrostatic detection method and related device
CN110310267A (en) * 2019-06-26 2019-10-08 维沃移动通信有限公司 The processing method and mobile terminal of image data

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101650927A (en) * 2008-08-14 2010-02-17 鸿富锦精密工业(深圳)有限公司 Antistatic display system and method
CN102622150A (en) * 2012-02-22 2012-08-01 广东欧珀移动通信有限公司 Static eliminating method for touch screen
CN102681739A (en) * 2012-05-07 2012-09-19 广东欧珀移动通信有限公司 Static elimination method for touch screen

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009302367A (en) * 2008-06-16 2009-12-24 Yokogawa Electric Corp Electrostatic protective circuit of semiconductor device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101650927A (en) * 2008-08-14 2010-02-17 鸿富锦精密工业(深圳)有限公司 Antistatic display system and method
CN102622150A (en) * 2012-02-22 2012-08-01 广东欧珀移动通信有限公司 Static eliminating method for touch screen
CN102681739A (en) * 2012-05-07 2012-09-19 广东欧珀移动通信有限公司 Static elimination method for touch screen

Also Published As

Publication number Publication date
CN106250257A (en) 2016-12-21

Similar Documents

Publication Publication Date Title
CN106250257B (en) Static recovery method and mobile terminal
CN107506073B (en) Touch screen detection method and device, mobile terminal and computer readable storage medium
EP2821897B1 (en) Finger detection on touch screens for mobile devices
US10558289B2 (en) Control method and electronic device
CN107450773B (en) False touch prevention method, terminal and computer readable storage medium
CN107832190B (en) Diagnosis method for power consumption abnormity, mobile terminal and storage medium
US10559273B2 (en) Display screen control method and apparatus and terminal
CN106469011A (en) A kind of method for information display and mobile terminal
KR20140068257A (en) Display deformation detection
JP6032661B2 (en) Method and apparatus for testing capacitive touch screen and mobile terminal
US9043715B2 (en) Alert event notification
CN106776085B (en) Touch screen protection method and mobile terminal
CN104049786A (en) Electronic device, system and correcting method capable of automatically correcting touch position
CN108268403A (en) A kind of Type-C interface protective circuits and method, mobile terminal
EP2765492B1 (en) Automatic and dynamic sensitivity control of projected capacitive touch sensitive detection systems
CN105224133A (en) A kind of pressure calibration method and device
US20190258391A1 (en) Terminal and Application Switching Method for Terminal
CN106878551B (en) Power supply switching method and mobile terminal
CN106066694A (en) The control method of a kind of touch screen operation response and terminal
US20190004903A1 (en) Data Restoration Method and Apparatus, and Terminal
CN107509237B (en) Wireless network connection method, mobile terminal and readable storage medium
CN106776228B (en) Safety protection method of mobile terminal and mobile terminal
CN107273238B (en) Control method for operation of radio frequency device and mobile terminal
JP7275542B2 (en) Touch panel device, touch panel device control method, and program
EP3143481B1 (en) Touchscreen display with monitoring functions

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant