WO2019061056A1 - Charging protection method, charging protection apparatus and electronic device - Google Patents

Charging protection method, charging protection apparatus and electronic device Download PDF

Info

Publication number
WO2019061056A1
WO2019061056A1 PCT/CN2017/103603 CN2017103603W WO2019061056A1 WO 2019061056 A1 WO2019061056 A1 WO 2019061056A1 CN 2017103603 W CN2017103603 W CN 2017103603W WO 2019061056 A1 WO2019061056 A1 WO 2019061056A1
Authority
WO
WIPO (PCT)
Prior art keywords
electronic device
charging
instruction
protection
user
Prior art date
Application number
PCT/CN2017/103603
Other languages
French (fr)
Chinese (zh)
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 深圳传音通讯有限公司
Priority to PCT/CN2017/103603 priority Critical patent/WO2019061056A1/en
Publication of WO2019061056A1 publication Critical patent/WO2019061056A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J7/00Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries

Abstract

A charging protection method, a charging protection apparatus and an electronic device. The charging protection method comprises: determining whether an electronic device is in a charging state (S10); when the electronic device is in a charging state, switching the electronic device to a protection mode (S20); determining whether the electronic device receives an exit instruction (S30); and when the exit instruction is received, exiting the protection mode based on the exit instruction (S40). When an electronic device is charged, the electronic device is switched to a protection mode, so as to effectively improve the security thereof. Moreover, the electronic device can also exit the protection mode based on an exit instruction, thereby increasing the flexibility thereof and also greatly improving the user experience.

Description

充电保护方法、充电保护装置及电子设备Charging protection method, charging protection device and electronic device 技术领域Technical field
本发明涉及通信技术领域,特别涉及一种充电保护方法、充电保护装置及电子设备。The present invention relates to the field of communications technologies, and in particular, to a charging protection method, a charging protection device, and an electronic device.
背景技术Background technique
随着技术的发展和进步,移动终端(如手机)已经非常普及,移动终端的出现为人们的生活提供了极大的便利。With the development and advancement of technology, mobile terminals (such as mobile phones) have become very popular, and the emergence of mobile terminals has greatly facilitated people's lives.
如今,智能手机已经成为人手一部的标配,然而,人们在享受智能手机带来便利的同时,往往被诸多手机安全问题困扰,特别人身安全更为重要,虽然现在技术上对电池进行充电保护,但对于长期白天黑夜无节制的青少年人群来说,渐渐会淡忘自身的安全意识。Nowadays, smart phones have become the standard for people. However, while people enjoy the convenience of smart phones, they are often troubled by many mobile phone security issues. Especially personal safety is more important, although the battery is now technically protected. However, for the long-term day and night unconscious youth crowd, gradually forget their own safety awareness.
由于智能手机上的应用越来越多,智能手机的电池容量已经远远不能满足日常的需要,通常来讲,智能手机续航能力不到一天,所以需要每天对其进行充电,频繁的充放电给人们的用电安全带来了很多隐患。近年来,手机在充电过程中引发爆炸伤人和触电等意外时常发生。究其原因主要有以下几种原因:1)、充电过程中充电器和手机温度过高,导致锂电池瞬时放电产生大量电流,进而引发爆炸伤人意外。2)、由于充电方式不当,导致电池内部短路产生过电压过电流等烧坏手机电路板。3)、充电器绝缘老化、充电器长期不拔,边充电边玩儿手机,都易引发的意外事故。Due to the increasing number of applications on smartphones, the battery capacity of smartphones is far from meeting the daily needs. Generally speaking, smartphones have less than one day of battery life, so they need to be charged every day, frequently charging and discharging. People's electricity safety brings many hidden dangers. In recent years, accidents such as explosions, injuries, and electric shocks have occurred in mobile phones during charging. There are several reasons for this: 1) The temperature of the charger and the mobile phone is too high during the charging process, causing a large amount of current to be generated by the instantaneous discharge of the lithium battery, which may cause an explosion and accident. 2) Due to improper charging method, the internal short circuit of the battery generates overvoltage and overcurrent, which burns the mobile phone circuit board. 3), the charger insulation aging, the charger is not pulled for a long time, while charging while playing mobile phones, are easy to cause accidents.
在充电状态下使用各种移动终端而导致电池爆炸等现象屡见不鲜,这对于移动终端的安全性提出了更高的要求。目前,手机充电通常将手机充电器插头插入室内电源插孔充电,或者采用移动电源充电器为手机充电。通常,有电话进来时,人们习惯没有拔掉电源就直接接听电话,或者边充电边玩游戏等等,此类在手机充电的同时使用手机的行为将会导致充电器全负荷工作,引起充电器损坏漏电,严重时甚至致使使用者被电击身亡。It is not uncommon to use a variety of mobile terminals in a state of charge to cause a battery explosion, which places higher demands on the security of the mobile terminal. At present, mobile phone charging usually plugs the mobile phone charger plug into the indoor power jack to charge, or uses the mobile power charger to charge the mobile phone. Usually, when a call comes in, people are accustomed to answering the call without unplugging the power, or playing games while charging, etc. The use of the mobile phone while charging the mobile phone will cause the charger to work at full load, causing the charger. Damage to the leakage, even in the case of serious damage to the user.
接听电话时,电波对手机充电控制系统和充电器的控制系统产生干扰,负载加大加上电波干扰充电控制模块,手机贴着耳朵,一旦控制模块受扰失衡电压升高漏电,电流从大脑走过,致使脑细胞非正常死亡。 When answering the call, the radio wave interferes with the control system of the mobile phone charging control system and the charger. The load increases and the radio wave interferes with the charging control module. The mobile phone sticks to the ear. Once the control module is disturbed, the unbalanced voltage rises and the leakage occurs. The current flows from the brain. Over, causing abnormal brain cell death.
安全用电意识差、没有形成良好的接听电话时拔掉充电电源的习惯会带来人身伤害。因此,如何有效地避免移动终端在充电状态下的安全隐患成为本领域技术人员亟待解决的问题之一。The habit of unplugging the charging power when there is a poor sense of safe use of electricity and causing a good answering call can cause personal injury. Therefore, how to effectively avoid the security risk of the mobile terminal in the charging state becomes one of the problems to be solved by those skilled in the art.
发明的公开Disclosure of invention
本发明的目的是提供一种充电保护方法、充电保护装置及电子设备;在电子设备进行充电时将所述电子设备切换为保护模式,以有效的提高其安全性;同时,还可以基于退出指令退出所述保护模式,从而提高了其灵活性,同时大大提高了用户的体验。An object of the present invention is to provide a charging protection method, a charging protection device, and an electronic device; when the electronic device performs charging, the electronic device is switched to a protection mode to effectively improve its security; and at the same time, it can also be based on an exit instruction. Exiting the protected mode increases flexibility and greatly enhances the user experience.
为实现上述目的,本发明提供一种充电保护方法,包括:判断电子设备是否处于充电状态;当所述电子设备处于充电状态时,将所述电子设备切换为保护模式;判断所述电子设备是否接收到退出指令;当接收到退出指令时,基于所述退出指令退出所述保护模式。To achieve the above object, the present invention provides a charging protection method, including: determining whether an electronic device is in a charging state; switching the electronic device to a protection mode when the electronic device is in a charging state; determining whether the electronic device is An exit instruction is received; when the exit instruction is received, the protected mode is exited based on the exit instruction.
所述充电保护方法还包括:当基于所述退出指令退出所述保护模式时,将所述电子设备切换为锁屏状态。The charging protection method further includes: switching the electronic device to a lock screen state when the protection mode is exited based on the exit instruction.
所述充电保护方法还包括:在所述电子设备处于锁屏状态时,基于输入指令对所述电子设备进行解锁。The charging protection method further includes: unlocking the electronic device based on an input instruction when the electronic device is in a lock screen state.
所述判断电子设备是否处于充电状态的步骤包括:当所述电子设备通过USB线与其他设备相连时,基于充电指令将所述电子设备切换为充电状态;或者基于数据传输指令将所述电子设备与其他设备进行数据传输。The step of determining whether the electronic device is in a charging state comprises: when the electronic device is connected to another device through a USB cable, switching the electronic device to a charging state based on a charging instruction; or using the electronic device based on a data transmission instruction Data transfer with other devices.
所述充电保护方法还包括:当所述电子设备处于保护模式时,对所述保护模式进行提示。The charging protection method further includes prompting the protection mode when the electronic device is in a protection mode.
本发明还提供一种充电保护装置,包括:判断模块,用于判断电子设备是否处于充电状态;指令接收模块,用于接收退出指令;模式切换模块,用于当所述电子设备处于充电状态时,将所述电子设备切换为保护模式;或者在接收到退出指令时,基于所述退出指令退出所述保护模式。The present invention also provides a charging protection device, comprising: a determining module, configured to determine whether an electronic device is in a charging state; an instruction receiving module, configured to receive an exit instruction; and a mode switching module, configured to: when the electronic device is in a charging state Switching the electronic device to a protection mode; or upon exiting the exit command, exiting the protection mode based on the exit instruction.
所述模式切换模块还用于当基于所述退出指令退出所述保护模式时,将所述电子设备切换为锁屏状态。The mode switching module is further configured to switch the electronic device to a lock screen state when exiting the protection mode based on the exit instruction.
所述充电保护装置还包括:解锁模块;所述指令接收模块还用于接收输入指令,所述解锁模块用于基于输入指令对所述电子设备进行解锁。 The charging protection device further includes: an unlocking module; the instruction receiving module is further configured to receive an input instruction, and the unlocking module is configured to unlock the electronic device based on the input instruction.
所述充电保护装置还包括:提示模块,所述提示模块用于当所述电子设备处于保护模式时,对所述保护模式进行提示。The charging protection device further includes: a prompting module, configured to prompt the protection mode when the electronic device is in a protection mode.
本发明还提供一种电子设备,包括如前述任一项所述的充电保护装置。The present invention also provides an electronic device comprising the charging protection device according to any of the preceding claims.
综上所述,本发明所述的充电保护方法、充电保护装置及电子设备,与现有技术相比,具有以下优点:In summary, the charging protection method, the charging protection device and the electronic device according to the present invention have the following advantages compared with the prior art:
在电子设备进行充电时将所述电子设备切换为保护模式,以有效的提高其安全性;同时,还可以基于退出指令退出所述保护模式,从而提高了其灵活性,同时大大提高了用户的体验。When the electronic device performs charging, the electronic device is switched to the protection mode to effectively improve the security thereof; at the same time, the protection mode can be exited based on the exit instruction, thereby improving flexibility and greatly improving the user's Experience.
另外,在退出保护模式时,将所述电子设备切换为锁屏状态,从而有效的避免了误操作,进一步提高了电子设备的安全性。In addition, when the protection mode is exited, the electronic device is switched to the lock screen state, thereby effectively avoiding erroneous operations and further improving the security of the electronic device.
附图的简要说明BRIEF DESCRIPTION OF THE DRAWINGS
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图进行简单介绍,显而易见的,下面描述中的附图是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the embodiments or the prior art description will be briefly described below. It is obvious that the drawings in the following description are Some of the embodiments of the invention may be obtained by those of ordinary skill in the art in view of the drawings without departing from the scope of the invention.
图1为本发明中的电子设备的一实现方式的结构示意图;1 is a schematic structural diagram of an implementation manner of an electronic device according to the present invention;
图2为本发明中的电子设备的另一实现方式的结构示意图;2 is a schematic structural diagram of another implementation manner of an electronic device according to the present invention;
图3为本发明中的电子设备的保护模式界面的示意图;3 is a schematic diagram of a protection mode interface of an electronic device in the present invention;
图4为本发明中的充电保护方法的一实现方式的流程示意图。FIG. 4 is a schematic flow chart of an implementation manner of a charging protection method in the present invention.
实现本发明的最佳方式The best way to implement the invention
为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention will be clearly and completely described in conjunction with the drawings in the embodiments of the present invention. It is a partial embodiment of the invention, and not all of the embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
需要说明的是,在本文中,诸如“第一”、“第二”、“第三”等关系术语(如果存在)仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或 者顺序。应该理解这样使用的术语在适当情况下可以互换,以便这里描述的本发明的实施例,例如能够以除了在这里图示或描述的那些以外的顺序实施。此外,术语“包括”、“包含”、“具有”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者终端设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者终端设备所固有的要素。在没有更多限制的情况下,由语句“包括……”或“包含……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者终端设备中还存在另外的要素。此外,在本文中,“大于”、“小于”、“超过”等理解为不包括本数;“以上”、“以下”、“以内”等理解为包括本数。It should be noted that, herein, relational terms such as "first," "second," "third," and the like, if any, are used merely to distinguish one entity or operation from another. Does not necessarily require or imply any such actual relationship between these entities or operations or Order. It is to be understood that the terms so used are interchangeable, as appropriate, such that the embodiments of the invention described herein can be implemented, for example, in a sequence other than those illustrated or described herein. In addition, the terms "including", "comprising", "having", or any other variants are intended to encompass a non-exclusive inclusion, such that a process, method, article, or terminal device that includes a plurality of elements includes not only those elements but also Includes other elements not explicitly listed, or elements that are inherent to such a process, method, item, or terminal device. An element defined by the phrase "including" or "comprising" does not exclude the presence of additional elements in the process, method, article or terminal device including the element. In addition, in this document, “greater than”, “less than”, “exceeded”, etc. are understood as not including the number; “above”, “below”, “inside”, etc. are understood to include the number.
以下结合图1~图4,以具体地实施例对本发明的技术方案进行详细说明。下面这几个具体的实施例可以相互结合,对于相同或相似的概念或过程可能在某些实施例不再赘述。The technical solutions of the present invention will be described in detail below with reference to FIGS. 1 to 4 in a specific embodiment. The following specific embodiments may be combined with each other, and the same or similar concepts or processes may not be described in some embodiments.
如图1所示,为本发明所提供的电子设备的实现方式一的结构示意图;所述电子设备包括充电保护装置。所述便携式电子设备包括但不限于手持电脑、平板电脑、移动电话、智能手机、媒体播放器、个人数字助理(PDA)等等,还包括其中两项或多项的组合。FIG. 1 is a schematic structural diagram of Embodiment 1 of an electronic device provided by the present invention; the electronic device includes a charging protection device. The portable electronic device includes, but is not limited to, a handheld computer, a tablet computer, a mobile phone, a smart phone, a media player, a personal digital assistant (PDA), and the like, and also includes a combination of two or more of them.
所述电子设备通常包括存储器、存储器控制器、一个或多个处理单元(CPU)、外设接口、RF电路、音频电路、扬声器、麦克风、输入/输出(I/O)子系统、触摸屏、其他输出或控制设备,以及外部端口。这些组件通过一条或多条通信总线或信号线进行通信。应当理解,图1所示的电子设备只是一个实例,具体应用中,电子设备的组件可以比图1所示的设备具有更多或更少的组件,或具有不同的组件配置;并且各种组件可以用硬件、软件或软硬件的组合来实现,包括一个或多个信号处理和/或专用集成电路。The electronic device typically includes a memory, a memory controller, one or more processing units (CPUs), peripheral interfaces, RF circuits, audio circuits, speakers, microphones, input/output (I/O) subsystems, touch screens, others Output or control device, as well as external ports. These components communicate over one or more communication buses or signal lines. It should be understood that the electronic device shown in FIG. 1 is only an example. In a specific application, components of the electronic device may have more or fewer components than the device shown in FIG. 1 or have different component configurations; and various components. This can be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and/or application specific integrated circuits.
所述电子设备还可以包括用于为各种组件供电的电源系统。该电源系统可以包括电源管理系统、一个或多个电源(例如电池、交流电(AC))、充电系统、电源故障检测电路、电源转换器或逆变器、电源状态指示器(例如发光二极管(LED)),以及与便携式设备中的电能生成、管理和分布相关联的其他任何组件。The electronic device can also include a power system for powering various components. The power system can include a power management system, one or more power sources (eg, battery, alternating current (AC)), charging system, power failure detection circuit, power converter or inverter, power status indicator (eg, light emitting diode (LED) )), as well as any other components associated with power generation, management, and distribution in portable devices.
如图1所示,所述电子设备包括充电保护模块;所述充电保护装置包括: 判断模块10、指令接收模块20和模式切换模块30。As shown in FIG. 1 , the electronic device includes a charging protection module; and the charging protection device includes: The determination module 10, the instruction receiving module 20, and the mode switching module 30.
所述判断模块10,用于判断电子设备是否处于充电状态。The determining module 10 is configured to determine whether the electronic device is in a charging state.
目前的电子设备不仅可以连接充电器进行充电,通常还可以通过USB线与其他设备进行连接以实现充电。在所述电子设备连接至充电器进行充电时,所述判断模块10判断出电子设备处于充电状态,从而向模式切换模块30发送信号以使模式切换模块30将电子设备切换为保护模式。Current electronic devices can not only be connected to a charger for charging, but can also be connected to other devices via a USB cable for charging. When the electronic device is connected to the charger for charging, the determining module 10 determines that the electronic device is in a charging state, thereby transmitting a signal to the mode switching module 30 to cause the mode switching module 30 to switch the electronic device to the protection mode.
通常来说,当电子设备通过USB线与其他设备相连时,通常可以实现两种功能:对电子设备进行充电或者实现电子设备与其他设备的数据传输。在本实施例中,当所述电子设备通过USB线与其他设备相连时,可以由用户对上述两个功能进行选择,例如,用户通过指令接收模块20输入充电指令,则所述判断模块10基于充电指令将所述电子设备切换为充电状态;若用户通过指令接收模块20输入数据传输指令,则所述判断模块10基于数据传输指令将所述电子设备与其他设备进行数据传输。Generally speaking, when an electronic device is connected to other devices through a USB cable, two functions can usually be implemented: charging the electronic device or realizing data transmission between the electronic device and other devices. In this embodiment, when the electronic device is connected to other devices through the USB cable, the two functions can be selected by the user. For example, the user inputs a charging instruction through the instruction receiving module 20, and the determining module 10 is based on The charging instruction switches the electronic device to a charging state; if the user inputs a data transmission instruction through the instruction receiving module 20, the determining module 10 performs data transmission between the electronic device and other devices based on the data transmission instruction.
本实施例中,所述指令接收模块可以由触摸屏及其相关的软件、硬件等实现。触摸屏在设备与用户之间同时提供输出接口和输入接口。触摸屏控制器接收/发送来自/去往触摸屏的电信号。该触摸屏则向用户显示可视输出。这个可视输出可以包括文本、图形、视频及其任意组合。某些或所有可视输出可与用户接口对象相对应,在下文中将对它的更多细节进行描述。In this embodiment, the instruction receiving module can be implemented by a touch screen and related software, hardware, and the like. The touch screen provides an output interface and an input interface between the device and the user. The touch screen controller receives/transmits electrical signals from/to the touch screen. The touch screen displays the visual output to the user. This visual output can include text, graphics, video, and any combination thereof. Some or all of the visual output may correspond to a user interface object, as described in more detail below.
在本施例中,对于设备上的预定功能集合操作全部通过触摸屏或触摸板——如果在设备包含触摸板的话——执行。通过将触摸屏和触摸板作为用于设备的操作的主要输入/控制设备来使用,可以减少设备上的物理输入/控制设备(例如按压按钮、拨号盘等等)的数量。在一个实施例中,设备包括触摸屏、触摸板、用于为设备通电/断电以及锁定设备的按压开关、音量调节拨杆按钮,以及用于切振铃配置文件的滑动开关。通过按下按压按钮并且在预定时间间隔将该按钮保持于按下状态,可以使用该按钮来接通/切断设备电源,或者,通过按下按钮并且在经过预定时间间隔之前释放该按钮,可以使用该按钮来锁定设备。在可替换实施例中,设备还可以通过麦克风来接受语音输入,以便激活或停用某些功能。In this embodiment, the operation of the predetermined set of functions on the device is all performed through the touch screen or touch pad - if the device includes a touch pad. By using the touch screen and touchpad as the primary input/control device for operation of the device, the number of physical input/control devices (eg, push buttons, dials, etc.) on the device can be reduced. In one embodiment, the device includes a touch screen, a touch pad, a push switch for powering on/off the device and locking the device, a volume adjustment lever button, and a slide switch for cutting the ringer profile. The button can be used to turn the device on/off by pressing the push button and holding the button in a pressed state for a predetermined time interval, or can be used by pressing the button and releasing the button before a predetermined time interval elapses. This button is used to lock the device. In an alternate embodiment, the device may also accept voice input through a microphone to activate or deactivate certain functions.
触摸屏还基于触觉和/或触知接触来接受用户的输入。该触摸屏形成一个接受用户输入的触摸敏感表面。该触摸屏和触摸屏控制器(连同存储器中任何 相关联的模块和/或指令集一起)检测触摸屏上的接触(以及所述触摸的任何移动或中断),并且将检测到的接触变换成与显示在触摸屏上的诸如一个或多个软按键之类的用户界面对象的交互。在一个示例性实施例中,触摸屏与用户之间的接触点对应于用户的一个或多个手指。该触摸屏可以使用LCD(液晶显示器)技术或LPD(发光聚合物显示器)技术,但在其他实施例中可使用其他显示技术。触摸屏和触摸屏控制器可以使用多种触敏技术中的任何一种来检测接触及其移动或中断,这些触敏技术包括但不限于电容、电阻、红外和声表面波技术,以及其他接近传感器阵列,或用于确定与触摸屏相接触的一个或多个点的其他技术。触摸屏显示来自便携式设备的可视输出,而触敏板不提供可视输出。触摸屏可以具有高于100dpi的分辨率。在一个示例性实施例中,触摸屏可以具有大约168dpi的分辨率。用户可以使用任何适当物体或配件,例如指示笔、手指等等,来接触触摸屏。The touch screen also accepts user input based on tactile and/or tactile contact. The touch screen forms a touch sensitive surface that accepts user input. The touch screen and touch screen controller (along with any of the memory) The associated module and/or set of instructions) detects contact on the touch screen (and any movement or interruption of the touch) and transforms the detected contact into, for example, one or more soft buttons displayed on the touch screen. The interaction of the user interface objects of the class. In an exemplary embodiment, the point of contact between the touch screen and the user corresponds to one or more fingers of the user. The touch screen can use LCD (Liquid Crystal Display) technology or LPD (Light Emitting Polymer Display) technology, although other display technologies can be used in other embodiments. Touch screens and touch screen controllers can detect contact and its movement or interruption using any of a variety of touch sensitive technologies including, but not limited to, capacitive, resistive, infrared, and surface acoustic wave technologies, as well as other proximity sensor arrays. Or other technique for determining one or more points in contact with the touch screen. The touch screen displays visual output from a portable device, while the touch sensitive panel does not provide a visual output. The touch screen can have a resolution higher than 100 dpi. In an exemplary embodiment, the touch screen may have a resolution of approximately 168 dpi. The user can use any suitable object or accessory, such as a stylus, finger, etc., to access the touch screen.
在包括触摸屏的电子设备中,在触摸屏上具有用户界面对象以实现人机交互。用户界面对象是构成设备的用户界面的对象,可以包括但不限于文本、图像、图标、软按键(或“虚拟按钮”)、下拉菜单、单选按钮、复选框、可选列表等等。所显示的用户界面对象可以包括:用于传递信息或是构成用户界面外观的非交互对象、可供用户交互的交互对象或是其组合。In an electronic device including a touch screen, a user interface object is provided on the touch screen to enable human-computer interaction. User interface objects are objects that make up the user interface of the device and may include, but are not limited to, text, images, icons, soft keys (or "virtual buttons"), drop down menus, radio buttons, check boxes, selectable lists, and the like. The displayed user interface objects may include non-interactive objects for communicating information or forming a user interface appearance, interactive objects for user interaction, or a combination thereof.
本实施例中,所述判断模块10可以由事件监测器等硬件及其相关的软件来实现。事件监测器从外围设备接口接收事件信息。事件信息包括关于子事件(例如,作为多触摸手势的一部分的触敏显示器系统上的用户触摸)的信息。外围设备接口传输其从I/O子系统或传感器(诸如接近传感器、加速度计和/或麦克风(通过音频电路))接收的信息。外围设备接口从I/O子系统接收的信息包括来自触敏显示器系统或触敏表面的信息。In this embodiment, the determining module 10 can be implemented by hardware such as an event monitor and related software. The event monitor receives event information from the peripheral interface. The event information includes information about sub-events (eg, user touches on a touch-sensitive display system that is part of a multi-touch gesture). The peripheral device interface transmits information it receives from an I/O subsystem or sensor, such as a proximity sensor, an accelerometer, and/or a microphone (via an audio circuit). The information that the peripheral interface receives from the I/O subsystem includes information from the touch-sensitive display system or touch-sensitive surface.
在一些实施例中,事件监测器以预定间隔向外围设备接口发送请求。作为响应,外围设备接口传输事件信息。在其他实施例中,只在存在重要事件(例如,接收到超过预定噪声阈值和/或长于预定持续时间的输入)时,外围设备接口才传输事件信息。In some embodiments, the event monitor sends a request to the peripheral device interface at predetermined intervals. In response, the peripheral interface transmits event information. In other embodiments, the peripheral device interface transmits event information only when there are significant events (eg, receiving an input that exceeds a predetermined noise threshold and/or is longer than a predetermined duration).
本实施例中,由事件监测器监测电子设备是否与充电器相连;或者监测电子设备是否通过USB线与其他设备相连以进行充电。In this embodiment, the event monitor monitors whether the electronic device is connected to the charger; or monitors whether the electronic device is connected to other devices through the USB cable for charging.
所述指令接收模块20还用于接收退出指令。所述退出指令由用户通过触 摸屏上的触摸操作实现。如图3所示,所述退出指令在触摸屏上进行显示。当然,在其他实施例中,还可以进行其他形式的显示,本发明对此不做限制。The instruction receiving module 20 is further configured to receive an exit instruction. The exit instruction is touched by the user The touch operation on the touch screen is implemented. As shown in FIG. 3, the exit instruction is displayed on the touch screen. Of course, in other embodiments, other forms of display may also be performed, and the present invention is not limited thereto.
所述模式切换模块30,用于当所述电子设备处于充电状态时,将所述电子设备切换为保护模式;或者在接收到退出指令时,基于所述退出指令退出所述保护模式。The mode switching module 30 is configured to switch the electronic device to a protection mode when the electronic device is in a charging state, or to exit the protection mode based on the exit instruction when receiving an exit instruction.
本实施例中,当所述电子设备切换为保护模式时,电子设备只能进行几种操作,并且忽略大部分的用户输入。例如,电子设备仅可以接收用户的退出指令以使得电子设备退出保护模式,而其他的输入操作,如拨打电话、编辑短信等操作均被禁止。也就是说,在保护模式下,电子设备上的大部分应用APP被禁止。In this embodiment, when the electronic device switches to the protection mode, the electronic device can only perform several operations and ignore most of the user input. For example, the electronic device can only receive the user's exit command to cause the electronic device to exit the protected mode, while other input operations, such as making a call, editing a short message, etc., are prohibited. That is to say, in the protected mode, most of the application APP on the electronic device is disabled.
电子设备上的应用APP可以包括安装在设备上的任何应用,包括但不限于浏览器、地址簿、联系人列表、电子邮件、即时消息传递、字处理、键盘模拟、窗口小部件(widget)、使能JAVA的应用、加密、数字权力管理、语音识别、语音复制、位置确定能力(例如由全球定位系统(GPS)提供的)、音乐播放器(该音乐播放器播放保存在一个或多个文件中的音乐,例如保存在MP3或AAC文件中的音乐)等等。An application APP on an electronic device can include any application installed on the device, including but not limited to a browser, address book, contact list, email, instant messaging, word processing, keyboard emulation, widgets, Enable JAVA application, encryption, digital rights management, speech recognition, voice replication, location determination (such as provided by the Global Positioning System (GPS)), music player (the music player is saved in one or more files) Music in, such as music stored in MP3 or AAC files) and so on.
这样,在充电状态下,电子设备处于不被使用的状态,从而有效的提高了电子设备的安全性。Thus, in the state of charge, the electronic device is in a state of being unused, thereby effectively improving the security of the electronic device.
另一方面,电子设备可以基于退出指令退出保护模式,从而在紧急状态下,用户可以选择退出保护模式,从而有效的提高电子设备的灵活性,进一步提高了电子设备的实用性。On the other hand, the electronic device can exit the protection mode based on the exit instruction, so that in the emergency state, the user can choose to exit the protection mode, thereby effectively improving the flexibility of the electronic device and further improving the practicability of the electronic device.
在本实施例中,所述模式切换模块30还用于当基于所述退出指令退出所述保护模式时,将所述电子设备切换为锁屏状态。In this embodiment, the mode switching module 30 is further configured to switch the electronic device to a lock screen state when the protection mode is exited based on the exit instruction.
在锁屏状态下,用户界面处于锁定状态,电子设备通电并可以操作,但是忽略大部分(如果不是全部)用户输入。换言之,设备不会响应于用户输入而采取任何动作,和/或设备将不能响应于用户输入执行预定操作集合。该预定操作集合可以包括用户界面之间的导航,以及预定功能集合的激活或停用。该锁定状态可用于防止无意中或未经授权地使用设备,或者激活或停用设备上的功能。当设备处于锁定状态时,可以说设备被锁定。In the lock screen state, the user interface is locked, the electronic device is powered and operational, but most, if not all, user input is ignored. In other words, the device will not take any action in response to user input, and/or the device will not be able to perform a predetermined set of operations in response to user input. The predetermined set of operations may include navigation between user interfaces, as well as activation or deactivation of a predetermined set of functions. This locked state can be used to prevent inadvertent or unauthorized use of the device, or to activate or deactivate functions on the device. When the device is in the locked state, it can be said that the device is locked.
在某些实施例中,处于锁定状态的设备可以对有限的用户输入集合作出 响应,这些输入包括与将设备转换到用户界面解锁状态的尝试相对应的输入,或是与将设备断电相对应的输入。换句话说,锁定的设备会对与将设备转换到用户界面解锁状态的尝试相对应的用户输入以及与将设备断电相对应的用户输入作出响应,但是不会对与在用户界面之间的导航尝试相对应的用户输入作出响应。应当理解,即使设备忽略用户输入,在检测到输入时,该设备仍可以向用户提供指示所述输入将被忽略的感觉反馈(例如视觉、听觉或振动反馈)。In some embodiments, a device in a locked state can make a limited set of user inputs. In response, these inputs include an input corresponding to an attempt to transition the device to the user interface unlock state, or an input corresponding to powering down the device. In other words, the locked device responds to user input corresponding to an attempt to transition the device to the user interface unlocked state and user input corresponding to powering down the device, but does not interact with the user interface. The navigation attempts to respond to the corresponding user input. It should be understood that even if the device ignores user input, the device can provide the user with sensory feedback (eg, visual, audible, or vibratory feedback) indicating that the input will be ignored when an input is detected.
在设备包含触摸屏的实施例中,当设备锁定时,不能响应于在设备被锁定时与触摸屏的接触而执行预定操作集合,例如用户界面之间的导航。换句话说,当接触被锁定的设备忽略时,可以说该触摸屏被锁定。但是,锁定设备仍可以对触摸屏上的有限种类的接触做出响应。所述有限种类包括被设备确定成与将设备转换到用户界面解锁状态的尝试相对应的接触。In embodiments where the device includes a touch screen, when the device is locked, a predetermined set of operations, such as navigation between user interfaces, cannot be performed in response to contact with the touch screen when the device is locked. In other words, when the contact locked device is ignored, it can be said that the touch screen is locked. However, the locking device can still respond to a limited variety of contacts on the touch screen. The limited category includes contacts that are determined by the device to correspond to an attempt to transition the device to a user interface unlocked state.
本实施例中,在退出保护模式时,将电子设备切换为锁屏状态,只有在正确输入解锁密码的情况下才能对电子设备进行其他操作。这样就有效的避免了由于误操作(特别是对于儿童来说)造成的影响。通过这样的方式,进一步提高了电子设备的安全性。In this embodiment, when the protection mode is exited, the electronic device is switched to the lock screen state, and other operations can be performed on the electronic device only when the unlock password is correctly input. This effectively avoids the effects of misuse (especially for children). In this way, the security of the electronic device is further improved.
图2示出了本发明的电子设备的实现方式二的结构示意图。如图2所示,所述电子设备的充电保护装置还包括:解锁模块40。FIG. 2 is a schematic structural diagram of Embodiment 2 of an electronic device of the present invention. As shown in FIG. 2, the charging protection device of the electronic device further includes: an unlocking module 40.
所述指令接收模块20还用于接收输入指令,所述解锁模块40用于基于输入指令对所述电子设备进行解锁。所述指令接收模块20同样可以由触摸屏来实现,用户通过触摸屏上的用户界面实现输入指令的输入。在接收到正确的输入指令(解锁指令)后,所述触摸模块40将电子设备进行解锁,从而进入解锁状态。The instruction receiving module 20 is further configured to receive an input instruction, and the unlocking module 40 is configured to unlock the electronic device based on the input instruction. The instruction receiving module 20 can also be implemented by a touch screen, and the user inputs an input instruction through a user interface on the touch screen. After receiving the correct input command (unlock command), the touch module 40 unlocks the electronic device to enter an unlocked state.
在用户界面解锁状态中(在下文中称为“解锁状态”),设备处于其正常工作状态,检测并响应那些与用户界面交互相对应的用户输入。处于解锁状态的设备可以被描述成是解锁的设备。解锁的设备检测并响应那些用于在用户界面之间导航、数据输入以及激活或停用功能的用户输入。在设备包含触摸屏的实施例中,解锁的设备检测并且响应那些通过触摸屏执行的与用户界面之间的导航、数据输入,以及激活或停用功能相对应的接触。In the user interface unlocked state (hereinafter referred to as the "unlocked state"), the device is in its normal working state, detecting and responding to user input corresponding to the user interface interaction. A device that is in an unlocked state can be described as a device that is unlocked. The unlocked device detects and responds to user input for navigating between user interfaces, data entry, and activation or deactivation functions. In embodiments where the device includes a touch screen, the unlocked device detects and responds to contacts that are performed via the touch screen with navigation, data input, and activation or deactivation functions.
继续参考图2,所述电子设备的保护装置还包括:提示模块50。所述提示 模块50用于当所述电子设备处于保护模式时,对所述保护模式进行提示。当然,所述提示模块50还可以对其他事件进行提示,如对锁屏状态进行提示等。With continued reference to FIG. 2, the protection device of the electronic device further includes: a prompting module 50. The prompt The module 50 is configured to prompt the protection mode when the electronic device is in the protection mode. Of course, the prompting module 50 can also prompt other events, such as prompting the lock screen state.
本实施例中,所述提示模块50可以通过多种方式进行提示,如通过可视提示进行提示,还可以通过语音、音频等方式进行提示,本发明对此不做限制。在一个实施例中,可以由一个或多个可视提示向用户提供解锁操作的暗示或提醒。这些可视提示可以是文本、图形或其任意组合。当电子设备切换为保护模式时,可以由图3所示的提示界面进行提示,当然,还可以对提示界面做其他的设置或定义,本发明对此不做限制。In this embodiment, the prompting module 50 can perform the prompting in a plurality of manners, such as prompting by using a visual prompt, and also prompting by voice, audio, etc., which is not limited by the present invention. In one embodiment, the user may be provided with a hint or reminder of the unlocking operation by one or more visual cues. These visual cues can be text, graphics, or any combination thereof. When the electronic device is switched to the protection mode, the prompting interface shown in FIG. 3 can be prompted. Of course, other settings or definitions can be made to the prompting interface, which is not limited by the present invention.
在某些实施例中,当设备锁定时发生特定事件的时候,显示可视提示。触发可视提示显示的特定事件可以包括:来话呼叫、收到消息,或是可能需要用户注意的某些其他事件。在某些实施例中,该可视提示还可以在特定的用户输入时显示,例如在用户与菜单按钮交互,用户接触锁定的触摸屏,和/或用户与任何其他输入/控制设备交互的时候。在不显示可视提示时,锁定的设备可以将触摸屏断电(有助于节约电力),或者在触摸屏上显示其他对象,例如屏幕保护程序或是用户可能会感兴趣的信息(例如电池剩余电量、日期和时间、网络强度等等)。In some embodiments, a visual cue is displayed when a particular event occurs while the device is locked. Specific events that trigger a visual cue display may include: an incoming call, a received message, or some other event that may require the user's attention. In some embodiments, the visual cue may also be displayed upon particular user input, such as when the user interacts with a menu button, the user touches a locked touch screen, and/or when the user interacts with any other input/control device. When the visual cue is not displayed, the locked device can power down the touch screen (helping to save power) or display other objects on the touch screen, such as a screen saver or information that the user might be interested in (such as the remaining battery power) , date and time, network strength, etc.).
图4示出了本发明的充电保护的一实现方式的流程图。如图4所示,所述充电保护方法包括:Figure 4 shows a flow chart of an implementation of the charging protection of the present invention. As shown in FIG. 4, the charging protection method includes:
步骤S10,判断电子设备是否处于充电状态;Step S10, determining whether the electronic device is in a charging state;
当所述电子设备处于充电状态时,执行步骤S20,将所述电子设备切换为保护模式;When the electronic device is in a charging state, step S20 is performed to switch the electronic device to a protection mode;
接着执行步骤S30,判断所述电子设备是否接收到退出指令;Then, step S30 is performed to determine whether the electronic device receives the exit instruction;
当接收到退出指令时,执行步骤S40,基于所述退出指令退出所述保护模式。When the exit instruction is received, step S40 is performed to exit the protection mode based on the exit instruction.
具体地,所述步骤S10可由前述电子设备中的判断模块10执行;所述判断电子设备是否处于充电状态的步骤包括:当所述电子设备通过USB线与其他设备相连时,基于充电指令将所述电子设备切换为充电状态;或者基于数据传输指令将所述电子设备与其他设备进行数据传输。Specifically, the step S10 may be performed by the determining module 10 in the foregoing electronic device; the step of determining whether the electronic device is in a charging state comprises: when the electronic device is connected to other devices through a USB cable, based on the charging instruction The electronic device switches to a charging state; or the electronic device performs data transmission with other devices based on a data transmission instruction.
目前的电子设备不仅可以连接充电器进行充电,通常还可以通过USB线与其他设备进行连接以实现充电。在所述电子设备连接至充电器进行充电时, 所述判断模块10判断出电子设备处于充电状态,从而向模式切换模块30发送信号以使模式切换模块30将电子设备切换为保护模式。Current electronic devices can not only be connected to a charger for charging, but can also be connected to other devices via a USB cable for charging. When the electronic device is connected to a charger for charging, The determining module 10 determines that the electronic device is in a charging state, thereby transmitting a signal to the mode switching module 30 to cause the mode switching module 30 to switch the electronic device to the protection mode.
通常来说,当电子设备通过USB线与其他设备相连时,通常可以实现两种功能:对电子设备进行充电或者实现电子设备与其他设备的数据传输。在本实施例中,当所述电子设备通过USB线与其他设备相连时,可以由用户对上述两个功能进行选择,例如,用户通过指令接收模块20输入充电指令,则所述判断模块10基于充电指令将所述电子设备切换为充电状态;若用户通过指令接收模块20输入数据传输指令,则所述判断模块10基于数据传输指令将所述电子设备与其他设备进行数据传输。Generally speaking, when an electronic device is connected to other devices through a USB cable, two functions can usually be implemented: charging the electronic device or realizing data transmission between the electronic device and other devices. In this embodiment, when the electronic device is connected to other devices through the USB cable, the two functions can be selected by the user. For example, the user inputs a charging instruction through the instruction receiving module 20, and the determining module 10 is based on The charging instruction switches the electronic device to a charging state; if the user inputs a data transmission instruction through the instruction receiving module 20, the determining module 10 performs data transmission between the electronic device and other devices based on the data transmission instruction.
所述步骤S20由前述电子设备中的模式切换模块30执行。所述模式切换模块30用于当所述电子设备处于充电状态时,将所述电子设备切换为保护模式;或者在接收到退出指令时,基于所述退出指令退出所述保护模式。The step S20 is performed by the mode switching module 30 in the aforementioned electronic device. The mode switching module 30 is configured to switch the electronic device to a protection mode when the electronic device is in a charging state; or exit the protection mode based on the exit instruction when receiving an exit instruction.
本实施例中,当所述电子设备切换为保护模式时,电子设备只能进行几种操作,并且忽略大部分的用户输入。例如,电子设备仅可以接收用户的退出指令以使得电子设备退出保护模式,而其他的输入操作,如拨打电话、编辑短信等操作均被禁止。也就是说,在保护模式下,电子设备上的大部分应用APP被禁止。In this embodiment, when the electronic device switches to the protection mode, the electronic device can only perform several operations and ignore most of the user input. For example, the electronic device can only receive the user's exit command to cause the electronic device to exit the protected mode, while other input operations, such as making a call, editing a short message, etc., are prohibited. That is to say, in the protected mode, most of the application APP on the electronic device is disabled.
电子设备上的应用APP可以包括安装在设备上的任何应用,包括但不限于浏览器、地址簿、联系人列表、电子邮件、即时消息传递、字处理、键盘模拟、窗口小部件(widget)、使能JAVA的应用、加密、数字权力管理、语音识别、语音复制、位置确定能力(例如由全球定位系统(GPS)提供的)、音乐播放器(该音乐播放器播放保存在一个或多个文件中的音乐,例如保存在MP3或AAC文件中的音乐)等等。An application APP on an electronic device can include any application installed on the device, including but not limited to a browser, address book, contact list, email, instant messaging, word processing, keyboard emulation, widgets, Enable JAVA application, encryption, digital rights management, speech recognition, voice replication, location determination (such as provided by the Global Positioning System (GPS)), music player (the music player is saved in one or more files) Music in, such as music stored in MP3 or AAC files) and so on.
这样,在充电状态下,电子设备处于不被使用的状态,从而有效的提高了电子设备的安全性。Thus, in the state of charge, the electronic device is in a state of being unused, thereby effectively improving the security of the electronic device.
本实施例中,所述步骤30可由电子设备中的指令接收模块20实现,所述指令接收模块20可以由触摸屏及其相关的软件、硬件等实现。触摸屏在设备与用户之间同时提供输出接口和输入接口。触摸屏控制器接收/发送来自/去往触摸屏的电信号。该触摸屏则向用户显示可视输出。这个可视输出可以包括文本、图形、视频及其任意组合。某些或所有可视输出可与用户接口对象 相对应,在下文中将对它的更多细节进行描述。In this embodiment, the step 30 can be implemented by the instruction receiving module 20 in the electronic device, and the instruction receiving module 20 can be implemented by a touch screen and related software, hardware, and the like. The touch screen provides an output interface and an input interface between the device and the user. The touch screen controller receives/transmits electrical signals from/to the touch screen. The touch screen displays the visual output to the user. This visual output can include text, graphics, video, and any combination thereof. Some or all of the visual output can interface with the user interface Correspondingly, more details of it will be described below.
触摸屏还基于触觉和/或触知接触来接受用户的输入。该触摸屏形成一个接受用户输入的触摸敏感表面。该触摸屏和触摸屏控制器(连同存储器中任何相关联的模块和/或指令集一起)检测触摸屏上的接触(以及所述触摸的任何移动或中断),并且将检测到的接触变换成与显示在触摸屏上的诸如一个或多个软按键之类的用户界面对象的交互。在一个示例性实施例中,触摸屏与用户之间的接触点对应于用户的一个或多个手指。该触摸屏可以使用LCD(液晶显示器)技术或LPD(发光聚合物显示器)技术,但在其他实施例中可使用其他显示技术。触摸屏和触摸屏控制器可以使用多种触敏技术中的任何一种来检测接触及其移动或中断,这些触敏技术包括但不限于电容、电阻、红外和声表面波技术,以及其他接近传感器阵列,或用于确定与触摸屏相接触的一个或多个点的其他技术。触摸屏显示来自便携式设备的可视输出,而触敏板不提供可视输出。触摸屏可以具有高于100dpi的分辨率。在一个示例性实施例中,触摸屏可以具有大约168dpi的分辨率。用户可以使用任何适当物体或配件,例如指示笔、手指等等,来接触触摸屏。The touch screen also accepts user input based on tactile and/or tactile contact. The touch screen forms a touch sensitive surface that accepts user input. The touch screen and the touch screen controller (along with any associated modules and/or sets of instructions in the memory) detect contact on the touch screen (and any movement or interruption of the touch) and transform the detected contact into and out of Interaction of user interface objects such as one or more soft keys on the touch screen. In an exemplary embodiment, the point of contact between the touch screen and the user corresponds to one or more fingers of the user. The touch screen can use LCD (Liquid Crystal Display) technology or LPD (Light Emitting Polymer Display) technology, although other display technologies can be used in other embodiments. Touch screens and touch screen controllers can detect contact and its movement or interruption using any of a variety of touch sensitive technologies including, but not limited to, capacitive, resistive, infrared, and surface acoustic wave technologies, as well as other proximity sensor arrays. Or other technique for determining one or more points in contact with the touch screen. The touch screen displays visual output from a portable device, while the touch sensitive panel does not provide a visual output. The touch screen can have a resolution higher than 100 dpi. In an exemplary embodiment, the touch screen may have a resolution of approximately 168 dpi. The user can use any suitable object or accessory, such as a stylus, finger, etc., to access the touch screen.
在包括触摸屏的电子设备中,在触摸屏上具有用户界面对象以实现人机交互。用户界面对象是构成设备的用户界面的对象,可以包括但不限于文本、图像、图标、软按键(或“虚拟按钮”)、下拉菜单、单选按钮、复选框、可选列表等等。所显示的用户界面对象可以包括:用于传递信息或是构成用户界面外观的非交互对象、可供用户交互的交互对象或是其组合。In an electronic device including a touch screen, a user interface object is provided on the touch screen to enable human-computer interaction. User interface objects are objects that make up the user interface of the device and may include, but are not limited to, text, images, icons, soft keys (or "virtual buttons"), drop down menus, radio buttons, check boxes, selectable lists, and the like. The displayed user interface objects may include non-interactive objects for communicating information or forming a user interface appearance, interactive objects for user interaction, or a combination thereof.
本实施例中,所述判断模块10可以由事件监测器等硬件及其相关的软件来实现。事件监测器从外围设备接口接收事件信息。事件信息包括关于子事件(例如,作为多触摸手势的一部分的触敏显示器系统上的用户触摸)的信息。外围设备接口传输其从I/O子系统或传感器(诸如接近传感器、加速度计和/或麦克风(通过音频电路))接收的信息。外围设备接口从I/O子系统接收的信息包括来自触敏显示器系统或触敏表面的信息。In this embodiment, the determining module 10 can be implemented by hardware such as an event monitor and related software. The event monitor receives event information from the peripheral interface. The event information includes information about sub-events (eg, user touches on a touch-sensitive display system that is part of a multi-touch gesture). The peripheral device interface transmits information it receives from an I/O subsystem or sensor, such as a proximity sensor, an accelerometer, and/or a microphone (via an audio circuit). The information that the peripheral interface receives from the I/O subsystem includes information from the touch-sensitive display system or touch-sensitive surface.
在一些实施例中,事件监测器以预定间隔向外围设备接口发送请求。作为响应,外围设备接口传输事件信息。在其他实施例中,只在存在重要事件(例如,接收到超过预定噪声阈值和/或长于预定持续时间的输入)时,外围设备接口才传输事件信息。 In some embodiments, the event monitor sends a request to the peripheral device interface at predetermined intervals. In response, the peripheral interface transmits event information. In other embodiments, the peripheral device interface transmits event information only when there are significant events (eg, receiving an input that exceeds a predetermined noise threshold and/or is longer than a predetermined duration).
本实施例中,由事件监测器监测电子设备是否与充电器相连;或者监测电子设备是否通过USB线与其他设备相连以进行充电。In this embodiment, the event monitor monitors whether the electronic device is connected to the charger; or monitors whether the electronic device is connected to other devices through the USB cable for charging.
所述指令接收模块20还用于接收退出指令。所述退出指令由用户通过触摸屏上的触摸操作实现。如图3所示,所述退出指令在触摸屏上进行显示。当然,在其他实施例中,还可以进行其他形式的显示,本发明对此不做限制。The instruction receiving module 20 is further configured to receive an exit instruction. The exit instruction is implemented by the user through a touch operation on the touch screen. As shown in FIG. 3, the exit instruction is displayed on the touch screen. Of course, in other embodiments, other forms of display may also be performed, and the present invention is not limited thereto.
另一方面,电子设备可以基于退出指令退出保护模式,从而在紧急状态下,用户可以选择退出保护模式,从而有效的提高电子设备的灵活性,进一步提高了电子设备的实用性。On the other hand, the electronic device can exit the protection mode based on the exit instruction, so that in the emergency state, the user can choose to exit the protection mode, thereby effectively improving the flexibility of the electronic device and further improving the practicability of the electronic device.
在本实施例中,所述充电保护方法还可以包括:当基于所述退出指令退出所述保护模式时,将所述电子设备切换为锁屏状态。In this embodiment, the charging protection method may further include: when the protection mode is exited based on the exit instruction, switching the electronic device to a lock screen state.
在锁屏状态下,用户界面处于锁定状态,电子设备通电并可以操作,但是忽略大部分(如果不是全部)用户输入。换言之,设备不会响应于用户输入而采取任何动作,和/或设备将不能响应于用户输入执行预定操作集合。该预定操作集合可以包括用户界面之间的导航,以及预定功能集合的激活或停用。该锁定状态可用于防止无意中或未经授权地使用设备,或者激活或停用设备上的功能。当设备处于锁定状态时,可以说设备被锁定。In the lock screen state, the user interface is locked, the electronic device is powered and operational, but most, if not all, user input is ignored. In other words, the device will not take any action in response to user input, and/or the device will not be able to perform a predetermined set of operations in response to user input. The predetermined set of operations may include navigation between user interfaces, as well as activation or deactivation of a predetermined set of functions. This locked state can be used to prevent inadvertent or unauthorized use of the device, or to activate or deactivate functions on the device. When the device is in the locked state, it can be said that the device is locked.
在某些实施例中,处于锁定状态的设备可以对有限的用户输入集合作出响应,这些输入包括与将设备转换到用户界面解锁状态的尝试相对应的输入,或是与将设备断电相对应的输入。换句话说,锁定的设备会对与将设备转换到用户界面解锁状态的尝试相对应的用户输入以及与将设备断电相对应的用户输入作出响应,但是不会对与在用户界面之间的导航尝试相对应的用户输入作出响应。应当理解,即使设备忽略用户输入,在检测到输入时,该设备仍可以向用户提供指示所述输入将被忽略的感觉反馈(例如视觉、听觉或振动反馈)。In some embodiments, the device in the locked state can respond to a limited set of user inputs, including inputs corresponding to an attempt to transition the device to the unlock state of the user interface, or corresponding to powering down the device. input of. In other words, the locked device responds to user input corresponding to an attempt to transition the device to the user interface unlocked state and user input corresponding to powering down the device, but does not interact with the user interface. The navigation attempts to respond to the corresponding user input. It should be understood that even if the device ignores user input, the device can provide the user with sensory feedback (eg, visual, audible, or vibratory feedback) indicating that the input will be ignored when an input is detected.
在设备包含触摸屏的实施例中,当设备锁定时,不能响应于在设备被锁定时与触摸屏的接触而执行预定操作集合,例如用户界面之间的导航。换句话说,当接触被锁定的设备忽略时,可以说该触摸屏被锁定。但是,锁定设备仍可以对触摸屏上的有限种类的接触做出响应。所述有限种类包括被设备确定成与将设备转换到用户界面解锁状态的尝试相对应的接触。In embodiments where the device includes a touch screen, when the device is locked, a predetermined set of operations, such as navigation between user interfaces, cannot be performed in response to contact with the touch screen when the device is locked. In other words, when the contact locked device is ignored, it can be said that the touch screen is locked. However, the locking device can still respond to a limited variety of contacts on the touch screen. The limited category includes contacts that are determined by the device to correspond to an attempt to transition the device to a user interface unlocked state.
本实施例中,在退出保护模式时,将电子设备切换为锁屏状态,只有在 正确输入解锁密码的情况下才能对电子设备进行其他操作。这样就有效的避免了由于误操作(特别是对于儿童来说)造成的影响。通过这样的方式,进一步提高了电子设备的安全性。In this embodiment, when the protection mode is exited, the electronic device is switched to the lock screen state, only in the Other operations can be performed on the electronic device if the unlock password is correctly entered. This effectively avoids the effects of misuse (especially for children). In this way, the security of the electronic device is further improved.
所述充电保护方法还包括:在所述电子设备处于锁屏状态时,基于输入指令对所述电子设备进行解锁。The charging protection method further includes: unlocking the electronic device based on an input instruction when the electronic device is in a lock screen state.
在用户界面解锁状态中(在下文中称为“解锁状态”),设备处于其正常工作状态,检测并响应那些与用户界面交互相对应的用户输入。处于解锁状态的设备可以被描述成是解锁的设备。解锁的设备检测并响应那些用于在用户界面之间导航、数据输入以及激活或停用功能的用户输入。在设备包含触摸屏的实施例中,解锁的设备检测并且响应那些通过触摸屏执行的与用户界面之间的导航、数据输入,以及激活或停用功能相对应的接触。In the user interface unlocked state (hereinafter referred to as the "unlocked state"), the device is in its normal working state, detecting and responding to user input corresponding to the user interface interaction. A device that is in an unlocked state can be described as a device that is unlocked. The unlocked device detects and responds to user input for navigating between user interfaces, data entry, and activation or deactivation functions. In embodiments where the device includes a touch screen, the unlocked device detects and responds to contacts that are performed via the touch screen with navigation, data input, and activation or deactivation functions.
所述充电保护方法还包括:当所述电子设备处于保护模式时,对所述保护模式进行提示。The charging protection method further includes prompting the protection mode when the electronic device is in a protection mode.
所述提示步骤可以由前述电子设备中的提示模块50执行。所述提示模块50用于当所述电子设备处于保护模式时,对所述保护模式进行提示。当然,所述提示模块50还可以对其他事件进行提示,如对锁屏状态进行提示等。The prompting step can be performed by the prompting module 50 in the aforementioned electronic device. The prompting module 50 is configured to prompt the protection mode when the electronic device is in the protection mode. Of course, the prompting module 50 can also prompt other events, such as prompting the lock screen state.
本实施例中,所述提示模块50可以通过多种方式进行提示,如通过可视提示进行提示,还可以通过语音、音频等方式进行提示,本发明对此不做限制。在一个实施例中,可以由一个或多个可视提示向用户提供解锁操作的暗示或提醒。这些可视提示可以是文本、图形或其任意组合。当电子设备切换为保护模式时,可以由图3所示的提示界面进行提示,当然,还可以对提示界面做其他的设置或定义,本发明对此不做限制。In this embodiment, the prompting module 50 can perform the prompting in a plurality of manners, such as prompting by using a visual prompt, and also prompting by voice, audio, etc., which is not limited by the present invention. In one embodiment, the user may be provided with a hint or reminder of the unlocking operation by one or more visual cues. These visual cues can be text, graphics, or any combination thereof. When the electronic device is switched to the protection mode, the prompting interface shown in FIG. 3 can be prompted. Of course, other settings or definitions can be made to the prompting interface, which is not limited by the present invention.
在某些实施例中,当设备锁定时发生特定事件的时候,显示可视提示。触发可视提示显示的特定事件可以包括:来话呼叫、收到消息,或是可能需要用户注意的某些其他事件。在某些实施例中,该可视提示还可以在特定的用户输入时显示,例如在用户与菜单按钮交互,用户接触锁定的触摸屏,和/或用户与任何其他输入/控制设备交互的时候。在不显示可视提示时,锁定的设备可以将触摸屏断电(有助于节约电力),或者在触摸屏上显示其他对象,例如屏幕保护程序或是用户可能会感兴趣的信息(例如电池剩余电量、日期和时间、网络强度等等)。 In some embodiments, a visual cue is displayed when a particular event occurs while the device is locked. Specific events that trigger a visual cue display may include: an incoming call, a received message, or some other event that may require the user's attention. In some embodiments, the visual cue may also be displayed upon particular user input, such as when the user interacts with a menu button, the user touches a locked touch screen, and/or when the user interacts with any other input/control device. When the visual cue is not displayed, the locked device can power down the touch screen (helping to save power) or display other objects on the touch screen, such as a screen saver or information that the user might be interested in (such as the remaining battery power) , date and time, network strength, etc.).
综上所述,本发明所提供的充电保护方法、充电保护装置及电子设备,在电子设备进行充电时将所述电子设备切换为保护模式,以有效的提高其安全性;同时,还可以基于退出指令退出所述保护模式,从而提高了其灵活性,同时大大提高了用户的体验。另外,在退出保护模式时,将所述电子设备切换为锁屏状态,从而有效的避免了误操作,进一步提高了电子设备的安全性。In summary, the charging protection method, the charging protection device, and the electronic device provided by the present invention switch the electronic device into a protection mode when the electronic device performs charging, so as to effectively improve the security thereof; The exit instruction exits the protected mode, thereby increasing its flexibility and greatly improving the user experience. In addition, when the protection mode is exited, the electronic device is switched to the lock screen state, thereby effectively avoiding erroneous operations and further improving the security of the electronic device.
本领域内的技术人员应明白,上述各实施例可提供为方法、装置、或计算机程序产品。这些实施例可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。上述各实施例涉及的方法中的全部或部分步骤可以通过程序来指令相关的硬件完成,所述的程序可以存储于计算机设备可读取的存储介质中,用于执行上述各实施例方法所述的全部或部分步骤。Those skilled in the art will appreciate that the various embodiments described above can be provided as a method, apparatus, or computer program product. These embodiments may take the form of an entirely hardware embodiment, an entirely software embodiment, or a combination of software and hardware aspects. All or part of the steps involved in the foregoing embodiments may be implemented by a program to instruct related hardware, and the program may be stored in a storage medium readable by a computer device for performing the methods of the foregoing embodiments. All or part of the steps.
上述各实施例是参照根据实施例所述的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到计算机设备的处理器以产生一个机器,使得通过计算机设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The above embodiments are described with reference to flowcharts and/or block diagrams of methods, apparatus (systems), and computer program products according to the embodiments. It will be understood that each flow and/or block of the flowchart illustrations and/or FIG. These computer program instructions can be provided to a processor of a computer device to produce a machine such that instructions executed by a processor of the computer device are generated for implementing one or more blocks or processes in a flow or flow diagram and/or block diagram of the flowchart The device for the function specified in the box.
尽管本发明的内容已经通过上述优选实施例作了详细介绍,但应当认识到上述的描述不应被认为是对本发明的限制。在本领域技术人员阅读了上述内容后,对于本发明的多种修改和替代都将是显而易见的。因此,本发明的保护范围应由所附的权利要求来限定。 Although the present invention has been described in detail by the preferred embodiments thereof, it should be understood that the foregoing description should not be construed as limiting. Various modifications and alterations of the present invention will be apparent to those skilled in the art. Therefore, the scope of the invention should be defined by the appended claims.

Claims (10)

  1. 一种充电保护方法,其特征在于,包括:A charging protection method, comprising:
    判断电子设备是否处于充电状态;Determining whether the electronic device is in a charging state;
    当所述电子设备处于充电状态时,将所述电子设备切换为保护模式;Switching the electronic device to a protection mode when the electronic device is in a charging state;
    判断所述电子设备是否接收到退出指令;Determining whether the electronic device receives an exit instruction;
    当接收到退出指令时,基于所述退出指令退出所述保护模式。When the exit instruction is received, the protection mode is exited based on the exit instruction.
  2. 如权利要求1所述的充电保护方法,其特征在于,还包括:当基于所述退出指令退出所述保护模式时,将所述电子设备切换为锁屏状态。The charging protection method according to claim 1, further comprising: switching the electronic device to a lock screen state when the protection mode is exited based on the exit instruction.
  3. 如权利要求2所述的充电保护方法,其特征在于,还包括:在所述电子设备处于锁屏状态时,基于输入指令对所述电子设备进行解锁。The charging protection method according to claim 2, further comprising: unlocking the electronic device based on an input instruction when the electronic device is in a lock screen state.
  4. 如权利要求1所述的充电保护方法,其特征在于,所述判断电子设备是否处于充电状态的步骤包括:当所述电子设备通过USB线与其他设备相连时,基于充电指令将所述电子设备切换为充电状态;或者,The charging protection method according to claim 1, wherein the step of determining whether the electronic device is in a charging state comprises: when the electronic device is connected to other devices through a USB cable, the electronic device is based on a charging instruction Switch to the charging state; or,
    当所述电子设备通过USB线与其他设备相连时,基于数据传输指令将所述电子设备与其他设备进行数据传输。When the electronic device is connected to other devices through a USB cable, the electronic device performs data transmission with other devices based on a data transmission instruction.
  5. 如权利要求1所述的充电保护方法,其特征在于,还包括:当所述电子设备处于保护模式时,对所述保护模式进行提示。The charging protection method according to claim 1, further comprising: prompting said protection mode when said electronic device is in a protection mode.
  6. 一种充电保护装置,其特征在于,包括:A charging protection device, comprising:
    判断模块,用于判断电子设备是否处于充电状态;a determining module, configured to determine whether the electronic device is in a charging state;
    指令接收模块,用于接收退出指令;An instruction receiving module, configured to receive an exit instruction;
    模式切换模块,用于当所述电子设备处于充电状态时,将所述电子设备切换为保护模式;或者在接收到退出指令时,基于所述退出指令退出所述保护模式。And a mode switching module, configured to: when the electronic device is in a charging state, switch the electronic device to a protection mode; or, upon receiving an exit instruction, exit the protection mode based on the exit instruction.
  7. 如权利要求6所述的充电保护装置,其特征在于,所述模式切换模块还用于当基于所述退出指令退出所述保护模式时,将所述电子设备切换为锁屏状态。The charging protection device according to claim 6, wherein the mode switching module is further configured to switch the electronic device to a lock screen state when the protection mode is exited based on the exit instruction.
  8. 如权利要求7所述的充电保护装置,其特征在于,还包括:解锁模块;The charging protection device according to claim 7, further comprising: an unlocking module;
    所述指令接收模块还用于接收输入指令; The instruction receiving module is further configured to receive an input instruction;
    所述解锁模块用于基于输入指令对所述电子设备进行解锁。The unlocking module is configured to unlock the electronic device based on an input instruction.
  9. 如权利要求6所述的充电保护装置,其特征在于,还包括:提示模块;The charging protection device according to claim 6, further comprising: a prompting module;
    所述提示模块用于当所述电子设备处于保护模式时,对所述保护模式进行提示。The prompting module is configured to prompt the protection mode when the electronic device is in a protection mode.
  10. 一种电子设备,其特征在于,包括如权利要求6-9任一项所述的充电保护装置。 An electronic device comprising the charging protection device according to any one of claims 6-9.
