Summary of the invention
Technical problem to be solved by this invention is, overcomes the deficiencies in the prior art, and a kind of triggering method and system of positioning service event is provided, to realize the Event triggered function based on portable terminal displacement (displacement).
In order to address the above problem, the invention provides a kind of triggering method of positioning service event, this method comprises:
Positioning client terminal sends the location request message of carrying target terminal sign and trigger condition parameters to locating platform, with the event notice of acquisition request based target terminal displacement;
Locating platform or target terminal are according to the current shift value of target terminal position information calculations target terminal;
Locating platform or target terminal judge whether to satisfy trigger conditions according to described current shift value and described trigger condition parameters, if satisfy, then locating platform or target terminal send the event notification message of based target terminal displacement to positioning client terminal by locating platform.
In addition, the sign that also comprises positioning client terminal in the described location request message;
After receiving described location request message, locating platform also checks according to the sign of described positioning client terminal whether positioning client terminal has the described event notification message of authority acquisition request.
In addition, receive described location request message after, locating platform sends initial location request message to target terminal; Carry the sign of positioning client terminal in this message;
After receiving described initial location request message, target terminal carries out authentication according to the sign of described positioning client terminal to positioning client terminal, to judge positioning client terminal whether the described event notification message of authority acquisition request is arranged.
In addition, described trigger condition parameters comprises: shift gate limit value and triggering type; Described triggering type is used to be illustrated in when following situation occurring for satisfying described trigger conditions: described current shift value equals described shift gate limit value greater than described shift gate limit value and/or described current shift value less than described shift gate limit value and/or described current shift value; Or
Described trigger condition parameters comprises: between displacement field and trigger type; Described triggering type is used to be illustrated in when following situation occurring for satisfying described trigger conditions: described current shift value is between described displacement field and/or described current shift value is not between described displacement field.
The present invention also provides a kind of triggering method of positioning service event, and this method comprises:
The positioning client terminal that is arranged in the target terminal sends location request message to locating platform, carries out the positioning service of based target terminal displacement with request; After receiving described location request message, locating platform and target terminal carry out alternately to obtain target terminal position information;
Locating platform or target terminal are according to the current shift value of target terminal position information calculations target terminal;
Locating platform or target terminal judge whether to satisfy trigger conditions according to the trigger condition parameters of described current shift value and positioning client terminal setting, if satisfy, then locating platform or the target terminal positioning client terminal in being arranged on target terminal sends the event notification message of based target terminal displacement.
In addition, the sign that comprises positioning client terminal in the described location request message;
After receiving described location request message, locating platform judges according to the sign of described positioning client terminal whether described positioning client terminal has authority to carry out described positioning service.
In addition, described trigger condition parameters comprises: shift gate limit value and triggering type; Described triggering type is used to be illustrated in when following situation occurring for satisfying described trigger conditions: described current shift value equals described shift gate limit value greater than described shift gate limit value and/or described current shift value less than described shift gate limit value and/or described current shift value; Or
Described trigger condition parameters comprises: between displacement field and trigger type; Described triggering type is used to be illustrated in when following situation occurring for satisfying described trigger conditions: described current shift value is between described displacement field and/or described current shift value is not between described displacement field.
The present invention also provides a kind of triggering system of positioning service event, is used for providing to positioning client terminal the event notice of based target terminal displacement; This system comprises: locating platform, wherein:
Described locating platform is used to receive the location request message of carrying target terminal sign and trigger condition parameters that positioning client terminal sends, and after receiving described location request message, obtain the current shift value of described target terminal, judge whether to satisfy trigger conditions according to described current shift value and described trigger condition parameters, if satisfy, then send event notification message to described positioning client terminal;
Wherein, described trigger condition parameters comprises: shift gate limit value and triggering type; Described triggering type is used to be illustrated in when following situation occurring for satisfying described trigger conditions: described current shift value equals described shift gate limit value greater than described shift gate limit value and/or described current shift value less than described shift gate limit value and/or described current shift value; Or
Described trigger condition parameters comprises: between displacement field and trigger type; Described triggering type is used to be illustrated in when following situation occurring for satisfying described trigger conditions: described current shift value is between described displacement field and/or described current shift value is not between described displacement field.
The present invention also provides a kind of triggering system of positioning service event, comprises: positioning client terminal, locating platform and target terminal, wherein:
Described positioning client terminal is used for sending the location request message of carrying target terminal sign and trigger condition parameters to described locating platform;
Described locating platform is used for after receiving described location request message, sends initial location request message to described target terminal, carries described trigger condition parameters in this message;
Described target terminal is used for after receiving described initial location request message, obtain the current shift value of described target terminal, and judge whether to satisfy trigger conditions according to described current shift value and described trigger condition parameters, if satisfy, then send the event notification message of based target terminal displacement to described positioning client terminal by described locating platform;
Wherein, described trigger condition parameters comprises: shift gate limit value and triggering type; Described triggering type is used to be illustrated in when following situation occurring for satisfying described trigger conditions: described current shift value equals described shift gate limit value greater than described shift gate limit value and/or described current shift value less than described shift gate limit value and/or described current shift value; Or
Described trigger condition parameters comprises: between displacement field and trigger type; Described triggering type is used to be illustrated in when following situation occurring for satisfying described trigger conditions: described current shift value is between described displacement field and/or described current shift value is not between described displacement field.
The present invention also provides a kind of triggering system of positioning service event, is used to provide the event notice of based target terminal displacement; This system comprises: locating platform; Wherein:
Described locating platform is used for receiving the location request message of carrying trigger condition parameters of the positioning client terminal transmission that is arranged on target terminal; And after receiving described location request message, obtain the current shift value of described target terminal, judge whether to satisfy trigger conditions according to described current shift value and described trigger condition parameters, if satisfy, then send the event notification message of based target terminal displacement to described positioning client terminal;
Wherein, described trigger condition parameters comprises: shift gate limit value and triggering type; Described triggering type is used to be illustrated in when following situation occurring for satisfying described trigger conditions: described current shift value equals described shift gate limit value greater than described shift gate limit value and/or described current shift value less than described shift gate limit value and/or described current shift value; Or
Described trigger condition parameters comprises: between displacement field and trigger type; Described triggering type is used to be illustrated in when following situation occurring for satisfying described trigger conditions: described current shift value is between described displacement field and/or described current shift value is not between described displacement field.
The present invention also provides a kind of triggering system of positioning service event, is used to provide the event notice of based target terminal displacement; This system comprises: locating platform and target terminal are provided with positioning client terminal in the described target terminal; Wherein:
Described target terminal be used for described locating platform alternately to obtain the current shift value of described target terminal, and judge whether to satisfy trigger conditions according to described current shift value and predefined trigger condition parameters, if satisfy, then send the event notification message of based target terminal displacement to described positioning client terminal;
Wherein, described trigger condition parameters comprises: shift gate limit value and triggering type; Described triggering type is used to be illustrated in when following situation occurring for satisfying described trigger conditions: described current shift value equals described shift gate limit value greater than described shift gate limit value and/or described current shift value less than described shift gate limit value and/or described current shift value; Or
Described trigger condition parameters comprises: between displacement field and trigger type; Described triggering type is used to be illustrated in when following situation occurring for satisfying described trigger conditions: described current shift value is between described displacement field and/or described current shift value is not between described displacement field.
In sum, adopt method and system of the present invention, realized Event triggered business based on the portable terminal displacement;
In addition, locating platform and target terminal can trigger professional positioning client terminal to initiated event respectively and carry out scope check, have guaranteed service security;
In addition, positioning client terminal can preestablish professional zero-time and concluding time (or lasting duration), so that locating platform and target terminal have guaranteed professional flexibility at predefined time period intercycle execution positioning action;
In addition, positioning client terminal can also be by being provided with trigger condition, to satisfy different location requirement neatly.
Embodiment
Describe the present invention below in conjunction with drawings and Examples.
First embodiment
Fig. 1 is the event triggering method flow chart of first embodiment of the invention based on the portable terminal displacement; In the present embodiment, the third party who is positioned at network side receives event notification message as positioning client terminal (location agency) in the time of need satisfying predefined trigger conditions at the shift value of destination mobile terminal (abbreviation target terminal), and is carried out the judgement (promptly differentiating network element by target terminal as trigger condition) of trigger conditions by target terminal.As shown in Figure 1, this method comprises the steps:
101: positioning client terminal (location agency) sends location request message to locating platform;
Comprise following parameter in the location request message: positioning client terminal ID (identifier), target terminal ID, type of service, trigger parameter.
Above-mentioned type of service is used to represent that this location request message asks is an Event triggered business based on the portable terminal displacement.
Trigger parameter comprises: trigger condition, and trigger professional zero-time and trigger the professional concluding time (or triggering professional lasting duration), trigger service period etc.
Above-mentioned trigger condition comprises: trigger type, the shift gate limit value.
The shift value that above-mentioned triggering type is used to be illustrated in target terminal greater than and/or less than and/or trigger event when equaling described shift gate limit value.
In addition, above-mentioned shift gate limit value also can be with replacing between displacement field; Trigger event when correspondingly, the above-mentioned triggering type shift value that can be used to be illustrated in target terminal is in or is not between this displacement field.
102: after location-server (locating platform) receives the location request message of positioning client terminal transmission, at first judge according to positioning client terminal ID that comprises in this message and CAMEL-Subscription-Information whether this positioning client terminal has authority to carry out the request of such business: if there is not authority, then return failure response and carry failure cause to positioning client terminal, this flow process finishes; If authority is arranged, then carry out parameter and resolve, identify the type of service that will carry out, and then search the routing iinformation of target terminal.
103: locating platform sends initial location request message to target terminal;
Comprise following parameter in the initial location request message: type of service, trigger parameter, localization method, position reference data, positioning client terminal ID.
The definition of type of service and trigger parameter as mentioned above.
The localization method parameter is used to the localization method of representing that locating platform is supported.
Above-mentioned position reference data can be GPS (Global Positioning System, global positioning system) reference datas, the satellite of for example current coverage goal terminal and satellite lock in time etc. parameter.Target terminal can use above-mentioned data to obtain positional information fast.
104: after target terminal receives the initial location request message of locating platform transmission, judge according to the type of service that comprises in this message whether it supports this business, according to the positioning client terminal ID in the initial location request message positioning client terminal is carried out authentication simultaneously; If target terminal is not supported this business or to the positioning client terminal failed authentication, then execution in step 105, otherwise execution in step 106.
105: target terminal returns failure response to locating platform, carries failure cause in the failure response.
106: after finishing type of service inspection and the authentication to positioning client terminal, target terminal foundation or recovery are connected with the data of locating platform.
107: target terminal uses above-mentioned data to connect to locating platform and sends trigger-type location sessions request message, the parameters such as ability information of carrying target terminal in this message.
Can comprise the localization method that target terminal is supported in the ability information of above-mentioned target terminal.
108: after locating platform is received trigger-type location sessions request message,, reply trigger-type location sessions response message, carry the finally selected parameters such as localization method of locating platform in this message to target terminal according to the ability information of target terminal.
109: locating platform is to positioning client terminal home position response message, and indication has received the trigger-type location sessions request message that target terminal sends, and has carried out the location and prepared.
110: target terminal is initiated location beginning message to locating platform;
Can comprise target terminal position information (for example, the sub-district ID of target terminal under current etc.) in the location beginning message.
111: if do not comprise target terminal position information in the location beginning message, or the precision deficiency of the positional information that comprises in this message, it is mutual that then locating platform and target terminal carry out the several times location sessions, obtains and calculate the current location information (shift value that comprises target terminal) of target terminal.
112: locating platform is issued target terminal with the current location information (shift value that comprises target terminal) of target terminal by position message.
It should be noted that, the step of the required execution of position calculation is responsible for carrying out according to positioning assistance data in step 110~112nd by locating platform, if target terminal has obtained positioning assistance data and has been responsible for carrying out position calculation by target terminal, and calculate current shift value, then do not need execution in step 110~112, directly carry out position calculation, obtain the current shift value of target terminal, directly jump to step 113 then by target terminal.
Above-mentioned positioning assistance data can be the GPS auxiliary data, for example information such as longitude and latitude.
113: target terminal calculates the latest position information (shift value that comprises target terminal) that obtains based on the latest position information that obtains from locating platform or oneself, judges whether to satisfy trigger conditions in conjunction with trigger parameter, if satisfy then execution in step 114.
In addition, target terminal can also be in conjunction with the current shift value of the positional information calculation of precedence record.
114:, then send event notification message to locating platform if trigger conditions is satisfied in the target terminal judgement in step 113.
115: locating platform sends to positioning client terminal with the event notification message of receiving.
It should be noted that before triggering professional concluding time arrival circulation execution in step 110~115; If trigger conditions is not satisfied in the target terminal judgement in step 113, then trigger and re-executing step 110 when service period arrives at the next one.
116: trigger the professional concluding time if locating platform is judged to have arrived, then send the location sessions end, interrupt being connected, and discharge corresponding Session Resources with the data of target terminal to target terminal.
Certainly, also can carry out above-mentioned judgement, and send the location sessions end, interrupt being connected with the data of locating platform to locating platform by target terminal.
Second embodiment
Fig. 2 is the event triggering method flow chart of second embodiment of the invention based on the portable terminal displacement; In the present embodiment, the third party who is positioned at network side receives event notification message as positioning client terminal (location agency) in the time of need satisfying predefined trigger conditions at the shift value of destination mobile terminal (abbreviation target terminal), and is carried out the judgement (promptly differentiating network element by locating platform as trigger condition) of trigger conditions by locating platform.As shown in Figure 2, this method comprises the steps:
201: positioning client terminal (location agency) sends location request message to locating platform;
Comprise following parameter in the location request message: positioning client terminal ID (identifier), target terminal ID, type of service, trigger parameter.
Identical in the definition of above-mentioned each parameter and the step 101.
202: after location-server (locating platform) receives the location request message of positioning client terminal transmission, at first judge according to positioning client terminal ID that comprises in this message and CAMEL-Subscription-Information whether this positioning client terminal has authority to carry out the request of such business: if there is not authority, then return failure response and carry failure cause, this flow process finishes; Resolve otherwise carry out parameter, identify the type of service that to carry out, and then search the routing iinformation of target terminal.
203: locating platform sends initial location request message to target terminal;
Comprise following parameter in the initial location request message: type of service, trigger parameter, localization method, position reference data, positioning client terminal ID.
Identical in the definition of above-mentioned each parameter and the step 103.
204: after target terminal receives the initial location request message of locating platform transmission, judge according to the type of service that comprises in this message whether it supports this business, according to the positioning client terminal ID in the initial location request message positioning client terminal is carried out authentication simultaneously; If target terminal is not supported this business or to the positioning client terminal failed authentication, then execution in step 205, otherwise execution in step 206.
205: target terminal returns failure response to locating platform, carries failure cause information in the failure response.
206: after finishing type of service inspection and the authentication to positioning client terminal, target terminal foundation or recovery are connected with the data of locating platform.
207: target terminal uses above-mentioned data to connect to locating platform and sends trigger-type location sessions request message, the parameters such as ability information of carrying target terminal in this message.
Comprise the localization method that target terminal is supported in the ability information of above-mentioned target terminal.
208: behind the trigger-type location sessions request message that locating platform is received,, reply trigger-type location sessions response message, carry the finally selected parameters such as localization method of locating platform in this message to target terminal according to the ability information of target terminal.
209: locating platform is to positioning client terminal home position response message, and indication has received the trigger-type location sessions request message that target terminal sends, and has carried out the location and prepared.
210: target terminal is initiated location beginning message to locating platform;
Can comprise target terminal position information (for example, the sub-district ID of target terminal under current etc.) in the location beginning message.
211: if do not comprise target terminal position information in the location beginning message, or the precision deficiency of the positional information that comprises in this message, it is mutual that then locating platform and target terminal carry out the several times location sessions, obtains and calculate the current location information (shift value that comprises target terminal) of target terminal.
It should be noted that, the step of the required execution of position calculation is responsible for carrying out according to positioning assistance data in step 210~211st by locating platform, if target terminal has obtained positioning assistance data and has been responsible for carrying out position calculation by target terminal, and calculate current shift value, then do not need execution in step 210~211, directly carry out position calculation, obtain the current shift value of target terminal, directly jump to step 212 then by target terminal.
212: target terminal is issued locating platform with current position information (comprising current shift value) by position message.
It should be noted that if carried out step 210~211, then need not execution in step 212; On the contrary, if carried out step 212, then need not execution in step 210~211.
213: locating platform judges whether to satisfy trigger conditions according to the present up-to-date target terminal position data of receiving (containing current shift value) in conjunction with trigger parameter, if satisfy then execution in step 214.
214: locating platform sends event notification message to positioning client terminal.
It should be noted that before triggering professional concluding time arrival circulation execution in step 210~214; If trigger conditions is not satisfied in the locating platform judgement in step 213, then wait for the trigger-type location sessions request message of receiving step 210 when next triggering service period arrives.
215: locating platform can also send to target terminal with above-mentioned event notification message.
216: trigger the professional concluding time if locating platform is judged to have arrived, then send the location sessions end, interrupt being connected, and discharge corresponding Session Resources with the data of target terminal to target terminal.
Certainly, also can carry out above-mentioned judgement, and send the location sessions end, interrupt being connected with the data of locating platform to locating platform by target terminal.
The 3rd embodiment
Fig. 3 is the event triggering method flow chart of third embodiment of the invention based on the portable terminal displacement; In the present embodiment, positioning client terminal (location agency) be arranged in the destination mobile terminal (abbreviation target terminal), and carried out the judgement (promptly differentiating network element by target terminal as trigger condition) of trigger conditions by target terminal.As shown in Figure 3, this method comprises the steps:
301: target terminal (positioning client terminal) foundation or recovery are connected with the data of location-server (locating platform).
302: target terminal uses above-mentioned data to connect to locating platform and sends location request message, carries positioning client terminal ID, target terminal ID in this message, type of service, trigger parameter.
Identical in the definition of above-mentioned each parameter and the step 101.
In addition, can also carry the localization method parameter in the location request message, this parameter is used to the localization method of representing that target terminal is supported.
303: location-server (locating platform) receives from behind the target terminal position request message, the type of service of carrying in this message is judged, simultaneously judge according to positioning client terminal ID that comprises in this message and CAMEL-Subscription-Information whether this positioning client terminal has authority to carry out the request of such business, if there is not authority, then target terminal (positioning client terminal) returns failure response and carries failure cause, and this flow process finishes; Resolve otherwise carry out parameter, identify the type of service that to carry out, and then search the routing iinformation of target terminal.
304: locating platform carries parameters such as localization method, position reference data to target terminal home position response message in this message; So far, the initial alignment session is finished, and locating platform is waited for the cycle Location Request of target terminal.
Above-mentioned localization method is the finally selected localization method of locating platform.
305: the target terminal judgement has arrived locating periodically, so initiate location beginning message to locating platform.
Can comprise target terminal position information (for example, the sub-district ID of target terminal under current etc.) in the location beginning message.
306: if do not comprise target terminal position information in the location beginning message, or the precision deficiency of the positional information that comprises in this message, it is mutual that then locating platform and target terminal carry out the several times location sessions, obtains the current location information (shift value that comprises target terminal) of target terminal; Otherwise need not to carry out this step.
307: locating platform is issued target terminal with target terminal current position information (comprising current shift value) by position message.
It should be noted that, if be responsible for carrying out position calculation by locating platform, then need step 305~307, if carry out position calculation based on the positioning assistance data that oneself obtains by target terminal, do not need to obtain positioning assistance data from locating platform, then step 305~307 can be omitted, and directly jump to step 308.
Above-mentioned positioning assistance data can be the GPS auxiliary data, for example information such as longitude and latitude.
308: target terminal is according to the current location information (comprising current shift value) of current location information (comprising current shift value) that obtains from locating platform or oneself calculating, judge whether to satisfy trigger conditions in conjunction with trigger parameter, if satisfy then execution in step 309.
309: if the judged result of step 308 is for satisfying trigger conditions, then target terminal generates the event notification message based on displacement, and sends to the positioning client terminal on the target terminal.
It should be noted that before triggering professional concluding time arrival, need circulation execution in step 305~309; If trigger conditions is not satisfied in the target terminal judgement in step 308, then trigger and re-executing step 305 when service period arrives at the next one.
310: trigger the professional concluding time if target terminal is judged to have arrived, then send the location sessions end, interrupt being connected, and discharge corresponding Session Resources with the data of locating platform to locating platform.
Certainly, also can carry out above-mentioned judgement, and send the location sessions end, interrupt being connected with the data of target terminal to target terminal by locating platform.
The 4th embodiment
Fig. 4 is the event triggering method flow chart of fourth embodiment of the invention based on the portable terminal displacement; In the present embodiment, positioning client terminal (location agency) be arranged in the destination mobile terminal (abbreviation target terminal), and carried out the judgement (promptly differentiating network element by locating platform as trigger condition) of trigger conditions by location-server (locating platform).As shown in Figure 4, this method comprises the steps:
401: target terminal (positioning client terminal) foundation or recovery are connected with the data of location-server (locating platform).
402: target terminal uses above-mentioned data to connect to locating platform and sends location request message, carries positioning client terminal ID, target terminal ID in this message, type of service, trigger parameter.
Identical in the definition of above-mentioned each parameter and the step 101.
403: location-server (locating platform) receives from behind the target terminal position request message, the type of service of carrying in this message is judged, simultaneously judge according to positioning client terminal ID that comprises in this message and CAMEL-Subscription-Information whether this positioning client terminal has authority to carry out the request of such business, if there is not authority, then return failure response and carry failure cause to target terminal (positioning client terminal), otherwise carrying out parameter resolves, identify the type of service that to carry out, and then search the routing iinformation of target terminal.
404: locating platform carries parameters such as localization method, position reference data to target terminal home position response message in this message; So far, the initial alignment session is finished, and locating platform is waited for the cycle Location Request of target terminal.
405: the target terminal judgement has arrived locating periodically, so initiate location beginning message to locating platform.
Can comprise target terminal position information in the location beginning message.
406: if do not comprise target terminal position information in the location beginning message, or the precision deficiency of the positional information that comprises in this message, it is mutual that then locating platform and target terminal carry out the several times location sessions, obtains the current location information (shift value that comprises target terminal) of target terminal; Otherwise need not to carry out this step.
It should be noted that, if be responsible for carrying out position calculation by locating platform, then need execution in step 405~406, and do not need execution in step 407, if carry out position calculation based on the positioning assistance data that oneself obtains by target terminal, do not need to obtain positioning assistance data from locating platform, then step 405~406 can be omitted, and directly jump to step 407.
407: target terminal is issued locating platform with current position information (comprising current shift value) by position message.
408: locating platform judges whether to satisfy trigger conditions according to target terminal current position information (comprising current shift value) in conjunction with trigger parameter, if satisfy then execution in step 409.
409: if the judged result of step 408 is for satisfying trigger conditions, then locating platform generates the event notification message based on displacement, and sends to the positioning client terminal on the target terminal.
It should be noted that before triggering professional concluding time arrival, need circulation execution in step 405~409; If trigger conditions is not satisfied in the target terminal judgement in step 408, then the location of receiving step 405 begins message when the next one triggers the service period arrival.
410: judge the concluding time that has arrived the business of triggering when target terminal, then send the location sessions end, interrupt being connected, and discharge corresponding Session Resources with the data of locating platform to locating platform.
Certainly, also can carry out above-mentioned judgement, and send the location sessions end, interrupt being connected with the data of target terminal to target terminal by locating platform.
Fig. 5 is the structural representation of the triggering system of a kind of positioning service event of the present invention, wherein:
Locating platform is used to receive the location request message of carrying target terminal sign and trigger condition parameters that positioning client terminal sends;
After receiving location request message, locating platform obtains the current shift value of target terminal, judges whether to satisfy trigger conditions according to current shift value and trigger condition parameters, if satisfy, then sends event notification message to described positioning client terminal; Or
After receiving location request message, locating platform sends to described target terminal and carries trigger condition parameters initial location request message; After target terminal receives initial location request message, obtain the current shift value of this target terminal, and judge whether to satisfy trigger conditions according to current shift value and described trigger condition parameters, if satisfy, then send the event notification message of based target terminal displacement to described positioning client terminal by described locating platform.
Fig. 6 is the structural representation of the triggering system of another kind of positioning service event of the present invention, wherein:
Described locating platform is used for the location request message of carrying trigger condition parameters that receiving target terminal (positioning client terminal) sends; And after receiving described location request message, obtain the current shift value of described target terminal, judge whether to satisfy trigger conditions according to described current shift value and described trigger condition parameters, if satisfy, then send the event notification message of based target terminal displacement to described target terminal (positioning client terminal); Or
Described target terminal be used for described locating platform alternately to obtain the current shift value of described target terminal, and judge whether to satisfy trigger conditions according to described current shift value and predefined trigger condition parameters, if satisfy, then send the event notification message of based target terminal displacement to described positioning client terminal.