Summary of the invention
In view of this, the invention provides control method and the system of a kind of mobile device USB interface connection, to realize when the password of mobile device operation system is cracked, other staff cannot spy upon the information in mobile device by USB interface.
The control method that mobile device USB interface connects, comprising:
When detecting that mobile device is connected with miscellaneous equipment by USB interface, prompting user inputs connection password;
Obtain the connection password of user's input;
Judge that whether described connection password is correct;
If described connection password is correct, then obtain the international mobile subscriber identity IMSI comprised in the client identification module SIM card of installing in described mobile device, and the current registration community of described SIM card;
Judge that whether described IMSI is consistent with the IMSI stored before, and described current registration community is whether in the cell range stored before;
If described IMSI is consistent with the described IMSI stored before, and described current registration community is in the described cell range stored before, then trigger described USB interface, makes described mobile device be connected with described miscellaneous equipment;
If described IMSI and the described IMSI stored before is inconsistent, or described current registration community is not in the described cell range stored before, then controls described USB interface and close;
If described connection password bad, then control described USB interface and close.
Preferably, when user logs in first, the described connection password of user's input is initial password.
Preferably, the international mobile subscriber identity IMSI comprised in the client identification module SIM card of installing in the described mobile device of described acquisition, and before the current registration community of described SIM card, also comprise:
Whether prompting user changes described connection password;
If user changes described connection password, then the change obtaining user's input connects password;
After preset time period, prompting user again inputs described change and connects password;
Whether identically judge that the described change of user's twice input connects password;
If it is identical that the described change of twice input connects password, then store described change and connect password;
If user does not change described connection password, then obtain the command information not changing password of user's input.
Preferably, described when detecting that mobile device is connected with miscellaneous equipment by USB interface, prompting user also comprises before inputting and connecting password:
Obtain the USB function open command of user's input;
After described USB function is opened, prompting user resets the closedown password of described USB function;
Obtain the closedown password of user's input, and preserve described closedown password;
Trigger action system obtains the current registration community of described IMSI and the described SIM card comprised in described SIM card and the relevant information of peripheral cell, and described relevant information comprises country identity identification number ID, network ID, region ID and community ID;
Store the relevant information of described IMSI, described current registration community and described peripheral cell.
Preferably, in the described USB interface of described triggering, described mobile device is connected with described miscellaneous equipment, or after the described USB interface closedown of described control, also comprises:
Obtain the described closedown password of user's input, close described USB function.
The control system that mobile device USB interface connects, comprising:
First Tip element, for when detecting that mobile device is connected with miscellaneous equipment by USB interface, prompting user inputs connection password;
First acquiring unit, for obtaining the connection password of user's input;
First judging unit, whether correct for judging described connection password;
Second acquisition unit, if correct for described connection password, then obtains the international mobile subscriber identity IMSI comprised in the client identification module SIM card of installing in described mobile device, and the current registration community of described SIM card;
Second judging unit, for judging that whether described IMSI is consistent with the IMSI stored before, and whether described current registration community is in the cell range stored before;
First trigger element, if consistent with the described IMSI stored before for described IMSI, and described current registration community is in the described cell range stored before, then trigger described USB interface, and described mobile device is connected with described miscellaneous equipment;
First control module, if inconsistent for described IMSI and the described IMSI stored before, or described current registration community is not in the described cell range stored before, then control described USB interface and close;
Second control module, if for described connection password bad, then controls described USB interface and closes.
Preferably, when user logs in first, the described connection password of user's input is initial password.
Preferably, also comprise:
Second Tip element, for obtaining the international mobile subscriber identity IMSI comprised in the client identification module SIM card of installing in described mobile device at described second acquisition unit, and before the current registration community of described SIM card, whether prompting user changes described connection password;
3rd acquiring unit, if change described connection password for user, then the change obtaining user's input connects password;
3rd Tip element, for after preset time period, prompting user again inputs described change and connects password;
Whether the 3rd judging unit is identical for judging that the described change of user's twice input connects password;
First storage unit, if identical for the described change connection password of twice input, then store described change and connects password;
4th acquiring unit, if do not change described connection password for user, then obtains the command information not changing password of user's input.
Preferably, also comprise:
5th acquiring unit, for when described first Tip element detects that mobile device is connected with miscellaneous equipment by USB interface, prompting user obtains the USB function open command of user's input before inputting and connecting password;
4th Tip element, for after described USB function is opened, prompting user resets the closedown password of described USB function;
6th acquiring unit, for obtaining the closedown password of user's input, and preserves described closedown password;
Second trigger element, obtain the current registration community of described IMSI and the described SIM card comprised in described SIM card and the relevant information of peripheral cell for trigger action system, described relevant information comprises country identity identification number ID, network ID, region ID and community ID;
Second storage unit, for storing the relevant information of described IMSI, described current registration community and described peripheral cell.
Preferably, also comprise:
7th acquiring unit, for triggering described USB interface at described first trigger element, make after described mobile device is connected with described miscellaneous equipment, or after described first control module controls the closedown of described USB interface, or after described second control module controls the closedown of described USB interface, obtain the described closedown password of user's input, close described USB function.
As can be seen from above-mentioned technical scheme, the invention provides control method and the system of the connection of a kind of mobile device USB interface, when detecting that mobile device is connected with miscellaneous equipment by USB interface, prompting user inputs connection password, after detecting that connection password is correct, judge that whether the IMSI comprised in SIM card in mobile device is consistent with the IMSI stored before again, and whether the current registration community of SIM card is in the cell range stored before, and the IMSI judging to comprise in SIM card with before the IMSI that stores consistent, and the current registration community of SIM card in the cell range stored before time just trigger USB interface, otherwise, control USB interface is closed.Can find out, the present invention adopts increase before USB interface connects to connect password judgement and SIM card judges that the technological means of two decision conditions is to ensure the connection safety of USB interface.When mobile device something unexpected happened, such as, when losing, only have these two decision conditions to meet simultaneously and pre-conditionedly just can trigger USB interface.Like this, even if the password of mobile device operation system is cracked, when any one condition in these two decision conditions does not meet pre-conditioned, other staff also cannot spy upon the information in mobile device by USB interface, thus ensure that the information security of mobile device user.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
The embodiment of the invention discloses control method and the system of the connection of a kind of mobile device USB interface, to realize when the password of mobile device operation system is cracked, other staff cannot spy upon the information in mobile device by USB interface.
See Fig. 1, the control method process flow diagram that disclosed in the embodiment of the present invention, a kind of mobile device USB interface connects, comprising:
Step S11, when detecting that mobile device is connected with miscellaneous equipment by USB interface, prompting user input connection password;
Wherein, when user logs in first, the connection password of user's input is initial password, and initial password can be 123456,111111 etc., and the present invention does not limit at this.
The connection password of step S12, acquisition user input;
Step S13, judge that described connection password is whether correct, if so, then perform step S14, otherwise, perform step S17;
Step S14, obtain SIM (the Subscriber Identity Module installed in described mobile device, client identification module) IMSI (the International Mobile Subscriber IdentificationNumber that comprises in card, international mobile subscriber identity), and the current registration community of described SIM card;
Wherein, SIM card is also referred to as subscriber identification card, smart card, and GSM (Global System forMobile Communication, global system for mobile communications) digital mobile telephone must be loaded onto this card and can use.Store the information of digital mobile phone client in SIM card, the contents such as the key of encryption and the telephone directory of user, can differentiate for GSM network client identity, and voice messaging when conversing to client is encrypted.
IMSI is the mark of difference mobile subscriber, is stored in SIM card, can be used for the effective information distinguishing mobile subscriber.The total length of IMSI is no more than 15, uses the numeral of 0 ~ 9 equally.
It should be noted is that, the region residing for SIM card is different, the registration community also corresponding difference of SIM card.
Wherein, community is the minimum service unit of mobile system.
Concrete, base station comprises community, and community comprises sector, and can there be multiple carrier frequency each sector.In general, (base station also can be divided into several community to community, one, a base station, now community and sector are equal to), community is further divided into sector (generally, there are one/bis-/tri-sectors a community, even more), each sector determines the quantity of carrier frequency again according to telephone traffic.
Step S15, judge that whether described IMSI is consistent with the IMSI stored before, and described current registration community is whether in the cell range stored before, if so, then performs step S16, otherwise, perform step S17;
Step S16, trigger described USB interface, described mobile device is connected with described miscellaneous equipment;
Step S17, control described USB interface close.
In summary it can be seen, the present invention is when detecting that mobile device is connected with miscellaneous equipment by USB interface, prompting user inputs connection password, after detecting that connection password is correct, judge that whether the IMSI comprised in SIM card in mobile device is consistent with the IMSI stored before again, and whether the current registration community of SIM card is in the cell range stored before, and the IMSI judging to comprise in SIM card with before the IMSI that stores consistent, and the current registration community of SIM card in the cell range stored before time just trigger USB interface, otherwise, control USB interface is closed.The present invention adopts increase before USB interface connects to connect password judgement and SIM card judges that the technological means of two decision conditions is to ensure the connection safety of USB interface.When mobile device something unexpected happened, such as, when losing, only have these two decision conditions to meet simultaneously and pre-conditionedly just can trigger USB interface.Like this, even if the password of mobile device operation system is cracked, when any one condition in these two decision conditions does not meet pre-conditioned, other staff also cannot spy upon the information in mobile device by USB interface, thus ensure that the information security of mobile device user.
Be understandable that, for ensureing the safety connecting password, user can also connect password according to the needs change of self.
Therefore, for optimizing above-described embodiment further, see Fig. 2, the control method process flow diagram that disclosed in another embodiment of the present invention, a kind of mobile device USB interface connects, on basis embodiment illustrated in fig. 1, before step S14, also comprises step:
Whether step S21, prompting user change described connection password, if so, then perform step S22, otherwise, perform step S26;
The change of step S22, acquisition user input connects password;
Step S23, after preset time period, prompting user again input described change connection password;
Wherein, preset time period is determined according to actual needs, and the present invention does not limit at this.
Step S24, whether identical, if so, then perform step S25 if judging that the described change of user's twice input connects password;
Step S25, store described change connect password;
The command information not changing password of step S26, acquisition user input.
It should be noted that, if exceed preset time period, do not receive any information of user's input, then default user does not change password, then continues to perform step S14.
Therefore, user connects password by amendment increases the security and confidentiality that connect password, thus ensures the connection safety of USB interface further.
Wherein, when the change of user's twice input connects password difference, USB function can point out the change of user's second time input to connect code error, and prompting user again inputs change and connects password, until the change that again inputs connects password and the change inputted for the first time, to connect password identical.
It should be noted that, mobile device user can also according to the change in region residing for mobile device, change the IMSI and the current registration community of SIM card and the information of peripheral cell that comprise in the SIM card stored, to avoid the change due to mobile device use region, and user is caused to use USB interface.
Therefore, for optimizing above-described embodiment further, see Fig. 3, the control method process flow diagram that disclosed in another embodiment of the present invention, a kind of mobile device USB interface connects, on basis embodiment illustrated in fig. 1, before step S11, also comprises:
The USB function open command of step S31, acquisition user input;
Step S32, after described USB function is opened, prompting user resets the closedown password of described USB function;
It should be noted that, before user resets the closedown password of USB function, the closedown password before all needing to input.
The closedown password of step S33, acquisition user input, and preserve described closedown password;
Step S34, trigger action system obtain the current registration community of described IMSI and the described SIM card comprised in described SIM card and the relevant information of peripheral cell;
Wherein relevant information comprises national ID (Identity, identify label number), network ID, region ID and the community ID of current registration community and peripheral cell.
Step S35, store the relevant information of described IMSI, described current registration community and described peripheral cell.
Can find out, user reopens USB function at every turn, all trigger action system can again obtain the current registration community of IMSI and the SIM card comprised in SIM card and the relevant information of peripheral cell.Therefore, during the community of registering before the region residing for mobile device not, for ensureing that USB interface can continue to use, user, by reopening USB function, realizes the renewal to the information of storage.
For ensureing security and the confidentiality of closing password, after user opens USB function at every turn, all can point out user that closedown password is set again.
It should be noted that, USB function is opened and before receiving closedown password, all can be controlled the connection of USB interface.
Wherein, the step S31 in the present embodiment ~ S35, also can perform before the step S11 in embodiment disclosed in Fig. 2.
In the present embodiment, in step S16, or after step S17, can also comprise:
Obtain the described closedown password of user's input, close described USB function.
Corresponding with said method embodiment, present invention also offers the control system that a kind of mobile device USB interface connects.
See Fig. 4, the structural representation of the control system that a kind of mobile device USB interface connects disclosed in the embodiment of the present invention, comprising:
First Tip element 41, for when detecting that mobile device is connected with miscellaneous equipment by USB interface, prompting user inputs connection password;
Wherein, when user logs in first, the connection password of user's input is initial password, and initial password can be 123456,111111 etc., and the present invention does not limit at this.
First acquiring unit 42, for obtaining the connection password of user's input;
First judging unit 43, for judging that whether described connection password is correct, if so, then performing second acquisition unit 44, otherwise performing the second control module 48;
Second acquisition unit 44, if correct for described connection password, then obtains the IMSI comprised in the SIM card of installing in described mobile device, and the current registration community of described SIM card;
Second judging unit 45, for judging that whether described IMSI is consistent with the IMSI stored before, and whether described current registration community is in the cell range stored before, if so, then performs the first trigger element 46, otherwise, perform the first control module 47;
First trigger element 46, if consistent with the described IMSI stored before for described IMSI, and described current registration community is in the described cell range stored before, then trigger described USB interface, and described mobile device is connected with described miscellaneous equipment;
First control module 47, if inconsistent for described IMSI and the described IMSI stored before, or described current registration community is not in the described cell range stored before, then control described USB interface and close;
Second control module 48, if for described connection password bad, then controls described USB interface and closes.
In summary it can be seen, the present invention is when detecting that mobile device is connected with miscellaneous equipment by USB interface, prompting user inputs connection password, after detecting that connection password is correct, judge that whether the IMSI comprised in SIM card in mobile device is consistent with the IMSI stored before again, and whether the current registration community of SIM card is in the cell range stored before, and the IMSI judging to comprise in SIM card with before the IMSI that stores consistent, and the current registration community of SIM card in the cell range stored before time just trigger USB interface, otherwise, control USB interface is closed.The present invention adopts increase before USB interface connects to connect password judgement and SIM card judges that the technological means of two decision conditions is to ensure the connection safety of USB interface.When mobile device something unexpected happened, such as, when losing, only have these two decision conditions to meet simultaneously and pre-conditionedly just can trigger USB interface.Like this, even if the password of mobile device operation system is cracked, when any one condition in these two decision conditions does not meet pre-conditioned, other staff also cannot spy upon the information in mobile device by USB interface, thus ensure that the information security of mobile device user.
Be understandable that, for ensureing the safety connecting password, user can also connect password according to the needs change of self.
Therefore, for optimizing above-described embodiment further, see Fig. 5, the structural representation of the control system that a kind of mobile device USB interface connects disclosed in another embodiment of the present invention, on basis embodiment illustrated in fig. 4, also comprises:
Second Tip element 51, for obtaining the international mobile subscriber identity IMSI comprised in the client identification module SIM card of installing in described mobile device at second acquisition unit 44, and before the current registration community of described SIM card, whether prompting user changes described connection password, if, then perform the 3rd acquiring unit 52, otherwise, perform the 4th acquiring unit 56;
3rd acquiring unit 52, if change described connection password for user, then the change obtaining user's input connects password;
3rd Tip element 53, for after preset time period, prompting user again inputs described change and connects password;
3rd judging unit 54, whether identical for judging that the described change of user's twice input connects password, if so, then perform the first storage unit 55;
First storage unit 55, if identical for the described change connection password of twice input, then store described change and connects password;
4th acquiring unit 56, if do not change described connection password for user, then obtains the command information not changing password of user's input.
It should be noted that, if exceed preset time period, do not receive any information of user's input, then default user does not change password, then continues to perform second acquisition unit 44.
Therefore, user connects password by amendment increases the security and confidentiality that connect password, thus ensures the connection safety of USB interface further.
Wherein, when the change of user's twice input connects password difference, USB function can point out the change of user's second time input to connect code error, and prompting user again inputs change and connects password, until the change that again inputs connects password and the change inputted for the first time, to connect password identical.
It should be noted that, mobile device user can also according to the change in region residing for mobile device, change the IMSI and the current registration community of SIM card and the information of peripheral cell that comprise in the SIM card stored, to avoid the change due to mobile device use region, and user is caused to use USB interface.
Therefore, for optimizing above-described embodiment further, see Fig. 6, the structural representation of the control system that a kind of mobile device USB interface connects disclosed in another embodiment of the present invention, on basis embodiment illustrated in fig. 4, also comprises:
5th acquiring unit 61, for when the first Tip element 41 detects that mobile device is connected with miscellaneous equipment by USB interface, prompting user obtains the USB function open command of user's input before inputting and connecting password;
4th Tip element 62, for after described USB function is opened, prompting user resets the closedown password of described USB function;
It should be noted that, before user resets the closedown password of USB function, the closedown password before all needing to input.
6th acquiring unit 63, for obtaining the closedown password of user's input, and preserves described closedown password;
Second trigger element 64, obtains the current registration community of described IMSI and the described SIM card comprised in described SIM card and the relevant information of peripheral cell for trigger action system;
Wherein relevant information comprises national ID (Identity, identify label number), network ID, region ID and the community ID of current registration community and peripheral cell.
Second storage unit 65, for storing the relevant information of described IMSI, described current registration community and described peripheral cell.
Can find out, user reopens USB function at every turn, all trigger action system can again obtain the current registration community of IMSI and the SIM card comprised in SIM card and the relevant information of peripheral cell.Therefore, during the community of registering before the region residing for mobile device not, for ensureing that USB interface can continue to use, user, by reopening USB function, realizes the renewal to the information of storage.
For ensureing security and the confidentiality of closing password, after user opens USB function at every turn, all can point out user that closedown password is set again.
It should be noted that, USB function is opened and before receiving closedown password, all can be controlled the connection of USB interface.
Wherein, the 5th acquiring unit 61 in the present embodiment, the 4th Tip element 62, the 6th acquiring unit 63, second trigger element 64 and the second storage unit 65, also can perform before the first Tip element 41 execution in embodiment disclosed in Fig. 5.
For optimizing above-described embodiment further, also comprise:
7th acquiring unit, for triggering described USB interface at the first trigger element 46, make after described mobile device is connected with described miscellaneous equipment, or after the first control module 47 controls the closedown of described USB interface, or after the second control module 48 controls the closedown of described USB interface, obtain the described closedown password of user's input, close described USB function.
It should be noted that, in system embodiment, the specific works principle of each ingredient is see embodiment of the method, repeats no more herein.
In this instructions, each embodiment adopts the mode of going forward one by one to describe, and what each embodiment stressed is the difference with other embodiments, between each embodiment identical similar portion mutually see.
To the above-mentioned explanation of the disclosed embodiments, professional and technical personnel in the field are realized or uses the present invention.To be apparent for those skilled in the art to the multiple amendment of these embodiments, General Principle as defined herein can without departing from the spirit or scope of the present invention, realize in other embodiments.Therefore, the present invention can not be restricted to these embodiments shown in this article, but will meet the widest scope consistent with principle disclosed herein and features of novelty.