CN103577236A - Mobile terminal for recording number of times of illegal removal of battery and obtaining method thereof - Google Patents

Mobile terminal for recording number of times of illegal removal of battery and obtaining method thereof Download PDF

Info

Publication number
CN103577236A
CN103577236A CN201310569298.3A CN201310569298A CN103577236A CN 103577236 A CN103577236 A CN 103577236A CN 201310569298 A CN201310569298 A CN 201310569298A CN 103577236 A CN103577236 A CN 103577236A
Authority
CN
China
Prior art keywords
module
memory
counter
time
down
Prior art date
Application number
CN201310569298.3A
Other languages
Chinese (zh)
Other versions
CN103577236B (en
Inventor
俞斌
杨维琴
Original Assignee
Tcl通讯(宁波)有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tcl通讯(宁波)有限公司 filed Critical Tcl通讯(宁波)有限公司
Priority to CN201310569298.3A priority Critical patent/CN103577236B/en
Publication of CN103577236A publication Critical patent/CN103577236A/en
Application granted granted Critical
Publication of CN103577236B publication Critical patent/CN103577236B/en

Links

Abstract

The invention discloses a mobile terminal for recording the number of times of illegal removal of a battery and an obtaining method of the mobile terminal. The mobile terminal comprises the battery, a power-down loss-free storage and a central processing unit. A first counter module is further arranged in the power-down loss-free storage. Due to the fact that the first counter module is further arranged in the power-down loss-free storage, the number of times of illegal removal of the battery is obtained. A user can know the number of times of illegal removal of the battery when the mobile terminal is used, so that the user, a mobile terminal repair person and an operator are assisted.

Description

一种记录电池非法移除次数的移动终端及其实现方法 A recording illicit removal of the battery and the number of a mobile terminal implementation method

技术领域 FIELD

[0001] 本发明涉及移动终端技术领域,尤其涉及一种记录电池非法移除次数的移动终端及其实现方法。 [0001] The present invention relates to a mobile terminal technology, and particularly relates to a mobile terminal battery illicit removals recording method and its implementation.

背景技术 Background technique

[0002] 电池是移动终端的能量来源部件,在移动终端日常使用中,难免会碰到移动终端响应慢、死机等状况,很多用户在这时第一选择便是非法移除电池再重新插入电池开机来解决。 [0002] The battery energy source member is a mobile terminal, the mobile terminal in daily use, the mobile terminal will inevitably encounter slow response, crashes and other conditions, many users choose an illegal a first time to remove and reinsert the battery cell Power to resolve. 另外,当移动终端跌落时亦有可能出现电池脱落的情况。 Further, when the mobile terminal also falling off the battery may occur.

[0003] 电池的非法移除对移动终端存在一定影响,例如,安装了一半的软件其已安装的文件长期在移动终端中驻留,而移动终端的系统却不知道其存在。 [0003] illegal removal of the battery there is a certain influence on the mobile terminal, for example, the installation of the software half of its installed files long-term presence in the mobile terminal, and mobile terminal systems do not know of its existence. 因此,需要了解移动终端在使用过程中,电池非法移除的相应信息(如电池的非法移除次数和非法移除时间),所述电池非法移除的相应信息对于用户、移动终端维修点及运营商都是至关重要的。 Accordingly, it is necessary for the appropriate information of the mobile terminal during use, the illegal removal of the corresponding cell information (e.g., the number of battery removal and illegal illegal removal time), the illegal removal of the battery for the user, the mobile terminal and service point operators are crucial.

[0004] 因此,如何获取电池非法移除信息成为目前亟待解决的问题之一。 [0004] Therefore, the removal of illegal information on how to obtain a battery to become one of the current problems to be solved.

发明内容 SUMMARY

[0005] 鉴于上述现有技术的不足,本发明的目的在于提供一种记录电池非法移除次数的移动终端及其实现方法,旨在解决现有的移动终端无法记录电池非法移除信息的问题。 [0005] In view of the deficiencies of the prior art, an object of the present invention is to provide a mobile terminal battery recording illicit removals and implementation method, to solve the problem of the conventional mobile terminal is unable to remove the illegal information recording cell .

[0006] 本发明的技术方案如下: [0006] aspect of the present invention is as follows:

一种记录电池非法移除次数的移动终端,所述移动终端包括:电池、中央处理器和掉电不易失存储器;所述中央处理器分别与电池、掉电不易失存储器相连接;其中, A recording illicit removal of cell number of the mobile terminal, the mobile terminal comprising: a battery, a power-down the central processor and nonvolatile memory; said central processing unit and the battery, respectively, are connected to power-down the non-volatile memory; wherein,

所述中央处理器包括: Said central processing unit comprising:

存储器读写模块,用于读写掉电不易失存储器; Memory read-write module for reading and writing down the non-volatile memory;

开机模块,用于在移动终端开机时会触发执行; Power modules, executed when triggered for the mobile terminal is powered on;

关机模块,用于在移动终端关机时会触发执行; Shutdown means for when the mobile terminal triggers the shutdown execution;

所述掉电不易失存储器包括: The power down nonvolatile memory comprising:

第一计数器模块,用于计数总的电池非法移除次数; First counter means for counting the total cell number of illegal removal;

当移动终端开机时,开机模块被触发,通过存储器读写模块从掉电不易失存储器处读取第一计数器模块的值,并将该第一计数器模块的值加I后再通过存储器读写模块写入掉电不易失存储器的第一计数器模块中; When the mobile terminal is powered on, the boot module is triggered from the non-volatile memory at a power-down value of the first counter module is read by the memory reader module, and the first counter value plus I and then through the memory module reader module write down the first non-volatile memory of the counter module;

当移动终端关机时,关机模块被触发,通过存储器读写模块从掉电不易失存储器处读取第一计数器模块的值,并将该第一计数器模块的值减I后再通过存储器读写模块写入掉电不易失存储器的第一计数器模块中; When the mobile terminal shutdown process module is triggered from the non-volatile memory at a power-down value of the first counter module is read by the memory reader module, and then reduced by a memory write I value of the first counter block module write down the first non-volatile memory of the counter module;

通过存储器读写模块从掉电不易失存储器处读取第一计数器模块的值,并将该第一计数器模块的值减I后即为电池非法移除次数。 Down through the module from the non-volatile memory reader reads the value of the first counter at the memory module, and the minus value of the first counter module I after the battery illicit removals.

[0007] 所述的记录电池非法移除次数的移动终端,其中,所述中央处理器中还包括: 时间获取模块,用于获取当前时间; 定时模块,用于定时触发时间获取模块获取当前时间并通过存储器读写模块将该时间写入时间保存模块中; Recording the battery [0007] The number of illegal removal of the mobile terminal, wherein said central processor further comprising: time obtaining means for obtaining a current time; timing module for periodically trigger time acquiring module acquires the current time the time and writing time stored by the memory module reader module;

所述掉电不易失存储器还包括: The power down nonvolatile memory further comprises:

时间保存模块,用于保存最近一次电池非法移除的时间; Time saving module for saving time of the last battery illegally removed;

开机模块触发定时模块开启,定时模块每隔一固定时间通过时间获取模块获取移动终端的系统时间,并将所述系统时间通过存储器读写模块写入掉电不易失存储器的时间保存模块中。 Power module triggers the opening timing module, a timing module every fixed time module obtains the system time of the mobile terminal by acquiring the time and the system time non-volatile memory of the write power down time is stored by the memory module reader module.

[0008] 所述的记录电池非法移除次数的移动终端,其中,所述掉电不易失存储器还包括: [0008] The recording number of the mobile terminal battery is illegally removed, wherein said power down nonvolatile memory further comprises:

第二计数器模块,用于在开机时判断上一次关机是否为电池非法移除所导致的; Second counter means for determining when the power-off time on whether the illegal removal of the battery caused;

电池非法移除记录模块,用于记录所有电池非法移除的时间; Battery removal illegal recording means for recording the time of removal of all cells illegal;

开机模块通过存储器读写模块从掉电不易失存储器处读取第二计数器模块的值,判断该第二计数器模块的值是否为I;如果第二计数器模块的值为I,则通过存储器读写模块从掉电不易失存储器处读取时间保存模块中保存的时间值,将该时间通过存储器读写模块写入掉电不易失存储器的电池非法移除记录模块中,并将该时间显示出来提示用户最近一次电池非法移除的时间;如果第二计数器模块的值为O则通过存储器读写模块将I写入掉电不易失存储器的第二计数器模块中; Power module from the non-volatile memory at a power-down value of the second counter is read by the memory reader module the module, the second value of the counter determines whether the module I; module if the second counter value I, by the memory reader module reads the time value stored in time is stored in the module from the non-volatile memory at power-down, the illegal removal of the recording module writes down the time the non-volatile memory cell through the read-write memory module, and displays the prompt time removing illegal user last time the battery; if the second counter value O module through the memory reader module I write down the non-volatile memory module of the second counter;

关机模块通过存储器读写模块将O写入掉电不易失存储器的第二计数器模块中;通过存储器读写模块从掉电不易失存储器处读取电池非法移除记录模块中的值即为每一次电池非法移除的时间。 Shutdown memory reader module by module O write down the non-volatile memory module in a second counter; by the non-volatile memory of the memory reader reads the battery module from the value of the recording power down module is the illegal removal of each battery time illegally removed.

[0009] 所述的记录电池非法移除次数的移动终端,其中,所述移动终端为手机。 Recording said cell [0009] illicit removals of the mobile terminal, wherein the terminal is a mobile phone.

[0010] 所述的记录电池非法移除次数的移动终端,其中,所述移动终端还包括一显示装置,用于显示每一次电池非法移除的时间和/或电池非法移除次数。 Recording said cell [0010] mobile terminal number of illegal removal, wherein the mobile terminal further comprises a display means for displaying the illegal removal of the battery every time and / or battery illicit removals.

[0011] 一种上述的记录电池非法移除次数的移动终端的实现方法,其中,包括以下步骤: [0011] The above-described recording method for implementing a cell illicit removals of a mobile terminal, comprising the steps of:

Cl、移动终端开机时,开机模块被触发,通过存储器读写模块从掉电不易失存储器处读取第一计数器模块的值,并将该第一计数器模块的值加I后再通过存储器读写模块写入掉电不易失存储器的第一计数器模块中; Cl, the mobile terminal is powered on, the boot module is triggered from the non-volatile memory at a power-down value of the first counter module is read by the memory reader module, and the first counter value plus I by memory reader module then non-volatile memory module writes down counter to the first module;

C2、移动终端关机时,关机模块被触发,通过存储器读写模块从掉电不易失存储器处读取第一计数器模块的值,并将该第一计数器模块的值减I后再通过存储器读写模块写入掉电不易失存储器的第一计数器模块中; C2, when the mobile terminal shutdown process module is triggered from the non-volatile memory at a power-down value of the first counter module is read by the memory reader module, and the minus value of the first counter module I is then read by a memory non-volatile memory module writes down counter to the first module;

C3、通过存储器读写模块从掉电不易失存储器处读取第一计数器模块的值,并将该第一计数器模块的值减I后即为电池非法移除次数。 C3, down through the memory from the non-volatile read-write memory module is read at counter values ​​of the first module, and the minus value of the first counter module I after the battery illicit removals.

[0012] 所述的实现方法,其中,还包括: Implementation [0012], wherein, further comprising:

C4、开机模块触发定时模块开启,定时模块每隔一固定时间通过时间获取模块获取移动终端的系统时间,并将所述系统时间通过存储器读写模块写入掉电不易失存储器的时间保存模块中。 C4, boot module triggers the opening timing module, a timing module every fixed time obtaining module obtains the system time by time the mobile terminal, the system time and the non-volatile memory of the write power down time is stored by a memory module reader module .

[0013] 所述的实现方法,其中,所述步骤Cl中还包括:开机模块通过存储器读写模块从掉电不易失存储器处读取第二计数器模块的值,判断该第二计数器模块的值是否为I ;如果第二计数器模块的值为1,则通过存储器读写模块从掉电不易失存储器处读取时间保存模块中保存的时间值,将该时间通过存储器读写模块写入掉电不易失存储器的电池非法移除记录模块中,并将该时间显示出来提示用户最近一次电池非法移除的时间;如果第二计数器模块的值为O则通过存储器读写模块将I写入掉电不易失存储器的第二计数器模块中; Implementation [0013], wherein said step further comprises Cl: non-volatile memory at a power module through the module from the power down memory reader reads the value of the second counter module determines the value of the second counter module whether I; if the value of the second counter module 1, the non-volatile memory is read at a time value stored in time is stored by the memory module from the reader module power-down, the power down time is written by a memory reader module non-volatile memory of the removable recording illicit battery module, and displays the last time the time prompts the user to remove the battery illicit; if the second counter value O module through the memory reader module writes down I non-volatile memory module of the second counter;

所述步骤C2还包括:关机模块通过存储器读写模块将O写入掉电不易失存储器的第二计数器模块中; Said step C2 further comprising: shutdown memory reader module by module O write down the non-volatile memory module of the second counter;

所述步骤C3中还包括:通过存储器读写模块从掉电不易失存储器处读取电池非法移除记录模块中的值即为每一次电池非法移除的时间。 The step C3 further comprising: a power-down from the non-volatile memory cell is read by the memory reader module is the time for each cell to remove illegal values ​​in the illegal recording module removed.

[0014] 所述的实现方法,其中,所述移动终端为手机。 Implemented method according to [0014], wherein the terminal is a mobile phone.

[0015] 所述的实现方法,其中,所述掉电不易失存储器为Flash或EEPR0M。 Implemented method according to [0015], wherein said non-volatile memory is a Flash down or EEPR0M.

[0016] 有益效果:本发明公开的记录电池非法移除次数的移动终端及其实现方法,其通过在移动终端的掉电不易失存储器中设置第一计数器,来获取移动终端电池非法移除次数。 [0016] Advantageous Effects: The present invention discloses a battery illegal recording times to remove the mobile terminal and its implementation method, the mobile terminal acquires the battery by providing a first down counter of the mobile terminal in non-volatile memory illicit removals . 令用户了解在移动终端的使用过程中电池的非法移除的次数,从而为用户、移动终端维修商以及运营商提供帮助。 So that users know the number of times in the course of the mobile terminal illegally removed the battery, so as to provide assistance to users, service providers and mobile terminal operators.

附图说明 BRIEF DESCRIPTION

[0017] 图1为本发明的记录电池非法移除次数的移动终端的结构框图。 A block diagram [0017] FIG recording the illegal removal of the battery of the present invention, the number of the mobile terminal.

[0018] 图2为本发明的记录电池非法移除次数的移动终端中中央处理器的较佳实施例的结构框图。 Block diagram of the central processor of the embodiment [0018] FIG recording illegal removal of the battery of the present invention the preferred embodiment the number of mobile terminals.

[0019] 图3为本发明的记录电池非法移除次数的移动终端中掉电不易失存储器的较佳实施例的结构框图。 Block diagram of the structure [0019] FIG. 3 illegal recording of the present invention to remove the battery of the mobile terminal number of the non-volatile memory power down preferred embodiment.

[0020] 图4为本发明的记录电池非法移除次数的移动终端的实现方法的流程图。 Flowchart of an implementation method of recording cell [0020] FIG. 4 of the present invention illicit removals of the mobile terminal.

具体实施方式 Detailed ways

[0021] 本发明提供一种记录电池非法移除次数的移动终端及其实现方法,为使本发明的目的、技术方案及效果更加清楚、明确,以下对本发明进一步详细说明。 [0021] The present invention provides a mobile terminal battery recording illicit removals and implementation method, for the purposes of the present invention, technical solutions and advantages clearer, explicit, the following detailed description of the present invention further. 应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。 It should be understood that the specific embodiments described herein are only intended to illustrate the present invention and are not intended to limit the present invention.

[0022] 请一并参阅图1、图2和图3,图1为本发明的记录电池非法移除次数的移动终端的结构框图。 [0022] Referring to FIG 1, FIG 2 and FIG 3, FIG. 1 of the present invention, the recording of the battery block diagram of a mobile terminal illicit removal times. 如图所示,所述移动终端包括:电池100、中央处理器300和掉电不易失存储器200 ;中央处理器300分别与电池100、掉电不易失存储器200相连接。 As shown, the mobile terminal comprising: a battery 100, a power-down the central processor 300 and nonvolatile memory 200; the central processor 300 and the battery 100, respectively, down the non-volatile memory 200 is connected. 所述掉电不易失存储器200指的是断电后存储器的内容依然保存的存储器,例如Flash或EEPROM等。 The power down nonvolatile memory 200 refers to the contents of the memory after power is still stored in the memory, and the like such as Flash or EEPROM.

[0023] 其中,如图2所示,所述中央处理器300包括存储器读写模块310、开机模块320和关机模块330 ;存储器读写模块310用于读写掉电不易失存储器200 ;开机模块320在移动终端开机时会触发该模块执行;关机模块330在移动终端关机时会触发该模块执行。 [0023] wherein, as shown, the central processor 3002 includes a memory read module 310, power module 320 and the module 330 off; memory reader module 310 for reading and writing down the non-volatile memory 200; power module when the mobile terminal 320 triggers execution of the startup module; off module 330 when the mobile terminal trigger the execution of the module will shut down.

[0024] 如图3所示,掉电不易失存储器200包括第一计数器模块210。 [0024] As shown in FIG. 3, the non-volatile memory power-down counter 200 includes a first module 210.

[0025] 其工作原理如下: [0025] It works as follows:

当移动终端开机时,开机模块320被触发,开机模块320通过存储器读写模块310从掉电不易失存储器200处读取第一计数器模块210的值,并将该第一计数器模块210的值加I后再通过存储器读写模块310写入掉电不易失存储器200的第一计数器模块210中。 When the mobile terminal is powered on, the boot module 320 is triggered, power module 320 from the module 310 at the power-down the non-volatile memory values ​​of the first counter 200 is read by the memory reader module 210, and the first counter block value plus 210 I module 310 then writes down the non-volatile memory of the first module 200 in the counter 210 through the memory read and write. 当移动终端关机时,关机模块330被触发,关机模块通过存储器读写模块310从掉电不易失存储器200处读取第一计数器模块210的值,并将该第一计数器模块210的值减I后再通过存储器读写模块310写入掉电不易失存储器200的第一计数器模块210中。 When the mobile terminal shutdown process module 330 is triggered off by a memory module reader module 310 from the power down nonvolatile memory module 200 reads the value of the first counter 210, and the minus value of the first counter module I 210 module 310 then writes down the non-volatile memory of the first module 200 in the counter 210 through the memory read and write. 如此一来,通过存储器读写模块310从掉电不易失存储器200处读取第一计数器模块210的值,并将该第一计数器模块210的值减I后即为移动终端的电池非法移除次数。 Thus, by reading and writing the memory module 310 from the power down nonvolatile memory 200 of the module 210 reads the value of the first counter, and the first counter value minus I module 210 after the illegal removal of the battery of the mobile terminal frequency.

[0026] 简单来说,例如,当移动终端开机后,读取第一计数器(即为第一计数器模块,下同)的值(例如第一计数器的值为N),将该第一计数器的值加I后(即为N+1)再写回掉电不易失存储器。 [0026] Briefly, for example, after the mobile terminal is powered on, reads the first counter (first counter module is the same below) value (e.g. a value of the first counter N), the first counter after adding the value of I (that is, N + 1) non-volatile memory write back down. 当移动终端正常关机时读取掉电不易失存储器的第一计数器,将该第一计数器的值(N+1)减一后再写回掉电不易失存储器(此时为N)。 When the mobile terminal reads the normal shutdown power down nonvolatile memory of a first counter, the first counter value of the (N + 1) is then written back down Save a nonvolatile memory (in this case N). 在移动终端开机状态下读取掉电不易失存储器的第一计数器,再将该第一计数器的值减一后就是移动终端曾经电池非法移除的次数。 A first down counter reading non-volatile memory in the mobile terminal is powered state, then the number of times the value of the first counter is decremented by a mobile terminal once the battery is illegally removed.

[0027] 进一步地,如图2和图3所示,在本发明较佳实施例的记录电池非法移除次数的移动终端中,所述中央处理器300中还包括:时间获取模块340,用于获取当前时间;以及定时模块350,用于定时触发时间获取模块获取当前时间并通过存储器读写模块将该时间写入下述的时间保存模块230中;所述掉电不易失存储器200还包括:时间保存模块230,用于保存最近一次电池非法移除的时间。 [0027] Further, as shown in FIGS. 2 and 3, the mobile terminal records the battery of the preferred embodiment of the present invention, the number of illegal removal, the central processor 300 further comprising: time obtaining module 340, with to obtain the current time; and a timing module 350, a timing trigger time acquiring module acquires the current time and the time of writing the following storage module 230 by the time the memory read-write module; down the nonvolatile memory 200 further comprises : time saving module 230, for the last time to save battery illegally removed. 开机模块320触发定时模块350开启,定时模块350每隔一固定时间通过时间获取模块340获取系统时间,并将该时间通过存储器读写模块310写入掉电不易失存储器200的时间保存模块220中。 Power module 320 triggers the timing module 350 is turned on, the timing module 350 every time the fixed time acquiring module 340 acquires the system time and which time is written by a memory read module 310 down the non-volatile memory 200 time holding module 220 .

[0028] 为了更好地获取电池非法移除的相应信息,除了上述的电池非法移除次数,本发明的移动终端还可以记录每次电池非法移除时间。 [0028] In order to obtain the information corresponding to the illegal removal of the battery, in addition to the illegal removal of the above-described number of times a battery, the mobile terminal of the present invention may be recorded each time the battery illegally removed.

[0029] 在本实施例中,如图3所示,所述掉电不易失存储器200还包括第二计数器模块220和电池非法移除记录模块240 ;其中,所述第二计数器模块220用于在开机时判断上一次关机是否为电池非法移除所导致的;电池非法移除记录模块240用于记录所有电池非法移除的时间。 [0029] In the present embodiment, as shown in FIG. 3, the power down nonvolatile memory 200 further includes a counter module 220, and a second battery module 240 removable recording illicit; wherein the second counter module 220 when a power-off if the battery is illegally removed from the resulting judgment; illicit battery removable recording time of all the battery modules 240 removed for illegal recording.

[0030] 其实现原理如下: [0030] The implementation principles are as follows:

开机模块320通过存储器读写模块310从掉电不易失存储器200处读取第二计数器模块220的值,判断该第二计数器模块220的值是否为I ;如果第二计数器模块220的值为I则通过存储器读写模块310从掉电不易失存储器200处读取时间保存模块230中保存的时间值,将该时间通过存储器读写模块310写入掉电不易失存储器200的电池非法移除记录模块240中,并将该时间显示出来提示用户最近一次电池非法移除的时间;如果第二计数器模块220的值为O则通过存储器读写模块310将I写入掉电不易失存储器200的第二计数器模块220中。 Power module 320 from module 310 by power down nonvolatile memory of the memory reader 200 reads the value of the second counter module 220 determines the value of the second counter 220 whether the module I; if the value of the second counter module 220 I the module 310 at the non-volatile memory 200 reads the time value of time stored in the storage module 230 through the memory read and write from the power down, the power down time module 310 is written by the memory cell read and write non-volatile memory 200 of the removable recording illicit module 240, and the time is displayed prompting the user the last time the battery is illegally removed; if the value of the second counter 220 O module, the module 310 writes down by the first non-volatile memory reader I memory 200 second counter module 220. 关机模块330通过存储器读写模块310将O写入掉电不易失存储器200的第二计数器模块220中。 Shutdown O module 330 to module 310 by writing down the memory 200 to read and write non-volatile memory module of the second counter 220. 从而通过存储器读写模块310从掉电不易失存储器200处读取电池非法移除记录模块240中的值即为每一次电池非法移除的时间。 Module 310 so that the non-volatile memory cell is read by the memory reader 200 from the down time for each cell is the illegal recording module 240 to remove the value of the illegally removed.

[0031] 概括来说,在移动终端的掉电不易失存储器中设置另一计数器(第二计数器,即为第二计数器模块),该第二计数器的值在开机时设为1,在关机时设为O ;在移动终端的掉电不易失存储器中设置一时间保存模块,当移动终端开机后,每隔一固定时间会将当前时间保存至该模块;在移动终端的掉电不易失存储器中设置一电池非法移除记录模块,用于记录每一次电池非法移除的时间;当移动终端开机时读取掉电不易失存储器的第二计数器,若该第二计数器的值为I则读取掉电不易失存储器的时间保存模块中保存的上一次电池非法移除的时间,并将该时间写入掉电不易失存储器的电池非法移除记录模块中;在移动终端开机状态下读取掉电不易失存储器的电池非法移除记录模块,该电池非法移除记录模块中所记录的时间为每一次电池非法移除的时间。 [0031] In summary, provided another counter (second counter, the second counter is the module) in the power down of the mobile terminal in non-volatile memory, the value of the second counter is set to 1 at boot, shutdown when to O; provided a module power-down time is stored in the nonvolatile memory of the mobile terminal, when the mobile terminal is powered on, every fixed time will save the current time to the module; power down of the mobile terminal in non-volatile memory provided with a removable recording illicit battery module, a battery for every time recording illicit removal; second down counter reading non-volatile memory when the mobile terminal is powered on, if the second counter value I is read down on the non-volatile memory storage time of a primary battery saving module illicit removal time, and writes down the time the non-volatile memory of the removable recording illicit battery module; read at the mobile terminal is powered off state non-volatile memory cell is electrically illegal removable recording module, the battery module recording time recorded in the illegal removal of the battery every time illegally removed.

[0032] 进一步地,所述记录电池非法移除次数的移动终端还包括一显示装置,用于显示每一次电池非法移除的时间和/或电池非法移除次数。 [0032] Further, the record number of the mobile terminal battery is illegally removed further comprising a display means for displaying the illegal removal of the battery every time and / or battery illicit removals. 在本实施例中,所述移动终端可以为手机、平板电脑或电子书等。 In the present embodiment, the terminal may be a mobile phone, etc., tablet, or electronic book. 即通过手机或平板电脑的显示装置显示每一次电池非法移除的时间和/或电池非法移除次数,方便用户随时了解电池非法移除信息。 I.e., by phone or tablet display means displays the illegal removal of the battery every time and / or battery illicit removals, easy for users to understand the illegal removal of the battery information.

[0033] 本发明还提供了一种上述的记录电池非法移除次数的移动终端的实现方法,如图4所示,包括以下步骤: [0033] The present invention further provides an above-described removable recording implementation method of illegal cell number of a mobile terminal, shown in Figure 4, comprising the steps of:

S100、移动终端开机时,开机模块被触发,通过存储器读写模块从掉电不易失存储器处读取第一计数器模块的值,并将该第一计数器模块的值加I后再通过存储器读写模块写入掉电不易失存储器的第一计数器模块中; SlOO, the mobile terminal is powered on, the boot module is triggered from the non-volatile memory at a power-down value of the first counter module is read by the memory reader module, and the first counter value plus I by memory reader module then non-volatile memory module writes down counter to the first module;

S200、移动终端关机时,关机模块被触发,通过存储器读写模块从掉电不易失存储器处读取第一计数器模块的值,并将该第一计数器模块的值减I后再通过存储器读写模块写入掉电不易失存储器的第一计数器模块中; S200, the mobile terminal shutdown process module is triggered from the non-volatile memory at a power-down value of the first counter module is read by the memory reader module, and the minus value of the first counter module I is then read by a memory non-volatile memory module writes down counter to the first module;

S300、通过存储器读写模块从掉电不易失存储器处读取第一计数器模块的值,并将该第一计数器模块的值减I后即为电池非法移除次数。 S300, the power-down memory reader module by the non-volatile memory is read at counter values ​​of the first module, and the minus value of the first counter module I after the battery illicit removals.

[0034] 进一步地,所述的实现方法还包括: [0034] Further, the implementation method further comprises:

开机模块触发定时模块开启,定时模块每隔一固定时间通过时间获取模块获取移动终端的系统时间,并将所述系统时间通过存储器读写模块写入掉电不易失存储器的时间保存模块中。 Power module triggers the opening timing module, a timing module every fixed time module obtains the system time of the mobile terminal by acquiring the time and the system time non-volatile memory of the write power down time is stored by the memory module reader module.

[0035] 更进一步地,所述的实现方法中,所述步骤SlOO中还包括:开机模块通过存储器读写模块从掉电不易失存储器处读取第二计数器模块的值,判断该第二计数器模块的值是否为I ;如果第二计数器模块的值为1,则通过存储器读写模块从掉电不易失存储器处读取时间保存模块中保存的时间值,将该时间通过存储器读写模块写入掉电不易失存储器的电池非法移除记录模块中,并将该时间显示出来提示用户最近一次电池非法移除的时间;如果第二计数器模块的值为O则通过存储器读写模块将I写入掉电不易失存储器的第二计数器模块中;所述步骤S200还包括:关机模块通过存储器读写模块将O写入掉电不易失存储器的第二计数器模块中;所述步骤S300中还包括:通过存储器读写模块从掉电不易失存储器处读取电池非法移除记录模块中的值即为每一次电池非法移除的 [0035] Still further, the implementation method, the step SlOO further comprising: a non-volatile memory at a power module through the module from the power down memory reader reads the value of the second counter module determines whether the second counter whether the value of the module I; if the value of the second counter module 1, the non-volatile memory at a time to read the time value stored by the storage module from the power down memory reader module, the writing time by a memory reader module down into the non-volatile memory of the removable recording illicit battery module, and displays the last time the time prompts the user to remove the battery illicit; if the value of the second counter module through the memory reader O module stores the write I down into the non-volatile memory module of the second counter; further comprising the step S200: shutdown memory reader module by module O write down the non-volatile memory module of the second counter; further comprising the step S300 : module from the power down nonvolatile memory cell is read at the illegal recording remove values ​​each module is the primary battery illegally removed by the memory reader 间。 Room.

[0036] 上述实现方法都已经在记录电池非法移除次数的移动终端的工作原理中进行了详细描述,这里不再赘述了。 Working Principle [0036] The methods have been implemented in the recording illicit removals of battery in the mobile terminal has been described in detail, not repeat them here.

[0037] 综上所述,本发明的记录电池非法移除次数的移动终端及其实现方法,其通过在移动终端的掉电不易失存储器中设置第一计数器,来获取移动终端电池非法移除次数。 [0037] In summary, the present invention is a recording illegal removal of the battery of the mobile terminal number and its implementation method, the mobile terminal acquires the battery by providing a first down counter nonvolatile memory of the mobile terminal illegally removed frequency. 令用户了解在移动终端的使用过程中电池的非法移除的次数,从而为用户、移动终端维修商以及运营商提供帮助。 So that users know the number of times in the course of the mobile terminal illegally removed the battery, so as to provide assistance to users, service providers and mobile terminal operators.

[0038] 应当理解的是,本发明的应用不限于上述的举例,对本领域普通技术人员来说,可以根据上述说明加以改进或变换,所有这些改进和变换都应属于本发明所附权利要求的保护范围。 [0038] It should be appreciated that the present invention is applied is not limited to the above-described example, those of ordinary skill in the art, can be modified or converted according to the above description, all such modifications and variations shall fall within the appended claims of the invention protected range.

Claims (10)

1.一种记录电池非法移除次数的移动终端,所述移动终端包括:电池、中央处理器和掉电不易失存储器;所述中央处理器分别与电池、掉电不易失存储器相连接;其特征在于, 所述中央处理器包括: 存储器读写模块,用于读写掉电不易失存储器; 开机模块,用于在移动终端开机时会触发执行; 关机模块,用于在移动终端关机时会触发执行; 所述掉电不易失存储器包括: 第一计数器模块,用于计数总的电池非法移除次数; 当移动终端开机时,开机模块被触发,通过存储器读写模块从掉电不易失存储器处读取第一计数器模块的值,并将该第一计数器模块的值加I后再通过存储器读写模块写入掉电不易失存储器的第一计数器模块中; 当移动终端关机时,关机模块被触发,通过存储器读写模块从掉电不易失存储器处读取第一计数器模块的值,并将该第一计 A recording illicit removal of cell number of the mobile terminal, the mobile terminal comprising: a battery, a central processor and nonvolatile memory powered down; the central processor and the battery respectively, the non-volatile memory is connected to power-down; the wherein the central processor comprises: a memory read-write module for reading and writing down the non-volatile memory; boot module, configured to, when executed on the mobile terminal triggers; shutdown module configured to be turned off when the mobile terminal trigger execution; down the non-volatile memory comprising: a first counter means for counting the total cell number of illegal removal; when the mobile terminal is powered on, the boot module is triggered from the non-volatile memory by a memory reader module down the read value of the first counter module, and then adding the value of the first counter module I write down the first non-volatile memory of the counter by a memory module reader module; when the mobile terminal shutdown process module is triggered from the non-volatile memory at a power-down value of the first counter module is read by the memory reader module and the first counter 器模块的值减I后再通过存储器读写模块写入掉电不易失存储器的第一计数器模块中; 通过存储器读写模块从掉电不易失存储器处读取第一计数器模块的值,并将该第一计数器模块的值减I后即为电池非法移除次数。 Save I value module then written down by the non-volatile memory reader module first counter memory module; read through the memory module from the non-volatile memory at a power-down value of the first counter reading module, and value of the first counter module I after the battery is reduced illicit removals.
2.根据权利要求1所述的记录电池非法移除次数的移动终端,其特征在于,所述中央处理器中还包括:· 时间获取模块,用于获取当前时间; 定时模块,用于定时触发时间获取模块获取当前时间并通过存储器读写模块将该时间写入时间保存模块中; 所述掉电不易失存储器还包括: 时间保存模块,用于保存最近一次电池非法移除的时间; 开机模块触发定时模块开启,定时模块每隔一固定时间通过时间获取模块获取移动终端的系统时间,并将所述系统时间通过存储器读写模块写入掉电不易失存储器的时间保存模块中。 2. Record the battery according to claim 1 to remove illegal mobile terminal number, wherein said central processor further comprises: · time acquisition module for acquiring a current time; timing module for periodically trigger time acquisition module acquires the current time and the time by writing time stored in the memory module reader module; down the non-volatile memory further comprising: a time storage module configured to store time of the last cell of the illegal removal; boot module open trigger timing module, a timing module every time a fixed time acquiring module acquires the system time of the mobile terminal, and the system time by reading and writing the memory module writes down the time the non-volatile memory storage module.
3.根据权利要求1或2所述的记录电池非法移除次数的移动终端,其特征在于,所述掉电不易失存储器还包括: 第二计数器模块,用于在开机时判断上一次关机是否为电池非法移除所导致的; 电池非法移除记录模块,用于记录所有电池非法移除的时间; 开机模块通过存储器读写模块从掉电不易失存储器处读取第二计数器模块的值,判断该第二计数器模块的值是否为I ;如果第二计数器模块的值为1,则通过存储器读写模块从掉电不易失存储器处读取时间保存模块中保存的时间值,将该时间通过存储器读写模块写入掉电不易失存储器的电池非法移除记录模块中,并将该时间显示出来提示用户最近一次电池非法移除的时间;如果第二计数器模块的值为O则通过存储器读写模块将I写入掉电不易失存储器的第二计数器模块中; 关机模块通过存储器读写模块将O写入 The recording battery of claim 1 or claim 2 illegal removal of the mobile terminal number, wherein said power down nonvolatile memory further comprises: a second counter module, configured to boot off a determination on whether the battery caused by the illegal removal; illegal battery removable recording means for recording the time of removal of all cells illegal; non-volatile memory at a power-module reads the value of the second counter by a memory module from the reader module power-down, value of the second module determines whether the counter I; if the value of the second counter module 1, the non-volatile memory is read at a time value stored in time is stored by the memory module from the reader module power-down, by the time memory reader module writes down the non-volatile memory of the removable recording illicit battery module, and displays the last time the time prompts the user to remove the battery illicit; module if the second counter value is read by the memory O I write module writes down the non-volatile memory module in a second counter; shutdown memory reader module by module O write 掉电不易失存储器的第二计数器模块中;通过存储器读写模块从掉电不易失存储器处读取电池非法移除记录模块中的值即为每一次电池非法移除的时间。 A second non-volatile memory of the down counter module; down from the nonvolatile memory cell is read illicit removal is the value of the recording module each time the battery is removed by illegal memory reader module.
4.根据权利要求1所述的记录电池非法移除次数的移动终端,其特征在于,所述移动终端为手机。 Recording cell according to claim 1, wherein the illegal removal of the mobile terminal number, wherein the terminal is a mobile phone.
5.根据权利要求3所述的记录电池非法移除次数的移动终端,其特征在于,所述移动终端还包括一显示装置,用于显示每一次电池非法移除的时间和/或电池非法移除次数。 The recording of the cell according to claim 3 times the illegal removal of the mobile terminal, wherein the mobile terminal further comprises a display means for displaying the illegal removal of the battery every time and / or battery illegal immigration In addition to the number.
6.一种权利要求1所述的记录电池非法移除次数的移动终端的实现方法,其特征在于,包括以下步骤: Cl、移动终端开机时,开机模块被触发,通过存储器读写模块从掉电不易失存储器处读取第一计数器模块的值,并将该第一计数器模块的值加I后再通过存储器读写模块写入掉电不易失存储器的第一计数器模块中; C2、移动终端关机时,关机模块被触发,通过存储器读写模块从掉电不易失存储器处读取第一计数器模块的值,并将该第一计数器模块的值减I后再通过存储器读写模块写入掉电不易失存储器的第一计数器模块中; C3、通过存储器读写模块从掉电不易失存储器处读取第一计数器模块的值,并将该第一计数器模块的值减I后即为电池非法移除次数。 Record 6. A battery according to claim 1 illicit removal method of a mobile terminal implemented a number of times, characterized by comprising the steps of: Cl, the mobile terminal is powered on, the boot module is triggered off by the memory module from the reader power nonvolatile memory is read at a value of the first counter module, and then adding the value of the first counter module I write down the first non-volatile memory of the counter by a memory module reader module; C2, the mobile terminal when the shutdown process module is triggered from the non-volatile memory at a power-down value of the first counter module is read by the memory reader module, and the minus value of the first counter module I is then written out by the read-write memory module a first electrically non-volatile memory of the counter module; a C3, non-volatile read-write memory by the memory module from the read value of the first down counter module, and decrease the value of the first counter module I after the battery illicit removals.
7.根据权利要求6所述的实现方法,其特征在于,还包括: C4、开机模块触发定时模块开启,定时模块每隔一固定时间通过时间获取模块获取移动终端的系统时间,并将所述系统时间通过存储器读写模块写入掉电不易失存储器的时间保存模块中。 7. The method of claim 6 achieve claim, wherein, further comprising: C4, trigger timing module turns on power modules, a fixed time acquisition module acquires the system time of the mobile terminal by the timing module every time, and the system time non-volatile memory write down time stored by the memory module reader module.
8.根据权利要求7所述的实现方法,其特征在于,所述步骤Cl中还包括:开机模块通过存储器读写模块从掉电不易失存储器处读取第二计数器模块的值,判断该第二计数器模块的值是否为I ;如果第二计数器模块的值为1,则通过存储器读写模块从掉电不易失存储器处读取时间保存模块中保存的时间值,将该时间通过存储器读写模块写入掉电不易失存储器的电池非法移除记录模块中,并将该时间显示出来提示用户最近一次电池非法移除的时间;如果第二计数器模块的值为O则通过存储器读写模块将I写入掉电不易失存储器的第二计数器模块中; 所述步骤C2还包括:关机模块通过存储器读写模块将O写入掉电不易失存储器的第二计数器模块中; 所述步骤C3中还包括:通过存储器读写模块从掉电不易失存储器处读取电池非法移除记录模块中的值即为每一次电池非法移 8. The method of realization according to claim 7, wherein said step of Cl further comprising: a non-volatile memory at a power-module reads the value of the second counter module is powered down by the memory reader module first determines the second counter value whether the module I; if the value of the second counter module 1, the non-volatile memory at a time to read the time value stored by the storage module from the power down memory reader module, the memory read and write by the time non-volatile memory module writes down the removable recording illicit battery module, and displays the last time the time prompts the user to remove the battery illicit; if the second counter value O module through the memory reader module I write down the non-volatile memory module of the second counter; step C2 further comprising: shutdown memory reader module by module O write down the non-volatile memory module of the second counter; the step C3 further comprising: a power-down by the memory reader module from the non-volatile memory cell at the read value of the recording module is the illegal removal of each cell illegal immigration 的时间。 time.
9.根据权利要求6所述的实现方法,其特征在于,所述移动终端为手机。 9. The method of realization according to claim 6, wherein the terminal is a mobile phone.
10.根据权利要求9所述的实现方法,其特征在于,所述掉电不易失存储器为Flash或EEPROM。 10. The method of claim 9 implemented claim, wherein said non-volatile memory is a power failure or Flash EEPROM.
CN201310569298.3A 2013-11-15 2013-11-15 Mobile terminal for recording number of times of illegal removal of battery and obtaining method thereof CN103577236B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310569298.3A CN103577236B (en) 2013-11-15 2013-11-15 Mobile terminal for recording number of times of illegal removal of battery and obtaining method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310569298.3A CN103577236B (en) 2013-11-15 2013-11-15 Mobile terminal for recording number of times of illegal removal of battery and obtaining method thereof

Publications (2)

Publication Number Publication Date
CN103577236A true CN103577236A (en) 2014-02-12
CN103577236B CN103577236B (en) 2017-02-01

Family

ID=50049083

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310569298.3A CN103577236B (en) 2013-11-15 2013-11-15 Mobile terminal for recording number of times of illegal removal of battery and obtaining method thereof

Country Status (1)

Country Link
CN (1) CN103577236B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106657517A (en) * 2016-12-21 2017-05-10 惠州Tcl移动通信有限公司 Mobile terminal and SIM card hard losing recording method based on mobile terminal

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020138772A1 (en) * 2001-03-22 2002-09-26 Crawford Timothy James Battery management system employing software controls upon power failure to estimate battery duration based on battery/equipment profiles and real-time battery usage
JP2008187410A (en) * 2007-01-29 2008-08-14 Kyocera Corp Portable terminal equipment
CN101408790A (en) * 2007-10-14 2009-04-15 国际商业机器公司 Method and system for detecting component removal while operating in a battery backup mode
CN102934313A (en) * 2010-06-11 2013-02-13 诺基亚公司 Method for battery removal detection
CN103381756A (en) * 2013-07-03 2013-11-06 惠州市亿能电子有限公司 Method for monitoring abnormal resetting or abnormal power failure of battery management system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020138772A1 (en) * 2001-03-22 2002-09-26 Crawford Timothy James Battery management system employing software controls upon power failure to estimate battery duration based on battery/equipment profiles and real-time battery usage
JP2008187410A (en) * 2007-01-29 2008-08-14 Kyocera Corp Portable terminal equipment
CN101408790A (en) * 2007-10-14 2009-04-15 国际商业机器公司 Method and system for detecting component removal while operating in a battery backup mode
CN102934313A (en) * 2010-06-11 2013-02-13 诺基亚公司 Method for battery removal detection
CN103381756A (en) * 2013-07-03 2013-11-06 惠州市亿能电子有限公司 Method for monitoring abnormal resetting or abnormal power failure of battery management system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106657517A (en) * 2016-12-21 2017-05-10 惠州Tcl移动通信有限公司 Mobile terminal and SIM card hard losing recording method based on mobile terminal
CN106657517B (en) * 2016-12-21 2019-11-26 Tcl移动通信科技(宁波)有限公司 A kind of mobile terminal and the SIM card based on mobile terminal fall card recording method firmly

Also Published As

Publication number Publication date
CN103577236B (en) 2017-02-01

Similar Documents

Publication Publication Date Title
CN104350546B (en) row hammering refresh command
EP2581826B1 (en) Method and device for cold starting android mobile terminal
CN101183801B (en) Power-off protection method, system and device
US9405502B2 (en) Electronic device and method for adjusting volume setting therefrom
TW469427B (en) Memory device having redundancy cells
CN101719959B (en) Method and device for automatically backing up and recovering key files of mobile terminal
CN102929805A (en) Power-down protection method for cache data in memory system
JP2016076251A (en) Parallel use of integrated non-volatile memory and main volatile memory within mobile device
CN103631934A (en) Garbage-file detecting method and device
US20130132751A1 (en) Electronic display device and power saving method
CN102279285A (en) Terminal and method for fall detection information, means
CN104216811B (en) The log collecting method and system of application program
WO2014198171A1 (en) Label based black box testing method and system for android user privacy leaks
TWI279725B (en) Computer system, system software installation method, and software installation method of portable computer
CN102122202B (en) Method for automatically starting mobile terminal and mobile terminal
CN1700642A (en) A method for implementing monotone counter
CN103167134A (en) Infinite storage system and method of mobile phone
US20060259795A1 (en) Portable computer and data backup method thereof
CN1248089C (en) Hand held apparatus having sleep function and operating method thereof
EP2824895B1 (en) Information backup method and apparatus, mobile terminal
US20140245286A1 (en) Application managing system and method using same
CN103999055A (en) Accessing data stored in a command/address register device
JP5598144B2 (en) Information processing apparatus, power supply control method, and program
US20140068350A1 (en) Self-checking system and method using same
US8719630B2 (en) Method and apparatus for monitoring interrupts during a power down event at a processor

Legal Events

Date Code Title Description
C06 Publication
C10 Entry into substantive examination
C14 Grant of patent or utility model