WO2019036939A1 - 一种定位方法及装置 - Google Patents

一种定位方法及装置 Download PDF

Info

Publication number
WO2019036939A1
WO2019036939A1 PCT/CN2017/098675 CN2017098675W WO2019036939A1 WO 2019036939 A1 WO2019036939 A1 WO 2019036939A1 CN 2017098675 W CN2017098675 W CN 2017098675W WO 2019036939 A1 WO2019036939 A1 WO 2019036939A1
Authority
WO
WIPO (PCT)
Prior art keywords
terminal
positioning
location
service
target
Prior art date
Application number
PCT/CN2017/098675
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 华为技术有限公司
Priority to PCT/CN2017/098675 priority Critical patent/WO2019036939A1/zh
Priority to CA3073457A priority patent/CA3073457C/en
Priority to CN201780067329.1A priority patent/CN109891934B/zh
Priority to EP17922695.6A priority patent/EP3664513B1/en
Priority to US16/640,851 priority patent/US11212652B2/en
Publication of WO2019036939A1 publication Critical patent/WO2019036939A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/30Services specially adapted for particular environments, situations or purposes
    • H04W4/33Services specially adapted for particular environments, situations or purposes for indoor environments, e.g. buildings
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01SRADIO DIRECTION-FINDING; RADIO NAVIGATION; DETERMINING DISTANCE OR VELOCITY BY USE OF RADIO WAVES; LOCATING OR PRESENCE-DETECTING BY USE OF THE REFLECTION OR RERADIATION OF RADIO WAVES; ANALOGOUS ARRANGEMENTS USING OTHER WAVES
    • G01S5/00Position-fixing by co-ordinating two or more direction or position line determinations; Position-fixing by co-ordinating two or more distance determinations
    • G01S5/01Determining conditions which influence positioning, e.g. radio environment, state of motion or energy consumption
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01SRADIO DIRECTION-FINDING; RADIO NAVIGATION; DETERMINING DISTANCE OR VELOCITY BY USE OF RADIO WAVES; LOCATING OR PRESENCE-DETECTING BY USE OF THE REFLECTION OR RERADIATION OF RADIO WAVES; ANALOGOUS ARRANGEMENTS USING OTHER WAVES
    • G01S19/00Satellite radio beacon positioning systems; Determining position, velocity or attitude using signals transmitted by such systems
    • G01S19/38Determining a navigation solution using signals transmitted by a satellite radio beacon positioning system
    • G01S19/39Determining a navigation solution using signals transmitted by a satellite radio beacon positioning system the satellite radio beacon positioning system transmitting time-stamped messages, e.g. GPS [Global Positioning System], GLONASS [Global Orbiting Navigation Satellite System] or GALILEO
    • G01S19/42Determining position
    • G01S19/48Determining position by combining or switching between position solutions derived from the satellite radio beacon positioning system and position solutions derived from a further system
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01SRADIO DIRECTION-FINDING; RADIO NAVIGATION; DETERMINING DISTANCE OR VELOCITY BY USE OF RADIO WAVES; LOCATING OR PRESENCE-DETECTING BY USE OF THE REFLECTION OR RERADIATION OF RADIO WAVES; ANALOGOUS ARRANGEMENTS USING OTHER WAVES
    • G01S5/00Position-fixing by co-ordinating two or more direction or position line determinations; Position-fixing by co-ordinating two or more distance determinations
    • G01S5/02Position-fixing by co-ordinating two or more direction or position line determinations; Position-fixing by co-ordinating two or more distance determinations using radio waves
    • G01S5/0252Radio frequency fingerprinting
    • G01S5/02521Radio frequency fingerprinting using a radio-map
    • 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

Definitions

  • the embodiments of the present application relate to the field of communications technologies, and in particular, to a positioning method and apparatus.
  • the positioning service of a mobile terminal refers to acquiring the location information of the terminal through a specific positioning technology, and then marking the service of the location of the located terminal on the electronic map.
  • indoor positioning can be performed based on a Wireless-Fidelity (Wi-Fi) signal or a Bluetooth (BT) signal with better signal quality.
  • Wi-Fi Wireless-Fidelity
  • BT Bluetooth
  • the terminal since the terminal has the characteristics of real-time movement, when the user carries the terminal to enter the room from the outside or enters the room from the indoor, the accuracy and speed of the positioning by the terminal using the above method will be significantly reduced.
  • the terminal is positioned by the GPS signal outdoors.
  • the GPS signal will gradually decay until the terminal cannot detect the GPS signal or the GPS signal strength is low, then the terminal will be triggered to re-select other
  • the positioning method for example, enables the Wi-Fi module to perform positioning based on the detected Wi-Fi signal. This switching process generally takes a long time, and the terminal cannot provide a more accurate positioning result for the user during the switching process.
  • the embodiment of the present application provides a positioning method and device, which can provide a positioning service more accurately and quickly when the terminal switches between indoors and outdoors.
  • an embodiment of the present application provides a positioning method, including: a terminal acquiring an outdoor positioning result by using an outdoor positioning service; and when the satellite information providing the outdoor positioning service meets a preset condition, indicating that the terminal has an indoor positioning requirement at this time Then, the terminal may try to obtain the indoor positioning result through the indoor positioning service. If the indoor positioning result is successfully obtained, the terminal switches the outdoor positioning service to the indoor positioning service.
  • the terminal does not passively wait for the currently used positioning service to fail, but triggers the terminal to use the new positioning service to locate, but actively detects the current positioning scene during the positioning process, and then selects the current positioning.
  • the positioning method with higher precision in the positioning scenario locates the terminal, thereby reducing the length of time consumed by switching the positioning service between indoors and outdoors while ensuring the positioning accuracy, and improving the user experience.
  • the satellite information includes: the number of target satellites X (X ⁇ 0) providing the positioning service, and the target satellite is: the signal-to-noise ratio of the satellite signals transmitted in all the satellites providing the positioning service to the terminal.
  • a satellite larger than the preset value, at this time, the satellite can provide an effective positioning service for the terminal; in addition, the number of satellites capable of providing an effective positioning service in different positioning scenarios is different, and therefore, the preset conditions can be set as follows: X ⁇ M or X ⁇ N, 0 ⁇ M ⁇ N, that is, when the number of target satellites is relatively large or relatively small, it can be considered that the positioning scene at this time is an indoor positioning scene.
  • the terminal when the satellite information providing the outdoor positioning service satisfies a preset condition, the terminal attempts to obtain the indoor positioning result through the indoor positioning service, including: when X ⁇ M or X ⁇ N, the terminal determines and The distance between the candidate buildings in the target area, the target area is the preset area to which the outdoor positioning result belongs; the terminal uses the candidate building whose distance is less than the preset value as the target building; the terminal initiates the indoor positioning service to try to acquire the terminal at the target Indoor positioning results within the building.
  • the terminal can identify the terminal to perform the indoor positioning service according to the number of target satellites detected in real time, and then trigger the terminal to determine the specific target building for indoor positioning according to the outdoor positioning result when the terminal has the indoor positioning service demand, and try to target the target building.
  • the indoor positioning of the terminal is performed, so that the seamless switching between the indoor positioning service and the outdoor positioning service can be quickly and accurately realized, thereby improving the user experience.
  • the method when the indoor positioning result is successfully obtained, the method further includes: the terminal stops providing the outdoor positioning service, thereby reducing power consumption when the terminal provides the positioning function.
  • the method further includes: when the terminal fails to obtain the indoor positioning result of the terminal continuously for consecutive Y (Y ⁇ 1) times, the terminal will indoor The location service is switched to the outdoor location service. That is to say, when the terminal enters the outdoor room from the indoors, the current positioning scene can be actively detected during the positioning process, and then the positioning method with higher precision in the current positioning scene is selected to locate the terminal, thereby ensuring the positioning accuracy. It reduces the time for the terminal to switch location service from indoor to outdoor.
  • the method further includes: if the indoor positioning result is not obtained, the terminal continues to obtain the outdoor positioning result by using the outdoor positioning service.
  • the method further includes: determining, by the terminal, a distance from the target location, where the target location is the destination of the terminal movement in the positioning period; and the terminal according to the distance from the target location, Adjust the size of this positioning cycle.
  • the value of the positioning period is larger, thereby reducing the power consumption of the terminal; when the distance between the terminal and the target location is smaller, the positioning period is taken.
  • the smaller the value the better the positioning result can be obtained in real time.
  • the method before the terminal determines the distance from the target location, the method further includes: the terminal, as the target location, a candidate location that is closest to the terminal among the at least two preset candidate locations.
  • the terminal attempts to obtain the indoor positioning result by using the indoor positioning service, including: the terminal extracts a signal characteristic parameter from the currently received target wireless signal, where the target wireless signal is all the wireless signals detected by the terminal. a wireless signal that satisfies a preset indoor positioning condition; subsequently, the terminal sends the signal characteristic parameter to the location server, so that the location server determines the indoor positioning result of the terminal according to the signal characteristic parameter, thereby avoiding not meeting the preset indoor positioning.
  • the interference generated by the conditional Wi-Fi signal when subsequently matching the location fingerprint in the Wi-Fi fingerprint library of the target building.
  • the method further includes: determining, by the terminal, the signal characteristics of the target wireless signal acquired at the same location within the preset time period.
  • the difference between the parameter and the preset location fingerprint at the location, the location fingerprint is used to indicate the distribution of the Wi-Fi signal recorded at the location in the preset Wi-Fi fingerprint library; if the difference tends to be consistent, Explain The actual location fingerprint at the location changes, then the terminal can update the location fingerprint at the location to improve the accuracy of the fingerprints in each location in the Wi-Fi fingerprint library, thereby improving the positioning accuracy in subsequent indoor positioning.
  • an embodiment of the present application provides a terminal, including: an outdoor positioning unit, configured to: obtain an outdoor positioning result by using an outdoor positioning service; and a processing unit, configured to: determine whether the satellite information that provides the outdoor positioning service satisfies
  • An indoor positioning unit is configured to: when the satellite information providing the outdoor positioning service meets a preset condition, attempt to obtain an indoor positioning result by using an indoor positioning service, where the preset condition is used to indicate that the terminal has an indoor positioning requirement; If the indoor positioning result is successfully obtained, the outdoor positioning service is switched to the indoor positioning service.
  • the satellite information includes: the number of target satellites X providing the positioning service, and the target satellite is a satellite that provides a positioning service to the terminal, and the satellite signal transmitted by all the satellites in the satellite is greater than a preset value.
  • X ⁇ 0; the preset condition is: X ⁇ M or X ⁇ N, 0 ⁇ M ⁇ N.
  • the processing unit is further configured to determine, when X ⁇ M or X ⁇ N, a distance from a candidate building in the target area, where the target area is a pre- The area is set as the target building; the indoor positioning unit is specifically configured to: start the indoor positioning service to try to obtain the indoor positioning result of the terminal in the target building.
  • the outdoor positioning unit is further configured to: stop providing the outdoor positioning service.
  • the processing unit is further configured to: when the terminal does not successfully obtain the indoor positioning result of the terminal for consecutive Y times, switch the indoor positioning service to the outdoor positioning service, Y ⁇ 1.
  • the outdoor positioning unit is further configured to: if the indoor positioning result is not obtained, continue to obtain an outdoor positioning result by using the outdoor positioning service.
  • the processing unit is further configured to: determine a distance from a target location, which is a destination of the terminal movement during the positioning period; according to a distance from the target location , adjust the size of the positioning cycle.
  • the value of the positioning period when the distance between the terminal and the target position is larger, the value of the positioning period is larger; when the distance between the terminal and the target position is smaller, the positioning period is taken. The smaller the value.
  • the processing unit is further configured to: use, as the target location, a candidate location that is closest to the terminal among the at least two preset candidate locations.
  • the indoor positioning unit is specifically configured to: extract a signal feature parameter from a currently received target wireless signal, where the target wireless signal meets a preset indoor of all wireless signals detected by the terminal And locating the wireless signal; sending the signal characteristic parameter to the location server, so that the location server determines the indoor positioning result of the terminal according to the signal characteristic parameter.
  • the processing unit is further configured to: determine, between the signal feature parameter in the target wireless signal acquired at the same location and the preset location fingerprint at the location, in the preset time period The difference is that the location fingerprint is used to indicate the distribution of the Wi-Fi signal recorded at the location in the preset Wi-Fi fingerprint library; if the difference tends to be consistent, the location fingerprint at the location is updated.
  • an embodiment of the present application provides a terminal, including: a processor, a memory, a bus, and a communication interface; the memory is configured to store a computer execution instruction, and the processor is connected to the memory through the bus, when the terminal is running The processor executes the computer-executed instructions stored in the memory to cause the terminal to perform the above-mentioned A positioning method.
  • the embodiment of the present application provides a computer readable storage medium, where the computer readable storage medium stores an instruction, when the instruction is run on any of the foregoing terminals, causing the terminal to perform any one of the foregoing positioning methods. .
  • an embodiment of the present application provides a computer program product including instructions, when the terminal is running on any of the foregoing terminals, causing the terminal to perform any of the foregoing positioning methods.
  • the names of the foregoing terminals are not limited to the devices themselves, and in actual implementation, the devices may appear under other names. As long as the functions of the respective devices are similar to the embodiments of the present application, they are within the scope of the claims and their equivalents.
  • FIG. 1 is a schematic structural diagram 1 of a terminal according to an embodiment of the present disclosure
  • FIG. 2 is a schematic structural diagram of an Android system according to an embodiment of the present application.
  • FIG. 3A is a schematic diagram 1 of an architecture of an SDK in an Android system according to an embodiment of the present application.
  • FIG. 3B is a schematic diagram 2 of an architecture of an SDK in an Android system according to an embodiment of the present application.
  • FIG. 4 is a schematic diagram 1 of an application scenario of a positioning method according to an embodiment of the present disclosure
  • FIG. 5 is a schematic flowchart diagram of a positioning method according to an embodiment of the present application.
  • FIG. 6 is a schematic diagram 2 of an application scenario of a positioning method according to an embodiment of the present disclosure.
  • FIG. 7 is a schematic diagram 3 of an application scenario of a positioning method according to an embodiment of the present disclosure.
  • FIG. 8 is a schematic diagram 4 of an application scenario of a positioning method according to an embodiment of the present disclosure.
  • FIG. 9 is a schematic diagram 5 of an application scenario of a positioning method according to an embodiment of the present disclosure.
  • FIG. 10 is a schematic diagram 6 of an application scenario of a positioning method according to an embodiment of the present disclosure.
  • FIG. 11 is a schematic diagram 7 of an application scenario of a positioning method according to an embodiment of the present disclosure.
  • FIG. 12 is a schematic diagram 8 of an application scenario of a positioning method according to an embodiment of the present disclosure.
  • FIG. 13 is a schematic diagram 9 of an application scenario of a positioning method according to an embodiment of the present disclosure.
  • FIG. 14 is a schematic diagram of an application scenario of a positioning method according to an embodiment of the present disclosure.
  • FIG. 15 is a schematic diagram of an application scenario of a positioning method according to an embodiment of the present disclosure.
  • FIG. 16 is a schematic structural diagram 2 of a terminal according to an embodiment of the present disclosure.
  • first and second are used for descriptive purposes only, and are not to be construed as indicating or implying a relative importance or implicitly indicating the number of technical features indicated. Thus, features defining “first” and “second” may include one or more of the features either explicitly or implicitly. In the description of the embodiments of the present application, “multiple” means two or more unless otherwise stated.
  • a positioning method provided by an embodiment of the present application can be applied to a mobile phone, a terminal, an augmented reality (AR), a virtual reality (VR) device, a tablet computer, a notebook computer, a super mobile personal computer (UMPC), a netbook, and a personal digital assistant.
  • AR augmented reality
  • VR virtual reality
  • UMPC super mobile personal computer
  • PDA positioning function
  • the terminal in the embodiment of the present application may be the mobile phone 100.
  • the embodiment will be specifically described below by taking the mobile phone 100 as an example. It should be understood that the illustrated mobile phone 100 is only one example of the above terminal, and the mobile phone 100 may have more or fewer components than those shown in the figure, two or more components may be combined, or Has a different component configuration.
  • the mobile phone 100 may specifically include: a processor 101, a radio frequency (RF) circuit 102, a memory 103, a touch screen 104, a Bluetooth module 105, one or more sensors 106, a Wi-Fi module 107, a positioning module 108, Components such as audio circuit 109, peripheral interface 110, and power system 111. These components can communicate over one or more communication buses or signal lines (not shown in Figure 1). It will be understood by those skilled in the art that the hardware structure shown in FIG. 1 does not constitute a limitation to a mobile phone, and the mobile phone 100 may include more or less components than those illustrated, or some components may be combined, or different component arrangements.
  • RF radio frequency
  • the processor 101 is a control center of the mobile phone 100, and connects various parts of the mobile phone 100 by using various interfaces and lines, and executes the mobile phone 100 by running or executing an application stored in the memory 103 and calling data stored in the memory 103.
  • the processor 101 may include one or more processing units; for example, the processor 101 may be a Kirin 960 chip manufactured by Huawei Technologies Co., Ltd.
  • the processor 101 may further include a fingerprint verification chip for verifying the collected fingerprint.
  • the radio frequency circuit 102 can be used to receive and transmit wireless signals during transmission or reception of information or calls.
  • the radio frequency circuit 102 can process the downlink data of the base station and then process it to the processor 101; in addition, transmit the data related to the uplink to the base station.
  • radio frequency circuits include, but are not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like.
  • the radio frequency circuit 102 can also communicate with other devices through wireless communication.
  • the wireless communication can use any communication standard or protocol, including but not limited to global mobile communication systems, general packet radio services, code division multiple access, wideband code division multiple access, long term evolution, email, short message service, and the like.
  • the memory 103 is used to store applications and data, and the processor 101 executes various functions and data processing of the mobile phone 100 by running applications and data stored in the memory 103.
  • the memory 103 mainly includes a storage program area and a storage data area, wherein the storage program area can store an operating system, an application required for at least one function (such as a sound playing function, an image playing function, etc.); the storage data area can be stored according to the use of the mobile phone. Data created at 100 o'clock (such as audio data, phone book, etc.).
  • the memory 103 may include high speed random access memory (RAM), and may also include nonvolatile memory such as a magnetic disk storage device, a flash memory device, or other volatile solid state storage device.
  • the memory 103 can store various operating systems, for example, developed by Apple. Operating system, developed by Google Inc. Operating system, etc.
  • the above memory 103 may be independent and connected to the processor 101 via the above communication bus; the memory 103 may also be integrated with the processor 101.
  • the touch screen 104 may specifically include a touch screen 104-1 and a display screen 104-2.
  • the touch screen 104-1 can collect touch events on or near the user of the mobile phone 100 (for example, the user uses a finger, a stylus, or the like on the touch screen 104-1 or on the touch screen 104.
  • the operation near -1), and the collected touch information is sent to other devices (for example, processor 101).
  • the touch event of the user in the vicinity of the touch screen 104-1 may be referred to as a hovering touch; the hovering touch may refer to the user.
  • the touch screen 104-1 can be implemented by various types such as resistive, capacitive, infrared, and surface acoustic waves.
  • a display screen (also referred to as display screen) 104-2 can be used to display information entered by the user or information provided to the user as well as various menus of the handset 100.
  • the display 104-2 can be configured in the form of a liquid crystal display, an organic light emitting diode, or the like.
  • the touch screen 104-1 may be overlaid on the display screen 104-2. When the touch screen 104-1 detects a touch event on or near it, the touch screen 104-1 transmits to the processor 101 to determine the type of the touch event, and then processes The device 101 can provide a corresponding visual output on the display 104-2 depending on the type of touch event.
  • the touch screen 104-1 and the display screen 104-2 function as two separate components to implement the input and output functions of the handset 100, in some embodiments, the touch screen 104- 1 is integrated with the display screen 104-2 to implement the input and output functions of the mobile phone 100. It is to be understood that the touch screen 104 is formed by stacking a plurality of layers of materials. In the embodiment of the present application, only the touch screen (layer) and the display screen (layer) are shown, and other layers are not described in the embodiment of the present application. .
  • the touch screen 104-1 can be disposed on the front side of the mobile phone 100 in the form of a full-board
  • the display screen 104-2 can also be disposed on the front side of the mobile phone 100 in the form of a full-board, so that no border can be realized on the front side of the mobile phone. Structure.
  • the mobile phone 100 can also have a fingerprint recognition function.
  • a fingerprint capture device can be configured on the back of the handset 100 (eg, below the rear camera) or on the front side of the handset 100 (eg, below the touch screen 104).
  • a fingerprint collection device can be configured in the touch screen 104 to implement a fingerprint recognition function, that is, the fingerprint collection device can be integrated with the touch screen 104 to implement the fingerprint recognition function of the mobile phone 100.
  • the fingerprint capture device is disposed in the touch screen 104, may be part of the touch screen 104, or may be otherwise disposed in the touch screen 104.
  • the main component of the fingerprint collection device in the embodiment of the present application is a fingerprint sensor, which can adopt any type of sensing technology, including but not limited to optical, capacitive, piezoelectric or ultrasonic sensing technologies.
  • the mobile phone 100 may further include a Bluetooth module 105 for implementing data exchange between the mobile phone 100 and other short-distance terminals (such as mobile phones, smart watches, etc.).
  • the Bluetooth module in the embodiment of the present application may be an integrated circuit or a Bluetooth chip or the like.
  • the handset 100 can also include at least one type of sensor 106, 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 screen of the touch screen 104 according to the brightness of the ambient light, and the proximity sensor may turn off the display when the mobile phone 100 moves to the ear.
  • Power supply As a kind of motion sensor, 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. It 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.
  • the mobile phone 100 can also be configured with gyroscopes, barometers, hygrometers, thermometers, infrared sensors and other sensors, here Let me repeat.
  • the Wi-Fi module 107 is configured to provide the mobile phone 100 with network access complying with the Wi-Fi related standard protocol, and the mobile phone 100 can access the Wi-Fi access point through the Wi-Fi module 107, thereby helping the user to send and receive emails, Browsing web pages and accessing streaming media, etc., it provides users with wireless broadband Internet access.
  • the Wi-Fi module 107 can also function as a Wi-Fi wireless access point, and can be other terminals. Wi-Fi internet access is available.
  • the positioning module 108 is configured to provide a location location service for the mobile phone 100. It can be understood that the positioning module 108 can be specifically a receiver of a positioning system such as a global positioning system (GPS) or a Beidou satellite navigation system, or a Russian GLONASS. After receiving the geographical location sent by the positioning system, the positioning module 108 sends the information to the processor 101 for processing, or sends it to the memory 103 for storage.
  • GPS global positioning system
  • Beidou satellite navigation system Beidou satellite navigation system
  • Russian GLONASS Russian GLONASS
  • the positioning module 108 can also be a receiver for assisting an Global Positioning System (AGPS), which assists the positioning module 108 in performing ranging and positioning services by acting as a secondary server, in which case
  • AGPS Global Positioning System
  • the secondary location server provides location assistance over a wireless communication network in communication with a terminal, such as the location module 108 (ie, a GPS receiver) of the handset 100.
  • the positioning module 108 can also be a Wi-Fi based access point or Bluetooth based positioning technology.
  • Wi-Fi positioning since each Wi-Fi access point has a globally unique MAC address, the terminal can scan and collect broadcasts of surrounding Wi-Fi access points when Wi-Fi is turned on. Signal, so the MAC address broadcasted by the Wi-Fi access point can be obtained; the terminal sends the data (such as the MAC address) capable of indicating the Wi-Fi access point to the location server through the wireless communication network, and the terminal server retrieves The geographic location of each Wi-Fi access point, combined with the strength of the Wi-Fi broadcast signal, calculates the geographic location of the terminal and sends it to the location module 108 of the terminal.
  • the data such as the MAC address
  • the terminal may identify that the current positioning scenario is an indoor positioning scenario or an outdoor positioning scenario by using the positioning module 108. Furthermore, the terminal can select a positioning method with higher precision in the current positioning scenario to locate the terminal. For example, when the positioning module 108 provides an outdoor positioning service for the terminal based on the GPS signal, if it is determined that the current positioning scenario is an indoor positioning scenario, the terminal may be triggered to attempt to perform indoor positioning of the terminal through the detected Wi-Fi signal. Then, if the indoor positioning result can be successfully obtained, the terminal can stop the outdoor positioning of the terminal and switch the current positioning service to the indoor positioning service; of course, if the indoor positioning result is not obtained, the terminal can continue to use the GPS signal to the terminal. Perform outdoor positioning.
  • the terminal does not passively wait for the currently used positioning service to fail, but triggers the terminal to use the new positioning service to locate, but actively detects the current positioning scene during the positioning process, and then selects the current positioning.
  • the positioning method with higher precision in the positioning scenario locates the terminal, thereby reducing the length of time consumed by switching the positioning service between indoors and outdoors while ensuring the positioning accuracy, and improving the user experience.
  • the audio circuit 109, the speaker 113, and the microphone 114 can provide an audio interface between the user and the handset 100.
  • the audio circuit 109 can transmit the converted electrical data of the received audio data to the speaker 113 for conversion to the sound signal output by the speaker 113; on the other hand, the microphone 114 converts the collected sound signal into an electrical signal by the audio circuit 109. After receiving, it is converted into audio data, and then the audio data is output to the RF circuit 102 for transmission to, for example, another mobile phone, or the audio data is output to the memory 103 for further processing.
  • the peripheral interface 110 is used to provide various interfaces for external input/output devices (such as a keyboard, a mouse, an external display, an external memory, a subscriber identity module card, etc.).
  • external input/output devices such as a keyboard, a mouse, an external display, an external memory, a subscriber identity module card, etc.
  • a universal serial bus (USB) interface is connected to the mouse, and a metal contact on the card slot of the subscriber identification module is connected to a subscriber identity module card (SIM) card provided by the telecommunications carrier.
  • SIM subscriber identity module card
  • Peripheral interface 110 can be used to couple the external input/output peripherals described above to processor 101 and memory 103.
  • the mobile phone 100 may further include a power supply device 111 (such as a battery and a power management chip) that supplies power to the various components.
  • the battery may be logically connected to the processor 101 through the power management chip to manage charging, discharging, and power management through the power supply device 111. And other functions.
  • the mobile phone 100 may further include a camera (front camera and/or rear camera), a flash, a micro projection device, a near field communication (NFC) device, and the like, and details are not described herein.
  • a camera front camera and/or rear camera
  • a flash a flash
  • micro projection device a micro projection device
  • NFC near field communication
  • the above-mentioned mobile phone 100 can be operated in an operating system such as Android or IOS, and the embodiment of the present application does not impose any limitation on this.
  • the Android operating system can be divided into four layers, from the upper layer to the lower layer, respectively, the application layer 201 (ie, the APP layer), the application framework layer 202 (ie, the Framework layer), and the system.
  • the runtime layer 203 i.e., the Libraries layer
  • the Linux kernel layer 204 are run.
  • the Linux kernel layer 204 can be used to control the security, memory management, process management, network stack, and driver model of the mobile phone 100.
  • the Linux kernel layer 204 also serves as an abstraction layer between hardware (eg, CPU, network card, memory, etc.) and the software stack, which hides specific hardware details for the upper layer (system runtime layer 203, application framework layer 202, and applications).
  • Program layer 201) provides a unified service.
  • the system runtime layer 203 includes some C/C++ libraries, for example, a media library, a system C library, and a display management library (Surface Manager). These libraries can be used by different components in the Android system, and the system runtime layer 203 can pass.
  • the Framework layer 202 provides services to developers.
  • the Framework layer 202 provides developers with an API (Application Programming Interface) framework that can be used to fully access the application. Specifically, the Framework layer 202 provides a very large number of APIs for developing applications, and an APP that satisfies related business needs can be constructed by calling the corresponding API.
  • API Application Programming Interface
  • the application layer 201 mainly includes an APP written in the Java language, for example, providing a positioning function map APP, etc., when the user operates the operation interface on the APP, by calling the related API in the Framework layer 202, and the system running library layer 203 or the Linux kernel.
  • Layer 204 interacts to implement functions corresponding to the operational interface.
  • the positioning method provided by the present application may be run in the application layer 201 or the Framework layer 202 in the form of a software development kit (SDK) 205.
  • SDK refers to a collection of development tools used by some software engineers to build application software for specific software packages, software frameworks, hardware platforms, operating systems, etc. It can provide some API files for an APP design language, and can also include Complex hardware that can communicate with an embedded system.
  • the SDK 205 can be integrated in the Framework layer 202 as a system service to provide location services to individual APPs in the application layer 201.
  • the foregoing SDK 205 may include a Location Client API, a Location Server, an Outdoor Positioning, and an Indoor Positioning.
  • the positioning service client API can be used to provide an application for positioning services in the application layer 201.
  • any APP in the application layer 201 can implement an indoor location service or an outdoor location service by calling an API in the SDK 205.
  • the location service module can be used to identify the current location scenario as an indoor location scenario or an outdoor location scenario, and switch between the indoor location service and the outdoor location service according to the current location scenario.
  • the location service module can also be used to enable or disable the indoor positioning service and the outdoor positioning service, and receive the positioning result returned by the indoor positioning service and the outdoor positioning service (for example, indoor positioning result, outdoor positioning result), etc. There are no restrictions on this.
  • the outdoor positioning module is used to locate the terminal outdoor and obtain the outdoor positioning result.
  • the outdoor positioning module can perform outdoor positioning based on the GPS service or the network service provided by the base station, and can also measure and count the number of steps, steps, and directions of the user walking in conjunction with the Pedestrian Dead Reckoning (PDR) technology. Information such as the user's walking trajectory and position.
  • PDR Pedestrian Dead Reckoning
  • the indoor positioning module is used for indoor positioning of the terminal to obtain indoor positioning results.
  • the indoor positioning module can perform indoor positioning based on the Wi-Fi service or the Bluetooth service.
  • the PDR technology can also be used to measure and count the number of steps, steps, and directions of the user, and calculate the user's walking trajectory and position. The information in this application does not limit this.
  • the above SDK 205 may also be integrated into one or more specific APPs in the application layer 201 to provide location services for these specific APPs.
  • the user when downloading the APP1 from the application market, the user can simultaneously download the SDK 205 that provides the location service for the APP1.
  • the terminal can install the SDK 205 in the APP1, and the subsequent APP1 can implement the location service by calling the location service client in the SDK 205.
  • the API identifies the indoor positioning scene and the outdoor positioning scene, and provides corresponding positioning services for APP1.
  • the location service provided by the terminal is not specifically indicated as an indoor location service or an outdoor location service, the location service may be an indoor location service or an outdoor location service.
  • the embodiment does not impose any limitation on this.
  • the positioning method provided by the embodiment of the present application may be applied to a process in which the positioning APP provides a positioning service to a user.
  • the APP 1 can be opened for autonomous tour.
  • the APP 1 can perform real-time positioning on the terminal to determine the current location of the user (ie, the terminal location 301), and in turn, automatically play a voice introduction of the attraction closest to the terminal location 301.
  • the outdoor location 302 there are some scenic spots for the outdoor location 302, for example, Qianxingmen, Fengshenmen, etc.
  • some attractions are indoor locations 303, for example, a treasure chest, a painting hall, and the like.
  • the user often switches between the indoor location 303 and the outdoor location 302 when visiting various attractions.
  • the user originally visited the front star gate (outdoor), and when the user enters the treasure chest (indoor), the terminal needs to be automatically recognized.
  • the current positioning scene changes, thereby switching between the indoor positioning service and the outdoor positioning service for different positioning scenarios.
  • the time to identify the location scene transition is too long (eg, 30 seconds)
  • the user is likely to have entered a new attraction, causing the user to miss the voice introduction of the relevant attraction.
  • a positioning method provided by the embodiment of the present application, as shown in FIG. 5, includes:
  • the terminal obtains an outdoor positioning result by using an outdoor positioning service.
  • a satellite positioning chip (such as a GPS) for providing an outdoor positioning service may be disposed in the terminal. Chip), and then, when the user triggers the location service on the terminal, for example, when the user opens the APP1, the terminal can trigger the satellite positioning chip to send a positioning request to one or more GPS satellites (a total of 24 GPS satellites in the world), and then The GPS satellite uses the spatially distributed satellite to intersect with the ground point to obtain the ground point position (for example, the latitude and longitude coordinates of the ground point), that is, the outdoor positioning result, and returns the outdoor positioning result to the satellite positioning chip.
  • the satellite positioning chip such as a GPS for providing an outdoor positioning service may be disposed in the terminal. Chip
  • the terminal can trigger the satellite positioning chip to send a positioning request to one or more GPS satellites (a total of 24 GPS satellites in the world), and then
  • the GPS satellite uses the spatially distributed satellite to intersect with the ground point to obtain the ground point position (for example, the latitude and longitude coordinates of the ground point), that is, the
  • the terminal can also display the outdoor positioning result obtained at this time on the electronic map.
  • the user uses APP1 to perform autonomous tour. After the terminal starts APP1, the terminal can obtain the current outdoor positioning result through the outdoor location service. For example, if the outdoor positioning result indicates that the user is currently located in the front star gate, the APP1 can be triggered automatically. Play the voice introduction of the former Star Gate.
  • the terminal generally triggers the positioning service periodically, for example, triggering the outdoor positioning service to obtain the outdoor positioning result every 2 seconds. Then, if the terminal does not obtain the outdoor positioning result in the step 501 (for example, the outdoor positioning result cannot be obtained when the GPS signal is weak), the terminal may wait for the next positioning period to continue to perform the outdoor positioning in step 501. There are no restrictions on this.
  • the terminal acquires the number of target satellites that currently provide location services for the terminal, X ⁇ 0.
  • the number of satellites capable of providing effective location services in different location scenarios is different.
  • the number of satellites capable of providing effective positioning services is usually 12 to 20.
  • the number of satellites capable of providing effective positioning services is usually 0 to 5
  • the indoor and outdoor interfaces are In the positioning scenario, the number of satellites that can provide effective positioning services is usually 6 to 12.
  • the terminal may further determine the number X of target satellites that provide the positioning service for the terminal at this time, and then identify the current positioning scenario as indoor according to the target satellite number X. Locate the scene or locate the scene outdoors.
  • the target satellite refers to one or more satellites whose satellite signal (for example, GPS signal) received by the terminal has a signal to noise ratio greater than a threshold value, and the signal to noise ratio of the satellite signal is greater than a threshold value. Satellites can provide effective location services for terminals.
  • the method for determining the target satellite according to the signal to noise ratio of the satellite signal may be various.
  • the satellite providing the satellite signal may be used as the target satellite, and the present invention The embodiment does not impose any limitation on this.
  • the satellite providing the outdoor positioning service to the terminal includes the GPS satellite 1-GPS satellite 7 , and the GPS satellite received by the terminal 1 -
  • the terminal may determine the number X of the target satellites according to the satellite signals sent by the received satellites, or may obtain the satellites in the terminal again after acquiring the outdoor positioning result.
  • the positioning chip acquires the satellite signal to determine the number of the target satellites X, that is, the order of execution between step 501 and step 502 is not limited in the embodiment of the present application.
  • some indoors may be provided with a GPS signal amplifier, which can be used to amplify the GPS signal transmitted by the GPS satellite.
  • GPS signal amplifiers are typically used by virtual GPS satellites. Simulating real GPS satellites, the number of GPS satellites typically simulated will be greater than the total number of real GPS satellites (ie, greater than 24). Therefore, when the number of target satellites X acquired by the terminal is greater than a certain number (for example, greater than 20), the current positioning scenario may also be considered as an indoor positioning scenario.
  • the terminal may also identify the current location scenario according to one or more of the other satellite information, such as the GPS signal strength, the transmission delay, and the noise figure.
  • the other satellite information such as the GPS signal strength, the transmission delay, and the noise figure.
  • the terminal continues to perform looping execution of steps 501-502 to obtain an outdoor positioning result by using an outdoor location service, where 0 ⁇ M ⁇ N.
  • the terminal determines a distance between the outdoor positioning result and a candidate building in the target area, where the target area is a preset area to which the outdoor positioning result belongs.
  • the terminal may further query which candidate buildings providing the indoor positioning service in the target area to which the outdoor positioning result belongs.
  • the GPS coordinates of the candidate building that provides the indoor positioning service in each area may be stored in the terminal in advance.
  • the GPS coordinates of each of the candidate buildings providing the indoor positioning service in the area 1 and the area 2 are stored in advance in the terminal.
  • the terminal may use the area of the outdoor positioning result obtained in step 501 as the target area, for example, the area to which the terminal belongs is the area. 1.
  • the area 1 includes a candidate building A, a candidate building B, and a candidate building C that provide indoor positioning services.
  • step 504 the current location of the terminal is the outdoor positioning result obtained in step 201.
  • the terminal can separately calculate the distance D1 between the current terminal and the building A, and the candidate building B. The distance D2 and the distance D3 from the candidate building C.
  • the candidate building list providing the indoor positioning service in each area shown in Table 1 may be that the terminal automatically downloads from the network side when the terminal is powered on; or when the terminal moves to the new area, the trigger terminal automatically starts from the network.
  • the side can download the candidate building list corresponding to the new area; or the user can manually add or download the location service setting interface of the terminal, which is not limited in this embodiment.
  • the terminal uses the candidate building with a distance less than a preset value as the target building.
  • the terminal calculates its own distance from the candidate building A, the candidate building B, and the candidate building C in the area 1, the obtained distances D1, D2, and D3 can be compared with preset values.
  • a certain distance is less than the preset value, for example, when the distance D1 between the terminal and the candidate building A is less than the preset value of 20 meters, the terminal is close to the candidate building A, and therefore, the terminal can select the candidate building.
  • A can further determine the location of the terminal in the target building through the indoor positioning service.
  • the target building identified by the terminal may be one or more, and the embodiment of the present application does not impose any limitation on this.
  • the terminal only needs to trigger the terminal to actively identify whether the current positioning scenario has the intention of providing the indoor positioning service according to the target number of satellites X.
  • the terminal may further Determine the specific target building for the terminal to provide indoor positioning services.
  • the terminal attempts to obtain an indoor positioning result of the terminal in the target building by using an indoor positioning service.
  • the terminal may activate the indoor positioning module to perform the indoor positioning service, thereby attempting to obtain the indoor positioning result of the terminal in the target building.
  • the terminal may determine the indoor positioning result of the terminal in the target building based on the detected Wi-Fi signal or the Bluetooth signal.
  • the method for the indoor positioning will be described in detail in subsequent embodiments, and thus is not described herein again.
  • the specific values of the foregoing M and N are not limited in the embodiment of the present application, and those skilled in the art may set specific values of M and N according to actual application scenarios or actual experience.
  • the value of M can be set to 4 or 5, that is, the terminal is triggered when the terminal enters the room.
  • the terminal tries to perform indoor positioning, which can reduce the power consumption of the terminal; or, because of the positioning scene in the indoor and outdoor boundary, the number of satellites capable of providing effective positioning services is usually 6 to 12, so the M can be taken.
  • the value is set to 7 or 8, which means that when the terminal is close to a building, the terminal will be triggered to try indoor positioning, which can improve the speed at which the terminal switches to the indoor positioning service.
  • the terminal stops the outdoor positioning service, and continues to locate the terminal through the indoor positioning service.
  • the terminal after the terminal attempts to obtain the indoor positioning result in the target building, if the indoor positioning result is successfully obtained, the terminal is already indoors at this time, and then the terminal can continue to use the indoor positioning service to the terminal. Positioning, and the terminal can also stop the above outdoor positioning service, thereby reducing the power consumption of the terminal.
  • the terminal may also display the indoor positioning result obtained at this time on the electronic map.
  • the terminal when the user carrying the terminal moves from the former star gate to the treasure chest 2, the terminal triggers the terminal to perform indoor positioning in the treasure chest 2 according to the detected number of target satellites X, and the obtained indoor positioning result is the terminal in the treasure hall.
  • the indoor positioning result is P (A, B, C)
  • a (A ⁇ 0) is the longitude of the terminal in the Treasure Hall 2
  • B (B ⁇ 0) is the terminal in the Treasure Hall 2
  • C (C ⁇ 0) is the floor of the terminal in the Treasure Hall 2.
  • APP1 can be triggered to automatically play the voice introduction of the Treasure Hall 2, achieving seamless integration of indoor positioning and outdoor positioning.
  • the indoor location result of the terminal in the target building can be periodically obtained through the indoor location service. Then, if the terminal does not successfully obtain the indoor positioning result of the terminal in the target building continuously for Y (K ⁇ Y ⁇ 1) times, it indicates that the terminal may not be in the target building at this time, therefore, the terminal can switch from the indoor positioning service. Go back to the outdoor location service and loop through the steps 501-506 above.
  • the terminal may acquire the number of target satellites X′ that provide the positioning service for the terminal at this time, and according to the number of target satellites X. 'Determine whether to switch to outdoor location service. For example, when M ⁇ X' ⁇ N, the terminal may stop providing the indoor positioning service and start the outdoor positioning service to locate the terminal; otherwise, the terminal may continue to use the currently acquired target satellite number while performing the indoor positioning service. Try to switch to the outdoor location service until the indoor location result is successfully obtained or the outdoor location service is successfully switched. That is, when the terminal enters the outdoor environment from the indoors, the current positioning scene can be actively detected during the positioning process, and then the current positioning is selected. The positioning method with higher precision in the scene locates the terminal, thereby reducing the time for the terminal to switch the positioning service from indoor to outdoor while ensuring the positioning accuracy.
  • the upper limit K of the number of times that the triggering terminal does not successfully obtain the indoor positioning result when the terminal is switched from the indoor positioning service to the outdoor positioning service can be set by the person skilled in the art according to the actual experience or the actual application scenario. limit.
  • the positioning chip periodically acquires the number X of target satellites currently providing positioning services for the terminal. If M ⁇ X ⁇ N is detected, the number of target satellites currently providing the positioning service is not particularly small or particularly large, and the terminal is generally outdoors. At this point, the terminal attempts to switch to the outdoor location service until the outdoor location service is successfully obtained.
  • the terminal performs the above steps 502-506 cyclically.
  • the terminal attempts to obtain its indoor positioning result in the above target building fails, it means that the user may just pass the target building or has not entered the target building at this time, therefore, the terminal can continue to provide outdoor positioning service and cycle Perform steps 501-506 above.
  • the terminal does not obtain the indoor positioning result at this time, the terminal can actively detect whether the indoor positioning result can be obtained according to the number of the target satellites each time the outdoor positioning is performed, and once the indoor positioning result is obtained, the terminal will be obtained. It can be quickly switched to the indoor positioning service, which can reduce the length of time consumed by switching the positioning service between indoors and outdoors while ensuring the positioning accuracy, and improve the user experience.
  • the positioning method provided by the embodiment of the present invention can accurately and quickly complete the switching between indoor positioning and outdoor positioning. Therefore, the positioning method can provide a more prepared navigation service for the user.
  • the destination entered by the user in the navigation APP may be a specific indoor location, for example, a McDonald's restaurant in the mall.
  • the navigation APP may plan a detailed route from the departure place to the destination for the user, which is not only the route but not only the route. It includes an outdoor navigation route from the departure point to the ** mall, and also includes an indoor navigation route from the ** mall to the McDonald's restaurant in the mall.
  • the indoor navigation route includes the entrance from the ** mall to the elevator The walking route, the floor reminder of the elevator and the route of the user to the McDonald's restaurant after the elevator, provide users with more accurate navigation services.
  • the trigger location of the triggering the handover positioning scenario may be further determined according to the navigation route.
  • the navigation route includes an outdoor navigation route from the home to the entrance of the mall, and an indoor navigation route from the entrance of the mall to the McDonald's restaurant in the mall, then the end of the outdoor navigation route can be The starting point of the indoor navigation route: ** The door of the mall is used as the trigger position for switching from the outdoor location service to the indoor location service.
  • the terminal when the terminal detects that the real-time location of the user is the trigger location, the terminal can be triggered to switch from the outdoor location service to the indoor location service, and the seamless handover between the indoor location service and the outdoor location service can be quickly and accurately implemented.
  • the terminal can identify the terminal to perform the indoor positioning service according to the number of target satellites detected in real time, and then trigger the terminal to determine the specific positioning of the indoor positioning according to the outdoor positioning result when the terminal has the indoor positioning service demand.
  • the target building attempts to locate the terminal indoors in the target building, so that the seamless switching between the indoor positioning service and the outdoor positioning service can be quickly and accurately realized, thereby improving the user experience.
  • the terminal may adjust the positioning period when performing positioning according to the distance between the terminal location and the target location, whether the terminal provides the indoor positioning service or the outdoor positioning service.
  • the positioning period of the terminal can be set longer, thereby reducing the power consumption of the terminal; and when the distance between the terminal position and the target position is relatively close, the positioning accuracy required by the terminal is increased.
  • the positioning period of the terminal can be set shorter to ensure that the user can obtain more accurate positioning results in real time.
  • the terminal provides the user with real-time indoor positioning result through the indoor positioning service when the user is at the third floor of the mall A. If the user inputs the current target location to the restaurant 1 to the terminal, the terminal can According to the default positioning period, the distance between the indoor positioning result and the restaurant 1 is obtained (L>0). When the distance L is greater than 200 meters, the indoor positioning period of the terminal can be adjusted to 15 seconds, and when the distance L is greater than 50 meters and When the distance is less than 200 meters, the indoor positioning period of the terminal can be adjusted to 10 seconds. When the distance L is less than 50 meters, the indoor positioning period of the terminal can be adjusted to 5 seconds.
  • the terminal may separately obtain the distance between the outdoor positioning result and the attraction 1 - the attraction 3 according to the default positioning period. Further, the terminal takes the attraction with the shortest distance (for example, the attraction 1) as the target location of the positioning service, and adjusts the outdoor positioning period in real time according to the distance from the attraction 1. During the process of the terminal moving, the terminal continues to obtain the distance between the outdoor positioning result and the attraction 1 - the scenic spot 3 according to the adjusted positioning cycle. As shown in (b) of FIG. 12 , the terminal still has the shortest distance from the terminal. (For example, the attraction 2) is the target location of the positioning service, and the above outdoor positioning period is adjusted in real time according to the distance from the attraction 2.
  • the attraction 2 is the target location of the positioning service
  • an upper limit and a lower limit may be set in advance for the above positioning period (outdoor positioning period or indoor positioning period), for example, when the positioning period is reduced to 3 seconds, even if the distance between the terminal position and the target position continues to be close, the terminal The positioning period is still 3 seconds; when the positioning period is increased to 30 seconds, even if the distance between the terminal position and the target position continues to be far away, the positioning period of the terminal is still 30 seconds.
  • the positioning period may be set to L/10, where L is between the terminal location and the target location.
  • L is between the terminal location and the target location.
  • the terminal may provide an indoor location service for the terminal in the target building based on the Wi-Fi service. Since each Wi-Fi access point has a globally unique MAC address, the terminal can scan and collect broadcast signals (ie Wi-Fi signals) from surrounding Wi-Fi access points when the Wi-Fi service is turned on.
  • broadcast signals ie Wi-Fi signals
  • the terminal can obtain the MAC address broadcasted by the Wi-Fi access point; then, the terminal sends the data (such as the MAC address) capable of indicating the Wi-Fi access point to the location server through the wireless communication network, by the location
  • the server retrieves the geographic location of each Wi-Fi access point, and combines the strength of the Wi-Fi broadcast signal to calculate the indoor positioning result of the terminal in the target building and sends it to the positioning module of the terminal.
  • the terminal can download the Wi-Fi fingerprint library in each building providing the indoor location service from the network side in advance.
  • the Wi-Fi fingerprint database of the target building is used to reflect the distribution of Wi-Fi signals at various locations in the target building.
  • Each location of the target building corresponds to a location fingerprint
  • each location fingerprint includes a set of Wi-Fi signal parameters reflecting the Wi-Fi signal at the location, for example, RSSI of the Wi-Fi signal (Received Signal Strength) Indication, received signal strength indication), SSID (Service Set Identifier) of the Wi-Fi signal, unique identifier of the AP (Access Point, access point) to which the Wi-Fi signal belongs, such as MAC (Media Access Control) , Media intervention control layer) address, etc.
  • a plurality of Wi-Fi access points are disposed in the target building, and the Wi-Fi signals sent by the Wi-Fi access points are superimposed in various positions of the space to form a location fingerprint.
  • each position in position 1 - position 6 in Figure 13 corresponds to a position fingerprint (ie, corresponding to a set of Wi-Fi signal parameters), and these locations and location fingerprints at each location constitute the Wi-Fi of the target building.
  • Fingerprint library The position of each of the above-mentioned positions may be a two-dimensional coordinate representation, or may be a three-dimensional coordinate including a floor identifier, which is not limited by the embodiment of the present application.
  • the Wi-Fi fingerprint database of the target building may be pre-stored in the location server.
  • the terminal may use the currently detected target Wi-Fi signal.
  • the signal characteristic parameters in the medium for example, the RSSI and SSID of the target Wi-Fi signal are sent to the location server.
  • the location server compares the signal characteristic parameter with the location fingerprint of each location in the Wi-Fi fingerprint database of the target building, and finally uses the location corresponding to the location fingerprint with less difference as the indoor positioning result feedback of the terminal at this time. Give the terminal.
  • the pre-acquired location fingerprint in the Wi-Fi fingerprint library and the signal in the target Wi-Fi signal acquired during actual positioning when compared with the location fingerprint of each location in the Wi-Fi fingerprint library of the target building Feature parameters may not be exactly the same.
  • some signal feature parameters actually collected may not be recorded in the Wi-Fi fingerprint library, or some signal feature parameters recorded in the Wi-Fi fingerprint library are not actually collected.
  • the minimum value R low of the RSSI in the entire Wi-Fi fingerprint database may be obtained first; and then, the two signal characteristic parameters to be matched may be determined (one is a fingerprint at any position in the Wi-Fi fingerprint database, a number M of the characteristic parameters of the converged characteristic parameters of the signal characteristic parameter in the target Wi-Fi signal actually collected by the terminal; and the number N of common characteristic parameters among the two characteristic parameters of the signal, when N is greater than a certain pre-
  • the location server can be triggered to perform fingerprint matching (that is, indoor positioning), otherwise the difference between the characteristic parameters of the two signals is considered to be extremely large.
  • the degree of difference dif between the two signal characteristic parameters can be calculated using the following formula (1).
  • p i is a weight coefficient, which may default to 1; for the N common feature parameters of the two signal characteristic parameters, r i and r′ i are respectively RSSI corresponding to the common feature parameter; for the above N common features Other characteristic parameters than the parameters (ie, MN feature parameters), one of r i and r′ i is the corresponding RSSI of the common feature parameter in one of the signal feature parameters, and the other is R low .
  • the terminal can also download the Wi-Fi fingerprint library of the target building to the local area in advance, so that after detecting the target Wi-Fi signal, the terminal can extract the signal characteristic parameters in the target Wi-Fi signal, and then the target.
  • the location fingerprints of the various locations in the Wi-Fi fingerprint library of the building are compared to obtain the indoor positioning result of the terminal in the target building.
  • the Wi-Fi fingerprint library downloaded by the terminal to the local device may be the current area of the terminal, for example, the Wi-Fi fingerprint database of each candidate building in the above area 2.
  • the terminal can be triggered to automatically download the Wi-Fi fingerprint library of each candidate building in the new area.
  • the user can also manually select the Wi-Fi fingerprint database of the corresponding building to download to the local, and the embodiment of the present application does not impose any limitation on this.
  • the terminal may also access the multiple Wi- The Fi signal is filtered, and the wireless signal that satisfies the preset indoor positioning condition is used as the target wireless signal. For example, the Wi-Fi signal generated when the mobile phone or the notebook computer is used as a hotspot is removed, or the Wi-Fi signal that is not in the preset Wi-Fi whitelist is removed, thereby avoiding redundant Wi-Fi signals to be followed. Interference generated when matching a location fingerprint in the Wi-Fi fingerprint library of the target building.
  • the location server may further determine the actual Wi-Fi signal distribution and the Wi-Fi signal at the location according to the signal feature parameters in the target Wi-Fi signal reported by each terminal at different times and at the same location.
  • the difference between the location fingerprints recorded in the Fi fingerprint database may be a new Wi-Fi signal, a reduced Wi-Fi signal, or a difference in signal strength of the original Wi-Fi signal. If the differences are consistent or tend to be consistent, the location server may update according to the difference. Location fingerprint in the Wi-Fi fingerprint library.
  • the AP 6 is added to the target building, then, if it is for a continuous period of time (for example, one week)
  • the K terminals located at the location 1 report the Wi-Fi signal generated by the newly added AP 5 in the signal characteristic parameter, indicating that the actual location fingerprint at the location 1 changes.
  • the location server can update the location fingerprint at the location 1 in the Wi-Fi fingerprint database to improve the accuracy of the fingerprints in each location in the Wi-Fi fingerprint library, thereby improving the positioning accuracy in subsequent indoor positioning.
  • the terminal may implement the update process of the location fingerprint self-learning according to the signal feature parameters of the target Wi-Fi signal collected by the terminal at different times and at the same location.
  • the embodiment does not impose any limitation on this.
  • the user can also enter the setting interface of the location service to manually enable or disable the indoor location service or the outdoor location service.
  • the user can also manually manage the list of buildings providing the indoor location service. For example, the user can manually delete or increase the GPS coordinates of the candidate building in the downloaded area (for example, the central area in FIG. 15), or manually Add a list of buildings that provide indoor location services in other areas or cities.
  • the user can manually manage the Wi-Fi fingerprint library used in the above indoor location service. For example, the user can manually delete, add or modify the location fingerprint of any location in the Wi-Fi fingerprint library of a downloaded building. It is also possible to manually add a Wi-Fi fingerprint library in a building that provides indoor positioning services in other areas or cities, which is not limited in this embodiment.
  • the above terminal and the like include hardware structures and/or software modules corresponding to each function.
  • the embodiments of the present application can be implemented in a combination of hardware or hardware and computer software in combination with the elements and algorithm steps of the various examples described in the embodiments disclosed herein. Whether a function is implemented in hardware or computer software to drive hardware depends on the specific application and design constraints of the solution. A person skilled in the art can use different methods to implement the described functions for each particular application, but such implementation should not be considered to be beyond the scope of the embodiments of the present application.
  • the embodiment of the present application may perform the division of the function module on the terminal or the like according to the foregoing method example.
  • each function module may be divided according to each function, or two or more functions may be integrated.
  • a processing module In a processing module.
  • the above integrated modules can be implemented in the form of hardware or in the form of software functional modules. It should be noted that the division of the module in the embodiment of the present application is schematic, and is only a logical function division, and the actual implementation may have another division manner.
  • FIG. 16 is a schematic diagram showing a possible structure of a terminal involved in the foregoing embodiment, where the terminal includes: an outdoor positioning unit 1101, an indoor positioning unit 1102, and a determining unit. 1103 and a communication unit 1104.
  • the outdoor positioning unit 1101 is configured to support the terminal to perform the process 501 in FIG. 5; the indoor positioning unit 1102 is configured to support the terminal to perform the processes 506 and 507 in FIG. 5; the determining unit 1103 is configured to support the terminal to execute the processes 504-505 in FIG.
  • the communication unit 1104 is configured to support the terminal to perform the process 502 in FIG. All the related content of the steps involved in the foregoing method embodiments may be referred to the functional descriptions of the corresponding functional modules, and details are not described herein again.
  • the determining unit 1103 is configured to perform control and management on the action of the terminal.
  • the determining unit 1103 may be a processor or a controller, for example, may be a central processing unit (CPU), a GPU, and a general processing. , Digital Signal Processor (DSP), Application-Specific Integrated Circuit (ASIC), Field Programmable Gate Array (FPGA) or other programmable logic device, transistor logic device , hardware components, or any combination thereof. It is possible to implement or carry out the various illustrative logical blocks, modules and circuits described in connection with the present disclosure.
  • the processor may also be a combination of computing functions, for example, including one or more microprocessor combinations, a combination of a DSP and a microprocessor, and the like.
  • the communication unit 1104 can be used to support communication between the terminal and other network entities.
  • the communication unit 1104 can be a transceiver, a transceiver circuit, an input/output device, or a communication interface.
  • the communication module 1303 may specifically be a Bluetooth module, a Wi-Fi module, a peripheral interface, or the like.
  • the outdoor positioning unit 1101 can be used to provide an outdoor positioning service for the terminal in an outdoor positioning scenario.
  • the outdoor positioning unit 1101 can be a GPS chip, an AGPS chip, or other processing circuit/chip.
  • the indoor positioning unit 1102 can be used to provide indoor positioning services for the terminal in an indoor positioning scenario.
  • the indoor positioning unit 1102 can be a Wi-Fi chip, a Bluetooth chip, or other processing circuit/chip.
  • the terminal may also include a memory, a display screen, and the like, and the embodiment of the present invention does not impose any limitation.
  • the determining unit 1103 is a processor
  • the communication unit 1104 is a radio frequency circuit
  • the outdoor positioning unit 1101 is a GPS positioning module
  • the indoor positioning unit 1102 is a Wi-Fi module
  • the terminal provided by the embodiment of the present application may be as shown in FIG. Mobile phone 100.
  • the computer program product includes one or more computer instructions.
  • the computer can be a general purpose computer, a special purpose computer, a computer network, or other programmable device.
  • the computer instructions can be stored in a computer readable storage medium or transferred from one computer readable storage medium to another computer readable storage medium, for example, the computer instructions can be from a website site, computer, server or data center By wired (eg coaxial cable, fiber optic, digital subscriber line (DSL)) or wireless (eg infrared, wireless, microwave, etc.) to another website site, computer, Server or data center transfer.
  • the computer readable storage medium can be any available media that can be accessed by a computer or a data storage device such as a server, data center, or the like that includes one or more available media.
  • the usable medium may be a magnetic medium (eg, a floppy disk, a hard disk, a magnetic tape), an optical medium (eg, a DVD), or a semiconductor medium (such as a solid state disk (SSD)).

Abstract

本申请的实施例提供一种定位方法及装置,涉及通信技术领域,终端在室内和室外之间切换时可较为准确、快速的提供定位服务。该方法包括:终端通过室外定位服务获取室外定位结果;当提供所述室外定位服务的卫星信息满足预设条件时,所述终端尝试通过室内定位服务获取室内定位结果,所述预设条件用于指示所述终端具有室内定位需求;若成功获取到所述室内定位结果,则所述终端将所述室外定位服务切换为所述室内定位服务。

Description

一种定位方法及装置 技术领域
本申请实施例涉及通信技术领域,尤其涉及一种定位方法及装置。
背景技术
手机等移动终端的定位服务是指通过特定的定位技术来获取终端的位置信息,进而在电子地图上标出被定位终端位置的服务。
一般,在室外定位时,可基于全球定位系统(Global Positioning System,GPS)或移动运营商提供的基站实现高精度的室外定位,但这种定位方法应用在室内时精度较差。因此,在室内定位时,可基于信号质量较好的无线保真(Wireless-Fidelity,Wi-Fi)信号或蓝牙(Bluetooth,BT)信号进行室内定位。
然而,由于终端具有可实时移动的特点,当用户携带终端从室外进入室内或者从室内进入室外时,终端使用上述方法进行定位的精度和速度将明显降低。
例如,终端在室外通过GPS信号进行定位,当用户携带终端从室外进入室内时,GPS信号将逐渐衰减,直至终端在无法检测到GPS信号或者GPS信号强度很低时,才会触发终端重新选择其他的定位方法,例如,启用Wi-Fi模块基于检测到的Wi-Fi信号进行定位。这个切换过程一般耗时较长,且切换过程中终端无法为用户提供较为准确的定位结果。
发明内容
本申请的实施例提供一种定位方法及装置,终端在室内和室外之间切换时可较为准确、快速的提供定位服务。
为达到上述目的,本申请的实施例采用如下技术方案:
第一方面,本申请的实施例提供一种定位方法,包括:终端通过室外定位服务获取室外定位结果;当提供该室外定位服务的卫星信息满足预设条件时,说明终端此时具有室内定位需求,那么,终端可尝试通过室内定位服务获取室内定位结果,若成功获取到该室内定位结果,则终端将室外定位服务切换为室内定位服务。
也就是说,终端在进行定位时并不是被动的等待当前使用的定位服务失败后,才触发终端使用新的定位服务定位,而是在定位过程中主动探测当前的定位场景,进而选择在当前的定位场景下精度较高的定位方法对终端进行定位,从而在保证定位精度的同时降低了在室内和室外之间因切换定位服务而消耗的时长,提高用户的使用体验。
在一种可能的设计方法中,上述卫星信息包括:提供定位服务的目标卫星数目X(X≥0),该目标卫星为:向终端提供定位服务的所有卫星中发送的卫星信号的信噪比大于预设值的卫星,此时,该卫星能够为终端提供有效的定位服务;另外,在不同定位场景下能够提供有效定位服务的卫星数目是不同的,因此,可设置上述预设条件为:X≤M或X≥N,0<M<N,即当目标卫星数目比较多或比较少时,可认为此时的定位场景为室内定位场景。
在一种可能的设计方法中,当提供该室外定位服务的卫星信息满足预设条件时,终端尝试通过室内定位服务获取室内定位结果,包括:当X≤M或X≥N时,终端确定与目标区域中候选建筑之间的距离,该目标区域为该室外定位结果所属的预设区域;终端将该距离小于预设值的候选建筑作为目标建筑;终端启动室内定位服务尝试获取终端在该目标建筑内的室内定位结果。
这样,终端可以根据实时检测到的目标卫星数目识别终端进行室内定位服务的需求,进而在终端具有室内定位服务需求时触发终端根据室外定位结果确定进行室内定位的具体目标建筑,并尝试在目标建筑内对终端进行室内定位,从而可快速准确的实现室内定位服务和室外定位服务之间的无缝切换,提高用户的使用体验。
在一种可能的设计方法中,当成功获取到该室内定位结果时,该方法还包括:终端停止提供该室外定位服务,从而降低终端提供定位功能时的功耗。
在一种可能的设计方法中,在终端将室外定位服务切换为室内定位服务之后,还包括:当终端连续Y(Y≥1)次均未成功获取到终端的室内定位结果时,终端将室内定位服务切换为室外定位服务。也就是说,终端从室内进入室外时,也可在定位过程中主动探测当前的定位场景,进而选择在当前的定位场景下精度较高的定位方法对终端进行定位,从而在保证定位精度的同时降低了终端从室内到室外切换定位服务的时间。
在一种可能的设计方法中,在终端尝试通过室内定位服务获取室内定位结果之后,还包括:若没有获取到该室内定位结果,则终端继续通过该室外定位服务获取室外定位结果。
在一种可能的设计方法中,该方法还包括:终端确定与目标位置之间的距离,该目标位置为本次定位周期内终端移动的目的地;终端根据与该目标位置之间的距离,调整该定位周期的大小。
例如,当终端与该目标位置之间的距离越大时,该定位周期的取值越大,从而降低终端的功耗;当终端与该目标位置之间的距离越小时,该定位周期的取值越小,以保证用户能够实时得到较为准确的定位结果。
在一种可能的设计方法中,在终端确定与目标位置之间的距离之前,还包括:终端将至少两个预先设置的候选位置中与终端距离最近的候选位置作为该目标位置。
在一种可能的设计方法中,终端尝试通过室内定位服务获取室内定位结果,包括:终端从当前接收到的目标无线信号中提取信号特征参数,该目标无线信号为终端检测到的所有无线信号中满足预设的室内定位条件的无线信号;后续,终端将该信号特征参数发送至位置服务器,以使得该位置服务器根据该信号特征参数确定终端的室内定位结果,从而避免不满足预设的室内定位条件的Wi-Fi信号对后续与目标建筑的Wi-Fi指纹库中的位置指纹进行匹配时产生的干扰。
在一种可能的设计方法中,在终端从当前接收到的目标无线信号中提取信号特征参数之后,还包括:终端确定在预置时间段内,同一位置处获取到的目标无线信号中信号特征参数与该位置处预设的位置指纹之间的差异,该位置指纹用于指示预设的Wi-Fi指纹库中在位置处记录的Wi-Fi信号的分布情况;若该差异趋于一致,则说明 该位置处的实际位置指纹发生改变,那么,终端可更新该位置处的位置指纹,以提高Wi-Fi指纹库中各个位置指纹的准确度,从而提高后续室内定位时的定位精度。
第二方面,本申请的实施例提供一种终端,包括:室外定位单元,用于:通过室外定位服务获取室外定位结果;处理单元,用于:确定提供该室外定位服务的卫星信息是否满足预设条件;室内定位单元,用于:当提供该室外定位服务的卫星信息满足预设条件时,尝试通过室内定位服务获取室内定位结果,该预设条件用于指示终端具有室内定位需求;以及若成功获取到该室内定位结果,则将该室外定位服务切换为该室内定位服务。
在一种可能的设计方法中,该卫星信息包括:提供定位服务的目标卫星数目X,该目标卫星为向终端提供定位服务所有卫星中发送的卫星信号的信噪比大于预设值的卫星,X≥0;该预设条件为:X≤M或X≥N,0<M<N。
在一种可能的设计方法中,该处理单元,还用于:当X≤M或X≥N时,确定与目标区域中候选建筑之间的距离,该目标区域为该室外定位结果所属的预设区域;将该距离小于预设值的候选建筑作为目标建筑;该室内定位单元,具体用于:启动室内定位服务尝试获取终端在该目标建筑内的室内定位结果。
在一种可能的设计方法中,该室外定位单元,还用于:停止提供该室外定位服务。
在一种可能的设计方法中,该处理单元,还用于:当终端连续Y次均未成功获取到终端的室内定位结果时,将该室内定位服务切换为该室外定位服务,Y≥1。
在一种可能的设计方法中,该室外定位单元,还用于:若没有获取到该室内定位结果,则继续通过该室外定位服务获取室外定位结果。
在一种可能的设计方法中,该处理单元,还用于:确定与目标位置之间的距离,该目标位置为本次定位周期内终端移动的目的地;根据与该目标位置之间的距离,调整该定位周期的大小。
在一种可能的设计方法中,当终端与该目标位置之间的距离越大时,该定位周期的取值越大;当终端与该目标位置之间的距离越小时,该定位周期的取值越小。
在一种可能的设计方法中,该处理单元,还用于:将至少两个预先设置的候选位置中与终端距离最近的候选位置作为该目标位置。
在一种可能的设计方法中,该室内定位单元,具体用于:从当前接收到的目标无线信号中提取信号特征参数,该目标无线信号为终端检测到的所有无线信号中满足预设的室内定位条件的无线信号;将该信号特征参数发送至位置服务器,以使得该位置服务器根据该信号特征参数确定终端的室内定位结果。
在一种可能的设计方法中,该处理单元,还用于:确定在预置时间段内,同一位置处获取到的目标无线信号中信号特征参数与该位置处预设的位置指纹之间的差异,该位置指纹用于指示预设的Wi-Fi指纹库中在位置处记录的Wi-Fi信号的分布情况;若该差异趋于一致,则更新该位置处的位置指纹。
第三方面,本申请的实施例提供一种终端,包括:处理器、存储器、总线和通信接口;该存储器用于存储计算机执行指令,该处理器与该存储器通过该总线连接,当终端运行时,该处理器执行该存储器存储的该计算机执行指令,以使终端执行上述任 一项定位方法。
第四方面,本申请实施例提供一种计算机可读存储介质,该计算机可读存储介质中存储有指令,当该指令在上述任一项终端上运行时,使得终端执行上述任一项定位方法。
第五方面,本申请实施例提供一种包含指令的计算机程序产品,当其在上述任一项终端上运行时,使得终端执行上述任一项定位方法。
本申请的实施例中,上述终端的名字对设备本身不构成限定,在实际实现中,这些设备可以以其他名称出现。只要各个设备的功能和本申请的实施例类似,即属于本申请权利要求及其等同技术的范围之内。
另外,第二方面至第五方面中任一种设计方式所带来的技术效果可参见上述第一方面中不同设计方法所带来的技术效果,此处不再赘述。
附图说明
图1为本申请实施例提供的一种终端的结构示意图一;
图2为本申请实施例提供的一种安卓系统的架构示意图;
图3A为本申请实施例提供的一种SDK在安卓系统中的架构示意图一;
图3B为本申请实施例提供的一种SDK在安卓系统中的架构示意图二;
图4为本申请实施例提供的一种定位方法的应用场景示意图一;
图5为本申请实施例提供的一种定位方法的流程示意图;
图6为本申请实施例提供的一种定位方法的应用场景示意图二;
图7为本申请实施例提供的一种定位方法的应用场景示意图三;
图8为本申请实施例提供的一种定位方法的应用场景示意图四;
图9为本申请实施例提供的一种定位方法的应用场景示意图五;
图10为本申请实施例提供的一种定位方法的应用场景示意图六;
图11为本申请实施例提供的一种定位方法的应用场景示意图七;
图12为本申请实施例提供的一种定位方法的应用场景示意图八;
图13为本申请实施例提供的一种定位方法的应用场景示意图九;
图14为本申请实施例提供的一种定位方法的应用场景示意图十;
图15为本申请实施例提供的一种定位方法的应用场景示意图十一;
图16为本申请实施例提供的一种终端的结构示意图二。
具体实施方式
以下,术语“第一”、“第二”仅用于描述目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括一个或者更多个该特征。在本申请实施例的描述中,除非另有说明,“多个”的含义是两个或两个以上。
本申请实施例提供的一种定位方法,可应用于手机、终端、增强现实(AR)\虚拟现实(VR)设备、平板电脑、笔记本电脑、超级移动个人计算机(UMPC)、上网本、个人数字助理(PDA)等任意具有定位功能的终端上,当然,在以下实施例中,对该终端的具体形式不作任何限制。
如图1所示,本申请实施例中的终端可以为手机100。下面以手机100为例对实施例进行具体说明。应该理解的是,图示手机100仅是上述终端的一个范例,并且手机100可以具有比图中所示出的更多的或者更少的部件,可以组合两个或更多的部件,或者可以具有不同的部件配置。
如图1所示,手机100具体可以包括:处理器101、射频(RF)电路102、存储器103、触摸屏104、蓝牙模块105、一个或多个传感器106、Wi-Fi模块107、定位模块108、音频电路109、外设接口110以及电源系统111等部件。这些部件可通过一根或多根通信总线或信号线(图1中未示出)进行通信。本领域技术人员可以理解,图1中示出的硬件结构并不构成对手机的限定,手机100可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。
下面结合图1对手机100的各个部件进行具体的介绍:
处理器101是手机100的控制中心,利用各种接口和线路连接手机100的各个部分,通过运行或执行存储在存储器103内的应用程序,以及调用存储在存储器103内的数据,执行手机100的各种功能和处理数据。在一些实施例中,处理器101可包括一个或多个处理单元;举例来说,处理器101可以是华为技术有限公司制造的麒麟960芯片。在本申请一些实施例中,上述处理器101还可以包括指纹验证芯片,用于对采集到的指纹进行验证。
射频电路102可用于在收发信息或通话过程中,无线信号的接收和发送。特别地,射频电路102可以将基站的下行数据接收后,给处理器101处理;另外,将涉及上行的数据发送给基站。通常,射频电路包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器、双工器等。此外,射频电路102还可以通过无线通信和其他设备通信。所述无线通信可以使用任一通信标准或协议,包括但不限于全球移动通讯系统、通用分组无线服务、码分多址、宽带码分多址、长期演进、电子邮件、短消息服务等。
存储器103用于存储应用程序以及数据,处理器101通过运行存储在存储器103的应用程序以及数据,执行手机100的各种功能以及数据处理。存储器103主要包括存储程序区以及存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等);存储数据区可以存储根据使用手机100时所创建的数据(比如音频数据、电话本等)。此外,存储器103可以包括高速随机存取存储器(RAM),还可以包括非易失存储器,例如磁盘存储器件、闪存器件或其他易失性固态存储器件等。存储器103可以存储各种操作系统,例如,苹果公司所开发的
Figure PCTCN2017098675-appb-000001
操作系统,谷歌公司所开发的
Figure PCTCN2017098675-appb-000002
操作系统等。上述存储器103可以是独立的,通过上述通信总线与处理器101相连接;存储器103也可以和处理器101集成在一起。
触摸屏104具体可以包括触控屏104-1和显示屏104-2。
其中,触控屏104-1可采集手机100的用户在其上或附近的触摸事件(比如用户使用手指、触控笔等任何适合的物体在触控屏104-1上或在触控屏104-1附近的操作),并将采集到的触摸信息发送给其他器件(例如处理器101)。其中,用户在触控屏104-1附近的触摸事件可以称之为悬浮触控;悬浮触控可以是指,用户 无需为了选择、移动或拖动目标(例如图标等)而直接接触触控屏,而只需用户位于终端附近以便执行所想要的功能。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型来实现触控屏104-1。
显示屏(也称为显示屏)104-2可用于显示由用户输入的信息或提供给用户的信息以及手机100的各种菜单。可以采用液晶显示屏、有机发光二极管等形式来配置显示屏104-2。触控屏104-1可以覆盖在显示屏104-2之上,当触控屏104-1检测到在其上或附近的触摸事件后,传送给处理器101以确定触摸事件的类型,随后处理器101可以根据触摸事件的类型在显示屏104-2上提供相应的视觉输出。虽然在图1中,触控屏104-1与显示屏104-2是作为两个独立的部件来实现手机100的输入和输出功能,但是在某些实施例中,可以将触控屏104-1与显示屏104-2集成而实现手机100的输入和输出功能。可以理解的是,触摸屏104是由多层的材料堆叠而成,本申请实施例中只展示出了触控屏(层)和显示屏(层),其他层在本申请实施例中不予记载。另外,触控屏104-1可以以全面板的形式配置在手机100的正面,显示屏104-2也可以以全面板的形式配置在手机100的正面,这样在手机的正面就能够实现无边框的结构。
另外,手机100还可以具有指纹识别功能。例如,可以在手机100的背面(例如后置摄像头的下方)配置指纹采集器件,或者在手机100的正面(例如触摸屏104的下方)配置指纹采集器件。又例如,可以在触摸屏104中配置指纹采集器件来实现指纹识别功能,即指纹采集器件可以与触摸屏104集成在一起来实现手机100的指纹识别功能。在这种情况下,该指纹采集器件配置在触摸屏104中,可以是触摸屏104的一部分,也可以以其他方式配置在触摸屏104中。本申请实施例中的指纹采集器件的主要部件是指纹传感器,该指纹传感器可以采用任何类型的感测技术,包括但不限于光学式、电容式、压电式或超声波传感技术等。
手机100还可以包括蓝牙模块105,用于实现手机100与其他短距离的终端(例如手机、智能手表等)之间的数据交换。本申请实施例中的蓝牙模块可以是集成电路或者蓝牙芯片等。
手机100还可以包括至少一种传感器106,比如光传感器、运动传感器以及其他传感器。具体地,光传感器可包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节触摸屏104的显示屏的亮度,接近传感器可在手机100移动到耳边时,关闭显示屏的电源。作为运动传感器的一种,加速计传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别手机姿态的应用(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;至于手机100还可配置的陀螺仪、气压计、湿度计、温度计、红外线传感器等其他传感器,在此不再赘述。
Wi-Fi模块107,用于为手机100提供遵循Wi-Fi相关标准协议的网络接入,手机100可以通过Wi-Fi模块107接入到Wi-Fi接入点,进而帮助用户收发电子邮件、浏览网页和访问流媒体等,它为用户提供了无线的宽带互联网访问。在其他一些实施例中,该Wi-Fi模块107也可以作为Wi-Fi无线接入点,可以为其他终端 提供Wi-Fi网络接入。
定位模块108,用于为手机100提供地理位置实现定位服务。可以理解的是,该定位模块108具体可以是全球定位系统(GPS)或北斗卫星导航系统、俄罗斯GLONASS等定位系统的接收器。定位模块108在接收到上述定位系统发送的地理位置后,将该信息发送给处理器101进行处理,或者发送给存储器103进行保存。
在另外的一些实施例中,该定位模块108还可以是辅助全球卫星定位系统(AGPS)的接收器,AGPS系统通过作为辅助服务器来协助定位模块108完成测距和定位服务,在这种情况下,辅助定位服务器通过无线通信网络与终端例如手机100的定位模块108(即GPS接收器)通信而提供定位协助。
在另外的一些实施例中,该定位模块108也可以是基于Wi-Fi接入点或蓝牙的定位技术。以Wi-Fi定位为例,由于每一个Wi-Fi接入点都有一个全球唯一的MAC地址,终端在开启Wi-Fi的情况下即可扫描并收集周围的Wi-Fi接入点的广播信号,因此可以获取到Wi-Fi接入点广播出来的MAC地址;终端将这些能够标示Wi-Fi接入点的数据(例如MAC地址)通过无线通信网络发送给位置服务器,由位置服务器检索出每一个Wi-Fi接入点的地理位置,并结合Wi-Fi广播信号的强弱程度,计算出该终端的地理位置并发送到该终端的定位模块108中。
在本申请实施例中,终端可以通过定位模块108识别出当前的定位场景为室内定位场景或者室外定位场景。进而,终端可选择在当前的定位场景下精度较高的定位方法对终端进行定位。例如,当定位模块108基于GPS信号为终端提供室外定位服务时,如果判断出当前的定位场景为室内定位场景,则可以触发终端尝试通过检测到的Wi-Fi信号对终端进行室内定位。那么,如果能够成功得到室内定位结果,则终端可停止对终端进行室外定位,并将当前的定位服务切换为室内定位服务;当然,如果没有得到室内定位结果,则终端可继续通过GPS信号对终端进行室外定位。
可以看出,终端在进行定位时并不是被动的等待当前使用的定位服务失败后,才触发终端使用新的定位服务定位,而是在定位过程中主动探测当前的定位场景,进而选择在当前的定位场景下精度较高的定位方法对终端进行定位,从而在保证定位精度的同时降低了在室内和室外之间因切换定位服务而消耗的时长,提高用户的使用体验。
音频电路109、扬声器113、麦克风114可提供用户与手机100之间的音频接口。音频电路109可将接收到的音频数据转换后的电信号,传输到扬声器113,由扬声器113转换为声音信号输出;另一方面,麦克风114将收集的声音信号转换为电信号,由音频电路109接收后转换为音频数据,再将音频数据输出至RF电路102以发送给比如另一手机,或者将音频数据输出至存储器103以便进一步处理。
外设接口110,用于为外部的输入/输出设备(例如键盘、鼠标、外接显示屏、外部存储器、用户识别模块卡等)提供各种接口。例如通过通用串行总线(USB)接口与鼠标连接,通过用户识别模块卡卡槽上的金属触点与电信运营商提供的用户识别模块卡(SIM)卡进行连接。外设接口110可以被用来将上述外部的输入/输出外围设备耦接到处理器101和存储器103。
手机100还可以包括给各个部件供电的电源装置111(比如电池和电源管理芯片),电池可以通过电源管理芯片与处理器101逻辑相连,从而通过电源装置111实现管理充电、放电、以及功耗管理等功能。
尽管图1未示出,手机100还可以包括摄像头(前置摄像头和/或后置摄像头)、闪光灯、微型投影装置、近场通信(NFC)装置等,在此不再赘述。
进一步地,上述手机100中可以运行在Android或IOS等操作系统中,本申请实施例对此不作任何限制。
以Android操作系统为例,如图2所示,Android操作系统可以划分为四层,从高层到低层分别是应用程序层201(即APP层)、应用程序框架层202(即Framework层)、系统运行库层203(即Libraries层)和Linux内核层204。
其中,Linux内核层204可用于控制手机100的安全(Security),存储器管理(Memory Management),程序管理(Process Management),网络堆栈(Network Stack),驱动程序模型(Driver Model)等功能。Linux内核层204同时也作为硬件(例如,CPU、网卡以及内存等)和软件栈之间的抽象层,它可隐藏具体硬件细节从而为上层(系统运行库层203、应用程序框架层202以及应用程序层201)提供统一的服务。
系统运行库层203中包含一些C/C++库,例如,媒体库、系统C库以及显示管理库(Surface Manager)等,这些库能被Android系统中不同的组件使用,系统运行库层203可通过Framework层202为开发人员提供服务。
Framework层202为开发人员提供了一个可以完全访问应用程序所使用的API(Application Programming Interface,应用程序编程接口)框架。具体的,Framework层202为开发应用程序提供了非常多的API,通过调用相应的API可以构造满足相关业务需求的APP。
应用程序层201主要包括用java语言编写的APP,例如提供定位功能地图APP等,用户在操作APP上的操作界面时,通过调用Framework层202中的相关API,与系统运行库层203或Linux内核层204进行交互,实现与该操作界面相对应的功能。
在本申请的一些实施例中,可以将本申请提供的定位方法以软件开发工具包(Software Development Kit,SDK)205的形式运行在应用程序层201或Framework层202。其中,SDK是指一些软件工程师为特定的软件包、软件框架、硬件平台、操作系统等建立应用软件时的开发工具的集合,它可以为某个APP设计语言提供API的一些文件,也可以包括能够与某种嵌入式系统通讯的复杂的硬件。
如图3A所示,该SDK 205可以集成在Framework层202中作为系统服务向应用程序层201中的各个APP提供定位服务。
具体的,上述SDK 205可以包括定位服务客户端API(Location Client API),位置服务模块(Location Server),室外定位模块(Outdoor Positioning)以及室内定位模块(Indoor Positioning)。
其中,定位服务客户端API可用于向应用程序层201中提供定位服务的应用 提供API,应用程序层201中的任意APP都可以通过调用SDK 205中的API实现室内定位服务或室外定位服务。
位置服务模块可用于识别当前的定位场景为室内定位场景或者室外定位场景,并根据当前的定位场景在室内定位服务和室外定位服务之间切换。当然,位置服务模块还可以用于开启或关闭上述室内定位服务和室外定位服务,以及接收室内定位服务和室外定位服务返回的定位结果(例如室内定位结果、室外定位结果)等,本申请实施例对此不作任何限制。
室外定位模块用于对终端进行室外定位,获取室外定位结果。例如,室外定位模块可以基于GPS服务或者基站提供的网络服务进行室外定位,还可以结合步行者导航(Pedestrian Dead Reckoning,PDR)技术对用户行走的步数、步长、方向进行测量和统计,推算出用户的行走轨迹和位置等信息。
室内定位模块用于对终端进行室内定位,获取室内定位结果。例如,室内定位模块可以基于Wi-Fi服务或蓝牙服务进行室内定位,当然,也可以结合PDR技术对用户行走的步数、步长、方向进行测量和统计,推算出用户的行走轨迹和位置等信息,本申请实施例对此不作任何限制。
又或者,如图3B所示,还可以将上述SDK 205集成在应用程序层201中的一个或多个特定的APP中,为这些特定的APP提供定位服务。例如,用户从应用市场下载APP1时可同时下载为APP1提供定位服务的SDK 205,进而,终端可将该SDK 205安装在APP1中,后续APP1需要实现定位服务时可以通过调用SDK205中的定位服务客户端API,识别室内定位场景和室外定位场景,并为APP1提供相应的定位服务。
需要说明的是,在本申请实施例中,若没有特别指明终端提供的定位服务为室内定位服务或室外定位服务,则该定位服务既可以为室内定位服务,也可以为室外定位服务,本申请实施例对此不作任何限制。
具体的,本申请实施例提供的定位方法可应用于定位APP向用户提供定位服务的过程中。示例性的,如图4所示,当用户在旅游景点游览时,可打开APP 1进行自主游览。该APP 1可对终端进行实时定位以确定用户当前的位置(即终端位置301),进而,自动播放距离终端位置301最近的景点的语音介绍。
在定位过程中,仍如图4所示,有一些景点为室外位置302,例如,前星门、奉先门等,还有一些景点为室内位置303,例如,珍宝馆、绘画馆等。那么,用户在游览各个景点时经常会在室内位置303和室外位置302之间切换,例如,用户原本在前星门(室外)游览,当用户进入珍宝馆(室内)后,终端需要自动识别出当前定位场景的转变,从而针对不同的定位场景在室内定位服务和室外定位服务之间切换。并且,如果识别定位场景转变的时间过长(如30秒),则用户很可能已经进入新的景点,导致用户错过相关景点的语音介绍。
对此,本申请实施例提供的一种定位方法,如图5所示,包括:
501、终端通过室外定位服务获取室外定位结果。
具体的,终端内可以设置用于提供室外定位服务的卫星定位芯片(例如GPS 芯片),进而,当用户在终端上触发定位服务时,例如,用户打开上述APP1时,终端可触发卫星定位芯片向一颗或多颗GPS卫星(全球共24颗GPS卫星)发送定位请求,进而,GPS卫星利用空间分布的卫星与地面点的距离交会得出地面点位置(例如,地面点的经纬度坐标),即室外定位结果,并将该室外定位结果返回给卫星定位芯片。
另外,终端还可以将此时获取到的室外定位结果显示在电子地图上。如图6所示,用户使用APP1进行自主游览,终端启动APP1后,可通过室外定位服务获取当前的室外定位结果,例如,该室外定位结果指示用户当前位于前星门,那么,可触发APP1自动播放前星门的语音介绍。
需要说明的是,终端一般是周期性触发定位服务的,例如,每隔2秒触发室外定位服务尝试获取室外定位结果。那么,如果在步骤501中终端没有获取到室外定位结果(例如,GPS信号较弱时无法得到室外定位结果),则终端可等待下一次定位周期继续循环执行步骤501进行室外定位,本申请实施例对此不作任何限制。
502、终端获取当前为终端提供定位服务的目标卫星数目X,X≥0。
通常,在不同定位场景下能够提供有效定位服务的卫星数目是不同的。例如,在室外定位场景下,能够提供有效定位服务的卫星数目通常为12~20颗,在室内定位场景下,能够提供有效定位服务的卫星数目通常为0~5颗,在室内与室外交界的定位场景下,能够提供有效定位服务的卫星数目通常为6~12颗。
因此,在获取到终端当前所在的位置(即上述室外定位结果)后,终端可进一步确定此时为终端提供定位服务的目标卫星数目X,进而根据该目标卫星数目X识别当前的定位场景为室内定位场景或室外定位场景。
其中,上述目标卫星是指为终端提供定位服务的所有卫星中,终端接收到的卫星信号(例如GPS信号)的信噪比大于阈值的一个或多个卫星,该卫星信号信噪比大于阈值的卫星能够为终端提供有效的定位服务。当然,根据卫星信号的信噪比确定目标卫星的方法可以有多种,例如,当卫星信号的信噪比满足一定的函数关系时,可将该提供该卫星信号的卫星作为目标卫星,本发明实施例对此不作任何限制。
示例性的,如图7所示,终端在位置1通过室外定位服务获取室外定位结果时,为终端提供室外定位服务的卫星包括GPS卫星1-GPS卫星7,并且,终端接收到的GPS卫星1-GPS卫星7发出的GPS信号的信噪比均大于阈值,则终端可将GPS卫星1-GPS卫星7均作为上述目标卫星,即此时为终端提供定位服务的目标卫星数目X=7。
需要说明的是,终端可以在获取上述室外定位结果的同时,根据接收到的各个卫星发送的卫星信号确定上述目标卫星数目X,也可以在获取上述室外定位结果之后,可再次从终端内的卫星定位芯片获取卫星信号,以确定上述目标卫星数目X,即本申请实施例对步骤501与步骤502之间的执行顺序不做限定。
另外,某些室内可能设置有GPS信号放大器,该GPS信号放大器可用于对GPS卫星发送的GPS信号进行放大。GPS信号放大器一般通过虚拟的GPS卫星来 模拟真实的GPS卫星,通常模拟出的GPS卫星的数量会大于真实的GPS卫星总数(即大于24颗)。因此,当终端获取到的目标卫星数目X大于一定数(例如大于20)时,也可认为当前的定位场景为室内定位场景。
当然,终端还可以根据提供上述室外定位服务的其他卫星信息,例如,GPS信号强度、传输时延以及噪声系数等一项或多项识别当前的定位场景,本申请实施例对此不作任何限制。
503、当M<X<N时,终端继续循环执行步骤501-502通过室外定位服务获取室外定位结果,0<M<N。
当M<X<N时,例如,M=6,N=20时,仍如图7所示,此时,目标卫星数目X=7,说明当前提供定位服务的目标卫星数目不是特别少也不是特别多,此时终端一般处于室外,即当前的定位场景为室外定位场景。那么,终端无需将当前的室外定位服务切换为室内定位服务,终端可以继续循环执行上述步骤501-502,通过室外定位服务获取室外定位结果。
504、当X≤M或X≥N时,终端确定上述室外定位结果与目标区域中候选建筑之间的距离,该目标区域为上述室外定位结果所属的预设区域。
当X≤M或M≥N时,例如,M=6,N=20时,如图8所示,用户携带终端逐渐靠近建筑A,当终端位于位置2时如果获取到的目标卫星数目X=2,则说明在位置2处为终端提供有效定位服务的卫星数目较少,此时终端一般位于室内或者靠近室内的位置。
那么,为了确定终端具体在哪个建筑内或靠近哪个建筑,终端可进一步查询在上述室外定位结果所属的目标区域中具体有哪些提供室内定位服务的候选建筑。
具体的,可以预先在终端内存储各个区域(例如各个城市、每个城市中的各个区县等)中提供室内定位服务的候选建筑的GPS坐标。如表1所示,终端内预先存储有区域1和区域2中各个提供室内定位服务的候选建筑的GPS坐标。进而,当目标卫星数目X≤M(或X≥N)时,终端可根据步骤501获取到的室外定位结果,将该室外定位结果所属的区域作为上述目标区域,例如,终端所属的区域为区域1,该区域1中包括提供室内定位服务的候选建筑A、候选建筑B以及候选建筑C。那么,在步骤504中,终端当前的位置为步骤201中获取到的室外定位结果,如图9所示,终端可以分别计算当前终端与建筑A之间的距离D1,与候选建筑B之间的距离D2以及与候选建筑C之间的距离D3。
表1
Figure PCTCN2017098675-appb-000003
需要说明的是,表1所示的各个区域中提供室内定位服务的候选建筑列表可以是终端在开机时自动从网络侧下载的;也可以是终端移动至新的区域时,触发终端自动从网络侧下载新区域所对应的候选建筑列表;还可以是用户在终端的定位服务设置界面中手动添加或下载的,本申请实施例对此不作任何限制。
另外,当X≥N时,例如,当X=25,N=20时,说明为终端提供定位服务的目标卫星数目较多,此时一般是由于在室内安装了GPS信号放大器导致的。因此,当X≥N时,也可认为此时为室内定位场景,可触发终端进一步确定上述步骤501中得到的室外定位结果与目标区域中候选建筑之间的距离。
505、终端将与其距离小于预设值的候选建筑作为目标建筑。
仍如图9所示,终端计算出自身与区域1中候选建筑A、候选建筑B以及候选建筑C之间的距离后,可将得到的距离D1、D2和D3与预设值进行比较。当某一距离小于该预设值时,例如,终端与候选建筑A之间的距离D1小于预设值20米时,则说明终端与该候选建筑A距离很近,因此,终端可以将候选建筑A作为目标建筑,后续可进一步通过室内定位服务确定终端在目标建筑中的位置。
需要说明的是,终端确定出的目标建筑可以为一个或者多个,本申请实施例对此不作任何限制。
至此,通过步骤504-505,终端只需根据目标卫星数目X便可触发终端主动识别当前的定位场景中是否有提供室内定位服务的意图,当识别出终端需要进行室内定位的意图时,可进一步为终端确定出后续需要提供室内定位服务的具体目标建筑。
506、终端通过室内定位服务尝试获取终端在上述目标建筑内的室内定位结果。
由于终端已经确定出用户在上述目标建筑中有进行室内定位的需求,因此,在步骤506中,终端可启动室内定位模块进行室内定位服务,从而尝试获取终端在上述目标建筑内的室内定位结果。
示例性的,终端可以基于检测到的Wi-Fi信号或者蓝牙信号确定终端在上述目标建筑内的室内定位结果,该室内定位的方法将在后续实施例中详细阐述,故此处不再赘述。
另外,本申请实施例并不限定上述M和N的具体取值,本领域技术人员可以根据实际应用场景或者实际经验设置M和N的具体取值。例如,由于在室内定位场景下,能够提供有效定位服务的卫星数目通常为0~5颗,那么,可以将M的取值设置为4或5,也就是说,当终端进入室内后才会触发终端尝试进行室内定位,这样可以降低终端的功耗;又或者,由于在室内与室外交界的定位场景下,能够提供有效定位服务的卫星数目通常为6~12颗,因此,可以将M的取值设置为7或8,也就是说,当终端靠近某一建筑时便会会触发终端尝试进行室内定位,这样可以提高终端切换到室内定位服务的速度。
507、若成功获取到上述室内定位结果,则终端停止上述室外定位服务,并继续通过室内定位服务对终端定位。
如图10所示,终端尝试获取其在上述目标建筑内的室内定位结果后,若能够成功获取到室内定位结果,则说明终端此时已经处于室内,那么,终端可继续通过室内定位服务对终端定位,并且,终端还可以停止上述室外定位服务,从而降低终端的功耗。
可选的,终端还可以将此时获取到的室内定位结果显示在电子地图上。仍如图4所示,用户携带终端从前星门移动至珍宝馆2时,终端根据检测到的目标卫星数目X触发终端在珍宝馆2内进行室内定位,得到的室内定位结果为终端在珍宝馆2内室内定位结果,例如,该室内定位结果为P(A,B,C),A(A≥0)为终端在珍宝馆2内的经度,B(B≥0)为终端在珍宝馆2内的纬度,C(C≥0)为终端在珍宝馆2内的楼层。进而,可触发APP1自动播放珍宝馆2的语音介绍,实现室内定位和室外定位的无缝融合。
进一步地,仍图10所示,终端从室外定位服务切换为室内定位服务后,可通过室内定位服务周期性的获取终端在目标建筑中的室内定位结果。那么,如果终端连续Y(K≥Y≥1)次均未成功获取到终端在目标建筑中的室内定位结果,则说明终端此时可能已经不在目标建筑中,因此,终端可从室内定位服务切换回室外定位服务,并循环执行上述步骤501-506。
示例性的,当终端连续3个定位周期均未成功获取到终端在目标建筑中的室内定位结果时,终端可获取此时为终端提供定位服务的目标卫星数目X’,并根据目标卫星数目X’确定是否切换为室外定位服务。例如,当M<X’<N时,终端可停止提供上述室内定位服务并启动室外定位服务对终端进行定位;否则,终端在进行室内定位服务的同时,可继续根据当前获取到的目标卫星数目尝试切换为室外定位服务,直至成功获取到室内定位结果或者成功切换为室外定位服务为止,即终端从室内进入室外时,也可在定位过程中主动探测当前的定位场景,进而选择在当前的定位场景下精度较高的定位方法对终端进行定位,从而在保证定位精度的同时降低了终端从室内到室外切换定位服务的时间。
可以理解的是,触发终端从室内定位服务切换为室外定位服务时未成功获取到室内定位结果的次数上限K可以由本领域技术人员根据实际经验或实际应用场景设置,本发明实施例对此不作任何限制。
当然,终端将室外定位服务切换为室内定位服务后,仍然可以继续通过卫星 定位芯片定期获取当前为终端提供定位服务的目标卫星数目X,如果检测到M<X<N时,即当前提供定位服务的目标卫星数目不是特别少也不是特别多,此时终端一般处于室外。此时,终端尝试切换为室外定位服务,直至成功获取到室外定位服务为止。
508、若没有获取到上述室内定位结果,则终端循环执行上述步骤502-506。
相应的,如果终端尝试获取其在上述目标建筑内的室内定位结果失败,则说明此时用户可能只是路过目标建筑,或者还没有进入目标建筑内,因此,终端可继续提供室外定位服务,并循环执行上述步骤501-506。
虽然终端本次没有获取到室内定位结果,但是在每次进行室外定位时终端均可根据目标卫星的数目主动探测当前是否可以获取到上述室内定位结果,那么一旦获取到上述室内定位结果,终端便可快速的切换为室内定位服务,从而在保证定位精度的同时降低了在室内和室外之间因切换定位服务而消耗的时长,提高用户的使用体验。
另外,由于本发明实施例提供的定位方法可以准确快速的完成室内定位和室外定位之间的切换,因此,基于该定位方法可为用户提供更加准备的导航服务。例如,用户在导航APP中输入的目的地可以为具体的室内位置,例如,**商场的麦当劳餐厅,那么,导航APP可为用户规划从出发地到该目的地的详细路线,该路线中不但包括从出发地到**商场之间的室外导航路线,还包括从**商场到该商场内的麦当劳餐厅之间的室内导航路线,例如,该室内导航路线包括从**商场入口至电梯间的步行路线,乘坐电梯的楼层提示以及用户出电梯后到麦当劳餐厅的路线路线,从而为用户提供更加精准的导航服务。
进一步地,在本发明实施例中,当终端为用户规划了具体的导航路线之后,还可进一步根据该导航路线确定触发切换定位场景的触发位置。例如,该导航路线包括从家到**商场门口的室外导航路线,以及包括从**商场门口到该商场内的麦当劳餐厅之间的室内导航路线,那么,可以将室外导航路线的终点(即室内导航路线)的起点:**商场门口作为从室外定位服务切换为室内定位服务的触发位置。这样,当终端检测到用户的实时位置为上述触发位置时,便可触发终端从室外定位服务切换为室内定位服务,同样可快速准确的实现室内定位服务和室外定位服务之间的无缝切换。
至此,通过执行上述步骤501-508,终端可以根据实时检测到的目标卫星数目识别终端进行室内定位服务的需求,进而在终端具有室内定位服务需求时触发终端根据室外定位结果确定进行室内定位的具体目标建筑,进而尝试在目标建筑内对终端进行室内定位,从而可快速准确的实现室内定位服务和室外定位服务之间的无缝切换,提高用户的使用体验。
另外,在本申请实施例中,无论在终端提供室内定位服务还是室外定位服务时,终端还可以根据终端位置与目标位置之间的距离,调整进行定位时的定位周期。
示例性的,当终端位置与目标位置之间的距离较远时,终端所需的定位精度 不是很高,因此,可将终端的定位周期设置的较长,从而降低终端的功耗;而当终端位置与目标位置之间的距离较近时,终端所需的定位精度增加,此时,可将终端的定位周期设置的较短,以保证用户能够实时得到较为准确的定位结果。
在室内定位场景下,图11所示,用户在商场A的三层时终端通过室内定位服务为用户提供实时的室内定位结果,如果用户向终端输入当前的目标位置为餐厅1,那么,终端可以按照默认的定位周期获取室内定位结果与餐厅1之间的距离L(L>0),当距离L大于200米时,可将终端的室内定位周期调整为15秒,当距离L大于50米且小于200米时,可将终端的室内定位周期调整为10秒,当距离L小于50米时,可将终端的室内定位周期调整为5秒。
在室外定位场景下,如图12中的(a)所示,终端可以按照默认的定位周期分别获取室外定位结果与景点1-景点3之间的距离。进而,终端将与其距离最短的景点(例如景点1)作为本次定位服务的目标位置,并根据与景点1之间的距离实时调整上述室外定位周期。在终端移动的过程中,终端继续按照调整后的定位周期分别获取室外定位结果与景点1-景点3之间的距离,如图12中的(b)所示,终端仍然将与其距离最短的景点(例如景点2)作为本次定位服务的目标位置,并根据与景点2之间的距离实时调整上述室外定位周期。
当然,还可以预先对上述定位周期(室外定位周期或室内定位周期)设置一个上限和下限,例如,当定位周期减小到3秒后,即使终端位置与目标位置之间的距离继续靠近,终端的定位周期仍为3秒;当定位周期增加到30秒后,即使终端位置与目标位置之间的距离继续远离,终端的定位周期仍为30秒。
需要说明的是,本领域技术人员可以根据实际应用场景或者实际经验设置上述定位周期的具体调整算法,例如,可设置该定位周期=L/10,其中,L为终端位置与目标位置之间的距离,本申请实施例对此不作任何限制。
在本申请的一些实施例中,终端可基于Wi-Fi服务在上述目标建筑中为终端提供室内定位服务。由于每一个Wi-Fi接入点都有一个全球唯一的MAC地址,终端在开启Wi-Fi服务的情况下即可扫描并收集周围Wi-Fi接入点的广播信号(即Wi-Fi信号),因此,终端可以获取到Wi-Fi接入点广播出来的MAC地址;那么,终端将这些能够标示Wi-Fi接入点的数据(例如MAC地址)通过无线通信网络发送给位置服务器,由位置服务器检索出每一个Wi-Fi接入点的地理位置,并结合Wi-Fi广播信号的强弱程度,计算出该终端在上述目标建筑中的室内定位结果并发送到该终端的定位模块中。
示例性的,终端可以预先从网络侧下载各个提供室内定位服务的建筑内的Wi-Fi指纹库。以上述目标建筑为例,该目标建筑的Wi-Fi指纹库用于反映该目标建筑中各位置处Wi-Fi信号的分布情况。其中,该目标建筑的每一个位置都对应一个位置指纹,每个位置指纹中包括反映该位置处Wi-Fi信号的一组Wi-Fi信号参数,例如,Wi-Fi信号的RSSI(Received Signal Strength Indication,接收的信号强度指示),Wi-Fi信号的SSID(Service Set Identifier,服务集标识),Wi-Fi信号所属的AP(AccessPoint,接入点)的唯一标识符,例如MAC(Media Access Control, 媒体介入控制层)地址等。
如图13所示,目标建筑的内设置有多个Wi-Fi接入点(AP1-AP5),这些Wi-Fi接入点发出的Wi-Fi信号在空间的各个位置中叠加后形成位置指纹。例如,图13中位置1-位置6中的每个位置分别对应一个位置指纹(即对应一组Wi-Fi信号参数),这些位置以及每个位置处的位置指纹构成了目标建筑的Wi-Fi指纹库。其中,上述每个位置可以是一个二维坐标表示的位置也可以是包括楼层标识的三维坐标,本申请实施例对此不作任何限制。
具体的,位置服务器中可以预先存储目标建筑的Wi-Fi指纹库,当终端在步骤205中尝试获取终端在上述目标建筑内的室内定位结果时,终端可以将当前检测到的目标Wi-Fi信号中的信号特征参数,例如,目标Wi-Fi信号的RSSI和SSID等发送给位置服务器。进而,由位置服务器将该信号特征参数与目标建筑的Wi-Fi指纹库中各个位置的位置指纹进行比较,最终将差异度较小的位置指纹所对应的位置作为此时终端的室内定位结果反馈给终端。
示例性的,在与目标建筑的Wi-Fi指纹库中各个位置的位置指纹进行比较时,Wi-Fi指纹库中的预先采集的位置指纹与实际定位时采集的目标Wi-Fi信号中的信号特征参数可能不完全一致。例如,实际采集到的某些信号特征参数可能Wi-Fi指纹库中没有记录,或者,Wi-Fi指纹库中记录的某些信号特征参数没有实际采集到等。
那么,在进行指纹匹配时,可以先获取整个Wi-Fi指纹库中RSSI的最小值Rlow;进而,可确定待匹配两条信号特征参数(一条为Wi-Fi指纹库中的任意位置指纹,一条为终端实际采集到的目标Wi-Fi信号中的信号特征参数)的并集中特征参数的种类数目M;以及这两条信号特征参数中的公共特征参数的数目N,当N大于某个预设值时,可触发位置服务器进行指纹匹配(即进行室内定位),否则认为这两条信号特征参数差异极大。
具体的,在进行指纹匹配时可使用下述公式(1)计算上述两条信号特征参数之间的差异度dif。
差异度
Figure PCTCN2017098675-appb-000004
其中,pi为权值系数,可默认为1;对于上述两条信号特征参数中的N个公共特征参数,ri和r′i分别为公共特征参数对应的RSSI;对于上述N个公共特征参数之外的其他特征参数(即M-N个特征参数),ri和r′i中一个为公共特征参数在其中一条信号特征参数中对应的RSSI,另一个为Rlow
当然,终端也可以预先将上述目标建筑的Wi-Fi指纹库下载至本地,这样,终端检测到目标Wi-Fi信号后,可以将目标Wi-Fi信号中的信号特征参数提取出来,进而与目标建筑的Wi-Fi指纹库中各个位置的位置指纹进行比较,从而得到终端在目标建筑内的室内定位结果。
可选的,终端下载至本地的Wi-Fi指纹库可以是终端当前所属区域,例如上述区域2中,各个候选建筑的Wi-Fi指纹库。这样,当终端移动至新的区域时,可触发终端自动下载新区域内各个候选建筑的Wi-Fi指纹库。当然,用户也可以手动选择相应建筑的Wi-Fi指纹库下载至本地,本申请实施例对此不作任何限制。
另外,在本申请实施例中,当终端开启室内定位服务获取当前检测到的Wi-Fi信号后,由于检测到的Wi-Fi信号通常为多个,因此,终端还可以对这多个Wi-Fi信号进行筛选,将满足预设的室内定位条件的无线信号作为目标无线信号。例如,将手机或笔记本电脑作为热点时产生的Wi-Fi信号去除,或者,将不属于预设的Wi-Fi白名单中的Wi-Fi信号去除等,从而避免多余的Wi-Fi信号对后续与目标建筑的Wi-Fi指纹库中的位置指纹进行匹配时产生的干扰。
进一步地,在本申请实施例中,位置服务器还可以根据各个终端在不同时间、同一位置上报的目标Wi-Fi信号中的信号特征参数,确定该位置处实际的Wi-Fi信号分布与Wi-Fi指纹库中记载的位置指纹之间的差异。例如,该差异可以为新增的Wi-Fi信号、减少的Wi-Fi信号或者原有Wi-Fi信号的信号强度差异等,如果这些差异一致或者趋于一致,则位置服务器可根据该差异更新Wi-Fi指纹库中的位置指纹。
示例性的,如图14所示,与图13所示的Wi-Fi指纹库中的位置指纹相比,上述目标建筑中新增了AP 6,那么,如果在连续一段时间(例如一周)内位于位置1处的K个终端(例如20个终端)均在信号特征参数中上报了新增的AP 5产生的Wi-Fi信号,则说明位置1处的实际位置指纹发生改变。那么,位置服务器可以在Wi-Fi指纹库中更新位置1处的位置指纹,以提高Wi-Fi指纹库中各个位置指纹的准确度,从而提高后续室内定位时的定位精度。
当然,如果终端本地存储有上述Wi-Fi指纹库,则终端可以根据自身在不同时间、同一位置采集到的目标Wi-Fi信号的信号特征参数,实现上述位置指纹自学习的更新过程,本申请实施例对此不作任何限制。
另外,如图15所示,用户还可以进入定位服务的设置界面,手动开启或关闭上述室内定位服务或者室外定位服务。可选的,用户还可以手动管理提供室内定位服务的建筑列表,例如,用户可以进入已下载的区域(例如图15中未央区)中手动删除或增加候选建筑的GPS坐标等信息,也可以手动添加其他区域或城市中提供室内定位服务的建筑列表。类似的,用户还可以手动管理上述室内定位服务中使用的Wi-Fi指纹库,例如,用户可以进入已下载的某建筑的Wi-Fi指纹库中手动删除、增加或修改任意位置的位置指纹,也可以手动添加其他区域或城市中提供室内定位服务的建筑内的Wi-Fi指纹库,本申请实施例对此不作任何限制。
可以理解的是,上述终端等为了实现上述功能,其包含了执行各个功能相应的硬件结构和/或软件模块。本领域技术人员应该很容易意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,本申请实施例能够以硬件或硬件和计算机软件的结合形式来实现。某个功能究竟以硬件还是计算机软件驱动硬件的方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请实施例的范围。
本申请实施例可以根据上述方法示例对上述终端等进行功能模块的划分,例如,可以对应各个功能划分各个功能模块,也可以将两个或两个以上的功能集成 在一个处理模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。需要说明的是,本申请实施例中对模块的划分是示意性的,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。
在采用对应各个功能划分各个功能模块的情况下,图16示出了上述实施例中所涉及的终端的一种可能的结构示意图,该终端包括:室外定位单元1101、室内定位单元1102、确定单元1103以及通信单元1104。
室外定位单元1101用于支持终端执行图5中的过程501;室内定位单元1102用于支持终端执行图5中的过程506和507;确定单元1103用于支持终端执行图5中的过程504-505;通信单元1104用于支持终端执行图5中的过程502。其中,上述方法实施例涉及的各步骤的所有相关内容均可以援引到对应功能模块的功能描述,在此不再赘述。
示例性的,上述确定单元1103用于对终端的动作进行控制管理,具体的,确定单元1103可以是处理器或控制器,例如可以是中央处理器(Central Processing Unit,CPU),GPU,通用处理器,数字信号处理器(Digital Signal Processor,DSP),专用集成电路(Application-Specific Integrated Circuit,ASIC),现场可编程门阵列(Field Programmable Gate Array,FPGA)或者其他可编程逻辑器件、晶体管逻辑器件、硬件部件或者其任意组合。其可以实现或执行结合本申请公开内容所描述的各种示例性的逻辑方框,模块和电路。所述处理器也可以是实现计算功能的组合,例如包含一个或多个微处理器组合,DSP和微处理器的组合等等。
通信单元1104可用于支持终端与其他网络实体的通信,具体的,通信单元1104可以是收发器、收发电路、输入输出设备或通信接口等。例如,通信模块1303具体可以是蓝牙模块、Wi-Fi模块、外设接口等。
室外定位单元1101可用于在室外定位场景下为终端提供室外定位服务,例如,室外定位单元1101可以为GPS芯片、AGPS芯片、或其他处理电路/芯片等。
室内定位单元1102可用于在室内定位场景下为终端提供室内定位服务,例如,室内定位单元1102可以为Wi-Fi芯片、蓝牙芯片、或其他处理电路/芯片等。
当然,终端还可以包括存储器、显示屏等器件,本发明实施例对此不作任何限制。当确定单元1103为处理器,通信单元1104为射频电路,室外定位单元1101为GPS定位模块,室内定位单元1102为Wi-Fi模块时,本申请实施例所提供的终端可以为图1所示的手机100。
在上述实施例中,可以全部或部分的通过软件,硬件,固件或者其任意组合来实现。当使用软件程序实现时,可以全部或部分地以计算机程序产品的形式出现。所述计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行所述计算机程序指令时,全部或部分地产生按照本申请实施例所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。所述计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,所述计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线(DSL))或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、 服务器或数据中心传输。所述计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。该可用介质可以是磁性介质,(例如,软盘,硬盘、磁带)、光介质(例如,DVD)或者半导体介质(例如固态硬盘Solid State Disk(SSD))等。
以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何在本申请揭露的技术范围内的变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以所述权利要求的保护范围为准。

