WO2017181479A1 - 一种控制方法及终端、计算机存储介质 - Google Patents

一种控制方法及终端、计算机存储介质 Download PDF

Info

Publication number
WO2017181479A1
WO2017181479A1 PCT/CN2016/083297 CN2016083297W WO2017181479A1 WO 2017181479 A1 WO2017181479 A1 WO 2017181479A1 CN 2016083297 W CN2016083297 W CN 2016083297W WO 2017181479 A1 WO2017181479 A1 WO 2017181479A1
Authority
WO
WIPO (PCT)
Prior art keywords
signal
trigger
detection
control
enable
Prior art date
Application number
PCT/CN2016/083297
Other languages
English (en)
French (fr)
Inventor
李小棠
Original Assignee
中兴通讯股份有限公司
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 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2017181479A1 publication Critical patent/WO2017181479A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/24Resetting means

Definitions

  • the present invention relates to a restart technique, and in particular, to a control method, a terminal, and a computer storage medium.
  • the first is to reset the hardware or power down by setting the dedicated switch button structure.
  • the second is to trigger the power management chip to reset the processor by using the software/hardware to recognize the button time for more than a certain period of time.
  • the third type is to trigger the corresponding switch circuit to power off or reset by setting the button.
  • the above three methods have the following disadvantages:
  • the first method requires a special switch button, and the structure is complicated.
  • the second method is too long, the user experience is not good, and the existing built-in battery phone is consistent with the 10-20 second restart scheme, and the power management chip is not powered off, and the crash may cause the power management chip to output voltage.
  • An exception only a processor reset does not completely solve the problem.
  • the third method needs to set a special button, and the user can judge whether the camera is dead or not, and the automatic detection and restart of the crash cannot be realized.
  • an embodiment of the present invention provides a control method, a terminal, and a Computer storage media.
  • the circuit breaker is controlled to perform a switching operation on the power circuit to open and close the power supply management chip to restart by the power circuit.
  • the state of the terminal when the processor generates the enable signal or the digital signal under the trigger of the second way trigger signal, the state of the terminal is a non-crash state; when the processor is in the When the enable signal or the digital signal is not generated under the trigger of the two-way trigger signal, the state of the terminal is a dead state.
  • the detecting the enable signal or the digital signal, and generating a corresponding detection signal according to the detection result includes:
  • generating the first detection signal includes: generating a fixed width pulse signal
  • generating the second detection signal includes generating a low level signal.
  • the control signals generated to control the disconnect switch include:
  • the first control signal is used to control the circuit breaker to perform a switching operation on the power circuit to open and close the control power management chip by the power circuit.
  • the terminal provided by the embodiment of the present invention includes: a triggering device, a processing module, a processor, a detecting module, a circuit breaker, a power circuit, and a power management chip; wherein
  • the triggering device is configured to obtain a triggering operation, generate a trigger signal, divide the triggering signal into a first triggering signal and a second triggering signal, and send the first triggering signal to the processing module; Transmitting the second way trigger signal to the processor to trigger the processor to generate an enable signal or a digital signal;
  • the processor is configured to generate an enable signal or a digital signal under the trigger of the second trigger signal
  • the detecting module is configured to detect the enable signal or a digital signal, and generate a corresponding detection signal according to the detection result;
  • the processing module is configured to generate a control signal for controlling the circuit breaker according to the first road trigger signal and the detection signal;
  • the circuit breaker is configured to perform a switching operation on the power circuit according to the control signal to open and close the power supply management chip to restart by the power circuit.
  • the state of the terminal when the processor generates the enable signal or the digital signal under the trigger of the second way trigger signal, the state of the terminal is a non-crash state; when the processor is in the When the enable signal or the digital signal is not generated under the trigger of the two-way trigger signal, the state of the terminal is a dead state.
  • the detecting module is further configured to determine whether the enable signal or the digital signal is detected; when the enable signal or the digital signal is detected, generate a first detection signal; The enable signal or the digital signal generates a second detection signal.
  • the detecting module is further configured to generate a fixed width pulse signal when the enable signal or the digital signal is detected; and generate a low level signal when the enable signal or the digital signal is not detected .
  • the processing module is further configured to generate a first control signal according to the first way trigger signal and the second detection signal; the first control signal is used to control a disconnect switch to a power circuit A switching operation is performed to turn off the power control circuit to restart by the power supply circuit.
  • the computer storage medium provided by the embodiment of the present invention stores a computer program for executing the foregoing control method.
  • a trigger operation is obtained, a trigger signal is generated, an enable signal or a digital signal for controlling the operation of the function module is generated according to the trigger signal, and the enable signal or the digital signal is detected, and according to The detection result generates a corresponding detection signal; according to the trigger signal and the detection signal, a control signal for controlling the circuit breaker is generated; and according to the control signal, determining whether to control the circuit breaker to perform a switching operation on the power circuit;
  • the switch performs a switching operation on the power circuit, the power supply circuit is turned off and closed to control the power management chip to restart.
  • FIG. 1 is a schematic flowchart of a control method according to Embodiment 1 of the present invention.
  • FIG. 2 is a schematic structural diagram of a terminal according to Embodiment 2 of the present invention.
  • Embodiment 3 is a flowchart of a control method according to Embodiment 3 of the present invention.
  • FIG. 4 is a circuit block diagram of a detection module according to an embodiment of the present invention.
  • FIG. 5 is a circuit block diagram of a processing module according to an embodiment of the present invention.
  • FIG. 6 is a timing diagram of internal circuit pulses of a detection module and a processing module according to an embodiment of the present invention.
  • the terminal includes: a power source, a power management chip, a processor, a function module (including a display module, a camera module, a speaker power amplifier, a vibration circuit, etc.), a trigger device (including a power button, a volume)
  • the terminal further includes: a detecting module, a processing module, and a disconnecting switch.
  • the triggering device is configured to generate a trigger signal, and trigger the processor to output an enable signal or a digital signal to the corresponding function module;
  • the detecting module is configured to detect an enable signal or a digital signal output by the processor; and
  • the processing module is configured to process the trigger The trigger signal generated by the device and the detection signal output by the detection module; the disconnect switch is used to perform a switching operation on the power circuit.
  • FIG. 1 is a schematic flowchart of a control method according to Embodiment 1 of the present invention. As shown in FIG. 1, the control method includes the following steps:
  • Step 101 Obtain a trigger operation, generate a trigger signal, and divide the trigger signal into a first way trigger signal and a second way trigger signal.
  • the trigger device outputs a trigger signal after being triggered by the user, and the trigger device divides the trigger signal into two paths, and the second path trigger signal is sent to the processor; the first path trigger signal is sent to the processing device.
  • Step 102 Send the second trigger signal to a processor to trigger the processor to generate an enable signal or a digital signal.
  • the processor after receiving the second trigger signal, the processor outputs an enable signal or a digital signal to the corresponding function module.
  • the state of the terminal when the processor is triggered by the second trigger signal When the signal or the digital signal is enabled, the state of the terminal is a non-dead state; when the processor does not generate the enable signal or the digital signal under the trigger of the second way trigger signal, the state of the terminal is Dead state.
  • Step 103 Detect the enable signal or the digital signal, and generate a corresponding detection signal according to the detection result.
  • the detecting module detects an enable signal or a digital signal output by the processor, and outputs a corresponding detection signal to the processing module according to the presence or absence of the enable signal or the digital signal.
  • the detecting module determines whether the enable signal or the digital signal is detected; when the enable signal or the digital signal is detected, generates a first detection signal; when the enable signal or number is not detected The signal generates a second detection signal.
  • generating the first detection signal comprises: generating a fixed width pulse signal; and generating the second detection signal comprises: generating a low level signal.
  • Step 104 Generate a control signal for controlling the circuit breaker according to the first road trigger signal and the detection signal.
  • a first control signal is generated according to the first way trigger signal and the second detection signal; the first control signal is used to control a circuit breaker to perform a switching operation on the power circuit to pass the The power circuit is turned off and closed to control the power management chip to restart.
  • a second control signal is generated according to the first way trigger signal and the first detection signal; the second control signal is used to maintain the state of the circuit breaker unchanged, thereby maintaining the state of the power circuit unchanged (ie closed state).
  • the processing module after receiving the first trigger signal, the processing module first performs pulse signal adjustment on the first trigger signal to obtain a pulse signal of a fixed width.
  • a pulse signal of a fixed width is generated as the first detection signal.
  • the processing module processes the two fixed-width pulse signals, and the processing result is to generate a second control signal; or, when the detection module does not detect the enable signal or number
  • the processing module processes the first trigger signal and the second detection signal, and the processing result is to generate the first control signal.
  • Step 105 Control the circuit breaker to perform a switching operation on the power circuit according to the control signal to open and close the power supply management chip to restart by the power circuit.
  • the circuit breaker switch determines whether to perform a corresponding switching operation on the power circuit according to the control signal output by the processing module.
  • the terminal includes:
  • Power supply 21 terminal power supply
  • Disconnect switch 22 for switching the power output
  • Power management chip 23 outputting the adjusted power to each module circuit
  • Processor 24 for control management of functional modules
  • the function module 25 includes a display module, a camera module, a speaker power amplifier, a vibration circuit, and the like;
  • Detecting module 26 detecting an enable signal or a digital signal output by the processor
  • the triggering device 27 includes: a power button, a volume button, a camera button, and a fingerprint identification module, etc., for generating a trigger signal, and triggering the processor to output an enable signal or a digital signal to the corresponding function module;
  • the processing module 28 is configured to process the trigger signal generated by the trigger device and the detection module output signal.
  • each module has the following functions:
  • the triggering device 27 is configured to obtain a triggering operation, generate a trigger signal, divide the triggering signal into a first way trigger signal and a second way trigger signal, and send the first way trigger signal to the processing module 28 Transmitting the second trigger signal to the processor 24 to trigger the processor 24 to generate an enable signal or a digital signal;
  • the processor 24 is configured to generate an enable signal or a digital signal under the trigger of the second way trigger signal
  • the detecting module 26 is configured to detect the enable signal or a digital signal, and generate a corresponding detection signal according to the detection result;
  • the processing module 28 is configured to generate a control signal for controlling the disconnect switch 22 according to the first way trigger signal and the detection signal;
  • the disconnecting switch 22 is configured to perform a switching operation on the power supply circuit according to the control signal to restart the power supply management chip 23 by the power supply circuit to open and close.
  • the state of the terminal is a non-crash state; when the processor 24 is in the second way trigger signal When the enable signal or the digital signal is not generated under the trigger, the state of the terminal is a dead state.
  • the detecting module 26 is further configured to determine whether the enable signal or the digital signal is detected; when the enable signal or the digital signal is detected, generate a first detection signal; when the enable signal is not detected or The digital signal generates a second detection signal.
  • the detecting module 26 is further configured to generate a fixed width pulse signal when the enable signal or the digital signal is detected; and generate a low level signal when the enable signal or the digital signal is not detected.
  • the processing module 28 is further configured to generate a first control signal according to the first way trigger signal and the second detection signal; the first control signal is used to control the disconnect switch 22 to perform a switching operation on the power circuit,
  • the power management chip 23 is restarted by opening and closing the power supply circuit.
  • each module in the terminal is as follows: First, the triggering device 27 generates a trigger signal, and the trigger signal is divided into two paths, one of which is: trigger signal -> power management chip 23 / processor 24 (output enable signal) -> detection Module 26 (detection enable signal output detection signal) -> processing Module 28; the other path is: trigger signal -> processing module 28; secondly, the processing module 28 acquires two signals (detection signal and trigger signal output by the detection module 26), and outputs a control signal to control whether the disconnect switch 22 performs a switching operation after processing .
  • trigger signal -> power management chip 23 / processor 24 output enable signal
  • detection Module 26 detection enable signal output detection signal
  • processing module 28 acquires two signals (detection signal and trigger signal output by the detection module 26), and outputs a control signal to control whether the disconnect switch 22 performs a switching operation after processing .
  • FIG. 3 is a flowchart of a control method according to Embodiment 3 of the present invention. As shown in FIG. 3, the process includes: triggering a trigger signal to output a pulse signal, and transmitting the signal to the processing module for pulse signal adjustment, and outputting a fixed width.
  • the pulse signal; the other trigger processor outputs an enable signal, and the enable signal output by the processor is detected by the detection module, and different detection results are respectively output to the processing module according to the presence or absence of the enable signal, if the detection module detects the enable signal , the corresponding detection result signal (such as a fixed width pulse signal) is output to the processing module, and the processing module processes according to the detection signal output by the detection module and the pulse signal output by the trigger device, and does not output the control signal to the disconnect switch, then the disconnect switch is maintained. If the detection module fails to detect the enable signal, there is no corresponding detection signal output, and the processing module does not obtain the detection signal output by the detection module, and then processes the pulse signal output from the trigger device and outputs the control signal to drive the circuit breaker. Switch action, causing the power output path to open and close instantly The management chip is powered down and restarted.
  • the trigger device takes the power key as an example, and the detection module detection signal takes an enable signal output by the processor as an example.
  • the detection module mainly includes a rising edge trigger circuit, a falling edge trigger circuit, an adder circuit and a pulse adjustment circuit.
  • the rising edge trigger circuit is used to generate a positive pulse signal when the input voltage changes from low level to high level, and has no output when the input voltage has no change;
  • the falling edge trigger circuit is used when the input voltage changes from high level to low level.
  • a forward pulse signal no output when the input voltage is unchanged;
  • the adder circuit is used for the addition of the output of the two-way trigger circuit;
  • the pulse adjustment circuit is used for adjusting the pulse width and outputting a pulse signal of a fixed width.
  • the processing module mainly comprises a delay circuit and a switch circuit, and the circuit block diagram thereof is shown in FIG. 5, the pulse adjustment circuit is used for adjusting the pulse width, and outputs a pulse signal with a fixed width; the pulse delay circuit is used for delaying the input pulse signal for a period of time;
  • the switch circuit inputs according to the output signal of the detection module The on/off processing of the output signal, when the detection module outputs a low level signal, the switch circuit is turned on, and when the detection module outputs a high level, the switch circuit is not turned on.
  • the process of detecting the signal of the crash is as shown in FIG. 6: the power button triggers a negative pulse, and sends it to the processing module all the way. After the pulse adjustment circuit, a negative pulse with a width of t0 is output, and then the pulse delay circuit is used. The pulse signal is delayed for a period of time t1 (t1 is the latest time when the design allows the button to trigger the processor output enable signal); the other passes through the power management chip, and the processor outputs an enable signal to the corresponding function module.
  • the internal switching circuit of the processing module is used as a driving signal of the switching circuit; when the switching circuit inputs a high-level driving signal, the switching circuit is turned off, and when the switching circuit inputs a low-level driving signal, the switching power is
  • the pulse timing of the internal circuit of the detection module and the processing module is shown in Fig. 6.
  • the button is triggered, if the processor outputs the enable signal after normal operation, the output width after the detection module is (t0+t1).
  • the positive pulse causes the switch circuit in the processing module to be turned off, and the button trigger signal cannot be transmitted to the disconnect switch through the switch circuit; if the processor crashes and the processor fails to output the enable signal in time, the detection module cannot output a high-level pulse.
  • the signal is sent to the switching circuit in the processing module, the switching circuit is in a conducting state, and the button trigger signal is outputted to the disconnecting switch by the processing module through the switching circuit, and the driving disconnecting switch performs an instantaneous opening and closing operation on the power output, and the power is turned on.
  • the management chip will restart due to a momentary power loss.
  • the detection module and each circuit in the processing module are electronic circuits, and the circuit breaker can be an electromagnetic switch or an electronic circuit switch, which will not be described in detail herein.
  • crash detection restart process is only an embodiment of the present invention, and does not limit the scope of the patent of the present invention, and the detection signal is used to detect the trigger signal and the corresponding processor output signal. Therefore, it is reasonable to include the control of the power output switch within the scope of the present invention.
  • the terminal When the user uses the smart terminal, each time the power button is pressed, the terminal will be standby or wake up. When the power button is pressed, a trigger signal will be generated. This trigger signal is adjusted by the processing module while the other side triggers the processor output. The signal can be sent to the display module, and the detection module outputs different detection signals to the processing module by detecting the presence or absence of the enable signal, and the processing module processes and determines the trigger signal and the detection signal.
  • the processing module does not output the control signal to The disconnect switch action, if the terminal works deadlock abnormality, the processing module outputs a control signal to the disconnect switch, and the terminal will automatically restart after power down; the effect is that when the terminal is in normal use, the button function is normally used, and the terminal will not be restarted. If a crash occurs during the terminal use, the user will automatically restart the terminal by pressing the button. It is not necessary for the user to judge whether the terminal is dead, whether it is necessary to disassemble the battery or operate other reset devices to restart the terminal.
  • embodiments of the present invention can be provided as a method, system, or computer program product. Accordingly, the present invention can take the form of a hardware embodiment, a software embodiment, or a combination of software and hardware. Moreover, the invention can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) including computer usable program code.
  • These computer program instructions can also be stored in a bootable computer or other programmable data processing
  • the apparatus is readable in a computer readable memory in a particular manner such that instructions stored in the computer readable memory produce an article of manufacture comprising instruction means implemented in one or more flows and/or block diagrams of the flowchart The function specified in the box or in multiple boxes.
  • These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device.
  • the instructions provide steps for implementing the functions specified in one or more of the flow or in a block or blocks of a flow diagram.
  • an embodiment of the present invention further provides a computer storage medium, wherein a computer program is stored, and the computer program is used to execute the control method of the embodiment of the present invention.
  • the technical solution of the embodiment of the present invention obtains a trigger operation, generates a trigger signal, generates an enable signal or a digital signal for controlling the operation of the function module according to the trigger signal, and detects the enable signal or the digital signal, and according to the detection As a result, a corresponding detection signal is generated; a control signal for controlling the disconnecting switch is generated according to the trigger signal and the detection signal; and according to the control signal, determining whether to control the disconnecting switch to perform a switching operation on the power supply circuit; when controlling the disconnecting switch When the power circuit is switched, the power supply circuit is turned off and the control power management chip is restarted. It can be seen that the technical solution of the embodiment of the present invention can automatically detect whether the terminal is dead or not, and automatically restarts in a state where the terminal is dead.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)
  • Electronic Switches (AREA)

