WO2012094848A1 - 一种基于终端外壳的关机方法及终端 - Google Patents

一种基于终端外壳的关机方法及终端 Download PDF

Info

Publication number
WO2012094848A1
WO2012094848A1 PCT/CN2011/071957 CN2011071957W WO2012094848A1 WO 2012094848 A1 WO2012094848 A1 WO 2012094848A1 CN 2011071957 W CN2011071957 W CN 2011071957W WO 2012094848 A1 WO2012094848 A1 WO 2012094848A1
Authority
WO
WIPO (PCT)
Prior art keywords
shutdown
terminal
shell
user
enclosure
Prior art date
Application number
PCT/CN2011/071957
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 WO2012094848A1 publication Critical patent/WO2012094848A1/zh

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones

Definitions

  • the present invention relates to terminal application technology, and more particularly to a shutdown method and terminal based on a terminal housing.
  • the current terminal device shutdown design methods are: 1) Press and hold the shutdown button to shut down. 2) Manually remove the battery back cover, then unplug the battery to turn off the power. 3) Set the power off and off of the dedicated power off switch. 4) Turn off the alarm clock.
  • the existing shutdown design has the following problems: Long button shutdown avoids accidental shutdown operation, but after long button, shutdown processing and display shutdown animation, the user needs to wait for a long time; if it is powered off, especially when the system is busy It is easy to cause damage to the system file system, and the design of the system integrity and consistency protection will be very demanding. Timed shutdown alarm mode is very inflexible.
  • the present invention provides a shutdown method based on a terminal housing, including:
  • detecting the terminal housing removal event is achieved by:
  • the shutdown process includes:
  • the shutdown process includes:
  • the shutdown indication option is displayed. If the shutdown indication option selected by the user is received within a predetermined time, the operation is performed according to the shutdown indication option selected by the user.
  • the shutdown indication option comprises one or more of the following options:
  • the power-off state of the shutdown mode is set to be turned on.
  • the step of performing the operation according to the shutdown instruction option selected by the user is: updating the enable state of the shutdown mode of the shell, And execute the system power-off protection process and the quick shutdown process;
  • the second type is canceled.
  • the step of performing the operation according to the shutdown instruction option selected by the user is: ignoring the terminal housing removal event;
  • the steps to perform the operation according to the user-selected shutdown indication option are: Perform the system power-off protection process and the fast shutdown process.
  • the method further comprises: recording an operation performed in the current terminal shell removal event during the process of triggering the shutdown process corresponding to the terminal housing removal event.
  • the present invention further provides a terminal, including:
  • the control module is configured to trigger the shutdown module after detecting the terminal housing removal event; and the shutdown module is configured to perform a shutdown process corresponding to the terminal housing removal event after being triggered.
  • control module is configured to detect the terminal housing removal event by: detecting that the currently recorded housing status is installed, and the illumination intensity inside the terminal covered by the terminal housing is greater than a preset threshold.
  • the shutdown module includes: a determination unit, a first shutdown unit, and a display unit; the determination unit is configured to: trigger when the enable state of the enclosure shutdown mode is determined to be an open state a first shutdown unit; and, when determining that the enabled state of the enclosure shutdown mode is an unset state, triggering the display unit;
  • the first shutdown unit is configured to perform a system power-off protection process and a fast shutdown process after being triggered;
  • the display unit is configured to display a shutdown indication option after being triggered.
  • the shutdown module further includes: an input unit and a second shutdown unit;
  • the input unit is configured to trigger the second shutdown unit if the user-selected shutdown indication option is received within a predetermined time;
  • the shutdown indication option includes one or more of the following selections: shutdown and setting the enclosure shutdown mode enable The status is on; cancel; and, this time only allows the enclosure to be powered off;
  • the second shutdown unit is configured to: when the user selects shutdown and sets the enable state of the enclosure shutdown mode to be on, updates an enable state of the enclosure shutdown mode, and performs a system power failure protection process and a fast shutdown process;
  • the system power-off protection process and the fast shutdown process are performed when the user selects only this time to allow the enclosure to be powered off.
  • the terminal further includes:
  • a recording unit configured to record an operation performed in the current terminal housing removal event.
  • the invention provides a shutdown method and a terminal based on a terminal casing, according to the state of the casing that the user must first remove, pre-judging and executing the system protection measures and the quick shutdown process under the software control, so as to avoid waiting for the user to remove the battery
  • the system damage caused by power failure can achieve the effect of avoiding user's accidental shutdown and reducing waiting time, thus providing the user with an optional new shutdown mode.
  • 1 is a schematic diagram of a terminal according to an embodiment of the present invention
  • 2 is a schematic diagram of a shutdown module according to an embodiment of the present invention
  • FIG. 3 is a flow chart of a shutdown method based on a terminal housing of the present invention.
  • FIG. 4 is a flowchart of a method for shutting down a terminal based on an embodiment of the present invention. Preferred embodiment of the invention
  • the present invention pre-judges and executes the system protection measures and the quick shutdown process under the software control according to the state of the shell that the user must first remove, so as to avoid the power failure caused by the user removing the battery.
  • the system damage can achieve the effect of avoiding user's accidental shutdown and reducing waiting time, thus providing the user with an optional new shutdown mode.
  • a terminal of the embodiment of the present invention may include: a control module and a shutdown module, where
  • the control module is configured to trigger the shutdown module after detecting the terminal housing removal event
  • the shutdown module is configured to perform a shutdown process corresponding to the terminal housing removal event after being triggered.
  • the control module detects that the terminal shell removal event is implemented by: detecting that the currently recorded shell state is installed, and the light intensity inside the terminal covered by the terminal shell is greater than a preset threshold.
  • control module may be configured to report the installation event indication of the terminal housing to the shutdown module.
  • the shell removal event indication is reported.
  • the target value is detected to be less than the preset threshold 2
  • the shell installation event indication is reported.
  • the detection target value varies according to the state detection method of the outer casing.
  • the photosensor chip is preferably used as the detecting component, and the chip is placed on the internal circuit board, and the light receiving window is being used to detect the target casing, and the chip is periodically measured.
  • the received light intensity is converted to an analog to digital converter (ADC) sample.
  • ADC analog to digital converter
  • the photosensor is used as the detecting component, and generally no additional requirements are imposed on the terminal casing, and the implementation is simple.
  • the photosensor chip is preferably used as the detecting element, but other detecting elements may be used for detecting, for example, using a Hall sensor for magnet sensing detection, or using a housing clip to affect the breaking state of the main board circuit.
  • the shutdown module may include: a determining unit, a first shutdown unit, a display unit, an input unit, and a second shutdown unit, where
  • the determining unit is configured to: trigger the first shutdown unit when determining that the enable state of the enclosure shutdown mode is the open state; and trigger the display unit when determining that the enable state of the enclosure shutdown mode is the unset state;
  • the first shutdown unit is configured to perform a system power-off protection process and a fast shutdown process after being triggered;
  • the display unit is configured to display a shutdown indication option after being triggered.
  • the input unit is configured to trigger the second shutdown unit if the user inputs the shutdown indication option displayed by the display unit within a predetermined time;
  • the second shutdown unit is configured to perform a corresponding operation in accordance with a shutdown indication option selected by the user.
  • the shutdown indication option includes one or more of the following options:
  • the first type is to turn off the power and set the enable state of the shell shutdown mode to be on.
  • the second shutdown unit updates the enable state of the shell shutdown mode, and performs a system power-off protection process and Quick shutdown process;
  • the second shutdown unit ignores the current terminal shell removal event
  • the second shutdown unit performs the system power-off protection process and the quick shutdown process.
  • the shutdown module may further include: a recording unit, configured to record an operation performed in the current terminal shell removal event.
  • a recording unit configured to record an operation performed in the current terminal shell removal event.
  • step S20 if it is determined that the enable state of the shell shutdown mode is the open state, the system power-off protection process and the quick shutdown process are executed; if it is determined that the enable state of the enclosure shutdown mode is not set, the shutdown indication option is displayed. If the shutdown indication option selected by the user is received within a predetermined time, the corresponding operation is performed according to the shutdown indication option selected by the user.
  • the shutdown indication option includes one or more of the following options:
  • the first type is to turn off the power and set the enable state of the shell shutdown mode to be on. After the user selects the option, the user performs the corresponding operation according to the shutdown instruction option selected by the user, specifically: updating the enable state of the shell shutdown mode And execute the system power-off protection process and the fast shutdown process;
  • the second type is canceled. After the user selects the option, the user performs the corresponding operation according to the shutdown instruction option selected by the user, and the following operations are:
  • the third type only this time allows the enclosure to be powered off.
  • the corresponding operation according to the user-selected shutdown indication option is as follows: Execute the system power-off protection process and the quick shutdown process.
  • detecting the state of the casing can be realized by setting a light sensor or a voltage sensor related to the state of the casing.
  • the present invention uses a new shutdown triggering method to increase the system power-down protection and fast shutdown processing flow, and provides the user with an optional new shutdown experience.
  • a flowchart of a method for shutting down a terminal shell according to an embodiment of the present invention includes the following steps:
  • Step 101 booting to initialize the shell shutdown mode variable
  • the shell shutdown mode variable in this embodiment may include: a) Enable status, including three types: open, close, and not set. Read the enable state data preset in the memory for initialization, if not, the default state value of the program is used;
  • the initial enclosure status including both installed and unmounted enclosures, will affect the validity of subsequent events.
  • the condition of the housing can be obtained based on the sensitization condition or by other means of detecting whether the housing is installed.
  • Step 102 Receive and update a shell state change event.
  • the shell status change event can be monitored periodically by the shutdown module or by an interrupt mechanism.
  • the case status change event is recorded to provide a basis for subsequent decision, execution, and status update logic.
  • Step 103 Determine, according to the preset logic and the shell state change event, the execution shutdown process; specifically, performing the next processing mode inference, and considering various user usage scenarios, as shown in Table 1, as follows:
  • Scenario 1 The enabled state is open, the currently recorded shell state is the installed scenario. If the shell removal event is received, step 104 is performed; if the shell installation event is received, no processing is performed; scenario 2: the enabled state is If the shell removal status is not set, the currently recorded shell status is installed. If the shell removal event is received, step 105 is performed; if the shell installation event is received, no processing is performed;
  • Scenario 3 In the scenario where the current shell status is not installed, the enable status is on or not set, if a shell installation event is received, step 108 is performed, and if it is not received, no processing is performed.
  • Power outage protection measures include: Locking files and storage system services, and service requests that are already accepted are still allowed to operate.
  • the quick shutdown process performs the hardware shutdown process after waiting for the above service request to be completed, and does not include the protocol state release process in the normal shutdown process. Because the processing time is very short, it can generally be completed when the user removes the casing to the battery, so the system integrity can be effectively guaranteed at the next power-on startup.
  • Step 105 Display the shutdown indication option for the user to select, and start the timeout selection timer.
  • the shutdown prompt options can include: Shut down and set the option to enable the enclosure shutdown mode, cancel (ie ignore this event), and only allow the enclosure to be powered off this time.
  • Step 106 Perform corresponding processing according to an option selected by the user;
  • step 104 if the user selects "Allow only the case to enable the device to be turned off", after receiving the information of the user's selection, the process proceeds to step 104.
  • the user selects the option of "shutdown and set the enable mode to turn off the device"
  • the user can Further, according to the prompt, set the shell shutdown mode, for example, set the enclosure shutdown enable to open, or set the effective number of times the enclosure is powered off, and then the terminal can update the enclosure shutdown enable state according to the user's settings, that is, write the enable open setting.
  • Memory so that the enable state variable is initialized at the next startup, and then proceeds to step 104; if the user selects "cancel” Or, if it times out, ignore this event and go to step 102.
  • Step 107 re-initialize the state variable, here actually only the initial shell state is corrected, and the enable state is consistent with the stored, and then proceeds to step 102;
  • event recording may be further performed, for example, recording the time when the outer casing is removed or installed, recording whether the shutdown process is performed after the outer casing is removed, and setting the recording enable state, etc., and the subsequent users have checked the usage habits of the outer casing.
  • the present invention provides a shutdown method and a terminal based on a terminal casing, and performs pre-judgment and execution of system protection measures and a quick shutdown process under software control according to the state of the casing that the user must first remove, compared with the prior art.
  • the invention can avoid the system damage caused by the power failure when the user removes the battery, and can achieve the effect of avoiding the user's accidental shutdown and reducing the waiting time, thereby providing the user with an optional new shutdown mode.

