WO2018103443A1 - 一种网络定位方法及终端设备 - Google Patents

一种网络定位方法及终端设备 Download PDF

Info

Publication number
WO2018103443A1
WO2018103443A1 PCT/CN2017/105149 CN2017105149W WO2018103443A1 WO 2018103443 A1 WO2018103443 A1 WO 2018103443A1 CN 2017105149 W CN2017105149 W CN 2017105149W WO 2018103443 A1 WO2018103443 A1 WO 2018103443A1
Authority
WO
WIPO (PCT)
Prior art keywords
terminal device
wifis
information
wifi
positioning
Prior art date
Application number
PCT/CN2017/105149
Other languages
English (en)
French (fr)
Inventor
蒋世民
Original Assignee
广东欧珀移动通信有限公司
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 广东欧珀移动通信有限公司 filed Critical 广东欧珀移动通信有限公司
Publication of WO2018103443A1 publication Critical patent/WO2018103443A1/zh

Links

Images

Classifications

    • 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
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W84/00Network topologies
    • H04W84/02Hierarchically pre-organised networks, e.g. paging networks, cellular networks, WLAN [Wireless Local Area Network] or WLL [Wireless Local Loop]
    • H04W84/10Small scale networks; Flat hierarchical networks
    • H04W84/12WLAN [Wireless Local Area Networks]

