Background technology
Location-based service is divided into active service and passive type service.Active service is followed " trigger-push " model, and user enters or leave certain hot spot region, will trigger business platform and initiatively a certain service is pushed to user, and this type of service comprises that position advertisement, geography seeks treasured, security of vehicle, child custody etc." ask-reply " model is followed in passive type service, and while only having user to a certain service of business platform request, business platform just returns to needed service to user passively, and this type of service comprises Perimeter, navigation calculation road, road condition query etc.
The inscape of active location-based service comprises " user terminal current location ", " hot spot region ", " position event " and " service pushing ", and each key element implication is as follows:
User terminal current location: obtain by the GPS module in terminal, identify with latitude and longitude coordinates;
Hot spot region: with the continuous geographic area of closed figure (circle, rectangle, polygon etc.) delineation, above-mentioned closed figure is called the border of hot spot region;
Position event: be called again " event of crossing the border ", in the time that the variation on border, hot spot region occurs to cross over user terminal location, produce, be divided into " entering event " and " leave event ", user terminal location is changed to hot spot region take the interior event definition being produced as " entering event " beyond from hot spot region, user terminal location is changed to event definition that hot spot region produced in addition as " leave event " from hot spot region take interior;
The service pushing: the event that enters of each hot spot region and leave event can be distinguished corresponding one or more service, the generation of position event can cause the propelling movement of respective service, for example, in the application of child custody class, the periphery of children place school can be made as to hot spot region, and Push Service corresponding to leave event is set for " sending alarming short message to the head of a family ", once child in ward has left school, business platform will be initiatively with the SMS notification head of a family.
The exemplary service flow process of existing active location-based service is:
1, user or ISP arrange position and the shape of hot spot region at business platform; Hot spot region is set simultaneously and enters event or the corresponding Push Service of leave event, charge to " event-Service Matching table ";
2, business platform is handed down to user terminal by the position of hot spot region and shape by mobile communications network;
3, user terminal, under the scheduling of timer, continues the current latitude and longitude coordinates of frequent collection user terminal by GPS module, and compares with position and the shape of hot spot region, judges whether to have produced the event of entering or leave event;
If 4 have produced the event of entering or leave event, user terminal reports position event by mobile communications network to business platform; If do not produce and enter event or leave event, the GPS that user terminal continuation waiting timer triggers next time gathers;
5, business platform listens to after the position event of user terminal to send up, from " event-Service Matching table ", retrieve the corresponding service of reported event, and this service is pushed to user terminal (target terminal user of propelling movement can be the terminal that reports position event, can be also other-end).
Active position service system is made up of business platform, user terminal and mobile communications network, wherein,
Business platform: be responsible for regular setting, action listener and service and push.By rule, module is set and realizes the configuration of hot spot region, and the configuration of position event and corresponding Push Service; By terminal configuration module, user terminal is handed down to in the position of hot spot region and shape; Monitor the reporting events that comes from user terminal by action listener module; Retrieve the corresponding Push Service of reported event by Service Matching module; By service pushing module, service is pushed to user.
User terminal: be responsible for the detection of position event and reporting of event.Receive the hot spot region configuration that comes from business platform by configuration receiver module; Continue periodic triggers GPS acquisition module by timer and obtain the current latitude and longitude coordinates of user terminal; By position event determination module, the position of latitude and longitude coordinates current user terminal and hot spot region and shape are carried out to space and compare, determine whether to have occurred the event of entering or leave event; By position event reporting module by detect enter event or leave event reports business platform; Receive by service reception module the service that business platform pushes.
Mobile communications network: the communication port issue as being configured between business platform and user terminal, reporting events and service pushing.
There is following shortcoming in existing active location-based service technical scheme:
In the process of detection position event, user terminal need to continue to obtain by GPS frequently user's current location, and then carries out space with hot spot region and compare, and determines whether to produce to enter event or leave event.And be high energy consumption device for obtaining the GPS acquisition module of position on user terminal, continuous firing can consume rapidly the battery electric quantity of user terminal, affect the standby time of user terminal, and then have influence on the continuation of active location-based service, limited the development of active location-based service.
Summary of the invention
In order to solve the technical problem because of the rapid consumption user terminal battery electricity quantity that frequently use GPS acquisition module causes existing in prior art, the present invention proposes a kind of detection method, system and device of position event, can control GPS acquisition module intermittently starting, thereby the power consumption of terminal that the event detection that significantly dips is brought, has extended the standby time of terminal.
One aspect of the present invention provides a kind of detection method of position event, is applicable to the location-based service of active push formula, comprises the following steps:
Hot spot region and location-based service corresponding to described position event that described position event is corresponding are set;
According to described hot spot region and cellular cell database, determine all border cells that the border of described hot spot region is passed through, generate border cell list;
Obtain the current community of living in of terminal, current described terminal community of living in and the list of described border cell are contrasted, judge whether the current community of living in of described terminal is border cell;
If not border cell, the information gathering of terminal stop position;
If border cell, the information gathering of terminal enable position, in the time that described position event occurs, pushes to terminal the location-based service that described position event is corresponding.
The present invention provides a kind of detection system of position event on the other hand, is applicable to the location-based service of active push formula, comprises business platform and terminal, wherein,
Business platform is for arranging hot spot region and location-based service corresponding to described position event that described position event is corresponding, according to described hot spot region and cellular cell database, determine all border cells that the border of described hot spot region is passed through, generate border cell list, terminal is issued in described hot spot region and the list of described border cell; And the position event reporting for receiving terminal, push to terminal the location-based service that described position event is corresponding;
Terminal is used for obtaining current community of living in, and described current community of living in and the list of described border cell are contrasted, and judges whether the current community of living in of described terminal is border cell; If not border cell, the information gathering of terminal stop position; If border cell, the information gathering of terminal enable position, and judge whether occurrence positions event, if occurrence positions event reports position event to business platform.
The present invention also provides a kind of business platform, comprises that rule arranges module, cellular cell database, border cell list generation module, terminal configuration module, action listener module, Service Matching module and service pushing module, wherein,
Rule arranges module for position and the shape of the hot spot region that described position event is corresponding are set, and location-based service corresponding to described position event, the position of described hot spot region and shape are sent to border cell list generation module and terminal configuration module, and the matching relationship of position event and location-based service is sent to Service Matching module;
Cellular cell database is used for storing the distributed data in all cellular cell identification code Cell-ID and geographical position, and the distributed data in all cellular cell identification code Cell-ID and geographical position is sent to border cell list generation module;
List generation module in border cell is used for according to the position of described hot spot region and shape, and the distributed data in all cellular cell identification code Cell-ID and geographical position, determine all border cell identification code Cell-ID that the border of described hot spot region is passed through, generate border cell list, and the list of described border cell is sent to terminal configuration module;
Terminal configuration module is for sending position and the shape of described hot spot region, and the list of described border cell;
Action listener module is used for receiving the position event reporting, and described position event is sent to Service Matching module;
Service Matching module, for the matching relationship of retrieve position event and location-based service, is obtained location-based service corresponding to position event that action listener module is sent, and described location-based service is sent to service pushing module;
Service pushing module is used for pushing described location-based service.
The present invention also provides a kind of terminal, comprises configuration receiver module, current area acquisition module, detecting pattern control module, positional information acquisition module, position event determination module, position event reporting module and service receiver module,
Configuration receiver module is for receiving position and the shape of described hot spot region, and the list of described border cell, the list of described border cell is sent to detecting pattern control module, and the position of described hot spot region and shape are sent to position event determination module;
Current area acquisition module receives the request of obtaining current community of living in that detecting pattern control module is sent, and the identification code Cell-ID of current community of living in is sent to detecting pattern control module;
Detecting pattern control module is for sending the request of obtaining current community of living in to current area acquisition module, obtain the identification code Cell-ID of current community of living in from current area acquisition module, the identification code Cell-ID of current community of living in and the border cell identification code Cell-ID in the border cell list receiving are contrasted, judge whether current community of living in is border cell, if not border cell, the work of stop position information acquisition module, if border cell, the work of enable position information acquisition module;
Positional information acquisition module is used for obtaining residing positional information, and residing positional information is sent to position event determination module;
Position event determination module is used for according to position and the shape of the hot spot region receiving, and residing positional information, judges whether occurrence positions event, if described position event is sent to position event reporting module by occurrence positions event;
Position event reporting module is for reporting position event;
Service reception module is for receiving the location-based service of propelling movement.
Technical scheme of the present invention, due to the characteristic distributions in conjunction with GPS location technology and mobile communication cell community, adopts the bimodulus testing mechanism based on " safe community pattern on duty " and " border cell event detection pattern " to carry out the detection of position event.All communities that border, hot spot region is passed are " border cell ", other communities except border cell are all " safe community ", within position event (entering event or leave event) must occur in border cell, and within can occurring in safe community scarcely, therefore, while only having terminal to be positioned within border cell, be just necessary to carry out GPS frequently and locate and detect whether produce position event.
In the time that user terminal is positioned at safe community, terminal works is under pattern on duty, and now GPS acquisition module is closed, and power consumption of terminal is very low; In the time that user terminal is positioned at border cell, terminal works is under event detection pattern, and now GPS acquisition module is opened, and power consumption of terminal is higher.And user is under normal motion model, most of time within safe community or between motion, only the short period that approaches hot spot region just can be within border cell or between move, the only of short duration unlatching within this period of GPS acquisition module.Continue to open than GPS module in prior art scheme, technical solution of the present invention is by controlling the mode of GPS acquisition module intermittently starting, significantly reduce position event and detected the power consumption of terminal bringing, extended the standby time of user terminal, and then promoted the continuation of service.
Embodiment
Below in conjunction with accompanying drawing, the specific embodiment of the present invention is described in detail.
The present invention is in conjunction with the characteristic distributions of GPS location technology and mobile communication cell community, adopt the bimodulus testing mechanism of " safe community pattern on duty " and " border cell event detection pattern " to carry out the detection of position event, by the mode of intermittently starting GPS module, reduce the power consumption of user terminal.
Real world can be regarded the network being made up of mobile communication cell community (Cell) as, each community is by the identification code unique identification that is called Cell-ID, all communities that border, hot spot region is passed are all defined as " border cell ", other communities except border cell are all " safe community ", within position event (entering event or leave event) must occur in border cell, and within can occurring in safe community scarcely, therefore, while only having terminal to be positioned within border cell, just be necessary to carry out GPS frequently and locate and detect whether produce position event.
Business platform can obtain the distributed data in all cellular cell Cell-ID of telecom operators' the whole network and geographical position, and then can be according to the position of hot spot region and shape, and above-mentioned distributed data, identify all border cells of hot spot region boundary crossings, then the mode with border cell list by Cell-ID corresponding these border cells, and user terminal is handed down in the position of hot spot region together with shape.User terminal can obtain the Cell-ID of current community of living in, reads the Cell-ID of current community of living in by periodicity, compares with Cell-ID in the list of border cell, judges that current community of living in is safe community or border cell.
If user terminal is in safe community, terminal works is under " pattern on duty ", and now GPS acquisition module is closed, and the periodicity that only maintains the Cell-ID of current community of living in reads the judgement with cell type, until cell type while becoming border cell, is switched to the detecting pattern that crosses the border.
If user terminal is in border cell, terminal works is under " event detection pattern ", and now GPS acquisition module is opened, and frequently carries out GPS location and detects whether produce the event of entering or leave event, if detect by reporting events business platform.In carrying out GPS location, still continue to maintain the reading and the judgement of cell type of Cell-ID of current community of living in, until cell type while becoming safe community, switches back pattern on duty.
Under pattern on duty, the GPS acquisition module of user terminal is closed, and not to business platform reporting information, does not also carry out locus calculating, just simply read the Cell-ID of current community of living in and with border cell list in Cell-ID compare, power consumption is extremely low.Under event detection pattern, the GPS module of terminal is opened and is frequently positioned, and power consumption is higher.Terminal is in most of the cases operated under the pattern on duty that power consumption is extremely low, and only, in the time approaching border, hot spot region, just the short time is operated under the event detection pattern that power consumption is higher, and overall power is far below the prior art scheme that continues frequently to carry out GPS location.
Fig. 1 is the community schematic diagram of position event detection procedure in the present invention.As shown in Figure 1, the circular scope of thick line drawing is hot spot region, and hexagonal grid is the cellular cell that forms mobile communications network, and all communities of border, hot spot region process are exactly border cell, fill with shade border cell, and other packless communities are all safe communities.
A user, from A point, through B, C, D, finally arrives E point, has produced the event of entering therebetween.User starts the safe community that is just 31 in Cell-ID from A point, pass through afterwards Cell-ID and be 95,27,18,41,49,17,45 a series of safe community, in this process, user terminal is operated under pattern on duty always, GPS acquisition module is in closed condition, only carry out reading and comparing of Cell-ID, power consumption of terminal is very low; At B point, terminal detects that entering Cell-ID is 66 border cell, so switch to event detection pattern, GPS acquisition module starts and continue to position, and power consumption of terminal raises; In the time moving to C point, terminal judges goes out to have produced the event of entering, by position event reporting service platform; In the time moving to D point, terminal detects that entering Cell-ID is 34 safe community, so switch back pattern on duty, GPS acquisition module is closed again, and power consumption of terminal reduces after having experienced of short duration rising again, finally arrives at E point.
Another one user, from F point, through G, H, I, finally arrives J point, has produced leave event therebetween.Similar with the above-mentioned process that enters event,, be operated under pattern on duty in safe community at F point, power consumption of terminal is very low; Enter border cell at G point, be switched to event detection pattern, power consumption of terminal raises; Detect that at H point leave event reports platform; Again enter safe community at I point, switch back pattern on duty, power consumption of terminal reduces after experiencing of short duration rising again, finally arrives at J point.
In order to realize the detection of position event, a specific embodiment of the present invention provides position event detection system.Fig. 2 is the structural representation of position event detection system in the embodiment of the present invention.As shown in Figure 2, this position event detection system comprises business platform 21 and terminal 22.
Business platform, on prior art scheme basis, increases cellular cell database and border cell list generation module.Cellular cell database is being stored the distributed data in all cellular cell Cell-ID of telecom operators' the whole network and geographical position.List generation module in border cell is by the analysis to border, hot spot region and cellular cell database, determine the border cell that border, hot spot region is passed through, generate the border cell list that the Cell-ID of these border cells forms, this list is by terminal configuration module, is handed down to user terminal together with the position of hot spot region and shape.
Also be hot spot region corresponding to business platform setting position event and location-based service corresponding to position event, according to hot spot region and cellular cell database, determine all border cells that the border of hot spot region is passed through, generate border cell list, terminal is issued in hot spot region and border cell list, and the position event that reports of receiving terminal, push location-based service corresponding to position event to terminal.
Business platform further comprises that rule arranges module 211, cellular cell database 212, border cell list generation module 213, terminal configuration module 214, action listener module 215, Service Matching module 216 and service pushing module 217.
Rule arranges position and the shape of hot spot region corresponding to module setting position event, and location-based service corresponding to position event, the position of hot spot region and shape are sent to border cell list generation module and terminal configuration module, and the matching relationship of position event and location-based service is sent to Service Matching module.
The positional information of database storage cellular cell, cellular cell, and the positional information of cellular cell is sent to border cell list generation module.
List generation module in border cell is according to the position of hot spot region and shape, and the positional information of cellular cell, determine all border cell identification code Cell-ID that the border of hot spot region is passed through, generate border cell list, and border cell list is sent to terminal configuration module.
Terminal configuration module is by the position of hot spot region and shape, and border cell list sends to terminal.
The position event that action listener module receiving terminal reports, and position event is sent to Service Matching module.
The matching relationship of Service Matching module retrieve position event and location-based service, obtains location-based service corresponding to position event that action listener module is sent, and location-based service is sent to service pushing module.
Service pushing module pushes location-based service to terminal.
User terminal, on prior art scheme basis, increases current area acquisition module and detecting pattern control module, and in addition, configuration receiver module, except receiving the hot spot area location and the shape that come from business platform, also receives border cell Cell-ID list in the lump.Detecting pattern control module periodically starts under the scheduling of timer, utilize current area acquisition module to obtain the Cell-ID of the current community of living in of user terminal, by comparing with the Cell-ID of border cell list, determine that current community of living in is safe community or border cell: if current in safe community, be operated under pattern on duty, now detecting pattern control module is forbidden the work of GPS acquisition module, and GPS acquisition module will be ignored any scheduling of timer; If current in border cell, be operated under event detection pattern, now detecting pattern control module allows the work of GPS acquisition module, GPS acquisition module carries out frequently GPS location under the scheduling of timer, and the latitude and longitude coordinates that location is obtained passes to position event determination module, carry out space with the position of hot spot region and shape and compare, determine whether to have occurred the event of entering or leave event.
Also be that terminal is obtained current community of living in, current community of living in and border cell list are contrasted, judge whether the current community of living in of terminal is border cell; If not border cell, the information gathering of terminal stop position; If border cell, the information gathering of terminal enable position, and judge whether occurrence positions event, if occurrence positions event reports position event to business platform.
Terminal further comprises configuration receiver module 221, current area acquisition module 222, detecting pattern control module 223, GPS acquisition module 224, position event determination module 225, position event reporting module 226, service reception module 227 and timer 2 28.
Configuration receiver module receives position and the shape of hot spot region from business platform, and border cell list, border cell list is sent to detecting pattern control module, and the position of hot spot region and shape are sent to position event determination module.
Current area acquisition module receives the request of obtaining current community of living in that detecting pattern control module is sent, and the identification code Cell-ID of current community of living in is sent to detecting pattern control module.
Detecting pattern control module sends the request of obtaining current community of living in to current area acquisition module, obtain the identification code Cell-ID of current community of living in from current area acquisition module, the identification code Cell-ID of current community of living in and the border cell identification code Cell-ID in the border cell list receiving are contrasted, judge whether current community of living in is border cell, if not border cell, stop the work of GPS acquisition module, if border cell starts the work of GPS acquisition module.
GPS acquisition module, as positional information acquisition module, obtains residing positional information, i.e. the latitude and longitude coordinates of terminal present position, and residing positional information is sent to position event determination module.
Position event determination module is according to position and the shape of the hot spot region receiving, and residing positional information, judges whether occurrence positions event, if position event is sent to position event reporting module by occurrence positions event.
Position event is reported business platform by position event reporting module.
Service reception module receives the location-based service that business platform pushes.
Timer start by set date detecting pattern control module and positional information acquisition module.
Adopt above-mentioned position event detection system, in the location-based service of active push formula, can be in conjunction with the characteristic distributions of GPS location technology and mobile communication cell community, based on the position event detection method of " safe community pattern on duty " and " border cell event detection pattern " bimodulus testing mechanism.By the mode of intermittently starting GPS module, reduce the power consumption of terminal in testing process.
First position and shape and the location-based service corresponding to position event of hot spot region corresponding to setting position event.
According to hot spot region and cellular cell database, determine all border cells that the border of hot spot region is passed through, generate border cell list, comprise the identification code Cell-ID of all border cells of the border of hot spot region passing through.
Terminal is regularly obtained the identification code Cell-ID of current community of living in, the identification code Cell-ID of the border cell in the identification code Cell-ID of described current community of living in and the list of described border cell is contrasted, if the identification code Cell-ID of described current community of living in is identical with the identification code Cell-ID of a border cell in the list of described border cell, judge that described current community of living in is border cell.
If not border cell, the information gathering of terminal stop position, the latitude and longitude coordinates of no thoroughfare GPS acquisition terminal present position.
If current community of living in is border cell, terminal regularly starts GPS, obtain the latitude and longitude coordinates of terminal present position, latitude and longitude coordinates and hot spot region are contrasted, judge whether to have occurred position event, for example, enter event and leave event, if there is position event, reporting service platform, the location-based service that business platform retrieve position event is corresponding, and location-based service is pushed to terminal.
Below by a specific embodiment, the flow process that position event detects is described.Fig. 3 is the flow chart of position event detection in the embodiment of the present invention.As shown in Figure 3, position event testing process comprises the following steps:
Step 301, user or ISP arrange position and the shape of hot spot region at business platform, hot spot region is set simultaneously and enters event or the corresponding Push Service of leave event.Wherein, rule arranges module the matching relationship of event and service is passed to Service Matching module, for receiving after the position event of user terminal to send up, and the service corresponding according to event matches;
Step 302, rule arrange module the position of hot spot region and shape are directly passed to terminal configuration module, to be handed down to user terminal by it;
Step 303, with step 302 simultaneously, rule arranges module the position of hot spot region and shape is passed to border cell list generation module;
Step 304, border cell list generation module, by the analysis to border, hot spot region and cellular cell database, are determined the border cell that border, hot spot region is passed through, and generate the border cell list that the Cell-ID of these border cells forms;
The border cell list of generation is passed to terminal configuration module by step 305, border cell list generation module, to be handed down to user terminal by it;
The position of hot spot region and shape and border cell list are handed down to together user terminal by step 306, terminal configuration module;
The configuration receiver module of step 307, user terminal, receiving after the configuration information that business platform issues, passes to detecting pattern control module by border cell list;
Step 308, with step 307 simultaneously, the position of hot spot region and shape are passed to position event determination module by configuration receiver module;
Timer in step 309, user terminal activates detecting pattern control module with the fixed cycle;
Step 310, detecting pattern control module obtain the Cell-ID of current community of living in to current area acquisition module request;
The Cell-ID of current community of living in is fed back to detecting pattern control module by step 311, current area acquisition module;
Step 312, detecting pattern control module are compared the Cell-ID in the Cell-ID of current community of living in and border cell list, judge that current residing community is safe community or border cell, if safe community terminal works in pattern on duty, if border cell terminal works in event detection pattern;
Enabling and forbidding of step 313, detecting pattern control module control GPS acquisition module, when user terminal is in border cell, in the time of event detection pattern, enables GPS acquisition module, allows its periodic duty under the scheduling of timer; When in safe community, in the time of pattern on duty, forbid the work of GPS acquisition module;
Step 314, in the time that user terminal is operated in event detection pattern, timer frequently activates GPS acquisition module;
Step 315, GPS acquisition module obtain the latitude and longitude coordinates of user terminal present position, pass to position event determination module;
Step 316, position event determination module, according to the latitude and longitude coordinates of current location, contrast with position and the shape of hot spot region, determine whether and have produced the event of entering or leave event;
If step 317 has produced the event of entering or leave event, position event determination module by this event transfer to position event reporting module;
Step 318, position event reporting module by reporting events to business platform;
The action listener module of step 319, business platform receives and comes from after the reporting events of user terminal, is passed to Service Matching module;
Step 320, Service Matching module, according to reported event, are retrieved in event-Service Matching table, extract the service that reported event is corresponding;
The Service delivery extracting is given service pushing module by step 321, Service Matching module;
Service is pushed to user terminal (target of propelling movement can be the terminal that reports position event, can be also other-end) by step 322, service pushing module.
In above-mentioned steps: step 301-308 is configuration distributing flow process; Step 309-313 is detecting pattern control flow; Step 314-318 is that position event detects and report flow; Step 319-322 is Service Matching and pushes flow process.
Continue to open than GPS acquisition module in prior art scheme, technical scheme of the present invention is by controlling the mode of GPS acquisition module intermittently starting, significantly reduce position event and detected the power consumption of terminal bringing, extend the standby time of user terminal, and then promoted the continuation of service.
It should be noted that: above embodiment is only unrestricted in order to the present invention to be described, the present invention is also not limited in above-mentioned giving an example, and all do not depart from technical scheme and the improvement thereof of the spirit and scope of the present invention, and it all should be encompassed in claim scope of the present invention.