Summary of the invention
The object of the invention is to propose a kind of method and device of realizing mobile terminal accessing control of authority based on NFC, can make mobile terminal automatically between administrator mode and visitor's pattern, switch, without user's manual switchover, for user provides convenience.
For reaching this object, the present invention by the following technical solutions:
A method that realizes mobile terminal accessing control of authority based on NFC, comprising:
Detect the NFC peripheral hardware in setting range;
If NFC peripheral hardware detected, judge whether described NFC peripheral hardware is the binding NFC peripheral hardware of mobile terminal, if so, controls mobile terminal and enters default administrator mode, if not, control mobile terminal and enter default visitor's pattern;
If NFC peripheral hardware do not detected, control mobile terminal and enter default visitor's pattern.
Wherein, before the NFC peripheral hardware in described detection setting range, also comprise:
The administrator mode of default mobile terminal, the authority under administrator mode outside root authority is all available;
Visitor's pattern of default mobile terminal under described administrator mode, the authority that under described visitor's pattern, only keeper sets can be used;
And, set up the binding relationship of mobile terminal and corresponding NFC peripheral hardware.
Wherein, the NFC peripheral hardware in described detection setting range, is specially:
According to whether having NFC peripheral hardware in default time cycle detection setting range; .
Wherein, the described default time cycle is 1-5 minute; Described setting range is interior for being less than 10 centimetres.
Wherein, described control mobile terminal also comprises after entering default administrator mode:
When receiving the instruction of revising binding NFC peripheral hardware, receive the password code of user's input, and described in verification, whether password code is correct; If password code is correct, revise binding NFC peripheral hardware, otherwise refusal is revised binding NFC peripheral hardware;
And,
When receiving modification visitor mode instruction, according to user's edit instruction, upgrade the authority of visitor's pattern.
Wherein, also comprise: before entering administrator mode, if the instruction that the request of receiving enters administrator mode receive the identifying code that user inputs, and whether identifying code is correct described in verification; If correct, control mobile terminal and enter administrator mode, otherwise, control mobile terminal and enter visitor's pattern.
The present invention provides a kind of device of realizing mobile terminal accessing control of authority based on NFC on the other hand, comprising:
NFC detection module, detects the NFC peripheral hardware in setting range;
The first control module, if for NFC peripheral hardware being detected, judges whether described NFC peripheral hardware is the binding NFC peripheral hardware of mobile terminal, if so, controls mobile terminal and enters default administrator mode, if not, control mobile terminal and enter default visitor's pattern;
The second control module, if for NFC peripheral hardware not detected, controls mobile terminal and enters default visitor's pattern.
Wherein, also comprise module is set, for the administrator mode of default mobile terminal, the authority under administrator mode outside root authority is all available; And for preset visitor's pattern of mobile terminal under described administrator mode, described visitor's pattern authority that only keeper sets can be used;
The described module that arranges, also for setting up the binding relationship of mobile terminal and corresponding NFC peripheral hardware;
Whether described NFC detection module, specifically for having NFC peripheral hardware in the time cycle detection setting range according to default;
Wherein, the described default time cycle is 1-5 minute; Described setting range is for being less than 10 centimetres.
Wherein, the described module that arranges, also, for when receiving the instruction of revising binding NFC peripheral hardware, receive the password code of user's input, and described in verification, whether password code is correct; If password code is correct, revise binding NFC peripheral hardware, otherwise refusal is revised binding NFC peripheral hardware; And, when receiving modification visitor mode instruction, according to user's edit instruction, upgrade the authority of visitor's pattern.
Wherein, also comprise the 3rd control module, for when the request of receiving enters the instruction of administrator mode, receive the identifying code of user's input, and described in verification, whether identifying code is correct; If correct, control mobile terminal and enter administrator mode, otherwise, control mobile terminal and enter visitor's pattern.
Implement the embodiment of the present invention, there is following beneficial effect:
The NFC peripheral hardware that the embodiment of the present invention has user ID by detection judges whether active user is owner user; and then realized the effect that mobile terminal automatically switches between administrator mode and visitor's pattern; better protect mobile terminal owner's privacy; without user's blocked operation, to user, brought facility simultaneously.
Embodiment
First to NFC(Near Field Communication, close range wireless communication) technology is briefly described.NFC near-field communication technology is combining induction card reader, induction type card and point-to-point function on one chip, can in short distance, identify and exchanges data with compatible equipment.Frequency of operation is 13.56MHz.User is by supporting the mobile device of NFC technology can board as airport gate inhibition's key, traffic all-purpose card, credit card, Payment Card of checking, mansion etc.
The simple mode of NFC peripheral hardware is exactly the gate inhibition's principle copying in existing card.NFC peripheral hardware passes to corresponding card reader by identity information, and the latter sends again existing gate control system to, finally opens door.Like this, without using key or smart card, just can provide that safer, more portable mode configures, monitoring and modified logo card security parameter, not only eliminated the risk that tag card is replicated, but also can distribute where necessary tag card temporarily, if lose or stolenly also can cancel tag card.
NFC:
Network type: point-to-point
Service range :≤0.1m
Time Created: <0.1s
Speed: about 212Kbps
Security: possess, hardware is realized
Communication pattern: initiatively-active/passive
Cost: low.
Below in conjunction with accompanying drawing of the present invention, technical scheme in the embodiment of the present invention is carried out to clear, complete description, obviously, described embodiment is only a part of embodiment of the present invention, rather than whole embodiment.Embodiment based in the present invention, the every other embodiment that those of ordinary skills obtain under the prerequisite of not making creative work, belongs to the scope of protection of the invention.
Refer to Fig. 1, the method that realizes mobile terminal accessing control of authority based on NFC of the present embodiment specifically comprises the steps S1-S3:
Step S1, detects the NFC peripheral hardware in setting range.
Mobile terminal in the embodiment of the present invention has the NFC of support peripheral hardware, can identify the function of information in NFC peripheral hardware, has the function of NFC peripheral hardware card reader.During concrete enforcement, before detecting NFC peripheral hardware, also need to set up in advance the binding relationship of mobile terminal and corresponding NFC peripheral hardware.Set up mobile terminal and the corresponding relation of binding NFC peripheral hardware.
In the embodiment of the present invention, described NFC peripheral hardware can be made as intelligent watch, finger ring, bracelet etc. and facilitate user to dress the form of peripheral hardware.And the identification information in each NFC peripheral hardware has uniqueness.
Step S2, if NFC peripheral hardware detected, judges whether described NFC peripheral hardware is the binding NFC peripheral hardware of mobile terminal, if so, controls mobile terminal and enters default administrator mode, otherwise, control mobile terminal and enter default visitor's pattern.
During concrete enforcement, if NFC peripheral hardware detected, obtain the user ID in described NFC peripheral hardware, by user ID, judge whether described NFC peripheral hardware is the binding NFC peripheral hardware of mobile terminal.
In the embodiment of the present invention, described administrator mode is gathered around the highest systematic rights of using, and the authority can be outside root authority is all available.During concrete enforcement, need preset the administrator mode of mobile terminal, and under described administrator mode, preset visitor's pattern of mobile terminal, the authority that under described visitor's pattern, only keeper sets can be used.For example, can be long-distance by dialing, check that the authorities such as note/message registration, Alipay, QQ, installation Uninstaller, file modification operation and/or default are made as only administrator mode and can use, under visitor's pattern, described function is unavailable.
Step S3, if NFC peripheral hardware do not detected, controls mobile terminal and enters default visitor's pattern.When mobile terminal leaves owner user, can automatically switch to visitor's pattern.
Can be understood as; the present embodiment is actually based on NFC short-range communication chip; customize the NFC peripheral hardware of a class mobile terminal; user wears this peripheral hardware, when mobile terminal takes, or when leaving hand; can be by some automatic locking unlocking programs that arrange; start secret protection etc., after namely mobile terminal disengaging owner, by automatic encryption enabled program, predefined access program and data are hidden automatically.During concrete enforcement, mobile terminal detects in setting range whether have NFC peripheral hardware according to the default time cycle, if have, judge whether described NFC peripheral hardware is the binding NFC peripheral hardware of mobile terminal, if, control mobile terminal and enter default administrator mode, if not, control mobile terminal and enter default visitor's pattern.To adjust in time the access module of mobile terminal, avoid the leakage of owner's privacy information.
The method of the mobile terminal accessing control of authority by the present embodiment; identification using NFC peripheral hardware corresponding to mobile terminal as owner; when mobile terminal senses with corresponding NFC peripheral hardware; automatically enter administrator mode, active user gathers around systematic this authority, otherwise; mobile terminal enters visitor's pattern automatically; the part authority of mobile terminal is limited, and active user's operating right is limited, to protect owner's personal secrets.As long as the user that owner or owner authorize picks up corresponding NFC peripheral hardware near mobile terminal, by NFC, respond to, just can obtain administrator right, when mobile terminal leaves the coverage of NFC induction, automatically enter visitor's pattern, realized a kind of method that new mobile terminal accessing pattern is switched, without user's manual switchover operation, for user bring facility.
Preferably, in the embodiment of the present invention, mobile terminal can be detected in setting range and whether have the default time cycle of NFC peripheral hardware to be made as 1-5 minute, by described setting range for being less than 10 centimetres.Suppose that owner carries the NFC peripheral hardware that mobile terminal is corresponding, when owner user leaves or mobile terminal is used to other people, can adjust in time running of mobile terminal adapt pattern.Because NFC distance of reaction is also with regard to 10cm, therefore can not obtain authority when other people use mobile phone at one's side, do not enter administrator mode yet.
For the more detailed explanation method that realizes mobile terminal accessing control of authority based on NFC of the present invention, the present invention also provides the process flow diagram of another embodiment of the method, refers to Fig. 2, comprises the steps S21-S27.
Step S21, sets up the binding relationship of mobile terminal and corresponding NFC peripheral hardware.
Step S22, default administrator mode, default visitor's pattern.
Step S23, does the default time cycle arrive? if so, carry out next step, otherwise, return and carry out current step.
Does step S24, detect in setting range and has NFC peripheral hardware? if have, carry out next step, otherwise, control mobile terminal and enter visitor's pattern.
Step S25, obtains the user ID in described NFC peripheral hardware.
Step S26, does is described user ID default owner's sign? if so, carry out next step, otherwise, control mobile terminal and enter default visitor's pattern.
Step S27, controls mobile terminal and enters administrator mode.
Further, when mobile terminal is during in administrator mode, user also can change binding NFC peripheral hardware.When receiving the instruction of revising binding NFC peripheral hardware, receive the password code of user's input, and described in verification, whether password code is correct; If password code is correct, revise binding NFC peripheral hardware, otherwise refusal is revised binding NFC peripheral hardware.Revise the concrete steps of bindtype NFC peripheral hardware as shown in Figure 3, comprise the steps:
Does step S31, receive the instruction of revising binding NFC peripheral hardware? if so, carry out next step, otherwise, return and carry out current step.
Step S32, receives the password code that user inputs.
Step S33, whether password code correct described in verification? if so, carry out next step, otherwise refusal is revised binding NFC peripheral hardware.
Step S34, revises binding NFC peripheral hardware, re-establishes the binding relationship of mobile terminal and corresponding NFC peripheral hardware.
Further, user also can modify to default visitor's pattern, and retouching operation only can carry out under administrator mode.When receiving modification visitor mode instruction, according to user's edit instruction, upgrade the authority of visitor's pattern.To meet the different demands of user's different times, visitor's pattern of customization different rights.
It should be noted that, except using NFC peripheral hardware to control mobile terminal, automatically enter administrator mode, also can enter administrator mode by the corresponding setting option request of mobile terminal.When the request of receiving enters the instruction of administrator mode, receive the identifying code of user's input, and described in verification, whether identifying code is correct; If correct, control mobile terminal and enter administrator mode, otherwise, control mobile terminal and enter visitor's pattern.Even under visitor's pattern, the identifying code that other users can reader primary user set is manually controlled mobile terminal and is entered into administrator mode.
By the above embodiment of the present invention, optimized the switching controls mode of mobile terminal accessing authority, realized the effect that mobile terminal switches automatically between administrator mode and visitor's pattern, without user's manual switchover, for user provides convenience.
For what the embodiment of the present invention provided, based on NFC, realize the embodiment of the device of mobile terminal accessing control of authority below.The embodiment of described device and above-mentioned embodiment of the method belong to a total design, and the detail content of detailed description not in the embodiment of device, can be with reference to said method embodiment.
Refer to Fig. 4, described device comprisesNFC detection module 410, thefirst control module 420 and thesecond control module 430.
DescribedNFC detection module 410, for detection of the NFC peripheral hardware in setting range.Described NFC peripheral hardware can be made as intelligent watch, finger ring, bracelet etc. and facilitate user to dress the form of peripheral hardware.
Thefirst control module 420, if for NFC peripheral hardware being detected, judges whether described NFC peripheral hardware is the binding NFC peripheral hardware of mobile terminal, if so, controls mobile terminal and enters default administrator mode, otherwise, control mobile terminal and enter default visitor's pattern.
During concrete enforcement, if NFC peripheral hardware detected, obtain the user ID in described NFC peripheral hardware, by user ID, judge whether described NFC peripheral hardware is the binding NFC peripheral hardware of mobile terminal.
Thesecond control module 430, if for NFC peripheral hardware not detected, controls mobile terminal and enters default visitor's pattern.
Wherein, described administrator mode is gathered around the highest systematic rights of using, and the authority can be outside root authority is all available.During concrete enforcement, need preset the administrator mode of mobile terminal, and under described administrator mode, preset visitor's pattern of mobile terminal, the authority that under described visitor's pattern, only keeper sets can be used.For example, can be long-distance by dialing, check that the authorities such as note/message registration, Alipay, QQ, installation Uninstaller, file modification operation and/or default are made as only administrator mode and can use, under visitor's pattern, described function is unavailable.
Preferably, described device also comprisesmodule 400 is set, for setting up the binding relationship of mobile terminal and corresponding NFC peripheral hardware, and under described administrator mode visitor's pattern of default mobile terminal, the authority that described visitor's pattern is only set can be used.
Concrete, whether describedNFC detection module 410, specifically for having NFC peripheral hardware in the time cycle detection setting range according to default; Wherein, the described default time cycle is 1-5 minute; Described setting range is for being less than 10 centimetres.
Preferably, the describedmodule 400 that arranges, also, for when receiving the instruction of revising binding NFC peripheral hardware, receives the password code of user's input, and whether password code is correct described in verification; If password code is correct, revise binding NFC peripheral hardware, otherwise refusal is revised binding NFC peripheral hardware; And, when receiving modification visitor mode instruction, according to user's edit instruction, upgrade the authority of visitor's pattern.
The device of the present embodiment also comprises the 3rd control module, for when the request of receiving enters the instruction of administrator mode, receive the identifying code of user's input, and described in verification, whether identifying code is correct; If correct, control mobile terminal and enter administrator mode, otherwise, control mobile terminal and enter visitor's pattern.
By implementing the above embodiment of the present invention; identification using NFC peripheral hardware corresponding to mobile terminal as owner; when sensing with corresponding NFC peripheral hardware; automatically control mobile terminal and enter administrator mode; gather around systematic this authority, otherwise, automatically control mobile terminal and enter visitor's pattern; part authority is limited, to protect mobile terminal owner's personal secrets.As long as the user that owner or owner authorize picks up corresponding NFC peripheral hardware near mobile terminal, by NFC, respond to, just can obtain administrator right, when mobile terminal leaves the coverage of NFC induction, automatically switch to visitor's pattern, realized a kind of method that new mobile terminal accessing pattern is switched, without user's manual switchover operation, for user bring facility.
Above disclosed is only preferred embodiment of the present invention, certainly can not limit with this claim scope of the present invention, therefore, all any modifications of doing within the spirit and principles in the present invention, be equal to and replace and improvement etc., still belong to the scope that the present invention is contained.