Definitions

  • the present invention relates to the field of electronic technologies, and in particular, to a network positioning method and a terminal device.
  • the positioning switch when the positioning switch is turned off, the user needs to open the positioning switch first, then turn on the positioning service, and then start the Wifi module to scan the Wifi to obtain the Wifi information, and then send the Wifi information to the server, and then the server.
  • the location is determined based on the Wifi information. It can be seen that the entire positioning process requires a certain time. Therefore, how to speed up the time required for positioning is a technical problem to be solved in the field.
  • the embodiment of the invention provides a network positioning method and a terminal device, so as to shorten the time required for positioning.
  • an embodiment of the present invention provides a network positioning method, including:
  • the positioning function is activated
  • the location server And sending, by the location server, a positioning instruction, where the positioning instruction carries the information of the N Wifis, where the positioning instruction is used to instruct the location server to determine, according to the information of the N Wifis, The current geographic location of the terminal device;
  • the second aspect of the present invention provides a terminal device, including:
  • a scanning module configured to scan N Wifis around the terminal device to obtain information about the N Wifis when the location switch is detected to be open, where the N is an integer greater than one;
  • a startup module configured to start a positioning function during scanning of the N Wifis
  • a sending module configured to send, by the location server, a positioning instruction, where the positioning instruction carries the information of the N Wifis, where the positioning instruction is used to indicate that the location server is configured according to the N
  • the information of the Wifi determines the current geographic location of the terminal device
  • a receiving module configured to receive a current geographic location of the terminal device returned by the location server for the positioning instruction.
  • an embodiment of the present invention provides a terminal device, including:
  • a processor coupled to the memory
  • the processor invokes the executable program code stored in the memory to perform some or all of the steps as described in the first aspect of the embodiments of the present invention.
  • the present invention provides a computer storage medium for storing computer software instructions for a terminal device provided by the first aspect of the embodiments of the present invention, comprising a program designed to perform the above aspects.
  • an embodiment of the present invention provides a computer program product, wherein the computer program product comprises a non-transitory computer readable storage medium storing a computer program, the computer program being operative to cause a computer to perform the implementation of the present invention.
  • the computer program product can be a software installation package, and the computer includes the terminal device.
  • the solution provided by the present invention does not need to scan the Wifi after starting the positioning function, but directly scans the Wifi when detecting that the positioning switch is turned on, and then in the process of Wifi scanning. In the middle, the positioning function is started, and finally, after the Wifi scanning is finished, the obtained Wifi information is sent to the location server, and the location server determines the geographical location based on the information, and then returns the geographical location to the terminal device, thereby shortening the time required for positioning. .
  • FIG. 1 is a schematic diagram of a communication system according to an embodiment of the present invention
  • FIG. 2 is a schematic flowchart of a network positioning method according to an embodiment of the present invention.
  • FIG. 3 is a schematic flowchart diagram of a network positioning method according to an embodiment of the present invention.
  • FIG. 4 is a schematic structural diagram of a terminal device according to an embodiment of the present invention.
  • FIG. 5 is a schematic structural diagram of a terminal device according to an embodiment of the present invention.
  • FIG. 6 is a schematic structural diagram of a terminal device according to an embodiment of the present invention.
  • references to "an embodiment” herein mean that a particular feature, structure, or characteristic described in connection with the embodiments can be included in at least one embodiment of the invention.
  • the appearances of the phrases in various places in the specification are not necessarily referring to the same embodiments, and are not exclusive or alternative implementations that are mutually exclusive. example. Those skilled in the art will understand and implicitly understand that the embodiments described herein can be combined with other embodiments.
  • a terminal device also called a User Equipment (UE) is a device that provides voice and/or data connectivity to a user, for example, a handheld device with a wireless connection function, an in-vehicle device, and the like.
  • UE User Equipment
  • Common terminals include, for example, mobile phones, tablets, notebook computers, PDAs, mobile internet devices (MIDs), wearable devices such as smart watches, smart bracelets, pedometers, and the like.
  • Parallel execution is to perform action A and action B on two threads respectively, for example, performing action A on the first thread and performing action B on the second thread, which may be performed simultaneously or in Perform another action while performing an action.
  • Multiple means two or more. "and/or”, describing the association relationship of the associated objects, indicating that there may be three relationships, for example, A and/or B, which may indicate that there are three cases where A exists separately, A and B exist at the same time, and B exists separately.
  • the character "/" generally indicates that the contextual object is an "or" relationship.
  • FIG. 1 is a schematic diagram of a communication system according to an embodiment of the present invention.
  • the communication system shown in FIG. 1 includes a terminal device 110 and a location server 120, wherein when the terminal device 110 detects that the location switch is turned on, the terminal device 110 scans N Wifis around the terminal device 110 to obtain the N Wifis.
  • the information (the information includes the MAC address of the Wifi, the terminal device 110 receives the signal strength of the Wifi, etc.), and N is an integer greater than 1.
  • the terminal device 110 starts the positioning function, and ends the Wifi scanning.
  • the terminal device 110 sends a positioning instruction to the location server 120, where the positioning instruction carries information of the N Wifis, where the positioning instruction is used to instruct the location server 120 to determine the current geographic location, location of the terminal device 110 according to the information of the N Wifis.
  • the server 120 determines the current geographic location of the terminal device 110 based on the information of the N Wifis, and returns the determined current geographic location of the terminal device 110 to the terminal device 110.
  • the location server performs positioning based on the information of the Wifi.
  • the solution provided by the present invention does not need to scan the Wifi after starting the positioning function, but When detecting that the positioning switch is turned on, directly scanning the Wifi, and then in the process of Wifi scanning, starting the positioning function, and finally, after ending the Wifi scanning, the obtained Wifi information is sent to the location server to determine the terminal device. Location, which in turn reduces the time required for positioning.
  • FIG. 2 is a schematic flowchart of a network positioning method according to an embodiment of the present invention, including the following steps:
  • the terminal device scans N Wifis around the terminal device to obtain information of the N Wifis, where N is an integer greater than 1.
  • the terminal device sends a positioning instruction to the location server, where the positioning instruction carries the information of the N Wifis, where the positioning instruction is used to indicate that the location server is configured according to the location
  • the N Wifi information determines the current geographic location of the terminal device.
  • the location server receives the positioning instruction, and determines, according to the information about the N Wifis carried by the positioning instruction, a current geographic location of the terminal device.
  • S205 The current geographic location of the terminal device returned by the location server to the terminal device for the positioning instruction, where the terminal device receives the terminal device returned by the location server for the positioning instruction. Current location.
  • the method further includes:
  • the terminal device When the terminal device detects that the current interface includes a function that requires a geographic location, the terminal device triggers the positioning switch to be turned on.
  • the current interface may be a payment interface, an information reading interface, an APP home page, a status interface (such as a circle of friends), and the like.
  • the terminal device directly triggers the positioning switch to be opened to perform network positioning.
  • the information of the Wifi may include, for example, a MAC address of the Wifi, a Service Set Identifier (SSID) of the Wifi, a signal strength of the Wifi received by the terminal device, and the like.
  • SSID Service Set Identifier
  • the terminal device scans the N Wifis around the terminal device in the above step S201 and the terminal device starts the positioning function in the step S202 is performed in parallel, so that when the positioning function is enabled, The terminal device has completed the scanning of the Wifi.
  • the solution saves the time required for the scanning of the Wifi, thereby shortening the time required for the positioning.
  • the specific implementation manner of the terminal device scanning the N Wifis around the terminal device is: the terminal device sends an appointment broadcast; when the Wifi module of the terminal device receives the appointment broadcast, the terminal device The N Wifis around the terminal device are scanned by the Wifi module of the terminal device.
  • the information about the target geographic location and the M Wifis is recorded in the terminal device, where the information of the target geographic location and the M Wifi is returned to the location server within a preset duration.
  • the terminal device associates the record, and the M is an integer greater than 1.
  • the preset duration may be, for example, 1 day, 2 days, 4 days, 5 days, 8 days, or other values.
  • the preset threshold may be, for example, 10, 12, 13, 16, 18, or other values.
  • the target geographic location is determined by the location server based on the M Wifi information, and the M Wifi information is sent by the terminal device to the location server, and the M Wifi information is sent.
  • the sending time is the closest to the recording of the target geographic location and the recording time of the M Wifis by the terminal device.
  • the preset threshold is 10 times
  • the geographic location is A more than 10 times. That is, the terminal device sends 11 sets of Wifi information (such as the first group of Wifi information and the second group of Wifi) to the location server at 11 times (such as time 1, time 2, time 3, ..., time 11).
  • Wifi information such as the first group of Wifi information and the second group of Wifi
  • third set of Wifi information ..., eleventh set of Wifi information, each set of Wifi
  • the information includes multiple Wifi information
  • the location server obtains the geographic location according to the 11 sets of Wifi information respectively, and the terminal device records the geographical location A and the eleventh set of Wifi information at the recording time, and the time 11 is relatively At other times (such as time 1 to time 10), it is closest to the recording time.
  • the recording time is less than or equal to the set value from the current system time.
  • the set value may be, for example, 20 min, 1 h, 10 h, 1 day, 2 days, 10 days, 1 month, or other values.
  • the method before the sending the positioning instruction to the location server, the method further includes:
  • the method further includes:
  • the target geographic location is used as the current geographic location of the terminal device.
  • the terminal device can record the location A and the information for determining the location A and the five Wifis for subsequent use.
  • the terminal device directly uses the location A as the current geographic location of the terminal device, and does not need to send the information of the six Wifis to the location server for location determination, thereby further shortening the time required for positioning. . If the information of the 4 Wifis in the 6 Wifis scanned by the current terminal device matches the information of the 4 Wifis in the 5 Wifis recorded by the terminal device, the current location of the user may not be the location A. The terminal device sends the information of the six Wifis to the location server for location determination.
  • the solution provided by the present invention does not need to be activated after the positioning function is started.
  • Wifi scans, but when it detects that the positioning switch is turned on, it directly scans the Wifi, then starts the positioning function during the Wifi scanning process, and finally, after ending the Wifi scanning, the obtained Wifi information is sent to the location server.
  • the location server determines the geographic location based on this information and then returns the geographic location to the terminal device, thereby reducing the time required for positioning.
  • the embodiment of the present invention further provides another more detailed method flow, as shown in FIG. 3, including:
  • the terminal device When detecting that the positioning switch is turned on, the terminal device sends an appointment broadcast.
  • the terminal device scans N Wifis around the terminal device by using the Wifi module of the terminal device.
  • the terminal compares the information of the N Wifis with the information of the M Wifis, where the information of the target geographic location and the M Wifi is recorded in association with the terminal device.
  • the information of the target geographic location and the M Wifi is that when the number of times the geographic location returned by the location server to the terminal device is the target geographic location exceeds a preset threshold within a preset duration, the terminal The device is associated with the record.
  • step S305 is performed.
  • steps S306 to S309 are performed.
  • the terminal device uses the target geographic location as a current geographic location of the terminal device.
  • the terminal device sends a positioning instruction to the location server, where the positioning instruction carries the information of the N Wifis, where the positioning instruction is used to instruct the location server to determine the terminal device according to the information of the N Wifis. Current location.
  • the location server receives the positioning instruction, and determines, according to the N Wifi information carried by the positioning instruction, a current geographic location of the terminal device.
  • the embodiment of the present invention further provides a terminal device 400, as shown in FIG. 4, including:
  • the scanning module 401 is configured to scan N Wifis around the terminal device to obtain information about the N Wifis when the location switch is detected to be open, where the N is an integer greater than 1.
  • the startup module 402 is configured to start a positioning function during scanning of the N Wifis;
  • a sending module 403 configured to send, by the location server, a positioning instruction, where the positioning instruction carries the information of the N Wifis, where the positioning instruction is used to indicate that the location server is configured according to the N Wifi information determines a current geographic location of the terminal device;
  • the receiving module 404 is configured to receive a current geographic location of the terminal device returned by the location server for the positioning instruction.
  • the scanning module 401 is specifically configured to:
  • the Wifi module of the terminal device When the Wifi module of the terminal device receives the appointment broadcast, the Wifi module of the terminal device scans N Wifis around the terminal device.
  • the information about the target geographic location and the M Wifis is recorded in the terminal device, where the information of the target geographic location and the M Wifi is returned to the location server within a preset duration.
  • the terminal device associates the record.
  • the target geographic location is determined by the location server based on the M Wifi information, where the M Wifi information is sent by the terminal device to the location server, and the M Wifi is sent.
  • the sending time of the information is the closest to the recording of the target geographic location and the recording time of the M Wifis by the terminal device.
  • the recording moment is less than or equal to a set value from a current system time.
  • the terminal device further includes:
  • a comparison module 405, configured to perform information about the N Wifis and the information of the M Wifis Compared;
  • the sending module 403 is specifically configured to: if the information of the W Wifis in the N Wifis does not match the information of the W Wifis in the M Wifis, send a positioning instruction to the location server, where the W Greater than or equal to the M/2.
  • the terminal device further includes:
  • a positioning module 406 configured to use the target geographic location as the current geographic location of the terminal device if the information of the W Wifis in the N Wifis matches the information of the W Wifis in the M Wifis position.
  • the terminal device further includes:
  • the triggering module 407 is configured to trigger the positioning switch to be turned on if the terminal device detects that the current interface includes a function that requires a geographic location.
  • the information of the Wifi includes a MAC address of the Wifi, a service set identifier (SSID) of the Wifi, and the terminal device receives at least one of a signal strength of the Wifi.
  • SSID service set identifier
  • each of the above modules (scanning module 401, startup module 402, sending module 403, receiving module 404, comparison module 405, positioning module 406, and triggering module 407) is used to perform the relevant steps of the above method.
  • the terminal device 400 is presented in the form of a module.
  • a “module” herein may refer to an application-specific integrated circuit (ASIC), a processor and memory that executes one or more software or firmware programs, integrated logic circuits, and/or other devices that provide the above functionality.
  • ASIC application-specific integrated circuit
  • the above scanning module 401, the starting module 402, the sending module 403, the receiving module 404, the comparing module 405, the positioning module 406, and the triggering module 407 can be implemented by the processor 501 of the terminal device shown in FIG. 5.
  • the terminal device 500 can be implemented in the structure of FIG. 5, which includes at least one processor 501, at least one memory 502, and at least one communication interface 503.
  • the processor 501, the memory 502, and the communication interface 503 are connected by the communication bus and complete communication with each other.
  • the processor 501 can be a general purpose central processing unit (CPU), a microprocessor, and a specific application integrated circuit.
  • the communication interface 503 is configured to communicate with other devices or communication networks, such as Ethernet, Radio Access Network (RAN), Wireless Local Area Networks (WLAN), and the like.
  • RAN Radio Access Network
  • WLAN Wireless Local Area Networks
  • the memory 502 can be a read-only memory (ROM) or other type of static storage device that can store static information and instructions, a random access memory (RAM) or other type of information and instructions that can store information.
  • the dynamic storage device may also be an Electrically Erasable Programmable Read-Only Memory (EEPROM), a Compact Disc Read-Only Memory (CD-ROM) or other optical disc storage, or a disc storage device ( Including compressed optical discs, laser discs, optical discs, digital versatile discs, Blu-ray discs, etc.), magnetic disk storage media or other magnetic storage devices, or can be used to carry or store desired program code in the form of instructions or data structures and can be stored by a computer Any other media taken, but not limited to this.
  • the memory can exist independently and be connected to the processor via a bus.
  • the memory can also be integrated with the processor.
  • the memory 502 is configured to store application code for executing the above solution, and is controlled by the processor 501 for execution.
  • the processor 501 is configured to execute application code stored in the memory 502.
  • the code stored in the memory 502 can perform the above-mentioned network positioning method performed by the terminal device provided above, for example, when detecting that the positioning switch is turned on, scanning N Wifis around the terminal device to acquire information of the N Wifis, N is an integer greater than 1; in the process of scanning the N Wifis, a positioning function is started; when the N Wifis are scanned, a positioning instruction is sent to the location server, where the positioning instruction carries the N Wifis Information, the positioning instruction is used to instruct the location server to determine a current geographic location of the terminal device according to the information of the N Wifis; and receive a current status of the terminal device returned by the location server for the positioning instruction Geographic location.
  • the terminal device is a mobile phone, and the components of the mobile phone are combined with FIG. 6 below.
  • the RF circuit 610 can be used for transmitting and receiving information or during a call, and receiving and transmitting the signal. Specifically, after receiving the downlink information of the base station, the processor 680 processes the data. In addition, the uplink data is designed to be sent to the base station.
  • RF circuit 610 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like.
  • LNA Low Noise Amplifier
  • RF circuitry 610 can also communicate with the network and other devices via wireless communication.
  • the above wireless communication may use any communication standard or protocol, including but not limited to Global System of Mobile communication (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (Code Division Multiple Access) , CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), E-mail, Short Message Service (SMS), and the like.
  • GSM Global System of Mobile communication
  • GPRS General Packet Radio Service
  • CDMA Code Division Multiple Access
  • WCDMA Wideband Code Division Multiple Access
  • LTE Long Term Evolution
  • SMS Short Message Service
  • the memory 620 can be used to store software programs and modules, and the processor 680 executes various functional applications and data processing of the mobile phone by running software programs and modules stored in the memory 620.
  • the memory 620 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application required for at least one function (such as a Wifi scanning function, a positioning function, an information sending function), and the like; and the storage data area may be Stores data created based on the use of the mobile phone (such as the geographic location returned by the location server, N Wifi information obtained by Wifi scanning), and the like.
  • memory 620 can include high speed random access memory, and can 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 input unit 630 can be configured to receive input numeric or character information and to generate key signal inputs related to user settings and function controls of the handset.
  • the input unit 630 may include a touch panel 631 and other input devices 632.
  • the touch panel 631 also referred to as a touch screen, can collect touch operations on or near the user (such as the user using a finger, a stylus, or the like on the touch panel 631 or near the touch panel 631. Operation), and drive the corresponding connecting device according to a preset program.
  • the touch panel 631 can include two parts: a touch detection device and a touch controller.
  • the touch detection device detects the touch orientation of the user, and Detecting a signal brought by the touch operation, transmitting the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into contact coordinates, and sends it to the processor 680, and can receive the processor 680 The order comes and is executed.
  • the touch panel 631 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic waves.
  • the input unit 630 may also include other input devices 632.
  • other input devices 632 may include, but are not limited to, a physical keyboard, at least one of a function key (such as a volume control button, a switch button, etc.), a trackball, a mouse, a joystick, and the like.
  • a function key such as a volume control button, a switch button, etc.
  • a trackball such as a mouse, a joystick, and the like.
  • the display unit 640 can be used to display information input by the user or information provided to the user as well as various menus of the mobile phone.
  • the display unit 640 can include a display panel 641.
  • the display panel 641 can be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), or the like.
  • the touch panel 631 can cover the display panel 641. When the touch panel 631 detects a touch operation thereon or nearby, the touch panel 631 transmits to the processor 580 to determine the type of the touch event, and then the processor 680 according to the touch event. The type provides a corresponding visual output on display panel 641.
  • the touch panel 631 and the display panel 641 are two independent components to implement the input and input functions of the mobile phone, in some embodiments, the touch panel 631 may be integrated with the display panel 641. Realize the input and output functions of the phone.
  • the handset can also include at least one type of sensor 650, such as a light sensor, motion sensor, and other sensors.
  • the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel 641 according to the brightness of the ambient light, and the proximity sensor may close the display panel 641 and/or when the mobile phone moves to the ear. Or backlight.
  • the accelerometer sensor can detect the magnitude of acceleration in all directions (usually three axes). When it is stationary, it can detect the magnitude and direction of gravity.
  • the mobile phone can be used to identify the gesture of the mobile phone (such as horizontal and vertical screen switching, related Game, magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tapping), etc.; as for the mobile phone can also be configured with gyroscopes, barometers, hygrometers, thermometers, infrared sensors and other sensors, no longer Narration.
  • the gesture of the mobile phone such as horizontal and vertical screen switching, related Game, magnetometer attitude calibration
  • vibration recognition related functions such as pedometer, tapping
  • the mobile phone can also be configured with gyroscopes, barometers, hygrometers, thermometers, infrared sensors and other sensors, no longer Narration.
  • Audio circuit 660, speaker 661, microphone 662 can provide audio connection between the user and the mobile phone mouth.
  • the audio circuit 660 can transmit the converted electrical data of the received audio data to the speaker 661 for conversion to the sound signal output by the speaker 661; on the other hand, the microphone 662 converts the collected sound signal into an electrical signal by the audio circuit 660. After receiving, it is converted into audio data, and then processed by the audio data output processor 680, sent to the other mobile phone via the RF circuit 610, or outputted to the memory 620 for further processing.
  • WiFi is a short-range wireless transmission technology
  • the mobile phone can help users to send and receive emails, browse web pages, and access streaming media through the WiFi module 670, which provides users with wireless broadband Internet access.
  • FIG. 6 shows the WiFi module 670, it can be understood that it does not belong to the essential configuration of the mobile phone, and can be omitted as needed within the scope of not changing the essence of the invention.
  • the processor 680 is the control center of the handset, and connects various portions of the entire handset using various interfaces and lines, by executing or executing software programs and/or modules stored in the memory 620, and invoking data stored in the memory 620, executing The phone's various functions and processing data, so that the overall monitoring of the phone.
  • the processor 680 may include one or more processing units; preferably, the processor 680 may integrate an application processor and a modem processor, where the application processor mainly processes an operating system, a user interface, an application, and the like.
  • the modem processor primarily handles wireless communications. It will be appreciated that the above described modem processor may also not be integrated into the processor 680.
  • the handset also includes a power source 690 (such as a battery) that supplies power to the various components.
  • a power source 690 such as a battery
  • the power source can be logically coupled to the processor 680 through a power management system to manage functions such as charging, discharging, and power management through the power management system.
  • the mobile phone may further include a camera, a Bluetooth module, and the like, and details are not described herein again.
  • each step method flow may be implemented based on the structure of the terminal device shown in FIG. 6.
  • the embodiment of the present invention further provides a computer storage medium, wherein the computer storage medium can store a program, and the program includes any one of the network positioning methods described in the foregoing method embodiments. Part or all of the steps.
  • the disclosed apparatus may be implemented in other ways.
  • the device embodiments described above are merely illustrative.
  • the division of the unit is only a logical function division.
  • there may be another division manner for example, multiple units or components may be combined or may be Integrate into another system, or some features can be ignored or not executed.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be electrical or otherwise.
  • the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
  • each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
  • the above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
  • the integrated unit if implemented in the form of a software functional unit and sold or used as a standalone product, may be stored in a computer readable memory.
  • the technical solution of the present invention may contribute to the prior art or all or part of the technical solution may be embodied in the form of a software product stored in a memory.
  • the aforementioned memory includes: U disk, read-only memory (ROM), random access memory (RAM), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disk or optical disk and other media that can store program code.
  • ROM Read-Only Memory
  • RAM Random Access Memory

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Telephonic Communication Services (AREA)

