Nothing Special   »   [go: up one dir, main page]

WO2018129838A1 - Positioning method, terminal and server - Google Patents

Positioning method, terminal and server Download PDF

Info

Publication number
WO2018129838A1
WO2018129838A1 PCT/CN2017/082403 CN2017082403W WO2018129838A1 WO 2018129838 A1 WO2018129838 A1 WO 2018129838A1 CN 2017082403 W CN2017082403 W CN 2017082403W WO 2018129838 A1 WO2018129838 A1 WO 2018129838A1
Authority
WO
WIPO (PCT)
Prior art keywords
terminal
satellite data
time range
set time
partitions
Prior art date
Application number
PCT/CN2017/082403
Other languages
French (fr)
Chinese (zh)
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 CN202110200903.4A priority Critical patent/CN113064185B/en
Priority to CN201780012495.1A priority patent/CN108780155B/en
Publication of WO2018129838A1 publication Critical patent/WO2018129838A1/en

Links

Images

Classifications

    • 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/01Satellite radio beacon positioning systems transmitting time-stamped messages, e.g. GPS [Global Positioning System], GLONASS [Global Orbiting Navigation Satellite System] or GALILEO
    • G01S19/13Receivers
    • G01S19/24Acquisition or tracking or demodulation of signals transmitted by the system
    • G01S19/25Acquisition or tracking or demodulation of signals transmitted by the system involving aiding data received from a cooperating element, e.g. assisted GPS
    • G01S19/258Acquisition or tracking or demodulation of signals transmitted by the system involving aiding data received from a cooperating element, e.g. assisted GPS relating to the satellite constellation, e.g. almanac, ephemeris data, lists of satellites in view
    • 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/01Satellite radio beacon positioning systems transmitting time-stamped messages, e.g. GPS [Global Positioning System], GLONASS [Global Orbiting Navigation Satellite System] or GALILEO
    • G01S19/13Receivers
    • G01S19/24Acquisition or tracking or demodulation of signals transmitted by the system
    • G01S19/25Acquisition or tracking or demodulation of signals transmitted by the system involving aiding data received from a cooperating element, e.g. assisted GPS
    • 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/01Satellite radio beacon positioning systems transmitting time-stamped messages, e.g. GPS [Global Positioning System], GLONASS [Global Orbiting Navigation Satellite System] or GALILEO
    • G01S19/13Receivers
    • G01S19/24Acquisition or tracking or demodulation of signals transmitted by the system
    • G01S19/25Acquisition or tracking or demodulation of signals transmitted by the system involving aiding data received from a cooperating element, e.g. assisted GPS
    • G01S19/256Acquisition or tracking or demodulation of signals transmitted by the system involving aiding data received from a cooperating element, e.g. assisted GPS relating to timing, e.g. time of week, code phase, timing offset
    • 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/01Satellite radio beacon positioning systems transmitting time-stamped messages, e.g. GPS [Global Positioning System], GLONASS [Global Orbiting Navigation Satellite System] or GALILEO
    • G01S19/13Receivers
    • G01S19/24Acquisition or tracking or demodulation of signals transmitted by the system
    • G01S19/28Satellite selection