Landscapes

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

Abstract

本发明提供一种基于终端外壳的关机方法,该方法包括:检测到终端外壳拆卸事件后,触发终端外壳拆卸事件对应的关机流程。该终端包括:控制模块,其设置成在检测到终端外壳拆卸事件后触发关机模块;关机模块,其设置成在受触发后,执行终端外壳拆卸事件对应的关机流程。本发明可以避免等到用户取下电池时断电造成的系统损害,又能达到避免用户误关机和减少等待时间的效果,从而提供给用户一个可选的新式关机途径。

Description

一种基于终端外壳的关机方法及终端
技术领域
本发明涉及终端应用技术, 更具体的说, 是一种基于终端外壳的关机方 法及终端。
背景技术
随着现代通信技术和网络的高速发展, 电子终端设备成为人们随身携带 的最有用的生活工具之一, 很多的个人活动都和这些终端密不可分。 因为这 些便携设备电量的限制, 其关机功能则是人们经常用到操作之一; 另外在更 换内置的智能卡时, 也需要首先关闭终端设备。
当前终端设备关机设计方式有: 1 )长按关机键关机。 2 )手工去除电池 后盖, 然后拔掉电池的断电关机。 3 )设置专用断电开关的断电关机。 4 )定 时关机闹钟。
现有关机设计存在如下问题: 长按键关机虽然避免了误关机操作, 但是 经过长按键、 关机处理和显示关机动画后, 用户需要等待较长时间; 如果是 断电关机, 特别在系统比较繁忙时, 容易造成系统文件系统损害, 对系统的 完整性和一致性保护设计将会要求很高。 定时关机闹钟方式则灵活性很差。
发明内容
本发明的目的是提供一种基于终端外壳的关机方法及终端, 以避免等到 用户取下电池时断电造成的系统损害。
为了解决上述技术问题, 本发明提供了一种基于终端外壳的关机方法, 包括:
检测到终端外壳拆卸事件后, 触发终端外壳拆卸事件对应的关机流程。 优选地, 检测到终端外壳拆卸事件是通过下面方式实现的:
检测到当前记录的外壳状态为已安装, 且所述终端外壳覆盖的终端内部 的光照强度大于预设门限值。 优选地, 所述关机流程包括:
若判断外壳关机模式的使能状态为打开状态, 则执行系统断电保护流程 及快速关机流程。
优选地, 所述关机流程包括:
若判断外壳关机模式的使能状态为未设置状态, 则显示关机指示选项, 若在预定时间内接收到用户选择的关机指示选项, 则根据用户选择的关机指 示选项执行操作。
优选地, 所述关机指示选项包括以下选项中的一种或多种:
第一种, 关机并设置外壳关机模式的使能状态为打开, 用户选择这一选 项后, 所述根据用户选择的关机指示选项执行操作的步骤为: 更新所述外壳 关机模式的使能状态, 并执行系统断电保护流程及快速关机流程;
第二种, 取消, 用户选择这一选项后, 所述根据用户选择的关机指示选 项执行操作的步骤为: 忽略本次终端外壳拆卸事件; 以及
第三种, 仅这一次允许外壳关机使能, 用户选择这一选项后, 所述根据 用户选择的关机指示选项执行操作的步骤为: 执行系统断电保护流程及快速 关机流程。
优选地, 所述方法还包括: 在触发终端外壳拆卸事件对应的关机流程的 过程中记录本次终端外壳拆卸事件中执行的操作。
为了解决上述问题, 本发明还提供了一种终端, 包括:
控制模块, 其设置成在检测到终端外壳拆卸事件后, 触发关机模块; 关机模块, 其设置成在受触发后, 执行终端外壳拆卸事件对应的关机流 程。
优选地,所述控制模块是设置成通过如下方式检测到终端外壳拆卸事件: 检测到当前记录的外壳状态为已安装, 且所述终端外壳覆盖的终端内部 的光照强度大于预设门限值。
优选地, 所述关机模块包括: 判断单元、 第一关机单元和显示单元; 判断单元设置成: 在判断外壳关机模式的使能状态为打开状态时, 触发 第一关机单元; 以及, 在判断所述外壳关机模式的使能状态为未设置状态时, 触发显示单元;
所述第一关机单元设置成在受触发后, 执行系统断电保护流程及快速关 机流程;
所述显示单元设置成受触发后, 显示关机指示选项。
优选地, 所述关机模块还包括: 输入单元和第二关机单元;
输入单元设置成若在预定时间内接收到用户选择的关机指示选项, 则触 发第二关机单元; 所述关机指示选项包括以下选择中的一种或多种: 关机并设置外壳关机 模式的使能状态为打开; 取消; 以及, 仅这一次允许外壳关机使能;
所述第二关机单元设置成: 在用户选择关机并设置外壳关机模式的使能状态为打开时, 更新所述外 壳关机模式的使能状态, 并执行系统断电保护流程及快速关机流程;
在用户选择取消时忽略本次终端外壳拆卸事件; 以及
在用户选择仅这一次允许外壳关机使能时执行系统断电保护流程及快速 关机流程。
优选地, 所述终端还包括:
记录单元, 其设置成记录本次终端外壳拆卸事件中执行的操作。
本发明提供一种基于终端外壳的关机方法及终端, 根据用户必先取下的 外壳的状态, 进行预先判断和执行软件控制下的系统保护措施和快速关机流 程, 这样可以避免等到用户取下电池时断电造成的系统损害, 又能达到避免 用户误关机和减少等待时间的效果, 从而提供给用户一个可选的新式关机途 径。
附图概述
图 1是本发明实施例的终端的示意图; 图 2是本发明实施例的关机模块的示意图;
图 3为本发明的基于终端外壳的关机方法的流程图;
图 4为本发明实施例的基于终端外壳的关机方法的流程图。 本发明的较佳实施方式
本发明的目的在于提供一种基于终端外壳的关机方法及装置, 该终端外 壳主要是指当用户需要拔掉便携终端供电电源时必须先要取下的部分, 例如 电池后盖。 当用户打算拔电池快速关机时, 本发明根据用户必先取下的外壳 的状态, 进行预先判断并执行软件控制下的系统保护措施和快速关机流程, 这样可以避免等到用户取下电池时断电造成的系统损害, 又能达到避免用户 误关机和减少等待时间的效果, 从而提供给用户一个可选的新式关机途径。
本发明实施例的一种终端, 如图 1所示, 可以包括: 控制模块和关机模 块, 其中,
控制模块设置成检测到终端外壳拆卸事件后, 触发关机模块;
关机模块设置成在受触发后, 执行终端外壳拆卸事件对应的关机流程。 其中, 所述控制模块检测到终端外壳拆卸事件是通过下面方式实现的: 检测到当前记录的外壳状态为已安装, 且所述终端外壳覆盖的终端内部 的光照强度大于预设门限值。
在一优选实施例中, 控制模块可设置成向关机模块上报本终端外壳的安 装事件指示, 首先, 预设用于判断终端外壳拆卸状态的门限 1和判断外壳安 装状态的门限 2, 在终端外壳已安装的情况下, 当检测到目标值大于该预设 门限 1时, 上报外壳拆卸事件指示, 当检测到目标值小于该预设门限 2时, 上报外壳安装事件指示。
其中, 检测目标值依据外壳状态检测方法不同而变, 本实施例优选光传 感器芯片作为检测元件, 该芯片放于内部电路板上, 其光线接收窗口正对待 检测的目标外壳, 该芯片周期性测量所接收的光强度, 并转化为模数转换器 ( Analog to Digital Converter, ADC )釆样值。 当外壳安装上, 光线被遮挡, 釆样所得的 ADC值很低; 反之, 当外壳拆卸时, 釆样所得的 ADC值明显变 大。
优选用光传感器作为检测元件,一般对终端外壳无额外要求, 实施简单。 本实施例优选光传感器芯片作为检测元件, 但也可以使用其它的检测元 件进行检测, 例如使用霍尔传感器进行磁铁感应检测, 或者利用外壳卡扣影 响主板电路的开断状态等。
在一优选实施例中, 如图 2所示, 所述关机模块可以包括: 判断单元、 第一关机单元、 显示单元、 输入单元和第二关机单元, 其中,
判断单元设置成: 在判断外壳关机模式的使能状态为打开状态时, 触发 第一关机单元; 以及在判断外壳关机模式的使能状态为未设置状态时, 触发 显示单元;
所述第一关机单元设置成在受触发后, 执行系统断电保护流程及快速关 机流程;
所述显示单元设置成在受触发后, 显示关机指示选项。
输入单元设置成若在预定时间内接收到用户输入所述显示单元显示的关 机指示选项, 则触发第二关机单元;
所述第二关机单元设置成根据用户选择的关机指示选项执行相应的操 作。
所述关机指示选项包括以下选择中的一种或多种:
第一种, 关机并设置外壳关机模式的使能状态为打开, 用户选择输入这 一选项后, 所述第二关机单元更新所述外壳关机模式的使能状态, 并执行系 统断电保护流程及快速关机流程;
第二种, 取消, 用户选择输入这一选项后, 所述第二关机单元忽略本次 终端外壳拆卸事件;
第三种, 仅这一次允许外壳关机使能, 用户选择输入这一选项后, 所述 第二关机单元执行系统断电保护流程及快速关机流程。
在一优选实施例中, 关机模块还可以包括: 记录单元, 可用于记录本次 终端外壳拆卸事件中执行的操作。 图 3为本发明的基于终端外壳的关机方法的流程图, 如图 3所示, 本方 法包括:
S10、 检测到终端外壳拆卸事件;
S20、 触发终端外壳拆卸事件对应的关机流程。
在步骤 S20中, 若判断外壳关机模式的使能状态为打开状态, 则执行系 统断电保护流程及快速关机流程; 若判断外壳关机模式的使能状态为未设置 状态, 则显示关机指示选项, 若在预定时间内接收到用户选择的关机指示选 项, 则根据用户选择的关机指示选项执行相应的操作。
其中, 所述关机指示选项包括以下选择中的一种或多种:
第一种, 关机并设置外壳关机模式的使能状态为打开, 用户选择这一选 项后, 所述根据用户选择的关机指示选项执行相应的操作具体为: 更新所述 外壳关机模式的使能状态, 并执行系统断电保护流程及快速关机流程;
第二种, 取消, 用户选择这一选项后, 所述根据用户选择的关机指示选 项执行相应的操作具体为: 忽略本次事件;
第三种, 仅这一次允许外壳关机使能, 用户选择这一选项后, 所述根据 用户选择的关机指示选项执行相应的操作具体为: 执行系统断电保护流程及 快速关机流程。
其中, 检测外壳状态可以通过设置光传感器或者与外壳状态相关的电压 传感器等来实现。
与现有技术相比较, 本发明釆用了新的关机触发方式, 增加系统掉电保 护和快速关机处理流程, 提供给用户一个可选的新式关机体验。
下面将结合附图对本发明的实施例进行详细说明。 需要说明的是, 在不 冲突的情况下, 本申请中的实施例及实施例中的特征可以相互任意组合。
如图 4所示, 本发明实施例的基于终端外壳的关机方法的流程图, 包含 以下步骤:
步骤 101 , 开机初始化外壳关机模式变量;
本实施例中的外壳关机模式变量可以包括: a )使能状态, 包含三种: 打开、 关闭和未设置。 读取存储器中预先设置 的使能状态数据进行初始化, 如果没有则釆用程序默认的状态值;
b )初始外壳状态, 包括外壳已安装和未安装两种, 将影响后续事件的有 效性判断。 外壳状态可以根据感光情况, 或利用其他检测外壳是否安装的装 置来获取。
步骤 102, 接收和更新外壳状态变化事件;
该外壳状态变化事件可以由关机模块定时监控, 也可以通过中断机制上 报。 记录外壳状态变化事件是为了给后续的判断、 执行和状态更新逻辑提供 依据。
步骤 103 , 根据预设逻辑和外壳状态变化事件判断执行关机流程; 具体地, 进行下一步处理方式推断, 需要考虑各种用户使用场景, 如表 1所示, 如下:
场景 1 : 使能状态为打开、 当前记录的外壳状态为已安装的场景, 若接 收到外壳拆卸事件, 则执行步骤 104; 若接收到外壳安装事件, 则不作处理; 场景 2: 使能状态为未设置、 当前记录的外壳状态为已安装的场景下, 若接收到外壳拆卸事件, 则执行步骤 105; 若接收到外壳安装事件, 则不作 处理;
场景 3 : 在当前的外壳状态为未安装、 使能状态为打开或未设置的场景 下, 若接收到外壳安装事件, 则执行步骤 108, 若未接收到则不作处理。
在使能状态为关闭的场景下, 不管当前的外壳状态如何, 接收到外壳状 态事件如何, 都不作处理。 表 1
当前外壳 使能状态 接收事件 处理
状态
已安装 打开 拆卸 系统断电保护并快速关机
安装 忽略
关闭 拆卸 忽略
安装 忽略 未设置 拆卸 提示用户给出关机指示
安装 忽略
未安装 打开 拆卸 忽略
安装 重新初始化状态变量
关闭 拆卸 忽略
安装 忽略
未设置 拆卸 忽略
安装 重新初始化状态变量 步骤 104, 执行系统断电保护流程及快速关机流程;
很多便携终端都是电池供电, 必须先取下电池外壳, 然后拔掉电池, 以 便快速关机, 或进而更换用户卡等, 这一步处理目的是软件控制达到模拟用 户拨电池关机结果, 并防止用户紧接着拔电池造成对系统的破坏冲击。
断电保护措施包括: 锁定文件和存储系统服务, 已在接受的服务请求仍 允许操作。 快速关机则在等待上述服务请求完成后, 执行硬件关机流程, 不 包含通常的关机流程中协议状态释放过程。 因该处理时间很短, 一般均可在 用户取下外壳到拔电池间完成, 所以可以有效保证下次上电启动时系统的完 整性。
步骤 105 , 显示关机指示选项, 以供用户选择, 并可以启动超时选择定 时器。
该关机提示选项可以包括: 关机并设置使能外壳关机模式、 取消 (即忽 略本次事件) 、 仅这一次允许外壳关机使能等选项。 步骤 106, 根据用户选择的选项执行相应的处理;
具体地, 若用户选择 "仅这一次允许外壳关机使能" , 则接收到用户的 选择的信息后, 转向执行步骤 104, 若用户选择 "关机并设置使能外壳关机 模式" 的选项, 用户可以进一步根据提示设置外壳关机模式, 例如, 设置外 壳关机使能为打开, 或设置外壳关机使能的有效次数, 然后终端可以根据用 户的设置更新外壳关机使能状态, 即把使能打开设置写入存储器, 以便下次 启动时初始化该使能状态变量, 然后转向执行步骤 104; 若用户选择 "取消" 或者超时, 则忽略本次事件, 转向执行步骤 102。
步骤 107 , 重新初始化状态变量, 这里实际上仅仅对初始外壳状态进行 修正, 而使能状态跟存储的是一致的, 然后转向执行步骤 102;
本实施例中, 可以进一步执行事件记录, 例如, 记录外壳拆卸或安装的 时间、 记录外壳拆卸后是否执行关机流程、 记录使能状态的设置情况等, 已 备后续用户对自己外壳使用习惯进行检查, 为本外壳关机模式使能设置提供 数据参考。
本领域普通技术人员可以理解上述方法中的全部或部分步骤可通过程序 来指令相关硬件完成, 所述程序可以存储于计算机可读存储介质中, 如只读 存储器、 磁盘或光盘等。 可选地, 上述实施例的全部或部分步骤也可以使用 一个或多个集成电路来实现。 相应地, 上述实施例中的各模块 /单元可以釆用 硬件的形式实现, 也可以釆用软件功能模块的形式实现。 本发明不限制于任 何特定形式的硬件和软件的结合。
以上仅为本发明的优选实施例, 当然, 本发明还可有其他多种实施例, 在不背离本发明精神及其实质的情况下, 熟悉本领域的技术人员当可根据本 发明作出各种相应的改变和变形, 但这些相应的改变和变形都应属于本发明 所附的权利要求的保护范围。
工业实用性 本发明提供一种基于终端外壳的关机方法及终端, 根据用户必先取下的 外壳的状态, 进行预先判断和执行软件控制下的系统保护措施和快速关机流 程, 与现有技术相比, 本发明可以避免等到用户取下电池时断电造成的系统 损害, 又能达到避免用户误关机和减少等待时间的效果, 从而提供给用户一 个可选的新式关机途径。