Abstract

本发明公开了一种控制方法及终端、计算机存储介质,包括:获得触发操作,生成触发信号;将所述触发信号分为第一路触发信号和第二路触发信号;将所述第二路触发信号发送至处理器,以触发所述处理器生成使能信号或数字信号;检测所述使能信号或数字信号,并根据检测结果生成相应的检测信号;根据所述第一路触发信号以及所述检测信号,生成用于控制断路开关的控制信号;根据所述控制信号,控制断路开关对电源电路进行开关操作,以通过所述电源电路断开闭合控制电源管理芯片重启。

Description

一种控制方法及终端、计算机存储介质 技术领域
本发明涉及重启技术,尤其涉及一种控制方法及终端、计算机存储介质。
背景技术
智能终端在使用过程中,因系统缺陷(BUG)或应用冲突等会出现死机、黑屏等现象,按键均无反应。对于内置电池的手机,通常设计为长按电源键10-20秒重启,但用户往往并未详细阅读使用说明书,在按键无反应且按电源键开关机未果后容易以为手机损坏开不了机,产生抱怨、投诉,用户体验不佳。因此,需要有自动检测死机异常并重启的方法。
目前死机重启的方法有三种:第一种是通过设置专用开关按键结构来实现硬件复位或断电。第二种是通过软件/硬件识别按键时间超过一定时长,触发电源管理芯片对处理器进行复位操作。第三种是通过设置按键触发相应开关电路进行断电或复位。
上述三种方法存在如下缺点:第一种方法需专门开关按键,结构复杂。第二种方法按键时间过长,用户体验不佳,与现有内置电池手机长按10-20秒重启方案是一致的,且电源管理芯片未断电,死机可能会导致电源管理芯片部分输出电压异常,仅对处理器复位不能完全解决问题。第三种方法需设置专门按键,并由用户来判断是否死机再进行相应开关操作,无法实现死机自动检测并重启。
发明内容
为解决上述技术问题,本发明实施例提供了一种控制方法及终端、计 算机存储介质。
本发明实施例提供的控制方法,包括:
获得触发操作,生成触发信号;
将所述触发信号分为第一路触发信号和第二路触发信号;
将所述第二路触发信号发送至处理器,以触发所述处理器生成使能信号或数字信号;
检测所述使能信号或数字信号,并根据检测结果生成相应的检测信号;
根据所述第一路触发信号以及所述检测信号,生成用于控制断路开关的控制信号;
根据所述控制信号,控制断路开关对电源电路进行开关操作,以通过所述电源电路断开闭合控制电源管理芯片重启。
本发明实施例中,当所述处理器在所述第二路触发信号的触发下生成所述使能信号或数字信号时,终端的状态为非死机状态;当所述处理器在所述第二路触发信号的触发下不生成所述使能信号或数字信号时,终端的状态为死机状态。
本发明实施例中,所述检测所述使能信号或数字信号,并根据检测结果生成相应的检测信号,包括:
判断是否检测到所述使能信号或数字信号;
当检测到所述使能信号或数字信号,生成第一检测信号;
当未检测到所述使能信号或数字信号,生成第二检测信号。
本发明实施例中,当检测到所述使能信号或数字信号,生成第一检测信号包括:生成固定宽度脉冲信号;
当未检测到所述使能信号或数字信号,生成第二检测信号包括:生成低电平信号。
本发明实施例中,所述根据所述第一路触发信号以及所述检测信号, 生成用于控制断路开关的控制信号包括:
根据所述第一路触发信号和所述第二检测信号,生成第一控制信号;
所述第一控制信号用于控制断路开关对电源电路进行开关操作,以通过所述电源电路断开闭合控制电源管理芯片重启。
本发明实施例提供的终端,包括:触发装置、处理模块、处理器、检测模块、断路开关、电源电路、电源管理芯片;其中,
所述触发装置,配置为获得触发操作,生成触发信号;将所述触发信号分为第一路触发信号和第二路触发信号;将所述第一路触发信号发送至所述处理模块;将所述第二路触发信号发送至所述处理器,以触发所述处理器生成使能信号或数字信号;
所述处理器,配置为在所述第二路触发信号的触发下生成使能信号或数字信号;
所述检测模块,配置为检测所述使能信号或数字信号,并根据检测结果生成相应的检测信号;
所述处理模块,配置为根据所述第一路触发信号以及所述检测信号,生成用于控制断路开关的控制信号;
所述断路开关,配置为根据所述控制信号,对电源电路进行开关操作,以通过所述电源电路断开闭合控制电源管理芯片重启。
本发明实施例中,当所述处理器在所述第二路触发信号的触发下生成所述使能信号或数字信号时,终端的状态为非死机状态;当所述处理器在所述第二路触发信号的触发下不生成所述使能信号或数字信号时,终端的状态为死机状态。
本发明实施例中,所述检测模块,还配置为判断是否检测到所述使能信号或数字信号;当检测到所述使能信号或数字信号,生成第一检测信号;当未检测到所述使能信号或数字信号,生成第二检测信号。
本发明实施例中,所述检测模块,还配置为当检测到所述使能信号或数字信号,生成固定宽度脉冲信号;当未检测到所述使能信号或数字信号,生成低电平信号。
本发明实施例中,所述处理模块,还配置为根据所述第一路触发信号和所述第二检测信号,生成第一控制信号;所述第一控制信号用于控制断路开关对电源电路进行开关操作,以通过所述电源电路断开闭合控制电源管理芯片重启。
本发明实施例提供的计算机存储介质存储有计算机程序,该计算机程序用于执行上述控制方法。
本发明实施例的技术方案中,获得触发操作,生成触发信号;根据所述触发信号,生成用于控制功能模块工作的使能信号或数字信号;检测所述使能信号或数字信号,并根据检测结果生成相应的检测信号;根据所述触发信号以及所述检测信号,生成用于控制断路开关的控制信号;根据所述控制信号,判断是否控制断路开关对电源电路进行开关操作;当控制断路开关对电源电路进行开关操作时,通过所述电源电路断开闭合控制电源管理芯片重启。可见本发明实施例的技术方案能够自动检测到终端是否死机并在终端死机的状态下自动实现重启。
附图说明
在附图(其不一定是按比例绘制的)中,相似的附图标记可在不同的视图中描述相似的部件。具有不同字母后缀的相似附图标记可表示相似部件的不同示例。附图以示例而非限制的方式大体示出了本文中所讨论的各个实施例。
图1为本发明实施例一的控制方法的流程示意图;
图2为本发明实施例二的终端的结构组成示意图;
图3为本发明实施例三的控制方法的流程图;
图4为本发明实施例的检测模块电路框图;
图5为本发明实施例的处理模块电路框图;
图6为本发明实施例的检测模块和处理模块内部电路脉冲时序图。
具体实施方式
本发明各个实施例的技术方案中,终端包括:电源、电源管理芯片、处理器、功能模块(包括显示模块、摄像模组、喇叭功放、震动电路等等)、触发装置(包括电源键、音量键、拍照键以及指纹识别模块等),除此之外,终端还包括:检测模块、处理模块、断路开关。其中,触发装置用于产生一触发信号,并触发处理器输出使能信号或数字信号给相应的功能模块;检测模块配置为检测处理器输出的使能信号或数字信号;处理模块配置为处理触发装置产生的触发信号,及检测模块输出的检测信号;断路开关用于对电源电路实施开关操作。
基于上述终端组成结构,提出了本发明实施例的控制方法。图1为本发明实施例一的控制方法的流程示意图,如图1所示,所述控制方法包括以下步骤:
步骤101:获得触发操作,生成触发信号;将所述触发信号分为第一路触发信号和第二路触发信号。
本发明实施例中,触发装置经用户触发后输出一触发信号,触发装置将该触发信号分为两路,第二路触发信号发送给处理器;第一路触发信号发送给处理装置。
步骤102:将所述第二路触发信号发送至处理器,以触发所述处理器生成使能信号或数字信号。
本发明实施例中,处理器接收到第二路触发信号后,输出使能信号或数字信号给相应的功能模块。
在一实施方式中,当所述处理器在所述第二路触发信号的触发下生成 所述使能信号或数字信号时,终端的状态为非死机状态;当所述处理器在所述第二路触发信号的触发下不生成所述使能信号或数字信号时,终端的状态为死机状态。
步骤103:检测所述使能信号或数字信号,并根据检测结果生成相应的检测信号。
本发明实施例中,检测模块检测处理器输出的使能信号或数字信号,根据使能信号或数字信号的有无分分别输出对应的检测信号给处理模块。
在一实施方式中,检测模块判断是否检测到所述使能信号或数字信号;当检测到所述使能信号或数字信号,生成第一检测信号;当未检测到所述使能信号或数字信号,生成第二检测信号。
上述方案中,生成第一检测信号包括:生成固定宽度脉冲信号;生成第二检测信号包括:生成低电平信号。
步骤104:根据所述第一路触发信号以及所述检测信号,生成用于控制断路开关的控制信号。
在一实施方式中,根据所述第一路触发信号和所述第二检测信号,生成第一控制信号;所述第一控制信号用于控制断路开关对电源电路进行开关操作,以通过所述电源电路断开闭合控制电源管理芯片重启。
此外,根据所述第一路触发信号和所述第一检测信号,生成第二控制信号;所述第二控制信号用于维持断路开关的状态保持不变,进而维持电源电路的状态保持不变(即闭合状态)。
本发明实施例中,处理模块接收到第一路触发信号后,首先对第一路触发信号进行脉冲信号调整,得到固定宽度的脉冲信号。相应地,当检测模块检测到所述使能信号或数字信号时,生成固定宽度的脉冲信号作为第一检测信号。然后,处理模块对两路固定宽度的脉冲信号进行处理,处理结果为生成第二控制信号;或者,当检测模块未检测到所述使能信号或数 字信号时,生成低电频信号作为第二检测信号,处理模块对第一路触发信号和第二检测信号进行处理,处理结果为生成第一控制信号。
步骤105:根据所述控制信号,控制断路开关对电源电路进行开关操作,以通过所述电源电路断开闭合控制电源管理芯片重启。
本发明实施例中,断路开关根据处理模块输出的控制信号确定是否对电源电路进行相应的开关操作。
图2为本发明实施例二的终端的结构组成示意图,如图2所示,所述终端包括:
电源21:终端电源;
断路开关22:用于对电源输出的开关动作;
电源管理芯片23:输出调节后的电源给各模块电路;
处理器24:用于功能模块的控制管理;
功能模块25,包括显示模块、摄像模组、喇叭功放、震动电路等等;
检测模块26:检测处理器输出的使能信号或数字信号;
触发装置27:包括电源键、音量键、拍照键以及指纹识别模块等,用于产生触发信号,并触发处理器输出使能信号或数字信号给相应的功能模块;
处理模块28:用于对触发装置产生的触发信号及检测模块输出信号进行处理。
通过本发明实施例的上述终端实现本发明实施例的控制方法时,各个模块具有如下功能:
所述触发装置27,配置为获得触发操作,生成触发信号;将所述触发信号分为第一路触发信号和第二路触发信号;将所述第一路触发信号发送至所述处理模块28;将所述第二路触发信号发送至所述处理器24,以触发所述处理器24生成使能信号或数字信号;
所述处理器24,配置为在所述第二路触发信号的触发下生成使能信号或数字信号;
所述检测模块26,配置为检测所述使能信号或数字信号,并根据检测结果生成相应的检测信号;
所述处理模块28,配置为根据所述第一路触发信号以及所述检测信号,生成用于控制断路开关22的控制信号;
所述断路开关22,配置为根据所述控制信号,对电源电路进行开关操作,以通过所述电源电路断开闭合控制电源管理芯片23重启。
当所述处理器24在所述第二路触发信号的触发下生成所述使能信号或数字信号时,终端的状态为非死机状态;当所述处理器24在所述第二路触发信号的触发下不生成所述使能信号或数字信号时,终端的状态为死机状态。
所述检测模块26,还配置为判断是否检测到所述使能信号或数字信号;当检测到所述使能信号或数字信号,生成第一检测信号;当未检测到所述使能信号或数字信号,生成第二检测信号。
所述检测模块26,还配置为当检测到所述使能信号或数字信号,生成固定宽度脉冲信号;当未检测到所述使能信号或数字信号,生成低电平信号。
所述处理模块28,还配置为根据所述第一路触发信号和所述第二检测信号,生成第一控制信号;所述第一控制信号用于控制断路开关22对电源电路进行开关操作,以通过所述电源电路断开闭合控制电源管理芯片23重启。
终端中上述各个模块的工作顺序为:首先,触发装置27产生触发信号,触发信号分成两路,其中一路为:触发信号—>电源管理芯片23/处理器24(输出使能信号)—>检测模块26(检测使能信号输出检测信号)—>处理 模块28;另一路为:触发信号—>处理模块28;其次,处理模块28获取两路信号(检测模块26输出的检测信号和触发信号),处理后输出控制信号控制断路开关22是否执行开关操作。
图3为本发明实施例三的控制方法的流程图,如图3所示,所述流程包括:触发装置触发后输出一脉冲信号,一路传给处理模块进行脉冲信号调整,输出一固定宽度的脉冲信号;另一路触发处理器输出使能信号,处理器输出的使能信号由检测模块进行检测,根据使能信号的有无分别输出不同检测结果给处理模块,如果检测模块检测到使能信号,则输出相应检测结果信号(如一固定宽度的脉冲信号)给处理模块,处理模块根据检测模块输出的检测信号和触发装置输出的脉冲信号进行处理,不输出控制信号给断路开关,则断路开关维持原状态;若检测模块未能检测到使能信号,则无相应检测信号输出,处理模块未获取到检测模块输出的检测信号,则对来自触发装置输出的脉冲信号进行处理后输出控制信号驱动断路开关动作,使电源输出通路瞬间断开闭合引起管理芯片掉电重启。
下面进一步以实施例来说明死机重启的过程,触发装置以电源键为例,检测模块检测信号以处理器输出的使能信号为例。
检测模的框图见图4,检测模块主要包含上升沿触发电路、下降沿触发电路、加法器电路及脉冲调整电路。上升沿触发电路用于输入电压由低电平变化为高电平时产生一正向脉冲信号,输入电压无变化时无输出;下降沿触发电路用于输入电压由高电平变化为低电平时产生一正向脉冲信号,输入电压无变化时无输出;加法器电路用于两路触发电路输出的加法运算;脉冲调整电路用于脉冲宽度的调整,输出固定宽度的脉冲信号。
处理模块主要包含延时电路及开关电路,其电路框图见图5,脉冲调整电路用于脉冲宽度的调整,输出固定宽度的脉冲信号;脉冲延时电路用于将输入脉冲信号延后一段时间;开关电路根据检测模块输出信号进行输入 输出信号的通断处理,检测模块输出低电平信号时,开关电路导通,检测模块输出高电平时,开关电路不导通。
本发明实施例死机检测信号过程,如图6:电源键触发一负向脉冲,一路送至处理模块,经脉冲调整电路后输出一宽度为t0的负向脉冲,再经脉冲延时电路,将脉冲信号延后一段时间t1(t1为设计允许按键触发后处理器输出使能信号最迟时间)传给开关电路;另一路经电源管理芯片,由处理器输出使能信号给相应的功能模块,如显示模块等;处理器输出的使能信号存在高低电平跳变,使能信号输入检测模块后分两路经上升沿和下降沿触发电路,再经加法器电路叠加输出,这样使能信号不管是由低电平跳变高电平或者高电平跳变低电平,都能实现一正向脉冲输出,再经脉冲调整电路输出一宽度为(t0+t1)的正向脉冲传至处理模块内部开关电路,作为开关电路的驱动信号;开关电路输入高电平驱动信号时,开关电路关闭,开关电路输入低电平驱动信号时,开关电路导通;按键触发后,检测模块和处理模块内部电路脉冲时序见图6;当按键触发后,若处理器正常工作输出使能信号,则经检测模块后输出宽度为(t0+t1)的正向脉冲使处理模块内的开关电路关闭,按键触发信号无法通过开关电路传至断路开关;若按键触发后,处理器死机异常未能及时输出使能信号,则检测模块无法输出高电平脉冲信号给处理模块内的开关电路,开关电路处于导通状态,按键触发信号经处理模块输出负向脉冲信号经开关电路传至断路开关,驱动断路开关对电源输出进行瞬间断开闭合操作,则电源管理芯片将因瞬间掉电而重启。
检测模块、处理模块内各个电路等均为电子电路,断路开关可以是电磁开关也可以是电子电路开关,这里不做详细说明。
上述死机检测重启过程只是本发明的一种实施例,并非限制本发明的专利范围,凡是利用检测装置对触发信号及相应处理器输出信号进行检测 从而控制电源输出开关,均同理包括在本发明权利保护范围之内。
用户在使用智能终端时,每次按电源键,会对终端进行待机或者唤醒操作,按电源键时会产生一触发信号,这个触发信号一边通过处理模块进行调整,另一边则触发处理器输出使能信号给显示模块,检测模块通过检测有无使能信号相应的输出不同检测信号给处理模块,处理模块对触发信号和检测信号进行处理判断,如果终端工作正常,则处理模块不输出控制信号给断路开关动作,如果终端工作出现死机异常,则处理模块输出控制信号给断路开关动作,终端会出现掉电自动重启;实现的效果是,终端正常使用时,按键功能正常使用,不会触发终端重启;终端使用过程中出现死机异常,则用户按键将出现终端自动重启。无需用户自行判断终端是否死机,是否需要拆装电池或者操作其他复位装置来进行终端重启作业。
本领域内的技术人员应明白,本发明的实施例可提供为方法、系统、或计算机程序产品。因此,本发明可采用硬件实施例、软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器和光学存储器等)上实施的计算机程序产品的形式。
本发明是参照根据本发明实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理 设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。
相应地,本发明实施例还提供一种计算机存储介质,其中存储有计算机程序,该计算机程序用于执行本发明实施例的控制方法。
以上所述,仅为本发明的较佳实施例而已,并非用于限定本发明的保护范围。
工业实用性
本发明实施例的技术方案,获得触发操作,生成触发信号;根据所述触发信号,生成用于控制功能模块工作的使能信号或数字信号;检测所述使能信号或数字信号,并根据检测结果生成相应的检测信号;根据所述触发信号以及所述检测信号,生成用于控制断路开关的控制信号;根据所述控制信号,判断是否控制断路开关对电源电路进行开关操作;当控制断路开关对电源电路进行开关操作时,通过所述电源电路断开闭合控制电源管理芯片重启。可见本发明实施例的技术方案能够自动检测到终端是否死机并在终端死机的状态下自动实现重启。

