CN101616401B - Method for realizing locking of user number by wireless terminal device, unlocking method and device - Google Patents

Method for realizing locking of user number by wireless terminal device, unlocking method and device Download PDF

Info

Publication number
CN101616401B
CN101616401B CN2009101599090A CN200910159909A CN101616401B CN 101616401 B CN101616401 B CN 101616401B CN 2009101599090 A CN2009101599090 A CN 2009101599090A CN 200910159909 A CN200910159909 A CN 200910159909A CN 101616401 B CN101616401 B CN 101616401B
Authority
CN
China
Prior art keywords
wireless terminal
terminal device
subscriber number
mapping value
imsi
Prior art date
Legal status (The legal status 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 status listed.)
Expired - Fee Related
Application number
CN2009101599090A
Other languages
Chinese (zh)
Other versions
CN101616401A (en
Inventor
王科平
车忠辉
宋欣
郑宏涛
胡乐申
段明艳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN2009101599090A priority Critical patent/CN101616401B/en
Publication of CN101616401A publication Critical patent/CN101616401A/en
Priority to PCT/CN2010/072017 priority patent/WO2011009315A1/en
Application granted granted Critical
Publication of CN101616401B publication Critical patent/CN101616401B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/18Processing of user or subscriber data, e.g. subscribed services, user preferences or user profiles; Transfer of user or subscriber data
    • H04W8/183Processing at user equipment or user record carrier

Abstract

The invention discloses a method for realizing locking of a user number by a wireless terminal device, an unlocking method and a device. The method for realizing the locking of the user number by the wireless terminal device comprises the following steps: reading IMEI of the wireless terminal device and the current user number which is stored in an inserted SIM card and pre-distributed to the wireless terminal device; calculating a first mapped value between the IMEI and the user number; reading IMSI of the SIM card, and calculating a second mapped value between the user number and the IMSI; comparing the calculated first mapped value and the second mapped value, the mapped value between the IMEI pre-stored by the wireless terminal device and the user number and the mapped value between the IMSI and the user number; and when the comparison results are consistent, permitting the wireless terminal device to be used. The invention establishes a binding relation between the wireless terminal device and the user number, has high safety, and is simple and convenient to use.

Description

Realize method, unlock method and the device of locking of user number by wireless terminal device
Technical field
The present invention relates to field of communication security, relate in particular to a kind of method, unlock method and device thereof of realizing locking of user number by wireless terminal device.
Background technology
Along with 3G network the whole world popularize and operator between the aggravation competed, wireless terminal device (Wireless Terminal Device) is morely by carrier customization, for consideration such as the demand of operator and user be safe in utilization, the bound restriction function of wireless terminal device is just seemed particularly important.
Typical wireless terminal device has Wireless USB MODEM, wireless data card, mobile phone etc.In order to realize use bound restriction to wireless terminal device, generally in the following way: the mode of lock net, use wireless terminal device binding Mobile Country Code MCC (Mobile Country Code, hereinafter to be referred as MCC) and Mobile Network Code (Mobile Network Code, hereinafter to be referred as MNC), this wireless terminal device and SIM card are the relations of one-to-many, after even the user has lost this wireless terminal device, this wireless terminal device can also cooperate in the net other SIM card to use, and fail safe obviously can not get guaranteeing.
In order to limit the scope of application of wireless terminal device, adopt the method for wireless terminal device user bound sub-district (CELL ID) in addition, the scope of application of the method limiting terminal is because the scope of binding is smaller, lost ambulant advantage, can make troubles to the user.Also has a kind of way, it is the method for interlocking of phone and card, (the International Mobile Equipment Identity of the International Mobile Equipment Identity sign indicating number of write device in SIM card, IMEI) number realize that wireless terminal device and SIM card concern one to one, but pintle hook lock mechanism is simple and easy to crack, if the user has changed SIM card, the operation that this wireless terminal device must lock again otherwise just can not re-use.
The method of the locking network and card that also has all adds latching operation by operator to all wireless terminals one by one before wireless terminal is sold, and storage PUK and key in wireless terminal device, key and PUK and wireless terminal device are for concerning one to one, it is more loaded down with trivial details not only to lock network process, and the fail safe of key keeping is not high yet, divulges a secret easily.
Said method or exist using method loaded down with trivial details, inconvenience, or have the not high problem of fail safe that cracks easily.
Summary of the invention
The technical problem that the embodiment of the invention solved is: the embodiment of the invention provides a kind of locking means safe, subscriber terminal equipment simply and easily, unlock method and device thereof.
The method of the realization locking of user number by wireless terminal device that the embodiment of the invention provides comprises:
Judge whether store encrypted file system EFS file in the wireless terminal device in advance, described EFS file comprises the mapping value of the mapping value of Subscriber Number and wireless terminal device IMEI, described Subscriber Number and SIM card IMSI and the IMSI of SIM card;
When judged result is not, determine that this wireless terminal device locks with described Subscriber Number; Wireless terminal device and described Subscriber Number are locked, generate EFS file and storage, allow this wireless terminal device to be used;
When judged result for being, determine this wireless terminal device with the Subscriber Number locking, and read the international mobile equipment identific IMEI of wireless terminal device, and store in the SIM card of current insertion allocate Subscriber Number in advance to this wireless terminal device; Calculate first mapping value between the two;
Read the international mobile subscriber identification number IMSI of described SIM card, calculate second mapping value between described Subscriber Number and the described IMSI;
With first mapping value and second mapping value that calculates, the IMEI that stores in advance with described wireless terminal device and the mapping value of Subscriber Number and the mapping value of IMSI and Subscriber Number compare respectively;
When result relatively is consistent, allow this wireless terminal device to be used.
Use default hash algorithm to calculate first mapping value and second mapping value.
Before the Subscriber Number in IMEI that reads wireless terminal device and SIM card, also comprise and judge the step that whether stores encrypted file system EFS file in the wireless terminal device in advance, described EFS file comprises the mapping value of the mapping value of Subscriber Number and wireless terminal device IMEI, described Subscriber Number and SIM card IMSI and the IMSI of SIM card;
When judged result is not, determine that this wireless terminal device locks with described Subscriber Number; Wireless terminal device and described Subscriber Number are locked, generate EFS file and storage, allow this wireless terminal device to be used;
When judged result for being, determine this wireless terminal device with the Subscriber Number locking, turn to the described step that reads the IMEI and the Subscriber Number in the SIM card of wireless terminal device.
Described with wireless terminal device and Subscriber Number locking, generation EFS file comprises:
Read allocating in advance of storing in the SIM card of current insertion to the Subscriber Number of this wireless terminal device and the IMEI of this wireless terminal device, according to default hash algorithm, calculate the mapping value of described Subscriber Number and described IMEI and deposit in predefined first logo file;
Read the IMSI of the SIM card of described current insertion,, calculate the mapping value of described Subscriber Number and described IMSI and deposit in predefined second logo file according to default hash algorithm;
Write down the IMSI of the SIM card of described current insertion, deposit in predefined the 3rd logo file;
It is read-only and the unsuppressible-suppression state that first logo file, second logo file and the 3rd logo file are set.
When described first mapping value and the mapping value of IMEI that stores in advance and Subscriber Number are inconsistent, forbid that this wireless terminal device is used;
When described second mapping value and the mapping value of IMSI that stores in advance and Subscriber Number were inconsistent, the IMSI in the EFS file of use wireless terminal device storage initiated register requirement to its belonging network;
If the registration of its belonging network refusal, and reason for rejection be this IMSI not in attaching position register, then the IMSI of the SIM card of the use current insertion of reading replaces the IMSI in the 3rd logo file of described EFS file; Use described first mapping value to replace the mapping value of IMEI and Subscriber Number in first logo file of described EFS file; And use described second mapping value to replace the mapping value of IMSI and Subscriber Number in second logo file of described EFS file, and allow this wireless terminal device to be used;
If its belonging network is accepted registration, perhaps non-this IMSI of refusal registration reason forbids that then this wireless terminal device is used not in attaching position register.
This wireless terminal device of described permission is used, and comprising:
After the descriptor of the predefine port that this wireless terminal device shines upon, add the normal revision number that uses of indication, allow to be used with this wireless terminal device of user interface of informing this wireless terminal device;
Described this wireless terminal device of forbidding is used, and comprising:
After the descriptor of the serial ports product mark of this wireless terminal device mapping and identification of the manufacturer, add and indicate the revision number that bans use of, ban use of with this wireless terminal device of user interface of informing this wireless terminal device, and each port that seals this wireless terminal device.
Described default hash algorithm is the MD5 hash algorithm.
The embodiment of the invention also provides a kind of device of realizing locking of user number by wireless terminal device, comprising:
Judging unit, be used for judging whether wireless terminal device stores encrypted file system EFS file in advance, and described EFS file comprises the mapping value of the mapping value of Subscriber Number and wireless terminal device IMEI, described Subscriber Number and SIM card IMSI and the IMSI of SIM card;
The locked/unlocked determining unit, be used for when judged result for not the time, determine this wireless terminal device with described Subscriber Number locking; When judged result when being, the notice reading unit is carried out read operation;
Lock cell is used for when definite wireless terminal device does not lock with described Subscriber Number wireless terminal device and described Subscriber Number being locked, and generates EFS file and storage;
Allow/ban use of determining unit, be used for after lock cell locks wireless terminal device and described Subscriber Number, allowing this wireless terminal device to be used; And when the comparative result of comparing unit is all consistent, allow this wireless terminal device to be used;
Reading unit is used for reading allocating in advance to the Subscriber Number of this wireless terminal device and the IMSI of described SIM card that the SIM card of the IMEI of wireless terminal device, current insertion stores;
Computing unit is used to calculate the described Subscriber Number that reads and first mapping value between the described IMEI, and calculates the described Subscriber Number that reads and second mapping value between the described IMSI;
Comparing unit, first mapping value and second mapping value that described computing unit is calculated, the IMEI that stores in advance with described wireless terminal device and the mapping value of Subscriber Number and the mapping value of IMSI and Subscriber Number compare respectively.
Described lock cell specifically comprises:
First generates subelement, be used for reading allocating in advance that the SIM card of current insertion stores to the Subscriber Number of this wireless terminal device and the IMEI of this wireless terminal device, according to default hash algorithm, calculate the mapping value of described Subscriber Number and described IMEI and deposit in predefined first logo file;
Second generates subelement, is used to read the IMSI of the SIM card of described current insertion, according to default hash algorithm, calculates the mapping value of described Subscriber Number and described IMSI and deposits in predefined second logo file;
The 3rd generates subelement, is used to write down the IMSI of the SIM card of described current insertion, deposits in predefined the 3rd logo file;
Subelement is set, and being used to be provided with first logo file, second logo file and the 3rd logo file is read-only and the unsuppressible-suppression state.
Described permission/ban use of determining unit also is used for forbidding that this wireless terminal device is used when first mapping value and the mapping value of IMEI that stores in advance and Subscriber Number are inconsistent;
And when described second mapping value and the mapping value of IMSI that stores in advance and Subscriber Number were inconsistent, the IMSI in the EFS file of use wireless terminal device storage initiated register requirement to its belonging network;
If the registration of its belonging network refusal, and reason for rejection be this IMSI not in attaching position register, then the IMSI of the SIM card of the use current insertion of reading replaces the IMSI in the 3rd logo file of described EFS file; Use described first mapping value to replace the mapping value of IMEI and Subscriber Number in first logo file of described EFS file; And use described second mapping value to replace the mapping value of IMSI and Subscriber Number in second logo file of described EFS file, and allow this wireless terminal device to be used;
If its belonging network is accepted registration, perhaps non-this IMSI of refusal registration reason forbids that then this wireless terminal device is used not in attaching position register.
The beneficial effect of the embodiment of the invention comprises:
The method of the realization locking of user number by wireless terminal device that the embodiment of the invention provides, unlock method and device, IMEI with wireless terminal device, first mapping value between the Subscriber Number in the SIM card of current insertion, the IMEI that stores in advance with this wireless terminal device and the mapping value of Subscriber Number are compared, with the IMSI of the SIM card of current insertion and second mapping value between the Subscriber Number, compare with the mapping value between the Subscriber Number with the IMSI of this wireless terminal device storage, have only when result relatively is consistent, allow this wireless terminal device to be used.Method, unlock method and the device of the realization locking of user number by wireless terminal device that the embodiment of the invention provides, wireless terminal device and Subscriber Number are set up binding relationship, even the user has changed SIM card, as long as keep Subscriber Number constant, still can normally use this wireless terminal device, it is strong to implement flexibility.And because the process of locking is carried out in the user uses the process of SIM card, avoided that operator promptly added latching operation to each wireless terminal device one by one in the prior art before wireless terminal device is sold, and because whole process do not need to use key, so there be not divulging a secret and the not high problem of confidentiality that key keeping and distribution procedure may bring.
The unlock method that the embodiment of the invention provides, by checking to the Subscriber Number of wireless terminal device locking, the mapping value and the IMSI of the IMEI of deletion wireless terminal device storage and mapping value, IMSI and the Subscriber Number of Subscriber Number can realize release, and releasing process is also very simple and convenient.
Further, method, unlock method and the device of the realization locking of user number by wireless terminal device that the embodiment of the invention provides are encrypted by irreversible hash algorithm, and it is big to crack difficulty, and fail safe is higher.
Description of drawings
The flow chart of the method for the realization locking of user number by wireless terminal device that Fig. 1 provides for the embodiment of the invention;
The flow chart of the unlock method of the wireless terminal device that Fig. 2 provides for the embodiment of the invention;
The structural representation of the device of the realization locking of user number by wireless terminal device that Fig. 3 provides for the embodiment of the invention;
The structural representation of the lock cell that Fig. 4 provides for the embodiment of the invention;
The structural representation of the tripper of the wireless terminal device that Fig. 5 provides for the embodiment of the invention.
Embodiment
Below in conjunction with accompanying drawing, a kind of method of locking of user number by wireless terminal device and embodiment of device of realizing provided by the invention is described in detail.
At first a kind of method of locking of user number by wireless terminal device that realizes that the embodiment of the invention is provided is described in detail.
As shown in Figure 1, a kind of method that realizes locking of user number by wireless terminal device that the embodiment of the invention provides in wireless terminal device energising start, enters before the init state, carries out following steps:
S101, judge whether wireless terminal device has inserted SIM card, if, carry out S102, if not, execution in step S112.
Whether the SIM card that S102, judgement are inserted is the SIM card of test usefulness, if, execution in step S111, otherwise, execution in step S103 continued.
This step S102 is an optional step, this step S102 need and set for the test of SIM card, SIM card is before sale or after selling, may test, the MCC that tests employed SIM card is different with the normal SIM card of using of user in the network with MNC, can judge whether this SIM card belongs to the test SIM card by MCC and MNC in this step to SIM card, if test SIM card, then permit wireless terminal device and be used, this wireless terminal device enters normal initialization procedure subsequently.
S103, judge and whether store encrypted file system in this wireless terminal device that (Encrypting File System, EFS) file if exist, determine that then this wireless terminal device had locked Subscriber Number, execution in step S105; If do not exist, determine that then this wireless terminal device did not lock this Subscriber Number, execution in step S104.
In the embodiment of the invention, the international mobile subscriber identification number (International Mobile Subscribe Identity, mapping value IMSI) and the IMSI of SIM card that comprise mapping value, Subscriber Number and the SIM card of Subscriber Number and wireless terminal device IMEI in the EFS file.
S104, wireless terminal device and Subscriber Number are locked, generate EFS file and storage.Turn to execution in step S111 then.
In embodiments of the present invention, Subscriber Number can be write in advance by operator and distribute to the user in the SIM card, for example Subscriber Number can be write in the MSISDN file of SIM card.
Particularly, in that the process of wireless terminal device and Subscriber Number locking and generation EFS file is as follows:
Read allocating in advance of storing in the SIM card that the current wireless terminal equipment inserts to the Subscriber Number of this wireless terminal device and the IMEI of this wireless terminal device, according to default hash algorithm, calculate the Subscriber Number that reads and read the mapping value between the IMEI and deposit in predefined first logo file;
Read the IMSI of the SIM card that the current wireless terminal equipment inserts,, calculate the mapping value of the Subscriber Number that reads and IMSI and deposit in predefined second logo file according to default hash algorithm;
Write down the IMSI of the SIM card of current insertion, deposit in predefined the 3rd logo file;
It is read-only and the unsuppressible-suppression state that first logo file, first logo file and the 3rd logo file are set.
First logo file, second logo file and the 3rd logo file have been formed the EFS file.
Preferably, in the embodiment of the invention, default hash algorithm can adopt the MD5 hash algorithm.The MD5 hash algorithm belongs to the irreversible encryption algorithm, its ciphering process does not need to use key, form ciphertext to expressly encrypting the back, ciphertext after the encryption can't directly be deciphered, decrypting process must expressly be encrypted once more through input, when relatively the result of twice encryption is consistent, can think that just the plaintext of input once more is the plaintext after the deciphering.It is big that the irreversible encryption algorithm cracks difficulty, and easy to use, do not have the problem of key keeping and distribution.
S105, read the IMEI of wireless terminal device, and store in the SIM card of current insertion allocate Subscriber Number in advance to this wireless terminal device; Calculate first mapping value between the two;
Computational methods adopt default hash algorithm, the hash algorithm that this is default, and the algorithm that adopts with step S104 is identical.
S106, first mapping value that step S105 is calculated are compared with the mapping value of wireless terminal device IMEI with the Subscriber Number that comprises in the EFS file of wireless terminal device storage, if both unanimities, execution in step S107, otherwise, execution in step S112.
Under the situation of both unanimities, the Subscriber Number in the SIM card of current insertion is described, consistent with the Subscriber Number of this wireless terminal device locking.Otherwise, think that Subscriber Number and this wireless terminal device among the SIM of current insertion do not match, forbid the use of this wireless terminal.
The IMSI of S107, reading SIM card, Subscriber Number that calculating is read and second mapping value between the IMSI.
Computational methods adopt default hash algorithm, the hash algorithm that this is default, and the algorithm that adopts with step S104 is identical.
S108, second mapping value that step S107 is calculated are compared with the mapping value of SIM card IMSI with the Subscriber Number that comprises in the EFS file of wireless terminal device storage, if both unanimity, execution in step S111; If both are inconsistent, then carry out following step S109.
In this step S108, under the situation of both unanimities, the SIM card of using when the SIM card of current insertion and this locking of user number by wireless terminal device are described is the same card, if both are inconsistent, there will be two kinds of situations so, the legal card (Subscriber Number does not become, but SIM card is changed) that changes of a kind of user of being, another kind is illegal jack per line card.In order further to distinguish, need to carry out following step S109.
The IMSI that stores in S109, the use EFS file initiates register requirement to its belonging network; If succeed in registration, execution in step S112 then; If registration is unsuccessful, and the reason of refusal registration be this IMSI not in attaching position register HLR, execution in step S110 and step S111; If registration is unsuccessful, but the reason of refusal registration is other reasons except aforementioned " IMSI is not in attaching position register ", so also turns to execution in step S112.
If network refusal registration, and the reason of refusal be this IMSI not in HLR, prove that so the user has changed SIM card legally, but the Subscriber Number in this SIM card is consistent with the Subscriber Number that this wireless terminal locks.If network is accepted registration, perhaps refusal is registered as other reasons, and employed SIM card was current still effective when this wireless terminal locking of user number then was described, the SIM card of current insertion wireless terminal device is illegal jack per line card.
IMSI in the 3rd logo file of the IMSI replacement EFS file of the SIM card of the current insertion that S110, use are read; Use first mapping value to replace the mapping value of IMEI and Subscriber Number in first logo file of EFS file; And use second mapping value to replace the mapping value of IMSI and Subscriber Number in second logo file of EFS file.
S111, allow this wireless terminal device to be used.
Among this step S111, after the descriptor of the predefine port that this wireless terminal device shines upon, add the normal revision of using of indication and count revision number, (User Interface, UI) this wireless terminal device allows to be used with the user interface of informing this wireless terminal device.
S112, forbid that this wireless terminal device is used.
Serial ports product mark (Product ID in this wireless terminal device mapping, PID) and identification of the manufacturer (Vendor ID, VID) add the revision number that indication bans use of behind the descriptor, forbid being used with this wireless terminal device of UI of informing this wireless terminal device, simultaneously, each port of this wireless terminal also is closed, and prevents from illegally to be cracked.
Compared with prior art, in the method for the realization locking of user number by wireless terminal device that the embodiment of the invention provides, adopt irreversible hash algorithm to encrypt, do not have key keeping and distribution problem, it is big to crack difficulty, and fail safe is higher.In addition, by the user when for the first time using legal SIM card, the binding of realization and wireless terminal device and Subscriber Number, the operation that does not need operator or manufacturer one by one wireless terminal device to be locked in advance.And under the situation that realizes the binding of wireless terminal device and Subscriber Number, even the user has changed SIM card legally, can conveniently realize the binding relationship between new SIM card and this wireless terminal device too, implementation process is simple and convenient.
Accordingly, the embodiment of the invention also provides a kind of unlock method of wireless terminal device, inserts SIM card in the wireless terminal device, after the start, as shown in Figure 2, carries out following steps:
S201, according to the Subscriber Number of this wireless terminal device locking, obtain the licence LICENCE file that carries Subscriber Number of mandate.
In this step S201, wireless terminal device according to the prompting of website, is imported the Subscriber Number of this wireless terminal locking by logining for example website of operator's mandate.
Website server is downloaded the LICENCE file that carries Subscriber Number that operator is authorized according to the Subscriber Number of input.
S202, read the Subscriber Number in the SIM card that the current wireless terminal equipment inserts, it is compared with the Subscriber Number in the LICENCE file, when both unanimities, execution in step S203; Otherwise, execution in step S204.
S203, allow this wireless terminal device release, delete the mapping value and the IMSI of mapping value, IMSI and the Subscriber Number of the IMEI that comprises in the EFS file of its storage and Subscriber Number.
S204, refuse this wireless terminal device release, send process ends behind the warning information.
In the specific implementation, above-mentioned steps S202 can download corresponding release software by wireless terminal to step S204 and finish from the website that operator is authorized.
Based on same inventive concept, a kind of device of realizing locking of user number by wireless terminal device also is provided in the embodiment of the invention, because the principle of this device solves problem a kind ofly realizes that the method for locking of user number by wireless terminal device is similar to aforementioned, therefore the enforcement of this device can repeat part and not give unnecessary details referring to the enforcement of method.
As shown in Figure 3, a kind of device of realizing locking of user number by wireless terminal device that the embodiment of the invention provides specifically comprises:
Reading unit 301 is used for reading allocating in advance to the Subscriber Number of this wireless terminal device and the IMSI of described SIM card that the SIM card of the IMEI of wireless terminal device, current insertion stores;
Computing unit 302 is used to calculate the Subscriber Number that reads and first mapping value between the IMEI, and calculates the Subscriber Number that reads and second mapping value between the IMSI;
Comparing unit 303, first mapping value and second mapping value that computing unit 302 is calculated, the IMEI that stores in advance with wireless terminal device and the mapping value of Subscriber Number and the mapping value of IMSI and Subscriber Number compare respectively;
Allow/ban use of determining unit 304, when the comparative result of comparing unit 303 is all consistent, allow this wireless terminal device to be used.
A kind of device of realizing locking of user number by wireless terminal device that the embodiment of the invention provides as shown in Figure 3, can also comprise: judging unit 305, locked/unlocked determining unit 306 and lock cell 307; Wherein:
Judging unit 305, be used for judging whether wireless terminal device stores encrypted file system EFS file in advance, this EFS file comprises the mapping value of mapping value, Subscriber Number and SIM card IMSI of Subscriber Number and wireless terminal device IMEI and the IMSI of SIM card;
Locked/unlocked determining unit 306, be used for when judged result for not the time, determine this wireless terminal device with this Subscriber Number locking; When judged result when being, notice reading unit 301 is carried out read operations;
Lock cell 307 is used for when definite wireless terminal device does not lock with Subscriber Number wireless terminal device and Subscriber Number being locked, and generates EFS file and storage;
Allow/ban use of determining unit 304, also be used for after lock cell 307 locks wireless terminal device and Subscriber Number, allowing this wireless terminal device to be used.
Further, lock cell 307 as shown in Figure 4, specifically comprises:
First generates subelement 3071, be used for reading allocating in advance that the SIM card of current insertion stores to the Subscriber Number of this wireless terminal device and the IMEI of this wireless terminal device, according to default hash algorithm, calculate the mapping value of Subscriber Number and IMEI and deposit in predefined first logo file;
Second generates subelement 3072, is used to read the IMSI of the SIM card of current insertion, according to default hash algorithm, calculates the mapping value of Subscriber Number and IMSI and deposits in predefined second logo file;
The 3rd generates subelement 3073, is used to write down the IMSI of the SIM card of current insertion, deposits in predefined the 3rd logo file;
Subelement 3074 is set, and being used to be provided with first logo file, first logo file and the 3rd logo file is read-only and the unsuppressible-suppression state.
Permission in the device of the realization locking of user number by wireless terminal device that the embodiment of the invention provides/ban use of determining unit 304, also be used for when first mapping value and the mapping value of IMEI that stores in advance and Subscriber Number are inconsistent, forbidding that this wireless terminal device is used;
And when second mapping value and the mapping value of IMSI that stores in advance and Subscriber Number were inconsistent, the IMSI in the EFS file of use wireless terminal device storage initiated register requirement to its belonging network;
If the registration of its belonging network refusal, and reason for rejection be this IMSI not in attaching position register, then the IMSI of the SIM card of the use current insertion of reading replaces the IMSI in the 3rd logo file of described EFS file; Use first mapping value to replace the mapping value of IMEI and Subscriber Number in first logo file of EFS file; And use second mapping value to replace the mapping value of IMSI and Subscriber Number in second logo file of EFS file, and allow this wireless terminal device to be used;
If its belonging network is accepted registration, perhaps non-this IMSI of refusal registration reason forbids that then this wireless terminal device is used not in attaching position register.
According to the wireless terminal device unlock method that the embodiment of the invention provides, the embodiment of the invention also provides a kind of wireless terminal tripper, as shown in Figure 5, comprising:
Acquiring unit 501 is used for the Subscriber Number according to this wireless terminal device locking, obtains the licence LICENCE file that carries Subscriber Number of mandate;
Reading unit 502 is used for reading the Subscriber Number of the SIM card of current insertion;
Comparing unit 503, the Subscriber Number that is used for reading is compared with the Subscriber Number of LICENCE file;
Release/refusal is separated lock unit 504, when relatively result be unanimity, deletes the mapping value and the IMSI of mapping value, IMSI and the Subscriber Number of IMEI that this wireless terminal device stores in advance and Subscriber Number; Otherwise, the refusal release.
The method of the realization locking of user number by wireless terminal device that the embodiment of the invention provides, unlock method and device, IMEI with wireless terminal device, first mapping value between the Subscriber Number in the SIM card of current insertion, the IMEI that stores in advance with this wireless terminal device and the mapping value of Subscriber Number are compared, with the IMSI of the SIM card of current insertion and second mapping value between the Subscriber Number, compare with the mapping value between the Subscriber Number with the IMSI of this wireless terminal device storage, have only when result relatively is consistent, allow this wireless terminal device to be used, the method of the realization locking of user number by wireless terminal device that the embodiment of the invention provides, unlock method and device, wireless terminal device and Subscriber Number are set up binding relationship, even the user has changed SIM card, as long as keep Subscriber Number constant, still can normally use this wireless terminal device, flexibility is strong during enforcement.And because the process of locking is carried out in the user uses the process of SIM card, avoided that operator promptly added latching operation to each wireless terminal device one by one in the prior art before wireless terminal device is sold, and because whole process do not need to use key, so there be not divulging a secret and the not high problem of confidentiality that key keeping and distribution procedure may bring.
The embodiment of the invention can also correspondingly be passed through the checking to the Subscriber Number of wireless terminal device locking, delete the mapping value and the IMSI of mapping value, IMSI and the Subscriber Number of the IMEI of its storage and Subscriber Number, can realize release, releasing process is also very simple and convenient.
Further, method, unlock method and the device of the realization locking of user number by wireless terminal device that the embodiment of the invention provides are encrypted by irreversible hash algorithm, and it is big to crack difficulty, and fail safe is higher.
Obviously, those skilled in the art can carry out various changes and modification to the present invention and not break away from the spirit and scope of the present invention.Like this, if of the present invention these are revised and modification belongs within the scope of claim of the present invention and equivalent technologies thereof, then the present invention also is intended to comprise these changes and modification interior.

Claims (9)

1. a method that realizes locking of user number by wireless terminal device is characterized in that, comprising:
Judge whether store encrypted file system EFS file in the wireless terminal device in advance, described EFS file comprises the mapping value of the mapping value of Subscriber Number and wireless terminal device IMEI, described Subscriber Number and SIM card IMSI and the IMSI of SIM card;
When judged result is not, determine that this wireless terminal device locks with described Subscriber Number; Wireless terminal device and described Subscriber Number are locked, generate EFS file and storage, allow this wireless terminal device to be used;
When judged result for being, determine this wireless terminal device with the Subscriber Number locking, and read the international mobile equipment identific IMEI of wireless terminal device, and store in the SIM card of current insertion allocate Subscriber Number in advance to this wireless terminal device; Calculate first mapping value between the two;
Read the international mobile subscriber identification number IMSI of described SIM card, calculate second mapping value between described Subscriber Number and the described IMSI;
With first mapping value and second mapping value that calculates, the IMEI that stores in advance with described wireless terminal device and the mapping value of Subscriber Number and the mapping value of IMSI and Subscriber Number compare respectively;
When result relatively is consistent, allow this wireless terminal device to be used.
2. the method for claim 1 is characterized in that, uses default hash algorithm to calculate first mapping value and second mapping value.
3. the method for claim 1 is characterized in that, described with wireless terminal device and Subscriber Number locking, generation EFS file comprises:
Read allocating in advance of storing in the SIM card of current insertion to the Subscriber Number of this wireless terminal device and the IMEI of this wireless terminal device, according to default hash algorithm, calculate the mapping value of described Subscriber Number and described IMEI and deposit in predefined first logo file;
Read the IMSI of the SIM card of described current insertion,, calculate the mapping value of described Subscriber Number and described IMSI and deposit in predefined second logo file according to default hash algorithm;
Write down the IMSI of the SIM card of described current insertion, deposit in predefined the 3rd logo file;
It is read-only and the unsuppressible-suppression state that first logo file, second logo file and the 3rd logo file are set.
4. method as claimed in claim 3 is characterized in that, when described first mapping value and the mapping value of IMEI that stores in advance and Subscriber Number are inconsistent, forbids that this wireless terminal device is used;
When described second mapping value and the mapping value of IMSI that stores in advance and Subscriber Number were inconsistent, the IMSI in the EFS file of use wireless terminal device storage initiated register requirement to its belonging network;
If the registration of its belonging network refusal, and reason for rejection be this IMSI not in attaching position register, then the IMSI of the SIM card of the use current insertion of reading replaces the IMSI in the 3rd logo file of described EFS file; Use described first mapping value to replace the mapping value of IMEI and Subscriber Number in first logo file of described EFS file; And use described second mapping value to replace the mapping value of IMSI and Subscriber Number in second logo file of described EFS file, and allow this wireless terminal device to be used;
If its belonging network is accepted registration, perhaps non-this IMSI of refusal registration reason forbids that then this wireless terminal device is used not in attaching position register.
5. method as claimed in claim 4 is characterized in that, this wireless terminal device of described permission is used, and comprising:
After the descriptor of the predefine port that this wireless terminal device shines upon, add the normal revision number that uses of indication, allow to be used with this wireless terminal device of user interface of informing this wireless terminal device;
Described this wireless terminal device of forbidding is used, and comprising:
After the descriptor of the serial ports product mark of this wireless terminal device mapping and identification of the manufacturer, add and indicate the revision number that bans use of, ban use of with this wireless terminal device of user interface of informing this wireless terminal device, and each port that seals this wireless terminal device.
6. as claim 2 or 3 described methods, it is characterized in that described default hash algorithm is the MD5 hash algorithm.
7. a device of realizing locking of user number by wireless terminal device is characterized in that, comprising:
Judging unit, be used for judging whether wireless terminal device stores encrypted file system EFS file in advance, and described EFS file comprises the mapping value of the mapping value of Subscriber Number and wireless terminal device IMEI, described Subscriber Number and SIM card IMSI and the IMSI of SIM card;
The locked/unlocked determining unit, be used for when judged result for not the time, determine this wireless terminal device with described Subscriber Number locking; When judged result when being, the notice reading unit is carried out read operation;
Lock cell is used for when definite wireless terminal device does not lock with described Subscriber Number wireless terminal device and described Subscriber Number being locked, and generates EFS file and storage;
Allow/ban use of determining unit, be used for after lock cell locks wireless terminal device and described Subscriber Number, allowing this wireless terminal device to be used; And when the comparative result of comparing unit is all consistent, allow this wireless terminal device to be used;
Reading unit is used for reading allocating in advance to the Subscriber Number of this wireless terminal device and the IMSI of described SIM card that the SIM card of the IMEI of wireless terminal device, current insertion stores;
Computing unit is used to calculate the described Subscriber Number that reads and first mapping value between the described IMEI, and calculates the described Subscriber Number that reads and second mapping value between the described IMSI;
Comparing unit, first mapping value and second mapping value that described computing unit is calculated, the IMEI that stores in advance with described wireless terminal device and the mapping value of Subscriber Number and the mapping value of IMSI and Subscriber Number compare respectively.
8. device as claimed in claim 7 is characterized in that, described lock cell specifically comprises:
First generates subelement, be used for reading allocating in advance that the SIM card of current insertion stores to the Subscriber Number of this wireless terminal device and the IMEI of this wireless terminal device, according to default hash algorithm, calculate the mapping value of described Subscriber Number and described IMEI and deposit in predefined first logo file;
Second generates subelement, is used to read the IMSI of the SIM card of described current insertion, according to default hash algorithm, calculates the mapping value of described Subscriber Number and described IMSI and deposits in predefined second logo file;
The 3rd generates subelement, is used to write down the IMSI of the SIM card of described current insertion, deposits in predefined the 3rd logo file;
Subelement is set, and being used to be provided with first logo file, second logo file and the 3rd logo file is read-only and the unsuppressible-suppression state.
9. device as claimed in claim 8 is characterized in that, described permission/ban use of determining unit also is used for forbidding that this wireless terminal device is used when first mapping value and the mapping value of IMEI that stores in advance and Subscriber Number are inconsistent;
And when described second mapping value and the mapping value of IMSI that stores in advance and Subscriber Number were inconsistent, the IMSI in the EFS file of use wireless terminal device storage initiated register requirement to its belonging network;
If the registration of its belonging network refusal, and reason for rejection be this IMSI not in attaching position register, then the IMSI of the SIM card of the use current insertion of reading replaces the IMSI in the 3rd logo file of described EFS file; Use described first mapping value to replace the mapping value of IMEI and Subscriber Number in first logo file of described EFS file; And use described second mapping value to replace the mapping value of IMSI and Subscriber Number in second logo file of described EFS file, and allow this wireless terminal device to be used;
If its belonging network is accepted registration, perhaps non-this IMSI of refusal registration reason forbids that then this wireless terminal device is used not in attaching position register.
CN2009101599090A 2009-07-21 2009-07-21 Method for realizing locking of user number by wireless terminal device, unlocking method and device Expired - Fee Related CN101616401B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN2009101599090A CN101616401B (en) 2009-07-21 2009-07-21 Method for realizing locking of user number by wireless terminal device, unlocking method and device
PCT/CN2010/072017 WO2011009315A1 (en) 2009-07-21 2010-04-21 Method for locking user number by wireless terminal, unlocking method and device thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2009101599090A CN101616401B (en) 2009-07-21 2009-07-21 Method for realizing locking of user number by wireless terminal device, unlocking method and device

Publications (2)

Publication Number Publication Date
CN101616401A CN101616401A (en) 2009-12-30
CN101616401B true CN101616401B (en) 2011-12-07

Family

ID=41495735

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2009101599090A Expired - Fee Related CN101616401B (en) 2009-07-21 2009-07-21 Method for realizing locking of user number by wireless terminal device, unlocking method and device

Country Status (2)

Country Link
CN (1) CN101616401B (en)
WO (1) WO2011009315A1 (en)

Families Citing this family (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101616401B (en) * 2009-07-21 2011-12-07 中兴通讯股份有限公司 Method for realizing locking of user number by wireless terminal device, unlocking method and device
CN101820465A (en) * 2010-01-28 2010-09-01 中兴通讯股份有限公司 Terminal and method for binding SIM card
CN102469442B (en) * 2010-11-15 2014-05-07 中国移动通信集团山东有限公司 Method and device for determining service supported by user terminal
CN102594972B (en) * 2011-01-05 2015-01-28 中兴通讯股份有限公司 Method, device and system for card locking of mobile terminal
CN102088692B (en) * 2011-01-14 2013-09-11 华为终端有限公司 Method and equipment for locking subscriber identity module (SIM)
CN102149074B (en) * 2011-03-16 2015-10-28 中兴通讯股份有限公司 A kind of method that terminal and smart card are locked or unlock and device
CN103686706A (en) * 2012-09-14 2014-03-26 中兴通讯股份有限公司 User network information processing method and data card
CN103813314B (en) * 2012-11-09 2018-01-02 华为技术有限公司 Soft SIM card enables method and method of network entry and terminal and network access equipment
CN103856935B (en) * 2012-12-07 2017-11-21 中国移动通信集团公司 A kind of method for preventing soft SIM to be illegally used and its device
CN103577733A (en) * 2013-09-02 2014-02-12 小米科技有限责任公司 Safety protection method and device for terminal equipment and terminal equipment
CN104661211B (en) * 2013-11-18 2018-07-06 成都鼎桥通信技术有限公司 It is a kind of to automatically write the method for soft SIM information and terminal account-opening method in the terminal
CN104811969A (en) * 2014-01-28 2015-07-29 长城金点定位测控(北京)有限公司 Information handling method and data terminal
CN104469736B (en) * 2014-11-05 2018-01-19 中兴通讯股份有限公司 A kind of data processing method, server and terminal
CN104735251A (en) * 2015-03-17 2015-06-24 上海天奕达电子科技有限公司 Method and device for unlocking mobile terminals
CN105491554A (en) * 2015-12-10 2016-04-13 成都工百利自动化设备有限公司 Virtual SIM/USIM card security protection system
CN107666664B (en) * 2017-10-11 2021-04-20 深圳辉烨物联科技有限公司 Method, device, equipment and storage medium for machine-card binding
CN108040334B (en) * 2017-12-04 2020-04-07 Tcl移动通信科技(宁波)有限公司 Cell ID-based communication method, storage medium and mobile terminal
CN108024243B (en) * 2017-12-05 2019-06-21 恒宝股份有限公司 A kind of eSIM is caught in Network Communication method and its system

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1469674A (en) * 2002-07-04 2004-01-21 ���Ͽع����޹�˾ Method for locking mobile telecommunication terminal
CN1717082A (en) * 2004-07-02 2006-01-04 乐金电子(中国)研究开发中心有限公司 Anti-theft method and system of mobile communication terminal

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100631594B1 (en) * 2004-09-14 2006-10-09 엘지전자 주식회사 Device information registration method of mobile communication terminal
CN1905604A (en) * 2005-05-20 2007-01-31 刘津立 Cell phone value increasing service scheme implemented by mutual coordination of cell phone interconnected services
CN101616401B (en) * 2009-07-21 2011-12-07 中兴通讯股份有限公司 Method for realizing locking of user number by wireless terminal device, unlocking method and device

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1469674A (en) * 2002-07-04 2004-01-21 ���Ͽع����޹�˾ Method for locking mobile telecommunication terminal
CN1717082A (en) * 2004-07-02 2006-01-04 乐金电子(中国)研究开发中心有限公司 Anti-theft method and system of mobile communication terminal

Also Published As

Publication number Publication date
WO2011009315A1 (en) 2011-01-27
CN101616401A (en) 2009-12-30

Similar Documents

Publication Publication Date Title
CN101616401B (en) Method for realizing locking of user number by wireless terminal device, unlocking method and device
US9779564B2 (en) Device and method for controlling an access authorisation and/or driving authorisation for a vehicle
CN103329501B (en) The method of the content on the safety element that management is connected to equipment
US11025611B2 (en) Method and apparatus of constructing secure infra-structure for using embedded universal integrated circuit card
CN108093392B (en) Method for unlocking SIM card, mobile terminal and storage medium
CN100401822C (en) Protection method and system for preventing fraudulent use of mobile terminal
US9425844B2 (en) SIM locking
KR101676893B1 (en) Method for registering a mobile radio in a mobile radio network
CN101026834A (en) Locking method and unlocking method
CN103139767B (en) Mobile phone and communication means thereof
CN102867157B (en) Mobile terminal and data guard method
CN109729046B (en) Two-dimensional code scanning method and terminal, authentication method and server and service system
CN106230813B (en) Method for authenticating, authentication device and terminal
US20100299748A1 (en) Method for alteration of integrity protected data in a device, computer program product and device implementing the method
KR20190002613A (en) A method for managing the status of connected devices
WO2019109640A1 (en) Method and device for locking sim card
CN101860850B (en) Method for realizing mobile terminal to lock network or card by utilizing driver
CN103108323A (en) Safety operation execution system and execution method
CN104318286A (en) NFC label data management method and system and terminal
CN101815292A (en) Device and method for protecting data of mobile terminal
CN102170638B (en) Air loss reporting method and equipment
JP2011028522A (en) Host device, authentication method, and content processing method content processing system
CN103714017A (en) Authentication method, authentication device and authentication equipment
CN105636043A (en) ESIM (Embedded SIM) card authentication method, eSIM card authentication device and terminal
WO2013185701A1 (en) Method and system for encrypting terminal using subscriber identity module card

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20111207

Termination date: 20210721