Summary of the invention
The embodiment of the present invention provides a kind of mobile terminal and anti-theft method for mobile terminal that can be antitheft, solves and carry out alarm and reminding when mobile terminal is taken out extremely, avoids terminal stolen.
In order to realize aforementioned goal of the invention, it can antitheft mobile terminal be to realize by following technical scheme that the embodiment of the present invention also provides a kind of:
Mobile terminal that can be antitheft, described mobile terminal comprises:
Module is set, is used for the unlatching of anti-theft feature being set or closing;
Light sensor, is used for when anti-theft feature is unlocked, and constantly detects ambient light intensity and feeds back to anti-theft module;
Anti-theft module, is used for, when light intensity changing value surpasses threshold value, triggering antitheft interruption, and wait for one default period and constantly detect described antitheft interrupt signal, if when this default period arrives, antitheft interruption still detected, control alarm module and sound the alarm.
In order to realize aforementioned goal of the invention, a kind of anti-theft method for mobile terminal that the embodiment of the present invention provides is achieved through the following technical solutions:
An anti-theft method for mobile terminal, described method comprises the steps:
When anti-theft module starts, light sensor is constantly detected ambient light intensity, when the light intensity changing value detecting surpasses threshold value, triggers antitheft interruption;
When anti-theft module detects described interruption, wait for one default period, and constantly detect interrupt signal, when this default period arrives, if antitheft interruption still detected, control alarm module and sound the alarm.
Further, described method also comprises:
User sets in advance described anti-theft module and starts or close, and when described anti-theft module is closed, does not trigger antitheft interruption.
The embodiment of the present invention can be antitheft mobile terminal and anti-theft method for mobile terminal, utilize light sensor according to the light intensity detecting abnormal conditions of external environment, and when abnormal generation, there is alarm signal, can prevent user's situation of hand-set from stolen unintentionally, just can realize mobile phone burglary-resisting function not increasing any external devices, improve user's experience.
Embodiment
In order to make the object of the embodiment of the present invention, technical scheme and advantage are clearer, below in conjunction with the accompanying drawing in the embodiment of the present invention, technical scheme in the embodiment of the present invention is carried out to clear, complete description, obviously, described embodiment is the present invention's part embodiment, rather than whole embodiment.Embodiment based in the present invention, those of ordinary skills, not making the every other embodiment obtaining under creative work prerequisite, belong to the scope of protection of the invention.
As shown in Figure 1, be the composition schematic diagram of a kind of mobile terminal that can be antitheft of the embodiment of the present invention.
Mobile terminal that can be antitheft, described mobile terminal comprises:
Module is set, is used for the unlatching of anti-theft feature being set or closing;
Light sensor, is used for when anti-theft feature is unlocked, and constantly detects ambient light intensity and feeds back to anti-theft module;
Anti-theft module, is used for, when light intensity changing value surpasses threshold value, triggering antitheft interruption, and wait for one default period and constantly detect described antitheft interrupt signal, if when this default period arrives, antitheft interruption still detected, control alarm module and sound the alarm.
Main flow smart mobile phone and flat board have all configured the transducer that distance perspective should be integrated with light sensor at present, the existence of light sensor can well be adjusted automatically according to the light intensity of external environment the brightness of LCD, for user reduces power consumption, improved on the other hand user's experience on the one hand.
The embodiment of the present invention is exactly to utilize the characteristic of light sensor, on the basis of existing mobile phone circuit, does not increase any external devices and just can realize mobile phone burglary-resisting function.This function makes mobile phone give the alarm stolen time and allow user discover from pocket or bag bag the inside.
Further, described alarm module is audio-frequency module, by anti-theft module, is controlled and is play predefined sound or user-defined audio files.
When mobile terminal is if mobile phone is in pocket or when the inside bag, the residing ambient light of mobile terminal is darker.Once mobile phone is out stolen, the intensity of light generally can change, and the light sensor IC of mobile phone can catch this variation very easily.The embodiment of the present invention is carried out light sensing to identify the improper process of taking out by detailed explanation light sensor:
First, mobile phone the anti-theft modes that module is used for arranging mobile phone is set, for example, can carry out opening and closing anti-theft modes by a menu, thereby realize anti-theft feature.Under default situations, close, avoid the false alarm under the normal service condition of user, although because user in the time of normal running time extraneous light intensity may change, because anti-theft feature is closed, so do not have any alarm, occur.
And when user need to be put into pocket or knapsack the inside mobile phone, need first opening anti-theft function.And when mobile phone does not operate for a long time, can enter holding state.For fear of when the holding state, anti-theft module can not be moved, and need to control light sensor and still work when holding state.
As shown in Figure 2, for range sensor and light sensor 2 close 1 transducer, wherein, POWER_SUPPLY: for IC provides operating voltage, this voltage can not turn-off in mobile phone sleep, if do not need anti-theft feature in sleep, can anti-theft module be turned off by IC register, thereby can not cause standby current to affect greatly stand-by time.
I2C_DAT and I2C_CLK: be the I2C interface of IC, and application processor CPU direct communication
INT: the interrupt output pin for IC, outputs to host CPU.
R1 is pull-up resistor, guarantees that interrupt signal is high in invalid.
C1 and C2 are the filter capacitor of power supply.
If Fig. 3 is the internal frame diagram of light sensor IC, as shown in Figure 2, there is a photodiode IC inside, can receive extraneous light signal, and after light signal is converted into the signal of telecommunication and delivers to Low Pass Fliter and process, be given to ALS DATA buffer and carry out AD and be converted to extraneous light value, finally deliver to I2C circuit.
I2C circuit has two kinds of triggering method:
1, the light value obtaining is directly passed to CPU by I2C, the brightness that CPU removes to mate LCD according to the value obtaining.
2, by the mode of interrupting.IC inside arranges the threshold values of triggering, when brightness surpasses this threshold values from low to high, can produce interruption, and again produces interruption from high to low time when brightness.
This circuit can not lose because of standby function, can in sleep, normally work by controlling this circuit, now, anti-theft module is arranged on to anti-theft modes lower time, and light sensor IC is operated under interrupt mode.Thereby without I2C, directly capture light value, can reduce the power consumption of CPU.Because light in pocket is always more weak, so light value does not have significant change, light sensor IC does not just have interruption yet, and application processor does not have the action to be processed of any need.
In order to realize aforementioned goal of the invention, the embodiment of the present invention also provides a kind of anti-theft method for mobile terminal, and described method comprises the steps:
S101. when anti-theft module starts, light sensor is constantly detected ambient light intensity, when the light intensity changing value detecting surpasses threshold value, triggers antitheft interruption;
S102. when anti-theft module detects described interruption, wait for one default period, and constantly detect interrupt signal, when this default period arrives, antitheft interruption still detected, control alarm module and sound the alarm.
Further, described method also comprises:
User sets in advance described anti-theft module and starts or close, and when described anti-theft module is closed, does not trigger antitheft interruption.
Once hand-set from stolen, mobile phone is taken out from pocket or bag, and now light intensity also occurs significantly to change thereupon, when the variation of light intensity reaches predefined threshold value, light sensor IC will detect the variation of extraneous light, produces an interruption to CPU.
The regular event of taking out in order to identify user oneself, prevent that user oneself from taking out mobile phone and producing false alarm, CPU postpones a period of time and removes to detect interrupting value again after receiving interrupt signal, if this interrupts still existing, CPU makes loudspeaker or speaker circuit and sounds.User also can this section of audio warning of User Defined.
Preferably select 7-10 second time of delay, on the one hand user oneself takes out mobile phone from pocket, because where familiar anti-theft feature can close, so can avoid false alarm closing anti-theft feature during this period of time.In addition on the one hand, this time also makes thief have little time forced shutdown and pulls out battery.Thereby realize good anti-theft feature.The embodiment of the present invention does not need to increase any peripheral circuit, only by the anti-theft module of mobile phone is set, can realize mobile phone burglary-resisting function.
The embodiment of the present invention can be antitheft mobile terminal and anti-theft method for mobile terminal, utilize light sensor according to the light intensity detecting abnormal conditions of external environment, and when abnormal generation, there is alarm signal, can prevent user's situation of hand-set from stolen unintentionally, just can realize mobile phone burglary-resisting function not increasing any external devices, improve user's experience.
Those skilled in the art will recognize that; above-mentioned embodiment is exemplary; in order to make those skilled in the art can better understand this patent content; should not be understood as the restriction to this patent protection range; so long as disclose spiritual do any according to this patent, be equal to change or modify, all falling into this patent protection range.