Claims

权 利 要 求 书
1、 一种基于终端外壳的关机方法, 包括:
检测到终端外壳拆卸事件后, 触发终端外壳拆卸事件对应的关机流程。
2、 如权利要求 1所述的方法, 其中, 所述检测到终端外壳拆卸事件是通 过下面方式实现的:
检测到当前记录的外壳状态为已安装, 且所述终端外壳覆盖的终端内部 的光照强度大于预设门限值。
3、 如权利要求 1所述的方法, 其中, 所述关机流程包括: 若判断外壳关 机模式的使能状态为打开状态, 则执行系统断电保护流程及快速关机流程。
4、 如权利要求 1所述的方法, 其中, 所述关机流程包括:
若判断外壳关机模式的使能状态为未设置状态, 则显示关机指示选项, 若在预定时间内接收到用户选择的关机指示选项, 则根据用户选择的关机指 示选项执行操作。
5、 如权利要求 4所述的方法, 其中, 所述关机指示选项包括以下选项中 的一种或多种: 关机并设置外壳关机模式的使能状态为打开; 取消; 以及仅 这一次允许外壳关机使能;
根据用户选择的关机指示选项执行操作的步骤包括:
若用户选择关机并设置外壳关机模式的使能状态为打开, 则更新所述外 壳关机模式的使能状态, 并执行系统断电保护流程及快速关机流程;
若用户选择取消, 则忽略本次终端外壳拆卸事件; 以及
若用户选择仅这一次允许外壳关机使能, 则执行系统断电保护流程及快 速关机流程。
6、 如权利要求 1所述的方法, 还包括: 在触发终端外壳拆卸事件对应的 关机流程的过程中, 记录本次终端外壳拆卸事件中执行的操作。
7、 一种终端, 包括:
控制模块, 其设置成在检测到终端外壳拆卸事件后触发关机模块; 以及 关机模块, 其设置成在受触发后, 执行终端外壳拆卸事件对应的关机流 程。
8、 如权利要求 7所述的终端, 其中, 所述控制模块是设置成通过如下方 式检测到终端外壳拆卸事件:
检测到当前记录的外壳状态为已安装, 且所述终端外壳覆盖的终端内部 的光照强度大于预设门限值。
9、 如权利要求 7所述的终端, 其中, 所述关机模块包括: 判断单元、 第 一关机单元和显示单元;
判断单元设置成: 在判断外壳关机模式的使能状态为打开状态时, 触发 第一关机单元; 以及在判断所述外壳关机模式的使能状态为未设置状态时, 触发显示单元;
所述第一关机单元设置成在受触发后, 执行系统断电保护流程及快速关 机流程;
所述显示单元设置成在受触发后, 显示关机指示选项。
10、 如权利要求 9所述的终端, 其中,
所述关机指示选项包括以下选项中的一种或多种: 关机并设置外壳关机 模式的使能状态为打开; 取消; 以及仅这一次允许外壳关机使能;
所述关机模块还包括: 输入单元和第二关机单元;
所述输入单元设置成若在预定时间内接收到用户选择的关机指示选项, 则触发第二关机单元;
所述第二关机单元设置成:
在用户选择关机并设置外壳关机模式的使能状态为打开时, 更新所述外 壳关机模式的使能状态, 并执行系统断电保护流程及快速关机流程;
在用户选择取消时忽略本次终端外壳拆卸事件; 以及
在用户选择仅这一次允许外壳关机使能时执行系统断电保护流程及快速 关机流程。
11、 如权利要求 7所述的终端, 还包括:
记录单元, 其设置成记录在本次终端外壳拆卸事件中执行的操作。
PCT/CN2011/071957 2011-01-10 2011-03-18 一种基于终端外壳的关机方法及终端 WO2012094848A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201110004037.8A CN102098385B (zh) 2011-01-10 2011-01-10 一种基于终端外壳的关机方法及终端
CN201110004037.8 2011-01-10

