Embodiment
It should be noted that, in the situation that not conflicting, the feature in embodiment and embodiment in the application can combine mutually.Describe below with reference to the accompanying drawings and in conjunction with the embodiments the present invention in detail.
Fig. 2 is according to the flow chart of the method to mobile terminal transmission Location Request of the mobile terminal of the embodiment of the present invention.As shown, the method comprises that following step S12 is to step S16:
Step S12, locating platform sends request signaling to the attaching position register of mobile terminal, and wherein, demand signalling comprises the signaling of the state information of requesting query mobile terminal.
Preferably, demand signalling can also comprise the signaling of the residing mobile switching centre of requesting query mobile terminal information.
Step S14, the state information that locating platform returns according to attaching position register judges that whether the state of mobile terminal is normal.
Step S16, in the normal situation of state of mobile terminal, locating platform sends the SUPL request of secure user plane location by the residing mobile switching centre of mobile terminal to mobile terminal.
In the normal situation of state of mobile terminal, the residing mobile switching centre of the mobile terminal information that locating platform can also return according to attaching position register to the positional information of mobile switching centre's enquiry mobile terminal to realize the more accurately location to mobile terminal.
Above-mentioned demand signalling can also comprise the signaling of the residing cell information of requesting query mobile terminal, in the case of the abnormal state of mobile terminal, (the residing cell information of mobile terminal that locating platform returns to attaching position register sends to requestor, the side that request positions mobile terminal), thereby in the situation that mobile terminal state is abnormal, also can realize the location to mobile terminal.
In this embodiment, because locating platform is after receiving the status information of mobile terminal that attaching position register returns, whether the state that judges mobile terminal according to this state information is normal, and in the normal situation of mobile terminal, just send the SUPL request of secure user plane location to the residing mobile switching centre of mobile terminal to mobile terminal, thereby can avoid in the situation that mobile terminal is abnormal, send the SUPL request of secure user plane location, thereby, by this embodiment, can reduce the waste problem of Internet resources.
Fig. 2 a is according to the flow chart of the localization method to mobile terminal of first embodiment of the invention, and as shown in Figure 2 a, the method comprises that following step S 102 is to step S 108:
Step S102, locating platform sends request signaling to the attaching position register of mobile terminal, wherein, described request signaling is for inquiring about the state information of described mobile terminal, the residing cell information of described mobile terminal and the residing mobile switching centre of described mobile terminal information.
Above-mentioned demand signalling can be random challenge ATI signaling.
Step S104, described locating platform receives the signaling response from described attaching position register, wherein, described signaling response comprises the state information of described mobile terminal, the residing cell information of described mobile terminal and the residing mobile switching centre of described mobile terminal information.
Wherein, after locating platform receives the signaling response from attaching position register, said method also comprises: locating platform judges whether the data age of cell information exceedes intended duration; Exceed intended duration at the data age of cell information, locating platform sends random challenge ATI signaling to attaching position register again; The signaling response that locating platform returns according to attaching position register upgrades the positional information of mobile terminal.
Step S106, described locating platform judges that according to the state information of described mobile terminal whether the state of described mobile terminal is normal; In judged result for be in the situation that, execution step S108, in judged result be no in the situation that, execution step S110.
Step S108, in the case of the abnormal state of described mobile terminal, residing described mobile terminal cell information is sent to content supplier by described locating platform;
Step S110, in the normal situation of state of described mobile terminal, described locating platform is inquired about described mobile terminal according to positional information from the residing mobile switching centre of described mobile terminal information to described mobile switching centre, and described positional information is sent to content supplier.
Locating platform can comprise to the positional information of mobile switching centre's enquiry mobile terminal according to the residing mobile switching centre of mobile terminal information: locating platform sends the signaling that carries secure user plane location initial message to mobile switching centre; Mobile switching centre locates secure user plane for initial message and sends to mobile terminal; And mobile terminal and locating platform establish the link so that locating platform positions the position of mobile terminal.
Fig. 2 b is the flow chart of the localization method that provides according to the embodiment of the present invention; As described in Fig. 2 b, the localization method that the embodiment of the present invention provides mainly comprises the following steps (S201-S205):
S201: for network originated align_type, issuing before SUPL INIT message, SLP sends inquiry (ATI) demand signalling at any time to terminal attaching location register (HLR:Home Location Register); SOT state of termination, cell information of living in and mobile switching centre's information are returned in requirement.
S203:SLP is according to the mobile switching centre's information getting, send signaling to it, wherein in this signaling, carry SUPL INIT message, this SUPLINIT message is sent to terminal to be positioned by mobile switching centre, activate this terminal and be connected to SLP, open SUPL positioning interaction flow process.
In concrete application, mobile switching centre can be MSC (Mobile SwitchCenter), can be also calling party location register VLR (Visitor LocationRegister).
Particularly, SLP, from HLR gets the response of ATI request, obtains SOT state of termination, if terminal (comprising: shutdown in abnormal condition, out of reach territory or roam out service area) time, SLP can only passive wait terminal connect overtime, for fear of the meaningless wait of SLP in this case, in embodiments of the present invention, if it is abnormal condition that the state information that SLP returns according to HLR is determined the current state of this terminal, SLP forbids sending the signaling of carrying SUPL INIT message to mobile switching centre, finish the SUPL positioning flow of above-mentioned terminal, owing to getting the residing cell information of terminal from ATI response, get position result according to cell information inquiry base station data storehouse (BSDB:BaseStaion Database), return to a comparatively rough position result to external client, be only in normal situation in terminal current state to be positioned, SLP just can send above-mentioned signaling to mobile switching centre.
Receive after above-mentioned signaling in mobile switching centre, SUPLINIT message is sent to terminal by mobile switching centre, terminal receives after this SUPL INIT message, if terminal capability is supported SUPL agreement, send message to SLP, connect with SLP, if terminal and SLP connect successfully, locating platform and terminal interaction, carries out location and the calculating of AGPS, obtains the positional information of this terminal.SLP is getting after the positional information of terminal, the positional information of this terminal is returned to the external client of initiating Location Request.
Particularly, if the signaling of the above-mentioned SUPL of carrying INIT message sends unsuccessfully, or terminal does not possess SUPL ability, or terminal and SLP connect unsuccessfully, or carrying out the location of AGPS and calculating unsuccessfully, now SUPL location will be failed, cannot get terminal positional information.
S205:SLP determines whether to carry out this step according to the length in ATI response small area information data length of time in S201 step; If above-mentioned ATI signaling response small area information data is shorter the length of time, illustrate that position data is enough new, now do not carry out this step; If above-mentioned ATI signaling response small area information data is longer the length of time, illustrate that position data is more outmoded; And mobile positioning center is issuing in the process of SUPL INIT message, terminal to be positioned has completed paging, therefore there is up-to-date position to upgrade result at mobile positioning center, now carry out this step, again send the request of ATI signaling to obtain the position result of recent renewal, wherein, this step is optional.
In the embodiment of above-mentioned mobile terminal locating method, because locating platform is being judged in the normal situation of mobile terminal, just send secure user plane location SUPL asks accurately to locate to the residing mobile switching centre of mobile terminal to mobile terminal, in the situation that mobile terminal is abnormal, carry out rough location, avoid in the situation that mobile terminal is abnormal, send the SUPL request of secure user plane location, thereby both reduced the waste of Internet resources, solve again mobile terminal has been positioned to the problem that the time is long and mortality is higher, and then can realize fast, efficiently mobile terminal is positioned.
Fig. 3 is the positioning flow figure of terminal in the time of abnormal condition; The processing procedure that this terminal is positioned mainly comprises the following steps (S301-S304):
S301: content supplier (CP:Content Provider) sends running fix agreement (MLP:Mobile Location Protocol) and asks to SUPL locating platform (SLP), request is treated locating terminal and is carried out SUPL AGPS location;
S302:SLP sends ATI demand signalling to the attaching position register (HLR) of terminal to be positioned;
Particularly, above-mentioned ATI demand signalling is for inquiring about state, cell information and mobile switching centre's information of terminal to be positioned;
S303:HLR returns to terminal to be positioned residing mobile switching centre information and cell information in ATI signaling response, and the current residing state of indicating terminal;
Particularly, the current status of above-mentioned terminal to be positioned can be following any one: shutdown, or out of reach or roam out service area.
Further, when terminal to be positioned is during in above-mentioned abnormal condition, the cell information returning refers to the critical point of terminal in the time changing to abnormal condition by normal condition cell information of living in, and recording this crash time point, current time deducts the data age that the above-mentioned crash time obtains cell information.
S304:SLP judges that the current state of terminal to be positioned cannot carry out SUPL location, but gets the finally cell information in the time of normal condition of terminal;
Particularly, if data age meets the requirement to position timeliness in MLP Location Request, SLP inquiry base station data storehouse (BSDB) obtains latitude and longitude information corresponding to this community and returns to CP, and indicates the data age He You community mode of positioning result to obtain; If data age does not meet the requirement to position timeliness in MLP Location Request, the response of restoring to normal position failure is to CP, and flow process finishes.
Further, when the current state of terminal to be positioned is shutdown, out of reach and while roaming out service area any one, SUPL AGPS method is all inapplicable, the invalid wait when finishing SUPL flow process and then having avoided pure user's face situation.
Adopt the present invention to the processing method of terminal current state under abnormal condition that be positioned, can effectively control the transmission to SUPL INIT message, alleviate the burden of dead message to network; Also can obtain the in the end positional information in the time of normal condition of terminal simultaneously.
Fig. 4 is the positioning flow figure of terminal in the time of normal condition; The processing procedure that this terminal is positioned mainly comprises the following steps (S401-S410):
S401:CP sends MLP and asks to SLP, and request is treated locating terminal and carried out SUPLAGPS location;
S402:SLP sends ATI demand signalling to HLR, inquires about SOT state of termination to be positioned, cell information and mobile switching centre's information.
S403:SLP receives ATI signaling response from HLR, indicates SOT state of termination normal in response message, and returns to mobile switching centre's information at the current place of terminal to be positioned, and returns to cell information and the data age of terminal in the last registration of mobile switching centre.
S404:SLP sends MTForward SM signaling to the mobile switching centre at the current place of terminal to be positioned, carries SUPL INIT code stream in this signaling;
S405: the MT Forward SM signaling that carries SUPL INIT code stream is delivered by mobile switching centre to terminal to be positioned, activate after terminal to be positioned connects above-mentioned SLP and start SUPL AGPS positioning flow;
S406: mobile switching centre returns to the response message of MT Forward SM transmitting signaling downwards, the MT Forward SM signaling that indication carries SUPL INIT code stream has sent to terminal.
S407:SLP judges the cell information data age in above-mentioned ATI signaling response, again initiates ATI demand signalling to HLR if comparatively outmoded, the cell information of inquiry recent renewal.If newer, skip this step.
Particularly, because having treated locating terminal in the process of delivering MT Forward SM signaling, mobile switching centre completes paging, therefore in MSC/VLR, there is up-to-date position to upgrade result, chain of command positioning flow only need to use the ATI signaling without Current Location mark, just can, from the current residing cell information of HLR quick obtaining terminal, can not trigger the MSC paging extra to user.
S408: corresponding to step S407 above, SLP receives the ATI signaling response returning from HLR, has the up-to-date cell information of living in of terminal in response message.
S409: terminal to be positioned is receiving after SUPL INIT message, opens SUPL positioning interaction flow process;
Particularly, terminal and SLP establish the link and send SUPL location initial message (being SUPL POS INIT message); Terminal to be positioned and SLP carry out the interacting message based on user's face, carry out the mutual of SUPL POS, and in this process, SLP obtains the supplementary line position of going forward side by side and calculates, and finally completes the position fixing process of terminal; SLP sends location end (SUPL END) releasing resource to terminal, finishes SUPL positioning flow.
This step is initiatively initiated to SLP link setup mutual by terminal, the sequencing on not free with step S406, S407, S408 point; But it is fast that in general user plane messages does not have the Signalling exchange of chain of command alternately, therefore for once complete SUPL interaction flow, after its end time is positioned at step S408 certainly.
S410:SLP and terminal normally carry out after SUPL reciprocal process finishes, successfully getting position result, are responded and are returned to CP by MLP.
Fig. 5 is the flow chart of the preferred embodiment of the localization method of mobile terminal of the present invention.
In this embodiment, contain various abnormal processing, in order to meet CP, positioning result has been returned to the requirement of promptness simultaneously, increased set timer.As shown in the figure, detailed processing procedure terminal being positioned mainly comprises the following steps (S501-S514):
S501:CP sends MLP and asks to SLP, and request is treated locating terminal and carried out SUPLAGPS location; After receiving, SLP sets the timer T1 of this location sessions.
Particularly, receive after MLP request at SLP, set the timer T1 controlling this positioning flow total time, once find that in whole positioning service flow process timer time arrives, return to MLP and respond to CP, process ends.Because sending and receiving time of chain of command signaling ATI is much smaller than the mutual time of user's face SUPL, wait for that at SLP terminal connects overtime or AGPS session does not complete or terminal is not replied under the situations such as SUPL POS message, SLP still can get ATI positioning result; So SLP finishes positioning flow in the time that timer T1 arrives, return to the positioning result of ATI mode to CP.So just can meet the promptness requirement that CP returns positioning result, reduce the stand-by period, promote user's experience.
S502:SLP sends ATI demand signalling to HLR, inquires about SOT state of termination to be positioned, cell information and mobile switching centre's information.
S503:SLP receives ATI signaling response from HLR, mobile switching centre's information at indicating terminal current state information and the current place of terminal to be positioned in response message, and return to cell information and the data age of terminal in the last registration of mobile switching centre.
Particularly, the current status of above-mentioned terminal to be positioned can be following any one: normal, and shutdown, or out of reach or roam out service area.
S504:SLP judges that terminal current state is whether in normally;
Particularly, if SOT state of termination is undesired, be shutdown, or out of reach or roam out service area, what SLP was no longer meaningless issues SUPL INIT message, can not start SUPL positioning flow.
Further, if data age meets the requirement to position timeliness in MLP Location Request in ATI signaling response, SLP inquiry base station data storehouse (BSDB) obtains latitude and longitude information corresponding to this community and returns to CP, and indicates the data age He You community mode of positioning result to obtain; If data age does not meet the requirement to position timeliness in MLP Location Request, the response of restoring to normal position failure is to CP, and flow process finishes.
If SOT state of termination, in normally, enters step S505.
S505:SLP sends MTForward SM signaling to the mobile switching centre at the current place of terminal to be positioned, carries SUPL INIT code stream in this signaling;
S506:MSC treats locating terminal paging, carries the MT Forward SM signaling of SUPL INIT code stream to its delivery.
Particularly, MSC may be to VLR inquiry terminal information, comprise terminal whether can and etc.; VLR sends paging request to MSC, requires to set up wireless connections; MSC sends beep-page message to terminal; Paging terminal success, enters access procedure; MSC notice VLR paging success, VLR completes the operations such as authentication, position renewal, encryption, and notice MSC accesses successfully; MSC sends access acknowledgement message to terminal; MSC forwards MT short message to terminal, carries SUPL INIT code stream; Terminal returns to MSC the response message that short message successfully receives.
Further, if there is the reason such as terminal low memory, communication network be congested, terminal fails correctly to receive MT short message, and MSC also can notify SLP by error code.
S507:SLP receives from MSC the response that MT Forward SM signaling message issues.
S508:SLP obtains terminal and whether successfully receives the indication of MT short message from above-mentioned response.
Particularly, receive MT short message if terminal fails, SUPL INIT issues failure, cannot start SUPL positioning flow;
If terminal successfully receives the MT short message that carries SUPL INIT code stream, waiting step S52 occurs, and step S52 is initiatively initiated by terminal, the passive wait of SLP.
S509:SLP is from above-mentioned ATI signaling response from getting cell information and data age;
Particularly, if the length of time enough new (new/old decision can quantize by setting a certain concrete numerical value, within 60 seconds),, without again retransmitting ATI demand signalling, enter step S512.
If the length of time, new not (before 60 seconds), entered step S510.
S510:SLP sends the ATI demand signalling without Current Location mark to HLR;
Particularly, complete paging owing to having treated locating terminal in the process of delivering MT Forward SM signaling, therefore in MSC/VLR, there is up-to-date position to upgrade result, chain of command positioning flow only need to use the ATI signaling without Current Location mark, just can, from the current residing cell information of HLR quick obtaining terminal, can not trigger the extra paging of MSC to user.
S511:SLP receives the ATI signaling response message of HLR, gets the cell information of living in of terminal recent renewal after paging.
In the process of step S509~~~S511, step S52 is also in synchronously carrying out, and SLP, waiting for that terminal connects, once terminal and SLP successful connection are set up, starts the mutual positioning flow of SUPL.The transmitting-receiving of SUPL interaction message is all based on packet-switched domain (PS) passage.
Particularly, MS sends SUPL POS INIT message; MS and SLP carry out the interacting message based on user's face, carry out the mutual of SUPL POS, and in this process, SLP and MS provide and obtain supplementary, and complete the positioning calculation process of terminal; Locate rear SLP and sent SUPL END message with releasing resource to terminal, finished positioning flow.
S512:SLP is getting behind the nearest location cell of terminal by chain of command ATI signaling method, and whether the MT short message that judgement carries SUPL INIT code stream sends successfully.
Particularly, if MT reconnaissance short message sends successfully, show now carrying out step S52, start SUPL positioning flow, should wait for the location sessions timer T1 arrival that SUPL interaction flow finishes or sets, enter step S513; If MT reconnaissance short message sends unsuccessfully, show to be not activated SUPL interaction flow, enter step S514.
S513: when the location sessions timer T1 setting at step S501 arrives or SUPL finishes alternately, judge whether SUPL location successfully gets position result.
Particularly, successfully get position result if user's face SUPL locates, enter step S515.
If user's face SUPL positioning interaction is because terminal is not supported SUPL agreement, or terminal connects overtime, or AGPS session does not complete, or terminal is not replied SUPL message, or supplementary not waits and extremely causes location Calculation unsuccessfully, or after the location sessions timer T1 setting arrives, SUPL is not over yet alternately, now enters step S514.
Adopt the present invention in the time of processing terminal mixed positioning, user's face hi-Fix and chain of command coarse positioning carry out simultaneously, thereby avoid just carrying out the longer waiting-timeout that this trial and error mode of chain of command coarse positioning mode causes after the failure of user's face hi-Fix mode, in the time that network side third party initiates NI request, if when the positioning result response time, promptness was had relatively high expectations, also can meet its demand.
S514:SLP gets the longitude and latitude result of position according to the cell information inquiry base station data storehouse BSDB in ATI signaling response.
S515:SLP returns to MLP positioning result response to CP, in position result, points out to be derived from SUPL hi-Fix or community coarse positioning is chain of command ATI positioning result, and the generation time of indicating positions result.
It should be noted that, can in the computer system such as one group of computer executable instructions, carry out in the step shown in the flow chart of accompanying drawing, and, although there is shown logical order in flow process, but in some cases, can carry out shown or described step with the order being different from herein.
Fig. 6 is the schematic diagram of the locating platform that provides according to the embodiment of the present invention.
As shown in Figure 6, this locating platform comprises the first sending module 602, the first judge module 604, the second sending module 606.
The first sending module 602, sends request signaling for the attaching position register to mobile terminal, and wherein, described request signaling comprises the signaling of the state information of mobile terminal described in requesting query; The first judge module 604, judges that for the described state information of returning according to described attaching position register whether the state of described mobile terminal is normal; The second sending module 606, in the normal situation of the state at described mobile terminal, sends the SUPL request of secure user plane location by the residing mobile switching centre of described mobile terminal to described mobile terminal.
Further, described request signaling also comprises the signaling of the residing mobile switching centre of mobile terminal information described in requesting query, and the second sending module 606 also sends for described mobile switching centre the signaling that carries secure user plane location initial message.
Above-mentioned demand signalling can also comprise the signaling of the residing cell information of mobile terminal described in requesting query, above-mentioned locating platform can also comprise: the second judge module, judge for the signaling response returning according to described attaching position register whether the data age of described cell information exceedes intended duration, wherein, exceed described intended duration at the data age of described cell information, described the first sending module sends described random challenge ATI signaling to described attaching position register again; And update module, upgrade the positional information of described mobile terminal for the signaling response returning according to described attaching position register.
The embodiment of the present invention also provides a kind of navigation system of mobile terminal, the navigation system of this mobile terminal comprises the residing mobile switching centre of attaching position register, locating platform, mobile terminal, the content supplier of mobile terminal, wherein, locating platform, for sending request signaling to the attaching position register of mobile terminal, wherein, demand signalling comprises the signaling of the state information of requesting query mobile terminal; Attaching position register is used for to locating platform return state information; And locating platform is also in the normal situation of the state at mobile terminal, sends the SUPL request of secure user plane location by the residing mobile switching centre of mobile terminal to mobile terminal.
In sum, the technique scheme providing by the embodiment of the present invention, by current state and the cell information of ATI signaling inquiry terminal, current during in abnormal state in terminal, SLP can directly finish SUPL positioning flow, and overtime without passive wait terminal connection, thus the insignificant wait of SLP avoided, the position data of Yi Ge community precision can also be provided simultaneously; In embodiments of the present invention, send SUPL INIT message by send signaling to mobile switching centre, the signaling that can bring into play chain of command sends advantage timely, has avoided the problem of SUPL INIT message transmission lag, has reduced the dependence of SUPL location.In addition, in embodiments of the present invention, in the time of SUPL positioning interaction, the optional not ATI location with Current Location mark of chain of command of synchronously carrying out, to obtain the cell information of terminal latest update, for when AGPS failure or consuming time oversize, can finish AGPS positioning flow midway, the position data of Yi Ge community precision is provided; Thereby the positioning service ability that has improved SLP, has strengthened the competitiveness of operator.
As can be seen from the above description, the present invention can reduce the waste problem of Internet resources, further, can realize quickly and efficiently mobile terminal is positioned.
Obviously, those skilled in the art should be understood that, above-mentioned of the present invention each module or each step can realize with general calculation element, they can concentrate on single calculation element, or be distributed on the network that multiple calculation elements form, alternatively, they can be realized with the executable program code of calculation element, thereby, they can be stored in storage device and be carried out by calculation element, or they are made into respectively to each integrated circuit modules, or the multiple modules in them or step are made into single integrated circuit module to be realized.Like this, the present invention is not restricted to any specific hardware and software combination.
The foregoing is only the preferred embodiments of the present invention, 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., within all should being included in protection scope of the present invention.