CN110493712B - Positioning method and mobile terminal - Google Patents

Positioning method and mobile terminal Download PDF

Info

Publication number
CN110493712B
CN110493712B CN201910708533.8A CN201910708533A CN110493712B CN 110493712 B CN110493712 B CN 110493712B CN 201910708533 A CN201910708533 A CN 201910708533A CN 110493712 B CN110493712 B CN 110493712B
Authority
CN
China
Prior art keywords
module
mobile terminal
mac address
positioning
position information
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
CN201910708533.8A
Other languages
Chinese (zh)
Other versions
CN110493712A (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.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication 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 Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201910708533.8A priority Critical patent/CN110493712B/en
Publication of CN110493712A publication Critical patent/CN110493712A/en
Application granted granted Critical
Publication of CN110493712B publication Critical patent/CN110493712B/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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W64/00Locating users or terminals or network equipment for network management purposes, e.g. mobility management
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L2101/00Indexing scheme associated with group H04L61/00
    • H04L2101/60Types of network addresses
    • H04L2101/618Details of network addresses
    • H04L2101/622Layer-2 addresses, e.g. medium access control [MAC] addresses

Abstract

The embodiment of the invention discloses a positioning method and a mobile terminal, wherein the method comprises the following steps: under the condition that a WIFI module is started based on an auxiliary positioning instruction, a transmitting unit of the WIFI module is closed or the transmitting power of the transmitting unit is adjusted to a preset value; calling the WIFI module to acquire the MAC address reported by at least one AP; calling a preset module to determine first position information corresponding to each MAC address, wherein the power consumption of the preset module is lower than that of the transmitting unit; and positioning the mobile terminal according to the first position information. The positioning method disclosed by the embodiment of the invention can save the electric quantity of the mobile terminal and prolong the endurance time.

Description

Positioning method and mobile terminal
Technical Field
The embodiment of the invention relates to the technical field of mobile terminals, in particular to a positioning method and a mobile terminal.
Background
With the progress and development of society, mobile terminals have become indispensable communication tools in people's lives, and mobile terminals can provide services such as conversation, video browsing, image shooting and positioning for users. The mobile terminal is usually located by a GPS (Global Positioning System).
In order to improve the accuracy of a positioning result, the mobile terminal completes positioning by combining a GPS (global positioning system) module and a WIFI (Wireless Fidelity) module during positioning, and the WIFI module mainly plays a role in auxiliary positioning. When the WIFI module is used for assisting positioning, the WIFI module searches for nearby APs (Access points) to perform multiple handshaking with the APs to acquire hotspot information of the APs, and queries according to the hotspot information of the APs to acquire preliminary position information. Although the accuracy of a positioning result can be improved by the aid of the conventional WIFI module auxiliary positioning mode, the power consumption of the WIFI module is large, so that the endurance time of the mobile terminal is shortened.
Disclosure of Invention
The embodiment of the invention provides a positioning method, which aims to solve the problem of high power consumption caused by auxiliary positioning through a WIFI module in the prior art.
In order to solve the technical problem, the invention is realized as follows:
in a first aspect, an embodiment of the present invention provides a positioning method applied to a mobile terminal, where the method includes: under the condition that a WIFI wireless fidelity module is started based on an auxiliary positioning instruction, a transmitting unit of the WIFI module is closed or the transmitting power of the transmitting unit is adjusted to a preset value;
calling the WIFI module to acquire an MAC media access control address reported by at least one AP access point; calling a preset module to determine first position information corresponding to each MAC address, wherein the power consumption of the preset module is lower than that of the transmitting unit; and positioning the mobile terminal according to the first position information.
In a second aspect, an embodiment of the present invention provides a mobile terminal, where the mobile terminal includes: including WIFI module, preset module and treater, the treater includes: the adjusting module is used for closing a transmitting unit of the WIFI module or reducing the transmitting power of the transmitting unit to a preset value under the condition that the WIFI module is started based on the auxiliary positioning instruction; the first calling module is used for calling the WIFI module to acquire the MAC address reported by at least one AP; the second calling module is used for calling a preset module to determine first position information corresponding to each MAC address, wherein the power consumption of the preset module is lower than that of the transmitting unit; and the positioning module is used for positioning the mobile terminal according to the first position information.
In a third aspect, an embodiment of the present invention provides a mobile terminal, which includes a processor, a memory, and a computer program stored in the memory and executable on the processor, where the computer program, when executed by the processor, implements the steps of any one of the positioning methods described in the embodiments of the present invention.
In a fourth aspect, the present invention provides a computer-readable storage medium, where the computer-readable storage medium stores thereon a computer program, and the computer program, when executed by a processor, implements the steps of any one of the positioning methods described in the embodiments of the present invention.
In the embodiment of the invention, under the condition that the WIFI module is started based on the auxiliary positioning instruction, a transmitting unit of the WIFI module is closed or the transmitting power of the transmitting unit is reduced to a preset value; calling a WIFI module to obtain an MAC address reported by at least one AP; calling a preset module to determine first position information corresponding to each MAC address, wherein the power consumption of the preset module is lower than that of a transmitting unit; according to the first position information, the mobile terminal is positioned, and compared with a scheme that the MAC address of the AP and the first position information corresponding to the MAC address are acquired by the WIFI module, the total electric quantity consumed in the positioning process can be reduced, and the duration of the mobile terminal is prolonged.
The foregoing description is only an overview of the technical solutions of the present invention, and the embodiments of the present invention are described below in order to make the technical means of the present invention more clearly understood and to make the above and other objects, features, and advantages of the present invention more clearly understandable.
Drawings
Various advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the invention. Also, like reference numerals are used to refer to like parts throughout the drawings. In the drawings:
fig. 1 is a flowchart illustrating steps of a positioning method according to a first embodiment of the present invention;
fig. 2 is a flowchart illustrating steps of a positioning method according to a second embodiment of the present invention;
fig. 3 is a block diagram of a mobile terminal according to a third embodiment of the present invention;
fig. 4 is a schematic diagram of a hardware structure of a mobile terminal according to a fourth embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Example one
Referring to fig. 1, a flowchart illustrating steps of a positioning method according to a first embodiment of the present invention is shown.
The positioning method of the embodiment of the invention comprises the following steps:
step 101: and under the condition that the WIFI module is started based on the auxiliary positioning instruction, closing a transmitting unit of the WIFI module or reducing the transmitting power of the transmitting unit to a preset value.
The WIFI module can be started in various ways, such as manually starting the WIFI module, opening the WIFI module by an APP (Application), and the like, which belong to WIFI independent use scenes, wherein a transmitting unit and a receiving unit of the WIFI module work normally in the scene; after a positioning module of the mobile terminal is opened for positioning, when an auxiliary positioning function of the WIFI module is started, the scene belongs to a working scene of the WIFI auxiliary positioning module, and at the moment, the method disclosed by the embodiment of the invention is executed to control the transmitting power of a transmitting unit of the WIFI module or close the transmitting unit.
The positioning method is applied to the mobile terminal, the mobile terminal comprises the WIFI module and the processor, and the processor controls the WIFI module to be turned on or turned off. The WIFI module comprises a transmitting unit and a receiving unit. In the embodiment of the invention, the receiving unit of the WIFI module is controlled to work according to the normal receiving power, the transmitting unit of the WIFI module is turned off or the transmitting power of the WIFI module is reduced to the preset value, so that the power consumption of the transmitting unit of the WIFI module can be effectively saved, and the overall power consumption of the WIFI module is reduced.
The preset value can be set by a person skilled in the art according to actual needs, and is preferably set to be 0, so that power consumption of the transmitting unit of the WIFI module can be saved to the greatest extent.
Step 102: and calling the WIFI module to acquire the MAC address reported by at least one AP.
Since the receiving unit of the WIFI module normally operates, the WIFI module can obtain a Media Access Control (MAC) address reported by the AP.
The MAC address is also called a hardware address, has a length of 48 bits, is composed of 16-ary digits, and is divided into first 24 bits and second 24 bits, the first 24 bits are called OUI (organization Unique Identifier), and are codes assigned to different manufacturers by a registration management organization of IEEE, thereby distinguishing different manufacturers. The last 24 bits are called extension identifiers distributed by manufacturers, the last 24 bits of the MAC address in the network card produced by the same manufacturer are different, and the MAC address has global uniqueness.
Once the router acquires the MAC address of the AP, the router may lock a specific AP router due to the uniqueness of the MAC address, where each AP router corresponds to a first location.
Step 103: and calling a preset module to determine first position information corresponding to each MAC address.
The power consumption of the preset module is lower than that of the transmitting unit of the WIFI module, so that compared with the prior art in which the first position information corresponding to each MAC address is determined by the transmitting unit of the WIFI module, the power consumption of the mobile terminal can be saved.
Step 104: and positioning the mobile terminal according to the first position information.
In a specific implementation process, the target position of the mobile terminal can be determined only according to the first position information to complete positioning; the first position information can also be used as auxiliary positioning information, and the auxiliary positioning information is integrated with positioning information acquired by a positioning module in the mobile terminal to determine the target position of the mobile terminal to complete positioning.
According to the positioning method provided by the embodiment of the invention, under the condition that the WIFI wireless fidelity module is started based on the auxiliary positioning instruction, the transmitting unit of the WIFI module is closed or the transmitting power of the transmitting unit is reduced to a preset value; calling a WIFI module to obtain an MAC media access control address reported by at least one AP access point; calling a preset module to determine first position information corresponding to each MAC address, wherein the power consumption of the preset module is lower than that of a transmitting unit; according to the first position information, the mobile terminal is positioned, and compared with a method that the MAC address of the AP and the first position information corresponding to the MAC address are acquired by the WIFI module, the total electric quantity consumed in the positioning process can be reduced, and the duration of the mobile terminal is prolonged.
Example two
Referring to fig. 2, a flowchart illustrating steps of a positioning method according to a second embodiment of the present invention is shown.
The positioning method of the embodiment of the invention comprises the following steps:
step 201: and under the condition that the WIFI module is started based on the auxiliary positioning instruction, closing a transmitting unit of the WIFI module or reducing the transmitting power of the transmitting unit to a preset value.
The positioning method disclosed by the embodiment of the invention is suitable for a scene that a WIFI module assists a positioning module in a mobile terminal to position the mobile terminal, wherein the positioning module can be a GPS. Through experimental statistics, the power consumption of the GPS during independent work is only 20.88mW, and the power consumption of the WIFI module during normal work is 446.4mW, namely, the power consumption of the mobile terminal is greatly consumed when the WIFI module is used for receiving and transmitting auxiliary positioning related data. In order to save the power consumption of the mobile terminal, when the positioning method disclosed by the embodiment of the invention is adopted and the WIFI module assists the positioning system to perform positioning, the WIFI module only receives the MAC address reported by each AP.
Step 202: and calling the WIFI module to acquire the MAC address reported by at least one AP.
According to the positioning method provided by the embodiment of the invention, the mobile terminal and the AP can acquire the MAC address of the AP only through one-time handshake, the information is received only through the receiving unit of the WIFI module when the MAC address of the AP is acquired, and the first position information corresponding to each MAC address is inquired through other low-power consumption preset modules on the mobile terminal without using the transmitting unit of the WIFI module. The low power consumption preset module may include, but is not limited to: a bluetooth module and an LTE (Long Term Evolution) module.
Step 203: and calling the Bluetooth module to send each MAC address to the target terminal.
The target terminal is a terminal which is connected with the mobile terminal through Bluetooth.
Because the Bluetooth connection is established between the target terminal and the mobile terminal, the Bluetooth module of the mobile terminal can transmit each MAC address to the target terminal through Bluetooth, and the target terminal determines first position information corresponding to each MAC address.
It should be noted that the target terminal may establish a data connection relationship with the mobile terminal through other connection methods such as infrared or ultrasonic wave, in addition to the data connection relationship with the mobile terminal through bluetooth, which is not specifically limited in this embodiment.
Because the target terminal determines the first position information corresponding to each MAC address, the power consumption of the mobile terminal for determining the first position information corresponding to each MAC address can be saved.
Step 204: and receiving first position information corresponding to each MAC address returned by the target terminal through a Bluetooth module.
And after the target terminal determines the first position information corresponding to each MAC address, the target terminal sends the determined first position information to the mobile terminal through the Bluetooth connection between the target terminal and the mobile terminal.
Steps 203 to 204 are manners of determining the first location information corresponding to each MAC address through a bluetooth module disposed in the mobile terminal, which is not limited to this in the specific implementation process, and may also call an LTE module disposed in the mobile terminal to determine the first location information corresponding to the MAC address.
Step 205: and determining the target position of the mobile terminal according to the first position information and the second position information acquired by the positioning module.
The positioning module can be a GPS in the mobile terminal, and each first position information is auxiliary positioning information of the WIFI module.
According to the auxiliary positioning information of the WIFI module and the specific mode that the positioning module acquires the positioning information to determine the target position information of the mobile terminal, the method and the device for determining the target position information of the mobile terminal can refer to related technologies, and the embodiment of the invention is not particularly limited.
According to the positioning method provided by the embodiment of the invention, under the condition that the WIFI module is started based on the auxiliary positioning instruction, the transmitting unit of the WIFI module is closed or the transmitting power of the transmitting unit is reduced to a preset value; calling a WIFI module to obtain an MAC address reported by at least one AP; and the Bluetooth module is called to send each determined MAC address to the target terminal, the target terminal determines first position information corresponding to each MAC address and then returns the first position information to the mobile terminal, and compared with a method that the MAC address of the AP and the first position information corresponding to the MAC address are both obtained by a WIFI module arranged in the mobile terminal, the total electric quantity consumed in the positioning process can be reduced, the electric quantity of the mobile terminal is saved, and the duration of the mobile terminal is prolonged.
EXAMPLE III
Referring to fig. 3, a block diagram of a mobile terminal according to a third embodiment of the present invention is shown.
The mobile terminal of the embodiment of the invention comprises: WIFI module 301, preset module 302 and processor 303, processor 303 includes: an adjusting module 3031, configured to, when a WIFI module is turned on based on an auxiliary positioning instruction, turn off a transmitting unit of the WIFI module or adjust a transmitting power of the transmitting unit to a preset value; a first calling module 3032, configured to call the WIFI module to obtain an MAC address reported by at least one AP; a second calling module 3033, configured to call a preset module to determine first location information corresponding to each MAC address, where power consumption of the preset module is lower than power consumption of the transmitting unit; a positioning module 3034, configured to position the mobile terminal according to each piece of the first location information.
Preferably, the positioning module 3034 is specifically configured to: and determining the target position of the mobile terminal according to the first position information and the second position information acquired by the positioning module.
Preferably, the second invoking module 3033 includes: the sending submodule is used for calling a Bluetooth module to send each MAC address to a target terminal, wherein the target terminal is a terminal which is connected with the mobile terminal through Bluetooth; and the receiving submodule is used for receiving the first position information corresponding to each MAC address returned by the target terminal through the Bluetooth module.
Preferably, the second invoking module 3033 is specifically configured to: and calling an LTE module to determine first position information corresponding to the MAC address.
The mobile terminal provided in the embodiment of the present invention can implement each process implemented by the mobile terminal in the method embodiments of fig. 1 to fig. 2, and is not described herein again to avoid repetition.
According to the mobile terminal provided by the embodiment of the invention, under the condition that the WIFI module is started based on the auxiliary positioning instruction, the transmitting unit of the WIFI module is closed or the transmitting power of the transmitting unit is reduced to a preset value; calling a WIFI module to obtain an MAC address reported by at least one AP; calling a preset module to determine first position information corresponding to each MAC address; according to the first position information, the mobile terminal is positioned, and compared with a scheme that the MAC address of the AP and the first position information corresponding to the MAC address are acquired by the WIFI module, the total electric quantity consumed in the positioning process can be reduced, and the duration of the mobile terminal is prolonged.
Example four
Referring to fig. 4, a block diagram of a mobile terminal according to a fourth embodiment of the present invention is shown.
Fig. 4 is a schematic diagram of a hardware structure of a mobile terminal for implementing various embodiments of the present invention, where the mobile terminal 400 includes, but is not limited to: radio frequency unit 401, network module 402, audio output unit 403, input unit 404, sensor 405, display unit 406, user input unit 407, interface unit 408, memory 409, processor 410, and power supply 411. Those skilled in the art will appreciate that the mobile terminal architecture shown in fig. 4 is not intended to be limiting of mobile terminals, and that a mobile terminal may include more or fewer components than shown, or some components may be combined, or a different arrangement of components. In the embodiment of the present invention, the mobile terminal includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal, a wearable device, a pedometer, and the like.
The processor 410 is configured to, when a WIFI module is turned on based on an auxiliary positioning instruction, turn off a transmitting unit of the WIFI module or adjust a transmitting power of the transmitting unit to a preset value; calling the WIFI module to acquire the MAC address reported by at least one AP; calling a preset module to determine first position information corresponding to each MAC address, wherein the power consumption of the preset module is lower than that of the transmitting unit; and positioning the mobile terminal according to the first position information.
According to the mobile terminal provided by the embodiment of the invention, under the condition that the WIFI module is started based on the auxiliary positioning instruction, the transmitting unit of the WIFI module is closed or the transmitting power of the transmitting unit is reduced to a preset value; calling a WIFI module to obtain an MAC address reported by at least one AP; and calling the Bluetooth module to send each determined MAC address to the target terminal, determining first position information corresponding to each MAC address by the target terminal, and returning the first position information to the mobile terminal.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 401 may be used for receiving and sending signals during a message sending and receiving process or a call process, and specifically, receives downlink data from a base station and then processes the received downlink data to the processor 410; in addition, the uplink data is transmitted to the base station. Typically, radio unit 401 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. Further, the radio unit 401 can also communicate with a network and other devices through a wireless communication system.
The mobile terminal provides the user with wireless broadband internet access through the network module 402, such as helping the user send and receive e-mails, browse web pages, and access streaming media.
The audio output unit 403 may convert audio data received by the radio frequency unit 401 or the network module 402 or stored in the memory 409 into an audio signal and output as sound. Also, the audio output unit 403 may also provide audio output related to a specific function performed by the mobile terminal 400 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 403 includes a speaker, a buzzer, a receiver, and the like.
The input unit 404 is used to receive audio or video signals. The input Unit 404 may include a Graphics Processing Unit (GPU) 4041 and a microphone 4042, and the Graphics processor 4041 processes image data of a still picture or video obtained by an image capturing apparatus (such as a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 406. The image frames processed by the graphic processor 4041 may be stored in the memory 409 (or other storage medium) or transmitted via the radio frequency unit 401 or the network module 402. The microphone 4042 may receive sound, and may be capable of processing such sound into audio data. The processed audio data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 401 in case of the phone call mode.
The mobile terminal 400 also includes at least one sensor 405, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that can adjust the brightness of the display panel 4061 according to the brightness of ambient light, and a proximity sensor that can turn off the display panel 4061 and/or the backlight when the mobile terminal 400 is moved to the ear. Display panel 401 is the flexible display screen, and the flexible display screen is including the screen base, liftable module array and the flexible screen that superpose the setting in proper order. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of the mobile terminal (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), and vibration identification related functions (such as pedometer, tapping); the sensors 405 may also include a fingerprint sensor, a pressure sensor, an iris sensor, a molecular sensor, a gyroscope, a barometer, a hygrometer, a thermometer, an infrared sensor, etc., which will not be described in detail herein.
The display unit 406 is used to display information input by the user or information provided to the user. The Display unit 406 may include a Display panel 4061, and the Display panel 4061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 407 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the mobile terminal. Specifically, the user input unit 407 includes a touch panel 4071 and other input devices 4072. Touch panel 4071, also referred to as a touch screen, may collect touch operations by a user on or near it (e.g., operations by a user on or near touch panel 4071 using a finger, a stylus, or any suitable object or attachment). The touch panel 4071 may include two parts, a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 410, receives a command from the processor 410, and executes the command. In addition, the touch panel 4071 can be implemented by using various types such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to the touch panel 4071, the user input unit 407 may include other input devices 4072. Specifically, the other input devices 4072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a track ball, a mouse, and a joystick, which are not described herein again.
Further, the touch panel 4071 can be overlaid on the display panel 4061, and when the touch panel 4071 detects a touch operation thereon or nearby, the touch operation is transmitted to the processor 410 to determine the type of the touch event, and then the processor 410 provides a corresponding visual output on the display panel 4061 according to the type of the touch event. Although in fig. 4, the touch panel 4071 and the display panel 4061 are two separate components to implement the input and output functions of the mobile terminal, in some embodiments, the touch panel 4071 and the display panel 4061 may be integrated to implement the input and output functions of the mobile terminal, which is not limited herein.
The interface unit 408 is an interface through which an external device is connected to the mobile terminal 400. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 408 may be used to receive input (e.g., data information, power, etc.) from external devices and transmit the received input to one or more elements within the mobile terminal 400 or may be used to transmit data between the mobile terminal 400 and external devices.
The memory 409 may be used to store software programs as well as various data. The memory 409 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 409 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The processor 410 is a control center of the mobile terminal, connects various parts of the entire mobile terminal using various interfaces and lines, and performs various functions of the mobile terminal and processes data by operating or executing software programs and/or modules stored in the memory 409 and calling data stored in the memory 409, thereby integrally monitoring the mobile terminal. Processor 410 may include one or more processing units; preferably, the processor 410 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 410.
The mobile terminal 400 may further include a power supply 411 (e.g., a battery) for supplying power to various components, and preferably, the power supply 411 may be logically connected to the processor 410 through a power management system, so as to implement functions of managing charging, discharging, and power consumption through the power management system.
In addition, the mobile terminal 400 includes some functional modules that are not shown, and thus, are not described in detail herein.
Preferably, an embodiment of the present invention further provides a mobile terminal, which includes a processor 410, a memory 409, and a computer program that is stored in the memory 409 and can be run on the processor 410, and when being executed by the processor 410, the computer program implements each process of the foregoing positioning method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not described here again.
The embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements each process of the foregoing positioning method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here. The computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (10)

1. A positioning method is applied to a mobile terminal, and is characterized in that the method comprises the following steps:
under the condition that the WIFI wireless fidelity module is started based on the auxiliary positioning instruction, the transmitting power of the transmitting unit is reduced to a preset value;
calling the WIFI module to acquire an MAC media access control address reported by at least one AP access point;
calling a preset module to determine first position information corresponding to each MAC address, wherein the power consumption of the preset module is lower than that of the transmitting unit;
and positioning the mobile terminal according to the first position information.
2. The method according to claim 1, wherein said step of positioning said mobile terminal according to each of said first location information comprises:
and determining the target position of the mobile terminal according to the first position information and the second position information acquired by the positioning module.
3. The method according to claim 1, wherein the step of calling the default module to determine the first location information corresponding to each MAC address comprises:
calling a Bluetooth module to send each MAC address to a target terminal, wherein the target terminal is a terminal which establishes Bluetooth connection with the mobile terminal;
and receiving first position information corresponding to each MAC address returned by the target terminal through the Bluetooth module.
4. The method according to claim 1, wherein the step of calling the default module to determine the first location information corresponding to each MAC address comprises:
and calling an LTE long-term evolution module to determine first position information corresponding to the MAC address.
5. The utility model provides a mobile terminal, its characterized in that, mobile terminal includes the WIFI module, predetermines module and treater, the treater includes:
the adjusting module is used for adjusting the transmitting power of the transmitting unit to a preset value under the condition that the WIF module is started based on the auxiliary positioning instruction;
the first calling module is used for calling the WIFI module to acquire the MAC address reported by at least one AP;
the second calling module is used for calling a preset module to determine first position information corresponding to each MAC address, wherein the power consumption of the preset module is lower than that of the transmitting unit;
and the positioning module is used for positioning the mobile terminal according to the first position information.
6. The mobile terminal of claim 5, wherein the positioning module is specifically configured to:
and determining the target position of the mobile terminal according to the first position information and the second position information acquired by the positioning module.
7. The mobile terminal of claim 5, wherein the second invoking module comprises:
the sending submodule is used for calling a Bluetooth module to send each MAC address to a target terminal, wherein the target terminal is a terminal which is connected with the mobile terminal through Bluetooth;
and the receiving submodule is used for receiving the first position information corresponding to each MAC address returned by the target terminal through the Bluetooth module.
8. The mobile terminal of claim 5, wherein the second invoking module is specifically configured to:
and calling an LTE module to determine first position information corresponding to the MAC address.
9. A mobile terminal, characterized in that it comprises a processor, a memory and a computer program stored on the memory and executable on the processor, which computer program, when executed by the processor, carries out the steps of the positioning method according to any one of claims 1 to 4.
10. A computer-readable storage medium, characterized in that a computer program is stored on the computer-readable storage medium, which computer program, when being executed by a processor, carries out the steps of the positioning method according to any one of claims 1-4.
CN201910708533.8A 2019-08-01 2019-08-01 Positioning method and mobile terminal Active CN110493712B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910708533.8A CN110493712B (en) 2019-08-01 2019-08-01 Positioning method and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910708533.8A CN110493712B (en) 2019-08-01 2019-08-01 Positioning method and mobile terminal

Publications (2)

Publication Number Publication Date
CN110493712A CN110493712A (en) 2019-11-22
CN110493712B true CN110493712B (en) 2020-11-13

Family

ID=68549243

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910708533.8A Active CN110493712B (en) 2019-08-01 2019-08-01 Positioning method and mobile terminal

Country Status (1)

Country Link
CN (1) CN110493712B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7194273B2 (en) * 2004-02-12 2007-03-20 Lucent Technologies Inc. Location based service restrictions for mobile applications
CN103269517A (en) * 2013-05-07 2013-08-28 无锡昶达信息技术有限公司 Positioning system based on CC2530 technology and ZigBee technology and achieving method thereof
CN104822133A (en) * 2015-04-22 2015-08-05 广东欧珀移动通信有限公司 Method and device for controlling positioning mode of intelligent terminal
CN104994468A (en) * 2015-06-04 2015-10-21 上海斐讯数据通信技术有限公司 Positioning method and electric device
CN106332245A (en) * 2016-06-17 2017-01-11 深圳优美创新科技有限公司 Positioning device based on known network environment and power saving method thereof
CN107949053A (en) * 2017-10-10 2018-04-20 深圳数位传媒科技有限公司 Localization method, terminal and computer-readable recording medium
CN108810236A (en) * 2017-04-27 2018-11-13 深圳市汇丰源通科技有限公司 A kind of adjustable locating cellphone of stand-by time and its localization method

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7610027B2 (en) * 2002-06-05 2009-10-27 Meshnetworks, Inc. Method and apparatus to maintain specification absorption rate at a wireless node
CN102184622A (en) * 2011-01-24 2011-09-14 武汉奋进电力技术有限公司 System for monitoring grounding wire state in substation
CN108169778A (en) * 2017-12-13 2018-06-15 广东欧珀移动通信有限公司 Control method, device, storage medium, vehicle and the mobile terminal of positioning function

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7194273B2 (en) * 2004-02-12 2007-03-20 Lucent Technologies Inc. Location based service restrictions for mobile applications
CN103269517A (en) * 2013-05-07 2013-08-28 无锡昶达信息技术有限公司 Positioning system based on CC2530 technology and ZigBee technology and achieving method thereof
CN104822133A (en) * 2015-04-22 2015-08-05 广东欧珀移动通信有限公司 Method and device for controlling positioning mode of intelligent terminal
CN104994468A (en) * 2015-06-04 2015-10-21 上海斐讯数据通信技术有限公司 Positioning method and electric device
CN106332245A (en) * 2016-06-17 2017-01-11 深圳优美创新科技有限公司 Positioning device based on known network environment and power saving method thereof
CN108810236A (en) * 2017-04-27 2018-11-13 深圳市汇丰源通科技有限公司 A kind of adjustable locating cellphone of stand-by time and its localization method
CN107949053A (en) * 2017-10-10 2018-04-20 深圳数位传媒科技有限公司 Localization method, terminal and computer-readable recording medium

Also Published As

Publication number Publication date
CN110493712A (en) 2019-11-22

Similar Documents

Publication Publication Date Title
CN109905907B (en) Network searching method and mobile terminal
CN109144441B (en) Screen adjusting method, terminal and computer readable storage medium
CN110266323B (en) Signal control circuit, terminal equipment and signal control method
CN108322599B (en) Network access method and mobile terminal
CN109521684B (en) Household equipment control method and terminal equipment
CN110855313B (en) Signal control method and electronic equipment
CN110750189B (en) Icon display method and device
CN109343788B (en) Operation control method of mobile terminal and mobile terminal
CN108495349B (en) Switching method of operator network and mobile terminal
CN108984066B (en) Application icon display method and mobile terminal
CN111143002A (en) Application sharing method, electronic equipment and computer readable storage medium
CN113973326A (en) Wireless capability identifier transmission method, terminal equipment and network node
CN110099434B (en) Power adjustment method, terminal equipment and computer readable storage medium
CN108924911B (en) Method and device for starting wifi hotspot sharing network
CN109002245B (en) Application interface operation method and mobile terminal
CN108419283B (en) WIFI hotspot scanning method and mobile terminal
CN107729100B (en) Interface display control method and mobile terminal
CN111475066B (en) Background switching method of application program and electronic equipment
CN111131930B (en) Device resource control method, first electronic device, and computer-readable storage medium
CN109947617B (en) Method, terminal and readable storage medium for monitoring display content of application interface
CN109450508B (en) Antenna determination method and device and mobile terminal
CN109561221B (en) Call control method, device and computer readable storage medium
CN109089258B (en) eSIM card operation method, mobile terminal and eSIM card device
CN109257739B (en) eSIM card operation method, mobile terminal and eSIM card device
CN111246528A (en) Network switching method and electronic equipment

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
GR01 Patent grant
GR01 Patent grant