Claims (25)

  1. 一种定位方法,其特征在于,包括:
    终端通过室外定位服务获取室外定位结果;
    当提供所述室外定位服务的卫星信息满足预设条件时,所述终端尝试通过室内定位服务获取室内定位结果,所述预设条件用于指示所述终端具有室内定位需求;
    若成功获取到所述室内定位结果,则所述终端将所述室外定位服务切换为所述室内定位服务。
  2. 根据权利要求1所述的方法,其特征在于,
    所述卫星信息包括:提供定位服务的目标卫星数目X,所述目标卫星为向所述终端提供定位服务所有卫星中发送的卫星信号的信噪比大于预设值的卫星,X≥0;
    所述预设条件为:X≤M或X≥N,0<M<N。
  3. 根据权利要求2所述的方法,其特征在于,当提供所述室外定位服务的卫星信息满足预设条件时,所述终端尝试通过室内定位服务获取室内定位结果,包括:
    当X≤M或X≥N时,所述终端确定与目标区域中候选建筑之间的距离,所述目标区域为所述室外定位结果所属的预设区域;
    所述终端将所述距离小于预设值的候选建筑作为目标建筑;
    所述终端启动室内定位服务尝试获取所述终端在所述目标建筑内的室内定位结果。
  4. 根据权利要求1-3中任一项所述的方法,其特征在于,当成功获取到所述室内定位结果时,所述方法还包括:
    所述终端停止提供所述室外定位服务。
  5. 根据权利要求1-4中任一项所述的方法,其特征在于,在所述终端将所述室外定位服务切换为所述室内定位服务之后,还包括:
    当所述终端连续Y次均未成功获取到所述终端的室内定位结果时,所述终端将所述室内定位服务切换为所述室外定位服务,Y≥1。
  6. 根据权利要求1-5中任一项所述的方法,其特征在于,在所述终端尝试通过室内定位服务获取室内定位结果之后,还包括:
    若没有获取到所述室内定位结果,则所述终端继续通过所述室外定位服务获取室外定位结果。
  7. 根据权利要求1-6中任一项所述的方法,其特征在于,所述方法还包括:
    所述终端确定与目标位置之间的距离,所述目标位置为本次定位周期内所述终端移动的目的地;
    所述终端根据与所述目标位置之间的距离,调整所述定位周期的大小。
  8. 根据权利要求7所述的方法,其特征在于,
    当所述终端与所述目标位置之间的距离越大时,所述定位周期的取值越大;当所述终端与所述目标位置之间的距离越小时,所述定位周期的取值越小。
  9. 根据权利要求7或8所述的方法,其特征在于,在所述终端确定与目标位置之间的距离之前,还包括:
    所述终端将至少两个预先设置的候选位置中与所述终端距离最近的候选位置 作为所述目标位置。
  10. 根据权利要求1-9中任一项所述的方法,其特征在于,所述终端通过室内定位服务获取室内定位结果,包括:
    所述终端从当前接收到的目标无线信号中提取信号特征参数,所述目标无线信号为所述终端检测到的所有无线信号中满足预设的室内定位条件的无线信号;
    所述终端将所述信号特征参数发送至位置服务器,以使得所述位置服务器根据所述信号特征参数确定所述终端的室内定位结果。
  11. 根据权利要求10所述的方法,其特征在于,在所述终端从当前接收到的目标无线信号中提取信号特征参数之后,还包括:
    所述终端确定在预置时间段内,同一位置处获取到的目标无线信号中信号特征参数与该位置处预设的位置指纹之间的差异,所述位置指纹用于指示预设的无线保真Wi-Fi指纹库中在位置处记录的Wi-Fi信号的分布情况;
    若所述差异趋于一致,则所述终端更新该位置处的位置指纹。
  12. 一种终端,其特征在于,包括:
    室外定位单元,用于:通过室外定位服务获取室外定位结果;
    处理单元,用于:确定提供所述室外定位服务的卫星信息是否满足预设条件;
    室内定位单元,用于:当提供所述室外定位服务的卫星信息满足预设条件时,尝试通过室内定位服务获取室内定位结果,所述预设条件用于指示所述终端具有室内定位需求;以及若成功获取到所述室内定位结果,则将所述室外定位服务切换为所述室内定位服务。
  13. 根据权利要求12所述的终端,其特征在于,所述卫星信息包括:提供定位服务的目标卫星数目X,所述目标卫星为向所述终端提供定位服务所有卫星中发送的卫星信号的信噪比大于预设值的卫星,X≥0;所述预设条件为:X≤M或X≥N,0<M<N。
  14. 根据权利要求13所述的终端,其特征在于,
    所述处理单元,还用于:当X≤M或X≥N时,确定与目标区域中候选建筑之间的距离,所述目标区域为所述室外定位结果所属的预设区域;将所述距离小于预设值的候选建筑作为目标建筑;
    所述室内定位单元,具体用于:启动室内定位服务尝试获取所述终端在所述目标建筑内的室内定位结果。
  15. 根据权利要求12-14中任一项所述的终端,其特征在于,
    所述室外定位单元,还用于:停止提供所述室外定位服务。
  16. 根据权利要求12-15中任一项所述的终端,其特征在于,
    所述处理单元,还用于:当所述终端连续Y次均未成功获取到所述终端的室内定位结果时,将所述室内定位服务切换为所述室外定位服务,Y≥1。
  17. 根据权利要求12-16中任一项所述的终端,其特征在于,
    所述室外定位单元,还用于:若没有获取到所述室内定位结果,则继续通过所述室外定位服务获取室外定位结果。
  18. 根据权利要求12-16中任一项所述的终端,其特征在于,
    所述处理单元,还用于:确定与目标位置之间的距离,所述目标位置为本次定位周期内所述终端移动的目的地;根据与所述目标位置之间的距离,调整所述定位周期的大小。
  19. 根据权利要求18所述的终端,其特征在于,当所述终端与所述目标位置之间的距离越大时,所述定位周期的取值越大;当所述终端与所述目标位置之间的距离越小时,所述定位周期的取值越小。
  20. 根据权利要求18或19所述的终端,其特征在于,
    所述处理单元,还用于:将至少两个预先设置的候选位置中与所述终端距离最近的候选位置作为所述目标位置。
  21. 根据权利要求12-20中任一项所述的终端,其特征在于,
    所述室内定位单元,具体用于:从当前接收到的目标无线信号中提取信号特征参数,所述目标无线信号为所述终端检测到的所有无线信号中满足预设的室内定位条件的无线信号;将所述信号特征参数发送至位置服务器,以使得所述位置服务器根据所述信号特征参数确定所述终端的室内定位结果。
  22. 根据权利要求21所述的终端,其特征在于,
    所述处理单元,还用于:确定在预置时间段内,同一位置处获取到的目标无线信号中信号特征参数与该位置处预设的位置指纹之间的差异,所述位置指纹用于指示预设的无线保真Wi-Fi指纹库中在位置处记录的Wi-Fi信号的分布情况;若所述差异趋于一致,则更新该位置处的位置指纹。
  23. 一种终端,其特征在于,包括:处理器、存储器、总线和通信接口;
    所述存储器用于存储计算机执行指令,所述处理器与所述存储器通过所述总线连接,当所述终端运行时,所述处理器执行所述存储器存储的所述计算机执行指令,以使所述终端执行如权利要求1-11中任一项所述的定位方法。
  24. 一种计算机可读存储介质,所述计算机可读存储介质中存储有指令,其特征在于,当所述指令在终端上运行时,使得所述终端执行如权利要求1-11中任一项所述的定位方法。
  25. 一种包含指令的计算机程序产品,其特征在于,当所述计算机程序产品在终端上运行时,使得所述终端执行如权利要求1-11中任一项所述的定位方法。
PCT/CN2017/098675 2017-08-23 2017-08-23 一种定位方法及装置 WO2019036939A1 (zh)

Priority Applications (5)

Application Number Priority Date Filing Date Title
PCT/CN2017/098675 WO2019036939A1 (zh) 2017-08-23 2017-08-23 一种定位方法及装置
CA3073457A CA3073457C (en) 2017-08-23 2017-08-23 Positioning method and apparatus
CN201780067329.1A CN109891934B (zh) 2017-08-23 2017-08-23 一种定位方法及装置
EP17922695.6A EP3664513B1 (en) 2017-08-23 2017-08-23 Positioning method and apparatus
US16/640,851 US11212652B2 (en) 2017-08-23 2017-08-23 Positioning method and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2017/098675 WO2019036939A1 (zh) 2017-08-23 2017-08-23 一种定位方法及装置

Publications (1)

Publication Number Publication Date
WO2019036939A1 true WO2019036939A1 (zh) 2019-02-28

Family

ID=65438308

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/098675 WO2019036939A1 (zh) 2017-08-23 2017-08-23 一种定位方法及装置

Country Status (5)

Country Link
US (1) US11212652B2 (zh)
EP (1) EP3664513B1 (zh)
CN (1) CN109891934B (zh)
CA (1) CA3073457C (zh)
WO (1) WO2019036939A1 (zh)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2020153739A (ja) * 2019-03-19 2020-09-24 アドソル日進株式会社 位置特定装置、移動器、位置特定システム、位置特定方法、およびプログラム
EP3841861A3 (en) * 2019-12-27 2021-10-06 Kubota Corporation Work support system and work support device positioned in an area
CN113640845A (zh) * 2021-08-09 2021-11-12 上海西虹桥导航技术有限公司 位置数据延迟改正优化的方法、装置、设备及存储介质
CN116017694A (zh) * 2023-03-24 2023-04-25 广州世炬网络科技有限公司 多终端信号交互的室内终端定位方法及装置

Families Citing this family (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
ITTO20110839A1 (it) * 2011-09-20 2013-03-21 Sisvel Technology Srl Metodo per la ricostruzione della pianta di un ambiente circostante un dispositivo wireless e dispositivo wireless che implementa tale metodo
WO2019221055A1 (ja) * 2018-05-15 2019-11-21 日本電気株式会社 測位システムおよび測位方法
EP3754303A1 (en) * 2019-06-19 2020-12-23 HERE Global B.V. Floor levels of a venue
CN111401938B (zh) * 2020-02-28 2023-08-18 Oppo(重庆)智能科技有限公司 一种广告推送方法、终端、服务器以及存储介质
CN111432339A (zh) * 2020-03-19 2020-07-17 RealMe重庆移动通信有限公司 近场通信卡片的切换方法、装置、存储介质及电子设备
CN111399013B (zh) * 2020-03-20 2023-07-18 Oppo广东移动通信有限公司 定位方法、装置、终端及存储介质
WO2022061298A1 (en) * 2020-09-21 2022-03-24 Bemis Manufacturing Company Shopping cart tracking system
CN112381126B (zh) * 2020-11-02 2023-11-17 安徽华米健康科技有限公司 室内外场景识别方法、装置、电子设备及存储介质
CN112649827A (zh) * 2020-11-30 2021-04-13 四川旷谷信息工程有限公司 用于轨道交通室内外的无缝切换实时导航方法及设备
JP2022127977A (ja) * 2021-02-22 2022-09-01 パナソニックIpマネジメント株式会社 測位端末、情報処理装置、および測位方法
CN113721258A (zh) * 2021-07-15 2021-11-30 河源市勇艺达科技有限公司 一种室内机器人定位导航系统及方法
CN113505152A (zh) * 2021-09-10 2021-10-15 环球数科集团有限公司 智慧城市母婴室数据信息处理方法、系统及存储介质
US11828600B2 (en) * 2021-09-29 2023-11-28 Ncr Corporation Indoor wayfinder interface and service
CN115002700B (zh) * 2021-11-16 2023-03-31 荣耀终端有限公司 一种室内定位中指纹库的更新方法和装置
CN114719842B (zh) * 2022-06-08 2022-08-30 深圳市乐凡信息科技有限公司 基于电子围栏的定位方法、系统、设备及存储介质

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090318151A1 (en) * 2008-06-18 2009-12-24 Samsung Electronics Co. Ltd. Apparatus and method for supporting handover in mobile communication terminal without gps
CN102883393A (zh) * 2012-10-12 2013-01-16 哈尔滨工业大学 基于gnss的指纹定位技术实现室内、外环境无缝切换的定位方法
CN103856989A (zh) * 2012-11-28 2014-06-11 中国电信股份有限公司 室内外定位切换的方法和系统、终端以及定位应用平台
CN105163373A (zh) * 2015-07-13 2015-12-16 广东欧珀移动通信有限公司 一种定位方法和移动终端
CN106993319A (zh) * 2017-03-20 2017-07-28 吕皓 一种实现gnss和wifi系统无缝垂直切换的算法

Family Cites Families (21)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101938831B (zh) 2010-08-31 2015-10-21 海尔集团公司 定位频率的动态调整方法
CN102645666B (zh) * 2012-05-11 2014-04-30 常熟南师大发展研究院有限公司 Uwb与gps室内外定位切换方法
CN102721972A (zh) 2012-06-13 2012-10-10 北京邮电大学 定位的方法和装置
US10168161B2 (en) * 2012-10-22 2019-01-01 Qualcomm Incorporated Changing a position determination scheme used by a user equipment during a transition between indoor and outdoor spaces relative to an enclosed environment
CN103454661B (zh) 2013-03-06 2016-12-28 深圳先进技术研究院 一种基于gps与测距测角技术的定位系统
US10133243B2 (en) * 2013-03-15 2018-11-20 Fisher-Rosemount Systems, Inc. Method and apparatus for seamless state transfer between user interface devices in a mobile control room
US9277368B2 (en) 2013-07-18 2016-03-01 Qualcomm Incorporated Method and apparatus for determining whether or not a mobile device is indoors
US20150097731A1 (en) * 2013-10-03 2015-04-09 Motorola Mobility Llc Gps/wifi indoor/outdoor detection
US20150141045A1 (en) * 2013-11-21 2015-05-21 Telecommunication Systems, Inc. Geofence
CN104678420A (zh) * 2013-11-26 2015-06-03 中兴通讯股份有限公司 一种定位方法、装置和终端
CN103634810B (zh) * 2013-12-24 2017-04-12 英国Ranplan无线网络设计公司 一种室内无线网络覆盖问题区域定位的方法
US10520595B2 (en) 2014-08-05 2019-12-31 Huawei Technologies Co., Ltd. Positioning method, apparatus, and mobile terminal
US9706364B2 (en) 2014-09-16 2017-07-11 Microsoft Technology Licensing, Llc Accounting for indoor-outdoor transitions during position determination
CN104301997A (zh) * 2014-09-23 2015-01-21 上海华为技术有限公司 一种服务器、移动终端、系统及定位方法
CN105022077A (zh) 2015-01-20 2015-11-04 泰斗微电子科技有限公司 一种室内外混合定位的方法及系统
CN106255054A (zh) 2015-06-10 2016-12-21 阿里巴巴集团控股有限公司 确定移动终端定位间隔的方法、移动终端及服务器
CN106899930B (zh) * 2015-12-17 2020-07-28 阿里巴巴集团控股有限公司 指纹数据库构建方法、定位方法及装置
US10475144B2 (en) * 2016-02-26 2019-11-12 Microsoft Technology Licensing, Llc Presenting context-based guidance using electronic signs
CN106886552B (zh) * 2016-12-12 2021-07-23 蔚来(安徽)控股有限公司 位置指纹数据库更新方法及系统
CN107064866A (zh) * 2017-04-05 2017-08-18 河南师范大学 一种基于iBeacon室内定位的动态指纹库的生成方法
CN107084729B (zh) 2017-05-03 2020-02-07 北京都在哪网讯科技有限公司 导航方法和装置

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090318151A1 (en) * 2008-06-18 2009-12-24 Samsung Electronics Co. Ltd. Apparatus and method for supporting handover in mobile communication terminal without gps
CN102883393A (zh) * 2012-10-12 2013-01-16 哈尔滨工业大学 基于gnss的指纹定位技术实现室内、外环境无缝切换的定位方法
CN103856989A (zh) * 2012-11-28 2014-06-11 中国电信股份有限公司 室内外定位切换的方法和系统、终端以及定位应用平台
CN105163373A (zh) * 2015-07-13 2015-12-16 广东欧珀移动通信有限公司 一种定位方法和移动终端
CN106993319A (zh) * 2017-03-20 2017-07-28 吕皓 一种实现gnss和wifi系统无缝垂直切换的算法

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP3664513A4 *

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2020153739A (ja) * 2019-03-19 2020-09-24 アドソル日進株式会社 位置特定装置、移動器、位置特定システム、位置特定方法、およびプログラム
JP7370148B2 (ja) 2019-03-19 2023-10-27 アドソル日進株式会社 位置特定装置、移動器、位置特定システム、位置特定方法、およびプログラム
EP3841861A3 (en) * 2019-12-27 2021-10-06 Kubota Corporation Work support system and work support device positioned in an area
US11965742B2 (en) 2019-12-27 2024-04-23 Kubota Corporation Work support system and work support device
CN113640845A (zh) * 2021-08-09 2021-11-12 上海西虹桥导航技术有限公司 位置数据延迟改正优化的方法、装置、设备及存储介质
CN116017694A (zh) * 2023-03-24 2023-04-25 广州世炬网络科技有限公司 多终端信号交互的室内终端定位方法及装置
CN116017694B (zh) * 2023-03-24 2023-08-22 广州世炬网络科技有限公司 多终端信号交互的室内终端定位方法及装置

Also Published As

Publication number Publication date
US20200382919A1 (en) 2020-12-03
EP3664513B1 (en) 2021-10-06
CN109891934B (zh) 2021-11-16
CA3073457A1 (en) 2019-02-28
CA3073457C (en) 2022-07-05
CN109891934A (zh) 2019-06-14
EP3664513A4 (en) 2020-07-22
US11212652B2 (en) 2021-12-28
EP3664513A1 (en) 2020-06-10

Similar Documents

Publication Publication Date Title
CN109891934B (zh) 一种定位方法及装置
US10064003B2 (en) Beacon-based geofencing
JP6312716B2 (ja) 屋内環境内のモバイルデバイスの位置を決定するための方法、装置、および媒体
US9277524B2 (en) Cooperative localization of portable electronic devices
KR101913535B1 (ko) 동반 디바이스를 사용한 위치 결정 방법 및 시스템
US20150100900A1 (en) File Transmission Method and System and Controlling Device
KR20160046340A (ko) 장치 검색 방법 및 이를 지원하는 전자 장치
JP2017532537A (ja) ロケーション関係データの選択的クラウドソーシング
KR20120058946A (ko) 엑세스 포인트의 위치 정보 데이터베이스 구축 방법과 시스템 및 이를 이용한 위치 정보 제공 방법
JP2016539321A (ja) スキャンによりロケーション変化を検出し、支援データを監視するための方法および装置
US8812023B2 (en) Outdoor position estimation of a mobile device within a vicinity of one or more indoor environments
CN105052215A (zh) 移动装置功率管理同时提供位置服务
KR20140025018A (ko) 모바일 디바이스의 위치정보 제공 방법 및 장치
RU2680093C2 (ru) Определение радиуса погрешности местоположения
WO2014003414A1 (ko) 무선 네트워크에서 단말의 위치를 측정하는 방법 및 이를 위한 장치
CN104838280A (zh) 在基于rssi和rtt数据的位置确定中提供并利用地图
WO2019196837A1 (zh) 一种终端检测方法及终端
CN108917766B (zh) 一种导航方法和移动终端
KR20150025930A (ko) 오디오 채널 설정 방법 및 시스템
WO2019006732A1 (zh) 一种信息推荐方法及装置
KR101639204B1 (ko) 컴퓨팅 장치의 글로벌 위치를 결정하기 위해 측지 삼각 측량을 사용하고 용이하게 하기 위한 메커니즘
CN114731529A (zh) 用户设备位置信息上报的方法、用户设备及网络设备

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: 17922695

Country of ref document: EP

Kind code of ref document: A1

ENP Entry into the national phase

Ref document number: 3073457

Country of ref document: CA

NENP Non-entry into the national phase

Ref country code: DE

ENP Entry into the national phase

Ref document number: 2017922695

Country of ref document: EP

Effective date: 20200306