Publications (1)

Publication Number Publication Date
WO2012094848A1 true WO2012094848A1 (zh) 2012-07-19

Family

ID=44131243

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2011/071957 WO2012094848A1 (zh) 2011-01-10 2011-03-18 一种基于终端外壳的关机方法及终端

Country Status (2)

Country Link
CN (1) CN102098385B (zh)
WO (1) WO2012094848A1 (zh)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103246573B (zh) * 2012-02-03 2017-03-01 联想(北京)有限公司 一种电子设备控制方法及电子设备
CN103794023B (zh) * 2012-11-02 2016-04-13 北京计算机技术及应用研究所 一种低功耗防拆报警装置
US9664991B1 (en) * 2016-03-18 2017-05-30 Qisda Corporation Projector with light pollution shield function and light pollution shielding method thereof
CN107172280A (zh) * 2017-05-16 2017-09-15 山东中磁视讯股份有限公司 一种防拆系统
CN110057021B (zh) * 2019-04-22 2021-08-24 宁波奥克斯电气股份有限公司 一种拆洗空调的断电控制方法及装置
CN110966718A (zh) * 2019-11-12 2020-04-07 珠海格力电器股份有限公司 一种空调防触电保护的控制方法、计算机可读存储介质及空调
CN112015255A (zh) * 2020-07-08 2020-12-01 深圳市智微智能科技股份有限公司 一种无输入设备下快速关机的方法及系统

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005073224A (ja) * 2003-08-06 2005-03-17 Hiroshi Kumagai 情報端末機器の電源オンオフシステムと記録媒体
CN101080058A (zh) * 2007-06-26 2007-11-28 深圳市杰特电信控股有限公司 移动电话的自动关机方法
CN201303424Y (zh) * 2008-12-11 2009-09-02 深圳华为通信技术有限公司 一种具有保护装置的移动终端
CN101727272A (zh) * 2009-11-20 2010-06-09 华为终端有限公司 触摸屏终端开关机的方法及终端

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005073224A (ja) * 2003-08-06 2005-03-17 Hiroshi Kumagai 情報端末機器の電源オンオフシステムと記録媒体
CN101080058A (zh) * 2007-06-26 2007-11-28 深圳市杰特电信控股有限公司 移动电话的自动关机方法
CN201303424Y (zh) * 2008-12-11 2009-09-02 深圳华为通信技术有限公司 一种具有保护装置的移动终端
CN101727272A (zh) * 2009-11-20 2010-06-09 华为终端有限公司 触摸屏终端开关机的方法及终端

Also Published As

Publication number Publication date
CN102098385B (zh) 2014-04-09
CN102098385A (zh) 2011-06-15

Similar Documents

Publication Publication Date Title
WO2012094848A1 (zh) 一种基于终端外壳的关机方法及终端
TWI576692B (zh) 可攜式電子設備
EP3001653B1 (en) Method and device for starting debugging port of terminal, and terminal
KR101641174B1 (ko) 셧다운 상태에서의 알람의 구현방법, 이동 단말기, 프로그램 및 기록매체
KR100951830B1 (ko) 정보 처리 장치, 전원 제어 방법 및 컴퓨터 판독가능한 기록 매체
US20120265974A1 (en) Method and Device for Resetting Intelligent Terminal
US8868940B2 (en) Systems apparatus and method for blocking power transition in response to a comparision with present system state
EP3186742B1 (en) System and method for improved security for a processor in a portable computing device (pcd)
EP2857929B1 (en) Information processing apparatus, information processing system, and power control method
WO2015058410A1 (zh) 一种关机门限电压的调节方法、开机方法及其电子设备
US8571597B2 (en) Mobile information terminal executing application program
KR20080071979A (ko) 컴퓨팅 장치에서의 시스템 및 방법, 및 운영 체제 및/또는펌웨어를 저장하는 하나 이상의 컴퓨터 판독가능 매체
TW201516648A (zh) 移動裝置低電量開機控制方法及系統
TW201626153A (zh) 智慧電子裝置、智慧電子裝置喚醒螢幕的系統與方法
EP2818971B1 (en) Electronic device, method for controlling electronic device, and program
US20060068855A1 (en) Cellular phone and operational mode switching method thereof
CN105159722B (zh) Rtc唤醒系统的方法及计算机
TWI502351B (zh) 電子裝置及其防止資料丟失的方法
CN103024543A (zh) 机顶盒低功耗实现方法和实现装置
TWI557551B (zh) 電子裝置及其喚醒方法
CN106101406B (zh) 一种基于移动终端的关机闹铃触发处理方法及移动终端
TW201413445A (zh) 用於電腦主機板的自我修復裝置
CN106101838B (zh) 快速开机中ci模块的处理方法和数字接收终端
JP2012138088A (ja) 情報処理装置、電源制御方法及びプログラム
JP2011138231A (ja) 電子機器及びプログラム

Legal Events

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

Ref document number: 11855661

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 11855661

Country of ref document: EP

Kind code of ref document: A1