Definitions

  • the present application relates to the field of communications technologies, and in particular, to a positioning method, a terminal, and a server.
  • GPS Global Positioning System
  • satellite positioning system is a technology that uses satellites to accurately locate any object. GPS can guarantee that at least 4 satellites can be observed at any time on the earth at any time for navigation, positioning, timing and other functions.
  • the GPS system includes: a space portion, a control portion, and a user portion.
  • the space part of GPS is composed of 24 GPS working satellites, and each GPS working satellite sends satellite signals for navigation and positioning.
  • the control part of the GPS consists of a globally distributed monitoring system consisting of several tracking stations for monitoring the working state of the satellite.
  • the user part of the GPS consists of a GPS receiver, data processing software and corresponding user equipment such as computer meteorological instruments, which are used to receive signals from GPS satellites and use these signals for positioning.
  • the traditional satellite positioning scheme on a terminal such as a mobile phone or a wearable device, it is often necessary to poll the satellite receiver of the terminal to receive the satellite signal, obtain the local satellite signal in real time, and then complete the map by the processor of the terminal. Mapping on top, achieving positioning. It can be seen that the following drawbacks exist in the traditional satellite positioning scheme: on the one hand, the positioning time depends on the performance of the hardware devices such as the terminal GPS receiver and the processor; on the other hand, polling the satellite signal may need to cover all satellite parameters. And it will take a long time to accurately collect the satellite signals of the required satellites, which will make the subsequent use of satellite signals for map mapping or navigation longer.
  • the present application provides a positioning method, a terminal, and a server, so that the terminal can quickly acquire satellite data corresponding to the target area in the target time period.
  • the present application provides a positioning method, the method comprising:
  • the map is divided into M partitions, and the first terminal determines that it is necessary to acquire satellite data corresponding to N partitions in the map in a set time range in the future, where M and N are positive integers, and M is greater than or equal to N;
  • the satellite data corresponding to a partition includes satellite data of each satellite passing over the partition within the set time range.
  • the map is divided into a plurality of partitions according to a setting rule, so that the terminal can select and acquire N partitions in the map as needed in a future set time range.
  • the server can obtain the satellite data corresponding to the N partitions in the set time range based on the historical satellite data after the server knows the N partitions and the set time range on the map corresponding to the satellite data required by the terminal. And feedback to the terminal, through the above process, the terminal will be able to quickly acquire satellite data corresponding to the target area within the target time period.
  • the method further includes:
  • the first terminal searches for satellite signals in the set time range by using satellite data corresponding to the N partitions in the set time range carried in the response message.
  • the first terminal can targetly acquire satellite signals within the set time range according to the satellite data of the N partitions within the set time range acquired in advance, thereby avoiding the current polling of the search satellite.
  • the shortcomings that result in the long time required to capture satellite signals provide search efficiency and reduce satellite positioning time.
  • the method further includes:
  • the first terminal determines that a communication connection is established with the second terminal, the first terminal transmits the satellite data corresponding to the N partitions in the set time range to the second terminal, to Having the second terminal search for satellite signals using the satellite data over the set time range.
  • the first terminal may transmit the acquired satellite data to the second terminal, so that the second terminal can also targetly acquire satellite signals based on the satellite data within a set time range, and provide Search efficiency and reduce satellite positioning time.
  • the first terminal determines that it is required to acquire satellite data corresponding to N partitions in a future set time range, including:
  • the first terminal receives an instruction for acquiring satellite data, where the instruction carries the set time range and indication information of the N partitions;
  • the user of the first terminal can obtain the satellite data corresponding to the target area in the future time period required for the subsequent satellite positioning.
  • the setting rule is to divide the map according to longitude and/or latitude; or, the setting rule is to divide the map according to the administrative region.
  • each partition has a certain geographical range, so that the computational complexity of the server in estimating the satellite data will be reduced.
  • the satellite data of each satellite passing through the partition within the set time range includes at least an ID and an orbit of each satellite passing through the partition within the set time range.
  • Data, and star clock data are examples of the satellite data of each satellite passing through the partition within the set time range.
  • the present application provides a positioning method, the method comprising:
  • the server Receiving, by the server, a request message sent by the first terminal, where the request message carries N partitions in the map corresponding to the satellite data that the first terminal needs to acquire, and indication information of a set time range; the map is set according to the setting The rule is divided into M partitions, where M and N are positive integers, and M is greater than or equal to N;
  • the server calculates satellite data corresponding to the N partitions in the set time range according to historical satellite data; wherein the satellite data corresponding to one partition includes each satellite passing through the partition within the set time range Satellite data;
  • the server sends a response message to the first terminal, where the response message carries satellite data corresponding to the N partitions in the set time range.
  • the historical satellite data is acquired by the server and stored on the server Satellite data published by various satellites in the GPS.
  • the present application provides a positioning device, the device is deployed in a terminal, and the device includes: a functional module for performing the positioning method according to any one of the above first aspect or the first aspect.
  • the application provides a positioning device, the device is deployed in a server, and the device includes: a function module for performing the positioning method according to any one of the second aspect or the second aspect.
  • the application provides a terminal, where the terminal includes: a processing unit and a wireless communication unit;
  • the processing unit is configured to implement the positioning method by using the wireless communication unit to perform any one of the foregoing first aspect or the first aspect.
  • the implementation of the terminal and the beneficial effects of any of the above fifth aspect or the fifth aspect of the present invention can achieve the implementation of the positioning method and the beneficial effects of the first aspect or the first aspect of the present invention. See, repetitions are not repeated here.
  • the present application provides a computer readable storage medium for storing computer software instructions for performing the functions of any of the above first aspect, the first aspect, including Aspect, the program designed by any of the methods of the first aspect.
  • the application provides a server, where the server includes: a processing unit and a wireless communication unit;
  • the processing unit is configured to implement the positioning method by using the wireless communication unit to perform any one of the foregoing second aspect or the second aspect.
  • the present application provides a computer readable storage medium, configured to store computer software instructions for performing the functions of any of the foregoing second aspect, the second aspect, including A program designed by any of the methods of the second aspect.
  • FIG. 1 is a schematic structural diagram of a communication system according to an embodiment of the present application.
  • FIG. 2 is a schematic structural diagram of a terminal according to an embodiment of the present application.
  • FIG. 3 is a schematic flowchart diagram of a positioning method according to an embodiment of the present disclosure.
  • FIG. 4 is a schematic diagram of N partitions in a map in a positioning method according to an embodiment of the present disclosure
  • FIG. 5 is a schematic diagram of establishing a Bluetooth connection between a first terminal and a second terminal in a positioning method according to an embodiment of the present disclosure
  • FIG. 6 is a schematic flowchart of a positioning method in an actual application according to an embodiment of the present application.
  • FIG. 7 is a schematic structural diagram of a positioning device according to an embodiment of the present disclosure.
  • FIG. 8 is a schematic flowchart diagram of a positioning method according to an embodiment of the present disclosure.
  • FIG. 9 is a schematic structural diagram of a positioning apparatus according to an embodiment of the present disclosure.
  • FIG. 10 is a schematic structural diagram of a terminal according to an embodiment of the present disclosure.
  • FIG. 11 is a schematic structural diagram of a server according to an embodiment of the present application.
  • the present application provides a positioning method, a terminal, and a server, so that the terminal can quickly acquire satellite data corresponding to the target area in the target time period.
  • the positioning method, the terminal, and the server provided by the present application are based on the same inventive concept, and the principles for solving the problem are similar. Therefore, the positioning method, the terminal, and the server provided by the present application can be mutually referred to, and the repetition is no longer repeated. Narration.
  • the map is divided into a plurality of partitions according to a setting rule, so that the first terminal needs to acquire satellite data corresponding to one or more partitions on the map within a set time range in the future.
  • sending, to the server, a request message carrying the set time range and the indication information of the one or more partitions, and receiving a response returned by the server and carrying the satellite data corresponding to the one or more partitions within the set time range The message can thus achieve the purpose of quickly acquiring the satellite data corresponding to the target area in the target time period; further, since the first terminal can obtain the satellite data corresponding to one or more partitions in a future set time range in advance by the above manner Therefore, when the satellite signal needs to be searched within the set time range, the target satellite can be quickly captured according to the satellite data in the set time range acquired in advance, thereby avoiding the time required to capture the satellite signal by polling the search satellite. Long defects.
  • FIG. 1 is a schematic structural diagram of a communication system provided by an embodiment of the present application.
  • the exemplary communication system 100 includes a server 101 and a plurality of terminals 102-104.
  • the terminals 102-104 and the server 101 can communicate via the network 105; the terminal 103 and the terminal 102 can communicate via a short-range wireless communication connection.
  • the communication system 100 illustrated in FIG. 1 is for example only and is not intended to limit the application. Those skilled in the art should understand that in a specific implementation process, the communication system 100 may also include other devices, and the number of servers and terminals may also be configured according to specific needs. Furthermore, the terms “system” and “network” are interchangeable.
  • the servers involved in the embodiments of the present application may include a single server device or a cluster of local or remote distributed server devices.
  • the server can establish a communication connection with the terminal through a communication network such as an open Internet, an intranet, a firewall protection secure network, a wide area cellular network, or the like.
  • One or more server applications for serving client applications running in the terminal can be hosted in the server.
  • the terminals involved in the embodiments of the present application may be various wireless communication devices having long-distance wireless communication and/or short-range wireless communication functions;
  • Short-range wireless communication allows a terminal to exchange data with other terminals that are close enough to use signals in a low frequency band that is transmitted close to the ground rather than being transmitted over the air.
  • An antenna for short-range wireless communication may be referred to as a low frequency antenna.
  • Typical examples of short-range wireless communication include Bluetooth, Wireless Local Area Network (Wi-Fi), Infrared Data Association (IrDA), and the like;
  • Long-range wireless communication allows a terminal having a long-range wireless communication function to receive or transmit a wireless signal to one or more of a base station, a terminal, and a server in a wireless communication network established according to a corresponding wireless communication standard, using a strong linear high The signal in the frequency band.
  • An antenna for long-distance wireless communication may be referred to as a high frequency antenna.
  • Typical examples of long-range wireless communication include Global System for Mobile Communication (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), and code. Division Multiple Access 2000, Wideband WCDMA (Wide-CDMA), Long Term Evolution (LTE), and Long Term Evolution-Advanced (LTE-A).
  • the terminal 102 is a mobile phone having a wireless cellular communication system and a wireless local area network communication system, which can perform long-distance wireless communication and short-range wireless communication with nearby terminals; and the terminal 103 is provided with a short-range wireless communication system ( A smart watch such as Bluetooth can only perform short-range wireless communication with a nearby terminal (as shown in FIG. 1, the terminal 103 and the terminal 102 can communicate via a short-range wireless communication connection).
  • a smart watch such as Bluetooth can only perform short-range wireless communication with a nearby terminal (as shown in FIG. 1, the terminal 103 and the terminal 102 can communicate via a short-range wireless communication connection).
  • a terminal involved in the embodiment of the present application may also be referred to as a user equipment (User Equipment, UE), a mobile terminal, a mobile device, an access terminal, a subscriber unit, a user terminal, a wireless terminal, a handheld device, a client, and the like.
  • UE User Equipment
  • FIG. 2 is a schematic structural diagram of a terminal provided by an embodiment of the present application.
  • the terminal 200 may have components such as a wireless communication unit 210, a GPS unit 220, an input unit 230, an output unit 240, a sensing unit 250, an interface unit 260, a storage unit 270, a processing unit 280, and a power supply unit 290. . These components can communicate over one or more communication buses or signal lines. These components can be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and/or application specific integrated circuits.
  • the wireless communication unit 210 generally includes one or more of communication that allows wireless communication between the terminal 200 and the wireless communication system, communication between the terminal 200 and another terminal, communication between the terminal 200 and an external server, and the like. Device. Moreover, wireless communication unit 210 typically includes one or more devices that connect terminal 200 to one or more networks. For example, as shown in FIG. 2, the wireless communication unit 210 can include a wireless cellular communication module 211 (which can be used to provide long-range wireless communication functions), a wireless Internet module 212, and a short-range wireless communication module 213 (which can be used to provide short-range wireless communication functions). ),and many more.
  • GPS unit 220 is used to allow communication between terminal 200 and satellites in a global positioning system.
  • the GPS unit 220 can receive satellite signals (wireless signals) from satellites in the GPS through an antenna, and based on these satellite signals, the GPS unit 220 can generate information that can be used for various applications. For example, each satellite in the GPS often repeats its own ephemeris information according to a fixed period. Based on the principle of satellite positioning technology, the GPS unit 220 usually knows exactly 3 to 4 satellite clocks in the GPS (clock). After the track information, the location information (such as longitude/latitude information) of the current location of the terminal 200 can be determined, and the information can be used for applications such as navigation and map mapping as needed.
  • GPS unit 220 After the track information, the location information (such as longitude/latitude information) of the current location of the terminal 200 can be determined, and the information can be used for applications such as navigation and map mapping as needed.
  • Input unit 230 is typically configured to receive various types of input information such as audio, video, tactile input, and the like.
  • the input unit 230 may include, for example, a user input unit 231 (eg, a touch screen, a touch key, a push key, a mechanical key, a soft key, etc.), an audio input unit 232 (eg, a microphone), a camera 233, and the like.
  • User input unit 231 can be used to allow the user to enter information; audio input unit 232 can be used to input audio signals; camera 233 can be used to obtain images or video.
  • Data is obtained by input unit 230 and may be analyzed and processed by processing unit 280 based on device parameters, user commands, and combinations thereof.
  • Output unit 240 is typically configured to output various types of information such as audio, video, haptic output, and the like.
  • the output unit 240 may have, for example, a display unit 241, an audio output unit 242, and the like.
  • the display unit 241 may have an interlayer structure or an integral structure having a touch sensor for promoting a touch screen or the like.
  • the touch screen can provide an input interface and an output interface between the terminal 200 and the user.
  • it can be used as a user input unit 231 to receive user input, such as collecting contact or non-contact operations on or near the user, and driving the corresponding connection device according to a preset program; on the other hand, it can be used for the display unit.
  • 241 is used to display visual output to a user, which may include graphics, text, icons, video, and any combination thereof, such as information that may be displayed by the user, information provided to the user, and various menus of the terminal 200, and the like.
  • the sensing unit 250 is typically configured to sense internal information of the terminal, the surrounding environment of the terminal, user information, etc., and may be implemented by one or more sensors.
  • the sensing unit 250 may include, for example, a touch sensor, an acceleration sensor, a magnetic sensor, a gyro sensor, a motion sensor, a pressure sensor, an RGB sensor, an infrared (IR) sensor, a finger scan sensor, an ultrasonic sensor, an optical sensor, a battery galvanometer, Environmental sensors (eg, barometers, hygrometers, thermometers, radiation detection sensors, light sensors, thermal sensors, gas sensors, etc.), and sensors such as chemical sensors (eg, electronic noses, biometric sensors, etc.).
  • Terminal 200 can be configured to acquire signals from one or more sensors of sensing unit 250 and/or to communicate signals to one or more sensors.
  • the interface unit 260 serves as an interface with various types of external terminals that can be coupled to the terminal 200.
  • the interface unit 260 may include, for example, any wired or wireless port, an external power port, a wired or wireless data port, a memory card port, a port for connecting a terminal having an identification module, and an audio input/output (I/O). Port, video I/O port, headphone port, etc.
  • the terminal 200 may perform a control function associated with the connected external terminal in response to the external terminal being connected to the interface unit 260.
  • Storage unit 270 is typically implemented to store data to support various functions or features of terminal 200.
  • the storage unit 270 may be configured to store an application executed in the terminal 200, data or an indication for the operation of the terminal 200, and the like. Some of these applications can be downloaded from an external server via wireless communication. Other applications may be installed in the terminal 200 at the time of manufacture or shipment, and these applications generally correspond to the basic functions of the terminal 200 (eg, receiving a call, making a call, receiving a message, sending a message, etc.). It is common that the application is stored in the storage unit 270, installed in the terminal 200, and executed by the processing unit 280 to perform operations on the terminal 200.
  • Processing unit 280 is the control center of terminal 200, which connects various portions of the entire terminal using various interfaces and lines, by running or executing software programs and/or devices stored in storage unit 270, and by calling stored in storage unit 270. The data, performing various functions and processing data of the terminal 200, thereby performing overall monitoring of the terminal. Processing unit 280 can process signals, data, information, etc., input or output via various components shown in FIG. 2, or activate an application stored in storage unit 270 to provide or process information or functionality that interacts with the user. For example, processing unit 280 can control some or all of the components of terminal 200 in accordance with the execution of an application that has been stored in storage unit 270.
  • the power supply unit 290 can be configured to receive external power or provide internal power to supply the terminal 200 with the appropriate power required to operate the components and components it includes.
  • the power supply can be logically coupled to the processing unit 280 through the power management system to manage functions such as charging, discharging, and power consumption through the power management system.
  • the power supply unit 290 may include a battery, and the battery may be configured to be embedded in the terminal body or configured to be detachable from the terminal body.
  • terminal structure shown in FIG. 2 does not constitute a limitation of the terminal, and may include more or less components than those illustrated, or combine some components, or split some components, or different. Assembly of parts.
  • terminals such as mobile phones, tablets, laptops, etc. often have the same or more functions and components than the terminal 200 shown in FIG. 2; for example, for example, smart watches, smart bracelets, smart glasses, and head-mounted Wearable, smaller terminals, such as displays (HMDs), are limited in size and tend to have fewer functions and components than the terminal 200 shown in FIG.
  • a wireless communication unit in a wearable terminal often does not include a wireless cellular communication module, but includes a short-range wireless communication module.
  • a wearable terminal can be used to exchange data or cooperate with terminals in its vicinity.
  • the terminal 103 can be sensed or identified by the short-range communication module according to the corresponding communication protocol in the terminal 102 close enough to the short-distance communication module provided therein, when the terminal 102 senses that the terminal 103 is
  • the terminal 102 can transmit the data processed in the terminal 102 to the terminal 103 via the short-range communication module, so that the user of the terminal 103 can use the data processed in the terminal 102 on the terminal 103.
  • the terminal 102 runs a music playing application, the user can listen to music using the terminal 103.
  • the terminal can receive satellite signals by configuring the GPS unit therein.
  • the GPS unit of the terminal often polls and collects the satellite signal, so it may need to cover all the satellite parameters, resulting in a long time required to accurately collect the satellite signal of the desired satellite, and the GPS unit of the terminal and
  • the performance requirements of hardware devices such as processing units are also relatively high.
  • the terminal can quickly acquire the satellite data corresponding to the target area in the target time period and improve the user experience.
  • the present application provides a positioning solution.
  • the positioning solution provided by the embodiment of the present application can be applied to a communication system including a terminal and a server, such as the communication system 100 shown in FIG. 1 , and specifically configured on the terminal and the server to implement the present application.
  • the function modules of the positioning scheme provided by the embodiment, the function modules for executing the process may be implemented by hardware, software programming or a combination of software and hardware, for example, the server 101 and the terminal 102 and the terminal 104 in the communication system 100 respectively.
  • the server-side software and the client software configured to implement the positioning solution provided by the embodiment of the present application are configured.
  • FIG. 3 is a schematic flowchart diagram of a positioning method provided by an embodiment of the present application. Specifically, the process may be performed by the first terminal, for example, the terminal 102 and the terminal 104 in FIG. 1 may be configured to implement the function module shown in FIG.
  • the process includes the following steps:
  • Step 301 Divide the map into M partitions according to the setting rule, and the first terminal determines that it is necessary to acquire satellite data corresponding to N partitions in the map in a set time range in the future, where M and N are positive integers, and M is greater than or equal to N.
  • the above-mentioned setting rule for dividing the map into M partitions may be to divide the map according to longitude and/or latitude.
  • the setting rule may be that the latitude and longitude lines for dividing the map are first determined according to the set longitude interval and the latitude interval, and each geographical area separated by the latitude and longitude lines on the map is used as each partition. It can be seen that the partition obtained by the setting rule can conveniently correspond to the orbit data of the satellite, thereby facilitating calculation of satellite data corresponding to each partition for each partition.
  • the above setting rule may also be to divide the map according to the administrative area.
  • the partition may be each country on the map, or more finely, an administrative area (such as a province, a district, a county, etc.) obtained by administrative division of the jurisdiction of each country. It can be seen that the partition obtained by the setting rule has the advantage that it is more in line with the user's habits and is beneficial to improving the user experience.
  • the M partitions that are obtained by dividing the map according to the setting rules may be identified by a number, a label, or a coordinate, etc., which is not limited in this application.
  • the first terminal may determine N partitions from the M partitions obtained by dividing the map, and further determine that it is necessary to acquire satellite data corresponding to the N partitions in a future set time range.
  • the first terminal may determine one partition from the M partitions in the map, and then N is equal to 1, thereby determining that it is necessary to acquire satellite data corresponding to the partition within a set time range in the future; for example, A terminal may also determine two or more partitions from the M partitions in the map, thereby determining that it is necessary to acquire satellite data corresponding to the plurality of partitions in a future set time range.
  • FIG. 4 is a schematic diagram of N partitions in a map in a positioning method provided by some embodiments of the present application.
  • the first terminal may be configured to receive an instruction for acquiring satellite data, so as to determine, according to the received instruction, that the satellite data corresponding to the N partitions in the map in the set time range needs to be acquired.
  • the above instruction for acquiring satellite data may carry information of a set time range and N partitions.
  • a function module configured to perform the process shown in FIG. 3 may be configured on the terminal 102, and provided to the user of the terminal 102 through a user interface (UI) for acquiring a future satellite.
  • UI user interface
  • the above menu may include a UI control for directly confirming that the user needs to acquire future satellite data, which is equivalent to confirming acquisition of satellite data corresponding to the default partition in the default time range, wherein the default time may be pre-configured,
  • the default time may be a day or a longer time starting from the current time.
  • the default partition may also be a pre-configured N partitions, such as a user's own preset geographical area. The corresponding partition on the map, or the default partition can also be provided to the user for modification settings, etc.;
  • the menu may specifically include a UI control for providing a user to select or input (including voice or keying manner, etc.) for a future time range, which is equivalent to confirming the satellite data corresponding to the default partition within the time range required by the user.
  • the menu may also include a UI control for providing a user to select a partition or input the required partition information, which is equivalent to confirming the satellite data corresponding to the N partitions required by the user in the default time range; or, the menu is also
  • the UI control may be specifically included to provide a user to select or input a future time range, and a UI control for providing a user to select a partition or input required partition information, which is equivalent to confirming that the time required by the user is N. Satellite data corresponding to each partition.
  • the user of the terminal 102 can operate on the above menu according to requirements. For example, the user of the terminal 102 can select the time corresponding to the satellite data that needs to be acquired according to the geographical range that may be located in a future setting range. Range and N partitions, the above user operations are converted into instructions into the processor of the terminal 102, and the processor of the terminal 102 can further determine, according to the instruction, that the N partitions in the set time range need to be acquired. Satellite data.
  • the request message for acquiring the satellite data may be generated, and then step 302 in the process shown in FIG. 3 may be performed. .
  • Step 302 The first terminal sends a request message to the server, where the request message carries the set time range and the indication information of the N partitions.
  • the server may be configured to receive and process request messages for acquiring satellite data from any terminal or authenticated terminal, and may be configured to return its requested satellite data to the corresponding terminal.
  • a functional module for receiving and processing request messages for acquiring satellite data from any terminal or authenticated terminal can be configured on the server 101, and is configurable useful.
  • server 101 can receive a request message sent by terminal 102 with which it has established a communication connection, and can return its requested satellite data to terminal 102.
  • the server may parse the request message, and determine a set time range corresponding to the satellite data required by the terminal and N partitions in the map.
  • the server may calculate, according to the historical satellite data, the N partitions corresponding to the set time range.
  • the satellite data returns a response message carrying the satellite data corresponding to the N partitions within the set time range to the first terminal.
  • the historical satellite data may be satellite data issued by each satellite in the GPS acquired by the server and stored on the server.
  • a GPS unit configured to receive satellite signals can be configured on the server to receive satellite data of the satellite broadcast in real time, and can be received after receiving.
  • the processing unit of the server Stored in the storage unit of the server, the processing unit of the server performs the above calculation process by reading the historical satellite data stored in the storage unit.
  • the server may also set an expiration date for the satellite data at each moment of the stored history, thereby ensuring the accuracy of the calculation result, for example, the expiration date may be set to one day;
  • the server may be configured with a communication interface for communicating with a network device for storing satellite data, and the server may directly acquire historical satellite data from the network device through the communication interface.
  • the server may acquire historical satellite data within a preset duration from the current time to the endpoint, and the preset duration may be a period of one day or longer; and the like.
  • the satellite data corresponding to the N partitions in the set time range may be calculated according to a preset algorithm. For example, the server may determine the distribution of each satellite from the historical satellite data, and then calculate the satellite data of each satellite passing through the partition in the future set time range for each of the N partitions.
  • the satellite data of each satellite passing through the partition within the set time range may include an identity (Identity, ID), orbit data, and each satellite passing through the partition within the set time range.
  • Identity, ID identity
  • orbit data orbit data
  • Star clock data etc.; it can be seen that these satellite data can be used to indicate that the terminal is searching for satellite signals more efficiently.
  • the server may also acquire historical satellite data according to a set period, calculate satellite data corresponding to each partition on the map in the default time range, and store the calculation result in the storage unit of the server. For example, the satellite data corresponding to each partition may be bound and stored in each partition. Further, after receiving the request message sent by the first terminal, if the server determines that the set time range is within the default time range, the server may directly read The stored calculation result is returned to the first terminal to speed up the response.
  • the server may also store map data, and further, return the map data of the partition bound to the satellite data while returning the satellite data required by the first terminal.
  • the server will be able to return a response message carrying the satellite data corresponding to the N partitions within the set time range to the first terminal. Further, the first terminal may perform step 303 in the flow shown in FIG. 3.
  • Step 303 The first terminal receives a response message returned by the server.
  • the first terminal may obtain the satellite data corresponding to the N partitions within the set time range required by the response message.
  • the acquired satellite data may be stored in the storage unit of the first terminal, and then in the set time range, the first The terminal can read the satellite data corresponding to the N partitions in the set time range stored in the storage unit, and use the satellite data. Searching for satellite signals; it can be seen that, in the above manner, the first terminal can perform satellite search based on the acquired future satellite data pre-inferred by the server, which is more targeted than the current method of polling the search stars, thereby enabling Avoid the defects that the current polling of the search star leads to the search for accurate satellite signals and the long time required to achieve positioning;
  • the traditional polling star search scheme will make the first terminal need to search.
  • PRNs pseudo random noise codes
  • a terminal may transmit satellite data corresponding to N partitions in the set time range to the second terminal, so that the second terminal can use the satellite data to search for satellite signals within the set time range.
  • the terminal 102 can transmit the satellite data acquired by the terminal 102 to the terminal 103, so that the terminal 103 can also use the satellite data to search for satellite signals within a set time range.
  • the terminal 102 can first confirm whether the satellite data can be transmitted to the terminal. For example, the terminal 102 can authenticate the validity of the transmission to the terminal 103, which will not be described in detail in this application.
  • the second terminal may be connected to the first terminal by using a short-range wireless communication technology
  • the short-range wireless communication technology may be referred to the foregoing description, and may include, for example, Bluetooth, Wi-Fi, infrared data transmission, and the like.
  • the second terminal may specifically be a terminal having a short-range wireless communication function without a function of communicating with a base station and/or a function of communicating with a server.
  • a Bluetooth wristband with only a GPS unit and a Bluetooth watch as a wearable device, often do not have the function of communicating with a base station due to the volume.
  • searching for satellite signals when working alone often takes a long time to complete positioning (usually more than 30 seconds), and the user experience is poor.
  • the second terminal of this type moves to a brand new geographical range, the time required for the GPS unit configured on the satellite unit to search for the satellite signal will be longer;
  • the second terminal of the above type can establish a communication connection with the first terminal by using the short-range wireless communication function, and then obtain the communication process between the first terminal and the server.
  • the satellite data After the satellite data corresponding to the N partitions in the set time range, the satellite data can be indirectly obtained through a communication connection established with the first terminal, so that the obtained satellite data can be used when the first device is separated from the work.
  • the satellite data arrives with a purpose to search for satellite signals to achieve rapid positioning and enhance the user experience.
  • the first terminal may specifically be a mobile phone, a tablet computer, a notebook, etc.
  • the second terminal may specifically be a smart watch, a smart bracelet, or a smart device. Glasses and so on.
  • FIG. 5 is a schematic diagram of establishing a Bluetooth connection between a first terminal and a second terminal in a positioning method according to an embodiment of the present application.
  • the first terminal 501 can establish a Bluetooth connection with the second terminal 502 that is also configured with the Bluetooth function module through the Bluetooth function module configured thereon, so that the first terminal 501 is obtained through the process shown in FIG.
  • the satellite data may be transmitted to the second terminal 502 through the Bluetooth connection, so that the second terminal 502 searches through the GPS unit configured on the second terminal 502 within the set time range. satellite signal.
  • the function of the server side in the communication process is configured as an application (Application) service program configured on the server, and can provide a first type of application that can be configured to the first terminal of a type such as a mobile phone or a tablet (or Represented as a main App), and a second type of application (or can be represented as an Application) that can be configured to a second terminal of a type such as a Bluetooth bracelet, a Bluetooth watch, or the like;
  • Application Application
  • the first terminal may provide the satellite data corresponding to the N zones in the set time range by using the App service program on the main App trigger server; the second terminal may transmit the primary App to the first terminal by triggering the first terminal from the App. Obtain satellite data corresponding to N partitions within the set time range.
  • the corresponding storage space may be configured for the App service program, the main App, and the App, for example, it may be a storage space of one hundred to two hundred megabytes.
  • FIG. 6 is a schematic diagram of a communication process in a practical application of a positioning method provided by an embodiment of the present application.
  • an App service program is configured on the server
  • a mobile phone (corresponding to the first terminal described above) is configured with a main App
  • a watch (corresponding to the second terminal described above) is configured with a slave application
  • the communication flow is as follows: :
  • Step 600 The map is divided into a plurality of partitions (corresponding to the above M partitions) according to a set rule in advance.
  • the map can be pre-downloaded and stored on servers, mobile phones, and watches.
  • the identification information of each partition obtained by the map may be configured to an App service program on the server, a main App on the mobile phone, and a slave application on the watch.
  • Step 601 The user starts the main App on the mobile phone
  • the UI menu may be provided to the user, thereby receiving the user input user for indicating the target time range (corresponding to the set time range mentioned above) and the target area (corresponding to the above N partitions). instruction.
  • Step 602 The main application on the mobile phone generates a request message for requesting satellite data corresponding to the target area in the target time range according to the user instruction, and sends the request message to the server.
  • Step 603 After receiving the request message, the App service program on the server parses the request message to determine a target time range and a target area corresponding to the satellite data required by the mobile phone.
  • Step 604 The App service program on the server initiates the calculation of the satellite data corresponding to the target area within the determined target time range; specifically, the historical satellite data may be acquired to perform the above calculation;
  • Step 605 After obtaining the estimated result, the App service program on the server generates a response message carrying the estimated result and feeds back to the mobile phone.
  • Step 606 After receiving the response message, the mobile phone parses the response message, so as to obtain satellite data corresponding to the target area in the target time range and store it; it can be seen that, by using the above steps, the mobile phone can be within the target time range. Searching for satellite signals using the acquired satellite data to complete positioning;
  • Step 607 the watch is sensed by the Bluetooth module in the mobile phone with the Bluetooth module provided by the watch; and the mobile phone recognizes the watch as a terminal that is authenticated to communicate with the terminal;
  • Step 608 The mobile phone sends the satellite data corresponding to the target area in the target time range stored by the mobile phone to the watch through a Bluetooth connection established between the watch and the watch;
  • Step 609 The watch stores the satellite data corresponding to the target area within the received target time range, so that the stored satellite data can be used to search for the satellite signal in the target time range to complete the positioning, thereby overcoming the current wearable terminal requirements such as watches. Polling search satellites takes time, delays in positioning, and poor user experience.
  • the map is divided into a plurality of partitions according to a setting rule, so that the first terminal needs to acquire one or more partitions within a set time range in the future.
  • the star data may send a request message carrying the set time range and the indication information of the one or more partitions to the server, and receive the satellite data returned by the server and carrying the one or more partitions within the set time range. Response message, thus achieving the purpose of quickly acquiring satellite data corresponding to the target area within the target time period;
  • the map is divided into several partitions (for example, divided into administrative areas), etc., because each partition has a certain latitude and longitude span, rather than a specific location (a certain latitude and longitude) ), thus reducing the computational complexity and speeding up the search time when extrapolating satellite data;
  • the server may calculate satellite data corresponding to the target area in a future target time period (such as one day or longer) based on the historical satellite data, and the first terminal may obtain The calculated target is the satellite data corresponding to the target area in the segment. Therefore, when the target time period arrives, if the first terminal is in the target area and needs to search for satellite signals for positioning, it can be based on the pre-obtained target time range.
  • a future target time period such as one day or longer
  • the satellite data corresponding to the target area quickly captures the satellite signals of the satellites located above the target area, avoiding the short-time defects of capturing the satellite signals by polling the search satellites at present, improving the positioning efficiency and improving the user experience, for example, from Theoretically, by using the positioning scheme provided by the present application, as long as searching for 4 to 5 PRNs, the time required to search 32 PRNs compared to the conventional scheme is greatly shortened;
  • the positioning solution provided by the foregoing embodiment of the present application may be specifically implemented as an APP solution, and thus may be used by different terminals in the same partition, or may be used by terminals of different partitions at the same time, and the used terminal is not limited, and the used time is not limited. Not limited, it is convenient for the terminal to achieve fast positioning after offline.
  • the present application also provides a positioning method.
  • FIG. 7 is a schematic flowchart diagram of a positioning method provided by an embodiment of the present application. Specifically, the process may be performed by a server, for example, a function module configured on the server 101 to implement the process shown in FIG.
  • the process includes the following steps:
  • Step 701 The server receives a request message sent by the first terminal, where the request message carries N partitions in the map corresponding to the satellite data that the first terminal needs to acquire, and indication information of a set time range; the map is According to the setting rules, it is divided into M partitions, where M and N are positive integers, and M is greater than or equal to N;
  • Step 702 The server calculates, according to the historical satellite data, satellite data corresponding to the N partitions in the set time range, where the satellite data corresponding to one partition includes each of the satellites that pass through the partition within the set time range. Satellite data of the satellite;
  • Step 703 The server sends a response message to the first terminal, where the response message carries satellite data corresponding to the N partitions in the set time range.
  • the historical satellite data is satellite data issued by each satellite in the GPS acquired by the server and stored on the server.
  • the present application further provides a positioning device, which can be deployed on a first terminal (such as the terminal 102 and the terminal 104 shown in FIG. 1) for performing the above implementation of the present application.
  • a positioning device which can be deployed on a first terminal (such as the terminal 102 and the terminal 104 shown in FIG. 1) for performing the above implementation of the present application.
  • the flow of the positioning method on the first terminal side described in the example, the functional modules in the device can be implemented by hardware, software or a combination of hardware and software.
  • FIG. 8 is a schematic structural diagram of a positioning device provided by an embodiment of the present application.
  • the device includes:
  • a determining module 801 configured to divide the map into M partitions according to a setting rule, and determine that it is necessary to acquire satellite data corresponding to N partitions in the map in a future set time range, where M and N are positive integers, and M is greater than or equal to N;
  • the sending module 802 is configured to send a request message to the server, where the request message carries the set time range and the indication information of the N partitions;
  • the receiving module 803 is configured to receive a response message returned by the server, where the response message carries satellite data corresponding to the N partitions in the set time range calculated by the server according to historical satellite data;
  • the satellite data corresponding to one partition includes satellite data of each satellite passing through the partition within the set time range.
  • the device further includes:
  • a GPS module configured to use, after the receiving module 803 receives the response message returned by the server, in the set time range, using the N partitions in the set time range carried in the response message Corresponding satellite data searches for satellite signals.
  • the device further includes:
  • a transmission module configured to: after the receiving module 803 receives the response message returned by the server, if it is determined that a communication connection is established with the second terminal, the N partitions corresponding to the set time range are corresponding Satellite data is transmitted to the second terminal to cause the second terminal to search for satellite signals using the satellite data within the set time range.
  • the device further includes: an input module, configured to receive an instruction for acquiring satellite data, where the instruction carries the set time range and information of the N partitions;
  • the determining module is specifically configured to: determine the set time range and the N partitions according to the instruction.
  • the setting rule is to divide the map according to longitude and/or latitude; or, the setting rule is to divide the map according to the administrative region.
  • the satellite data of each satellite passing through the partition within the set time range includes at least an identifier ID of each satellite passing through the partition within the set time range, Track data, and star clock data.
  • the device provided by the foregoing embodiment of the present invention is similar to the method for solving the problem in the method of the first terminal side provided by the foregoing embodiment of the present invention. Therefore, the specific implementation of the device provided by the foregoing embodiment of the present invention may be The implementation of the method on the first terminal side provided by the foregoing embodiments of the present invention may be referred to each other, and the repeated description is not repeated.
  • the present application further provides a positioning device, which can be deployed on a server (such as can be deployed on the server 101 shown in FIG. 1) to execute the server described in the above embodiment of the present application.
  • the positioning method of the side, the function module in the device can be realized by hardware, software or a combination of software and hardware.
  • FIG. 9 is a schematic structural diagram of a positioning device provided by an embodiment of the present application.
  • the device includes:
  • the receiving module 901 is configured to receive a request message sent by the first terminal, where the request message carries N partitions in a map corresponding to the satellite data that the first terminal needs to acquire, and indication information of a set time range;
  • the map is divided into M partitions according to the set rules, where M and N are positive integers, and M is greater than or equal to N;
  • the calculating module 902 is configured to calculate, according to the historical satellite data, satellite data corresponding to the N partitions in the set time range; wherein the satellite data corresponding to one partition includes the sky over the partition within the set time range Satellite data for each satellite;
  • the sending module 903 is configured to send a response message to the first terminal, where the response message carries satellite data corresponding to the N partitions in the set time range.
  • the historical satellite data is satellite data issued by each satellite in the GPS acquired by the server and stored on the server.
  • the device provided by the foregoing embodiment of the present invention is similar to the method for solving the problem in the server-side method embodiment provided by the foregoing embodiment of the present invention. Therefore, the specific implementation of the device provided by the foregoing embodiment of the present invention may be The implementation of the method on the server side provided by the foregoing embodiments may be referred to each other, and the repeated description is not repeated.
  • each functional module in each embodiment of the present application may be integrated into one processing. In the device, it can also be physically existed alone, or two or more modules can be integrated into one module.
  • the above integrated modules can be implemented in the form of hardware or in the form of software functional modules.
  • the present application further provides a terminal on which the positioning device as shown in FIG. 8 can be deployed.
  • FIG. 10 is a schematic structural diagram of a terminal provided by an embodiment of the present application.
  • the terminal 1000 may include a processing unit 1001 and a wireless communication unit 1002.
  • the processing unit 1001 may include a central processing unit (CPU), or may also include a digital processing module or the like.
  • the processing unit 1001 is configured to divide the map into M partitions according to a setting rule, and determine that it is necessary to acquire satellite data corresponding to N partitions in the map in a future set time range, where M and N are positive integers. And M is greater than or equal to N; and, for transmitting, by the wireless communication unit 1002, a request message carrying a set time range and indication information of N partitions; and, for receiving by the wireless communication unit 1002 a response message returned by the server, where the response message carries satellite data corresponding to N partitions in a set time range calculated by the server according to historical satellite data, wherein the satellite data corresponding to one partition includes the set time range Satellite data for each satellite above the subarea.
  • the terminal 1000 may further include a storage unit 1003 and a GPS unit 1004.
  • the storage unit 1003 may be configured to store satellite data corresponding to N partitions in a set time range carried in the response message.
  • the processing unit 1001 is further configured to: read the satellite data corresponding to the N partitions in the set time range stored in the storage unit 1003 within the set time range, and use the satellite data to instruct the GPS unit 1004 to search for the satellite signal.
  • the processing unit 1001, the wireless communication unit 1002, the storage unit 1003, and the GPS unit 1004 may be specifically configured to perform the method on the first terminal side provided by the foregoing embodiments of the present invention. This application does not repeat here.
  • the storage unit 1003 can also be used to store a program executed by the processing unit 1001.
  • the storage unit 1003 may be a non-volatile memory, such as a hard disk drive (HDD) or a solid-state drive (SSD), or a volatile memory such as a random access memory ( Random-access memory, RAM).
  • the storage unit 1003 is any other medium that can be used to carry or store desired program code in the form of an instruction or data structure and can be accessed by a computer, but is not limited thereto.
  • the specific connection medium between the processing unit 1001, the wireless communication unit 1002, the storage unit 1003, and the GPS unit 1004 is not limited in the embodiment of the present application.
  • the bus can be connected, and the bus can be divided into an address bus, a data bus, a control bus, and the like.
  • An embodiment of the present invention further provides a readable storage medium for storing required to execute the foregoing processing unit.
  • a software instruction that includes a program for executing the execution of the processing unit described above.
  • the present application also provides a server on which the positioning device as shown in FIG. 9 can be deployed.
  • FIG. 11 is a schematic structural diagram of a server provided by an embodiment of the present application.
  • the server 1100 may include a processing unit 1101 and a wireless communication unit 1102.
  • Processing unit 1101 may include a central processing module or may also include a digital processing module or the like.
  • the processing unit 1101 is configured to receive, by using the wireless communication unit 1102, a request message sent by the first terminal, where the request message carries N partitions in a map corresponding to satellite data that the first terminal needs to acquire, and a set time range.
  • the map is divided into M partitions according to a setting rule, wherein M and N are positive integers, and M is greater than or equal to NM; and, for calculating, according to historical satellite data, N partitions corresponding to a set time range Satellite data; wherein satellite data corresponding to one partition includes satellite data of each satellite passing over the partition within a set time range; and, for transmitting a response message to the first terminal through the wireless communication unit 1102, the response The message carries satellite data corresponding to N partitions within a set time range.
  • processing unit 1101 and the wireless communication unit 1102 are specifically configured to perform the server-side method provided by the foregoing embodiments of the present invention. This application does not repeat here.
  • the server 1100 may further include a storage unit 1103.
  • the processing unit 1101 may be further configured to: acquire satellite data issued by each satellite in the GPS, and store the acquired satellite data into the storage unit 1103.
  • the storage unit 1103 can also be used to store a program executed by the processing unit 1101.
  • the storage unit 1103 may be a non-volatile memory, such as a hard disk drive (HDD) or a solid-state drive (SSD), or may be a volatile memory such as a random access memory ( Random-access memory, RAM).
  • the storage unit 1103 is any other medium that can be used to carry or store desired program code in the form of an instruction or data structure and can be accessed by a computer, but is not limited thereto.
  • the specific connection medium between the processing unit 1101, the wireless communication unit 1102, and the storage unit 1103 is not limited in the embodiment of the present application.
  • the bus can be connected, and the bus can be divided into an address bus, a data bus, a control bus, and the like.
  • the embodiment of the present invention further provides a readable storage medium for storing software instructions required to execute the above processing unit, which includes a program for executing the execution of the processing unit.
  • embodiments of the present application can be provided as a method, system, or computer program product.
  • the present application can take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment in combination of software and hardware.
  • the application can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) including computer usable program code.
  • These computer program instructions can also be stored in a particular computer capable of booting a computer or other programmable data processing device In a computer readable memory that operates in a computer readable memory, causing instructions stored in the computer readable memory to produce an article of manufacture comprising instruction means implemented in a block or in a flow or a flow diagram and/or block diagram of the flowchart The functions specified in the boxes.
  • These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device.
  • the instructions provide steps for implementing the functions specified in one or more of the flow or in a block or blocks of a flow diagram.

Landscapes

  • Engineering & Computer Science (AREA)
  • Radar, Positioning & Navigation (AREA)
  • Remote Sensing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Position Fixing By Use Of Radio Waves (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Telephonic Communication Services (AREA)

Abstract

A positioning method, a terminal and a server, used for enabling the terminal to quickly acquire satellite data corresponding to a target area in a target time period. The method comprises: a map is divided into M partitions according to a set rule; a first terminal determines that future satellite data corresponding to N partitions in the map within a set time range needs to be acquired, M and N being positive integers, and M being greater than or equal to N; the first terminal sends a request message to a server, the request message carrying a set time range and indication information for the N partitions; the first terminal receives a response message returned by the server, the response message carrying satellite data which corresponds to the N partitions within the set time range and which is calculated by the server according to historical satellite data, wherein satellite data corresponding to a partition comprises satellite data of each satellite passing over the partition within a set time range.

Description

一种定位方法、终端及服务器Positioning method, terminal and server
本申请要求在2017年01月11日提交中国专利局、申请号为201710020365.4、发明名称为“一种GPS定位的方法和设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese Patent Application, filed on Jan. 11, 2017, filed Jan. in.
技术领域Technical field
本申请涉及通信技术领域,尤其涉及一种定位方法、终端及服务器。The present application relates to the field of communications technologies, and in particular, to a positioning method, a terminal, and a server.
背景技术Background technique
全球定位系统(Global Positioning System,GPS),或可称为卫星定位系统、,就是使用卫星对任一物体进行准确定位的技术。GPS可以保证在任意时刻,地球上任意一点都可以同时观测到至少4颗卫星,以用于实现导航、定位、授时等功能。The Global Positioning System (GPS), or satellite positioning system, is a technology that uses satellites to accurately locate any object. GPS can guarantee that at least 4 satellites can be observed at any time on the earth at any time for navigation, positioning, timing and other functions.
GPS系统包括有:空间部分、控制部分以及用户部分。其中,GPS的空间部分由24颗GPS工作卫星所组成,每颗GPS工作卫星都发出用于导航定位的卫星信号。GPS的控制部分由分布在全球的由若干个跟踪站所组成的监控系统所构成,用于监控卫星的工作状态。GPS的用户部分由GPS接收机、数据处理软件及相应的用户设备如计算机气象仪器等所组成,用于接收GPS卫星所发出的信号,并利用这些信号进行定位等。The GPS system includes: a space portion, a control portion, and a user portion. Among them, the space part of GPS is composed of 24 GPS working satellites, and each GPS working satellite sends satellite signals for navigation and positioning. The control part of the GPS consists of a globally distributed monitoring system consisting of several tracking stations for monitoring the working state of the satellite. The user part of the GPS consists of a GPS receiver, data processing software and corresponding user equipment such as computer meteorological instruments, which are used to receive signals from GPS satellites and use these signals for positioning.
传统卫星定位方案中,在诸如手机或穿戴式设备产品等终端上,往往需要由终端的GPS接收机轮询收取卫星信号,实时获取当时当地的卫星信号后,再由终端的处理器完成到地图上的映射,实现定位。可以看到,传统卫星定位方案中存在以下弊端:一方面,定位时间取决于终端GPS接收机及处理器等硬件设备的性能;另一方面,轮询收取卫星信号可能需要覆盖到所有的卫星参数,并会导致准确收取到所需卫星的卫星信号所需时间较长,进而使得后续使用卫星信号进行地图映射或导航所需时间较长。In the traditional satellite positioning scheme, on a terminal such as a mobile phone or a wearable device, it is often necessary to poll the satellite receiver of the terminal to receive the satellite signal, obtain the local satellite signal in real time, and then complete the map by the processor of the terminal. Mapping on top, achieving positioning. It can be seen that the following drawbacks exist in the traditional satellite positioning scheme: on the one hand, the positioning time depends on the performance of the hardware devices such as the terminal GPS receiver and the processor; on the other hand, polling the satellite signal may need to cover all satellite parameters. And it will take a long time to accurately collect the satellite signals of the required satellites, which will make the subsequent use of satellite signals for map mapping or navigation longer.
如何克服传统卫星定位方案中的上述弊端,提升用户体验,是亟待业界解决的问题。How to overcome the above drawbacks in the traditional satellite positioning scheme and enhance the user experience is an urgent problem to be solved by the industry.
发明内容Summary of the invention
本申请提供一种定位方法、终端及服务器,用以使得终端能够快速获取目标时段内目标区域对应的卫星数据。The present application provides a positioning method, a terminal, and a server, so that the terminal can quickly acquire satellite data corresponding to the target area in the target time period.
第一方面,本申请提供了一种定位方法,所述方法包括:In a first aspect, the present application provides a positioning method, the method comprising:
按照设定规则将地图划分为M个分区,第一终端确定需要获取未来的一个设定时间范围内所述地图中N个分区对应的卫星数据,其中M、N为正整数,且M大于等于N;According to the setting rule, the map is divided into M partitions, and the first terminal determines that it is necessary to acquire satellite data corresponding to N partitions in the map in a set time range in the future, where M and N are positive integers, and M is greater than or equal to N;
所述第一终端向服务器发送请求消息,所述请求消息中携带所述设定时间范围以及所述N个分区的指示信息;Sending, by the first terminal, a request message to the server, where the request message carries the set time range and the indication information of the N partitions;
所述第一终端接收所述服务器返回的响应消息,所述响应消息中携带所述服务器根据历史卫星数据计算得到的、所述设定时间范围内所述N个分区对应的卫星数据;其中,一个分区对应的卫星数据包括所述设定时间范围内经过该分区上空的每个卫星的卫星数据。Receiving, by the first terminal, a response message returned by the server, where the response message carries satellite data corresponding to the N partitions in the set time range calculated by the server according to historical satellite data; The satellite data corresponding to a partition includes satellite data of each satellite passing over the partition within the set time range.
可以看到,在本申请提供的上述定位方案中,地图被按照设定规则划分为若干个分区,从而终端可按需选择获取地图中的N个分区在未来的一个设定时间范围内对应的卫星数 据,并通知给服务器,服务器获知终端所需卫星数据对应的地图上的N个分区和设定时间范围后,可基于历史卫星数据计算出该设定时间范围内该N个分区对应的卫星数据,反馈给该终端,通过上述过程,终端将能够快速获取到目标时段内目标区域对应的卫星数据。It can be seen that, in the foregoing positioning solution provided by the present application, the map is divided into a plurality of partitions according to a setting rule, so that the terminal can select and acquire N partitions in the map as needed in a future set time range. Number of satellites According to the notification, the server can obtain the satellite data corresponding to the N partitions in the set time range based on the historical satellite data after the server knows the N partitions and the set time range on the map corresponding to the satellite data required by the terminal. And feedback to the terminal, through the above process, the terminal will be able to quickly acquire satellite data corresponding to the target area within the target time period.
在一种可能的实现中,所述第一终端接收所述服务器返回的响应消息之后,还包括:In a possible implementation, after the first terminal receives the response message returned by the server, the method further includes:
所述第一终端在所述设定时间范围内,使用所述响应消息中携带的所述设定时间范围内所述N个分区对应的卫星数据搜索卫星信号。The first terminal searches for satellite signals in the set time range by using satellite data corresponding to the N partitions in the set time range carried in the response message.
可以看到,通过上述方式,第一终端便可依据预先获取到的设定时间范围内N个分区的卫星数据在该设定时间范围内有目标地捕获卫星信号,避免目前轮询搜索卫星而导致捕获卫星信号所需时间较长的缺陷,提供搜索效率,降低卫星定位时间。It can be seen that, in the above manner, the first terminal can targetly acquire satellite signals within the set time range according to the satellite data of the N partitions within the set time range acquired in advance, thereby avoiding the current polling of the search satellite. The shortcomings that result in the long time required to capture satellite signals provide search efficiency and reduce satellite positioning time.
在一种可能的实现中,所述第一终端接收所述服务器返回的响应消息之后,还包括:In a possible implementation, after the first terminal receives the response message returned by the server, the method further includes:
所述第一终端若确定与第二终端之间建立有通信连接,则所述第一终端将所述设定时间范围内所述N个分区对应的卫星数据传输给所述第二终端,以使所述第二终端在所述设定时间范围内使用所述卫星数据搜索卫星信号。If the first terminal determines that a communication connection is established with the second terminal, the first terminal transmits the satellite data corresponding to the N partitions in the set time range to the second terminal, to Having the second terminal search for satellite signals using the satellite data over the set time range.
可以看到,通过上述方式,第一终端可将所获取到的上述卫星数据传输给第二终端,使得第二终端在设定时间范围内也能够基于上述卫星数据有目标地捕获卫星信号,提供搜索效率,降低卫星定位时间。It can be seen that, in the above manner, the first terminal may transmit the acquired satellite data to the second terminal, so that the second terminal can also targetly acquire satellite signals based on the satellite data within a set time range, and provide Search efficiency and reduce satellite positioning time.
在一种可能的实现中,所述第一终端确定需要获取未来的一个设定时间范围内N个分区对应的卫星数据,包括:In a possible implementation, the first terminal determines that it is required to acquire satellite data corresponding to N partitions in a future set time range, including:
所述第一终端接收用于获取卫星数据的指令,所述指令中携带所述设定时间范围以及所述N个分区的指示信息;The first terminal receives an instruction for acquiring satellite data, where the instruction carries the set time range and indication information of the N partitions;
所述第一终端根据所述指令,确定所述设定时间范围以及所述N个分区。Determining, by the first terminal, the set time range and the N partitions according to the instruction.
可以看到,通过上述方式,使得第一终端的用户可以获取其所需要的未来时间段内目标区域对应的卫星数据,以用于后续的卫星定位。It can be seen that, in the above manner, the user of the first terminal can obtain the satellite data corresponding to the target area in the future time period required for the subsequent satellite positioning.
在一种可能的实现中,所述设定规则为将地图按照经度和/或纬度进行划分;或者,所述设定规则为将地图按照行政区域进行划分。In a possible implementation, the setting rule is to divide the map according to longitude and/or latitude; or, the setting rule is to divide the map according to the administrative region.
可以看到,通过上述方式,各个分区具有一定的地理范围,从而服务器在推算卫星数据时的计算复杂度将减小。It can be seen that, in the above manner, each partition has a certain geographical range, so that the computational complexity of the server in estimating the satellite data will be reduced.
在一种可能的实现中,所述设定时间范围内经过所述分区上空的每个卫星的卫星数据,至少包括所述设定时间范围内经过所述分区上空的每个卫星的ID、轨道数据、和星钟数据。In a possible implementation, the satellite data of each satellite passing through the partition within the set time range includes at least an ID and an orbit of each satellite passing through the partition within the set time range. Data, and star clock data.
第二方面,本申请提供了一种定位方法,所述方法包括:In a second aspect, the present application provides a positioning method, the method comprising:
服务器接收第一终端发送的请求消息,所述请求消息中携带所述第一终端需要获取的卫星数据对应的地图中的N个分区以及设定时间范围的指示信息;所述地图被按照设定规则划分为M个分区,其中M、N为正整数,且M大于等于N;Receiving, by the server, a request message sent by the first terminal, where the request message carries N partitions in the map corresponding to the satellite data that the first terminal needs to acquire, and indication information of a set time range; the map is set according to the setting The rule is divided into M partitions, where M and N are positive integers, and M is greater than or equal to N;
所述服务器根据历史卫星数据,计算所述设定时间范围内所述N个分区对应的卫星数据;其中,一个分区对应的卫星数据包括所述设定时间范围内经过该分区上空的每个卫星的卫星数据;The server calculates satellite data corresponding to the N partitions in the set time range according to historical satellite data; wherein the satellite data corresponding to one partition includes each satellite passing through the partition within the set time range Satellite data;
所述服务器向所述第一终端发送响应消息,所述响应消息中携带所述设定时间范围内所述N个分区对应的卫星数据。The server sends a response message to the first terminal, where the response message carries satellite data corresponding to the N partitions in the set time range.
在一种可能的实现中,所述历史卫星数据为所述服务器获取并存储在所述服务器上 的、GPS中的各个卫星所发布的卫星数据。In a possible implementation, the historical satellite data is acquired by the server and stored on the server Satellite data published by various satellites in the GPS.
本发明上述第二方面或第二方面的任一种实现所述方法的实施及有益效果可参见本发明上述第一方面或第一方面的任一种实现所述方法的实施及有益效果,重复之处不再赘述。The implementation and beneficial effects of the method according to any one of the foregoing first aspect or the first aspect of the present invention may be implemented by any one of the foregoing second or second aspects of the present invention. It will not be repeated here.
第三方面,本申请提供了一种定位装置,所述装置部署于终端,所述装置包括:用以执行上述第一方面或第一方面的任一种实现所述的定位方法的功能模块。In a third aspect, the present application provides a positioning device, the device is deployed in a terminal, and the device includes: a functional module for performing the positioning method according to any one of the above first aspect or the first aspect.
本发明上述第三方面或第三方面的任一种实现所述装置的实施以及有益效果可与本发明上述第一方面或第一方面的任一种实现所述方法的实施以及有益效果相互参见,重复之处不再赘述。The implementation of the device and the beneficial effects of any of the above third or third aspects of the present invention may be implemented in accordance with any of the above first aspect or the first aspect of the present invention. , the repetition will not be repeated.
第四方面,本申请提供了一种定位装置,所述装置部署于服务器,所述装置包括:用以执行上述第二方面或第二方面的任一种实现所述的定位方法的功能模块。In a fourth aspect, the application provides a positioning device, the device is deployed in a server, and the device includes: a function module for performing the positioning method according to any one of the second aspect or the second aspect.
本发明上述第四方面或第四方面的任一种实现所述装置的实施以及有益效果可与本发明上述第二方面或第二方面的任一种实现所述方法的实施以及有益效果相互参见,重复之处不再赘述。The implementation of the device and the beneficial effects of any of the above-mentioned fourth or fourth aspects of the present invention may be implemented in accordance with any of the above second or second aspects of the present invention. , the repetition will not be repeated.
第五方面,本申请提供了一种终端,所述终端包括:处理单元和无线通信单元;In a fifth aspect, the application provides a terminal, where the terminal includes: a processing unit and a wireless communication unit;
其中,所述处理单元用于通过所述无线通信单元执行上述第一方面或第一方面的任一种实现所述的定位方法。The processing unit is configured to implement the positioning method by using the wireless communication unit to perform any one of the foregoing first aspect or the first aspect.
本发明上述第五方面或第五方面的任一种实现所述终端的实施以及有益效果可与本发明上述第一方面或第一方面的任一种实现所述定位方法的实施以及有益效果相互参见,重复之处不再赘述。The implementation of the terminal and the beneficial effects of any of the above fifth aspect or the fifth aspect of the present invention can achieve the implementation of the positioning method and the beneficial effects of the first aspect or the first aspect of the present invention. See, repetitions are not repeated here.
第六方面,本申请提供了一种计算机可读存储介质,用于存储为执行上述第一方面、第一方面的任意一种实现的功能所用的计算机软件指令,其包含用于执行上述第一方面、第一方面的任意一种实现的方法所设计的程序。In a sixth aspect, the present application provides a computer readable storage medium for storing computer software instructions for performing the functions of any of the above first aspect, the first aspect, including Aspect, the program designed by any of the methods of the first aspect.
第七方面,本申请提供了一种服务器,所述服务器包括:处理单元和无线通信单元;In a seventh aspect, the application provides a server, where the server includes: a processing unit and a wireless communication unit;
其中,所述处理单元用于通过所述无线通信单元执行上述第二方面或第二方面的任一种实现所述的定位方法。The processing unit is configured to implement the positioning method by using the wireless communication unit to perform any one of the foregoing second aspect or the second aspect.
本发明上述第七方面或第七方面的任一种实现所述服务器的实施以及有益效果可与本发明上述第二方面或第二方面的任一种实现所述定位方法的实施以及有益效果相互参见,重复之处不再赘述。The implementation of the server and the beneficial effects of any of the above seventh or seventh aspects of the present invention can achieve the implementation of the positioning method and the beneficial effects of the second aspect or the second aspect of the present invention. See, repetitions are not repeated here.
第八方面,本申请提供了一种计算机可读存储介质,用于存储为执行上述第二方面、第二方面的任意一种实现的功能所用的计算机软件指令,其包含用于执行上述第二方面、第二方面的任意一种实现的方法所设计的程序。In an eighth aspect, the present application provides a computer readable storage medium, configured to store computer software instructions for performing the functions of any of the foregoing second aspect, the second aspect, including A program designed by any of the methods of the second aspect.
附图说明DRAWINGS
图1为本申请实施例提供的一种通信系统的架构示意图;1 is a schematic structural diagram of a communication system according to an embodiment of the present application;
图2为本申请实施例提供的一种终端的结构示意图;2 is a schematic structural diagram of a terminal according to an embodiment of the present application;
图3为本申请实施例提供的一种定位方法的流程示意图;FIG. 3 is a schematic flowchart diagram of a positioning method according to an embodiment of the present disclosure;
图4为本申请实施例提供的一种定位方法中地图中N个分区的示意图;4 is a schematic diagram of N partitions in a map in a positioning method according to an embodiment of the present disclosure;
图5为本申请实施例提供的一种定位方法中第一终端与第二终端之间建立蓝牙连接的示意图; FIG. 5 is a schematic diagram of establishing a Bluetooth connection between a first terminal and a second terminal in a positioning method according to an embodiment of the present disclosure;
图6为本申请实施例提供的一种定位方法在实际应用中的流程示意图;FIG. 6 is a schematic flowchart of a positioning method in an actual application according to an embodiment of the present application;
图7为本申请实施例提供的一种定位装置的结构示意图;FIG. 7 is a schematic structural diagram of a positioning device according to an embodiment of the present disclosure;
图8为本申请实施例提供的一种定位方法的流程示意图;FIG. 8 is a schematic flowchart diagram of a positioning method according to an embodiment of the present disclosure;
图9为本申请实施例提供的一种定位装置的结构示意图;FIG. 9 is a schematic structural diagram of a positioning apparatus according to an embodiment of the present disclosure;
图10为本申请实施例提供的一种终端的结构示意图;FIG. 10 is a schematic structural diagram of a terminal according to an embodiment of the present disclosure;
图11为本申请实施例提供的一种服务器的结构示意图。FIG. 11 is a schematic structural diagram of a server according to an embodiment of the present application.
具体实施方式detailed description
本申请提供了一种定位方法、终端及服务器,用以使得终端能够快速获取目标时段内目标区域对应的卫星数据。应当指出的是,本申请所提供的定位方法、终端及服务器基于同一发明构思,解决问题的原理相似,因此本申请所提供的定位方法、终端及服务器的实施可以相互参见,重复之处不再赘述。The present application provides a positioning method, a terminal, and a server, so that the terminal can quickly acquire satellite data corresponding to the target area in the target time period. It should be noted that the positioning method, the terminal, and the server provided by the present application are based on the same inventive concept, and the principles for solving the problem are similar. Therefore, the positioning method, the terminal, and the server provided by the present application can be mutually referred to, and the repetition is no longer repeated. Narration.
在本申请实施例所提供的定位方案中,地图被按照设定规则划分为若干分区,从而第一终端在需要获取未来的一个设定时间范围内的地图上一个或多个分区对应的卫星数据时,可向服务器发送携带该设定时间范围和该一个或多个分区的指示信息的请求消息,并接收服务器返回的携带该设定时间范围内该一个或多个分区对应的卫星数据的响应消息,因而可达到快速获取目标时段内目标区域对应的卫星数据的目的;进一步地,由于第一终端可通过上述方式预先获取未来的一个设定时间范围内的一个或多个分区对应的卫星数据,因而在该设定时间范围内需要搜索卫星信号时将能够依据预先获取到的该设定时间范围内的卫星数据迅速捕获目标卫星,避免目前轮询搜索卫星而导致捕获卫星信号所需时间较长的缺陷。In the positioning solution provided by the embodiment of the present application, the map is divided into a plurality of partitions according to a setting rule, so that the first terminal needs to acquire satellite data corresponding to one or more partitions on the map within a set time range in the future. And sending, to the server, a request message carrying the set time range and the indication information of the one or more partitions, and receiving a response returned by the server and carrying the satellite data corresponding to the one or more partitions within the set time range The message can thus achieve the purpose of quickly acquiring the satellite data corresponding to the target area in the target time period; further, since the first terminal can obtain the satellite data corresponding to one or more partitions in a future set time range in advance by the above manner Therefore, when the satellite signal needs to be searched within the set time range, the target satellite can be quickly captured according to the satellite data in the set time range acquired in advance, thereby avoiding the time required to capture the satellite signal by polling the search satellite. Long defects.
应当指出的是,在本申请的描述中使用术语“第一”、“第二”等词汇,仅用于区分描述的目的,而不能理解为指示或暗示相对重要性,也不能理解为指示或暗示顺序。It should be noted that the terms "first", "second" and the like are used in the description of the present application, and are only used to distinguish the purpose of the description, and are not to be construed as indicating or implying relative importance, nor as an indication or Implied order.
图1示出了本申请实施例提供的一种通信系统的架构示意图。FIG. 1 is a schematic structural diagram of a communication system provided by an embodiment of the present application.
如图1所示,该示例性的通信系统100中包括:服务器101以及多个终端102~104。其中,终端102~104与服务器101之间可通过网络105进行通信;终端103与终端102之间可通过短距离无线通信连接进行通信。As shown in FIG. 1, the exemplary communication system 100 includes a server 101 and a plurality of terminals 102-104. The terminals 102-104 and the server 101 can communicate via the network 105; the terminal 103 and the terminal 102 can communicate via a short-range wireless communication connection.
应当理解的是,图1所示的通信系统100仅用于举例,并非用于限制本申请。本领域的技术人员应当明白,在具体实现过程中,通信系统100还可能包括其他设备,同时也可根据具体需要来配置服务器和终端的数量。此外,术语“系统”和“网络”可相互替换。It should be understood that the communication system 100 illustrated in FIG. 1 is for example only and is not intended to limit the application. Those skilled in the art should understand that in a specific implementation process, the communication system 100 may also include other devices, and the number of servers and terminals may also be configured according to specific needs. Furthermore, the terms "system" and "network" are interchangeable.
本申请实施例中涉及到的服务器可包含单个的服务器设备或本地或远程分布式服务器设备集群。服务器可通过诸如开放的因特网、内联网、防火墙保护安全网络、广域蜂窝网络等通信网络与终端建立通信连接。服务器中可托管用于为在终端中运行的客户端应用提供服务的一个或多个服务器应用。The servers involved in the embodiments of the present application may include a single server device or a cluster of local or remote distributed server devices. The server can establish a communication connection with the terminal through a communication network such as an open Internet, an intranet, a firewall protection secure network, a wide area cellular network, or the like. One or more server applications for serving client applications running in the terminal can be hosted in the server.
本申请实施例中涉及到的终端可以是具有长距离无线通信和/或短距离无线通信功能的各种无线通信设备;The terminals involved in the embodiments of the present application may be various wireless communication devices having long-distance wireless communication and/or short-range wireless communication functions;
短距离无线通信允许终端与足够近的其它终端交换数据,使用靠近地面发送而不是在空中传播的低频带中的信号。用于短距离无线通信的天线可以称为低频天线。短距离无线通信的典型示例包括有蓝牙(Bluetooth),无线局域网(Wi-Fi)、红外数据传输(Infrared Data Association,IrDA)等; Short-range wireless communication allows a terminal to exchange data with other terminals that are close enough to use signals in a low frequency band that is transmitted close to the ground rather than being transmitted over the air. An antenna for short-range wireless communication may be referred to as a low frequency antenna. Typical examples of short-range wireless communication include Bluetooth, Wireless Local Area Network (Wi-Fi), Infrared Data Association (IrDA), and the like;
长距离无线通信允许具备长距离无线通信功能的终端接收或向根据对应的无线通信标准建立的无线通信网络中的基站、终端和服务器中的一个或多个发送无线信号,使用具有强线性的高频带中的信号。用于长距离无线通信的天线可称为高频天线。长距离无线通信的典型示例包括有全球移动通信系统(Global System for Mobile Communication,GSM)、通用分组无线服务(General Packet Radio Service,GPRS)、码分多址(Code Division Multiple Access,CDMA)、码分多址2000、宽带WCDMA(Wide-CDMA)、长期演进(Long Term Evolution,LTE)和长期演进-高级(Long Term Evolution-Advanced,LTE-A)等。Long-range wireless communication allows a terminal having a long-range wireless communication function to receive or transmit a wireless signal to one or more of a base station, a terminal, and a server in a wireless communication network established according to a corresponding wireless communication standard, using a strong linear high The signal in the frequency band. An antenna for long-distance wireless communication may be referred to as a high frequency antenna. Typical examples of long-range wireless communication include Global System for Mobile Communication (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), and code. Division Multiple Access 2000, Wideband WCDMA (Wide-CDMA), Long Term Evolution (LTE), and Long Term Evolution-Advanced (LTE-A).
比如,终端102是具备有无线蜂窝通信系统以及无线局域网通信系统的手机,既可进行长距离无线通信,又可与附近的终端进行短距离无线通信;终端103是具备有短距离无线通信系统(诸如蓝牙)的智能手表,仅可与附近的终端进行短距离无线通信(如图1所示,终端103与终端102之间可通过短距离无线通信连接进行通信)。For example, the terminal 102 is a mobile phone having a wireless cellular communication system and a wireless local area network communication system, which can perform long-distance wireless communication and short-range wireless communication with nearby terminals; and the terminal 103 is provided with a short-range wireless communication system ( A smart watch such as Bluetooth can only perform short-range wireless communication with a nearby terminal (as shown in FIG. 1, the terminal 103 and the terminal 102 can communicate via a short-range wireless communication connection).
本申请实施例中涉及到的终端也可称为用户设备(User Equipment,UE)、移动终端、移动设备、接入终端、用户单元、用户终端、无线终端、手持设备、客户端等。A terminal involved in the embodiment of the present application may also be referred to as a user equipment (User Equipment, UE), a mobile terminal, a mobile device, an access terminal, a subscriber unit, a user terminal, a wireless terminal, a handheld device, a client, and the like.
图2示出了本申请实施例提供的一种终端的结构示意图。FIG. 2 is a schematic structural diagram of a terminal provided by an embodiment of the present application.
如图2所示,终端200可具有诸如无线通信单元210、GPS单元220、输入单元230、输出单元240、感测单元250、接口单元260、存储单元270、处理单元280和电源单元290等部件。这些部件可通过一根或多根通信总线或信号线进行通信。这些部件可以由硬件、软件方式或软硬件组合来实现,包括一个或多个信号处理和/或专用集成电路,As shown in FIG. 2, the terminal 200 may have components such as a wireless communication unit 210, a GPS unit 220, an input unit 230, an output unit 240, a sensing unit 250, an interface unit 260, a storage unit 270, a processing unit 280, and a power supply unit 290. . These components can communicate over one or more communication buses or signal lines. These components can be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and/or application specific integrated circuits.
参照图2,无线通信单元210通常包括允许终端200与无线通信系统之间的无线通信、终端200与另一个终端之间的通信、终端200与外部服务器之间的通信等通信的一个或多个装置。此外,无线通信单元210通常包括将终端200连接到一个或多个网络的一个或多个装置。例如图2所示出的,无线通信单元210可包括无线蜂窝通信模块211(可用于提供长距离无线通信功能)、无线因特网模块212、短距离无线通信模块213(可用于提供短距离无线通信功能),等等。Referring to FIG. 2, the wireless communication unit 210 generally includes one or more of communication that allows wireless communication between the terminal 200 and the wireless communication system, communication between the terminal 200 and another terminal, communication between the terminal 200 and an external server, and the like. Device. Moreover, wireless communication unit 210 typically includes one or more devices that connect terminal 200 to one or more networks. For example, as shown in FIG. 2, the wireless communication unit 210 can include a wireless cellular communication module 211 (which can be used to provide long-range wireless communication functions), a wireless Internet module 212, and a short-range wireless communication module 213 (which can be used to provide short-range wireless communication functions). ),and many more.
GPS单元220用以允许终端200与全球定位系统中卫星之间的通信。GPS单元220可通过天线接收GPS中的卫星发出的卫星信号(无线信号),根据这些卫星信号,GPS单元220可生成可用于各种应用程序的信息。比如,GPS中的每个卫星往往按照固定周期重复广播各自的星历数据(ephemeris information),基于卫星定位技术原理,GPS单元220通常在精确得知GPS中3至4个卫星的星钟(clock)和轨道信息后,便可确定出终端200当前位置的位置信息(比如经度/纬度信息),这些信息可根据需要用于导航和地图映射等应用程序。 GPS unit 220 is used to allow communication between terminal 200 and satellites in a global positioning system. The GPS unit 220 can receive satellite signals (wireless signals) from satellites in the GPS through an antenna, and based on these satellite signals, the GPS unit 220 can generate information that can be used for various applications. For example, each satellite in the GPS often repeats its own ephemeris information according to a fixed period. Based on the principle of satellite positioning technology, the GPS unit 220 usually knows exactly 3 to 4 satellite clocks in the GPS (clock). After the track information, the location information (such as longitude/latitude information) of the current location of the terminal 200 can be determined, and the information can be used for applications such as navigation and map mapping as needed.
输入单元230通常被构造成接收诸如音频、视频、触觉输入等各种类型的输入信息。输入单元230例如可包括用户输入单元231(例如,触摸屏、触摸键、推动键(push key)、机械键、软键等)、音频输入单元232(例如,麦克风)、照相机233等。用户输入单元231可用于允许用户输入信息;音频输入单元232可用于输入音频信号;照相机233可用于获得图像或视频。数据由输入单元230获得,并且可以根据装置参数、用户命令及其组合由处理单元280分析和处理。 Input unit 230 is typically configured to receive various types of input information such as audio, video, tactile input, and the like. The input unit 230 may include, for example, a user input unit 231 (eg, a touch screen, a touch key, a push key, a mechanical key, a soft key, etc.), an audio input unit 232 (eg, a microphone), a camera 233, and the like. User input unit 231 can be used to allow the user to enter information; audio input unit 232 can be used to input audio signals; camera 233 can be used to obtain images or video. Data is obtained by input unit 230 and may be analyzed and processed by processing unit 280 based on device parameters, user commands, and combinations thereof.
输出单元240通常被构造成输出诸如音频、视频、触觉输出等各种类型的信息。输出单元240例如可具有显示单元241、音频输出单元242等。显示单元241可以具有层间结构或具有用于促进触摸屏的触摸传感器的一体结构等。 Output unit 240 is typically configured to output various types of information such as audio, video, haptic output, and the like. The output unit 240 may have, for example, a display unit 241, an audio output unit 242, and the like. The display unit 241 may have an interlayer structure or an integral structure having a touch sensor for promoting a touch screen or the like.
其中,触摸屏可提供终端200与用户之间的输入接口和输出接口。一方面可用作用户输入单元231,接收用户输入,比如可收集用户在其上或附近的接触或者非接触操作,并根据预先设定的程式驱动相应的连接装置;另一方面可用于显示单元241用于向用户显示视觉输出,视觉输出可包括图形、文本、图标、视频及它们的任何组合,比如可显示由用户输入的信息、提供给用户的信息以及终端200的各种菜单等。The touch screen can provide an input interface and an output interface between the terminal 200 and the user. On the one hand, it can be used as a user input unit 231 to receive user input, such as collecting contact or non-contact operations on or near the user, and driving the corresponding connection device according to a preset program; on the other hand, it can be used for the display unit. 241 is used to display visual output to a user, which may include graphics, text, icons, video, and any combination thereof, such as information that may be displayed by the user, information provided to the user, and various menus of the terminal 200, and the like.
感测单元250通常被构造成感测终端的内部信息、终端的周围环境、用户信息等,可由一个或多个传感器来实现。感测单元250例如可包括诸如触摸传感器、加速度传感器、磁传感器、陀螺仪传感器、运动传感器、压力传感器、RGB传感器、红外(IR)传感器、手指扫描传感器、超声传感器、光学传感器、电池电流计、环境传感器(例如,气压计、湿度计、温度计、辐射检测传感器、光传感器、热传感器和气体传感器等)、以及化学传感器(例如,电子鼻、生物计量传感器等)等传感器。终端200可以被构造成从感测单元250的一个或更多个传感器获取信号和/或者向一个或者多个传感器传递信号。The sensing unit 250 is typically configured to sense internal information of the terminal, the surrounding environment of the terminal, user information, etc., and may be implemented by one or more sensors. The sensing unit 250 may include, for example, a touch sensor, an acceleration sensor, a magnetic sensor, a gyro sensor, a motion sensor, a pressure sensor, an RGB sensor, an infrared (IR) sensor, a finger scan sensor, an ultrasonic sensor, an optical sensor, a battery galvanometer, Environmental sensors (eg, barometers, hygrometers, thermometers, radiation detection sensors, light sensors, thermal sensors, gas sensors, etc.), and sensors such as chemical sensors (eg, electronic noses, biometric sensors, etc.). Terminal 200 can be configured to acquire signals from one or more sensors of sensing unit 250 and/or to communicate signals to one or more sensors.
接口单元260充当与可以耦接到终端200的各种类型的外部终端的接口。接口单元260例如可以包括任意有线或无线端口、外部电源端口、有线或无线数据端口、存储卡端口、用于连接具有识别模块的终端的端口、音频输入/输出(Input/Output,I/O)端口、视频I/O端口、耳机端口等。在一些情况下,终端200可以响应于外部终端连接到接口单元260执行与所连接的外部终端关联的控制功能。The interface unit 260 serves as an interface with various types of external terminals that can be coupled to the terminal 200. The interface unit 260 may include, for example, any wired or wireless port, an external power port, a wired or wireless data port, a memory card port, a port for connecting a terminal having an identification module, and an audio input/output (I/O). Port, video I/O port, headphone port, etc. In some cases, the terminal 200 may perform a control function associated with the connected external terminal in response to the external terminal being connected to the interface unit 260.
存储单元270通常实现为存储数据,以支持终端200的各种功能或特征。例如,存储单元270可以被构造成存储终端200中执行的应用程序、用于终端200的操作的数据或指示等。这些应用程序中的一些应用程序可以经由无线通信从外部服务器下载。其他应用程序可以在制造或出货时安装在终端200内,这些应用程序通常对应于终端200的基本功能(例如,接收呼叫、打电话、接收消息、发送消息等)。常见的是,应用程序存储在存储单元270中、安装在终端200中、并且由处理单元280执行,以执行对于终端200的操作。 Storage unit 270 is typically implemented to store data to support various functions or features of terminal 200. For example, the storage unit 270 may be configured to store an application executed in the terminal 200, data or an indication for the operation of the terminal 200, and the like. Some of these applications can be downloaded from an external server via wireless communication. Other applications may be installed in the terminal 200 at the time of manufacture or shipment, and these applications generally correspond to the basic functions of the terminal 200 (eg, receiving a call, making a call, receiving a message, sending a message, etc.). It is common that the application is stored in the storage unit 270, installed in the terminal 200, and executed by the processing unit 280 to perform operations on the terminal 200.
处理单元280是终端200的控制中心,利用各种接口和线路连接整个终端的各个部分,通过运行或执行存储在存储单元270内的软件程序和/或装置,以及调用存储在存储单元270内的数据,执行终端200的各种功能和处理数据,从而对终端进行整体监控。处理单元280可以处理经由图2所示的各种部件输入或输出的信号、数据、信息等,或激活存储单元270中存储的应用程序,提供或处理与用户交互的信息或功能。比如,处理单元280可根据已经存储在存储单元270中的应用程序的执行,控制终端200的一些或所有部件。 Processing unit 280 is the control center of terminal 200, which connects various portions of the entire terminal using various interfaces and lines, by running or executing software programs and/or devices stored in storage unit 270, and by calling stored in storage unit 270. The data, performing various functions and processing data of the terminal 200, thereby performing overall monitoring of the terminal. Processing unit 280 can process signals, data, information, etc., input or output via various components shown in FIG. 2, or activate an application stored in storage unit 270 to provide or process information or functionality that interacts with the user. For example, processing unit 280 can control some or all of the components of terminal 200 in accordance with the execution of an application that has been stored in storage unit 270.
电源单元290可以被构造成接收外部电力或提供内部电力,以供给终端200操作其包括的元件和部件所需的合适电力。电源可以通过电源管理系统与处理单元280逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗等功能。电源单元290可以包括电池,并且电池可以被构造成嵌入在终端本体中,或被构造成从终端主体可拆除。The power supply unit 290 can be configured to receive external power or provide internal power to supply the terminal 200 with the appropriate power required to operate the components and components it includes. The power supply can be logically coupled to the processing unit 280 through the power management system to manage functions such as charging, discharging, and power consumption through the power management system. The power supply unit 290 may include a battery, and the battery may be configured to be embedded in the terminal body or configured to be detachable from the terminal body.
应当理解是的,图2中示出的终端结构并不构成对终端的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。It should be understood that the terminal structure shown in FIG. 2 does not constitute a limitation of the terminal, and may include more or less components than those illustrated, or combine some components, or split some components, or different. Assembly of parts.
比如,对于诸如手机、平板电脑、笔记本电脑等终端,往往具有比图2所示终端200相同或更多的功能和部件;又比如,对于诸如智能手表、智能手环、智能眼镜、头戴式显示器(HMD)等可穿戴的、体积较小的终端,受限于体积的缘故,往往具有比图2所示终端200更少的功能和部件。例如,可穿戴的终端中的无线通信单元往往不包括无线蜂窝通信模块,而包括短距离无线通信模块。 For example, terminals such as mobile phones, tablets, laptops, etc. often have the same or more functions and components than the terminal 200 shown in FIG. 2; for example, for example, smart watches, smart bracelets, smart glasses, and head-mounted Wearable, smaller terminals, such as displays (HMDs), are limited in size and tend to have fewer functions and components than the terminal 200 shown in FIG. For example, a wireless communication unit in a wearable terminal often does not include a wireless cellular communication module, but includes a short-range wireless communication module.
通常地,可穿戴的终端可用于与其附近的终端交换数据或协作。如图1所示,终端103可通过其具备的短距离通信模块被与其足够近的终端102中根据对应的通信协议的短距离通信模块感测或识别,当终端102感测到终端103是被认证可与终端102进行通信的终端时,终端102可经由短距离通信模块向终端103发送终端102中处理的数据,从而终端103的用户可以在终端103上使用终端102中处理的数据。例如,当终端102运行音乐播放应用程序时,用户可以使用终端103聆听音乐。Generally, a wearable terminal can be used to exchange data or cooperate with terminals in its vicinity. As shown in FIG. 1, the terminal 103 can be sensed or identified by the short-range communication module according to the corresponding communication protocol in the terminal 102 close enough to the short-distance communication module provided therein, when the terminal 102 senses that the terminal 103 is When authenticating a terminal that can communicate with the terminal 102, the terminal 102 can transmit the data processed in the terminal 102 to the terminal 103 via the short-range communication module, so that the user of the terminal 103 can use the data processed in the terminal 102 on the terminal 103. For example, when the terminal 102 runs a music playing application, the user can listen to music using the terminal 103.
基于如图2所示的终端200,可以看到,终端可通过配置其中的GPS单元收取卫星信号。传统的卫星定位方案中,终端的GPS单元往往轮询收取卫星信号,因而可能需要覆盖到所有的卫星参数,导致准确收取到所需卫星的卫星信号所需时间较长,对终端的GPS单元以及处理单元等硬件设备的性能要求也相对较高。为了克服传统卫星定位方案中的上述弊端,使终端能够快速获取目标时段内目标区域对应的卫星数据,提升用户体验,本申请提供了一种定位方案。Based on the terminal 200 as shown in FIG. 2, it can be seen that the terminal can receive satellite signals by configuring the GPS unit therein. In the traditional satellite positioning scheme, the GPS unit of the terminal often polls and collects the satellite signal, so it may need to cover all the satellite parameters, resulting in a long time required to accurately collect the satellite signal of the desired satellite, and the GPS unit of the terminal and The performance requirements of hardware devices such as processing units are also relatively high. In order to overcome the above-mentioned drawbacks in the traditional satellite positioning scheme, the terminal can quickly acquire the satellite data corresponding to the target area in the target time period and improve the user experience. The present application provides a positioning solution.
具体地,本申请实施例所提供的定位方案可应用于包括有终端和服务器的通信系统中,比如图1所示的通信系统100;并具体可在终端和服务器上分别配置用以实现本申请实施例所提供的定位方案的功能模块,用以执行该流程的功能模块可通过硬件、软件编程或者软硬件的结合实现,比如可在通信系统100中的服务器101以及终端102、终端104上分别配置用以实现本申请实施例所提供的定位方案的服务器端软件和客户端软件。Specifically, the positioning solution provided by the embodiment of the present application can be applied to a communication system including a terminal and a server, such as the communication system 100 shown in FIG. 1 , and specifically configured on the terminal and the server to implement the present application. The function modules of the positioning scheme provided by the embodiment, the function modules for executing the process may be implemented by hardware, software programming or a combination of software and hardware, for example, the server 101 and the terminal 102 and the terminal 104 in the communication system 100 respectively. The server-side software and the client software configured to implement the positioning solution provided by the embodiment of the present application are configured.
下面基于图1所示的通信系统架构,结合图3描述本申请实施例提供的定位方法流程。The flow of the positioning method provided by the embodiment of the present application is described below with reference to FIG. 3 based on the communication system architecture shown in FIG.
图3示出了本申请实施例提供的一种定位方法的流程示意图。具体地,该流程可以由第一终端执行,比如可在图1中的终端102、终端104上配置用以实现如图3所示流程的功能模块。FIG. 3 is a schematic flowchart diagram of a positioning method provided by an embodiment of the present application. Specifically, the process may be performed by the first terminal, for example, the terminal 102 and the terminal 104 in FIG. 1 may be configured to implement the function module shown in FIG.
如图3所示,该流程包括如下步骤:As shown in FIG. 3, the process includes the following steps:
步骤301:按照设定规则将地图划分为M个分区,第一终端确定需要获取未来的一个设定时间范围内所述地图中N个分区对应的卫星数据,其中M、N为正整数,且M大于等于N。Step 301: Divide the map into M partitions according to the setting rule, and the first terminal determines that it is necessary to acquire satellite data corresponding to N partitions in the map in a set time range in the future, where M and N are positive integers, and M is greater than or equal to N.
具体地,在一些实际场景中,上述将地图划分为M个分区的设定规则,可以是将地图按照经度和/或纬度进行划分。比如,上述设定规则可以是先按照设定经度间隔和纬度间隔确定出用于划分地图的经纬线,再将地图上由这些经纬线所分割出的各个地理区域作为各个分区。可以看到,通过该种设定规则得到的分区能够方便的与卫星的轨道数据相对应,因而便于对各个分区计算各个分区对应的卫星数据。Specifically, in some actual scenarios, the above-mentioned setting rule for dividing the map into M partitions may be to divide the map according to longitude and/or latitude. For example, the setting rule may be that the latitude and longitude lines for dividing the map are first determined according to the set longitude interval and the latitude interval, and each geographical area separated by the latitude and longitude lines on the map is used as each partition. It can be seen that the partition obtained by the setting rule can conveniently correspond to the orbit data of the satellite, thereby facilitating calculation of satellite data corresponding to each partition for each partition.
在又一些实际场景中,上述设定规则也可以是将地图按照行政区域进行划分。比如分区可以是地图上的各个国家,或者更细度地可以是各个国家对辖境进行行政分区得到的行政区域(诸如省,区、县等)。可以看到,通过该种设定规则得到的分区所具有的优势在于更符合用户习惯,有利于提高用户体验。In some actual scenarios, the above setting rule may also be to divide the map according to the administrative area. For example, the partition may be each country on the map, or more finely, an administrative area (such as a province, a district, a county, etc.) obtained by administrative division of the jurisdiction of each country. It can be seen that the partition obtained by the setting rule has the advantage that it is more in line with the user's habits and is beneficial to improving the user experience.
应当理解的是,用于将地图划分为若干个分区的设定规则还可以有其它方式,本申请在此将不再一一列举。It should be understood that there may be other ways to set the rules for dividing the map into a plurality of partitions, and the present application will not be enumerated here.
具体地,地图被按照设定规则划分得到的M个分区可通过编号、标签、或者坐标等方式来进行标识,本申请对此不作限定。Specifically, the M partitions that are obtained by dividing the map according to the setting rules may be identified by a number, a label, or a coordinate, etc., which is not limited in this application.
具体地,第一终端可从地图被划分得到的M个分区中确定出N个分区,进而确定需要获取未来的一个设定时间范围内这N个分区对应的卫星数据。 Specifically, the first terminal may determine N partitions from the M partitions obtained by dividing the map, and further determine that it is necessary to acquire satellite data corresponding to the N partitions in a future set time range.
比如,第一终端可从地图中的这M个分区中确定出1个分区,此时N等于1,进而确定需要获取未来的一个设定时间范围内该分区对应的卫星数据;又比如,第一终端也可从地图中的这M个分区中确定出2个或者更多个分区,进而确定需要获取未来的一个设定时间范围内这多个分区对应的卫星数据。For example, the first terminal may determine one partition from the M partitions in the map, and then N is equal to 1, thereby determining that it is necessary to acquire satellite data corresponding to the partition within a set time range in the future; for example, A terminal may also determine two or more partitions from the M partitions in the map, thereby determining that it is necessary to acquire satellite data corresponding to the plurality of partitions in a future set time range.
作为一个示例,图4示出了本申请一些实施例提供的一种定位方法中地图中N个分区的示意图。如图4所示,地图被按照设定规则划分为了5×5共25个分区,相当于上述M=25,假设这25个分区通过编号1-25进行标识,第一终端从这25个分区中,确定需要获取未来的一个设定时间范围内、编号依次为7、8、17、25的这4个分区对应的卫星数据,如图4所示出的填充有斜线的区域,即相当于上述N=4。As an example, FIG. 4 is a schematic diagram of N partitions in a map in a positioning method provided by some embodiments of the present application. As shown in Figure 4, the map is divided into 5 × 5 total 25 partitions according to the set rules, which is equivalent to the above M = 25, assuming that the 25 partitions are identified by the number 1-25, the first terminal from the 25 partitions In the process, it is determined that it is necessary to acquire satellite data corresponding to the four partitions numbered 7, 8, 17, 25 in a set time range in the future, as shown in FIG. 4, the area filled with the oblique line, that is, Above N=4.
具体地,在一种可能的实现场景中,第一终端可以是接收用于获取卫星数据的指令,从而根据接收到的指令来确定需要获取设定时间范围内地图中N个分区对应的卫星数据;其中,上述用于获取卫星数据的指令中可携带有设定时间范围和N个分区的信息。Specifically, in a possible implementation scenario, the first terminal may be configured to receive an instruction for acquiring satellite data, so as to determine, according to the received instruction, that the satellite data corresponding to the N partitions in the map in the set time range needs to be acquired. Wherein, the above instruction for acquiring satellite data may carry information of a set time range and N partitions.
比如,基于图1所示的通信系统示例,终端102上可配置有用以执行如图3所示流程的功能模块,通过用户界面(User Interface,UI)向终端102的用户提供用于获取未来卫星数据的菜单。For example, based on the communication system example shown in FIG. 1, a function module configured to perform the process shown in FIG. 3 may be configured on the terminal 102, and provided to the user of the terminal 102 through a user interface (UI) for acquiring a future satellite. The menu of data.
具体地,上述菜单可包括用以提供用户直接确认需要获取未来的卫星数据的UI控件,相当于确认获取默认时间范围内默认分区对应的卫星数据,其中,默认时间可以是预先配置的,出于提高用户体验的目的,默认时间可以是以当前时刻为起始的一天或更长的时间长度,默认分区也可以是预先配置的N个分区,比如可以是用户预先设置的自己常在的地理区域所对应的地图上的分区,或者默认分区也可提供给用户进行修改设置等;Specifically, the above menu may include a UI control for directly confirming that the user needs to acquire future satellite data, which is equivalent to confirming acquisition of satellite data corresponding to the default partition in the default time range, wherein the default time may be pre-configured, For the purpose of improving the user experience, the default time may be a day or a longer time starting from the current time. The default partition may also be a pre-configured N partitions, such as a user's own preset geographical area. The corresponding partition on the map, or the default partition can also be provided to the user for modification settings, etc.;
或者,菜单上也可具体可包括用以提供用户来选择或输入(包括语音或键入方式等)未来的一个时间范围的UI控件,相当于确认获取用户所需时间范围内默认分区对应的卫星数据;或者,菜单上也可包括用以提供用户选择分区或输入所需分区信息的UI控件,相当于确认获取默认时间范围内用户所需要的N个分区对应的卫星数据;又或者,菜单上也可具体可包括用以提供用户选择或输入未来的一个时间范围的UI控件,以及,用以提供用户选择分区或输入所需分区信息的UI控件,相当于确认获取用户所需要时间范围内的N个分区对应的卫星数据等。Alternatively, the menu may specifically include a UI control for providing a user to select or input (including voice or keying manner, etc.) for a future time range, which is equivalent to confirming the satellite data corresponding to the default partition within the time range required by the user. Or, the menu may also include a UI control for providing a user to select a partition or input the required partition information, which is equivalent to confirming the satellite data corresponding to the N partitions required by the user in the default time range; or, the menu is also The UI control may be specifically included to provide a user to select or input a future time range, and a UI control for providing a user to select a partition or input required partition information, which is equivalent to confirming that the time required by the user is N. Satellite data corresponding to each partition.
进而,终端102的用户可按照需求在上述菜单上进行操作,比如终端102的用户可根据自己在未来的一个设定范围内所可能位于的地理范围,选择出所需获取的卫星数据对应的时间范围和N个分区,上述用户操作在终端102内部将转化为指令传递到终端102的处理器中,终端102的处理器进而可基于该指令确定需要获取该设定时间范围内这N个分区对应的卫星数据。Further, the user of the terminal 102 can operate on the above menu according to requirements. For example, the user of the terminal 102 can select the time corresponding to the satellite data that needs to be acquired according to the geographical range that may be located in a future setting range. Range and N partitions, the above user operations are converted into instructions into the processor of the terminal 102, and the processor of the terminal 102 can further determine, according to the instruction, that the N partitions in the set time range need to be acquired. Satellite data.
第一终端通过步骤301确定需要获取设定时间范围内地图中N个分区对应的卫星数据之后,便可生成用于获取上述卫星数据的请求消息,进而可执行图3所示流程中的步骤302。After the first terminal determines, by step 301, that the satellite data corresponding to the N partitions in the map in the set time range needs to be acquired, the request message for acquiring the satellite data may be generated, and then step 302 in the process shown in FIG. 3 may be performed. .
步骤302:第一终端向服务器发送请求消息;其中,该请求消息中携带设定时间范围以及N个分区的指示信息。Step 302: The first terminal sends a request message to the server, where the request message carries the set time range and the indication information of the N partitions.
具体地,上述服务器可被配置为接收和处理来自任何终端或已认证的终端的用于获取卫星数据的请求消息,并可被配置为向对应的终端返回其所请求的卫星数据。In particular, the server may be configured to receive and process request messages for acquiring satellite data from any terminal or authenticated terminal, and may be configured to return its requested satellite data to the corresponding terminal.
比如,仍然基于图1所示的通信系统示例,服务器101上可配置有用以接收和处理来自任何终端或已认证的终端的用于获取卫星数据的请求消息的功能模块,以及可配置有用 以向对应的终端返回其所请求的卫星数据的功能模块。比如,服务器101可接收与其建立有通信连接的终端102发送的请求消息,以及可向终端102返回其所请求的卫星数据。For example, still based on the communication system example shown in FIG. 1, a functional module for receiving and processing request messages for acquiring satellite data from any terminal or authenticated terminal can be configured on the server 101, and is configurable useful. A functional module that returns its requested satellite data to the corresponding terminal. For example, server 101 can receive a request message sent by terminal 102 with which it has established a communication connection, and can return its requested satellite data to terminal 102.
具体地,服务器接收到第一终端通过步骤301发送的请求消息后,将可解析该请求消息,并从中确定出终端所需卫星数据对应的设定时间范围以及地图中的N个分区。Specifically, after receiving the request message sent by the first terminal through step 301, the server may parse the request message, and determine a set time range corresponding to the satellite data required by the terminal and N partitions in the map.
在一种可能的实现场景中,服务器在确定出终端所需卫星数据对应的设定时间范围和N个分区之后,可根据历史卫星数据,计算出该设定时间范围内该N个分区对应的卫星数据,从而向第一终端返回携带有该设定时间范围内该N个分区对应的卫星数据的响应消息。In a possible implementation scenario, after determining the set time range and N partitions corresponding to the satellite data required by the terminal, the server may calculate, according to the historical satellite data, the N partitions corresponding to the set time range. The satellite data returns a response message carrying the satellite data corresponding to the N partitions within the set time range to the first terminal.
具体地,上述历史卫星数据可以是服务器获取并存储到服务器上的、GPS中的各个卫星所发布的卫星数据。Specifically, the historical satellite data may be satellite data issued by each satellite in the GPS acquired by the server and stored on the server.
由于GPS中的各个卫星通常按照固定周期广播各自实时的卫星数据,因而,在一些实际场景中,服务器上可配置有用以接收卫星信号的GPS单元,以实时接收卫星广播的卫星数据,接收后可存储到服务器的存储单元中,服务器的处理单元通过读取存储单元中存储的历史卫星数据,来执行上述计算过程。其中,服务器还可对所存储的历史的各个时刻的卫星数据设置有效期限,从而保证计算结果的准确性,比如有效期限可以设置为一天等;Since each satellite in the GPS usually broadcasts its real-time satellite data according to a fixed period, in some practical scenarios, a GPS unit configured to receive satellite signals can be configured on the server to receive satellite data of the satellite broadcast in real time, and can be received after receiving. Stored in the storage unit of the server, the processing unit of the server performs the above calculation process by reading the historical satellite data stored in the storage unit. The server may also set an expiration date for the satellite data at each moment of the stored history, thereby ensuring the accuracy of the calculation result, for example, the expiration date may be set to one day;
或者,在一些实际场景中,服务器上可配置有与用以存储有卫星数据的网络设备进行通信的通信接口,进而服务器通过该通信接口可直接从上述网络设备中获取历史卫星数据。具体地,服务器可获取以当前时刻为端点往前的一个预设时长内的历史卫星数据,预设时长可以是一天或更长的时间段;等等。Alternatively, in some practical scenarios, the server may be configured with a communication interface for communicating with a network device for storing satellite data, and the server may directly acquire historical satellite data from the network device through the communication interface. Specifically, the server may acquire historical satellite data within a preset duration from the current time to the endpoint, and the preset duration may be a period of one day or longer; and the like.
进一步地,服务器获取历史卫星数据后,便可按照预设的算法计算设定时间范围内N个分区对应的卫星数据。比如,服务器可由历史卫星数据确定出各个卫星的分布情况,进而分别对这N个分区中每个分区推算出未来的这个设定时间范围内经过该分区上空的每个卫星的卫星数据。Further, after the server acquires the historical satellite data, the satellite data corresponding to the N partitions in the set time range may be calculated according to a preset algorithm. For example, the server may determine the distribution of each satellite from the historical satellite data, and then calculate the satellite data of each satellite passing through the partition in the future set time range for each of the N partitions.
具体地,上述设定时间范围内经过该分区上空的每个卫星的卫星数据,可以包括有该设定时间范围内经过该分区上空的每个卫星的标识(Identity,ID)、轨道数据、以及星钟数据等等;可以看到,上述这些卫星数据可用于指示终端更有效地搜索卫星信号。Specifically, the satellite data of each satellite passing through the partition within the set time range may include an identity (Identity, ID), orbit data, and each satellite passing through the partition within the set time range. Star clock data, etc.; it can be seen that these satellite data can be used to indicate that the terminal is searching for satellite signals more efficiently.
在一些实际场景中,出于提高用户体验的考虑,服务器也可按照设定周期获取历史卫星数据,计算默认时间范围内地图上各个分区对应的卫星数据,并将计算结果存储到服务器的存储单元中,比如可将各个分区对应的卫星数据与各个分区绑定存储,进而,服务器在接收到第一终端发送的请求消息后,如果确定设定时间范围位于默认时间范围内,那么服务器可直接读取所存储的计算结果,返回给第一终端,以加快响应速度。In some practical scenarios, in order to improve the user experience, the server may also acquire historical satellite data according to a set period, calculate satellite data corresponding to each partition on the map in the default time range, and store the calculation result in the storage unit of the server. For example, the satellite data corresponding to each partition may be bound and stored in each partition. Further, after receiving the request message sent by the first terminal, if the server determines that the set time range is within the default time range, the server may directly read The stored calculation result is returned to the first terminal to speed up the response.
具体地,服务器上还可存储有地图数据,进而,在向第一终端返回其所需的卫星数据的同时,可返回与卫星数据绑定的分区的地图数据。Specifically, the server may also store map data, and further, return the map data of the partition bound to the satellite data while returning the satellite data required by the first terminal.
通过上述过程,服务器将可以向第一终端返回携带有设定时间范围内N个分区对应的卫星数据的响应消息。进而,第一终端可执行图3所示流程中的步骤303。Through the above process, the server will be able to return a response message carrying the satellite data corresponding to the N partitions within the set time range to the first terminal. Further, the first terminal may perform step 303 in the flow shown in FIG. 3.
步骤303:第一终端接收服务器返回的响应消息。Step 303: The first terminal receives a response message returned by the server.
具体地,第一终端接收到服务器返回的上述响应消息后,可通过对该响应消息的解析,获取到其所需的设定时间范围内N个分区对应的卫星数据。Specifically, after receiving the response message returned by the server, the first terminal may obtain the satellite data corresponding to the N partitions within the set time range required by the response message.
进一步地,第一终端获取到设定时间范围内N个分区对应的卫星数据之后,可将获取到的上述卫星数据存储到第一终端的存储单元中,进而在设定时间范围内,第一终端可以读取存储单元中存储的上述设定时间范围内N个分区对应的卫星数据,使用这些卫星数据 搜索卫星信号;可以看到,通过上述方式,第一终端可以基于获取到的由服务器预先推算出的未来的卫星数据进行卫星搜索,较目前轮询搜星的方式将具备有针对性,因而能够避免当前轮询搜星所导致搜索到准确卫星信号、实现定位所需时间较长的缺陷;After the first terminal acquires the satellite data corresponding to the N partitions in the set time range, the acquired satellite data may be stored in the storage unit of the first terminal, and then in the set time range, the first The terminal can read the satellite data corresponding to the N partitions in the set time range stored in the storage unit, and use the satellite data. Searching for satellite signals; it can be seen that, in the above manner, the first terminal can perform satellite search based on the acquired future satellite data pre-inferred by the server, which is more targeted than the current method of polling the search stars, thereby enabling Avoid the defects that the current polling of the search star leads to the search for accurate satellite signals and the long time required to achieve positioning;
特别是在第一终端不具备与基站通信的能力或者第一终端离线等使第一终端的GPS单元得不到辅助定位信息的情况下,传统的轮询搜星方案将使得第一终端需要搜寻约32个伪随机噪声码(pseudo random noise code,PRN)(相当于上述的卫星信号),而通过上述如图3所示的流程,第一终端只要搜寻4~5个PRN便可以准确定位,时间上大大缩短。In particular, in the case where the first terminal does not have the ability to communicate with the base station or the first terminal is offline, etc., so that the GPS unit of the first terminal cannot obtain the auxiliary positioning information, the traditional polling star search scheme will make the first terminal need to search. Approximately 32 pseudo random noise codes (PRNs) (corresponding to the above-mentioned satellite signals), and by the process shown in FIG. 3, the first terminal can accurately locate by searching for 4 to 5 PRNs. The time is greatly shortened.
进一步地,第一终端将获取到的设定时间范围内N个分区对应的卫星数据存储到第一终端的存储单元中之后,如果检测到第二终端与第一终端建立有通信连接,那么第一终端可以将上述设定时间范围内N个分区对应的卫星数据传输给第二终端,从而使得第二终端在上述设定时间范围内能够使用上述卫星数据搜索卫星信号。Further, after the first terminal stores the satellite data corresponding to the N partitions in the acquired set time range to the storage unit of the first terminal, if it is detected that the second terminal establishes a communication connection with the first terminal, then A terminal may transmit satellite data corresponding to N partitions in the set time range to the second terminal, so that the second terminal can use the satellite data to search for satellite signals within the set time range.
比如,仍然基于图1所示的通信系统示例,终端102通过与服务器101之间的上述通信过程获取到了设定时间范围内N个分区对应的卫星数据之后,由于检测到终端103与其建立有通信连接,那么终端102可将其获取到的上述卫星数据传输给终端103,以使得终端103在设定时间范围内也可使用上述卫星数据搜索卫星信号。For example, still based on the communication system example shown in FIG. 1, after the terminal 102 acquires satellite data corresponding to N partitions within a set time range by the above communication process with the server 101, since the terminal 103 is detected to have communication with it, Alternatively, the terminal 102 can transmit the satellite data acquired by the terminal 102 to the terminal 103, so that the terminal 103 can also use the satellite data to search for satellite signals within a set time range.
具体地,终端103连接到终端102之后,终端102可先确认能否向其传输卫星数据;比如,终端102可对终端103进行传输的合法性认证,本申请对此将不做详述。Specifically, after the terminal 103 is connected to the terminal 102, the terminal 102 can first confirm whether the satellite data can be transmitted to the terminal. For example, the terminal 102 can authenticate the validity of the transmission to the terminal 103, which will not be described in detail in this application.
具体地,第二终端可以是通过短距离无线通信技术连接到第一终端上的,短距离无线通信技术可参见前文描述,具体比如可包括有蓝牙、Wi-Fi、红外数据传输等。Specifically, the second terminal may be connected to the first terminal by using a short-range wireless communication technology, and the short-range wireless communication technology may be referred to the foregoing description, and may include, for example, Bluetooth, Wi-Fi, infrared data transmission, and the like.
进一步地,第二终端具体可以是具备短距离无线通信功能,而不具备与基站进行通信的功能和/或与服务器进行通信的功能的终端。比如仅带GPS单元的蓝牙手环、蓝牙手表,作为可穿戴设备,受限于体积的缘故往往不具备与基站进行通信的功能等。此类第二终端在搜索卫星信号进行GPS定位时由于无法直接获得来自基站或互联网服务器的辅助,因而单独工作时搜索卫星信号完成定位的时间往往较长(通常超过30秒),用户体验不佳;特别是这类的第二终端移动到一个全新的地理范围时,其上配置的GPS单元搜索卫星信号完成定位所需的时间将会更长;Further, the second terminal may specifically be a terminal having a short-range wireless communication function without a function of communicating with a base station and/or a function of communicating with a server. For example, a Bluetooth wristband with only a GPS unit and a Bluetooth watch, as a wearable device, often do not have the function of communicating with a base station due to the volume. When such a second terminal searches for satellite signals for GPS positioning, since it cannot directly obtain assistance from a base station or an Internet server, searching for satellite signals when working alone often takes a long time to complete positioning (usually more than 30 seconds), and the user experience is poor. In particular, when the second terminal of this type moves to a brand new geographical range, the time required for the GPS unit configured on the satellite unit to search for the satellite signal will be longer;
而通过本申请上述实施例所提供的通信过程,上述类型的第二终端可以通过短距离无线通信功能与第一终端建立起通信连接,进而在第一终端通过与服务器之间的上述通信过程获取到设定时间范围内N个分区对应的卫星数据后,可以通过与第一终端之间建立的通信连接间接地获取到上述卫星数据,从而可以在脱离第一设备单独工作时,可以使用所获取到的卫星数据有目的搜索卫星信号,实现快速定位,提升用户体验。With the communication process provided by the foregoing embodiment of the present application, the second terminal of the above type can establish a communication connection with the first terminal by using the short-range wireless communication function, and then obtain the communication process between the first terminal and the server. After the satellite data corresponding to the N partitions in the set time range, the satellite data can be indirectly obtained through a communication connection established with the first terminal, so that the obtained satellite data can be used when the first device is separated from the work. The satellite data arrives with a purpose to search for satellite signals to achieve rapid positioning and enhance the user experience.
比如,基于上文图1、图2中的相关描述,在一些实际场景中,第一终端具体可以是手机、平板电脑、笔记本等等,第二终端具体可以是智能手表、智能手环、智能眼镜等等。For example, based on the related descriptions in FIG. 1 and FIG. 2 above, in some actual scenarios, the first terminal may specifically be a mobile phone, a tablet computer, a notebook, etc., and the second terminal may specifically be a smart watch, a smart bracelet, or a smart device. Glasses and so on.
图5示出了本申请实施例提供的一种定位方法中第一终端与第二终端之间建立蓝牙连接的示意图。FIG. 5 is a schematic diagram of establishing a Bluetooth connection between a first terminal and a second terminal in a positioning method according to an embodiment of the present application.
如图5所示,第一终端501可通过其上配置的蓝牙功能模块与同样配置有蓝牙功能模块的第二终端502建立蓝牙连接,从而第一终端501在通过如图3所示的流程获取到设定时间范围内N个分区对应的卫星数据后,可通过蓝牙连接将上述卫星数据传输给第二终端502,以供第二终端502在设定时间范围内通过其上配置的GPS单元搜索卫星信号。As shown in FIG. 5, the first terminal 501 can establish a Bluetooth connection with the second terminal 502 that is also configured with the Bluetooth function module through the Bluetooth function module configured thereon, so that the first terminal 501 is obtained through the process shown in FIG. After the satellite data corresponding to the N partitions in the set time range, the satellite data may be transmitted to the second terminal 502 through the Bluetooth connection, so that the second terminal 502 searches through the GPS unit configured on the second terminal 502 within the set time range. satellite signal.
具体地,在通过软件实现本申请上述实施例所提供的定位方案的一些场景中,可将上 述通信过程中服务器侧的功能配置为应用(Application,App)服务程序配置到服务器上,并可提供能够配置到诸如手机、平板电脑等类型的第一终端上的第一类应用程序(或可表示为主App),以及能够配置到诸如蓝牙手环、蓝牙手表等类型的第二终端上的第二类应用程序(或可表示为从Application);Specifically, in some scenarios in which the positioning solution provided by the foregoing embodiment of the present application is implemented by software, The function of the server side in the communication process is configured as an application (Application) service program configured on the server, and can provide a first type of application that can be configured to the first terminal of a type such as a mobile phone or a tablet (or Represented as a main App), and a second type of application (or can be represented as an Application) that can be configured to a second terminal of a type such as a Bluetooth bracelet, a Bluetooth watch, or the like;
进而,第一终端可通过主App触发服务器上的App服务程序为其提供设定时间范围内N个分区对应的卫星数据;第二终端可通过从App触发第一终端的主App向其传输所获取到的设定时间范围内N个分区对应的卫星数据。Further, the first terminal may provide the satellite data corresponding to the N zones in the set time range by using the App service program on the main App trigger server; the second terminal may transmit the primary App to the first terminal by triggering the first terminal from the App. Obtain satellite data corresponding to N partitions within the set time range.
其中,考虑到卫星数据可能数据量较大,在软件实现时,可为上述App服务程序、主App、从App均配置相应的存储空间,具体比如可以是一百至两百兆的存储空间。In view of the fact that the satellite data may have a large amount of data, when the software is implemented, the corresponding storage space may be configured for the App service program, the main App, and the App, for example, it may be a storage space of one hundred to two hundred megabytes.
具体比如,图6示出了本申请实施例提供的一种定位方法在实际应用中的通信流程示意图。如图6所示,服务器上配置有App服务程序,手机(相当于上述的第一终端)上配置有主App,手表(相当于上述的第二终端)上配置有从App,通信流程具体如下:For example, FIG. 6 is a schematic diagram of a communication process in a practical application of a positioning method provided by an embodiment of the present application. As shown in FIG. 6 , an App service program is configured on the server, a mobile phone (corresponding to the first terminal described above) is configured with a main App, and a watch (corresponding to the second terminal described above) is configured with a slave application, and the communication flow is as follows: :
步骤600:地图被预先按照设定规则划分为若干个分区(相当于上述的M个分区)。Step 600: The map is divided into a plurality of partitions (corresponding to the above M partitions) according to a set rule in advance.
可选地,地图可被预先下载和存储到服务器、手机以及手表上。Alternatively, the map can be pre-downloaded and stored on servers, mobile phones, and watches.
具体地,地图被划分得到的各个分区的标识信息可配置到服务器上的App服务程序、手机上的主App以及手表上的从App上。Specifically, the identification information of each partition obtained by the map may be configured to an App service program on the server, a main App on the mobile phone, and a slave application on the watch.
步骤601:用户启动手机上的主App;Step 601: The user starts the main App on the mobile phone;
具体地,主App启动后,可向用户提供UI菜单,从而接收用户输入的、用于指示目标时间范围(相当于上述的设定时间范围)和目标区域(相当于上述N个分区)的用户指令。Specifically, after the main App is started, the UI menu may be provided to the user, thereby receiving the user input user for indicating the target time range (corresponding to the set time range mentioned above) and the target area (corresponding to the above N partitions). instruction.
步骤602:手机上的主App根据上述用户指令,生成用于请求目标时间范围内目标区域对应的卫星数据的请求消息,并将该请求消息发送给服务器;Step 602: The main application on the mobile phone generates a request message for requesting satellite data corresponding to the target area in the target time range according to the user instruction, and sends the request message to the server.
步骤603:服务器上的App服务程序接收到该请求消息后,将解析该请求消息,确定手机所需卫星数据对应的目标时间范围和目标区域;Step 603: After receiving the request message, the App service program on the server parses the request message to determine a target time range and a target area corresponding to the satellite data required by the mobile phone.
步骤604:服务器上的App服务程序启动对所确定出的目标时间范围内目标区域对应的卫星数据的推算;具体可通过获取历史卫星数据来进行上述推算;Step 604: The App service program on the server initiates the calculation of the satellite data corresponding to the target area within the determined target time range; specifically, the historical satellite data may be acquired to perform the above calculation;
步骤605:服务器上的App服务程序得到推算结果后,生成携带有该推算结果的响应消息反馈给手机;Step 605: After obtaining the estimated result, the App service program on the server generates a response message carrying the estimated result and feeds back to the mobile phone.
步骤606:手机接收到该响应消息后,将解析该响应消息,从而获取到目标时间范围内目标区域对应的卫星数据并进行存储;可以看到,通过上述步骤,手机便可在目标时间范围内使用所获取到的上述卫星数据搜索卫星信号完成定位;Step 606: After receiving the response message, the mobile phone parses the response message, so as to obtain satellite data corresponding to the target area in the target time range and store it; it can be seen that, by using the above steps, the mobile phone can be within the target time range. Searching for satellite signals using the acquired satellite data to complete positioning;
步骤607:手表通过其具备的蓝牙模块被与其足够近的手机中的蓝牙模块感测;并且,手机识别手表为被认证可与其进行通信的终端;Step 607: the watch is sensed by the Bluetooth module in the mobile phone with the Bluetooth module provided by the watch; and the mobile phone recognizes the watch as a terminal that is authenticated to communicate with the terminal;
步骤608:手机通过与手表之间建立的蓝牙连接,向手表发送其存储的目标时间范围内目标区域对应的卫星数据;Step 608: The mobile phone sends the satellite data corresponding to the target area in the target time range stored by the mobile phone to the watch through a Bluetooth connection established between the watch and the watch;
步骤609:手表存储所接收到的目标时间范围内目标区域对应的卫星数据,从而可在目标时间范围内使用所存储的上述卫星数据搜索卫星信号完成定位,克服目前诸如手表类的可穿戴终端需要轮询搜索卫星,耗时较长,定位滞后以及用户体验不佳等缺陷。Step 609: The watch stores the satellite data corresponding to the target area within the received target time range, so that the stored satellite data can be used to search for the satellite signal in the target time range to complete the positioning, thereby overcoming the current wearable terminal requirements such as watches. Polling search satellites takes time, delays in positioning, and poor user experience.
综上所述,在本申请上述实施例所提供的定位方案中,地图被按照设定规则划分为若干分区,从而第一终端在需要获取未来的一个设定时间范围内的一个或多个分区对应的卫 星数据时,可向服务器发送携带该设定时间范围和该一个或多个分区的指示信息的请求消息,并接收服务器返回的携带该设定时间范围内该一个或多个分区对应的卫星数据的响应消息,因而可达到快速获取目标时段内目标区域对应的卫星数据的目的;In summary, in the positioning solution provided by the foregoing embodiment of the present application, the map is divided into a plurality of partitions according to a setting rule, so that the first terminal needs to acquire one or more partitions within a set time range in the future. Corresponding Wei The star data may send a request message carrying the set time range and the indication information of the one or more partitions to the server, and receive the satellite data returned by the server and carrying the one or more partitions within the set time range. Response message, thus achieving the purpose of quickly acquiring satellite data corresponding to the target area within the target time period;
可以看到,由于本申请上述实施例所提供的定位方案将地图划分为若干个分区(比如划分为行政区域)等,由于各个分区有一定的经纬度跨度,而不是某一个具体位置(某一个经纬度),因而在推算卫星数据时将能够降低计算复杂度,同时加快搜索时间;It can be seen that, due to the positioning scheme provided by the foregoing embodiment of the present application, the map is divided into several partitions (for example, divided into administrative areas), etc., because each partition has a certain latitude and longitude span, rather than a specific location (a certain latitude and longitude) ), thus reducing the computational complexity and speeding up the search time when extrapolating satellite data;
进一步地,本申请上述实施例所提供的定位方案中,服务器可基于历史卫星数据,推算未来的目标时段(比如一天或更长时间段)内目标区域对应的卫星数据,第一终端可获取到该推算出的目标是段内目标区域对应的卫星数据,因而在该目标时段到达时,第一终端如果处于目标区域且需要搜索卫星信号进行定位,将能够依据预先得到的的该目标时间范围内目标区域对应的卫星数据迅速捕获到位于该目标区域上空的卫星的卫星信号,避免目前轮询搜索卫星而导致捕获卫星信号所需时间较长的缺陷,提高定位效率,提升用户体验,比如,从理论上来看通过本申请所提供的定位方案只要搜寻4至5个PRN,相对于传统方案要搜寻32个PRN而言所需时间大大缩短;Further, in the positioning solution provided by the foregoing embodiment of the present application, the server may calculate satellite data corresponding to the target area in a future target time period (such as one day or longer) based on the historical satellite data, and the first terminal may obtain The calculated target is the satellite data corresponding to the target area in the segment. Therefore, when the target time period arrives, if the first terminal is in the target area and needs to search for satellite signals for positioning, it can be based on the pre-obtained target time range. The satellite data corresponding to the target area quickly captures the satellite signals of the satellites located above the target area, avoiding the short-time defects of capturing the satellite signals by polling the search satellites at present, improving the positioning efficiency and improving the user experience, for example, from Theoretically, by using the positioning scheme provided by the present application, as long as searching for 4 to 5 PRNs, the time required to search 32 PRNs compared to the conventional scheme is greatly shortened;
此外,本申请上述实施例所提供的定位方案可具体实现为APP方案,因而可供同一个分区内的不同终端使用,也可以供不同分区的终端同时使用,使用的终端不限,使用的时间不限,利于终端实现脱机后快速定位。In addition, the positioning solution provided by the foregoing embodiment of the present application may be specifically implemented as an APP solution, and thus may be used by different terminals in the same partition, or may be used by terminals of different partitions at the same time, and the used terminal is not limited, and the used time is not limited. Not limited, it is convenient for the terminal to achieve fast positioning after offline.
基于同样的发明构思,本申请还提供了一种定位方法。Based on the same inventive concept, the present application also provides a positioning method.
图7示出了本申请实施例提供的一种定位方法的流程示意图。具体地,该流程可以由服务器执行,比如可在服务器101上配置用以实现如图7所示流程的功能模块。FIG. 7 is a schematic flowchart diagram of a positioning method provided by an embodiment of the present application. Specifically, the process may be performed by a server, for example, a function module configured on the server 101 to implement the process shown in FIG.
如图7所示,该流程包括如下步骤:As shown in FIG. 7, the process includes the following steps:
步骤701:服务器接收第一终端发送的请求消息,所述请求消息中携带所述第一终端需要获取的卫星数据对应的地图中的N个分区以及设定时间范围的指示信息;所述地图被按照设定规则划分为M个分区,其中M、N为正整数,且M大于等于N;Step 701: The server receives a request message sent by the first terminal, where the request message carries N partitions in the map corresponding to the satellite data that the first terminal needs to acquire, and indication information of a set time range; the map is According to the setting rules, it is divided into M partitions, where M and N are positive integers, and M is greater than or equal to N;
步骤702:服务器根据历史卫星数据,计算所述设定时间范围内所述N个分区对应的卫星数据;其中,一个分区对应的卫星数据包括所述设定时间范围内经过该分区上空的每个卫星的卫星数据;Step 702: The server calculates, according to the historical satellite data, satellite data corresponding to the N partitions in the set time range, where the satellite data corresponding to one partition includes each of the satellites that pass through the partition within the set time range. Satellite data of the satellite;
步骤703:服务器向所述第一终端发送响应消息,所述响应消息中携带所述设定时间范围内所述N个分区对应的卫星数据。Step 703: The server sends a response message to the first terminal, where the response message carries satellite data corresponding to the N partitions in the set time range.
在一种可能的实现中,所述历史卫星数据为所述服务器获取并存储在所述服务器上的、GPS中的各个卫星所发布的卫星数据。In a possible implementation, the historical satellite data is satellite data issued by each satellite in the GPS acquired by the server and stored on the server.
具体地,由于上述如图7所示流程以及其各可能的实现场景与本申请前述图3所示流程以及其各可能的实现场景对应,因而上述如图7所示流程以及其各可能的实现场景的具体实现以及有益效果具体可参见本申请前述对如图3所示流程以及其各可能的实现场景中的相关描述,本申请在此将不再赘述。Specifically, since the foregoing process shown in FIG. 7 and its possible implementation scenarios correspond to the foregoing process shown in FIG. 3 of the present application and its possible implementation scenarios, the foregoing process shown in FIG. 7 and its possible implementations are performed. For the specific implementation of the scenario and the beneficial effects, refer to the foregoing description of the process shown in FIG. 3 and its possible implementation scenarios, which will not be further described herein.
基于同样的发明构思,本申请还提供了一种定位装置,该装置可部署于第一终端(比如可部署于图1所示出的终端102、终端104上),用以执行本申请上述实施例所描述的第一终端侧的定位方法流程,该装置中的功能模块可通过硬件、软件或软硬件的结合实现。Based on the same inventive concept, the present application further provides a positioning device, which can be deployed on a first terminal (such as the terminal 102 and the terminal 104 shown in FIG. 1) for performing the above implementation of the present application. The flow of the positioning method on the first terminal side described in the example, the functional modules in the device can be implemented by hardware, software or a combination of hardware and software.
图8示出了本申请实施例提供的一种定位装置的结构示意图。FIG. 8 is a schematic structural diagram of a positioning device provided by an embodiment of the present application.
如图8所示,该装置包括: As shown in Figure 8, the device includes:
确定模块801,用于按照设定规则将地图划分为M个分区,确定需要获取未来的一个设定时间范围内所述地图中N个分区对应的卫星数据,其中M、N为正整数,且M大于等于N;a determining module 801, configured to divide the map into M partitions according to a setting rule, and determine that it is necessary to acquire satellite data corresponding to N partitions in the map in a future set time range, where M and N are positive integers, and M is greater than or equal to N;
发送模块802,用于向服务器发送请求消息,所述请求消息中携带所述设定时间范围以及所述N个分区的指示信息;The sending module 802 is configured to send a request message to the server, where the request message carries the set time range and the indication information of the N partitions;
接收模块803,用于接收所述服务器返回的响应消息,所述响应消息中携带所述服务器根据历史卫星数据计算得到的、所述设定时间范围内所述N个分区对应的卫星数据;其中,一个分区对应的卫星数据包括所述设定时间范围内经过该分区上空的每个卫星的卫星数据。The receiving module 803 is configured to receive a response message returned by the server, where the response message carries satellite data corresponding to the N partitions in the set time range calculated by the server according to historical satellite data; The satellite data corresponding to one partition includes satellite data of each satellite passing through the partition within the set time range.
在一种可能的实现中,所述装置还包括:In a possible implementation, the device further includes:
GPS模块,用于在所述接收模块803接收所述服务器返回的响应消息之后,在所述设定时间范围内,使用所述响应消息中携带的所述设定时间范围内所述N个分区对应的卫星数据搜索卫星信号。a GPS module, configured to use, after the receiving module 803 receives the response message returned by the server, in the set time range, using the N partitions in the set time range carried in the response message Corresponding satellite data searches for satellite signals.
在一种可能的实现中,所述装置还包括:In a possible implementation, the device further includes:
传输模块,用于在所述接收模块803接收所述服务器返回的响应消息之后,若确定与第二终端之间建立有通信连接,则将所述设定时间范围内所述N个分区对应的卫星数据传输给所述第二终端,以使所述第二终端在所述设定时间范围内使用所述卫星数据搜索卫星信号。a transmission module, configured to: after the receiving module 803 receives the response message returned by the server, if it is determined that a communication connection is established with the second terminal, the N partitions corresponding to the set time range are corresponding Satellite data is transmitted to the second terminal to cause the second terminal to search for satellite signals using the satellite data within the set time range.
在一种可能的实现中,所述装置还包括:输入模块,用于接收用于获取卫星数据的指令,所述指令中携带所述设定时间范围以及所述N个分区的信息;In a possible implementation, the device further includes: an input module, configured to receive an instruction for acquiring satellite data, where the instruction carries the set time range and information of the N partitions;
所述确定模块,具体用于:根据所述指令,确定所述设定时间范围以及所述N个分区。The determining module is specifically configured to: determine the set time range and the N partitions according to the instruction.
在一种可能的实现中,所述设定规则为将地图按照经度和/或纬度进行划分;或者,所述设定规则为将地图按照行政区域进行划分。In a possible implementation, the setting rule is to divide the map according to longitude and/or latitude; or, the setting rule is to divide the map according to the administrative region.
在一种可能的实现中,所述设定时间范围内经过所述分区上空的每个卫星的卫星数据,至少包括所述设定时间范围内经过所述分区上空的每个卫星的标识ID、轨道数据、以及星钟数据。In a possible implementation, the satellite data of each satellite passing through the partition within the set time range includes at least an identifier ID of each satellite passing through the partition within the set time range, Track data, and star clock data.
具体地,由于本发明上述实施例所提供的装置与本发明前述实施例所提供的第一终端侧的方法实施例解决问题的原理相似,因而本发明上述实施例所提供的装置的具体实施可与本发明前述实施例所提供的第一终端侧的方法的实施可以相互参见,重复之处不再赘述。Specifically, the device provided by the foregoing embodiment of the present invention is similar to the method for solving the problem in the method of the first terminal side provided by the foregoing embodiment of the present invention. Therefore, the specific implementation of the device provided by the foregoing embodiment of the present invention may be The implementation of the method on the first terminal side provided by the foregoing embodiments of the present invention may be referred to each other, and the repeated description is not repeated.
基于同样的发明构思,本申请还提供了一种定位装置,该装置可部署于服务器(比如可部署于图1所示出的服务器101上),用以执行本申请上述实施例所描述的服务器侧的定位方法流程,该装置中的功能模块具体可通过硬件、软件或软硬件的结合实现,Based on the same inventive concept, the present application further provides a positioning device, which can be deployed on a server (such as can be deployed on the server 101 shown in FIG. 1) to execute the server described in the above embodiment of the present application. The positioning method of the side, the function module in the device can be realized by hardware, software or a combination of software and hardware.
图9示出了本申请实施例提供的一种定位装置的结构示意图。FIG. 9 is a schematic structural diagram of a positioning device provided by an embodiment of the present application.
如图9所示,该装置包括:As shown in Figure 9, the device includes:
接收模块901,用于接收第一终端发送的请求消息,所述请求消息中携带所述第一终端需要获取的卫星数据对应的地图中的N个分区以及设定时间范围的指示信息;所述地图被按照设定规则划分为M个分区,其中M、N为正整数,且M大于等于N;The receiving module 901 is configured to receive a request message sent by the first terminal, where the request message carries N partitions in a map corresponding to the satellite data that the first terminal needs to acquire, and indication information of a set time range; The map is divided into M partitions according to the set rules, where M and N are positive integers, and M is greater than or equal to N;
计算模块902,用于根据历史卫星数据,计算所述设定时间范围内所述N个分区对应的卫星数据;其中,一个分区对应的卫星数据包括所述设定时间范围内经过该分区上空的 每个卫星的卫星数据;The calculating module 902 is configured to calculate, according to the historical satellite data, satellite data corresponding to the N partitions in the set time range; wherein the satellite data corresponding to one partition includes the sky over the partition within the set time range Satellite data for each satellite;
发送模块903,用于向所述第一终端发送响应消息,所述响应消息中携带所述设定时间范围内所述N个分区对应的卫星数据。The sending module 903 is configured to send a response message to the first terminal, where the response message carries satellite data corresponding to the N partitions in the set time range.
在一种可能的实现中,所述历史卫星数据为所述服务器获取并存储在所述服务器上的、GPS中的各个卫星所发布的卫星数据。In a possible implementation, the historical satellite data is satellite data issued by each satellite in the GPS acquired by the server and stored on the server.
具体地,由于本发明上述实施例所提供的装置与本发明前述实施例所提供的服务器侧的方法实施例解决问题的原理相似,因而本发明上述实施例所提供的装置的具体实施可与本发明前述实施例所提供的服务器侧的方法的实施可以相互参见,重复之处不再赘述。Specifically, the device provided by the foregoing embodiment of the present invention is similar to the method for solving the problem in the server-side method embodiment provided by the foregoing embodiment of the present invention. Therefore, the specific implementation of the device provided by the foregoing embodiment of the present invention may be The implementation of the method on the server side provided by the foregoing embodiments may be referred to each other, and the repeated description is not repeated.
本申请实施例中对模块的划分是示意性的,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,另外,在本申请各个实施例中的各功能模块可以集成在一个处理器中,也可以是单独物理存在,也可以两个或两个以上模块集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。The division of the modules in the embodiment of the present application is schematic, and is only a logical function division. In actual implementation, there may be another division manner. In addition, each functional module in each embodiment of the present application may be integrated into one processing. In the device, it can also be physically existed alone, or two or more modules can be integrated into one module. The above integrated modules can be implemented in the form of hardware or in the form of software functional modules.
基于同样的发明构思,本申请还提供了一种终端,所述终端上可部署有上述如图8所示的定位装置。Based on the same inventive concept, the present application further provides a terminal on which the positioning device as shown in FIG. 8 can be deployed.
图10示出了本申请实施例提供的一种终端的结构示意图。FIG. 10 is a schematic structural diagram of a terminal provided by an embodiment of the present application.
如图10所示,该终端1000可以包括有处理单元1001和无线通信单元1002。处理单元1001可以包括中央处理模块(central processing unit,CPU),或者也可包括数字处理模块等等。As shown in FIG. 10, the terminal 1000 may include a processing unit 1001 and a wireless communication unit 1002. The processing unit 1001 may include a central processing unit (CPU), or may also include a digital processing module or the like.
具体地,处理单元1001用于按照设定规则将地图划分为M个分区,确定需要获取未来的一个设定时间范围内所述地图中N个分区对应的卫星数据,其中M、N为正整数,且M大于等于N;以及,用于通过无线通信单元1002向服务器发送请求消息,所述请求消息中携带设定时间范围以及N个分区的指示信息;以及,用于通过无线通信单元1002接收服务器返回的响应消息,所述响应消息中携带服务器根据历史卫星数据计算得到的、设定时间范围内N个分区对应的卫星数据,其中,一个分区对应的卫星数据包括设定时间范围内经过该分区上空的每个卫星的卫星数据。Specifically, the processing unit 1001 is configured to divide the map into M partitions according to a setting rule, and determine that it is necessary to acquire satellite data corresponding to N partitions in the map in a future set time range, where M and N are positive integers. And M is greater than or equal to N; and, for transmitting, by the wireless communication unit 1002, a request message carrying a set time range and indication information of N partitions; and, for receiving by the wireless communication unit 1002 a response message returned by the server, where the response message carries satellite data corresponding to N partitions in a set time range calculated by the server according to historical satellite data, wherein the satellite data corresponding to one partition includes the set time range Satellite data for each satellite above the subarea.
如图10所示,该终端1000还可以包括有存储单元1003和GPS单元1004;其中,存储单元1003可用于存储上述响应消息中携带的设定时间范围内N个分区对应的卫星数据;As shown in FIG. 10, the terminal 1000 may further include a storage unit 1003 and a GPS unit 1004. The storage unit 1003 may be configured to store satellite data corresponding to N partitions in a set time range carried in the response message.
处理单元1001,还可以用于:在设定时间范围内,读取存储单元1003中存储的设定时间范围内N个分区对应的卫星数据,使用卫星数据指示GPS单元1004搜索卫星信号。The processing unit 1001 is further configured to: read the satellite data corresponding to the N partitions in the set time range stored in the storage unit 1003 within the set time range, and use the satellite data to instruct the GPS unit 1004 to search for the satellite signal.
具体地,处理单元1001、无线通信单元1002、存储单元1003和GPS单元1004可具体用于执行本发明前述实施例所提供的第一终端侧的方法。本申请在此不再赘述。Specifically, the processing unit 1001, the wireless communication unit 1002, the storage unit 1003, and the GPS unit 1004 may be specifically configured to perform the method on the first terminal side provided by the foregoing embodiments of the present invention. This application does not repeat here.
存储单元1003,还可以用于存储处理单元1001执行的程序。存储单元1003可以是非易失性存储器,比如硬盘(hard disk drive,HDD)或固态硬盘(solid-state drive,SSD)等,还可以是易失性存储器(volatile memory),例如随机存取存储器(random-access memory,RAM)。存储单元1003是能够用于携带或存储具有指令或数据结构形式的期望的程序代码并能够由计算机存取的任何其他介质,但不限于此。The storage unit 1003 can also be used to store a program executed by the processing unit 1001. The storage unit 1003 may be a non-volatile memory, such as a hard disk drive (HDD) or a solid-state drive (SSD), or a volatile memory such as a random access memory ( Random-access memory, RAM). The storage unit 1003 is any other medium that can be used to carry or store desired program code in the form of an instruction or data structure and can be accessed by a computer, but is not limited thereto.
本申请实施例中不限定上述处理单元1001、无线通信单元1002、存储单元1003和GPS单元1004之间的具体连接介质。比如可以通过总线连接,总线可以分为地址总线、数据总线、控制总线等等。The specific connection medium between the processing unit 1001, the wireless communication unit 1002, the storage unit 1003, and the GPS unit 1004 is not limited in the embodiment of the present application. For example, the bus can be connected, and the bus can be divided into an address bus, a data bus, a control bus, and the like.
本发明实施例还提供了一种可读存储介质,用于存储为执行上述处理单元所需执行的 软件指令,其包含用于执行上述处理单元所需执行的程序。An embodiment of the present invention further provides a readable storage medium for storing required to execute the foregoing processing unit. A software instruction that includes a program for executing the execution of the processing unit described above.
基于同样的发明构思,本申请还提供了一种服务器,所述服务器上可部署有上述如图9所示的定位装置。Based on the same inventive concept, the present application also provides a server on which the positioning device as shown in FIG. 9 can be deployed.
图11示出了本申请实施例提供的一种服务器的结构示意图。FIG. 11 is a schematic structural diagram of a server provided by an embodiment of the present application.
如图11所示,该服务器1100可以包括有处理单元1101和无线通信单元1102。处理单元1101可以包括中央处理模块,或者也可包括数字处理模块等等。As shown in FIG. 11, the server 1100 may include a processing unit 1101 and a wireless communication unit 1102. Processing unit 1101 may include a central processing module or may also include a digital processing module or the like.
具体地,处理单元1101用于通过无线通信单元1102接收第一终端发送的请求消息,所述请求消息中携带第一终端需要获取的卫星数据对应的地图中的N个分区以及设定时间范围的指示信息;所述地图被按照设定规则划分为M个分区,其中M、N为正整数,且M大于等于NM;以及,用于根据历史卫星数据,计算设定时间范围内N个分区对应的卫星数据;其中,一个分区对应的卫星数据包括设定时间范围内经过该分区上空的每个卫星的卫星数据;以及,用于通过无线通信单元1102向第一终端发送响应消息,所述响应消息中携带设定时间范围内N个分区对应的卫星数据。Specifically, the processing unit 1101 is configured to receive, by using the wireless communication unit 1102, a request message sent by the first terminal, where the request message carries N partitions in a map corresponding to satellite data that the first terminal needs to acquire, and a set time range. Instructing information; the map is divided into M partitions according to a setting rule, wherein M and N are positive integers, and M is greater than or equal to NM; and, for calculating, according to historical satellite data, N partitions corresponding to a set time range Satellite data; wherein satellite data corresponding to one partition includes satellite data of each satellite passing over the partition within a set time range; and, for transmitting a response message to the first terminal through the wireless communication unit 1102, the response The message carries satellite data corresponding to N partitions within a set time range.
具体地,处理单元1101和无线通信单元1102具体用于执行本发明前述实施例所提供的服务器侧的方法。本申请在此不再赘述。Specifically, the processing unit 1101 and the wireless communication unit 1102 are specifically configured to perform the server-side method provided by the foregoing embodiments of the present invention. This application does not repeat here.
如图11所示,该服务器1100还可以包括有存储单元1103;处理单元1101,还可用于:获取GPS中的各个卫星发布的卫星数据,并将获取到的卫星数据存储到存储单元1103中。As shown in FIG. 11, the server 1100 may further include a storage unit 1103. The processing unit 1101 may be further configured to: acquire satellite data issued by each satellite in the GPS, and store the acquired satellite data into the storage unit 1103.
存储单元1103,还可以用于存储处理单元1101执行的程序。存储单元1103可以是非易失性存储器,比如硬盘(hard disk drive,HDD)或固态硬盘(solid-state drive,SSD)等,还可以是易失性存储器(volatile memory),例如随机存取存储器(random-access memory,RAM)。存储单元1103是能够用于携带或存储具有指令或数据结构形式的期望的程序代码并能够由计算机存取的任何其他介质,但不限于此。The storage unit 1103 can also be used to store a program executed by the processing unit 1101. The storage unit 1103 may be a non-volatile memory, such as a hard disk drive (HDD) or a solid-state drive (SSD), or may be a volatile memory such as a random access memory ( Random-access memory, RAM). The storage unit 1103 is any other medium that can be used to carry or store desired program code in the form of an instruction or data structure and can be accessed by a computer, but is not limited thereto.
本申请实施例中不限定上述处理单元1101、无线通信单元1102和存储单元1103之间的具体连接介质。比如可以通过总线连接,总线可以分为地址总线、数据总线、控制总线等等。The specific connection medium between the processing unit 1101, the wireless communication unit 1102, and the storage unit 1103 is not limited in the embodiment of the present application. For example, the bus can be connected, and the bus can be divided into an address bus, a data bus, a control bus, and the like.
本发明实施例还提供了一种可读存储介质,用于存储为执行上述处理单元所需执行的软件指令,其包含用于执行上述处理单元所需执行的程序。The embodiment of the present invention further provides a readable storage medium for storing software instructions required to execute the above processing unit, which includes a program for executing the execution of the processing unit.
本领域内的技术人员应明白,本申请的实施例可提供为方法、系统、或计算机程序产品。因此,本申请可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本申请可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art will appreciate that embodiments of the present application can be provided as a method, system, or computer program product. Thus, the present application can take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment in combination of software and hardware. Moreover, the application can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) including computer usable program code.
本申请是参照根据本申请的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to the present application. It will be understood that each flow and/or block of the flowchart illustrations and/or FIG. These computer program instructions can be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing device to produce a machine for the execution of instructions for execution by a processor of a computer or other programmable data processing device. Means for implementing the functions specified in one or more of the flow or in a block or blocks of the flow chart.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方 式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions can also be stored in a particular computer capable of booting a computer or other programmable data processing device In a computer readable memory that operates in a computer readable memory, causing instructions stored in the computer readable memory to produce an article of manufacture comprising instruction means implemented in a block or in a flow or a flow diagram and/or block diagram of the flowchart The functions specified in the boxes.
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device. The instructions provide steps for implementing the functions specified in one or more of the flow or in a block or blocks of a flow diagram.
显然,本领域的技术人员可以对本申请进行各种改动和变型而不脱离本申请的范围。这样,倘若本申请的这些修改和变型属于本申请权利要求及其等同技术的范围之内,则本申请也意图包含这些改动和变型在内。 It will be apparent to those skilled in the art that various modifications and changes can be made in the present application without departing from the scope of the application. Thus, it is intended that the present invention cover the modifications and variations of the present invention.

Claims (16)

  1. 一种定位方法,其特征在于,所述方法包括:A positioning method, characterized in that the method comprises:
    按照设定规则将地图划分为M个分区,第一终端确定需要获取未来的一个设定时间范围内所述地图中N个分区对应的卫星数据,其中M、N为正整数,且M大于等于N;According to the setting rule, the map is divided into M partitions, and the first terminal determines that it is necessary to acquire satellite data corresponding to N partitions in the map in a set time range in the future, where M and N are positive integers, and M is greater than or equal to N;
    所述第一终端向服务器发送请求消息,所述请求消息中携带所述设定时间范围以及所述N个分区的指示信息;Sending, by the first terminal, a request message to the server, where the request message carries the set time range and the indication information of the N partitions;
    所述第一终端接收所述服务器返回的响应消息,所述响应消息中携带所述服务器根据历史卫星数据计算得到的、所述设定时间范围内所述N个分区对应的卫星数据;其中,一个分区对应的卫星数据包括所述设定时间范围内经过该分区上空的每个卫星的卫星数据。Receiving, by the first terminal, a response message returned by the server, where the response message carries satellite data corresponding to the N partitions in the set time range calculated by the server according to historical satellite data; The satellite data corresponding to a partition includes satellite data of each satellite passing over the partition within the set time range.
  2. 如权利要求1所述的方法,其特征在于,所述第一终端接收所述服务器返回的响应消息之后,还包括:The method of claim 1, wherein the receiving, by the first terminal, the response message returned by the server further comprises:
    所述第一终端在所述设定时间范围内,使用所述响应消息中携带的所述设定时间范围内所述N个分区对应的卫星数据搜索卫星信号。The first terminal searches for satellite signals in the set time range by using satellite data corresponding to the N partitions in the set time range carried in the response message.
  3. 如权利要求1或2所述的方法,其特征在于,所述第一终端接收所述服务器返回的响应消息之后,还包括:The method according to claim 1 or 2, wherein after the first terminal receives the response message returned by the server, the method further includes:
    所述第一终端若确定与第二终端之间建立有通信连接,则所述第一终端将所述设定时间范围内所述N个分区对应的卫星数据传输给所述第二终端,以使所述第二终端在所述设定时间范围内使用所述卫星数据搜索卫星信号。If the first terminal determines that a communication connection is established with the second terminal, the first terminal transmits the satellite data corresponding to the N partitions in the set time range to the second terminal, to Having the second terminal search for satellite signals using the satellite data over the set time range.
  4. 如权利要求1-3中任一项所述的方法,其特征在于,所述第一终端确定需要获取未来的一个设定时间范围内N个分区对应的卫星数据,包括:The method according to any one of claims 1 to 3, wherein the first terminal determines that it is necessary to acquire satellite data corresponding to N partitions in a set time range in the future, including:
    所述第一终端接收用于获取卫星数据的指令,所述指令中携带所述设定时间范围以及所述N个分区的信息;The first terminal receives an instruction for acquiring satellite data, where the instruction carries the set time range and information of the N partitions;
    所述第一终端根据所述指令,确定所述设定时间范围以及所述N个分区。Determining, by the first terminal, the set time range and the N partitions according to the instruction.
  5. 如权利要求1-4中任一项所述的方法,其特征在于,所述设定规则为将地图按照经度和/或纬度进行划分;或者,所述设定规则为将地图按照行政区域进行划分。The method according to any one of claims 1 to 4, wherein the setting rule is to divide the map according to longitude and/or latitude; or the setting rule is to perform the map according to the administrative area. Division.
  6. 如权利要求1-5所述的方法,其特征在于,所述设定时间范围内经过所述分区上空的每个卫星的卫星数据,至少包括所述设定时间范围内经过所述分区上空的每个卫星的标识ID、轨道数据、以及星钟数据。The method according to any one of claims 1-5, wherein satellite data of each satellite passing through said partition within said set time range includes at least said space over said partition within said set time range Identification ID, orbit data, and star clock data for each satellite.
  7. 一种定位方法,其特征在于,所述方法包括:A positioning method, characterized in that the method comprises:
    服务器接收第一终端发送的请求消息,所述请求消息中携带所述第一终端需要获取的卫星数据对应的地图中的N个分区以及设定时间范围的指示信息;所述地图被按照设定规则划分为M个分区,其中M、N为正整数,且M大于等于N;Receiving, by the server, a request message sent by the first terminal, where the request message carries N partitions in the map corresponding to the satellite data that the first terminal needs to acquire, and indication information of a set time range; the map is set according to the setting The rule is divided into M partitions, where M and N are positive integers, and M is greater than or equal to N;
    所述服务器根据历史卫星数据,计算所述设定时间范围内所述N个分区对应的卫星数据;其中,一个分区对应的卫星数据包括所述设定时间范围内经过该分区上空的每个卫星的卫星数据;The server calculates satellite data corresponding to the N partitions in the set time range according to historical satellite data; wherein the satellite data corresponding to one partition includes each satellite passing through the partition within the set time range Satellite data;
    所述服务器向所述第一终端发送响应消息,所述响应消息中携带所述设定时间范围内所述N个分区对应的卫星数据。The server sends a response message to the first terminal, where the response message carries satellite data corresponding to the N partitions in the set time range.
  8. 如权利要求7所述的方法,其特征在于,所述历史卫星数据为所述服务器获取并 存储在所述服务器上的、GPS中的各个卫星所发布的卫星数据。The method of claim 7 wherein said historical satellite data is acquired by said server Satellite data distributed by satellites in the GPS stored on the server.
  9. 一种终端,其特征在于,所述终端包括:处理单元和无线通信单元;其中,A terminal, comprising: a processing unit and a wireless communication unit; wherein
    所述处理单元,用于按照设定规则将地图划分为M个分区,确定需要获取未来的一个设定时间范围内所述地图中N个分区对应的卫星数据,其中M、N为正整数,且M大于等于N;以及,The processing unit is configured to divide the map into M partitions according to a setting rule, and determine that it is necessary to acquire satellite data corresponding to N partitions in the map in a future set time range, where M and N are positive integers. And M is greater than or equal to N; and,
    用于通过所述无线通信单元向服务器发送请求消息,所述请求消息中携带所述设定时间范围以及所述N个分区的指示信息;以及,And sending, by the wireless communication unit, a request message to the server, where the request message carries the set time range and the indication information of the N partitions; and
    用于通过所述无线通信单元接收所述服务器返回的响应消息,所述响应消息中携带所述服务器根据历史卫星数据计算得到的、所述设定时间范围内所述N个分区对应的卫星数据,其中,一个分区对应的卫星数据包括所述设定时间范围内经过该分区上空的每个卫星的卫星数据。And receiving, by the wireless communication unit, a response message returned by the server, where the response message carries satellite data corresponding to the N partitions in the set time range calculated by the server according to historical satellite data. The satellite data corresponding to one partition includes satellite data of each satellite passing through the partition within the set time range.
  10. 如权利要求9所述的终端,其特征在于,所述终端还包括:存储单元和全球定位系统GPS单元;其中,The terminal according to claim 9, wherein the terminal further comprises: a storage unit and a global positioning system GPS unit; wherein
    所述存储单元,用于存储所述响应消息中携带的所述设定时间范围内所述N个分区对应的卫星数据;The storage unit is configured to store satellite data corresponding to the N partitions in the set time range carried in the response message;
    所述处理单元,还用于:The processing unit is further configured to:
    在所述设定时间范围内,读取所述存储单元中存储的所述设定时间范围内所述N个分区对应的卫星数据,使用所述卫星数据指示所述GPS单元搜索卫星信号。Reading, within the set time range, satellite data corresponding to the N partitions in the set time range stored in the storage unit, and using the satellite data to instruct the GPS unit to search for satellite signals.
  11. 如权利要求9或10所述的终端,其特征在于,所述终端还包括:接口单元;The terminal according to claim 9 or 10, wherein the terminal further comprises: an interface unit;
    所述处理单元,还用于:The processing unit is further configured to:
    在确定所述接口单元上建立有与第二终端的通信连接时,将所述设定时间范围内所述N个分区对应的卫星数据通过所述接口单元传输给所述第二终端,以使所述第二终端在所述设定时间范围内使用所述卫星数据指示所述第二终端中的GPS单元搜索卫星信号。When it is determined that the communication connection with the second terminal is established on the interface unit, the satellite data corresponding to the N partitions in the set time range is transmitted to the second terminal by using the interface unit, so that The second terminal uses the satellite data to indicate that the GPS unit in the second terminal searches for a satellite signal within the set time range.
  12. 如权利要求9-11中任一项所述的终端,其特征在于,所述终端还包括:The terminal according to any one of claims 9 to 11, wherein the terminal further comprises:
    输入单元,用于接收用于获取卫星数据的指令,所述指令中携带所述设定时间范围以及所述N个分区的信息;An input unit, configured to receive an instruction for acquiring satellite data, where the instruction carries the set time range and information of the N partitions;
    所述处理单元,具体用于:The processing unit is specifically configured to:
    根据所述输入单元接收到的用于获取卫星数据的指令,确定所述设定时间范围以及所述N个分区。And determining the set time range and the N partitions according to an instruction received by the input unit for acquiring satellite data.
  13. 如权利要求9-12中任一项所述的终端,其特征在于,所述设定规则为将地图按照经度和/或纬度进行划分;或者,所述设定规则为将地图按照行政区域进行划分。The terminal according to any one of claims 9 to 12, wherein the setting rule is to divide the map according to longitude and/or latitude; or the setting rule is to perform the map according to the administrative area. Division.
  14. 如权利要求9-13所述的终端,其特征在于,所述设定时间范围内经过所述分区上空的每个卫星的卫星数据,至少包括所述设定时间范围内经过所述分区上空的每个卫星的标识ID、轨道数据、以及星钟数据。The terminal according to any one of claims 9-13, wherein the satellite data of each satellite passing through the partition within the set time range includes at least the sky over the partition within the set time range. Identification ID, orbit data, and star clock data for each satellite.
  15. 一种服务器,其特征在于,所述服务器包括:处理单元和无线通信单元;其中,A server, comprising: a processing unit and a wireless communication unit; wherein
    所述处理单元,用于通过所述无线通信单元接收第一终端发送的请求消息,所述请求消息中携带所述第一终端需要获取的卫星数据对应的地图中的N个分区以及设定时间范围的指示信息,所述地图被按照设定规则划分为M个分区,其中M、N为正整数,且M大于等于N;以及,The processing unit is configured to receive, by using the wireless communication unit, a request message sent by the first terminal, where the request message carries N partitions and a set time in a map corresponding to the satellite data that the first terminal needs to acquire. The indication information of the range, the map is divided into M partitions according to a setting rule, where M and N are positive integers, and M is greater than or equal to N;
    用于根据历史卫星数据,计算所述设定时间范围内所述N个分区对应的卫星数据;其 中,一个分区对应的卫星数据包括所述设定时间范围内经过该分区上空的每个卫星的卫星数据;以及,And configured to calculate, according to historical satellite data, satellite data corresponding to the N partitions in the set time range; The satellite data corresponding to one partition includes satellite data of each satellite passing through the partition within the set time range; and
    用于通过所述无线通信单元向所述第一终端发送响应消息,所述响应消息中携带所述设定时间范围内所述N个分区对应的卫星数据。And sending, by the wireless communication unit, a response message to the first terminal, where the response message carries satellite data corresponding to the N partitions in the set time range.
  16. 如权利要求15所述的服务器,其特征在于,所述服务器,还包括:存储单元;The server according to claim 15, wherein the server further comprises: a storage unit;
    所述处理单元,还用于:获取GPS中的各个卫星所发布的卫星数据,并将获取到的卫星数据存储到所述存储单元中。 The processing unit is further configured to: acquire satellite data issued by each satellite in the GPS, and store the acquired satellite data into the storage unit.
PCT/CN2017/082403 2017-01-11 2017-04-28 Positioning method, terminal and server WO2018129838A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202110200903.4A CN113064185B (en) 2017-01-11 2017-04-28 Positioning method, terminal and server
CN201780012495.1A CN108780155B (en) 2017-01-11 2017-04-28 Positioning method, terminal and server

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710020365 2017-01-11
CN201710020365.4 2017-01-11

Publications (1)

Publication Number Publication Date
WO2018129838A1 true WO2018129838A1 (en) 2018-07-19

Family

ID=62839717

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/082403 WO2018129838A1 (en) 2017-01-11 2017-04-28 Positioning method, terminal and server

Country Status (2)

Country Link
CN (2) CN108780155B (en)
WO (1) WO2018129838A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109490913A (en) * 2018-11-07 2019-03-19 深圳市昱乐科技开发有限公司 A kind of satellite receiving terminal and its method of reseptance

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111327354B (en) 2018-12-14 2022-01-11 华为技术有限公司 Satellite network communication method, related device and system
CN109657146A (en) * 2018-12-21 2019-04-19 拉扎斯网络科技(上海)有限公司 Distributed search method, device and system, main server and regional server
CN109936619B (en) * 2019-01-18 2021-07-20 中国科学院空间应用工程与技术中心 Spatial information network architecture, method and readable storage medium based on fog calculation
CN114494408A (en) * 2020-10-26 2022-05-13 华为技术有限公司 Star finding method and device
CN114624751B (en) * 2022-01-29 2024-07-26 上海移为通信技术股份有限公司 Auxiliary positioning method, auxiliary positioning device, electronic equipment and storage medium
CN115361058B (en) * 2022-10-19 2023-03-10 成都星联芯通科技有限公司 Satellite portable station satellite-to-satellite method, device, storage medium and satellite portable station
CN117015984A (en) * 2023-04-07 2023-11-07 北京小米移动软件有限公司 Information transmission method, device, system, communication equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101088024A (en) * 2004-09-14 2007-12-12 SiRF技术公司 Determining position without use of broadcast ephemeris information
CN101776743A (en) * 2009-01-09 2010-07-14 华晶科技股份有限公司 Electronic device and method for searching satellite
CN105191358A (en) * 2014-03-07 2015-12-23 华为终端有限公司 Method and apparatus for sharing data between positioning devices

