CN106412257B - Positioning service control method and system - Google Patents

Positioning service control method and system Download PDF

Info

Publication number
CN106412257B
CN106412257B CN201610822950.1A CN201610822950A CN106412257B CN 106412257 B CN106412257 B CN 106412257B CN 201610822950 A CN201610822950 A CN 201610822950A CN 106412257 B CN106412257 B CN 106412257B
Authority
CN
China
Prior art keywords
current application
positioning service
current
location
request
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201610822950.1A
Other languages
Chinese (zh)
Other versions
CN106412257A (en
Inventor
刘鹏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Yulong Computer Telecommunication Scientific Shenzhen Co Ltd
Original Assignee
Yulong Computer Telecommunication Scientific Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Yulong Computer Telecommunication Scientific Shenzhen Co Ltd filed Critical Yulong Computer Telecommunication Scientific Shenzhen Co Ltd
Priority to CN201610822950.1A priority Critical patent/CN106412257B/en
Publication of CN106412257A publication Critical patent/CN106412257A/en
Application granted granted Critical
Publication of CN106412257B publication Critical patent/CN106412257B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72454User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72457User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to geographic location
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Environmental & Geological Engineering (AREA)
  • Position Fixing By Use Of Radio Waves (AREA)
  • Navigation (AREA)
  • Telephone Function (AREA)

Abstract

A kind of positioning service control method is applied in electronic equipment, and the electronic equipment is communicated with positioning device, which comprises presets the corresponding positioning service grade of each application;Obtain the current application for being in use state;Obtain the corresponding positioning service grade of the current application;And location-based service is provided to the current application according to the corresponding positioning service grade of the current application.The present invention also provides a kind of positioning service control systems.Implement technical solution of the present invention, the positioning service of all applications of intelligent control avoids power consumption caused by continuous positioning and data traffic from wasting.

Description

Positioning service control method and system
Technical field
The present invention relates to field of locating technology more particularly to a kind of positioning service control methods and system.
Background technique
Current electronic equipment has positioning service (such as GPS positioning).When the position of some application request electronic equipment When confidence ceases, positioning service can check the permission (such as forbid, allow and remind every time) of the application.If the permission of the application is Forbid, does not then provide location-based service for the application.If the permission of the application is to remind every time, boundary first is confirmed to user reminding Face executes the movement for allowing permission if user, which confirms, to be allowed.If user forbids or time-out does not respond, taboo is executed The only movement of permission.
When positioning service receives the request for location services of an application, positioning service judges the request for location services It is navigation mode or single station-keeping mode, navigation mode can establish session with the application, persistently provide position data, until Ending request instruction is initiated in the application, and GPS service terminates.Single station-keeping mode only positions once, and current location data is mentioned The application is supplied, service is terminated.Permission for some application is when allowing, and positioning service cannot intelligently control acquisition positioning Service request, thus the unreasonable request of these applications can not also be limited.It is not needed in user, the feelings that may not even be aware that Under condition, these applications often have background request, and positioning service can only judge according to pre-set permission, to positioning permission control It cannot intelligently control, will cause the waste of resource, such as flow sometimes, if there are many positioning number, also result in electronic equipment The speed of service it is slow.
Summary of the invention
In view of the foregoing, it is necessary to a kind of positioning service control method and system are provided, it can all applications of intelligent control Positioning service, and be avoided that power consumption caused by continuous positioning and data traffic waste.
A kind of positioning service control method is applied in electronic equipment, and the electronic equipment is communicated with positioning device, institute The method of stating includes:
Preset the corresponding positioning service grade of each application;
Obtain the current application for being in use state;
Obtain the corresponding positioning service grade of the current application;And
Location-based service is provided to the current application according to the corresponding positioning service grade of the current application.
Preferred embodiment according to the present invention, the positioning service grade include: the first estate, the second grade, the tertiary gradient And the fourth estate.
Preferred embodiment according to the present invention, it is described according to the corresponding positioning service grade of the current application to described current Include: using location-based service is provided
When the corresponding positioning service grade of the current application is the first estate, determining for the current application transmission is received Position service request, Xiang Suoshu positioning device send the current location that message request positions the electronic equipment, and will be described current Position and the current location corresponding time are stored in storage equipment;Or
When the corresponding positioning service grade of the current application is the second grade, sent when receiving the current application Request for location services, the position of recent renewal is read from the storage equipment, and is sent to the current application;According to pre- If time interval sends message request to the positioning device and positions the current location of the electronic equipment, and by the present bit It sets and the current location corresponding time is stored in the storage equipment, wherein the position of the recent renewal is corresponding Time and the time difference of current time are most short;Or
When the corresponding positioning service grade of the current application is the tertiary gradient, read from the storage equipment nearest The position of update is sent to the current application, wherein the position of the recent renewal corresponding time and current time when Between difference it is most short;Or
When the current application is the fourth estate, the current application is forbidden to obtain the position of the electronic equipment.
Preferred embodiment according to the present invention is currently being answered according to the corresponding positioning service grade of the current application to described Before offer location-based service, the method also includes:
When receiving the request for location services of the current application, the request for location services of the current application is recorded;
The request for location services number in preset time period is obtained, and is obtained shared by the location data of the electronic equipment Space.
Preferred embodiment according to the present invention, the method also includes:
When request for location services number described in preset time period reaches the positioning of preset times or the electronic equipment When the occupied space of data reaches preset threshold, current application frequent requests positioning service described in user is prompted;Or
When request for location services number described in preset time period is less than preset times, and the positioning number of the electronic equipment When being less than preset threshold according to occupied space, according to the corresponding positioning service grade of the current application to the current application Location-based service is provided.
A kind of positioning service control system, the system comprises:
Setup module, for presetting the corresponding positioning service grade of each application;
Module is obtained, for obtaining the current application for being in use state;
The acquisition module is also used to obtain the corresponding positioning service grade of the current application;And
Locating module, for providing position to the current application according to the corresponding positioning service grade of the current application Service.
Preferred embodiment according to the present invention, the positioning service grade include: the first estate, the second grade, the tertiary gradient And the fourth estate.
Preferred embodiment according to the present invention, the locating module are used for according to corresponding positioning service of the current application etc. Grade provides location-based service to the current application
When the corresponding positioning service grade of the current application is the first estate, determining for the current application transmission is received Position service request, the current location of message request Positioning Electronic Devices is sent to positioning device, and by the current location and institute State the current location corresponding time be stored in storage equipment in;Or
When the corresponding positioning service grade of the current application is the second grade, sent when receiving the current application Request for location services, the position of recent renewal is read from the storage equipment, and is sent to the current application;According to pre- If time interval sends message request to the positioning device and positions the current location of the electronic equipment, and by the present bit It sets and the current location corresponding time is stored in the storage equipment, wherein the position of the recent renewal is corresponding Time and the time difference of current time are most short;Or
When the corresponding positioning service grade of the current application is the tertiary gradient, read from the storage equipment nearest The position of update is sent to the current application, wherein the position of the recent renewal corresponding time and current time when Between difference it is most short;Or
When the current application is the fourth estate, the current application is forbidden to obtain the position of the electronic equipment.
Preferred embodiment according to the present invention, the system also includes:
Logging modle, for recording the current application when receiving the request for location services of the current application Request for location services;
The acquisition module is also used to obtain the request for location services number in preset time period, and obtains the electricity The occupied space of the location data of sub- equipment.
Preferred embodiment according to the present invention, the system also includes:
Cue module, in the preset time period request for location services number reach preset times or described When the occupied space of the location data of electronic equipment reaches preset threshold, the positioning of current application frequent requests described in user is prompted Service;Or
The locating module is also used to work as the request for location services number in preset time period and is less than preset times, and When the occupied space of the location data of the electronic equipment is less than preset threshold, taken according to the corresponding positioning of the current application Grade of being engaged in provides location-based service to the current application.
As can be seen from the above technical solutions, the present invention presets the positioning service grade of each application, and acquisition is in The current application of use state provides position to the current application according to the corresponding positioning service grade of the current application and takes Business.Implement technical solution of the present invention, the positioning service of energy all applications of intelligent control avoids power consumption sum number caused by continuous positioning It is wasted according to flow.
Detailed description of the invention
Fig. 1 is the application environment signal of the preferred embodiment for the electronic equipment that the present invention realizes positioning service control method Figure.
Fig. 2 is the flow chart of the first preferred embodiment of positioning service control method of the present invention.
Fig. 3 is the flow chart of the second preferred embodiment of positioning service control method of the present invention.
Fig. 4 is the functional block diagram of the preferred embodiment of positioning service control system of the present invention.
Main element symbol description
Electronic equipment 1
Positioning service control system 10
Store equipment 20
Processing equipment 30
Positioning device 2
Setup module 100
Obtain module 101
Locating module 102
Logging modle 103
Judgment module 104
Cue module 105
Specific embodiment
To make the objectives, technical solutions, and advantages of the present invention clearer, right in the following with reference to the drawings and specific embodiments The present invention is described in detail.
As shown in Figure 1, the present invention realizes the application environment of the electronic equipment of the preferred embodiment of positioning service control method Schematic diagram.The application environment schematic diagram includes electronic equipment 1 and positioning device 2.When the electronic equipment 1 is set to the positioning Standby 2 when sending Location Request, and the positioning device 2 positions the position of the electronic equipment 1, and the position is sent to described Electronic equipment 1.The electronic equipment 1 includes positioning service control system 10.The electronic equipment 1 further include storage equipment 20 and Processing equipment 30.
Preferably, positioning service control method of the invention passes through the positioning service control system in the electronic equipment 1 10 realize.
The electronic equipment 1 be it is a kind of can according to the instruction for being previously set or store, automatic progress numerical value calculating and/or The equipment of information processing, hardware include but is not limited to microprocessor, specific integrated circuit (Application Specific Integrated Circuit, ASIC), programmable gate array (Field-Programmable Gate Array, FPGA), number Word processing device (Digital Signal Processor, DSP), embedded device etc..
The electronic equipment 1 includes but is not limited to that any one can pass through keyboard, mouse, remote controler, touch tablet with user Or the modes such as voice-operated device carry out the electronic product of human-computer interaction, for example, personal computer, tablet computer, smart phone, individual Digital assistants (Personal Digital Assistant, PDA), game machine, Interactive Internet TV (Internet Protocol Television, IPTV), intellectual wearable device etc..
The positioning device 2 is processing equipment used for positioning, including but not limited to single network server, multiple networks The server group of server composition or being made of a large amount of hosts or network server based on cloud computing (Cloud Computing) Cloud, wherein cloud computing is one kind of distributed computing, and one consisting of a loosely coupled set of computers is super virtual Computer.
Network locating for the electronic equipment 1 and the positioning device 2 includes but is not limited to internet, wide area network, metropolitan area Net, local area network, Virtual Private Network (Virtual Private Network, VPN) etc..
The positioning service control system 10 presets the positioning service etc. of each application in the electronic equipment 1 Grade obtains the current application for being in use state, is currently answered according to the corresponding positioning service grade of the current application to described With offer location-based service.Therefore, the positioning service of all applications of energy intelligent control of the present invention, avoids power consumption caused by continuous positioning It is wasted with data traffic.
The storage equipment 20 is used to store the program code of each program segment in the positioning service control system 10.Institute Stating storage equipment 20 can be smart media card (smart media card), safe digital card (secure digital Card), the storage facilities such as flash memory cards (flash card).
The processing equipment 30 may include one or more microprocessor, digital processing unit.
As shown in Fig. 2, being the flow chart of the first preferred embodiment of positioning service control method of the present invention.According to different Demand, the sequence of step can change in the flow chart, and certain steps can be omitted.
S10, the positioning service control system 10 preset the corresponding positioning service grade of each application.
For example, in one embodiment of the invention, the positioning service grade includes four grades: the first estate, the Two grades, the tertiary gradient and the fourth estate.
When the application of the first estate is in use state, the positioning service control system 10 is directed to described the first estate Application each request for location services, Xiang Suoshu positioning device 2 sends message request and positions the present bit of the electronic equipment 1 It sets, the current location is sent to the application of described the first estate by the positioning service control system 10, and will be described current Position and the current location corresponding time are stored in the storage equipment 20.
When the application of the second grade is in use state, when the positioning service control system 10 receives described second The request for location services that the application of grade is sent, the positioning service control system 10 are read recently from the storage equipment 20 The position of update, and it is sent to the application of second grade, the position of the recent renewal corresponding time and current time Time difference it is most short.The positioning service control system 10 sends message to the positioning device 2 according to prefixed time interval and asks The current location for positioning the electronic equipment 1 is asked, and the current location and the current location corresponding time are stored in In the storage equipment 20.
When the application of the tertiary gradient is in use state, the positioning service control system 10 is from the storage equipment 20 The middle position for reading recent renewal, and it is sent to the application of the tertiary gradient, the position of the recent renewal corresponding time It is most short with the time difference of current time.
When the application of the fourth estate is in use state, the positioning service control system 10 forbids the fourth estate Application obtain the position of the electronic equipment 1.
S11, the positioning service control system 10 obtain the current application for being in use state.
In implementing at of the invention one, when an application is opened and used by user or after the electronic equipment 1 When platform opens the current application, then the current application is in use state.
S12, the positioning service control system 10 obtain the corresponding positioning service grade of the current application.
In one embodiment of the invention, the corresponding positioning service grade of each application is stored in a list, institute List is stated to be stored in the storage equipment 20.Mark, each application that each application is stored in the list are corresponding fixed The position grade of service.The mark includes the other identifiers such as title, number symbol.
S13, the positioning service control system 10 are worked as according to the corresponding positioning service grade of the current application to described Preceding application provides location-based service.
In one embodiment of the invention, when the corresponding positioning service grade of the current application is the first estate, The positioning service control system 10 receives the request for location services that the current application is sent, and Xiang Suoshu positioning device 2 is sent Message request positions the current location of the electronic equipment 1, and by the current location and the current location corresponding time It is stored in the storage equipment 20.
When the corresponding positioning service grade of the current application is the second grade, when the positioning service control system 10 The request for location services that the current application is sent is received, the positioning service control system 10 is from the storage equipment 20 The position for reading recent renewal, and is sent to the current application, the position of the recent renewal corresponding time and it is current when Between time difference it is most short.The positioning service control system 10 sends message to the positioning device 2 according to prefixed time interval Request positions the current location of the electronic equipment 1, and the current location and the current location corresponding time are stored In the storage equipment 20.
When the corresponding positioning service grade of the current application be the tertiary gradient when, the positioning service control system 10 from The position that recent renewal is read in the storage equipment 20 is sent to the current application, and the position of the recent renewal is corresponding Time and the time difference of current time are most short.
When the current application is the fourth estate, the positioning service control system 10 forbids the current application to obtain The position of the electronic equipment 1.
As shown in figure 3, being the flow chart of the second preferred embodiment of positioning service control method of the present invention.According to different Demand, the sequence of step can change in the flow chart, and certain steps can be omitted.
S20, the positioning service control system 10 preset the corresponding positioning service grade of each application.
In one embodiment of the invention, the positioning service grade includes three grades: the first estate, second etc. Grade, the tertiary gradient and the fourth estate.
When the application of the first estate is in use state, the positioning service control system 10 is directed to described the first estate Application each request for location services, Xiang Suoshu positioning device 2 sends message request and positions the present bit of the electronic equipment 1 It sets, the current location is sent to the application of described the first estate by the positioning service control system 10.The positioning service The current location and the current location corresponding time are simultaneously stored in the storage equipment 20 by control system 10.
When the application of the second grade is in use state, when the positioning service control system 10 receives described second The request for location services that the application of grade is sent, the positioning service control system 10 are read recently from the storage equipment 20 The position of update, and it is sent to the application of second grade, the position of the recent renewal corresponding time and current time Time difference it is most short.The positioning service control system 10 sends message to the positioning device 2 according to prefixed time interval and asks The current location for positioning the electronic equipment 1 is asked, and the current location and the current location corresponding time are stored in In the storage equipment 20.
When the application of the tertiary gradient is in use state, the positioning service control system 10 is from the storage equipment 20 The middle position for reading recent renewal, and it is sent to the application of the tertiary gradient, the position of the recent renewal corresponding time It is most short with the time difference of current time.
When the application of the fourth estate is in use state, the positioning service control system 10 forbids the fourth estate Application obtain the position of the electronic equipment 1.
S21, the positioning service control system 10 obtain the current application for being in use state.
In implementing at of the invention one, when an application is opened and used by user or after the electronic equipment 1 When platform opens the current application, then the current application is in use state.
S22, the positioning service control system 10 obtain the corresponding positioning service grade of the current application.
In one embodiment of the invention, the corresponding positioning service grade of each application is stored in a list, institute List is stated to be stored in the storage equipment 20.Mark, each application that each application is stored in the list are corresponding fixed The position grade of service.The mark includes the other identifiers such as title, number symbol.
S23, when receiving the request for location services of the current application, the positioning service control system 10 records institute State the request for location services of current application.
In one embodiment of the invention, the positioning service control system 10 records each of the current application Request for location services and request for location services time, and be stored in the storage equipment 20, to count within a preset period of time The request for location services number of the current application.
S24, the positioning service control system 10 obtains the request for location services number in preset time period, and obtains The occupied space of location data of the electronic equipment 1.
In one embodiment of the invention, the positioning service control system 10 is according to the current application recorded Each request for location services and the request for location services time, count preset time period in the request for location services number.
In one embodiment of the invention, the location data includes request positioning phase relevant to the current application The data of pass, such as each request for location services of each application of storage and request for location services time, for each application The position data etc. that is positioned of request for location services.
In other embodiments of the invention, the positioning service control system 10 obtains the positioning in preset time period Service request number, or obtain the occupied space of location data of the electronic equipment 1.
S25, the positioning service control system 10 judge the request for location services number or institute in preset time period Whether the occupied space of location data for stating electronic equipment 1 reaches preset condition.
In one embodiment in the present embodiment, when request for location services number described in preset time period reaches default When the occupied space of the location data of number or the electronic equipment 1 reaches preset threshold, S26 is executed.
S26, the positioning service control system 10 prompt current application frequent requests positioning service described in user.
In one embodiment of the invention, the positioning service control system 10 prompts to use in the form of popping up prompting frame Current application frequent requests positioning service described in family, and user is allowed to be confirmed whether to cancel the positioning service of the current application.When When the positioning service control system 10 receives user's selection "Yes" option, the positioning service control system 10 is cancelled described The positioning service of current application executes S27 when user selects "No" option.
When request for location services number described in preset time period is less than preset times, and the positioning of the electronic equipment 1 When the occupied space of data is less than preset threshold, S27 is executed.
S27, the positioning service control system 10 are worked as according to the corresponding positioning service grade of the current application to described Preceding application provides location-based service.
In one embodiment of the invention, when the corresponding positioning service grade of the current application is the first estate, The positioning service control system 10 is directed to the request for location services of the current application, and Xiang Suoshu positioning device 2 sends message Request positions the current location of the electronic equipment 1, and the current location and the current location corresponding time are stored In the storage equipment 20.
When the corresponding positioning service grade of the current application is the second grade, when the positioning service control system 10 The request for location services that the current application is sent is received, the positioning service control system 10 is from the storage equipment 20 The position for reading recent renewal, and is sent to the current application, the position of the recent renewal corresponding time and it is current when Between time difference it is most short.The positioning service control system 10 sends message to the positioning device 2 according to prefixed time interval Request positions the current location of the electronic equipment 1, and the current location and the current location corresponding time are stored In the storage equipment 20.
When the corresponding positioning service grade of the current application be the tertiary gradient when, the positioning service control system 10 from The position that recent renewal is read in the storage equipment 20 is sent to the current application, and the position of the recent renewal is corresponding Time and the time difference of current time are most short.
When the current application is the fourth estate, the positioning service control system 10 forbids the current application to obtain The position of the electronic equipment 1.
The present invention presets the positioning service grade of each application, obtains the current application for being in use state, according to The corresponding positioning service grade of the current application provides location-based service to the current application.Implement technical solution of the present invention, The positioning service of energy all applications of intelligent control effectively avoids power consumption caused by continuous positioning and data traffic from wasting.
As shown in figure 4, the positioning service control system 10 includes setup module 100, obtains module 101, locating module 102, logging modle 103, judgment module 104 and cue module 105.The so-called module of the present invention refers to that one kind processed can be set Standby 30 series of computation machine program segments that are performed and can completing fixed function, are stored in storage equipment 20.At this In embodiment, the function about each module will be described in detail in subsequent embodiment.
In implementing at further one, details are as follows for the function of each module:
Setup module 100, for presetting the corresponding positioning service grade of each application.
In one embodiment of the invention, the positioning service grade includes four grades: the first estate, second etc. Grade, the tertiary gradient and the fourth estate.
When the application of the first estate is in use state, the positioning service control system 10 is directed to described the first estate Application each request for location services, Xiang Suoshu positioning device 2 sends message request and positions the present bit of the electronic equipment 1 It sets, the current location is sent to the application of described the first estate by the positioning service control system 10.The positioning service The current location and the current location corresponding time are simultaneously stored in the storage equipment 20 by control system 10.
When the application of the second grade is in use state, when the positioning service control system 10 receives described second The request for location services that the application of grade is sent, the positioning service control system 10 are read recently from the storage equipment 20 The position of update, and it is sent to the application of second grade, the position of the recent renewal corresponding time and current time Time difference it is most short.The positioning service control system 10 sends message to the positioning device 2 according to prefixed time interval and asks The current location for positioning the electronic equipment 1 is asked, and the current location and the current location corresponding time are stored in In the storage equipment 20.
When the application of the tertiary gradient is in use state, the positioning service control system 10 is from the storage equipment 20 The middle position for reading recent renewal, and it is sent to the application of the tertiary gradient, the position of the recent renewal corresponding time It is most short with the time difference of current time.
When the application of the fourth estate is in use state, the positioning service control system 10 forbids the fourth estate Application obtain the position of the electronic equipment 1.
Module 101 is obtained, for obtaining the current application for being in use state.
In implementing at of the invention one, when an application is opened and used by user or after the electronic equipment 1 When platform opens the current application, then the current application is in use state.
The acquisition module 101 obtains the corresponding positioning service grade of the current application.
In one embodiment of the invention, the corresponding positioning service grade of each application is stored in a list, institute List is stated to be stored in the storage equipment 20.Mark, each application that each application is stored in the list are corresponding fixed The position grade of service.The mark includes the other identifiers such as title, number symbol.
Locating module 102 provides position to the current application according to the corresponding positioning service grade of the current application Service.
In one embodiment of the invention, when the corresponding positioning service grade of the current application is the first estate, The locating module 102 receives the request for location services that the current application is sent, and Xiang Suoshu positioning device 2 sends message request The current location of the electronic equipment 1 is positioned, and the current location and the current location corresponding time are stored in institute It states in storage equipment 20.
When the corresponding positioning service grade of the current application is the second grade, when the locating module 102 receives The request for location services that the current application is sent, the locating module 102 read recent renewal from the storage equipment 20 Position, and be sent to the current application, the time difference of the position of the recent renewal corresponding time and current time is most It is short.
When the corresponding positioning service grade of the current application is the tertiary gradient, the locating module 102 is deposited from described The position that recent renewal is read in storage equipment 20 is sent to the current application, the position of the recent renewal corresponding time with The time difference of current time is most short.
When the current application is the fourth estate, the locating module 102 forbids the current application to obtain the electricity The position of sub- equipment 1.
In implementing at further one, details are as follows for the function of each module:
Setup module 100, for presetting the corresponding positioning service grade of each application.
In one embodiment of the invention, the positioning service grade includes four grades: the first estate, second etc. Grade, the tertiary gradient and the fourth estate.
When the application of the first estate is in use state, the positioning service control system 10 is directed to described the first estate Application each request for location services, Xiang Suoshu positioning device 2 sends message request and positions the present bit of the electronic equipment 1 It sets, the current location is sent to the application of described the first estate by the positioning service control system 10.The positioning service The current location and the current location corresponding time are simultaneously stored in the storage equipment 20 by control system 10.
When the application of the second grade is in use state, the positioning service control system 10 is according to prefixed time interval Message request is sent to the positioning device 2 and positions the current location of the electronic equipment 1, and by the current location and described The current location corresponding time is stored in the storage equipment 20.When the positioning service control system 10 receives described The request for location services that the application of two grades is sent, the positioning service control system 10 are read most from the storage equipment 20 The position closely updated, and be sent to the application of second grade, the position of the recent renewal corresponding time and it is current when Between time difference it is most short.
When the application of the tertiary gradient is in use state, the positioning service control system 10 is from the storage equipment 20 The middle position for reading recent renewal, and it is sent to the application of the tertiary gradient, the position of the recent renewal corresponding time It is most short with the time difference of current time.
When the application of the fourth estate is in use state, the positioning service control system 10 forbids the fourth estate Application obtain the position of the electronic equipment 1.
Module 101 is obtained, for obtaining the current application for being in use state.
In implementing at of the invention one, when an application is opened and used by user or after the electronic equipment 1 When platform opens the current application, then the current application is in use state.
The acquisition module 101 obtains the corresponding positioning service grade of the current application.
In one embodiment of the invention, the corresponding positioning service grade of each application is stored in a list, institute List is stated to be stored in the storage equipment 20.Mark, each application that each application is stored in the list are corresponding fixed The position grade of service.The mark includes the other identifiers such as title, number symbol.
When receiving the request for location services of the current application, logging modle 103 records determining for the current application Position service request.
In one embodiment of the invention, the logging modle 103 records each positioning clothes of the current application Business request and request for location services time, and be stored in the storage equipment 20, worked as with counting described within a preset period of time The request for location services number of preceding application.
The acquisition module 101 obtains the request for location services number in preset time period, and obtains the electronics and set The standby 1 occupied space of location data.
In one embodiment of the invention, the acquisition module 101 is according to each of the current application recorded Request for location services and the request for location services time, count preset time period in the request for location services number.
In one embodiment of the invention, the location data includes request positioning phase relevant to the current application The data of pass, such as each request for location services of each application of storage and request for location services time, for each application The position data etc. that is positioned of request for location services.
In other embodiments of the invention, the acquisition module 101 obtains the positioning service in preset time period and asks Number is sought, or obtains the occupied space of location data of the electronic equipment 1.
Judgment module 104 judges determining for the request for location services number in preset time period or the electronic equipment 1 Whether the position occupied space of data reaches preset condition.
In one embodiment in the present embodiment, when request for location services number described in preset time period reaches default When the occupied space of the location data of number or the electronic equipment 1 reaches preset threshold, the prompt of cue module 105 is used Current application frequent requests positioning service described in family.
In one embodiment of the invention, the cue module 105 is prompted described in user in the form of popping up prompting frame Current application frequent requests positioning service, and user is allowed to be confirmed whether to cancel the positioning service of the current application.It is mentioned when described When showing that module 105 receives user's selection "Yes" option, the positioning service control system 10 cancels determining for the current application Position service, when user selects "No" option, the locating module 102 is according to the corresponding positioning service grade of the current application Location-based service is provided to the current application.
When request for location services number described in preset time period is less than preset times, and the positioning of the electronic equipment 1 When the occupied space of data is less than preset threshold, the locating module 102 is according to the corresponding positioning service of the current application Grade provides location-based service to the current application.
In one embodiment of the invention, when the corresponding positioning service grade of the current application is the first estate, The locating module 102 is directed to the request for location services of the current application, and Xiang Suoshu positioning device 2 sends message request positioning The current location of the electronic equipment 1, and the current location and the current location corresponding time are stored in described deposit It stores up in equipment 20.
When the corresponding positioning service grade of the current application is the second grade, when the locating module 102 receives The request for location services that the current application is sent, the locating module 102 read recent renewal from the storage equipment 20 Position, and be sent to the current application, the time difference of the position of the recent renewal corresponding time and current time is most It is short.The locating module 102 sends message request to the positioning device 2 according to prefixed time interval and positions the electronic equipment 1 current location, and the current location and the current location corresponding time are stored in the storage equipment 20.
When the corresponding positioning service grade of the current application is the tertiary gradient, the locating module 102 is deposited from described The position that recent renewal is read in storage equipment 20 is sent to the current application, the position of the recent renewal corresponding time with The time difference of current time is most short.
When the current application is the fourth estate, the locating module 102 forbids the current application to obtain the electricity The position of sub- equipment 1.
The present invention presets the positioning service grade of each application, obtains the current application in use state according to institute It states the corresponding positioning service grade of current application and provides location-based service to the current application.Implement technical solution of the present invention, energy The positioning service of all applications of intelligent control avoids power consumption caused by continuous positioning and data traffic from wasting.
The above-mentioned integrated unit realized in the form of software function module, can store and computer-readable deposit at one In storage media.Above-mentioned software function module is stored in a storage medium, including some instructions are used so that a computer It is each that equipment (can be personal computer, server or the network equipment etc.) or processor (processor) execute the present invention The part steps of embodiment the method.
In one embodiment of the invention, as shown in Figure 1, the storage equipment 20 in the electronic equipment 1 stores Multiple instruction is to realize that the multiple instruction can be performed to realize in a kind of positioning service control method, the processing equipment 30: Preset the corresponding positioning service grade of each application;Obtain the current application for being in use state;It obtains and described currently answers With corresponding positioning service grade;And position is provided to the current application according to the corresponding positioning service grade of the current application The service of setting.
In a further embodiment, the positioning service grade include: the first estate, the second grade, the tertiary gradient and The fourth estate.
In a further embodiment, described currently to be answered according to the corresponding positioning service grade of the current application to described Include: with offer location-based service
When the corresponding positioning service grade of the current application is the first estate, determining for the current application transmission is received Position service request, Xiang Suoshu positioning device send the current location that message request positions the electronic equipment, and will be described current Position and the current location corresponding time are stored in storage equipment;Or
When the corresponding positioning service grade of the current application is the second grade, sent when receiving the current application Request for location services, the position of recent renewal is read from the storage equipment, and is sent to the current application, it is described most The position closely updated corresponding time and the time difference of current time are most short;It is sent out according to prefixed time interval to the positioning device The current location for sending message request to position the electronic equipment, and by the current location and the current location corresponding time It is stored in the storage equipment;Or
When the corresponding positioning service grade of the current application is the tertiary gradient, read from the storage equipment nearest The position of update is sent to the current application, and the time difference of the position of the recent renewal corresponding time and current time is most It is short;Or
When the current application is the fourth estate, the current application is forbidden to obtain the position of the electronic equipment.
In a further embodiment, according to the corresponding positioning service grade of the current application to the current application Before location-based service is provided, the method also includes:
When receiving the request for location services of the current application, the request for location services of the current application is recorded;
The request for location services number in preset time period is obtained, and is obtained shared by the location data of the electronic equipment Space.
In a further embodiment, when request for location services number described in preset time period reaches preset times, or When the occupied space of the location data of electronic equipment described in person reaches preset threshold, current application described in user is prompted frequently to ask Ask positioning service;Or
When request for location services number described in preset time period is less than preset times, and the positioning number of the electronic equipment When being less than preset threshold according to occupied space, according to the corresponding positioning service grade of the current application to the current application Location-based service is provided.
In several embodiments provided by the present invention, it should be understood that disclosed system, device and method can be with It realizes by another way.For example, the apparatus embodiments described above are merely exemplary, for example, the module It divides, only a kind of logical function partition, there may be another division manner in actual implementation.
The module as illustrated by the separation member may or may not be physically separated, aobvious as module The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple In network unit.Some or all of the modules therein can be selected to realize the mesh of this embodiment scheme according to the actual needs 's.
It, can also be in addition, each functional module in each embodiment of the present invention can integrate in one processing unit It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list Member both can take the form of hardware realization, can also realize in the form of hardware adds software function module.
It is obvious to a person skilled in the art that invention is not limited to the details of the above exemplary embodiments, Er Qie In the case where without departing substantially from spirit or essential attributes of the invention, the present invention can be realized in other specific forms.Therefore, no matter From the point of view of which point, the present embodiments are to be considered as illustrative and not restrictive, and the scope of the present invention is by appended power Benefit requires rather than above description limits, it is intended that all by what is fallen within the meaning and scope of the equivalent elements of the claims Variation is included in the present invention.Any attached associated diagram label in claim should not be considered as right involved in limitation to want It asks.Furthermore, it is to be understood that one word of " comprising " does not exclude other units or steps, odd number is not excluded for plural number.It is stated in system claims Multiple units or device can also be implemented through software or hardware by a unit or device.The first, the second equal words It is used to indicate names, and does not indicate any particular order.
Finally it should be noted that the above examples are only used to illustrate the technical scheme of the present invention and are not limiting, although reference Preferred embodiment describes the invention in detail, those skilled in the art should understand that, it can be to of the invention Technical solution is modified or equivalent replacement, without departing from the spirit and scope of the technical solution of the present invention.

Claims (6)

1. a kind of positioning service control method is applied in electronic equipment, the electronic equipment is communicated with positioning device, special Sign is, which comprises
Preset the corresponding positioning service grade of each application, wherein the positioning service grade includes the first estate, second Grade, the tertiary gradient and the fourth estate;
Obtain the current application for being in use state;
Obtain the corresponding positioning service grade of the current application;
When the corresponding positioning service grade of the current application is the first estate, the positioning clothes that the current application is sent are received Business request, Xiang Suoshu positioning device send message request and position the current location of the electronic equipment, and by the current location And the current location corresponding time is stored in storage equipment;Or
When the corresponding positioning service grade of the current application is the second grade, when receive that the current application sends determines Position service request reads the position of recent renewal from the storage equipment, and is sent to the current application;According to it is default when Between be spaced and send message request to the positioning device and position the current location of the electronic equipment, and by the current location and The current location corresponding time is stored in the storage equipment, wherein the position of the recent renewal corresponding time It is most short with the time difference of current time;Or
When the corresponding positioning service grade of the current application is the tertiary gradient, recent renewal is read from the storage equipment Position be sent to the current application;Or
When the current application is the fourth estate, the current application is forbidden to obtain the position of the electronic equipment.
2. positioning service control method as described in claim 1, which is characterized in that the method also includes:
When receiving the request for location services of the current application, the request for location services of the current application is recorded;
The request for location services number in acquisition preset time period, and the location data of the acquisition electronic equipment are occupied Space.
3. positioning service control method as claimed in claim 2, which is characterized in that the method also includes:
When request for location services number described in preset time period reaches the location data of preset times or the electronic equipment When occupied space reaches preset threshold, current application frequent requests positioning service described in user is prompted;Or
When request for location services number described in preset time period is less than preset times, and the location data institute of the electronic equipment When the space occupied is less than preset threshold, provided according to the corresponding positioning service grade of the current application to the current application Location-based service.
4. a kind of positioning service control system, which is characterized in that the system comprises:
Setup module, for presetting the corresponding positioning service grade of each application, wherein the positioning service grade includes The first estate, the second grade, the tertiary gradient and the fourth estate;
Module is obtained, for obtaining the current application for being in use state;
The acquisition module is also used to obtain the corresponding positioning service grade of the current application;And
Locating module, for when the corresponding positioning service grade of the current application is the first estate, reception is described currently to be answered With the request for location services of transmission, Xiang Suoshu positioning device sends the current location of message request Positioning Electronic Devices, and by institute It states current location and the current location corresponding time is stored in storage equipment;Or, when the current application is corresponding fixed When the position grade of service is the second grade, when the request for location services for receiving the current application transmission, from the storage equipment The middle position for reading recent renewal, and it is sent to the current application;It is sent according to prefixed time interval to the positioning device Message request positions the current location of the electronic equipment, and the current location and the current location corresponding time are deposited It is stored in the storage equipment, wherein the position of the recent renewal corresponding time and the time difference of current time are most short; Or, reading recent renewal from the storage equipment when the corresponding positioning service grade of the current application is the tertiary gradient Position be sent to the current application;Or, forbidding the current application to obtain institute when the current application is the fourth estate State the position of electronic equipment.
5. positioning service control system as claimed in claim 4, which is characterized in that the system also includes:
Logging modle, for recording the positioning of the current application when receiving the request for location services of the current application Service request;
The acquisition module is also used to obtain the request for location services number in preset time period, and obtains electronic equipment The occupied space of location data.
6. positioning service control system as claimed in claim 5, which is characterized in that the system also includes:
Cue module reaches preset times or the electronics for working as the request for location services number in preset time period When the occupied space of the location data of equipment reaches preset threshold, the positioning clothes of current application frequent requests described in user are prompted Business;Or
The locating module is also used to work as the request for location services number in preset time period and is less than preset times, and described When the occupied space of the location data of electronic equipment is less than preset threshold, according to corresponding positioning service of the current application etc. Grade provides location-based service to the current application.
CN201610822950.1A 2016-09-13 2016-09-13 Positioning service control method and system Active CN106412257B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610822950.1A CN106412257B (en) 2016-09-13 2016-09-13 Positioning service control method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610822950.1A CN106412257B (en) 2016-09-13 2016-09-13 Positioning service control method and system

Publications (2)

Publication Number Publication Date
CN106412257A CN106412257A (en) 2017-02-15
CN106412257B true CN106412257B (en) 2019-11-12

Family

ID=58000161

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610822950.1A Active CN106412257B (en) 2016-09-13 2016-09-13 Positioning service control method and system

Country Status (1)

Country Link
CN (1) CN106412257B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107148074A (en) * 2017-06-06 2017-09-08 深圳天珑无线科技有限公司 A kind of location processing method and its electronic equipment
CN111355848B (en) * 2020-03-11 2021-04-13 Oppo广东移动通信有限公司 Positioning control method and device of electronic equipment, storage medium and electronic equipment

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103067583A (en) * 2012-12-26 2013-04-24 鸿富锦精密工业(深圳)有限公司 Portable wireless communication device
CN105929423A (en) * 2015-02-26 2016-09-07 宏达国际电子股份有限公司 Wearable Apparatus And Controlling Method Thereof

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102223601B (en) * 2011-06-09 2017-04-12 中兴通讯股份有限公司 Location service method and system, and terminal

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103067583A (en) * 2012-12-26 2013-04-24 鸿富锦精密工业(深圳)有限公司 Portable wireless communication device
CN105929423A (en) * 2015-02-26 2016-09-07 宏达国际电子股份有限公司 Wearable Apparatus And Controlling Method Thereof

Also Published As

Publication number Publication date
CN106412257A (en) 2017-02-15

Similar Documents

Publication Publication Date Title
CN108052384B (en) Task processing method, service platform and electronic equipment
CN104867065B (en) Method and equipment for processing order
CN103729771A (en) Method and system for displaying user information
CN107395697A (en) Push Channel Selection, information push method, device and equipment, computer-readable recording medium
CN107479953B (en) Process management method, device, storage medium and electronic equipment
CN103065235A (en) Systems and methods for event attendance notification
CN104915855B (en) The predictor method and device of order competition for orders rate
CN108009719A (en) A kind of user's evaluation method, server and terminal based on hosted platform
CN107944000A (en) Flight freight rate update method, device, electronic equipment, storage medium
CN110365497A (en) Information push method, device, electronic equipment and storage medium
CN110287146A (en) Using the method, equipment and computer storage medium of downloading
CN106412257B (en) Positioning service control method and system
CN106055404B (en) Method and device for cleaning background application program
CN110427134A (en) Data processing method, device, equipment and the readable storage medium storing program for executing of instant messaging
CN110443392B (en) College library seat management system and method
CN112052096A (en) Resource processing method and device, server and terminal
CN112561371B (en) Scheduling determination method and device, electronic equipment and storage medium
CN113220452A (en) Resource allocation method, model training method, device and electronic equipment
CN106528141B (en) Task sweep-out method and system
CN110231981A (en) Service calling method and device
CN110149352A (en) A kind of service request processing method, device, computer equipment and storage medium
CN116703071A (en) Resource sharing method, device and equipment and storage medium
CN106209984A (en) A kind of information processing method and Smart Home open platform
CN106204869A (en) Row number based reminding method and system
CN109960572B (en) Equipment resource management method and device and intelligent terminal

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant