A kind of mobile phone antitheft system and method based on earphone unlock
Technical field
The present invention relates to a kind of mobile phone antitheft system and methods, refer in particular to a kind of using earphone as the hand of solution lock key
Machine burglary-resisting system and method.
Background technique
With greatly developing for the communication technology, the function of mobile phone is also constantly enhancing, and has not exclusively been for conversing
Mobile device, one-machine-multi-function and the developing direction for having become mobile phone is constantly bought to specialization.Certainly, the function mould of mobile phone
Block is more professional, quality is higher, and price is also more expensive, thus the probability for causing its stolen also greatly increases.
Existing technical solution is the emergent management scheme for cell phone apparatus after stolen mostly, for example iPhone is had
Some find my iphone(give my mobile phone for change) function.But due to extremely savage to the theft of smart phone at present,
And mobile phone is after stolen, system will not be reset, be caused to be difficult to recover mobile phone by professional embezzling group brush machine immediately by being difficult to ensure;Or
Even if person user by all means again gives mobile phone for change, but inevasible or can lose.
Summary of the invention
The purpose of the present invention is to provide a kind of mobile phone antitheft systems and method based on earphone unlock, once it is not inserted into
Earphone, or insertion earphone but input password mistake, that is, will call the police prompt user mobile phone may be stolen, and have user enough
Reaction time find and recover mobile phone, reduce loss.
In order to achieve the above object, the present invention provides a kind of mobile phone antitheft system based on earphone unlock, includes: alarm shape
State machine module is used to switch over mobile phone between anti-theft state and antitheft releasing state;Earphone is inserted into detection module,
The earphone interface whether being inserted into for test earphone on mobile phone, and judge whether the earphone of the insertion matches with mobile phone;Unlock
Brush machine testing module, when mobile phone current state is switched in anti-theft state by alarm condition machine module, the unlock brush machine testing mould
Block is for detecting whether have user to attempt to unlock mobile phone or enter the brush machine mode of mobile phone, and the licencing key for comparing its input is
No is setting value, if input password bad, issues alarm command and exit unlock or brush machine mode;Alarm module is used
In the alarm command that reception unlock brush machine testing module issues, and issue alarm signal.
Mobile phone antitheft system provided by the present invention based on earphone unlock also includes burglar alarm setup module, uses
In be arranged mobile phone alarm module alarm when play alarm the tinkle of bells, the tinkle of bells size, the information of motor vibration grade.
Mobile phone antitheft system provided by the present invention based on earphone unlock also includes the antitheft detection module of earphone, uses
Whether extracted from mobile phone in test earphone, if earphone, which extracts alarm state machine module, be in anti-theft state, to mould of alarming
Block issues alarm command and issues alarm signal by alarm module.
The alarm condition machine module, which is also used to be inserted into detection module in earphone, detects that earphone has been inserted into earphone on mobile phone
Interface, and when mobile phone is in earphone and plays music pattern, earphone keystroke trigger signal is received, and mobile phone is switched by anti-theft state
Extremely antitheft releasing state, or mobile phone is switched into anti-theft state by antitheft releasing state.
The alarm condition machine module, which is also used to be inserted into detection module in earphone, detects that earphone has been inserted into earphone on mobile phone
Interface, and when mobile phone is in earphone and plays music pattern, it receives pause and plays music key trigger signal, and by mobile phone current state
Switch to antitheft releasing state.
The present invention also provides a kind of anti-theft method of mobile phone based on earphone unlock, and it includes following steps:
Step B, mobile phone current state is switched to anti-theft state by the antitheft releasing state defaulted by alarm condition machine module,
Start the mobile phone antitheft system unlocked based on earphone;If inactive anti-theft state, cell phone system default process is executed;
Step C, earphone insertion detection module detects whether the earphone being inserted on mobile phone with the earphone that mobile phone matches
Interface is such as not inserted into matched earphone, and unlocks brush machine testing module and detect the operation for attempting to unlock mobile phone or brush machine, then
It issues alarm command and exits unlock or brush machine mode;
Step D, after the earphone insertion mobile phone to match with mobile phone, alarm condition machine module in anti-theft state and prevents mobile phone
It steals and is switched between releasing state;When mobile phone state is switched to anti-theft state by alarm condition machine module, step is continued to execute
Rapid E then exits this method when mobile phone state is switched to antitheft releasing state by alarm condition machine module;
Step E, unlock brush machine testing module detects whether that user attempts to unlock mobile phone or enters the brush machine mode of mobile phone,
And whether the licencing key for comparing its input is setting value, if input password bad, issues alarm command and exits unlock
Or brush machine mode;
Step F, alarm module receives the alarm command that unlock brush machine testing module issues, and issues alarm signal.
Also include before the step B: when step A, burglar alarm setup module setting mobile phone alarm module is alarmed
The alarm the tinkle of bells of broadcasting, the tinkle of bells size, the information of motor vibration grade.
In the step C, also include: step C1, whether earphone insertion detection module test earphone is inserted on mobile phone
Earphone interface then follow the steps C2 if earphone has been inserted into, if earphone is not inserted into, then follow the steps C3;
Step C2, whether the password inputted when the insertion of earphone insertion detection module test earphone is setting value, such as password
Correctly, then the earphone being inserted into is matched with mobile phone, then continues to execute step D, such as password bad, then the earphone and hand being inserted into
Machine mismatches, then returns to step C1;
Step C3, unlock brush machine testing module detects whether that user attempts to unlock mobile phone or enters the brush machine mould of mobile phone
Formula, if any then issuing alarm command and exit unlock or brush machine mode and then return to step C1 such as nothing.
In the step E, also include: step E1, unlocking brush machine testing module and detected whether that user attempts to unlock hand
Machine or the brush machine mode for entering mobile phone;If so, then continuing to execute step E2, if nothing, this method is exited;
Step E2, whether the licencing key that unlock brush machine testing module compares user's input is setting value, if password is correct,
Then allow mobile phone to unlock or carry out brush machine to mobile phone, if password mistake, unlocks brush machine testing module and issue alarm command and move back
Unlock or brush machine mode out, continue to execute step F.
Also include between the step D and step F: step G, whether the antitheft detection module test earphone of earphone is from hand
It is extracted on machine;If earphone extract alarm state machine module be in anti-theft state, to alarm module sending alarm command and by
Alarm module issues alarm signal.
In conclusion the mobile phone antitheft system and method provided by the present invention based on earphone unlock, utilizes the spy of earphone
Property, it is necessary to insertion just can enter the mobile phone unlock for needing to input password or brush machine interface with the earphone that mobile phone matches, and only
There is the ability normal release after correctly entering password, otherwise mobile phone can issue alarm signal to remind owner;In addition, working as earphone
When being not inserted into mobile phone, the present invention can make mobile phone enter anti-theft modes, if someone attempts unlock to light screen, switching on and shutting down at this time
Or brush machine, mobile phone can also issue alarm signal, remind user mobile phone stolen with this, so that user has sufficient time and information canal
Directly recover love machine in road.
Therefore, compared with prior art, when the opportunity of searching mobile phone can be advanceed to stolen after being stolen by the present invention, use
Family has enough reaction time searchings to recover love machine, does not need the stolen rear manual inquiry mobile phone information of user, recovers mobile phone in this way
Probability greatly improve, the loss of user can be preferably minimized.
Detailed description of the invention
Fig. 1 is the structural schematic diagram of the mobile phone antitheft system of the invention based on earphone unlock;
Fig. 2 is the basic flow chart of the anti-theft method of mobile phone of the invention based on earphone unlock;
Fig. 3 is the detail flowchart of the anti-theft method of mobile phone of the invention based on earphone unlock.
Specific embodiment
The present invention is done and is further explained by the way that a preferable specific embodiment is described in detail below in conjunction with FIG. 1 to FIG. 3
It states.
As shown in Figure 1, the mobile phone antitheft system provided by the present invention based on earphone unlock, includes: alarm condition machine mould
Block 3 is used to switch over mobile phone between anti-theft state and antitheft releasing state;Earphone is inserted into detection module 6, is used for
Whether test earphone is inserted into the earphone interface on mobile phone, and judges whether the earphone of the insertion matches with mobile phone;Unlock brush machine
Detection module 4 is connected with the alarm condition machine module 3 and earphone insertion detection module 6 respectively, works as alarm condition
When mobile phone current state is switched in anti-theft state by machine module 3, the unlock brush machine testing module 4 is for detecting whether there is user's examination
Diagram lock mobile phone or brush machine (Download) mode for entering mobile phone, and whether the licencing key for comparing its input is setting value,
If inputting password bad, issues alarm command and exit unlock or brush machine mode;The antitheft detection module 2 of earphone, difference
It is connected with the alarm condition machine module 3 and earphone insertion detection module 6, whether is pulled out from mobile phone for test earphone
Out, if earphone, which extracts alarm state machine module 3, is in anti-theft state, alarm command is issued;Alarm module 5, respectively with
The unlock brush machine testing module 4 and the antitheft detection module 2 of earphone is connected, for receiving unlock brush machine testing module 4
The alarm command of sending, and issue alarm signal.
Mobile phone antitheft system provided by the present invention based on earphone unlock also includes burglar alarm setup module 1, with
The alarm module 5 is connected, for the alarm the tinkle of bells played when mobile phone alarm module 5 is alarmed, the tinkle of bells size, motor to be arranged
The information of shock levels.
The alarm signal that the alarm module 5 issues is the alarm the tinkle of bells as set by burglar alarm setup module 1, and
The vibration motor strength of mobile phone is shaken, makes user that can perceive oneself mobile phone in being stolen in first time.
Mobile phone antitheft system provided by the present invention based on earphone unlock also includes the antitheft detection module 2 of earphone, uses
Whether extracted from mobile phone in test earphone, if earphone, which extracts alarm state machine module 3, be in anti-theft state, to mould of alarming
Block 5 issues alarm command and issues alarm signal by alarm module 5.
It is antitheft releasing state that the alarm condition machine module 3, which defaults mobile phone current state,.
Detect that earphone has been inserted into the earphone interface on mobile phone when earphone is inserted into detection module 6, and mobile phone is broadcast in earphone
When mode of putting the music on, mobile phone current state is switched into antitheft shape by long-pressing earphone keystroke, the alarm condition machine module 3
State, mobile phone current state is switched to antitheft releasing state by long-pressing earphone keystroke, the alarm condition machine module 3 again.
Detect that earphone has been inserted into the earphone interface on mobile phone when earphone is inserted into detection module 6, and mobile phone is broadcast in earphone
When mode of putting the music on, presses pause and play music key, mobile phone current state is switched to antitheft by the alarm condition machine module 3
Releasing state.
As shown in Figures 2 and 3, the present invention also provides a kind of anti-theft method of mobile phone based on earphone unlock, it includes following
Step:
Step A, it is big that alarm the tinkle of bells, the tinkle of bells played when mobile phone alarm module 5 is alarmed is arranged in burglar alarm setup module 1
Small, motor vibration grade information;
Step B, mobile phone current state is switched to antitheft shape by the antitheft releasing state defaulted by alarm condition machine module 3
State starts the mobile phone antitheft system unlocked based on earphone;If inactive anti-theft state, cell phone system default process is executed;
Step C, earphone insertion detection module 6 detects whether the earphone being inserted on mobile phone with the earphone that mobile phone matches
Interface is such as not inserted into matched earphone, and unlocks brush machine testing module 4 and detect the operation for attempting to unlock mobile phone or brush machine,
It then issues alarm command and exits unlock or brush machine mode;
Step C1, whether earphone insertion 6 test earphone of detection module is inserted into the earphone interface on mobile phone, as earphone has been inserted
Enter, then follow the steps C2, if earphone is not inserted into, thens follow the steps C3;
Step C2, whether the password inputted when the insertion of earphone insertion 6 test earphone of detection module is setting value, such as password
Correctly, then the earphone being inserted into is matched with mobile phone, then continues to execute step D, such as password bad, then the earphone and hand being inserted into
Machine mismatches, then returns to step C1;
Step C3, unlock brush machine testing module 4 detects whether that user attempts to unlock mobile phone or enters the brush machine mould of mobile phone
Formula, if any then issuing alarm command and exit unlock or brush machine mode and then return to step C1 such as nothing;
Step D, after the earphone insertion mobile phone to match with mobile phone, alarm condition machine module 3 to mobile phone in anti-theft state and
It is switched between antitheft releasing state;When mobile phone state is switched to anti-theft state by alarm condition machine module 3, continue to execute
Step E then exits this method when mobile phone state is switched to antitheft releasing state by alarm condition machine module 3;
Step E, unlock brush machine testing module 4 detects whether that user attempts to unlock mobile phone or enters the brush machine mould of mobile phone
Formula, and whether the licencing key for comparing its input is setting value, if input password bad, issues alarm command and exits solution
Lock or brush machine mode;
Step E1, unlock brush machine testing module 4 detects whether that user attempts to unlock mobile phone or enters the brush machine mould of mobile phone
Formula;If so, then continuing to execute step E2, if nothing, this method is exited;
Step E2, whether the licencing key that unlock brush machine testing module 4 compares user's input is setting value, if password is just
Really, then allow mobile phone to unlock or carry out brush machine to mobile phone, if password mistake, unlock brush machine testing module 4 and issue alarm command
And unlock or brush machine mode are exited, continue to execute step F;
Step F, alarm module 5 receives the alarm command that unlock brush machine testing module 4 issues, and issues alarm signal, should
Alarm signal is the alarm the tinkle of bells as set by burglar alarm setup module 1, and shakes the vibration motor strength of mobile phone, is used
Family can perceive oneself mobile phone in being stolen in first time.
Further, the anti-theft method of mobile phone provided by the present invention based on earphone unlock, between step D and step F also
Include: step G, whether antitheft 2 test earphone of detection module of earphone is extracted from mobile phone;If earphone extracts alarm state machine mould
Block 3 is in anti-theft state, then issues alarm command to alarm module 5 and issue alarm signal by alarm module 5.
In conclusion the mobile phone antitheft system and method provided by the present invention based on earphone unlock, utilizes the spy of earphone
Property, it is necessary to insertion just can enter the mobile phone unlock for needing to input password or brush machine interface with the earphone that mobile phone matches, and only
There is the ability normal release after correctly entering password, otherwise mobile phone can issue alarm signal to remind owner;In addition, working as earphone
When being not inserted into mobile phone, the present invention can make mobile phone enter anti-theft modes, if someone attempts unlock to light screen, switching on and shutting down at this time
Or brush machine, mobile phone can also issue alarm signal, remind user mobile phone stolen with this, so that user has sufficient time and information canal
Directly recover love machine in road.
Therefore, compared with prior art, when the opportunity of searching mobile phone can be advanceed to stolen after being stolen by the present invention, use
Family has enough reaction time searchings to recover love machine, does not need the stolen rear manual inquiry mobile phone information of user, recovers mobile phone in this way
Probability greatly improve, the loss of user can be preferably minimized.
It is discussed in detail although the contents of the present invention have passed through above preferred embodiment, but it should be appreciated that above-mentioned
Description is not considered as limitation of the present invention.After those skilled in the art have read above content, for of the invention
A variety of modifications and substitutions all will be apparent.Therefore, protection scope of the present invention should be limited to the appended claims.