CN108055644B - Positioning control method and device, storage medium and terminal equipment - Google Patents

Positioning control method and device, storage medium and terminal equipment Download PDF

Info

Publication number
CN108055644B
CN108055644B CN201711326729.8A CN201711326729A CN108055644B CN 108055644 B CN108055644 B CN 108055644B CN 201711326729 A CN201711326729 A CN 201711326729A CN 108055644 B CN108055644 B CN 108055644B
Authority
CN
China
Prior art keywords
positioning
application
application program
type
determining
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
CN201711326729.8A
Other languages
Chinese (zh)
Other versions
CN108055644A (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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201711326729.8A priority Critical patent/CN108055644B/en
Publication of CN108055644A publication Critical patent/CN108055644A/en
Application granted granted Critical
Publication of CN108055644B publication Critical patent/CN108055644B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information
    • H04W4/025Services making use of location information using location based information parameters
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3234Power saving characterised by the action undertaken
    • G06F1/3287Power saving characterised by the action undertaken by switching off individual functional units in the computer system
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/033Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor
    • G06F3/0346Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor with detection of the device orientation or free movement in a 3D space, e.g. 3D mice, 6-DOF [six degrees of freedom] pointers using gyroscopes, accelerometers or tilt-sensors
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • H04W52/0261Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level
    • H04W52/0264Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level by selectively disabling software applications
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Abstract

According to the positioning control method, the positioning control device, the storage medium and the terminal equipment, when a positioning call request of a positioning application program is received, the operation mode of the positioning application program is determined; if the positioning application program runs in the background, determining the application type of the positioning application program; and determining whether to reject the positioning calling request according to the application type. By adopting the technical scheme, when the application program runs in the background, whether the positioning calling request of the positioning application program is rejected or not can be determined according to the application type of the positioning application program, so that the positioning module is prevented from being driven to work when the application program runs in the background, and the power consumption of the terminal equipment is reduced.

Description

Positioning control method and device, storage medium and terminal equipment
Technical Field
The embodiment of the application relates to the technical field of positioning of terminal equipment, in particular to a positioning control method and device, a storage medium and terminal equipment.
Background
With the continuous development of internet communication technology, terminal devices such as smart phones and tablet computers have more and more functions, and can provide various services for users. In order to meet the positioning requirement of the user, the terminal device generally has a positioning function, and a positioning module may be disposed in the terminal device, and the positioning module may obtain the positioning information of the terminal device through a Global Navigation Satellite System (GNSS). An Application program (APP) Based on Location Based Service (LBS) in the terminal device may also obtain the positioning information through the positioning function of the terminal device, and implement its Application function according to the positioning information. However, the operation process of acquiring the positioning information may bring greater power consumption to the terminal device, and as more and more applications for acquiring the positioning information in the terminal device based on the location-based service are provided, the power consumption of the terminal device is faster and faster.
Disclosure of Invention
The embodiment of the application provides a positioning control method, a positioning control device, a storage medium and a terminal device, which can reduce power consumption brought by a positioning function.
In a first aspect, an embodiment of the present application provides a positioning control method, including:
determining the operation mode of a positioning application program when receiving a positioning call request of the positioning application program;
if the positioning application program runs in the background, determining the application type of the positioning application program;
and determining whether to reject the positioning calling request according to the application type.
In a second aspect, an embodiment of the present application provides a positioning control apparatus, including:
the system comprises an operation mode determining module, a positioning module and a processing module, wherein the operation mode determining module is used for determining the operation mode of a positioning application program when receiving a positioning calling request of the positioning application program;
the application type determining module is used for determining the application type of the positioning application program when the positioning application program runs in a background mode;
and the positioning control module is used for determining whether to reject the positioning calling request according to the application type.
In a third aspect, an embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements a positioning control method according to an embodiment of the present application.
In a fourth aspect, an embodiment of the present application provides a terminal device, which includes a memory, a processor, and a computer program stored on the memory and executable by the processor, where the processor executes the computer program to implement the positioning control method according to the embodiment of the present application.
According to the positioning control scheme provided by the embodiment of the application, when a positioning call request of a positioning application program is received, the operation mode of the positioning application program is determined; if the positioning application program runs in the background, determining the application type of the positioning application program; and determining whether to reject the positioning calling request according to the application type. By adopting the technical scheme, when the application program runs in the background, whether the positioning calling request of the positioning application program is rejected or not can be determined according to the application type of the positioning application program, so that the positioning module is prevented from being driven to work when the application program runs in the background, and the power consumption of the terminal equipment is reduced.
Drawings
Fig. 1 is a schematic flowchart of a positioning control method according to an embodiment of the present application;
fig. 2 is a schematic flowchart of another positioning control method according to an embodiment of the present application;
fig. 3 is a schematic flowchart of another positioning control method according to an embodiment of the present application;
fig. 4 is a schematic flowchart of another positioning control method according to an embodiment of the present application;
fig. 5 is a schematic flowchart of another positioning control method according to an embodiment of the present application;
fig. 6 is a schematic flowchart of another positioning control method according to an embodiment of the present application;
fig. 7 is a block diagram of another positioning control apparatus according to an embodiment of the present disclosure;
fig. 8 is a schematic structural diagram of a terminal device according to an embodiment of the present application;
fig. 9 is a schematic structural diagram of a terminal device according to an embodiment of the present application.
Detailed Description
The technical scheme of the application is further explained by the specific implementation mode in combination with the attached drawings. It is to be understood that the specific embodiments described herein are merely illustrative of the application and are not limiting of the application. It should be further noted that, for the convenience of description, only some of the structures related to the present application are shown in the drawings, not all of the structures.
Before discussing exemplary embodiments in more detail, it should be noted that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although a flowchart may describe the steps as a sequential process, many of the steps can be performed in parallel, concurrently or simultaneously. In addition, the order of the steps may be rearranged. The process may be terminated when its operations are completed, but may have additional steps not included in the figure. The processes may correspond to methods, functions, procedures, subroutines, and the like.
Terminal devices may include smart phones, tablets, and other devices having an operating system. Some applications on the terminal device may call the positioning function of the terminal device to implement the application function. Such as a voice service type application, which may acquire location information of the terminal device and provide a service related to the location information to the user, e.g., may recommend music that people nearby are listening to the user. However, when a user uses a sound service application, the sound service application is generally set to run in the background, the music application can continue to provide music service to the user, the radio application can continue to provide radio service to the user, and the service information provided by the application program set to run in the background is useless for the user if the user does not operate the screen, and the positioning module of the terminal device works to bring extra power consumption to the terminal device.
Fig. 1 is a schematic flowchart of a positioning control method provided in an embodiment of the present application, where the method may be executed by a positioning control apparatus, where the apparatus may be implemented by software and/or hardware, and may be generally integrated in a terminal device, or may be integrated in other devices installed with an operating system. As shown in fig. 1, the method includes:
s110, when a positioning calling request of a positioning application program is received, determining the running mode of the positioning application program.
The Location application is an application that needs to obtain Location information of the terminal device to implement its application function, and may include an LBS (Location Based Service) application. And the positioning application program sends a positioning calling request to a position service process used for processing a positioning function of the terminal equipment, and the position service process drives the positioning module to work according to the positioning calling request to acquire positioning information. The Positioning module may include a GNSS (Global Navigation Satellite System) module, and the GNSS module may be a GPS (Global Positioning System) module. When the positioning application program is started, a positioning calling request of the positioning application program is received. If the positioning calling request of the application program is allowed by the system of the terminal equipment, the position service process can continuously send the positioning information to the application program, namely the positioning module of the terminal equipment can continuously work, continuously acquire the positioning information and send the positioning information to the application program until the application program is finished running. If the positioning calling request of the application program is rejected by the system of the terminal equipment, the positioning application program cannot acquire the positioning information, and the positioning module cannot work due to the calling of the positioning application program.
The operation modes of the positioning application program can comprise background operation, foreground operation and the like. And the foreground runs, namely the application occupies the screen of the terminal equipment to display the application interface of the terminal equipment, and can interact with the user through the screen. The application program is executed in a background mode, namely the application program is not displayed on the screen of the terminal device and cannot interact with a user by occupying the screen of the terminal device, but the application program can output corresponding information through a loudspeaker or other output ends.
And S111, if the positioning application program runs in the background, determining the application type of the positioning application program.
If the positioning application program runs in the background, the application type of the positioning application program can be further determined. The application type is determined according to different requirements of the positioning application program for acquiring the positioning information or whether the positioning service information is pushed through a screen. The positioning application program can only be pushed to the user through the screen of the terminal device according to the service information provided by the positioning information, and at the moment, the positioning application program runs in a background, the service information cannot be pushed to the user through the screen, so that the service information is useless for the user, and the positioning application program obtains the positioning information to enable the positioning module of the terminal device to work, so that extra power consumption is brought to the terminal device. It can be determined whether to reject the location invocation request according to the application type.
And S112, determining whether to reject the positioning calling request according to the application type.
If the application type of the positioning application program is that the positioning service information can be pushed only through the screen, namely the application program cannot push the positioning service information through other output ends. Therefore, if the positioning application program runs in the background, the positioning calling request is rejected, and extra power consumption brought to the terminal equipment by driving the positioning module to work when the positioning application runs in the background can be avoided.
Optionally, if the location application does not belong to the target type, rejecting the location invocation request. The application types may include a target type and a non-target type, and the target type includes an application program whose location service information can be output through a speaker or other output terminal without affecting the effect of the use by the user. For example, if the positioning application is a map-like application, that is, an application providing a service for a user based on map information, the map-like application includes a function of acquiring the positioning information in real time and providing a navigation service, the map-like application may display the navigation service information through a screen, and may also play the navigation information through a speaker, and the user may drive through the navigation information played through the speaker, the application may be determined as a target type.
Optionally, the target type includes an application program that generates corresponding real-time service information according to the positioning information when the target type runs in the background, and sends the real-time service information to the user.
When the application program belonging to the target type runs in the background, the positioning information is continuously acquired, and corresponding real-time service information is generated, that is, the application program must continuously acquire the positioning information of the terminal device to generate the real-time service information, such as a navigation application. If the instant positioning application program does not need to acquire the positioning information in real time, but only needs to acquire one piece of positioning information to generate corresponding service information, the application can generate corresponding service information according to the positioning information acquired during starting when the application runs in the background, and the application does not need to acquire the positioning information again when the application runs in the background. By determining that the corresponding real-time service information is generated according to the positioning information during background running and sending the real-time service information to the application program of the user as the target type, the application program more suitable for calling the positioning information during the background running can be determined, and the operation efficiency of the user on the application program of the target type is improved.
Fig. 2 is a schematic flow chart of another positioning control method provided in an embodiment of the present application, where based on the technical solution provided in the foregoing embodiment, an operation of determining the type of the positioning application is optimized, and optionally, as shown in fig. 2, the method includes:
s120, when a positioning calling request of the positioning application program is received, determining the running mode of the positioning application program.
Reference may be made to the above description for specific embodiments, which are not repeated herein.
And S121, if the positioning application program runs in the background, determining the application type of the positioning application program according to a preset type table.
The preset type table may be preset by the system, and the preset type table includes a mapping relationship between an application program and an application type. Optionally, as shown in fig. 3, before determining the application type of the positioning application according to the preset type table, the method further includes:
s1210, determining the application classification of the application program in the terminal equipment according to the preset attribute classification of the application program, wherein the application classification comprises a target type and a non-target type.
S1211, establishing a preset type table according to the application program in the terminal equipment and the corresponding application classification.
The preset attribute classification of the application program may be preset classification of the application program by the application market according to the attribute of the application program. The application market may be a download platform of the application program, and the application market may classify a plurality of application programs for the convenience of user search. Illustratively, the preset attribute classes include a photographing and video class, a life service class, a game class, a map service class, and the like.
The application classification of the application program in the terminal equipment can be determined according to the operation habit corresponding to the preset attribute classification of the application program. For example, a camera and video application may use a screen to complete its application function, and the camera and video application may be determined to be of a non-target type. The map service application can output navigation information to the user through the loudspeaker when running in the background, so that the map service application is determined to be the target application. The application type of the positioning application program can be determined quickly by establishing a preset type table and determining the application type of the positioning application program according to the preset type table.
Optionally, as shown in fig. 4, after the preset type table is established according to the application program in the terminal device and the corresponding application classification, the method further includes:
and S1212, receiving a type adjusting instruction input by the user.
And S1213, changing the application classification of the corresponding application program according to the type adjusting instruction.
The user can set the application classification of the application program in the preset type table by inputting the type adjustment instruction. The application classification of the application program can be adjusted according to the requirements of the user, and the operation efficiency of the user is improved.
And S122, determining whether to reject the positioning calling request according to the application type.
Reference may be made to the above description for specific embodiments, which are not repeated herein.
Fig. 5 is a schematic flow chart of another positioning control method provided in an embodiment of the present application, and on the basis of the technical solution provided in any of the above embodiments, as shown in fig. 5, optionally, the method includes:
s130, when a positioning calling request of the positioning application program is received, determining the running mode of the positioning application program.
S131, if the positioning application program runs in the background, determining the application type of the positioning application program.
S132, determining whether to reject the positioning calling request according to the application type.
For the above-mentioned specific implementation of the operations, reference may be made to the above-mentioned related description, and further description is omitted here.
S133, after the positioning calling request is rejected, detecting the running mode of the positioning application program.
And S134, if the positioning application program is detected to be switched to foreground operation and the positioning calling request retransmitted by the positioning application program is received, allowing the retransmitted positioning calling request.
After the positioning call request of the positioning application program is rejected, when the positioning application program is restored to the foreground operation, the positioning application program can be controlled to resend the positioning call request. And when the positioning application program is detected to be switched to foreground operation and the positioning calling request retransmitted by the positioning application program is received, allowing the retransmitted positioning calling request. When the positioning application program is restored to the foreground operation, the positioning information can be acquired in time and corresponding service information can be provided for the user, and the operation efficiency of the user for using the positioning application program can be improved.
Fig. 6 is a schematic flow chart of another positioning control method provided in an embodiment of the present application, and on the basis of the technical solution provided in any of the above embodiments, as shown in fig. 6, optionally, the method includes:
s140, when a positioning calling request of the positioning application program is received, determining the running mode of the positioning application program.
And S141, if the positioning application program runs in the background, determining the application type of the positioning application program.
S142, determining whether to reject the positioning calling request according to the application type.
For the above-mentioned specific implementation of the operations, reference may be made to the above-mentioned related description, and further description is omitted here.
S143, after the positioning calling request is rejected, determining the position information of the terminal equipment according to the wireless signals and/or the sensor signals of the terminal equipment.
The location information of the terminal device may be determined from the wireless signal of the terminal device. The Wireless signal may be a signal obtained by communicating between a Wireless module of the terminal device and an external communication terminal, and may include a Wi-Fi (Wireless-Fidelity) signal and/or a base station signal.
Each AP has a globally unique MAC address, and a general AP will not move for a period of time. The wireless module (such as a Wi-Fi module) of the terminal device can acquire information of wireless access points in the communication range of the terminal device, and new position information of the terminal device is calculated according to the geographical position of each wireless access point and the signal strength of each wireless access point to serve as the position information of the terminal device.
The wireless module (e.g., mobile communication module) of the terminal device may further communicate with different base stations to obtain downlink pilot signals of different base stations, and obtain Arrival times (TOAs, Time of Arrival) or Time Difference of Arrival (TDOA, Time Difference of Arrival) of downlink pilot signals of different base stations, and according to the Arrival times, the Time Difference of Arrival and coordinates of the base stations, a trigonometric formula estimation algorithm may be used to calculate new location information of the terminal device, which is used as the location information of the terminal device.
The position information of the terminal device can be determined through a sensor signal of a mobile sensor of the terminal device, the mobile sensor can comprise a gyroscope, an acceleration sensor, a gravity sensor and the like, the moving direction, the moving distance and the like of the terminal device can be detected through the mobile sensor, and the moving direction and the moving distance are determined as the position information of the terminal device.
And S144, sending the position information to the positioning application program.
The positioning information of the terminal equipment is determined through the wireless connection information of the terminal equipment, and compared with the power consumption caused by the positioning information acquired through the positioning module, the power consumption of the terminal equipment is lower. The positioning information is determined through the wireless connection information of the terminal equipment, and the position information is sent to the positioning application program, so that the positioning requirement of the positioning application program can be met, and the power consumption of the terminal equipment can be reduced.
Fig. 7 is a block diagram of a positioning control apparatus according to an embodiment of the present application, where the apparatus may execute a positioning control method, and as shown in fig. 7, the apparatus includes:
an operation mode determining module 210, configured to determine an operation mode of a positioning application program when a positioning call request of the positioning application program is received;
an application type determining module 211, configured to determine an application type of the positioning application program when the positioning application program runs in the background;
and a positioning control module 212, configured to determine whether to reject the positioning invocation request according to the application type.
By adopting the technical scheme provided by the embodiment, when the application program runs in the background, whether the positioning calling request of the positioning application program is rejected or not can be determined according to the application type of the positioning application program, so that the positioning module is prevented from being driven to work when the application program runs in the background, and the power consumption of the terminal equipment is reduced.
Optionally, the positioning control module is specifically configured to:
and if the positioning application program does not belong to the target type, rejecting the positioning calling request.
Optionally, the application type determining module is specifically configured to:
determining the application type of the positioning application program according to a preset type table;
optionally, the method further comprises:
the classification module is used for determining the application classification of the application program in the terminal equipment according to the preset attribute classification of the application program before determining the type of the positioning application program, wherein the application classification comprises a target type and a non-target type;
and the establishing module is used for establishing a preset type table according to the application program in the terminal equipment and the corresponding application classification.
Optionally, the method further comprises:
the adjustment instruction receiving module is used for receiving a type adjustment instruction input by a user after a preset type table is established according to the application program and the corresponding application classification;
and the classification changing module is used for changing the application classification of the corresponding application program according to the type adjusting instruction.
Optionally, the target type includes an application program that generates corresponding real-time service information according to the positioning information when the target type runs in the background, and sends the real-time service information to the user.
Optionally, the method further comprises:
a re-detection module for detecting the operation mode of the positioning application program after rejecting the positioning call request;
and the repositioning calling module is used for allowing the repositioning calling request to be sent again when the positioning application program is detected to be switched to the foreground for operation and the repositioning calling request sent again by the positioning application program is received.
Optionally, the method further comprises:
the wireless signal determining module is used for determining the position information of the terminal equipment according to the wireless signal and/or the sensor signal of the terminal equipment after rejecting the positioning calling request;
and the position sending module is used for sending the position information to the positioning application program.
The storage medium containing the computer-executable instructions provided by the embodiments of the present application is not limited to the positioning control operation described above, and may also perform related operations in the positioning control method provided by any embodiments of the present application.
Embodiments of the present application also provide a storage medium containing computer-executable instructions, which when executed by a computer processor, are configured to perform a positioning control method, the method including:
determining the operation mode of a positioning application program when receiving a positioning call request of the positioning application program;
if the positioning application program runs in the background, determining the application type of the positioning application program;
and determining whether to reject the positioning calling request according to the application type.
Storage medium-any of various types of memory devices or storage devices. The term "storage medium" is intended to include: mounting media such as CD-ROM, floppy disk, or tape devices; computer system memory or random access memory such as DRAM, DDR RAM, SRAM, EDO RAM, Lanbas (Rambus) RAM, etc.; non-volatile memory such as flash memory, magnetic media (e.g., hard disk or optical storage); registers or other similar types of memory elements, etc. The storage medium may also include other types of memory or combinations thereof. In addition, the storage medium may be located in a first computer system in which the program is executed, or may be located in a different second computer system connected to the first computer system through a network (such as the internet). The second computer system may provide program instructions to the first computer for execution. The term "storage medium" may include two or more storage media that may reside in different locations, such as in different computer systems that are connected by a network. The storage medium may store program instructions (e.g., embodied as a computer program) that are executable by one or more processors.
The embodiment of the application provides a terminal device, and the positioning control device provided by the embodiment of the application can be integrated in the terminal device.
Fig. 8 is a schematic structural diagram of a terminal device according to an embodiment of the present application, where the terminal device according to the embodiment of the present application includes a memory 31, a processor 32, and a computer program stored in the memory 31 and executable by the processor, and when the processor executes the computer program, the positioning control method according to the above embodiment is implemented. The terminal device provided by the embodiment of the application can determine whether to reject the positioning calling request of the positioning application program according to the application type of the positioning application program when the application program runs in the background, so that the positioning module is prevented from being driven to work when the application program runs in the background, and the power consumption of the terminal device is reduced.
Fig. 9 is a schematic structural diagram of a terminal device according to an embodiment of the present application. As shown in fig. 9, the terminal device may include: a casing (not shown), a touch screen (not shown), touch keys (not shown), a memory 301, a Central Processing Unit (CPU) 302 (also called a processor, hereinafter referred to as CPU), a circuit board (not shown), and a power circuit (not shown). The circuit board is arranged in a space enclosed by the shell; the CPU302 and the memory 301 are disposed on the circuit board; the power supply circuit is used for supplying power to each circuit or device of the terminal equipment; the memory 301 is used for storing executable program codes; the CPU302 executes a computer program corresponding to the executable program code by reading the executable program code stored in the memory 301 to implement the steps of:
determining the operation mode of a positioning application program when receiving a positioning call request of the positioning application program;
if the positioning application program runs in the background, determining the application type of the positioning application program;
and determining whether to reject the positioning calling request according to the application type.
The terminal device further includes: peripheral interface 303, RF (Radio Frequency) circuitry 305, audio circuitry 306, speakers 311, power management chip 308, input/output (I/O) subsystems 309, touch screen 312, other input/control devices 310, and external ports 304, which communicate via one or more communication buses or signal lines 307.
It should be understood that the illustrated terminal device 300 is only one example of a terminal device, and that the terminal device 300 may have more or fewer components than shown in the figures, may combine two or more components, or may have a different configuration of components. The various components shown in the figures may be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and/or application specific integrated circuits.
The following describes in detail the terminal device for implementing positioning control provided in this embodiment, where the terminal device is a mobile phone as an example.
A memory 301, the memory 301 being accessible by a CPU302, a peripheral interface 303, or the like, the memory 301 may include high speed random access memory, and may also include non-volatile memory, such as one or more magnetic disk storage devices, flash memory devices, or other volatile solid state storage devices.
A peripheral interface 303, said peripheral interface 303 being capable of connecting input and output peripherals of the device to the CPU302 and the memory 301.
I/O subsystem 309, the I/O subsystem 309 may connect input and output peripherals on the device, such as touch screen 312 and other input/control devices 310, to the peripheral interface 303. The I/O subsystem 309 may include a display controller 3091 and one or more input controllers 3092 for controlling other input/control devices 310. Where one or more input controllers 3092 receive electrical signals from or send electrical signals to other input/control devices 310, the other input/control devices 310 may include physical buttons (push buttons, rocker buttons, etc.), dials, slide switches, joysticks, click wheels. It is noted that the input controller 3092 may be connected to any of the following: a keyboard, an infrared port, a USB interface, and a pointing device such as a mouse.
A touch screen 312, which touch screen 312 is an input interface and an output interface between the user terminal device and the user, displays visual output to the user, which may include graphics, text, icons, video, and the like.
The display controller 3091 in the I/O subsystem 309 receives electrical signals from the touch screen 312 or transmits electrical signals to the touch screen 312. The touch screen 312 detects a contact on the touch screen, and the display controller 3091 converts the detected contact into an interaction with a user interface object displayed on the touch screen 312, i.e., implements a human-machine interaction, and the user interface object displayed on the touch screen 312 may be an icon for running a game, an icon networked to a corresponding network, or the like. It is worth mentioning that the device may also comprise a light mouse, which is a touch sensitive surface that does not show visual output, or an extension of the touch sensitive surface formed by the touch screen.
The RF circuit 305 is mainly used to establish communication between the mobile phone and the wireless network (i.e., the network side), and implement data reception and transmission between the mobile phone and the wireless network. Such as sending and receiving short messages, e-mails, etc. In particular, the RF circuitry 305 receives and transmits RF signals, also referred to as electromagnetic signals, through which the RF circuitry 305 converts electrical signals to or from electromagnetic signals and communicates with communication networks and other devices. RF circuitry 305 may include known circuitry for performing these functions including, but not limited to, an antenna system, an RF transceiver, one or more amplifiers, a tuner, one or more oscillators, a digital signal processor, a CODEC (CODEC) chipset, a Subscriber Identity Module (SIM), and so forth.
The audio circuit 306 is mainly used to receive audio data from the peripheral interface 303, convert the audio data into an electric signal, and transmit the electric signal to the speaker 311.
And a speaker 311 for converting the voice signal received by the handset from the wireless network through the RF circuit 305 into sound and playing the sound to the user.
And the power management chip 308 is used for supplying power and managing power to the hardware connected with the CPU302, the I/O subsystem, and the peripheral interface.
The terminal device provided by the embodiment of the application can determine whether to reject the positioning calling request of the positioning application program according to the application type of the positioning application program when the application program runs in the background, so that the positioning module is prevented from being driven to work when the application program runs in the background, and the power consumption of the terminal device is reduced.
The positioning control device, the storage medium and the terminal device provided in the above embodiments may execute the positioning control method provided in any embodiment of the present application, and have corresponding functional modules and beneficial effects for executing the method. For technical details that are not described in detail in the above embodiments, reference may be made to a positioning control method provided in any embodiment of the present application.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present application and the technical principles employed. It will be understood by those skilled in the art that the present application is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the application. Therefore, although the present application has been described in more detail with reference to the above embodiments, the present application is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present application, and the scope of the present application is determined by the scope of the appended claims.

Claims (10)

1. A positioning control method, comprising:
determining the operation mode of a positioning application program when receiving a positioning call request of the positioning application program;
if the positioning application program runs in the background, determining the application type of the positioning application program;
determining whether to reject the positioning calling request according to the application type;
after the positioning calling request is rejected, determining the position information of the terminal equipment according to the wireless signal and/or the sensor signal of the terminal equipment;
sending the location information to the location application;
the determining whether to reject the location invocation request according to the application type includes: and if the application type of the positioning application program is that the positioning service information can be pushed only through the screen, rejecting the positioning calling request.
2. The method of claim 1, wherein said determining whether to reject the location invocation request based on the location type, further comprises:
and if the positioning application program does not belong to the target type, rejecting the positioning calling request.
3. The method of claim 1, wherein the determining the type of the positioning application comprises:
and determining the application type of the positioning application program according to a preset type table.
4. The method of claim 3, prior to determining the type of the positioning application, further comprising:
determining an application classification of an application program in terminal equipment according to a preset attribute classification of the application program, wherein the application classification comprises a target type and a non-target type;
and establishing a preset type table according to the application programs in the terminal equipment and the corresponding application classifications.
5. The method of claim 3, wherein after establishing a preset type table based on the application and the corresponding application classification, further comprising:
receiving a type adjusting instruction input by a user;
and changing the application classification of the corresponding application program according to the type adjusting instruction.
6. The method of claim 2 or 4, wherein the target type comprises an application program which generates corresponding real-time service information according to the positioning information when running in the background and sends the real-time service information to the user.
7. The method of any of claims 1 to 5, further comprising:
after rejecting the positioning call request, detecting an operation mode of the positioning application program;
and if the positioning application program is detected to be switched to foreground operation and the positioning calling request retransmitted by the positioning application program is received, allowing the retransmitted positioning calling request.
8. A positioning control device, comprising:
the system comprises an operation mode determining module, a positioning module and a processing module, wherein the operation mode determining module is used for determining the operation mode of a positioning application program when receiving a positioning calling request of the positioning application program;
the application type determining module is used for determining the application type of the positioning application program when the positioning application program runs in a background mode;
the positioning control module is used for determining whether to reject the positioning calling request according to the application type;
the wireless signal determining module is used for determining the position information of the terminal equipment according to the wireless signal and/or the sensor signal of the terminal equipment after rejecting the positioning calling request;
the position sending module is used for sending the position information to the positioning application program;
the positioning control module is also used for refusing the positioning calling request if the application type of the positioning application program is that the positioning service information can be pushed only through the screen.
9. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the positioning control method according to any one of claims 1 to 7.
10. A terminal device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the positioning control method according to any of claims 1-7 when executing the computer program.
CN201711326729.8A 2017-12-13 2017-12-13 Positioning control method and device, storage medium and terminal equipment Active CN108055644B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711326729.8A CN108055644B (en) 2017-12-13 2017-12-13 Positioning control method and device, storage medium and terminal equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711326729.8A CN108055644B (en) 2017-12-13 2017-12-13 Positioning control method and device, storage medium and terminal equipment

Publications (2)

Publication Number Publication Date
CN108055644A CN108055644A (en) 2018-05-18
CN108055644B true CN108055644B (en) 2021-01-15

Family

ID=62132079

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711326729.8A Active CN108055644B (en) 2017-12-13 2017-12-13 Positioning control method and device, storage medium and terminal equipment

Country Status (1)

Country Link
CN (1) CN108055644B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR102416549B1 (en) * 2015-08-12 2022-07-04 삼성전자주식회사 A method for managing an application and an electronic device therefor
CN110456395B (en) * 2019-08-13 2022-03-04 维沃移动通信有限公司 Positioning method and terminal equipment
CN110830658A (en) * 2019-11-29 2020-02-21 捷开通讯(深圳)有限公司 Mobile terminal control method and device, mobile terminal and storage medium
CN111918386B (en) * 2020-07-03 2023-09-29 Oppo广东移动通信有限公司 Positioning method, positioning device, storage medium and electronic equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2011028785A2 (en) * 2009-09-01 2011-03-10 Elliot Klein Geographical location authentication method for mobile voting
CN102480680A (en) * 2010-11-30 2012-05-30 上海晨兴希姆通电子科技有限公司 Functional module, mobile terminal and system integrating 3G (The 3rd Generation), GPS (Global Positioning System) and RFID (Radio Frequency Identification) as well as communication method of system
CN103444163A (en) * 2011-02-05 2013-12-11 苹果公司 Method and apparatus for mobile location determination
CN104024884A (en) * 2011-12-20 2014-09-03 皇家飞利浦有限公司 A method of controlling a device and a device implementing the same
CN106416396A (en) * 2014-05-16 2017-02-15 谷歌公司 Running location provider processes

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9046370B2 (en) * 2013-03-06 2015-06-02 Qualcomm Incorporated Methods for providing a navigation route based on network availability and device attributes
US9473883B2 (en) * 2014-05-31 2016-10-18 Apple Inc. Location service authorization and indication
CN105933521A (en) * 2016-04-22 2016-09-07 广东小天才科技有限公司 Mobile terminal positioning mode selection method and device
CN106872996B (en) * 2017-01-23 2020-02-14 北京安云世纪科技有限公司 Method and device for optimizing performance of positioning system and mobile terminal
CN107423618B (en) * 2017-07-12 2021-08-10 惠州Tcl移动通信有限公司 Application program satellite positioning request control method, storage device and mobile terminal

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2011028785A2 (en) * 2009-09-01 2011-03-10 Elliot Klein Geographical location authentication method for mobile voting
CN102480680A (en) * 2010-11-30 2012-05-30 上海晨兴希姆通电子科技有限公司 Functional module, mobile terminal and system integrating 3G (The 3rd Generation), GPS (Global Positioning System) and RFID (Radio Frequency Identification) as well as communication method of system
CN103444163A (en) * 2011-02-05 2013-12-11 苹果公司 Method and apparatus for mobile location determination
CN104024884A (en) * 2011-12-20 2014-09-03 皇家飞利浦有限公司 A method of controlling a device and a device implementing the same
CN106416396A (en) * 2014-05-16 2017-02-15 谷歌公司 Running location provider processes

Also Published As

Publication number Publication date
CN108055644A (en) 2018-05-18

Similar Documents

Publication Publication Date Title
CN109891934B (en) Positioning method and device
CN108055644B (en) Positioning control method and device, storage medium and terminal equipment
CN108111971B (en) Positioning method, positioning device, storage medium and mobile terminal
US11526274B2 (en) Touch control method and apparatus
CN107688638B (en) Recommendation method and device for application list, storage medium and mobile terminal
CN108055642B (en) Control method and device of positioning module, storage medium and mobile terminal
CN108702602B (en) Image sharing method, electronic device and system
US11496855B2 (en) Electronic device and geofence management method thereof
CN108076507B (en) Positioning mode control method and device, storage medium and mobile terminal
CN108012237B (en) Positioning control method and device, storage medium and terminal equipment
CN106911956B (en) Audio data playing method and device and mobile terminal
US11129124B2 (en) Electronic device, server device, and method for determining location of electronic device
CN108681474B (en) Application preloading method and device, storage medium and terminal
CN108024209B (en) Positioning control method and device, storage medium and terminal equipment
CN108055635B (en) Position information acquisition method and device, storage medium and terminal
WO2022089310A1 (en) Satellite finding method and device
WO2019196837A1 (en) Terminal detection method and terminal
CN108093362B (en) Control method and device of positioning module, storage medium and terminal
CN112040396A (en) Positioning method and device and computer storage medium
CN108112061B (en) Positioning control method and device, storage medium and terminal equipment
CN112788176A (en) Earphone volume adjusting method and device, storage medium and electronic equipment
CN108093367B (en) Control method and device based on positioning module, storage medium and mobile terminal
CN108093373B (en) Positioning control method and device, storage medium and terminal equipment
KR20150025930A (en) Method And System For Audio Channel Setting
CN108040320B (en) GNSS positioning control method and device, storage medium and mobile terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant