CN101222770B - Method for generating mobile phone international mobile subscriber identification code - Google Patents
Method for generating mobile phone international mobile subscriber identification code Download PDFInfo
- Publication number
- CN101222770B CN101222770B CN 200810008741 CN200810008741A CN101222770B CN 101222770 B CN101222770 B CN 101222770B CN 200810008741 CN200810008741 CN 200810008741 CN 200810008741 A CN200810008741 A CN 200810008741A CN 101222770 B CN101222770 B CN 101222770B
- Authority
- CN
- China
- Prior art keywords
- mobile phone
- cell
- residential quarter
- index 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
Links
Landscapes
- Mobile Radio Communication Systems (AREA)
Abstract
The invention discloses a method for generating IMSI of a mobile phone, comprising the following processing that: a system obtains a number of mobile network and a cell identity via system message after being powered; a timer is initialized for location update processing; an IMSI is initialized; corresponding locations in IMSI are filled via the number of mobile network, the cell identity and a mobile index value. With the invention, the mobile phone IMSI can be generated dynamically in the course of location update and varies wit the quantity of the cells to be configured.
Description
Technical field
The present invention relates to global system for mobile communications (global system for mobilecommunication, be called for short GSM) communication field, relate in particular to a kind of generation mobile phone international mobile subscriber identification code method of (international mobile subscriber identity is called for short IMSI).
Background technology
At present, along with the continuous expansion of userbase, the pressure that the large traffic that faces is used in the communications field continues to increase, and therefore the test for large traffic just seems extremely important.For large speech affairs test, matter of utmost importance is exactly how to generate a large amount of cellphone informations, comprising mobile phone (mobile station is called for short MS) IMSI.
The method of generation mobile phone IMSI of the prior art is the IMSI that writes regularly mobile phone in system, then utilizes these IMSI to carry out the position and upgrades, and then carry out call operation.The shortcoming of this method is: generate the number quantity of IMSI very little, and can't dynamically control.When utilizing base station system to carry out large speech affairs test as platform, the quantity that generates IMSI can't change along with the quantity of the residential quarter of preparing.
Summary of the invention
The object of the present invention is to provide a kind of method that can dynamically update mobile phone IMSI.
According to the present invention, a kind of method that generates mobile phone IMSI is provided, the method comprises following processing: system obtains mobile network No. and cell ID by system message after powering on; Start timer and carry out position renewal processing; IMSI of initialization; And fill relevant position among the IMSI by mobile network No., cell ID and mobile phone index value.
Wherein, IMSI comprises 15: front three is Mobile Country Code MCC, and the 4th and the 5th is mobile network No., and the 6th to the 9th is fixedly write by program, and the tenth to the 13 corresponding to cell ID, and the 14 and the 15 are corresponding to the mobile phone index value.
The the tenth to the 13 method corresponding to cell ID is: the tenth is cell ID/1000, the 11 is (cell ID/100) mod 10, the 12 is that 13 of (cell ID/10) mod 10, the are cell ID mod 10.
In addition, the 14 and the 15 method corresponding to the mobile phone index value are: the 14 is mobile phone index value mod 10 for 15 of mobile phone index values/10, the.
In addition, the method also comprises following processing: the residential quarter is divided into caller residential quarter and called residential quarter; Wherein, caller residential quarter and called residential quarter are corresponding one by one, and can distinguish by cell ID.
1000 cell IDs can be supported respectively in caller residential quarter and called residential quarter.
The span of the cell ID of caller residential quarter is 1000 to 1999, and the span of the cell ID of called residential quarter is 2000 to 2999.
A timing is set in timer, regularly just carries out position renewal processing whenever surpassing.
Preferably, produce the mobile phone index value by system self, wherein, the span of mobile phone index value is 1 to 96.
By the present invention, can in position updating process, dynamically generate mobile phone IMSI, and change along with the quantity of allocating cell.
Other features and advantages of the present invention will be set forth in the following description, and, partly from specification, become apparent, perhaps understand by implementing the present invention.Purpose of the present invention and other advantages can realize and obtain by specifically noted structure in the specification of writing, claims and accompanying drawing.
Description of drawings
Accompanying drawing is used to provide a further understanding of the present invention, and consists of the part of specification, is used for together with embodiments of the present invention explaining the present invention, is not construed as limiting the invention.In the accompanying drawings:
Fig. 1 is the flow chart that illustrates according to the method for generation mobile phone IMSI of the present invention;
Fig. 2 is the schematic diagram that illustrates according to the structure of the mobile phone IMSI of the embodiment of the invention; And
Fig. 3 is the flow chart that illustrates according to the concrete grammar of the generation mobile phone IMSI of the embodiment of the invention.
Embodiment
Below in conjunction with accompanying drawing the preferred embodiments of the present invention are described, should be appreciated that preferred embodiment described herein only is used for description and interpretation the present invention, is not intended to limit the present invention.
Fig. 1 is the flow chart that illustrates according to the method for generation mobile phone IMSI of the present invention.
With reference to Fig. 1, comprise following processing: step S102 according to the method for generation mobile phone IMSI of the present invention, system obtains mobile network No. and cell ID by system message after powering on; Step S104 starts timer and carries out position renewal processing; Step S106, IMSI of initialization; And step S108, fill relevant position among the IMSI by mobile network No., cell ID and mobile phone index value.
Wherein, IMSI comprises 15: front three is Mobile Country Code MCC, and the 4th and the 5th is mobile network No., and the 6th to the 9th is fixedly write by program, and the tenth to the 13 corresponding to cell ID, and the 14 and the 15 are corresponding to the mobile phone index value.
The the tenth to the 13 method corresponding to cell ID is: the tenth is cell ID/1000, the 11 is (cell ID/100) mod 10, the 12 is that 13 of (cell ID/10) mod 10, the are cell ID mod 10.
In addition, the 14 and the 15 method corresponding to the mobile phone index value are: the 14 is mobile phone index value mod 10 for 15 of mobile phone index values/10, the.
In addition, the method also comprises following processing: the residential quarter is divided into caller residential quarter and called residential quarter; Wherein, caller residential quarter and called residential quarter are corresponding one by one, and can distinguish by cell ID.
1000 cell IDs can be supported respectively in caller residential quarter and called residential quarter.
The span of the cell ID of caller residential quarter is 1000 to 1999, and the span of the cell ID of called residential quarter is 2000 to 2999.
A timing is set in timer, regularly just carries out position renewal processing whenever surpassing.
Preferably, produce the mobile phone index value by system self, wherein, the span of mobile phone index value is 1 to 96.
Specifically describe embodiments of the invention below in conjunction with Fig. 2 and Fig. 3.
Fig. 2 is the schematic diagram that illustrates according to the structure of the mobile phone IMSI of the embodiment of the invention.
In gsm system, each user is assigned a unique IMSI, is used for the identification of user identity, the composition of IMSI as shown in Figure 2:
MCC is Mobile Country Code MCC, is used for identifying uniquely the affiliated country of mobile subscriber, and for example, the MCC of China is 460;
MNC is mobile network No., is used for the mobile radio communication (PLMN) that the identification mobile subscriber belongs to, and for example, the MNC of China Mobile is 01, and the MNC of CHINAUNICOM is 02;
MSIN is mobile identification number, is used for identifying uniquely the mobile subscriber of a certain mobile radio communication;
NMSI is the national mobile user identification code, is comprised of MNC and MSIN.
Fig. 3 is the flow chart that illustrates according to the concrete grammar of the generation mobile phone IMSI of the embodiment of the invention.
At first, obtain mobile network No. MNC and cell ID CI by system message 3 after system powers on.Then start timer and carry out the position renewal.
The IMSI number 460026109000000 of one 15 of initialization at first when upgrading in the position is then by being filled the relevant position of IMSI number by the mobile phone index value of system message 3 li MNC that obtain, CI and system itself.Wherein, the 1st to 3 of IMSI is Mobile Country Code MCC MCC, fixedly writes; The the 4th and the 5th is mobile network No. MNC; The the 6th to 9 fixedly writes; The the 10th to 13 is obtained by cell ID CI; And last two index by mobile phone draw.
For example, when the IMSI of mobile phone was 460026109123412, the present invention generated this IMSI number in the following way:
460-is MCC, fixedly writes in program;
02-is MNC, and it obtains by system message 3;
Following part all is MSIN:
6109-fixedly writes in program;
1-CI/1000 is used for difference caller residential quarter and called residential quarter, and for example, the caller residential quarter is 1, and called residential quarter is 2;
2-(CI/100)mod?10;
3-(CI/10)mod?10;
4-CI?mod?10;
1-Index/10;
2-Index?mod?10,
Wherein, Index is the index of MS, and value is 1~96; CI is cell ID, and value is 1000~2999.
The following describes and how to distribute cell ID:
1000 CI:1000~1999 are supported in large traffic caller residential quarter;
1000 CI:2000~2999 are supported in the called residential quarter of large traffic.
The matched rule of calling and called residential quarter is 1000 couplings, 2000,1001 couplings 2001, until 1999 couplings 2999.
Each residential quarter has 96 MS and calls out, that is, altogether can support 192000 mobile phones to call out simultaneously.For example, CI is 1000 caller residential quarter, and IMSI is 460026109100001~460026109199996; CI is 2000 called residential quarter, and IMSI is 460026109200001~460026109299996.These IMSI are corresponding one by one with called mobile phone according to the caller mobile phone, that is, caller IMSI is 460026109100001, then called IMS I is 460026109200001, the rest may be inferred, and caller IMSI is 460026109100096, and then called IMS I is 460026109200096.
By technical scheme of the present invention, can in position updating process, dynamically generate mobile phone IMSI, and change along with the quantity of allocating cell.
Be the preferred embodiments of the present invention only below, be not limited to the present invention, for a person skilled in the art, the present invention can have various modifications and variations.Within the spirit and principles in the present invention all, any modification of doing, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.
Claims (10)
1. a method that generates mobile phone international mobile subscriber identification code is used for distributing described mobile phone international mobile subscriber identification code in large traffic system, it is characterized in that described method comprises following processing:
System obtains mobile network No. and cell ID by system message after powering on; Start timer and carry out position renewal processing;
International mobile subscriber identification code of initialization; And
Fill the relevant position of described international mobile subscriber identification code by described mobile network No., described cell ID and mobile phone index value.
2. method according to claim 1, it is characterized in that, described international mobile subscriber identification code comprises 15, wherein, front three is Mobile Country Code MCC, and the 4th and the 5th is mobile network No., and the 6th to the 9th is fixedly write by program, the the tenth to the 13 corresponding to described cell ID, and the 14 and the 15 are corresponding to described mobile phone index value.
3. method according to claim 2, it is characterized in that, the the described the tenth to the 13 method corresponding to described cell ID is: the tenth is described cell ID/1000, the 11 is (described cell ID/100) mod 10, the 12 is that 13 of (described cell ID/10) mod 10, the are described cell ID mod10.
4. method according to claim 2 is characterized in that, described the 14 and the 15 method corresponding to described mobile phone index value are: the 14 is described mobile phone index value mod 10 for 15 of described mobile phone index values/10, the.
5. method according to claim 1 is characterized in that, also comprises following processing:
The residential quarter is divided into caller residential quarter and called residential quarter;
Wherein, described caller residential quarter and described called residential quarter are corresponding one by one, and can distinguish by described cell ID.
6. method according to claim 5 is characterized in that, 1000 cell IDs are supported respectively in described caller residential quarter and described called residential quarter.
7. method according to claim 6, the span of the cell ID of described caller residential quarter is 1000 to 1999, the span of the cell ID of described called residential quarter is 2000 to 2999.
8. method according to claim 1 is characterized in that, a timing is set in described timer, just carries out the renewal processing of described position whenever surpassing described timing.
9. method according to claim 1 is characterized in that, self produces described mobile phone index value by described system.
10. method according to claim 9 is characterized in that, the span of described mobile phone index value is 1 to 96.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 200810008741 CN101222770B (en) | 2008-01-23 | 2008-01-23 | Method for generating mobile phone international mobile subscriber identification code |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 200810008741 CN101222770B (en) | 2008-01-23 | 2008-01-23 | Method for generating mobile phone international mobile subscriber identification code |
Publications (2)
Publication Number | Publication Date |
---|---|
CN101222770A CN101222770A (en) | 2008-07-16 |
CN101222770B true CN101222770B (en) | 2013-01-16 |
Family
ID=39632288
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN 200810008741 Expired - Fee Related CN101222770B (en) | 2008-01-23 | 2008-01-23 | Method for generating mobile phone international mobile subscriber identification code |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101222770B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101409908B (en) * | 2008-11-19 | 2010-07-21 | 华为终端有限公司 | Method, apparatus and SIM card for searching network |
CN106550347B (en) * | 2015-09-22 | 2020-07-31 | 中国电信股份有限公司 | Method for realizing called number completion, Vo L TE terminal, base station and system |
CN108289303B (en) * | 2017-01-10 | 2021-08-13 | 普天信息技术有限公司 | Method for testing capacity of evolution base station |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1502200A (en) * | 2001-04-02 | 2004-06-02 | 摩托罗拉公司 | Method and apparatus for anonymous network access in the absence of a mobile subscriber identity module |
CN1728875A (en) * | 2004-07-28 | 2006-02-01 | 华为技术有限公司 | MNC conversion, and switching method between different MNCs |
CN1836390A (en) * | 2003-03-31 | 2006-09-20 | 摩托罗拉公司 | Packet filtering for emergency access in a packet data network communication system |
-
2008
- 2008-01-23 CN CN 200810008741 patent/CN101222770B/en not_active Expired - Fee Related
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1502200A (en) * | 2001-04-02 | 2004-06-02 | 摩托罗拉公司 | Method and apparatus for anonymous network access in the absence of a mobile subscriber identity module |
CN1836390A (en) * | 2003-03-31 | 2006-09-20 | 摩托罗拉公司 | Packet filtering for emergency access in a packet data network communication system |
CN1728875A (en) * | 2004-07-28 | 2006-02-01 | 华为技术有限公司 | MNC conversion, and switching method between different MNCs |
Also Published As
Publication number | Publication date |
---|---|
CN101222770A (en) | 2008-07-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101884212B (en) | Method and system for displaying user-related information on users'handsets | |
CN100551172C (en) | Method with updating start-up position area of multi-card mobile terminal of single GSM communication module | |
CA2841196C (en) | Method and system for implementing intelligent roaming service | |
CN100459765C (en) | Single-mode double-card double-standby method for time-division synchronous code division multiple access system terminal | |
CN101552969B (en) | A method and system to implement one-number-multi-machine service | |
CN101222770B (en) | Method for generating mobile phone international mobile subscriber identification code | |
CN101094513A (en) | Method for implementing network access for PCS user, and 3G user with one number and dual standby functions | |
CN103188642A (en) | Control method and control system for voice call, and mobile terminal | |
CN102014367A (en) | Mobile restriction implementation method of mobile communication terminal and CG gateway | |
CN102868989A (en) | Method, system and equipment for call ticket generation in long-term evolution fusion type core network | |
CN101115301B (en) | Method for obtaining roaming state of mobile terminal, mobile terminal and system | |
CN101534491B (en) | A method, a device and a system for realizing a number for a plurality of cell phones | |
CN101247586B (en) | Method for updating double-module mobile phone network binding number | |
CN101547428B (en) | Service processing method and service processing device | |
CN101304598B (en) | Method for distributing auxiliary number for one-card-multi-number service user | |
CN1468025A (en) | Method for implementing mobile phone localized roaming | |
CN101072437A (en) | Method and device for executing service for selecting different stand by numbers of multi-modeterminal | |
CN102123350A (en) | Method, terminal and system for realizing group calling in single station operating mode | |
CN103988532A (en) | Provisioning telephony network in response to electronic device attaching to the network | |
CN102063467B (en) | Method and system for acquiring customizable parameters | |
WO2010145363A1 (en) | Method and device for circuit data service handover | |
CN101350859B (en) | Method, apparatus and terminal for searching fixed telephone network | |
CN204795620U (en) | WLAN equipment and mobile device | |
CN100479557C (en) | Wirelessaccess box fully-automatic compactible DTMF/FSK calling identity delivery method | |
CN105530634A (en) | Method and system for judging new network-access users based on signaling collection way |
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: 20130116 Termination date: 20180123 |