Abstract

本发明公开了一种网络定位方法,包括:在检测到定位开关被打开时,扫描终端设备周围的N个Wifi,以获取所述N个Wifi的信息,所述N为大于1的整数;在扫描所述N个Wifi的过程中,启动定位功能;在结束扫描所述N个Wifi时,向位置服务器发送定位指令,所述定位指令携带所述N个Wifi的信息,所述定位指令用于指示所述位置服务器根据所述N个Wifi的信息确定所述终端设备的当前地理位置;接收所述位置服务器针对所述定位指令而返回的所述终端设备的当前地理位置。本发明实施例还提供了一种终端设备。采用本发明实施例可缩短定位所需要的时间。

Description

一种网络定位方法及终端设备 技术领域
本发明涉及电子技术领域,尤其涉及一种网络定位方法及终端设备。
背景技术
大部分移动终端平台(比如ISO平台或者Android平台等),均配备Wifi芯片,支持连接路由器上网。现在拍照或者发朋友圈已经成为多数人的生活习惯,在上传照片或者发朋友圈的时候会需要获取当时的网络位置。
通常在定位开关关闭的情况下,用户需要先打开定位开关,然后开启定位服务,再然后启动Wifi模块对Wifi进行扫描,以获取到Wifi的信息,然后再将这些Wifi的信息给服务器,服务器再基于这些Wifi信息确定位置,可见,整个定位过程需要一定的时间,因此如何加快定位所需要的时间是本领域亟待解决的技术问题。
发明内容
本发明实施例提供一种网络定位方法及终端设备,以期缩短定位所需要的时间。
第一方面,本发明实施例提供一种网络定位方法,其特征在于,包括:
在检测到定位开关被打开时,扫描终端设备周围的N个Wifi,以获取所述N个Wifi的信息,所述N为大于1的整数;
在扫描所述N个Wifi的过程中,启动定位功能;
在结束扫描所述N个Wifi时,向位置服务器发送定位指令,所述定位指令携带所述N个Wifi的信息,所述定位指令用于指示所述位置服务器根据所述N个Wifi的信息确定所述终端设备的当前地理位置;
接收所述位置服务器针对所述定位指令而返回的所述终端设备的当前地理位置。
第二方面,本发明实施例提供一种终端设备,包括:
扫描模块,用于在检测到定位开关被打开时,扫描终端设备周围的N个Wifi,以获取所述N个Wifi的信息,所述N为大于1的整数;
启动模块,用于在扫描所述N个Wifi的过程中,启动定位功能;
发送模块,用于在结束扫描所述N个Wifi时,向位置服务器发送定位指令,所述定位指令携带所述N个Wifi的信息,所述定位指令用于指示所述位置服务器根据所述N个Wifi的信息确定所述终端设备的当前地理位置;
接收模块,用于接收所述位置服务器针对所述定位指令而返回的所述终端设备的当前地理位置。
第三方面,本发明实施例提供了一种终端设备,包括:
存储有可执行程序代码的存储器;
与所述存储器耦合的处理器;
所述处理器调用所述存储器中存储的所述可执行程序代码,执行如本发明实施例第一方面中所描述的部分或全部步骤。
第四方面,本发明提供一种计算机存储介质,用于储存为本发明实施例第一方面提供的终端设备所用的计算机软件指令,其包含用于执行上述方面所设计的程序。
第五方面,本发明实施例提供了一种计算机程序产品,其中,上述计算机程序产品包括存储了计算机程序的非瞬时性计算机可读存储介质,上述计算机程序可操作来使计算机执行如本发明实施例第一方面所描述的部分或全部步骤。该计算机程序产品可以为一个软件安装包,上述计算机包括终端设备。
可见,相较于现有技术,本发明提供的方案无需在启动定位功能后,再对Wifi进行扫描,而是在检测到定位开关被打开时,直接对Wifi进行扫描,然后在Wifi扫描的过程中,启动定位功能,最后在结束Wifi扫描后,将获取到的Wifi的信息给位置服务器,位置服务器基于这些信息确定地理位置,然后将这个地理位置返回给终端设备,进而缩短了定位所需时间。
本发明的这些方面或其他方面在以下实施例的描述中会更加简明易懂。
附图说明
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1为本发明实施例提供的一种通信系统示意图;
图2为本发明一实施例提供的一种网络定位方法的流程示意图;
图3为本发明一实施例提供的一种网络定位方法的流程示意图;
图4为本发明一实施例提供的一种终端设备的结构示意图;
图5为本发明一实施例提供的一种终端设备的结构示意图;
图6为本发明一实施例提供的一种终端设备的结构示意图。
具体实施方式
为了使本技术领域的人员更好地理解本发明方案,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分的实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都应当属于本发明保护的范围。
以下分别进行详细说明。
本发明的说明书和权利要求书及所述附图中的术语“第一”、“第二”、“第三”和“第四”等是用于区别不同对象,而不是用于描述特定顺序。此外,术语“包括”和“具有”以及它们任何变形,意图在于覆盖不排他的包含。例如包含了一系列步骤或单元的过程、方法、系统、产品或设备没有限定于已列出的步骤或单元,而是可选地还包括没有列出的步骤或单元,或可选地还包括对于这些过程、方法、产品或设备固有的其它步骤或单元。
在本文中提及“实施例”意味着,结合实施例描述的特定特征、结构或特性可以包含在本发明的至少一个实施例中。在说明书中的各个位置出现该短语并不一定均是指相同的实施例,也不是与其它实施例互斥的独立的或备选的实施 例。本领域技术人员显式地和隐式地理解的是,本文所描述的实施例可以与其它实施例相结合。
以下,对本申请中的部分用语进行解释说明,以便于本领域技术人员理解。
1)、终端设备,又称之为用户设备(User Equipment,UE),是一种向用户提供语音和/或数据连通性的设备,例如,具有无线连接功能的手持式设备、车载设备等。常见的终端例如包括:手机、平板电脑、笔记本电脑、掌上电脑、移动互联网设备(mobile internet device,MID)、可穿戴设备,例如智能手表、智能手环、计步器等。
2)并行执行是在两条线程上分别执行动作A与动作B,比如,在第一线程上执行动作A,在第二线程上执行动作B,二者可以是同时进行的,也可以是在执行一个动作的过程中执行另一动作。
3)、“多个”是指两个或两个以上。“和/或”,描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。字符“/”一般表示前后关联对象是一种“或”的关系。
下面结合附图对本申请的实施例进行描述。
请参阅图1,图1是本发明实施例公开的一种通信系统的示意图。图1所示的通信系统包括终端设备110和位置服务器120,其中,当终端设备110检测到定位开关被打开时,终端设备110扫描终端设备110周围的N个Wifi,以获取这N个Wifi的信息(这些信息包括Wifi的MAC地址,终端设备110接收到Wifi的信号强度等),N为大于1的整数,在终端设备110扫描Wifi的过程中,终端设备110启动定位功能,在结束Wifi扫描时,终端设备110向位置服务器120发送定位指令,该定位指令携带这N个Wifi的信息,该定位指令用于指示位置服务器120根据这N个Wifi的信息确定终端设备110的当前地理位置,位置服务器120根据这N个Wifi的信息确定终端设备110的当前地理位置,以及将确定到的终端设备110的当前地理位置返回给终端设备110。
可见,相较于现有技术的网络定位方法:先打开定位开关,然后开启定位 服务,再然后启动Wifi模块对Wifi进行扫描,以获取到Wifi的信息,然后位置服务器基于这些Wifi的信息进行定位,本发明提供的方案无需在启动定位功能后,再对Wifi进行扫描,而是在检测到定位开关被打开时,直接对Wifi进行扫描,然后在Wifi扫描的过程中,启动定位功能,最后在结束Wifi扫描后,将获取到的Wifi的信息给位置服务器,以确定终端设备的位置,进而缩短了定位所需时间。
请参见图2,图2为本发明实施例提供的一种网络定位方法的流程示意图,包括以下步骤:
S201、在检测到定位开关被打开时,所述终端设备扫描终端设备周围的N个Wifi,以获取所述N个Wifi的信息,所述N为大于1的整数。
S202、在扫描所述N个Wifi的过程中,所述终端设备启动定位功能。
S203、在结束扫描所述N个Wifi时,所述终端设备向位置服务器发送定位指令,所述定位指令携带所述N个Wifi的信息,所述定位指令用于指示所述位置服务器根据所述N个Wifi的信息确定所述终端设备的当前地理位置。
S204、所述位置服务器接收所述定位指令,以及根据所述定位指令携带的所述N个Wifi的信息确定所述终端设备的当前地理位置。
S205、所述位置服务器针对所述定位指令而向所述终端设备返回的所述终端设备的当前地理位置,所述终端设备接收所述位置服务器针对所述定位指令而返回的所述终端设备的当前地理位置。
可选地,所述方法还包括:
在所述终端设备检测到当前界面包含需要地理位置的功能的情况下,所述终端设备触发所述定位开关打开。
其中,当前界面可以是支付界面,信息读取界面,APP首页,状态界面(比如朋友圈),等等。
举例来说,现在APP的大多数功能都需要获取用户当前地理位置,比如需要知道用户当前的地理位置给用户推荐距离较近的资源,例如给用户推荐距离用户较近的美食,或者用户上传或发朋友圈需要获取用户当前的地理位置, 等等。当终端设备当前界面包含需要地理位置的功能的情况下,终端设备直接触发定位开关打开,进行网络定位。
其中,Wifi的信息例如可以包括Wifi的MAC地址,Wifi的服务集标识(Service Set Identifier,SSID),终端设备接收到Wifi的信号强度等等。
本发明实施例中,由于以上步骤S201所述终端设备扫描终端设备周围的N个Wifi和以上步骤S202所述终端设备启动定位功能是并行执行的,这样的话就有可能在开启定位功能的时候,终端设备已完成Wifi的扫描,相较于现有技术,本方案节省了Wifi的扫描所需时间,进而缩短了定位所需要的时间。
可选地,所述终端设备扫描终端设备周围的N个Wifi的具体实施方式为:所述终端设备发送约定广播;在所述终端设备的Wifi模块接收到所述约定广播时,所述终端设备通过所述终端设备的Wifi模块扫描终端设备周围的N个Wifi。
可选地,所述终端设备中关联记录有目标地理位置和M个Wifi的信息,其中,所述目标地理位置和所述M个Wifi的信息是当在预设时长内所述位置服务器返回给所述终端设备的地理位置为目标地理位置的次数超过预设阈值时,所述终端设备关联记录的,所述M为大于1的整数。
其中,预设时长例如可以是1天、2天、4天、5天、8天或是其他值。
其中,预设阈值例如可以是10次、12次、13次、16次、18次或是其他值。
进一步地,所述目标地理位置是所述位置服务器基于所述M个Wifi信息确定的,所述M个Wifi信息是所述终端设备发送给所述位置服务器的,且发送所述M个Wifi信息的发送时刻距离所述终端设备关联记录所述目标地理位置和所述M个Wifi的记录时刻最近。
举例来说,假设预设时长为5天,预设阈值为10次,M=5,目标地理位置为A,当在5天内位置服务器给终端设备返回来的地理位置为A的次数超过10次时,也就是说,终端设备给位置服务器在11个时刻(比如时刻1、时刻2、时刻3、……、时刻11)发送了11组Wifi信息(比如第一组Wifi信息、第二组Wifi信息、第三组Wifi信息、……、第十一组Wifi信息,每组Wifi 信息均包括多个Wifi信息),然后位置服务器分别根据这11组Wifi信息得到的地理位置均为A,那么终端设备在记录时刻将地理位置A和第十一组Wifi信息关联记录,时刻11相对于其他时刻(比如时刻1到时刻10)距离记录时刻最近。
进一步地,为了保证上述目标地理位置的有效性,所述记录时刻距离当前系统时间小于或等于设定值。其中,设定值例如可以是20min、1h、10h、1天、2天、10天、1个月或是其他值。
可选地,所述向位置服务器发送定位指令之前,所述方法还包括:
将所述N个Wifi的信息与所述M个Wifi的信息进行对比;
若所述N个Wifi的中不存在W个Wifi的信息与所述M个Wifi中的W个Wifi的信息相匹配,则向位置服务器发送定位指令,所述W大于或等于所述M/2。
可选地,所述方法还包括:
若所述N个Wifi中存在W个Wifi的信息与所述M个Wifi中的W个Wifi的信息相匹配,则将所述目标地理位置作为所述终端设备的当前地理位置。
举例来说,假设预设时长为2天,预设阈值为13次,目标地理位置为A,M=5,假如在2天内位置服务器返回给终端设备的地理位置为A的次数超过13次时,那代表用户经常在位置A,此时,终端设备可将位置A和用于确定位置A和这5个Wifi的信息进行关联记录,以便于后续使用。
比如,假设N=6,W=4,假如当前终端设备扫描到的6个Wifi中存在4个Wifi的信息与终端设备记录的5个Wifi中的4个Wifi的信息相匹配,那代表用户当前所在的位置是位置A,此时,终端设备直接将位置A作为终端设备当前地理位置即可,无需再将这6个Wifi的信息发送给位置服务器进行位置确定,进一步缩短了定位所需要的时间。假如当前终端设备扫描到的6个Wifi中不存在4个Wifi的信息与终端设备记录的5个Wifi中的4个Wifi的信息相匹配,那代表用户当前所在的位置可能不是位置A,此时,终端设备将这6个Wifi的信息发送给位置服务器进行位置确定即可。
可见,相较于现有技术,本发明提供的方案无需在启动定位功能后,再对 Wifi进行扫描,而是在检测到定位开关被打开时,直接对Wifi进行扫描,然后在Wifi扫描的过程中,启动定位功能,最后在结束Wifi扫描后,将获取到的Wifi的信息给位置服务器,位置服务器基于这些信息确定地理位置,然后将这个地理位置返回给终端设备,进而缩短了定位所需时间。
本发明实施例还提供了另一更为详细的方法流程,如图3所示,包括:
S301、在检测到定位开关被打开时,所述终端设备发送约定广播。
S302、在所述终端设备的Wifi模块接收到所述约定广播时,所述终端设备通过所述终端设备的Wifi模块扫描终端设备周围的N个Wifi。
S303、在扫描所述N个Wifi的过程中,所述终端设备启动定位功能。
S304、在结束扫描所述N个Wifi时,所述终端将所述N个Wifi的信息与M个Wifi的信息进行对比,所述终端设备中关联记录有目标地理位置和M个Wifi的信息,其中,所述目标地理位置和所述M个Wifi的信息是当在预设时长内所述位置服务器返回给所述终端设备的地理位置为目标地理位置的次数超过预设阈值时,所述终端设备关联记录的。
若所述N个Wifi中存在W个Wifi的信息与所述M个Wifi中的W个Wifi的信息相匹配,则执行步骤S305。
若所述N个Wifi中不存在W个Wifi的信息与所述M个Wifi中的W个Wifi的信息相匹配,则执行步骤S306~步骤S309。
S305、所述终端设备将所述目标地理位置作为所述终端设备的当前地理位置。
S306、所述终端设备向位置服务器发送定位指令,所述定位指令携带所述N个Wifi的信息,所述定位指令用于指示所述位置服务器根据所述N个Wifi的信息确定所述终端设备的当前地理位置。
S307、所述位置服务器接收所述定位指令,以及根据所述定位指令携带的所述N个Wifi的信息确定所述终端设备的当前地理位置。
S308、所述位置服务器针对所述定位指令而向所述终端设备返回的所述终端设备的当前地理位置,所述终端设备接收所述位置服务器针对所述定位指令 而返回的所述终端设备的当前地理位置。
需要说明的是,图3所示的方法的各个步骤的具体实现过程可参见上述方法所述的具体实现过程,在此不再叙述。
本发明实施例还提供了一种终端设备400,如图4所示,包括:
扫描模块401,用于在检测到定位开关被打开时,扫描终端设备周围的N个Wifi,以获取所述N个Wifi的信息,所述N为大于1的整数;
启动模块402,用于在扫描所述N个Wifi的过程中,启动定位功能;
发送模块403,用于在结束扫描所述N个Wifi时,向位置服务器发送定位指令,所述定位指令携带所述N个Wifi的信息,所述定位指令用于指示所述位置服务器根据所述N个Wifi的信息确定所述终端设备的当前地理位置;
接收模块404,用于接收所述位置服务器针对所述定位指令而返回的所述终端设备的当前地理位置。
可选地,所述扫描模块401具体用于:
发送约定广播;
在所述终端设备的Wifi模块接收到所述约定广播时,通过所述终端设备的Wifi模块扫描终端设备周围的N个Wifi。
可选地,所述终端设备中关联记录有目标地理位置和M个Wifi的信息,其中,所述目标地理位置和所述M个Wifi的信息是当在预设时长内所述位置服务器返回给所述终端设备的地理位置为目标地理位置的次数超过预设阈值时,所述终端设备关联记录的。
可选地,所述目标地理位置是所述位置服务器基于所述M个Wifi信息确定的,所述M个Wifi信息是所述终端设备发送给所述位置服务器的,且发送所述M个Wifi信息的发送时刻距离所述终端设备关联记录所述目标地理位置和所述M个Wifi的记录时刻最近。
可选地,所述记录时刻距离当前系统时间小于或等于设定值。
可选地,所述终端设备还包括:
对比模块405,用于将所述N个Wifi的信息与所述M个Wifi的信息进行 对比;
所述发送模块403具体用于:若所述N个Wifi中不存在W个Wifi的信息与所述M个Wifi中的W个Wifi的信息相匹配,则向位置服务器发送定位指令,所述W大于或等于所述M/2。
可选地,所述终端设备还包括:
定位模块406,用于若所述N个Wifi中存在W个Wifi的信息与所述M个Wifi中的W个Wifi的信息相匹配,则将所述目标地理位置作为所述终端设备的当前地理位置。
可选地,所述终端设备还包括:
触发模块407,用于在所述终端设备检测到当前界面包含需要地理位置的功能的情况下,触发所述定位开关打开。
可选地,所述Wifi的信息包括Wifi的MAC地址,Wifi的服务集标识(SSID),所述终端设备接收到Wifi的信号强度中的至少一种。
需要说明的是,上述各模块(扫描模块401、启动模块402、发送模块403、接收模块404、对比模块405、定位模块406和触发模块407)用于执行上述方法的相关步骤。
在本实施例中,终端设备400是以模块的形式来呈现。这里的“模块”可以指特定应用集成电路(application-specific integrated circuit,ASIC),执行一个或多个软件或固件程序的处理器和存储器,集成逻辑电路,和/或其他可以提供上述功能的器件。此外,以上扫描模块401、启动模块402、发送模块403、接收模块404、对比模块405、定位模块406和触发模块407可通过图5所示的终端设备的处理器501来实现。
如图5所示,终端设备500可以以图5中的结构来实现,该终端设备500包括至少一个处理器501,至少一个存储器502以及至少一个通信接口503。所述处理器501、所述存储器502和所述通信接口503通过所述通信总线连接并完成相互间的通信。
处理器501可以是通用中央处理器(CPU),微处理器,特定应用集成电 路(application-specific integrated circuit,ASIC),或一个或多个用于控制以上方案程序执行的集成电路。
通信接口503,用于与其他设备或通信网络通信,如以太网,无线接入网(RAN),无线局域网(Wireless LocalAreaNetworks,WLAN)等。
存储器502可以是只读存储器(read-onlymemory,ROM)或可存储静态信息和指令的其他类型的静态存储设备,随机存取存储器(random access memory,RAM)或者可存储信息和指令的其他类型的动态存储设备,也可以是电可擦可编程只读存储器(Electrically Erasable Programmable Read-Only Memory,EEPROM)、只读光盘(Compact Disc Read-Only Memory,CD-ROM)或其他光盘存储、光碟存储(包括压缩光碟、激光碟、光碟、数字通用光碟、蓝光光碟等)、磁盘存储介质或者其他磁存储设备、或者能够用于携带或存储具有指令或数据结构形式的期望的程序代码并能够由计算机存取的任何其他介质,但不限于此。存储器可以是独立存在,通过总线与处理器相连接。存储器也可以和处理器集成在一起。
其中,所述存储器502用于存储执行以上方案的应用程序代码,并由处理器501来控制执行。所述处理器501用于执行所述存储器502中存储的应用程序代码。
存储器502存储的代码可执行以上提供的终端设备执行的上述网络定位方法,比如在检测到定位开关被打开时,扫描终端设备周围的N个Wifi,以获取所述N个Wifi的信息,所述N为大于1的整数;在扫描所述N个Wifi的过程中,启动定位功能;在结束扫描所述N个Wifi时,向位置服务器发送定位指令,所述定位指令携带所述N个Wifi的信息,所述定位指令用于指示所述位置服务器根据所述N个Wifi的信息确定所述终端设备的当前地理位置;接收所述位置服务器针对所述定位指令而返回的所述终端设备的当前地理位置。
在一个实施例中,终端设备为手机,下面结合图6对手机的各个构成部件
进行具体的介绍:
RF电路610可用于收发信息或通话过程中,信号的接收和发送,特别地,将基站的下行信息接收后,给处理器680处理;另外,将设计上行的数据发送给基站。通常,RF电路610包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器(LowNoiseAmplifier,LNA)、双工器等。此外,RF电路610还可以通过无线通信与网络和其他设备通信。上述无线通信可以使用任一通信标准或协议,包括但不限于全球移动通讯系统(Global System ofMobile communication,GSM)、通用分组无线服务(General Packet Radio Service,GPRS)、码分多址(Code DivisionMultiple Access,CDMA)、宽带码分多址(Wideband Code DivisionMultipleAccess,WCDMA)、长期演进(Long Term Evolution,LTE)、电子邮件、短消息服务(ShortMessaging Service,SMS)等。
存储器620可用于存储软件程序以及模块,处理器680通过运行存储在存储器620的软件程序以及模块,从而执行手机的各种功能应用以及数据处理。存储器620可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如Wifi扫描功能、定位功能、信息发送功能)等;存储数据区可存储根据手机的使用所创建的数据(比如位置服务器返回的地理位置、Wifi扫描得到的N个Wifi的信息)等。此外,存储器620可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。
输入单元630可用于接收输入的数字或字符信息,以及产生与手机的用户设置以及功能控制有关的键信号输入。具体地,输入单元630可包括触控面板631、其他输入设备632。触控面板631,也称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板631上或在触控面板631附近的操作),并根据预先设定的程式驱动相应的连接装置。可选的,触控面板631可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并 检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器680,并能接收处理器680发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板631。除以了触控面板631,输入单元630还可以包括其他输入设备632。具体地,其他输入设备632可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆等中的至少一种。
显示单元640可用于显示由用户输入的信息或提供给用户的信息以及手机的各种菜单。显示单元640可包括显示面板641,可选的,可以采用液晶显示器(Liquid Crystal Display,LCD)、有机发光二极管(Organic Light-Emitting Diode,OLED)等形式来配置显示面板641。进一步的,触控面板631可覆盖显示面板641,当触控面板631检测到在其上或附近的触摸操作后,传送给处理器580以确定触摸事件的类型,随后处理器680根据触摸事件的类型在显示面板641上提供相应的视觉输出。虽然在图6中,触控面板631与显示面板641是作为两个独立的部件来实现手机的输入和输入功能,但是在某些实施例中,可以将触控面板631与显示面板641集成而实现手机的输入和输出功能。
手机还可包括至少一种传感器650,比如光传感器、运动传感器以及其他传感器。具体地,光传感器可包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板641的亮度,接近传感器可在手机移动到耳边时,关闭显示面板641和/或背光。作为运动传感器的一种,加速计传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别手机姿态的应用(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;至于手机还可配置的陀螺仪、气压计、湿度计、温度计、红外线传感器等其他传感器,在此不再赘述。
音频电路660、扬声器661,传声器662可提供用户与手机之间的音频接 口。音频电路660可将接收到的音频数据转换后的电信号,传输到扬声器661,由扬声器661转换为声音信号输出;另一方面,传声器662将收集的声音信号转换为电信号,由音频电路660接收后转换为音频数据,再将音频数据输出处理器680处理后,经RF电路610以发送给比如另一手机,或者将音频数据输出至存储器620以便进一步处理。
WiFi属于短距离无线传输技术,手机通过WiFi模块670可以帮助用户收发电子邮件、浏览网页和访问流式媒体等,它为用户提供了无线的宽带互联网访问。虽然图6示出了WiFi模块670,但是可以理解的是,其并不属于手机的必须构成,完全可以根据需要在不改变发明的本质的范围内而省略。
处理器680是手机的控制中心,利用各种接口和线路连接整个手机的各个部分,通过运行或执行存储在存储器620内的软件程序和/或模块,以及调用存储在存储器620内的数据,执行手机的各种功能和处理数据,从而对手机进行整体监控。可选的,处理器680可包括一个或多个处理单元;优选的,处理器680可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器680中。
手机还包括给各个部件供电的电源690(比如电池),优选的,电源可以通过电源管理系统与处理器680逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。
尽管未示出,手机还可以包括摄像头、蓝牙模块等,在此不再赘述。
前述实施例中,各步骤方法流程可以基于图6所示的终端设备的结构实现。
本发明实施例还提供一种计算机存储介质,其中,该计算机存储介质可存储有程序,该程序执行时包括上述方法实施例中记载的任何一种网络定位方法 的部分或全部步骤。
需要说明的是,对于前述的各方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本发明并不受所描述的动作顺序的限制,因为依据本发明,某些步骤可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作和模块并不一定是本发明所必须的。
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其他实施例的相关描述。
在本申请所提供的几个实施例中,应该理解到,所揭露的装置,可通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性或其它的形式。
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。
另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储器中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储器中,包括若干指令用以使得一台计算机设备(可为个人计算机、服务器或者网 络设备等)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储器包括:U盘、只读存储器(ROM,Read-OnlyMemory)、随机存取存储器(RAM,RandomAccess Memory)、移动硬盘、磁碟或者光盘等各种可以存储程序代码的介质。
本领域普通技术人员可以理解上述实施例的各种方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,该程序可以存储于一计算机可读存储器中,存储器可以包括:闪存盘、只读存储器(英文:Read-Only Memory,简称:ROM)、随机存取器(英文:RandomAccess Memory,简称:RAM)、磁盘或光盘等。
以上对本发明实施例进行了详细介绍,本文中应用了具体个例对本发明的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本发明的方法及其核心思想;同时,对于本领域的一般技术人员,依据本发明的思想,在具体实施方式及应用范围上均会有改变之处,综上上述,本说明书内容不应理解为对本发明的限制。

Claims (20)

  1. 一种网络定位方法,其特征在于,包括:
    在检测到定位开关被打开时,扫描终端设备周围的N个Wifi,以获取所述N个Wifi的信息,所述N为大于1的整数;
    在扫描所述N个Wifi的过程中,启动定位功能;
    在结束扫描所述N个Wifi时,向位置服务器发送定位指令,所述定位指令携带所述N个Wifi的信息,所述定位指令用于指示所述位置服务器根据所述N个Wifi的信息确定所述终端设备的当前地理位置;
    接收所述位置服务器针对所述定位指令而返回的所述终端设备的当前地理位置。
  2. 根据权利要求1所述的方法,其特征在于,所述扫描终端设备周围的N个Wifi,包括:
    发送约定广播;
    在所述终端设备的Wifi模块接收到所述约定广播时,通过所述终端设备的Wifi模块扫描终端设备周围的N个Wifi。
  3. 根据权利要求1或2所述的方法,其特征在于,所述终端设备中关联记录有目标地理位置和M个Wifi的信息,其中,所述目标地理位置和所述M个Wifi的信息是当在预设时长内所述位置服务器返回给所述终端设备的地理位置为目标地理位置的次数超过预设阈值时,所述终端设备关联记录的。
  4. 根据权利要求3所述的方法,其特征在于,所述目标地理位置是所述位置服务器基于所述M个Wifi信息确定的,所述M个Wifi信息是所述终端设备发送给所述位置服务器的,且发送所述M个Wifi信息的发送时刻距离所述终端设备关联记录所述目标地理位置和所述M个Wifi的记录时刻最近。
  5. 根据权利要求4所述的方法,其特征在于,所述记录时刻距离当前系统时间小于或等于设定值。
  6. 根据权利要求3-5任一项所述的方法,其特征在于,所述向位置服务器发送定位指令之前,所述方法还包括:
    将所述N个Wifi的信息与所述M个Wifi的信息进行对比;
    若所述N个Wifi中不存在W个Wifi的信息与所述M个Wifi中的W个Wifi的信息相匹配,则向位置服务器发送定位指令,所述W大于或等于所述M/2。
  7. 根据权利要求6所述的方法,其特征在于,所述方法还包括:
    若所述N个Wifi中存在W个Wifi的信息与所述M个Wifi中的W个Wifi的信息相匹配,则将所述目标地理位置作为所述终端设备的当前地理位置。
  8. 根据权利要求1-7任一项所述的方法,其特征在于,所述方法还包括:
    在所述终端设备检测到当前界面包含需要地理位置的功能的情况下,触发所述定位开关打开。
  9. 根据权利要求1-8任一项所述的方法,所述Wifi的信息包括Wifi的MAC地址,Wifi的服务集标识(SSID),所述终端设备接收到Wifi的信号强度中的至少一种。
  10. 一种终端设备,其特征在于,包括:
    扫描模块,用于在检测到定位开关被打开时,扫描终端设备周围的N个Wifi,以获取所述N个Wifi的信息,所述N为大于1的整数;
    启动模块,用于在扫描所述N个Wifi的过程中,启动定位功能;
    发送模块,用于在结束扫描所述N个Wifi时,向位置服务器发送定位指令,所述定位指令携带所述N个Wifi的信息,所述定位指令用于指示所述位 置服务器根据所述N个Wifi的信息确定所述终端设备的当前地理位置;
    接收模块,用于接收所述位置服务器针对所述定位指令而返回的所述终端设备的当前地理位置。
  11. 根据权利要求10所述的方法,其特征在于,所述扫描模块具体用于:
    发送约定广播;
    在所述终端设备的Wifi模块接收到所述约定广播时,通过所述终端设备的Wifi模块扫描终端设备周围的N个Wifi。
  12. 根据权利要求10或11所述的终端设备,其特征在于,所述终端设备中关联记录有目标地理位置和M个Wifi的信息,其中,所述目标地理位置和所述M个Wifi的信息是当在预设时长内所述位置服务器返回给所述终端设备的地理位置为目标地理位置的次数超过预设阈值时,所述终端设备关联记录的。
  13. 根据权利要求12所述的终端设备,其特征在于,所述目标地理位置是所述位置服务器基于所述M个Wifi信息确定的,所述M个Wifi信息是所述终端设备发送给所述位置服务器的,且发送所述M个Wifi信息的发送时刻距离所述终端设备关联记录所述目标地理位置和所述M个Wifi的记录时刻最近。
  14. 根据权利要求13所述的终端设备,其特征在于,所述记录时刻距离当前系统时间小于或等于设定值。
  15. 根据权利要求12-14任一项所述的终端设备,其特征在于,所述终端设备还包括:
    对比模块,用于将所述N个Wifi的信息与所述M个Wifi的信息进行对比;
    所述发送模块具体用于:若所述N个Wifi中不存在W个Wifi的信息与所述M个Wifi中的W个Wifi的信息相匹配,则向位置服务器发送定位指令,所述W大于或等于所述M/2。
  16. 根据权利要求15所述的终端设备,其特征在于,所述终端设备还包括:
    定位模块,用于若所述N个Wifi中存在W个Wifi的信息与所述M个Wifi中的W个Wifi的信息相匹配,则将所述目标地理位置作为所述终端设备的当前地理位置。
  17. 根据权利要求10-16任一项所述的终端设备,其特征在于,所述终端设备还包括:
    触发模块,用于在所述终端设备检测到当前界面包含需要地理位置的功能的情况下,触发所述定位开关打开。
  18. 根据权利要求10-17任一项所述的终端设备,其特征在于,所述Wifi的信息包括Wifi的MAC地址,Wifi的服务集标识(SSID),所述终端设备接收到Wifi的信号强度中的至少一种。
  19. 一种终端设备,其特征在于,包括:
    存储有可执行程序代码的存储器;
    与所述存储器耦合的处理器;
    所述处理器调用所述存储器中存储的所述可执行程序代码,执行如权利要求1~权利要求9任一项所述的网络定位方法。
  20. 一种计算机可读存储介质,其特征在于,其存储用于电子数据交换的计算机程序,其中,所述计算机程序使得计算机执行如权利要求1-9任一项所述的方法。
PCT/CN2017/105149 2016-12-07 2017-09-30 一种网络定位方法及终端设备 WO2018103443A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201611117792.6 2016-12-07
CN201611117792.6A CN106507482B (zh) 2016-12-07 2016-12-07 一种网络定位方法及终端设备

Publications (1)

Publication Number Publication Date
WO2018103443A1 true WO2018103443A1 (zh) 2018-06-14

Family

ID=58330231

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/105149 WO2018103443A1 (zh) 2016-12-07 2017-09-30 一种网络定位方法及终端设备

Country Status (2)

Country Link
CN (1) CN106507482B (zh)
WO (1) WO2018103443A1 (zh)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110868345A (zh) * 2019-11-06 2020-03-06 Oppo广东移动通信有限公司 信息共享方法及相关产品
CN112565248A (zh) * 2020-12-02 2021-03-26 北京知道创宇信息技术股份有限公司 网络扫描调度方法、装置及控制设备
CN113518304A (zh) * 2021-03-18 2021-10-19 深圳云里物里科技股份有限公司 室内定位方法及装置
CN116321268A (zh) * 2023-03-06 2023-06-23 乾位智通(深圳)技术有限公司 检测数据记录系统、方法、装置和uwb模块检测装置

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106507482B (zh) * 2016-12-07 2019-07-26 Oppo广东移动通信有限公司 一种网络定位方法及终端设备
CN108040323B (zh) * 2017-12-05 2020-04-17 北京睿智荟聚科技发展有限公司 一种定位方法及装置
CN108668221A (zh) * 2018-04-28 2018-10-16 北京万兔思睿科技有限公司 一种智能定位系统及方法
CN111481114A (zh) * 2019-01-29 2020-08-04 北京奇虎科技有限公司 扫地机工作环境的检测方法、装置及扫地机

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103747520A (zh) * 2013-12-20 2014-04-23 百度在线网络技术(北京)有限公司 一种移动终端的定位方法和装置
CN104349456A (zh) * 2013-08-07 2015-02-11 中国电信股份有限公司 WiFi定位方法和WiFi定位平台
CN104837215A (zh) * 2015-04-14 2015-08-12 广东欧珀移动通信有限公司 一种无线热点的连接方法及终端
CN105100292A (zh) * 2014-05-12 2015-11-25 阿里巴巴集团控股有限公司 确定终端的位置的方法及装置
EP2952856A2 (en) * 2014-06-05 2015-12-09 Samsung Electronics Co., Ltd Method and apparatus for providing location information
CN106131767A (zh) * 2016-06-28 2016-11-16 河南航飞光电科技有限公司 一种结合WiFi和蓝牙的手机定位方法
CN106507482A (zh) * 2016-12-07 2017-03-15 广东欧珀移动通信有限公司 一种网络定位方法及终端设备

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8805405B2 (en) * 2011-07-27 2014-08-12 Unwired Planet, Llc System and method for providing location information for communications through an access network
US8989773B2 (en) * 2013-01-29 2015-03-24 Apple Inc. Sharing location information among devices
CN103533649B (zh) * 2013-10-25 2016-08-17 北京航空航天大学 一种室内外无缝定位系统
CN103813448A (zh) * 2014-02-26 2014-05-21 江苏亿通高科技股份有限公司 一种基于rssi的室内定位方法
CN103796308A (zh) * 2014-03-03 2014-05-14 成都西加云杉科技有限公司 用户终端定位的方法、装置和系统
CN104661305B (zh) * 2015-02-16 2019-01-01 百度在线网络技术(北京)有限公司 用于用户终端定位的方法、装置及服务端
CN105486302A (zh) * 2015-11-20 2016-04-13 魅族科技(中国)有限公司 一种地图显示方法及终端

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104349456A (zh) * 2013-08-07 2015-02-11 中国电信股份有限公司 WiFi定位方法和WiFi定位平台
CN103747520A (zh) * 2013-12-20 2014-04-23 百度在线网络技术(北京)有限公司 一种移动终端的定位方法和装置
CN105100292A (zh) * 2014-05-12 2015-11-25 阿里巴巴集团控股有限公司 确定终端的位置的方法及装置
EP2952856A2 (en) * 2014-06-05 2015-12-09 Samsung Electronics Co., Ltd Method and apparatus for providing location information
CN104837215A (zh) * 2015-04-14 2015-08-12 广东欧珀移动通信有限公司 一种无线热点的连接方法及终端
CN106131767A (zh) * 2016-06-28 2016-11-16 河南航飞光电科技有限公司 一种结合WiFi和蓝牙的手机定位方法
CN106507482A (zh) * 2016-12-07 2017-03-15 广东欧珀移动通信有限公司 一种网络定位方法及终端设备

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110868345A (zh) * 2019-11-06 2020-03-06 Oppo广东移动通信有限公司 信息共享方法及相关产品
CN112565248A (zh) * 2020-12-02 2021-03-26 北京知道创宇信息技术股份有限公司 网络扫描调度方法、装置及控制设备
CN112565248B (zh) * 2020-12-02 2023-06-02 北京知道创宇信息技术股份有限公司 网络扫描调度方法、装置及控制设备
CN113518304A (zh) * 2021-03-18 2021-10-19 深圳云里物里科技股份有限公司 室内定位方法及装置
CN116321268A (zh) * 2023-03-06 2023-06-23 乾位智通(深圳)技术有限公司 检测数据记录系统、方法、装置和uwb模块检测装置
CN116321268B (zh) * 2023-03-06 2023-11-03 乾位智通(深圳)技术有限公司 检测数据记录系统、方法、装置和uwb模块检测装置

Also Published As

Publication number Publication date
CN106507482B (zh) 2019-07-26
CN106507482A (zh) 2017-03-15

Similar Documents

Publication Publication Date Title
US10831161B2 (en) Method and device for sending communication message
WO2018103443A1 (zh) 一种网络定位方法及终端设备
US10649720B2 (en) Sound effect configuration method and system and related device
US11237724B2 (en) Mobile terminal and method for split screen control thereof, and computer readable storage medium
US11212677B2 (en) Method for accessing wireless network, and terminal device
WO2018103492A1 (zh) WiFi漫游的设置方法及终端设备
WO2018103441A1 (zh) 一种网络定位方法及终端设备
US20170315777A1 (en) Method, terminal, and storage medium for starting voice input function of terminal
WO2018049886A1 (zh) 建立热点的方法及终端设备
WO2018103439A1 (zh) 一种信息处理方法及终端设备
US10880728B2 (en) Method for data migration and terminal device
WO2017215635A1 (zh) 一种音效处理方法及移动终端
WO2018049884A1 (zh) 一种数据迁移方法及装置
WO2018049934A1 (zh) 一种数据迁移的方法及终端
US10687207B2 (en) Method for data migration and terminal
US20190286315A1 (en) Method for Sliding Response Acceleration and Related Products
WO2018049904A1 (zh) 数据迁移方法及相关设备
CN108322602B (zh) 一种处理应用无响应的方法、终端和计算机可读存储介质
WO2018049901A1 (zh) 数据迁移方法及相关设备
WO2018103440A1 (zh) 一种网络定位方法及终端设备
CN110891262A (zh) 一种蓝牙配对的方法、系统和终端设备
CN106535229B (zh) 一种WiFi信号接收灵敏度测试方法及移动终端
WO2018103379A1 (zh) 终端监测方法及移动终端
CN106294528B (zh) 一种实现信息发送的方法及装置
US20190200215A1 (en) Method for Migrating Data and Terminal

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17878907

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 17878907

Country of ref document: EP

Kind code of ref document: A1