Claims (11)

  1. 一种控制方法,所述方法包括:
    获得触发操作,生成触发信号;
    将所述触发信号分为第一路触发信号和第二路触发信号;
    将所述第二路触发信号发送至处理器,以触发所述处理器生成使能信号或数字信号;
    检测所述使能信号或数字信号,并根据检测结果生成相应的检测信号;
    根据所述第一路触发信号以及所述检测信号,生成用于控制断路开关的控制信号;
    根据所述控制信号,控制断路开关对电源电路进行开关操作,以通过所述电源电路断开闭合控制电源管理芯片重启。
  2. 根据权利要求1所述的控制方法,其中,当所述处理器在所述第二路触发信号的触发下生成所述使能信号或数字信号时,终端的状态为非死机状态;当所述处理器在所述第二路触发信号的触发下不生成所述使能信号或数字信号时,终端的状态为死机状态。
  3. 根据权利要求1所述的控制方法,其中,所述检测所述使能信号或数字信号,并根据检测结果生成相应的检测信号,包括:
    判断是否检测到所述使能信号或数字信号;
    当检测到所述使能信号或数字信号,生成第一检测信号;
    当未检测到所述使能信号或数字信号,生成第二检测信号。
  4. 根据权利要求3所述的死机重启方法,其中,
    当检测到所述使能信号或数字信号,生成第一检测信号包括:生成固定宽度脉冲信号;
    当未检测到所述使能信号或数字信号,生成第二检测信号包括:生成低电平信号。
  5. 根据权利要求3或4所述的死机重启方法,其中,所述根据所述第一路触发信号以及所述检测信号,生成用于控制断路开关的控制信号包括:
    根据所述第一路触发信号和所述第二检测信号,生成第一控制信号;
    所述第一控制信号用于控制断路开关对电源电路进行开关操作,以通过所述电源电路断开闭合控制电源管理芯片重启。
  6. 一种终端,所述终端包括:触发装置、处理模块、处理器、检测模块、断路开关、电源电路、电源管理芯片;其中,
    所述触发装置,配置为获得触发操作,生成触发信号;将所述触发信号分为第一路触发信号和第二路触发信号;将所述第一路触发信号发送至所述处理模块;将所述第二路触发信号发送至所述处理器,以触发所述处理器生成使能信号或数字信号;
    所述处理器,配置为在所述第二路触发信号的触发下生成使能信号或数字信号;
    所述检测模块,配置为检测所述使能信号或数字信号,并根据检测结果生成相应的检测信号;
    所述处理模块,配置为根据所述第一路触发信号以及所述检测信号,生成用于控制断路开关的控制信号;
    所述断路开关,配置为根据所述控制信号,对电源电路进行开关操作,以通过所述电源电路断开闭合控制电源管理芯片重启。
  7. 根据权利要求6所述的终端,其中,当所述处理器在所述第二路触发信号的触发下生成所述使能信号或数字信号时,终端的状态为非死机状态;当所述处理器在所述第二路触发信号的触发下不生成所述使能信号或数字信号时,终端的状态为死机状态。
  8. 根据权利要求6所述的终端,其中,所述检测模块,还配置为判断是否检测到所述使能信号或数字信号;当检测到所述使能信号或数字信号, 生成第一检测信号;当未检测到所述使能信号或数字信号,生成第二检测信号。
  9. 根据权利要求8所述的终端,其中,所述检测模块,还配置为当检测到所述使能信号或数字信号,生成固定宽度脉冲信号;当未检测到所述使能信号或数字信号,生成低电平信号。
  10. 根据权利要求8或9所述的终端,其中,所述处理模块,还配置为根据所述第一路触发信号和所述第二检测信号,生成第一控制信号;所述第一控制信号用于控制断路开关对电源电路进行开关操作,以通过所述电源电路断开闭合控制电源管理芯片重启。
  11. 一种计算机存储介质,所述计算机存储介质中存储有计算机可执行指令,该计算机可执行指令配置为执行权利要求1-5任一项所述的死机重启方法。
PCT/CN2016/083297 2016-04-21 2016-05-25 一种控制方法及终端、计算机存储介质 WO2017181479A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610255812.XA CN107305416A (zh) 2016-04-21 2016-04-21 一种控制方法及终端
CN201610255812.X 2016-04-21

Publications (1)

Publication Number Publication Date
WO2017181479A1 true WO2017181479A1 (zh) 2017-10-26

Family

ID=60115697

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/083297 WO2017181479A1 (zh) 2016-04-21 2016-05-25 一种控制方法及终端、计算机存储介质

Country Status (2)

Country Link
CN (1) CN107305416A (zh)
WO (1) WO2017181479A1 (zh)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110888748A (zh) * 2018-09-10 2020-03-17 欣技资讯股份有限公司 防止自由落下后数据遗失的方法及其手持装置
CN113821070A (zh) * 2021-08-20 2021-12-21 浙江大华技术股份有限公司 一种电源控制系统、方法、计算机设备和存储介质

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108459879B (zh) * 2018-01-17 2021-08-17 宇龙计算机通信科技(深圳)有限公司 一种防止终端死机的方法、终端
CN108762981B (zh) * 2018-04-27 2022-03-15 Oppo广东移动通信有限公司 黑屏处理方法及相关装置
TWI720615B (zh) * 2019-09-12 2021-03-01 神雲科技股份有限公司 電腦裝置及其關機及重啟方法
CN113470585B (zh) * 2021-04-07 2022-11-11 惠州市德赛西威汽车电子股份有限公司 一种防止lcd屏持续黑屏保护电路及方法
CN113341827A (zh) * 2021-06-18 2021-09-03 南昌华勤电子科技有限公司 电源芯片的控制方法和设备

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102572110A (zh) * 2012-02-07 2012-07-11 深圳市金立通信设备有限公司 智能手机掉电保护系统及方法
CN104270505A (zh) * 2014-09-12 2015-01-07 青岛海信移动通信技术股份有限公司 一种移动终端及移动终端的开机方法
CN104794016A (zh) * 2015-04-23 2015-07-22 惠州Tcl移动通信有限公司 一种移动终端死机检测处理方法及系统

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102572110A (zh) * 2012-02-07 2012-07-11 深圳市金立通信设备有限公司 智能手机掉电保护系统及方法
CN104270505A (zh) * 2014-09-12 2015-01-07 青岛海信移动通信技术股份有限公司 一种移动终端及移动终端的开机方法
CN104794016A (zh) * 2015-04-23 2015-07-22 惠州Tcl移动通信有限公司 一种移动终端死机检测处理方法及系统

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110888748A (zh) * 2018-09-10 2020-03-17 欣技资讯股份有限公司 防止自由落下后数据遗失的方法及其手持装置
CN113821070A (zh) * 2021-08-20 2021-12-21 浙江大华技术股份有限公司 一种电源控制系统、方法、计算机设备和存储介质