Family Cites Families (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6992617B2 (en) * 2003-11-13 2006-01-31 Global Locate, Inc. Method and apparatus for monitoring the integrity of satellite tracking data used by a remote receiver
US8493267B2 (en) * 2006-11-10 2013-07-23 Qualcomm Incorporated Method and apparatus for position determination with extended SPS orbit information
US8085190B2 (en) * 2008-03-31 2011-12-27 Intel Corporation Method and apparatus for faster global positioning system (GPS) location using a pre-computed spatial location for tracking GPS satellites
CN102037378B (en) * 2008-05-22 2014-03-12 诺瓦特公司 GNSS receiver using signals of opportunity and assistance information to reduce time to first fix
CN101900803A (en) * 2009-06-01 2010-12-01 和硕联合科技股份有限公司 Global positioning system device, positioning method and system thereof
US8634850B2 (en) * 2011-03-11 2014-01-21 Qualcomm Incorporated Providing wireless transmitter almanac information to mobile station based on expected contribution to future navigation operation
US8812019B2 (en) * 2011-08-05 2014-08-19 Qualcomm Incorporated Providing wireless transmitter almanac information to mobile device based on expected route
CN103344976B (en) * 2013-07-05 2016-10-05 泰斗微电子科技有限公司 A kind of auxiliary satellite navigation localization method and accordingly positioning terminal
US9739888B2 (en) * 2013-09-12 2017-08-22 Marvell World Trade Ltd. Method, system and device for position determination with predicted ephemeris
CN103954980A (en) * 2014-04-04 2014-07-30 北京航空航天大学 Method for satellite selection of multimode GNSS receiver
US20160029224A1 (en) * 2014-07-23 2016-01-28 Qualcomm Incorporated Determination of environment characteristics from mobile device-based sensor measurements
CN104181570A (en) * 2014-08-19 2014-12-03 豪芯微电子科技(上海)有限公司 Local positioning method and system based on satellite orbit information
CN106125110B (en) * 2016-06-12 2018-08-24 中国科学院上海天文台 Satellite-based augmentation system Improvement Method of Localization Precision based on subregion correction

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101088024A (en) * 2004-09-14 2007-12-12 SiRF技术公司 Determining position without use of broadcast ephemeris information
CN101776743A (en) * 2009-01-09 2010-07-14 华晶科技股份有限公司 Electronic device and method for searching satellite
CN105191358A (en) * 2014-03-07 2015-12-23 华为终端有限公司 Method and apparatus for sharing data between positioning devices

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109490913A (en) * 2018-11-07 2019-03-19 深圳市昱乐科技开发有限公司 A kind of satellite receiving terminal and its method of reseptance
CN109490913B (en) * 2018-11-07 2023-02-28 深圳市昱乐科技开发有限公司 Satellite receiving terminal and receiving method thereof

Also Published As

Publication number Publication date
CN108780155A (en) 2018-11-09
CN108780155B (en) 2021-03-09
CN113064185B (en) 2022-07-19
CN113064185A (en) 2021-07-02

Similar Documents

Publication Publication Date Title
WO2018129838A1 (en) Positioning method, terminal and server
US20210337360A1 (en) Many to many ranging techniques
US7970419B2 (en) Systems, devices and methods for location determination
US8494544B2 (en) Method, apparatus and computer program to perform location specific information retrieval using a gesture-controlled handheld mobile device
KR102092057B1 (en) Method and apparatus for sharing location information of electronic device
US10989559B2 (en) Methods, systems, and devices for displaying maps
CN108337368B (en) Method for updating positioning data and mobile terminal
WO2011003290A1 (en) Method for locating terminal and terminal
CN107534932B (en) Method for controlling functional state and related equipment
CN112415554B (en) Positioning method and device, electronic equipment and computer readable storage medium
US10760912B2 (en) Information acquisition method, wireless communication device, electronic timepiece and recording medium
WO2013155918A1 (en) Scheduled task execution method and device, computer readable storage medium, graphical user interface, and mobile terminal
CN110023778B (en) Positioning method and device
CN110234068B (en) Positioning method and terminal equipment
WO2015035812A1 (en) Position tracking method and terminal
US20170299688A1 (en) Beacon transmitting device and beacon transmitting method
CN109936817B (en) Positioning method and terminal equipment
US11743857B2 (en) Method and system of wireless device location service
US9317617B2 (en) Trip plan sharing and matching method
JP7412505B2 (en) Visible network attachment for synchronous local search results
CN109041212B (en) Positioning method and wearable device
CN112887483B (en) Event reminding method and electronic equipment
US9842483B2 (en) Information processing system for reducing load on a server
TW201717101A (en) Electronic device and system and method for searching the same
CN114449647B (en) Positioning method and device

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

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 17891760

Country of ref document: EP

Kind code of ref document: A1