A kind of method and system that obtains cdma mobile terminal information
Technical field
The present invention relates to moving communicating field, relate in particular to a kind of method and system that obtains cdma mobile terminal information.
Background technology
For the cdma mobile communication terminal of separation between machine and card, user profile leaves in the subscriber identification module (UIM), and network is by obtaining international mobile subscriber identity (IMSI), according to the IMSI retrieve user information.For the separation between machine and card pattern, network can't be learnt the employed end message of user.Prior art provides the dual mode that obtains end message.
First kind of scheme is that operation enterprise is built equipment identity register (EIR), and stores the mobile terminal identification number of different attribute in EIR in advance, as electronic serial number, ESN (ESN) or mobile device sign (MEID).Air interface protocol, A interface protocol and MAP (MAP) agreement such as CHECKMEID message by standard can be inquired about, and are convenient to operator and follow the tracks of terminal stolen or that lost efficacy.This mode can't be understood more end message except that termination number, as software version, terminal models etc., can only be used to check the stolen situation of terminal.
Second kind of scheme is the disclosed technical scheme of patent application " starting-up registering method of terminal in a kind of cdma communication system " (number of patent application is 200510011732.1), in the time of starting up of terminal, bind by terminal ESN parameter and the IMSI parameter in the traditional UIM card that inserts this terminal, make the portable terminal server know this user and terminal information by the short message report mode.The information that reports comprises information such as type (manufacturer, terminal models), ESN, IMSI and software version.In automatic registration process, the parameter when terminal is at first judged the ESN of self and whether the IMSI parameter of traditional UIM card of being inserted to shut down with last time is to coupling: if coupling, terminal is left intact, and continues to carry out follow-up start process; If do not match, the handling process that terminal should be according to the rules with new ESN/IMSI parameter to and the software version of terminal and terminal models with the mode reporting system of short message.
Adopt the scheme of equipment identity register (EIR) store electrons serial number (ESN) or mobile device sign (MEID), how operator does not adopt at present.Mainly be because can't obtain active user's end message.Can only inquire about track terminal, if do not have comprehensive end message storehouse and information networking mechanism, tracking effect is also relatively poor.This mode can't be understood more end message except that termination number in addition, can not adapt to the requirement of end message management.
In second kind of scheme, only having stipulated that the mobile terminal identification number is that the end message of ESN reports scheme, is not that the terminal of the MEID of the ESN of traditional 32 bits but 56 bits can't adopt this scheme reporting terminal information for the mobile terminal identification number.In addition because UIM card identification number upgrades to long form expansion UIMID based on 72 bit ICCID (integrated circuit identification code) by the UIMID of traditional 32 bits, or based on the short format of 56 bit MEID expansion UIMID, the UIM Card Type also will comprise traditional UIM card of adopting traditional 32 bit UIMID, adopts long form expansion UIMID to make the long form EUIM card of card number and adopt short format to expand the short format EUIM card of UIMID.This scheme is not considered traditional UIM card upgrade support to above multiple UIM Card Type behind the EUIM card yet.
After introducing the MEID terminal of use MEID as the mobile terminal identification number, if do not require MEID terminal to report MEID information, continue to adopt and the consistent register flow path of second kind of scheme (number of patent application is 200510011732.1), only the pseudo-ESN (pESN) that generates with the MEID terminal substitutes ESN and finishes the register flow path identical with the ESN terminal, the influence that can bring two aspects: 1, needing the existing portable terminal server of transformation to make it can discern pseudo-ESN (pESN), avoid with the pESN that may repeat is the terminal unique index; 2, can't guarantee the uniqueness of the mobile terminal identification number preserved in the portable terminal registration database and mobile terminal device and mobile subscriber's one-to-one relationship, as, the pESN that has repetition deposits database and corresponding different respectively mobile identification numbers (IMSI) in, it is difficult from the unique definite terminal equipment of user profile to cause, thereby has influence on professional expansion such as terminal unit management (DM), over-the-air function parameter configuration.
Summary of the invention
In order to solve the problem that above-mentioned existing scheme exists, the invention provides a kind of method and system that obtains cdma mobile terminal information, its purpose is, make and adopt ESN or MEID as the portable terminal of mobile terminal identification, under the situation of inserting traditional UIM card or EUIM card, all energy startup self-detections, with end message report network side,, carry out professional targetedly and service so that network is grasped the end message data.
The invention provides a kind of method of obtaining cdma mobile terminal information, in the time of mobile terminal-opening, by sending true mobile terminal identification number, type and the software version number of this portable terminal simultaneously, and content format version number to the portable terminal server in the communication system that inserts the registration short message that IMSI parameter in the UIM card of this portable terminal and this portable terminal use carries out start-up logging, makes the portable terminal server can know the information of this user and portable terminal simultaneously; The content format version number of registration short message is used to the content of portable terminal server parses short message that foundation is provided.
This method comprises the steps:
(1) user's start, portable terminal wouldn't and insert the mobile terminal identification number of storing on the UIM card of this portable terminal and upgrade the IMSI information of this portable terminal stored, up to read be stored in this portable terminal respectively and insert mobile terminal identification number in the UIM card of this portable terminal and the IMSI parameter to and this portable terminal in this machine sign-on ID parameter;
(2) if this machine sign-on ID parameter is 0, execution in step (4) then; As if this machine sign-on ID parameter is 1, then execution in step (3);
(3) mobile terminal identification number in this portable terminal that reads in the portable terminal determining step (1) and IMSI parameter to whether with the UIM card that inserts this portable terminal in the mobile terminal identification number and the IMSI parameter to coupling, if coupling, portable terminal is not done any processing, registration is finished, portable terminal operate as normal, otherwise execution in step (4);
(4) portable terminal sends the true mobile terminal identification number of this portable terminal with short message way and inserts IMSI parameter, the software version of this portable terminal and the type type information of this portable terminal in the UIM card of this portable terminal, report the portable terminal server, be used to carry out start-up logging.
Described step (3) comprises the steps:
(31) IMSI of the UIM card of the IMSI that stores in this portable terminal that reads in the comparison step (1) and this portable terminal of insertion is inconsistent as if both as if both unanimities, execution in step (32), then execution in step (4);
(32) the mobile terminal identification number of storing in the UIM card of the mobile terminal identification number of this portable terminal that reads in the comparison step (1) and this portable terminal of insertion, if both are inconsistent, execution in step (4) then, if both unanimities, then portable terminal is left intact, registration is finished, the portable terminal operate as normal.
The method that reads the mobile terminal identification number of this portable terminal stored in the described step (1) is: if this portable terminal then reads the ESN of this portable terminal for adopting the ESN terminal of ESN as the mobile terminal identification number; If this portable terminal is the MEID terminal, judge then whether the mobile terminal identification number in the UIM card of this portable terminal of insertion read is MEID, then read the MEID of this portable terminal in this way, otherwise read the pESN of this portable terminal.
Described step (4) comprises the steps:
(41) portable terminal operate as normal and send the registration short message have this portable terminal log-on message to the portable terminal server with short message way, log-on message comprises: the content format version number of registration short message, the type model of this portable terminal, the true mobile terminal identification number of this portable terminal, insert the interior IMSI of UIM card of this portable terminal, and the software version of this portable terminal;
(42) registration is after short message sends successfully, and portable terminal is changed to 0 with this machine sign-on ID, represents this registration also not successfully, and the interior IMSI of UIM card that will insert this portable terminal writes this portable terminal; If this portable terminal is the ESN terminal, then the ESN with this portable terminal writes the UIM card that inserts this portable terminal; If this portable terminal is the MEID terminal, judge then whether this portable terminal and the UIM card that inserts this portable terminal support MEID to write the UIM card, if support, then the MEID with this portable terminal writes the UIM card that inserts this portable terminal, otherwise, the pESN of this portable terminal is write the UIM card that inserts this portable terminal;
(43) after the portable terminal server is received the registration short message, the mobile subscriber's that wherein log-on message is carried together with this registration short message mobile terminal number, together deposit the portable terminal registration database of system in, feed back the affirmation short message that succeeds in registration to portable terminal then;
(44) after portable terminal is received the affirmation short message that succeeds in registration, this machine sign-on ID is changed to 1, represents this registration success, registration is finished.
In the described step (41), if portable terminal sends the failure of registration short message, then retry sends this short message, and the number of times that retry sends this short message is not more than 3 times, does not send yet successfully if surpass 3 times, then no longer sends, and abandons this time registration.
The true mobile terminal identification number that reports in the registration short message is ESN or MEID;
Described mobile terminal identification number is pESN, ESN or MEID.
The registration short message also comprises following field: short message command type, data total length and/or filler.
In the described step (43): the portable terminal server is resolved content of short message according to the content format version number of the registration short message received, reads content of short message and user's mobile terminal number and stores in the portable terminal registration database.
In the described step (43): the portable terminal server comprises in the affirmation short message that succeeds in registration of portable terminal feedback and reports the corresponding content format of registration short message version number, true mobile terminal identification number and IMSI, and the short message command type.
It is the succeed in registration affirmation short message of portable terminal server to the portable terminal feedback that the short message command type is used to refer to this short message; True mobile terminal identification number then succeeds in registration with this with IMSI and confirms that the pairing true mobile terminal identification number of registering in the short message that reports of short message is identical with IMSI, is used for judging whether the affirmation short message that succeeds in registration that this portable terminal is received is when time feedback that reports the registration short message of sending out.
The invention provides a kind of system that obtains cdma mobile terminal information, comprise portable terminal server and portable terminal, portable terminal, be used in the time of start, sending true mobile terminal identification number, type and the software version number of this portable terminal, and content format version number to the portable terminal server in the communication system that inserts the registration short message that IMSI parameter in the UIM card of this portable terminal and this portable terminal use carries out start-up logging, makes the portable terminal server can know the information of this user and portable terminal simultaneously; The content format version number of registration short message is used to the content of portable terminal server parses short message that foundation is provided.
Portable terminal, also be used for mobile terminal identification number in reading the UIM card that is stored in this portable terminal respectively and inserts this portable terminal and IMSI parameter to after, judge mobile terminal identification number in this portable terminal and IMSI parameter to whether with the UIM card that inserts this portable terminal in the mobile terminal identification number and the IMSI parameter to coupling.
Portable terminal also is used for judging whether that according to this machine sign-on ID in this portable terminal needs report the registration short message again; When the software release upgrade of this portable terminal, this portable terminal puts 0 with this machine sign-on ID, shows to carry out start-up logging again.
Portable terminal also is used for carrying out start-up logging by sending the short message that has the portable terminal log-on message to the portable terminal server.
The short message that has the portable terminal log-on message comprises following field:
The type model of content format version number, this portable terminal of registration short message, the true mobile terminal identification number of this portable terminal, insert the IMSI in the UIM card of this portable terminal, the software version of this portable terminal;
The true mobile terminal identification number that reports in the registration short message is ESN or MEID;
Described mobile terminal identification number is pESN, ESN or MEID.
The short message that has the portable terminal log-on message also comprises following field: short message command type, data total length and/or filler.
The portable terminal server, after being used to receive the short message that has the portable terminal log-on message, resolve content of short message according to the content format version number in this registration short message, the mobile subscriber's that wherein log-on message is carried together with the registration short message mobile terminal number together deposits the portable terminal registration database of system in.
The portable terminal server, also be used for feeding back the affirmation short message that succeeds in registration to portable terminal, this short message comprises following field: with the corresponding content format of registration short message version number, true mobile terminal identification number and IMSI parameter, and the short message command type.
It is the succeed in registration affirmation short message of portable terminal server to the portable terminal feedback that the short message command type is used to refer to this short message; True mobile terminal identification number then succeeds in registration with this with IMSI and confirms that the pairing true mobile terminal identification number of registering in the short message that reports of short message is identical with IMSI, is used for judging whether the affirmation short message that succeeds in registration that this portable terminal is received is when time feedback that reports the registration short message of sending out.
The present invention can compatible dissimilar MEID terminal and ESN terminal, compatible traditional UIM card, long form EUIM card and short format EUIM card, can realize the portable terminal startup self-detection smoothly of ESN and MEID sign, with end message report network side, so that network is grasped the end message data, carry out professional targetedly and service.
Description of drawings
Fig. 1 is the flow chart that obtains information of mobile terminal provided by the invention.
Embodiment
The present invention improves the disclosed technical scheme of patent application " starting-up registering method of terminal in a kind of cdma communication system " (number of patent application is 200510011732.1), with the portable terminal startup self-detection smoothly that realizes that ESN and MEID identify, and report information of mobile terminal.Method provided by the invention can compatible dissimilar MEID terminal and ESN terminal, compatible traditional UIM card, long form EUIM card and short format EUIM card.Be not particularly limited under the situation of explanation, " the UIM card " mentioned among the present invention all refers to the general name to traditional UIM card, long form EUIM card and short format EUIM card.
The present invention proposes a kind of method and system that obtains cdma mobile terminal information, support terminal reports true mobile terminal identification number, and, realized the Auto Power On registration of ESN and MEID portable terminal by revising the automatic register flow path of existing starting up of terminal, definition registration content of short message format version number, increase the information field of confirming short message of succeeding in registration, simplify the registration trigger mechanism behind the mobile terminal software upgrading and increasing requirement to the portable terminal server.
In the Auto Power On registration process, portable terminal at first judge self mobile terminal identification number (ESN, pESN or MEID) and the IMSI parameter of the UIM card of the current insertion terminal parameter when shutting down with last time to whether to coupling.If coupling, terminal is left intact, the beginning operate as normal; If do not match, terminal should according to handling process provided by the invention with new ESN/MEID and IMSI parameter to and the software version of terminal and terminal models etc. with the mode reporting system of short message.
The automatic register flow path of start of phone-card separated mobile terminal (hereinafter to be referred as mobile phone) can be revised as shown in Figure 1, comprising:
Step 101, user's start;
Step 102 before the operation in finishing following steps 103-105, wouldn't be upgraded the mobile terminal identification number of storing on this mobile phone EMS memory IMSI information of storing up and the UIM card that inserts this mobile phone;
Step 103 reads this machine sign-on ID;
Step 104 reads the IMSI number of storing in this machine and the UIM card;
Step 105 reads the mobile terminal identification number of storing in the UIM card; The mobile terminal identification number of this machine of reading stored, method is: if this machine is the ESN terminal, then read the ESN of this machine; If this machine is the MEID terminal, judge then whether the mobile terminal identification number of storing in the UIM card of this machine of insertion is MEID, then reads the MEID of this machine in this way, otherwise the pESN of this machine of reading;
Step 106, this machine are finished opening initialization, sign in to network and are begun operate as normal;
Step 107, whether this machine sign-on ID of inspection equals " 1 "; If this machine sign-on ID equals " 1 ", then enter step 108, otherwise enter step 110;
Step 108, whether two IMSI numbers that read in the comparison step 104 are identical; If two IMSI numbers are identical, then enter step 109, otherwise enter step 110;
Whether the mobile terminal identification number of storing in the step 109, the mobile terminal identification number of this machine stored that reads in the comparison step 105 and UIM card is identical, if identical, then jumps to step 118, and registration is finished, otherwise execution in step 110;
Step 110, mobile phone sends " registration short message " with common short message way (TeleserviceID=4098) to portable terminal server (9992), content comprises: the content format version number, mobile phone model of registration short message, true mobile terminal identification number (the ESN terminal is ESN, and the MEID terminal is MEID), insert IMSI, this machine software version of the UIM card of this machine; (illustrate: the descending short message TeleserviceID=65005 of portable terminal server; Registration process is carried out on the backstage fully, that is: no matter be to send the registration short message, still receives the affirmation short message that succeeds in registration, and does not give the user with prompting, does not also show short message in short message inbox and outbox, avoids interference the user and normally uses.) in the special byte of registration short message, set content of short message format version number, how to resolve content of short message with decision.The registration content of short message format version that the ESN terminal sends number be ' 1 ', and reports and submits ESN in the true mobile terminal identification number field of registering short message; The registration content of short message format version that the MEID terminal sends number be ' 2 ', and reports and submits MEID in the true mobile terminal identification number field of registering short message;
Step 111 judges whether the registration short message sends success; If success enters step 113, otherwise enters step 112;
Step 112 judges that whether the number of retries that sends the registration short message is less than or equal to 3, if then enter step 110 after waiting for the regular hour (as 3 minutes), resends the registration short message, otherwise enters step 118;
Step 113 is changed to " 0 " with this machine sign-on ID;
Step 114 writes this machine with the IMSI that inserts the UIM card of this machine;
Step 115 writes the UIM card that inserts this machine with this machine mobile terminal identification number, and method is: if this machine is the ESN terminal, then the ESN of this machine is write the UIM card of this machine of insertion; If this machine is the MEID terminal, judge then whether this machine and the UIM card that inserts this machine support MEID to write the UIM card, if support, then the MEID of this machine is write the UIM card of this machine of insertion, otherwise, the pESN of this machine is write the UIM card of this machine of insertion;
Step 116, portable terminal server are resolved this registration short message after receiving the registration short message that mobile phone sends, and together with registering the mobile terminal number MDN that short message carries, together deposit wherein log-on message in " portable terminal registration database ".The portable terminal server determines to resolve the method for message content according to the content format version number of the registration short message received, is ' 1 ' as content format version number, then reads and the ESN of memory mobile terminal in the portable terminal registration database; As content format version number is ' 2 ', then reads and the MEID of memory mobile terminal in the portable terminal registration database.After resolving the registration content of short message and storing successfully, the portable terminal server feeds back the affirmation short message that succeeds in registration to mobile phone: the form of this short message and the pairing registration short message that reports are identical; Except the value of " short message command type " byte is " 0x04 ", represent that this short message is for outside the affirmation short message that succeeds in registration, the data of other each fields are also identical with the corresponding field that reports the registration short message, comprise content format version number, true mobile terminal identification number and IMSI etc.
Step 117, the succeed in registration affirmation short message of this machine as receiving that the portable terminal server is sent, then resolve message content according to the content format version number in this short message, (the ESN terminal is ESN with the true mobile terminal identification number that carries in this short message and the true mobile terminal identification number of this machine, the MEID terminal is MEID) compare, and IMSI parameter in this short message and IMSI parameter in the UIM card that inserts this machine compared, if two groups of data are all identical, can confirm that then this affirmation short message that succeeds in registration is for working as time feedback of the registration short message of sending out, be changed to " 1 " with being about to this machine sign-on ID, the success of expression start-up logging.
Step 118, registration is finished.
Among the present invention, portable terminal judges also whether software version has upgrading (comprising main body software upgrading and firmware update), and as upgrading, portable terminal is changed to " 0 " with this this machine sign-on ID parameter, and expression need re-register.In step 107, pass through judgement like this, can realize reporting software release upgrade information to this machine sign-on ID parameter.
Report the form of registration short message as follows:
First byte of short message text is " a content format version ", and how decision resolves message content.This byte numerical value should be made as " 1 " during ESN terminal to report registration short message; This byte numerical value should be made as " 2 " during MEID terminal to report registration short message;
Second byte of short message text is " short message command type ", is used to refer to short message types.This byte numerical value represents that for " 3 " this short message is the registration short message that mobile phone reports the portable terminal server; This byte numerical value is represented this short message for " 4 " and is given the affirmation short message that succeeds in registration of mobile phone for the portable terminal server feedback;
The 3rd byte of short message text is " data total length ", provides the total length of the entrained end message data of this short message, is used to resolve message content.
The 4th byte of short message text is " filler ", for the buffering room, makes things convenient for the division of message content.
Be " information data " that is limited in 128 bytes afterwards, form that these character strings provide the end message content that mobile phone reports with the XML language format by the character string of asicII form:
<a1>
<b1〉type model (Device Model)</b1 〉
<b2〉ESN or MEID</b2〉(,, show in the ASCII character mode if MEID then is 14 16 system numerals if ESN then is the numeral of 8 16 systems.For example: be character string " A1B2FD8E ")
<b3〉IMSI</b3〉(15 ten's digits, for example: be character string " 460031234567890 ")
<b4〉software version (Software Version)</b4〉(being no more than 60 bytes)
</a1>
The invention provides a kind of system that obtains cdma mobile terminal information, comprise portable terminal server and portable terminal.Portable terminal, be used in the time of start, sending true mobile terminal identification number, type and the software version number of this portable terminal, and content format version number to the portable terminal server in the communication system that inserts the registration short message that IMSI parameter in the UIM card of this portable terminal and this portable terminal use carries out start-up logging, makes the portable terminal server can know the information of this user and portable terminal simultaneously; The content format version number of registration short message is used to the content of portable terminal server parses short message.
Portable terminal, also be used for, after start to the IMSI information of this portable terminal stored with before inserting the mobile terminal identification number of storing on the UIM card of this portable terminal and upgrading, judge the mobile terminal identification number of this portable terminal stored and IMSI whether with the UIM card that inserts this portable terminal in store mobile terminal identification number and IMSI coupling, whether need send the registration short message.
Portable terminal also is used for, and judges whether that according to this machine sign-on ID in this portable terminal needs report the registration short message again; When the software release upgrade of this portable terminal, this portable terminal shows that the reset of this machine sign-on ID need carry out start-up logging again.
Portable terminal also is used for, and carries out start-up logging by sending the short message that has the portable terminal log-on message to the portable terminal server.The short message that has the portable terminal log-on message is promptly registered short message, comprises following field:
The type model of content format version number, this portable terminal of registration short message, the true mobile terminal identification number of this portable terminal, insert the IMSI in the UIM card of this portable terminal, the software version of this portable terminal;
Wherein the true mobile terminal identification number of this portable terminal is ESN or MEID.
The short message that has the portable terminal log-on message also comprises following field: short message command type, data total length and/or filler.Wherein the short message command type is used to refer to the registration short message that this short message is a terminal to report.
The portable terminal server, after being used to receive the short message that has the portable terminal log-on message, resolve content of short message according to the content format version number in this registration short message, the mobile subscriber's that wherein log-on message is carried together with the registration short message mobile terminal number (MDN) together deposits the portable terminal registration database of system in.
The portable terminal server, also be used for feeding back the affirmation short message that succeeds in registration to portable terminal, this short message comprises following field: with the corresponding content format of registration short message version number, true mobile terminal identification number and IMSI parameter, and the short message command type.Wherein, to be used to refer to this short message be server to the short message command type to the affirmation short message that succeeds in registration of portable terminal feedback; True mobile terminal identification number then succeeds in registration with this with IMSI and confirms that the pairing true mobile terminal identification number of registering in the short message that reports of short message is identical with IMSI, is used for judging whether the affirmation short message that succeeds in registration that this portable terminal is received is when time feedback that reports the registration short message of sending out.
The present invention has realized the compatibility of dissimilar MEID terminal (supporting the MEID terminal of long form EUIM card, the MEID terminal of support short format EUIM card) and ESN terminal has been realized the compatibility to traditional UIM card, long form EUIM card and short format EUIM card.In the registration short message of mobile terminal reporting, increased the content format version information, make things convenient for the portable terminal server side correctly to extract data, and can be by the different registration content of short message format version of definition number, expansion supports the information of mobile terminal under the multiple conditions of demand to extract, as double-module double-standby terminal, machine being engaged a terminal information extraction etc.Propose the new method that triggers start-up logging behind the mobile terminal software upgrading, report software version information, be easier to Project Realization.Confirm in the short message to succeeding in registration of portable terminal feedback at the portable terminal server, true mobile terminal identification number and the IMSI information from report the registration short message, extracted have been increased, judge with helping portable terminal whether the affirmation short message of being received that succeeds in registration is the feedback that reports the registration short message when inferior, avoid frequently changing planes under the card sight, portable terminal is confirmed the erroneous judgement of short message to succeeding in registration.Consider that the start-up logging flow process that realizes by short message all has certain system's time delay on each link of portable terminal and network, for improving system effectiveness, avoiding portable terminal to repeat to report the registration short message, added the delay requirement that portable terminal is sent the registration short message.For guaranteeing that portable terminal correctly detects the situation of the card of changing planes, further clear and definite at start-up logging flow startup of the present invention and before reading mobile terminal identification number and IMSI data in the UIM card that is stored in portable terminal and inserts this terminal, portable terminal should be in the initialization procedure of chip and UIM card the above data of advancing updating.
Those skilled in the art can also carry out various modifications to above content under the condition that does not break away from the definite the spirit and scope of the present invention of claims.Therefore scope of the present invention is not limited in above explanation, but determine by the scope of claims.