PCT/CN2017/103603 2017-09-27 2017-09-27 Charging protection method, charging protection apparatus and electronic device WO2019061056A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
PCT/CN2017/103603 WO2019061056A1 (en) 2017-09-27 2017-09-27 Charging protection method, charging protection apparatus and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2017/103603 WO2019061056A1 (en) 2017-09-27 2017-09-27 Charging protection method, charging protection apparatus and electronic device

Publications (1)

Publication Number Publication Date
WO2019061056A1 true WO2019061056A1 (en) 2019-04-04

Family

ID=65900339

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/103603 WO2019061056A1 (en) 2017-09-27 2017-09-27 Charging protection method, charging protection apparatus and electronic device

Country Status (1)

Country Link
WO (1) WO2019061056A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113147778A (en) * 2021-04-08 2021-07-23 广州小鹏汽车科技有限公司 Vehicle control method and device, electronic controller and vehicle

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103747142A (en) * 2014-01-10 2014-04-23 上海斐讯数据通信技术有限公司 Mobile phone safety communication method and device
CN103873636A (en) * 2012-12-10 2014-06-18 中兴通讯股份有限公司 Method and device for controlling mobile phone power supply and charging
CN103956792A (en) * 2014-05-08 2014-07-30 深圳市中兴移动通信有限公司 Method and device for controlling charging temperature rise of mobile terminal
CN106451612A (en) * 2016-09-21 2017-02-22 奇酷互联网络科技(深圳)有限公司 Charging method and charging apparatus
CN106778382A (en) * 2016-12-09 2017-05-31 宇龙计算机通信科技(深圳)有限公司 Charge protection method, device and mobile terminal

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103873636A (en) * 2012-12-10 2014-06-18 中兴通讯股份有限公司 Method and device for controlling mobile phone power supply and charging
CN103747142A (en) * 2014-01-10 2014-04-23 上海斐讯数据通信技术有限公司 Mobile phone safety communication method and device
CN103956792A (en) * 2014-05-08 2014-07-30 深圳市中兴移动通信有限公司 Method and device for controlling charging temperature rise of mobile terminal
CN106451612A (en) * 2016-09-21 2017-02-22 奇酷互联网络科技(深圳)有限公司 Charging method and charging apparatus
CN106778382A (en) * 2016-12-09 2017-05-31 宇龙计算机通信科技(深圳)有限公司 Charge protection method, device and mobile terminal

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113147778A (en) * 2021-04-08 2021-07-23 广州小鹏汽车科技有限公司 Vehicle control method and device, electronic controller and vehicle

Similar Documents

Publication Publication Date Title
US9513790B2 (en) Electronic device and method for unlocking screen of electronic device
US9116663B2 (en) Method for changing device modes of an electronic device connected to a docking station and an electronic device configured for same
EP2838007B1 (en) Electronic equipment and unlocking method of screen thereof
KR100993459B1 (en) Unlocking a device by performing gestures on an unlock image
EP2472375A1 (en) Method and device for identifying and unlocking with contact surface model
EP2704406B1 (en) Temporarily unlocking of a mobile terminal
EP2398286B1 (en) Method for power management of mobile communication terminal and mobile communication terminal using this method
US9372981B2 (en) Electronic device and method for unlocking screen of electronic device
CN103473015A (en) Anti-addiction method and terminal
TW201327350A (en) Electronic device with touch screen and screen unlocking method thereof
WO2007076211A1 (en) Indication of progress towards satisfaction of a user input condition
US10651950B2 (en) Method and system for shortening wireless pairing connection time by detecting an object or body
WO2009076974A1 (en) Mode control for an electronic device with touch ui
CA2798684C (en) Method for changing device modes of an electronic device connected to a docking station and an electronic device configured for same
US20130232446A1 (en) Electronic device and method for unlocking electronic device
TWI700609B (en) Antitheft system and method of electronic device
WO2019061056A1 (en) Charging protection method, charging protection apparatus and electronic device
CN104932819A (en) Mobile terminal and control method thereof
JP6045290B2 (en) Electronic device and control method
TW201430613A (en) Electronic device having touch screen and screen uncocking method thereof

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: 17927514

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: 17927514

Country of ref document: EP

Kind code of ref document: A1