Also Published As

Publication number Publication date
CN107305416A (zh) 2017-10-31

Similar Documents

Publication Publication Date Title
WO2017181479A1 (zh) 一种控制方法及终端、计算机存储介质
US7996702B2 (en) System and method for testing overclocking capability of CPU
US7676667B2 (en) Boot control apparatus and method
US20220248123A1 (en) Wireless earphone serial port control method and apparatus, wireless earphone, and storage medium
RU2701057C1 (ru) Способ и устройство отображения времени на мобильном устройстве
US20140189338A1 (en) Electronic device and method for detecting booting time period for electronic device
WO2011091743A1 (en) Apparatus and method for recording reboot reason of equipment
CN109960616A (zh) 基于处理器的内存参数的调试方法及系统
US10764425B2 (en) Method and apparatus for detecting state
US20080070617A1 (en) Reset circuit and method of mobile phone
WO2016184058A1 (zh) 一种终端异常恢复方法及终端
CN101087130B (zh) 音频设备保护系统
EP2765482A1 (en) Handheld electronic apparatus and operation method thereof
CN103543344A (zh) 一种解决电容屏失效的方法及电容屏异常侦测电路
US20130221999A1 (en) Testing system and method
CN106371938A (zh) 智能延迟自动关机系统及其方法
CN104184479A (zh) 一种可避免事件遗漏的按键去抖检测方法
CN107678871B (zh) 一种电子设备开机方法及电子设备
WO2017012205A1 (zh) 一种控制屏幕的方法、装置和终端、存储介质
CN103973870A (zh) 信息处理设备和信息处理方法
CN105159708A (zh) 一种信息处理方法及电子设备
WO2016192180A1 (zh) 一种充电保护的方法、电子设备、系统及存储介质
US11521480B1 (en) Intrusion detection apparatus and method thereof
US7026842B1 (en) Method and apparatus for reliable pulse event detection
US8478975B2 (en) Electronic device and method for detecting operative states of components in the electronic device

Legal Events

Date Code Title Description
NENP Non-entry into the national phase

Ref country code: DE

121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16899066

Country of ref document: EP

Kind code of ref document: A1

122 Ep: pct application non-entry in european phase

Ref document number: 16899066

Country of ref document: EP

Kind code of ref document: A1