WO2023020055A1 - Positioning method and apparatus - Google Patents

Positioning method and apparatus Download PDF

Info

Publication number
WO2023020055A1
WO2023020055A1 PCT/CN2022/094226 CN2022094226W WO2023020055A1 WO 2023020055 A1 WO2023020055 A1 WO 2023020055A1 CN 2022094226 W CN2022094226 W CN 2022094226W WO 2023020055 A1 WO2023020055 A1 WO 2023020055A1
Authority
WO
WIPO (PCT)
Prior art keywords
terminal
positioning
information
location
distance
Prior art date
Application number
PCT/CN2022/094226
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 荣耀终端有限公司
Publication of WO2023020055A1 publication Critical patent/WO2023020055A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information
    • H04W4/024Guidance services
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01SRADIO DIRECTION-FINDING; RADIO NAVIGATION; DETERMINING DISTANCE OR VELOCITY BY USE OF RADIO WAVES; LOCATING OR PRESENCE-DETECTING BY USE OF THE REFLECTION OR RERADIATION OF RADIO WAVES; ANALOGOUS ARRANGEMENTS USING OTHER WAVES
    • G01S19/00Satellite radio beacon positioning systems; Determining position, velocity or attitude using signals transmitted by such systems
    • G01S19/38Determining a navigation solution using signals transmitted by a satellite radio beacon positioning system
    • G01S19/39Determining a navigation solution using signals transmitted by a satellite radio beacon positioning system the satellite radio beacon positioning system transmitting time-stamped messages, e.g. GPS [Global Positioning System], GLONASS [Global Orbiting Navigation Satellite System] or GALILEO
    • G01S19/42Determining position
    • G01S19/45Determining position by combining measurements of signals from the satellite radio beacon positioning system with a supplementary measurement
    • G01S19/46Determining position by combining measurements of signals from the satellite radio beacon positioning system with a supplementary measurement the supplementary measurement being of a radio-wave signal type
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information
    • H04W4/023Services making use of location information using mutual or relative location information between multiple location based services [LBS] targets or of distance thresholds
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/30Services specially adapted for particular environments, situations or purposes
    • H04W4/35Services specially adapted for particular environments, situations or purposes for the management of goods or merchandise
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/30Services specially adapted for particular environments, situations or purposes
    • H04W4/40Services specially adapted for particular environments, situations or purposes for vehicles, e.g. vehicle-to-pedestrians [V2P]
    • H04W4/44Services specially adapted for particular environments, situations or purposes for vehicles, e.g. vehicle-to-pedestrians [V2P] for communication between vehicles and infrastructures, e.g. vehicle-to-cloud [V2C] or vehicle-to-home [V2H]

Definitions

  • the present application relates to the technical field of terminals, and in particular to a positioning method and device.
  • the driver's location is obtained by the driver's terminal through 10-meter-level positioning technologies such as GPS positioning, base station positioning, or Bluetooth positioning.
  • the accuracy of the driver's position acquired by the above method is low, causing the passenger to be unable to perceive his precise position relative to the driver.
  • the present application provides a positioning method and device, which can collect the first relative position information of the passenger's first terminal and the driver's second terminal, so that the passenger can perceive the precise position of himself relative to the driver.
  • the present application provides a positioning method applied to a communication system, where the communication system includes a first terminal and a second terminal.
  • the method provided in the present application includes: the first terminal acquires the position information of the second terminal obtained by using the first positioning method.
  • the first terminal displays the first interface.
  • the first interface includes a map, a first positioning mark and a second positioning mark, the first positioning mark is used to mark the location information of the second terminal on the map, and the second positioning mark is used to mark the position information of the target position on the map , the target location is obtained by the first terminal based on user operations. If the distance between the target location and the second terminal is smaller than the preset distance threshold, the first terminal and the second terminal are positioned using the second positioning method.
  • the positioning accuracy of the second positioning method is greater than that of the first positioning method.
  • the first terminal acquires first relative position information of the first terminal and the second terminal obtained by positioning using the second positioning method, where the first relative position information includes a distance and a direction between the first terminal and the second terminal.
  • the first terminal updates the first positioning identifier on the first interface according to the first relative position information.
  • the first terminal and the second terminal use the second positioning method for positioning.
  • the first terminal may acquire first relative position information of the first terminal and the second terminal obtained by positioning using the second positioning method, where the first relative position information includes a distance and a direction between the first terminal and the second terminal.
  • the first positioning identifier is updated on the first interface according to the first relative position information. Since the positioning accuracy of the second positioning method is greater than that of the first positioning method, the passenger holding the first terminal can more accurately perceive the distance and direction between the driver holding the second terminal and himself.
  • the first terminal includes multiple antennas, and when the distance between the target location and the second terminal is smaller than a preset distance threshold, the first terminal and the second terminal use The second positioning method performs positioning, including: when the distance between the target position and the second terminal is smaller than a preset distance threshold, the first terminal receives a positioning signal from the position of the second terminal. Wherein, the positioning signal carries the first moment when the positioning signal is transmitted. The first terminal records the second moment when the positioning signal is received. The first terminal determines the distance of the second terminal relative to the first terminal according to the first moment, the second moment and the set signal propagation rate. The first terminal determines the relative direction of the second terminal relative to the second terminal according to the multiple antennas and the three-point positioning method.
  • the first terminal receives the positioning signal from the position of the second terminal, including: the second terminal detects the target position and If the distance between the second terminals is less than the preset distance threshold, the second terminal transmits a positioning signal. The first terminal receives the positioning signal from the second terminal.
  • the second terminal can be used to transmit positioning signals, and the cost is low.
  • the first terminal receives the positioning signal from the position of the second terminal, including: the second terminal detects the target If the distance between the location and the second terminal is less than a preset distance threshold, the positioning device is notified to transmit a positioning signal, where the location of the positioning device is the same as that of the second terminal.
  • the first terminal receives a positioning signal from a positioning device.
  • the positioning device can be used to transmit the positioning signal, which reduces the power consumption of the second terminal.
  • the first terminal and the second terminal interact through a cloud server, and before the first terminal displays the first interface, the method provided by this application further includes: the first terminal and the second terminal receive information from the cloud Verification information of the server, wherein the verification information includes a verification ID and a key.
  • the first terminal receiving the positioning signal from the location of the second terminal includes: the first terminal receiving the positioning signal from the location of the second terminal, carrying a verification identifier, and encrypted by a key at the first moment.
  • the method provided by this application further includes: verifying the identification and positioning from the cloud server If the verification identifiers carried in the signals are consistent, the first terminal decrypts the first moment according to the key.
  • the positioning signal is a UWB signal or an ultrasonic signal.
  • the first relative position information includes text information used to indicate the distance and direction of the second terminal relative to the first terminal.
  • the user can perceive the distance and direction from the driver more conveniently through the first relative position information.
  • the first terminal also displays a third positioning mark on the map of the first interface, wherein the third positioning mark is used to mark the position information of the first terminal obtained through the first positioning method, and the content of the first positioning mark It is updated to indicate the relative positions of the second terminal and the first terminal on the map.
  • the first relative position information further includes: an arrow pointing from the third positioning mark to the updated first positioning mark.
  • the user can perceive the distance and direction from the driver more conveniently through the first positioning mark, the third positioning mark and the arrow.
  • the content of the text information is updated along with the change of the first relative position information.
  • the first terminal displays first prompt information on the first interface, and the first prompt information is used to indicate that passengers have boarded the vehicle.
  • the passenger who holds the first terminal can perceive through the first prompt information that he has got on the bus correctly.
  • the method provided in the present application further includes: the second terminal displays a second interface, and the second interface includes the first control and the third positioning mark.
  • the third positioning identifier is used to mark the position information of the first terminal obtained through the first positioning method.
  • the second terminal sends the first request to the first terminal in response to the trigger operation on the first control.
  • the first request is used to request first relative location information of the first terminal.
  • the first terminal displays second prompt information on the first interface.
  • the second prompt information is used to indicate to share the first relative position information with the second terminal.
  • the first terminal sends the first relative position information to the second terminal in response to the confirmation operation on the second prompt information.
  • the second terminal generates second relative position information of the first terminal and the second terminal according to the first relative position information and the position information obtained by the second terminal using the first positioning method.
  • the second terminal updates the third positioning identifier on the second interface according to the second relative position information.
  • the driver holding the second terminal can accurately perceive the distance and direction of the passenger relative to himself through the second relative position information.
  • the second relative position information includes text information for indicating the distance and direction of the first terminal relative to the second terminal.
  • the driver holding the second terminal can more conveniently perceive the distance and direction of the passenger relative to himself through text messages.
  • the second interface also displays a first positioning mark and a third positioning mark, wherein the third positioning mark is used to indicate the relative position of the first terminal and the second terminal on the map, and the second relative position information also includes : An arrow pointing from the first positioning mark to the third positioning mark.
  • the driver holding the second terminal can also more conveniently perceive the distance and direction of the passenger relative to himself through the first positioning mark, the third positioning mark and the arrow.
  • the second terminal displays third prompt information on the second interface, and the third prompt information is used to indicate that passengers have boarded the vehicle.
  • the driver holding the second terminal can perceive through the third prompt information that the passenger has got on the bus correctly.
  • the present application also provides a positioning device, which is applied to the first terminal, and the device provided in the present application includes:
  • a communication unit configured to acquire the position information of the second terminal obtained by using the first positioning method.
  • a display unit configured to display the first interface.
  • the first interface includes a map, a first positioning mark and a second positioning mark
  • the first positioning mark is used to mark the location information of the second terminal on the map
  • the second positioning mark is used to mark the position information of the target position on the map
  • the target location is obtained by the first terminal based on user operations.
  • the processing unit is configured to use the second positioning method to perform positioning with the second terminal when the distance between the target position and the second terminal is less than a preset distance threshold. Wherein, the positioning accuracy of the second positioning method is greater than that of the first positioning method.
  • the processing unit is further configured to acquire first relative position information of the first terminal and the second terminal obtained by positioning using the second positioning method.
  • the first relative position information includes the distance and direction between the first terminal and the second terminal.
  • the display unit is further configured to update the first positioning mark on the first interface according to the first relative position information.
  • the first terminal includes multiple antennas.
  • the communication unit is further configured to receive a positioning signal from the location of the second terminal when the distance between the target location and the second terminal is smaller than a preset distance threshold. Wherein, the positioning signal carries the first moment when the positioning signal is transmitted.
  • the processing unit is further configured to record the second moment when the positioning signal is received, and determine the distance of the second terminal relative to the first terminal according to the first moment, the second moment and the set signal propagation rate; and according to the multiple antennas and The three-point positioning device determines the relative direction of the second terminal relative to the second terminal.
  • the communication unit is specifically configured to receive a positioning signal from the second terminal when the distance between the target location and the second terminal is less than a preset distance threshold.
  • the communication unit is specifically configured to receive a positioning signal from the positioning device when the distance between the target position and the second terminal is smaller than a preset distance threshold.
  • the location of the positioning device is the same as that of the second terminal.
  • the first terminal interacts with the second terminal through a cloud server.
  • the communication unit is further configured to receive verification information from the cloud server, where the verification information includes a verification ID and a key.
  • the communication unit is specifically configured to receive a location signal from the second terminal, which carries a verification identifier and is encrypted by a key at the first moment.
  • the processing unit is further configured to decrypt the first moment by the first terminal according to the key when the verification identifier from the cloud server is consistent with the verification identifier carried by the positioning signal.
  • the positioning signal is a UWB signal or an ultrasonic signal.
  • the first relative position information includes text information used to indicate the distance and direction of the second terminal relative to the first terminal.
  • the display unit is further configured to, when the distance between the second terminal and the first terminal is less than a preset distance threshold, the first terminal displays the first prompt information on the first interface, and the first terminal displays the first prompt information on the first interface.
  • a reminder message is used to indicate that the passenger has boarded the vehicle.
  • the communication unit is further configured to receive the first request from the second terminal. Wherein, the first request is used to request first relative location information of the first terminal.
  • the display unit is further configured to display second prompt information on the first interface in response to the first request. Wherein, the second prompt information is used to indicate to share the first relative position information with the second terminal.
  • the communication unit is further configured to send the first relative position information to the second terminal in response to the confirmation operation on the second prompt information.
  • the embodiment of the present application provides a positioning device, including a processor and a memory, the memory is used to store code instructions; the processor is used to run the code instructions, so as to execute any implementation method as in the first aspect or the first aspect The positioning method performed by the first terminal described in .
  • the embodiment of the present application provides a computer-readable storage medium, the computer-readable storage medium stores instructions, and when the instructions are executed, the computer executes the first aspect or any implementation manner of the first aspect. Describe the positioning method performed by the first terminal.
  • a computer program product includes a computer program, and when the computer program is executed, the computer executes the positioning method performed by the first terminal as described in the first aspect or any implementation manner of the first aspect.
  • FIG. 1 is an interactive schematic diagram of a second terminal B sending GPS location information of a second terminal B to a first terminal A;
  • FIG. 2 is a schematic diagram of a hardware system architecture of a first terminal and a second terminal provided in an embodiment of the present application;
  • FIG. 3 is a schematic diagram of interaction between the first mobile phone 100, the cloud server 300, the second mobile phone 200, and the positioning device of the vehicle 400 provided by the embodiment of the present application;
  • Fig. 4 is the first mobile phone 100 provided by the embodiment of the present application, the cloud server 300, and the second mobile phone 200 complete the interactive schematic diagram of the order process of car-hailing online;
  • FIG. 5 is a schematic diagram of the interaction between the cloud server 300 and the positioning devices of the first mobile phone 100 and the vehicle 400 respectively provided by the embodiment of the present application;
  • FIG. 6 is a structural block diagram of a positioning device 700 provided in an embodiment of the present application.
  • FIG. 7 is a schematic diagram of the first interface of the first mobile phone 100 provided by the embodiment of the present application.
  • FIG. 8 is a schematic diagram of a second interface of a second mobile phone 200 provided in an embodiment of the present application.
  • FIG. 9 is a schematic diagram of a scene where the first mobile phone 100 receives a UWB signal from a positioning device of a vehicle 400 according to an embodiment of the present application;
  • FIG. 10 is a schematic diagram of the interface of the first mobile phone 100 guiding passengers to get on the bus correctly according to the first relative position information provided by the embodiment of the present application;
  • FIG. 11 is a schematic diagram of the interaction of the first mobile phone 100 sharing the first relative position information to the second mobile phone 200 provided by the embodiment of the present application;
  • FIG. 12 is a schematic diagram of the interface of the second mobile phone 200 guiding the driver to pick up the passenger correctly according to the second relative position information provided by the embodiment of the present application;
  • FIG. 13 is a flow chart of the positioning method provided by the embodiment of the present application.
  • FIG. 14 is an interactive schematic diagram of the positioning method provided by the embodiment of the present application.
  • FIG. 15 is a structural block diagram of a positioning device 1500 provided in an embodiment of the present application.
  • FIG. 16 is a schematic diagram of a hardware structure of a first terminal or a second terminal provided in an embodiment of the present application.
  • FIG. 17 is a schematic structural diagram of a chip provided by an embodiment of the present application.
  • words such as “first” and “second” are used to distinguish the same or similar items with basically the same function and effect.
  • the first value and the second value are only used to distinguish different values, and their sequence is not limited.
  • words such as “first” and “second” do not limit the number and execution order, and words such as “first” and “second” do not necessarily limit the difference.
  • At least one means one or more, and “multiple” means two or more.
  • “And/or” describes the association relationship of associated objects, indicating that there may be three types of relationships, for example, A and/or B, which can mean: A exists alone, A and B exist simultaneously, and B exists alone, where A, B can be singular or plural.
  • the character “/” generally indicates that the contextual objects are an “or” relationship.
  • “At least one of the following” or similar expressions refer to any combination of these items, including any combination of single or plural items.
  • At least one item (piece) of a, b, or c can represent: a, b, c, a-b, a-c, b-c, or a-b-c, where a, b, c can be single or multiple .
  • the second terminal B collects the GPS location information of the second terminal and uploads it to the cloud server 300 .
  • the cloud server 300 sends the GPS location information of the second terminal B to the first terminal A, and the first terminal A maps the GPS location information of the second terminal B to a map for display.
  • the first terminal A marks the driver's GPS location information on the map on the dispatch interface of the online car-hailing application for passengers to refer to.
  • the above-mentioned driver's GPS location information is located using GPS positioning technology with a positioning accuracy of 10 meters. In this way, the location of the driver that the passenger checks on the dispatch interface is not accurate enough.
  • an embodiment of the present application provides a positioning method.
  • the driver's second terminal controls the positioning device to transmit a positioning signal.
  • the positioning signal carries a transmission time.
  • the passenger's first terminal can receive the positioning signal from the positioning device, and record the receiving time and the propagation direction of the positioning signal.
  • the first terminal can determine the distance of the passenger relative to the driver based on the transmission time, reception time and propagation rate of the positioning signal. In this way, the accuracy of determining the distance can reach centimeter level.
  • the first terminal may determine the relative position information of the passenger and the driver according to the propagation direction of the positioning signal and the distance between the passenger and the driver. Then, the first terminal identifies the relative position information of the passenger and the driver in the map displayed on the dispatch interface of the online car-hailing application.
  • the passenger can check the relative location information of the passenger and the driver on the map displayed on the order interface of the online car-hailing application. And because the accuracy of the determined distance can reach the centimeter level, the accuracy of the relative position information of the passenger and the driver that the passenger consults is high, so that the online car-hailing service including but not limited to the positioning method provided by the embodiment of the present application can be realized .
  • the terminal device can be a mobile phone, a wearable device (such as a smart bracelet or a smart watch), a tablet computer (Pad), a computer with a wireless transceiver function, a virtual reality (VR) terminal device, an augmented reality (augmented reality, AR) terminal equipment and so on.
  • the embodiment of the present application does not limit the specific technology and specific device form adopted by the terminal device.
  • FIG. 2 is a schematic structural diagram of a terminal device provided in an embodiment of the present application.
  • the terminal device may include a processor 110, a GPS positioning device 120, an internal memory 121, a universal serial bus (universal serial bus, USB) interface 130, a charging management module 140, a power management module 141, an antenna 1, an antenna 2, and a mobile communication module 150, wireless communication module 160, ultrasonic transceiver module 161, audio module 170, speaker 170A, receiver 170B, microphone 170C, sensor module 180, button 190, indicator 192, camera 193, and display screen 194, etc.
  • a processor 110 may include a processor 110, a GPS positioning device 120, an internal memory 121, a universal serial bus (universal serial bus, USB) interface 130, a charging management module 140, a power management module 141, an antenna 1, an antenna 2, and a mobile communication module 150, wireless communication module 160, ultrasonic transceiver module 161, audio module 170, speaker 170A, receiver 170B, microphone 170C, sensor module 180, button 190, indicator 192, camera 193, and display screen 194, etc.
  • the sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, bone conduction sensor 180M, etc.
  • the structure shown in the embodiment of the present application does not constitute a specific limitation on the terminal device.
  • the terminal device may include more or fewer components than shown in the figure, or combine certain components, or separate certain components, or arrange different components.
  • the illustrated components can be realized in hardware, software or a combination of software and hardware.
  • Processor 110 may include one or more processing units. Wherein, different processing units may be independent devices, or may be integrated in one or more processors.
  • a memory may also be provided in the processor 110 for storing instructions and data.
  • the USB interface 130 is an interface conforming to the USB standard specification, specifically, it can be a Mini USB interface, a Micro USB interface, a USB Type C interface, and the like.
  • the USB interface 130 can be used to connect a charger to charge the terminal device, and can also be used to transmit data between the terminal device and peripheral devices. It can also be used to connect headphones and play audio through them. This interface can also be used to connect other electronic devices, such as AR devices.
  • the charging management module 140 is configured to receive a charging input from a charger.
  • the charger may be a wireless charger or a wired charger.
  • the power management module 141 is used for connecting the charging management module 140 and the processor 110 .
  • the wireless communication function of the terminal device can be realized by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor and the baseband processor.
  • Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals, such as Bluetooth signals and ultra wide band (UWB) signals.
  • Antennas in end devices can be used to cover single or multiple communication frequency bands.
  • both the antenna 1 and the antenna 2 can be replaced by an array antenna, and the array antenna includes a plurality of array-arranged sub-antennas, and each sub-antenna has a different relative direction of sending and receiving.
  • the terminal device can determine the propagation direction of the received signal according to the intensity of the received signal of each sub-antenna.
  • the terminal device may further include an antenna 3 (not shown in FIG.
  • the terminal device can calculate the propagation direction of the signal through the three-point positioning method according to the time difference between the arrival of the signal at the antenna 1, the antenna 2, and the antenna 3.
  • the mobile communication module 150 can provide wireless communication solutions including 2G/3G/4G/5G applied on terminal equipment.
  • the mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (low noise amplifier, LNA) and the like.
  • the mobile communication module 150 can receive electromagnetic waves through the antenna 1, filter and amplify the received electromagnetic waves, and send them to the modem processor for demodulation.
  • the wireless communication module 160 can provide wireless local area networks (wireless local area networks, WLAN) (such as wireless fidelity (Wi-Fi) network), bluetooth (bluetooth, BT), global navigation satellite system ( Global navigation satellite system, GNSS), frequency modulation (frequency modulation, FM), ultra wide band (Ultra wide band, UWB) and other wireless communication solutions.
  • WLAN wireless local area networks
  • Wi-Fi wireless fidelity
  • BT Bluetooth
  • GNSS global navigation satellite system
  • FM frequency modulation
  • UWB ultra wide band
  • the ultrasonic transceiver module 161 can be used to send and receive ultrasonic signals.
  • the terminal device realizes the display function through the GPU, the display screen 194, and the application processor.
  • the GPU is a microprocessor for image processing, and is connected to the display screen 194 and the application processor. GPUs are used to perform mathematical and geometric calculations for graphics rendering.
  • the display screen 194 is used to display images, videos and the like.
  • the display screen 194 includes a display panel.
  • the terminal device may include 1 or N display screens 194, where N is a positive integer greater than 1.
  • the terminal device can realize the shooting function through ISP, camera 193 , video codec, GPU, display screen 194 and application processor.
  • Camera 193 is used to capture still images or video.
  • the terminal device may include 1 or N cameras 193, where N is a positive integer greater than 1.
  • the GPS positioning device 120 is configured to collect current GPS position information of the terminal device.
  • the internal memory 121 may be used to store computer-executable program codes including instructions.
  • the internal memory 121 may include an area for storing programs and an area for storing data.
  • the terminal device can implement audio functions through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, and the application processor. Such as music playback, recording, etc.
  • the audio module 170 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signal.
  • Speaker 170A also referred to as a "horn” is used to convert audio electrical signals into sound signals.
  • the terminal device can listen to music through the speaker 170A, or listen to hands-free calls.
  • the receiver 170B also called “earpiece”, is used to convert audio electrical signals into audio signals. When the terminal device answers a phone call or voice information, the receiver 170B can be placed close to the human ear to listen to the voice.
  • the microphone 170C also called “microphone” or “microphone”, is used to convert sound signals into electrical signals.
  • the pressure sensor 180A is used to sense the pressure signal and convert the pressure signal into an electrical signal.
  • pressure sensor 180A may be disposed on display screen 194 .
  • the gyroscope sensor 180B can be used to determine the motion posture of the terminal device.
  • the air pressure sensor 180C is used to measure air pressure.
  • the magnetic sensor 180D includes a Hall sensor.
  • the acceleration sensor 180E can detect the acceleration of the terminal device in various relative directions (generally three axes).
  • the distance sensor 180F is used to measure the distance.
  • Proximity light sensor 180G may include, for example, light emitting diodes (LEDs) and light detectors, such as photodiodes.
  • the ambient light sensor 180L is used for sensing ambient light brightness.
  • the fingerprint sensor 180H is used to collect fingerprints.
  • the temperature sensor 180J is used to detect temperature.
  • the touch sensor 180K is also called “touch device”.
  • the touch sensor 180K can be disposed on the display screen 194, and the touch sensor 180K and the display screen 194 form a touch screen, also called a “touch screen”.
  • the bone conduction sensor 180M can acquire vibration signals.
  • the keys 190 include a power key, a volume key and the like.
  • the key 190 may be a mechanical key. It can also be a touch button.
  • the terminal device can receive key input and generate key signal input related to user settings and function control of the terminal device.
  • the indicator 192 can be an indicator light, and can be used to indicate charging status, power change, and can also be used to indicate messages, missed calls, notifications, and the like.
  • the software system of the terminal device may adopt a layered architecture, an event-driven architecture, a micro-kernel architecture, a micro-service architecture, or a cloud architecture, etc., which will not be repeated here.
  • FIG. 3 is an architecture diagram of an application scenario of a positioning method provided by an embodiment of the present application.
  • the passenger's first mobile phone 100 and the driver's second mobile phone 200 are respectively connected in communication with the cloud server 300 for data interaction.
  • a positioning device is installed on the vehicle 400, and the driver's second mobile phone 200 can establish a one-to-one communication connection with the positioning device.
  • the driver's second mobile phone 200 may establish a bluetooth or wifi connection with the positioning device, which is not limited herein.
  • the icon of the online car-hailing application can be triggered on the system main interface of the first mobile phone 100 .
  • the first mobile phone 100 may respond to the passenger's trigger operation to display a dispatch interface (not shown in the figure) of the online car-hailing application, wherein the dispatch interface includes an order control.
  • the first mobile phone 100 can receive the travel starting point "Binhe 1st Street intersection” and travel destination "Xueyuan Road Bus Station” entered by passengers on the order dispatching interface.
  • the first mobile phone 100 sends an order request to the cloud server 300 in response to the passenger's trigger operation on the order control of the dispatch interface.
  • the order request carries the passenger's GPS location information, the travel starting point "Binhe 1st Street Intersection", the travel destination "Xueyuan Road Bus Station", and the passenger's personal information (such as identity information, name, etc.).
  • the cloud server 300 sends the order request to the second mobile phone 200 .
  • the order receiving interface of the second mobile phone 200 displays the travel starting point "Binhe 1st Street Intersection", the travel destination "Xueyuan Road Bus Station", and the passenger's personal information, etc. (not shown in the drawings) .
  • the second mobile phone 200 may send an order receiving instruction to the cloud server 300 in response to the driver's trigger operation on the order receiving control on the order receiving interface of the second mobile phone 200 .
  • the order receiving instruction carries the driver's GPS location information, the driver's personal information (such as identity information, name, etc.) and the like.
  • the GPS location information is collected by the second mobile phone 200 using the first positioning method.
  • the above-mentioned first positioning method may also be replaced by a positioning method of collecting base station location information, or Bluetooth location information, etc., which is not limited herein.
  • the cloud server 300 generates verification information according to the order receiving instruction and the order request.
  • the verification information includes the verification identification (such as the order number), the GPS location information of the first mobile phone 100, the travel starting point "Binhe Yijie intersection", the travel destination "Xueyuan Road Bus Station", and the passenger's personal information (such as identity information, name, etc.) etc.), the GPS location information of the second mobile phone 200, and the driver's personal information (such as identity information, name, etc.) and the like.
  • the cloud server 300 can also generate a key. As shown in FIG. 5 , the cloud server 300 may deliver the verification information and the key to the first mobile phone 100 and the second mobile phone 200 respectively.
  • the second mobile phone 200 Since the second mobile phone 200 has pre-established a one-to-one communication connection with the positioning device, the second mobile phone 200 can also send the key and the verification identifier in the verification information to the positioning device.
  • the positioning device receives the key and the verification ID from the second mobile phone 200, and stores the key and the verification ID.
  • the positioning device 700 may include a Bluetooth module 701 , a signal processing module 702 , a signal transmitting module 703 , a storage module 704 and a power interface 705 .
  • the signal processing module 702 is electrically connected to the Bluetooth module 701 , the signal transmitting module 703 , the storage module 704 and the power interface 705 respectively.
  • the positioning device 700 can establish a one-to-one communication connection with the second mobile phone 200 through the Bluetooth module 701 . Furthermore, the positioning device 700 may receive the key and the verification ID from the second mobile phone 200 through the Bluetooth module 701 , and store the key and the verification ID in the storage module 704 .
  • the signal transmitting module 703 may be used to transmit positioning signals.
  • the positioning signal may be a UWB signal encrypted by a key and carrying the first moment when the positioning signal is transmitted. Understandably, by encrypting the UWB signal with a key, the driver's location information and the passenger's location information can be protected from being leaked to others, thereby ensuring information security.
  • the positioning signal may also be an unencrypted UWB signal carrying the first moment when the positioning signal is transmitted, etc., which are limited here.
  • the power interface 705 can be connected to a vehicle power supply, so that the vehicle power supply can supply power to the positioning device 700 through the power interface 705 . In this way, the vehicle power supply can provide the positioning device 700 with a longer battery life and greater signal transmission power.
  • the power interface 705 may also be replaced by a battery to supply power to the positioning device 700, which is not limited herein.
  • the order process of online car-hailing is completed. Furthermore, as shown in FIG. 7 , the passenger's first mobile phone 100 displays a first interface 101 .
  • the first interface 101 of the first mobile phone 100 displays a map, and the map includes a first positioning mark 801, a second positioning mark 802, and a distance prompt 104 "2 kilometers away from you". It can be understood that the distance prompt 104 is used to indicate the distance of the GPS location information of the vehicle 400 on the map relative to the GPS location information of the travel starting point, for passengers to check.
  • the first positioning mark 801 is used to mark the GPS position information of the vehicle 400 on the map (that is, the GPS position information of the second mobile phone 200 on the map), and the second positioning mark 802 is used to mark the starting point of travel "Binhe First Street intersection" on the map GPS location information on the .
  • the driver's second mobile phone 200 displays a second interface 201 .
  • a map is also displayed on the second interface 201 , and the map includes a first positioning mark 801 , a second positioning mark 802 and a distance prompt 202 "2 kilometers from the starting point".
  • the distance prompt 202 is used to indicate the distance of the GPS location information of the vehicle 400 on the map relative to the GPS location information of the travel starting point, for the driver to check.
  • the first positioning mark 801 is used to mark the GPS position information of the vehicle 400 on the map
  • the second positioning mark 802 is used to mark the GPS position information of the travel starting point "Binhe First Street Intersection" on the map.
  • the passenger's second mobile phone 200 detects that the distance between the driver's GPS location information and the GPS location information of the travel starting point "Binhe Yijie intersection" is less than a preset distance threshold (such as 40m, 50m, and 60m, etc.), the passenger has Acquiring the precise location information of the vehicle 400 (that is, the first relative location information between the first mobile phone 100 and the vehicle 400 ) is required, so as to quickly and accurately find the driver's vehicle 400 to board. Since the accuracy of the GPS positioning technology is not high, the accuracy of the first positioning mark 801 on the first interface 101 and the GPS position information of the vehicle 400 marked on the map is not high. In this way, the position information of the vehicle 400 can be positioned using the second positioning method with higher accuracy. It can be understood that the positioning accuracy of the second positioning method is greater than the positioning accuracy of the above-mentioned first positioning method.
  • the second positioning method is the UWB positioning technology, and the process of using the UWB positioning technology to locate the driver's position information will be described with reference to FIG. 9 .
  • the second mobile phone 200 when the driver's second mobile phone 200 detects that the distance between the GPS location information of the vehicle 400 and the GPS location information of the travel starting point is less than the preset distance threshold, the second mobile phone 200 can notify the vehicle 400
  • the positioning device 700 on the device transmits UWB signals.
  • the signal processing module 702 of the positioning device 700 extracts the key and the verification ID from the storage module 704, and controls the signal transmitting module 703 to transmit the UWB signal carrying the verification ID and the encrypted first moment.
  • the first moment is the moment when the UWB signal is transmitted.
  • the passenger's first mobile phone 100 can receive the UWB signal transmitted by the positioning device 700, and record the second moment when the UWB signal is received.
  • the first mobile phone 100 can detect whether the verification identification carried by the UWB signal is consistent with the verification identification previously received from the cloud server 300. If they are consistent, it means that the vehicle 400 where the positioning device 700 that transmits the UWB signal is located is exactly the vehicle reserved by the passenger. . In this way, the first mobile phone 100 can decrypt the first moment of the UWB signal according to the key previously received from the cloud server 300 .
  • the first mobile phone 100 may calculate the transmission time t of the UWB signal according to the first moment and the second moment.
  • d is the distance between the vehicle 400 where the positioning device 700 is located and the first mobile phone 100
  • v is the propagation rate of the UWB signal
  • t is the transmission time of the UWB signal.
  • the transmission time t can be accurate to the level of picoseconds, and the accuracy is high; moreover, the propagation rate is a set constant, which can be accurate to millimeters per second.
  • the first mobile phone 100 can also calculate the direction of the transmitted UWB signal of the vehicle 400 through the three-point positioning method according to the transmission time of the UWB signal reaching the antenna of the first mobile phone 200 respectively.
  • the first mobile phone 200 includes an antenna 1 and an antenna 2, and the distance between the antenna 1 and the antenna 2 is D.
  • the transmission time of UWB signal to reach antenna 1 is T1, so the distance D1 can be calculated according to the transmission time T1 and propagation speed; the transmission time of UWB signal to reach antenna 2 is T2, so, can be calculated according to the transmission time T2 and propagation speed distance D2.
  • antenna 1, antenna 2 and the positioning device transmitting UWB signals form a triangle, in the case of known D, D1 and D2, the angle between the positioning device and antenna 1 or antenna 2 can be calculated by trigonometric functions, and then the first The mobile phone 100 is relative to the propagation direction of the UWB signal.
  • the propagation direction of the UWB signal is the direction of the vehicle 400 relative to the first mobile phone 100 (that is, the distance between the second mobile phone 200 and the first mobile phone 100), and the propagation direction of the UWB signal is determined by the antenna of the first mobile phone 100.
  • the indicated direction of the vehicle 400 relative to the first mobile phone 100 is highly accurate. In this way, by combining the distance between the vehicle 400 and the first mobile phone 100 and the direction of the vehicle 400 relative to the first mobile phone 100 , more accurate first relative position information of the vehicle 400 and the first mobile phone 100 can be obtained.
  • the first mobile phone 100 can identify the vehicle 400 and the first mobile phone 100 on the map in the first interface 101 according to the GPS location information of the first mobile phone 100, the distance between the vehicle 400 and the first mobile phone 100, and the propagation direction of the UWB signal.
  • First relative location information 105 of a mobile phone 100 As shown in (a) in FIG. 10 , the first mobile phone 100 may display a third location mark 803 on the map of the first interface 101, wherein the third location mark 803 is used to mark the position of the first mobile phone 100 on the map.
  • GPS location information that is, the passenger's GPS location information.
  • the first mobile phone 100 may also update the content of the first positioning mark 801 to indicate the relative positions of the vehicle 400 and the first mobile phone 400 on the map.
  • the first relative position information 105 may be text information of "15.61 meters from your front right". Understandably, the first relative position information 105 is used to indicate the distance and direction between the vehicle 400 and the first mobile phone 100 , that is, the distance and direction between the passenger and the driver. In this way, the passenger can more accurately perceive the distance and direction between the vehicle 400 and the first mobile phone 100 through the first relative position information 105 (for example, 15.61 meters ahead right).
  • the first relative position information 105 may also include an arrow for indicating the direction of the vehicle 400 , that is, an arrow pointing from the third positioning mark 803 to the updated first positioning mark 801 .
  • Passengers can also perceive the direction and distance of the vehicle 400 relative to the first mobile phone 100 through the third positioning mark 803 , the updated first positioning mark 801 and the arrow indicating the direction of the vehicle 400 . In this way, passengers can more conveniently perceive the position of the vehicle 400 relative to themselves, so as to reasonably plan to find the route and departure time of the vehicle 400 .
  • the vehicle 400 no longer moves, but waits for passengers to board.
  • the content of the first relative position information 105 is updated as: "5.61 meters from your rear right".
  • the passenger can more accurately perceive the distance and direction between the vehicle 400 and the first mobile phone 100 (such as 5.61 meters behind the right) through the first relative position information 105 while moving to find the vehicle 400 .
  • the first relative position information 105 includes an arrow indicating the direction of the vehicle 400
  • the direction of the above arrow will be adjusted as the relative distance and direction between the vehicle 400 and the first mobile phone 100 change. In this way, passengers can more conveniently perceive the position of the vehicle 400 relative to themselves, so as to judge whether their own moving direction is correct, and then, can find the vehicle 400 more efficiently and accurately.
  • the first mobile phone 100 displays a first prompt message 106 "already boarded" on the first interface 101 . Understandably, the first prompt information is used to indicate that the passenger has boarded the vehicle. In this way, the passengers can perceive that they have got on the bus correctly through the first prompt information 106 . And the user's first mobile phone 100 will send the information of "have boarded" to the cloud server 300, which is used for the cloud server 300 to confirm the ride.
  • the preset distance threshold such as 0.5m, 0.3m, etc.
  • the duration exceeds the preset duration (such as 3s, 5s etc.
  • the driver when the distance between the driver's GPS location information and the GPS location information of the "Binhe First Street Intersection" of the travel starting point is less than the preset distance threshold (such as 40m, 50m, and 60m, etc.), the driver also has the ability to obtain the passenger's accurate relative information. Position requirements in order to determine the more precise relative position of passengers and themselves. In this way, the driver can request the first mobile phone 100 to share the precise relative location to the driver's second mobile phone 200 .
  • the preset distance threshold such as 40m, 50m, and 60m, etc.
  • the first control 203 is displayed on the second interface 201 of the second mobile phone 200 .
  • the second mobile phone 200 may send a first request to the first mobile phone 100 in response to the driver's trigger operation on the first control 203 , wherein the first request is used to request first relative position information of the first mobile phone 100 .
  • the first mobile phone 100 receives the first request from the second mobile phone 200, and displays the second prompt information 102 on the first interface 101.
  • the second prompt information 102 is used to indicate to share the first relative position information with the second mobile phone 200
  • the second prompt information 102 includes a confirmation control 103 .
  • the first mobile phone 100 may send the first relative position information to the cloud server 300 in response to the passenger's confirmation operation on the confirmation control 103 .
  • the cloud server 300 sends the first relative location information to the second mobile phone 200 . It can be understood that the second mobile phone 200 will receive the first relative position information only after the passenger allows the first relative position information to be shared with the second mobile phone 200, so that the passenger's location privacy can be protected.
  • the driver's second mobile phone 200 can use the GPS position information of the second mobile phone 200 and the distance between the vehicle 400 and the first mobile phone 100 The distance and the propagation direction of the UWB signal generate the second relative position information 204 of the first mobile phone 100 and the vehicle 400 . As shown in (a) in FIG.
  • the second mobile phone 200 can display a first positioning mark 801 and a third positioning mark 803 on the map of the second interface 201, wherein the first positioning mark 801 is used to mark the position of the vehicle 400
  • the third location identifier 803 is used to indicate the relative locations of the first mobile phone 100 and the vehicle 400 on the map.
  • the second interface 201 of the second mobile phone 200 can also display the second relative position information 204 of the first mobile phone 100 and the vehicle 400 .
  • the second relative position information 204 includes the text information of "15.61 meters from the passenger in the front right".
  • the second relative position information 204 is used to indicate the distance and direction between the first mobile phone 100 and the vehicle 400 , that is, the distance and direction between the passenger and the driver. In this way, the driver can more accurately perceive the distance and direction (eg, 15.61 meters) between the first mobile phone 100 and the vehicle 400 through the second relative position information 204 .
  • the second relative position information 204 may further include: an arrow pointing from the first positioning mark 801 to the third positioning mark 803 . Understandably, the arrow is used to indicate the direction of the first mobile phone 100 .
  • the driver can also perceive the direction and distance of the first mobile phone 100 relative to the vehicle 400 through the third positioning mark 803 , the first positioning mark 801 and the arrow indicating the direction of the first mobile phone 100 . In this way, the driver can perceive the position of the first mobile phone 100 relative to himself (that is, the position of the passenger relative to the driver) more conveniently, so as to reasonably plan a route to find the passenger.
  • the vehicle 400 no longer moves, but waits for passengers to board.
  • the content of the second relative position information 204 can be updated to: "5.61 meters away from the passenger on the right", and the first positioning mark 801 of the vehicle 400 is also located at the starting point of travel "the intersection of Binhe First Street". In this way, the driver can more accurately perceive the distance and direction between the vehicle 400 and the first mobile phone 100 (such as 5.61 meters to the right) through the second relative position information 204 while the passenger is moving.
  • the second relative position information 204 includes an arrow indicating the direction of the first mobile phone 100
  • the direction of the above arrow will be adjusted according to the change of the relative distance and direction between the first mobile phone 100 and the vehicle 400 , to judge whether the passenger is heading towards his position. In this way, the driver can continue to wait patiently for the arrival of the passenger, without the need to call the passenger to urge the passenger to leave or ask the passenger's location.
  • the second mobile phone 200 displays a third prompt message 205 "The passenger has confirmed boarding" on the second interface 201 . Understandably, the third prompt message 205 is used to indicate to confirm that the passenger has boarded the vehicle.
  • the driver can perceive that the passenger has got on the bus correctly through the third prompt message 205, and there is no need to ask the tail number of the passenger's mobile phone number to judge whether the passenger got on the bus correctly, which reduces the taxi process link between the passenger and the driver.
  • passengers and drivers do not need to check the last number of the mobile phone number to determine whether they are taking the correct vehicle, which provides more convenience for people with language barriers.
  • the second mobile phone 200 can also notify the positioning device 700 on the vehicle 400 to stop transmitting UWB signals when detecting that the distance between the vehicle 400 and the first mobile phone 100 has not changed within a preset period of time (such as 5s), In order to reduce the power consumption of the positioning device 700 .
  • a preset period of time such as 5s
  • FIG. 13 is a schematic flow chart of a positioning method provided by an embodiment of the present application. As shown in Figure 13, the positioning method may include the following steps:
  • the first mobile phone 100 responds to the passenger's trigger operation on the icon that triggers the online car-hailing application on the main interface of the system, and displays the dispatch interface of the online car-hailing application.
  • the dispatch interface includes an order control.
  • the first mobile phone 100 may receive the travel starting point "Binhe 1st Street Intersection” and the travel destination "Xueyuan Road Bus Station” entered by the passenger on the dispatch interface.
  • “the intersection of Binhe First Street” can also be replaced by other travel starting points
  • “Xueyuan Road Bus Station” can also be replaced by other travel destinations, which are not limited here.
  • S1402 The first mobile phone 100 sends an order request to the cloud server 200 in response to the passenger's trigger operation on the order control of the dispatch interface.
  • S1403 The cloud server 200 sends an order request to the second mobile phone 200.
  • the order request carries the passenger's GPS location information, the travel starting point "Binhe 1st Street Intersection", the travel destination "Xueyuan Road Bus Station", and the passenger's personal information (such as identity information, name, etc.).
  • the order receiving interface of the second mobile phone 200 displays the travel starting point "Binhe 1st Street Intersection", the travel destination "Xueyuan Road Bus Station", and some personal information used to confirm passengers.
  • the second mobile phone 200 may send an order receiving instruction associated with the order request to the cloud server 300 in response to the driver's trigger operation on the order receiving control on the order receiving interface of the second mobile phone 200 .
  • the order receiving instruction carries the driver's GPS location information, the driver's personal information (such as identity information, name, etc.) and the like. Furthermore, the cloud server 300 generates verification information according to the order receiving instruction and the order request. Among them, the verification information includes the verification identification (such as the order number), the GPS location information of the first mobile phone 100, the travel starting point "Binhe Yijie intersection", the travel destination "Xueyuan Road Bus Station", and the passenger's personal information (such as identity information, name, etc.) etc.), the GPS location information of the second mobile phone 200, and the driver's personal information (such as identity information, name, etc.) and the like.
  • the verification information includes the verification identification (such as the order number), the GPS location information of the first mobile phone 100, the travel starting point "Binhe Yijie intersection", the travel destination "Xueyuan Road Bus Station", and the passenger's personal information (such as identity information, name, etc.) etc.), the GPS location information of the second mobile phone 200,
  • S1405 The cloud server 300 generates verification information according to the order receiving instruction and the order request.
  • S1406 The first mobile phone 100 and the second mobile phone 200 receive verification information from the cloud server 300 .
  • the first mobile phone 100 and the second mobile phone 200 may also receive a key for encrypting the positioning signal from the cloud server 300 .
  • the first interface 101 of the first mobile phone 100 displays a map
  • the map includes a first positioning mark 801 , a second positioning mark 802 , and a distance prompt 104 .
  • the distance prompt 104 is used to indicate the distance between the GPS position information of the vehicle 400 on the map and the GPS position information of the travel starting point.
  • the first positioning mark 801 is used to mark the GPS position information of the vehicle 400 on the map
  • the second positioning mark 802 is used to mark the GPS position information of the travel starting point "Binhe First Street Intersection" on the map.
  • S1408 The second mobile phone 200 displays the second interface 102 .
  • a map is also displayed on the second interface 201 , and the map includes a first positioning mark 801 , a second positioning mark 802 and a distance prompt 202 .
  • the distance prompt 202 is used to indicate the distance between the GPS location information of the vehicle 400 on the map and the GPS location information of the travel starting point.
  • the first positioning mark 801 is used to mark the GPS position information of the vehicle 400 on the map
  • the second positioning mark 802 is used to mark the GPS position information of the travel starting point "Binhe First Street Intersection" on the map.
  • the first mobile phone 100 may receive the UWB signal transmitted by the positioning device 700, and record a second moment when the UWB signal is received.
  • the UWB signal carries the first moment when the positioning signal is transmitted.
  • the device for transmitting UWB signals may also be replaced by: the second mobile phone 200 integrated with the function of transmitting UWB signals.
  • the first mobile phone 100 determines the distance between the vehicle 400 where the positioning device 700 is located and the first mobile phone 100 according to the first moment and the second moment, and determines the propagation direction of the UWB signal.
  • the following describes how the first mobile phone 100 guides passengers to find the vehicle 400 according to the first relative position information in conjunction with S1412.
  • the first mobile phone 100 may display the third location mark 803 on the map on the first interface 101 .
  • the third location identifier 803 is used to mark the GPS location information of the first mobile phone 100 , and the first mobile phone 100 updates the first location identifier in the first interface 101 according to the first relative location information.
  • the first relative position information is used to indicate the distance and direction between the vehicle 400 and the first mobile phone 100 .
  • the passenger can more accurately perceive the distance and direction between the vehicle 400 and the first mobile phone 100 through the first relative position information.
  • the first relative position information may also include an updated first location mark 801 of the vehicle 400 on the map and an arrow used to indicate the direction of the vehicle 400.
  • passengers may also pass the third location mark 803 and the updated The relative position of the first positioning mark 801 and the arrow used to indicate the direction of the vehicle 400 determine the direction and distance of the vehicle 400 relative to the first mobile phone 100 .
  • the second mobile phone 200 sends a first request to the first mobile phone 100 in response to the driver's trigger operation on the first control 203 of the second interface 201 .
  • the first request is used to indicate to request the first relative location information of the first mobile phone 100 .
  • the first mobile phone 100 displays the second prompt information 102 on the first interface 101 in response to the first request.
  • the second prompt information 102 is used for instructing to share the first relative position information with the second mobile phone 200 .
  • the first mobile phone 100 may send the first relative position information to the second mobile phone 200 in response to the passenger's confirmation operation on the second prompt information 102 .
  • the second mobile phone 200 generates second relative position information according to the first relative position information and the GPS position information of the second mobile phone 200 .
  • the second mobile phone 200 displays the first positioning mark 801 and the second relative position information on the map in the second interface 201 .
  • the first location mark 801 is used to indicate the GPS location information of the vehicle 400 on the map.
  • the second relative position information is used to indicate the distance and direction between the first mobile phone 100 and the vehicle 400 .
  • the driver can more accurately perceive the distance (eg, 15.61 meters) and direction between the first mobile phone 100 and the vehicle 400 through the second relative position information.
  • the second interface 201 may also display a third positioning mark 803, which is used to indicate the relative positions of the first mobile phone 100 and the vehicle 400 on the map.
  • the second relative position information may also include: a fifth positioning mark 1201 and an arrow for indicating the direction of the first mobile phone 100, and the driver may also pass the third positioning mark 803 and the fifth positioning mark 1201, and an arrow for indicating the direction of the first An arrow in the direction of the mobile phone 100 determines the distance and direction of the first mobile phone 100 relative to the vehicle 400 . In this way, the driver can more accurately determine the position of the first mobile phone 100 relative to himself, so as to plan a reasonable route to find passengers.
  • FIG. 14 is an interactive schematic diagram of a positioning method provided by an embodiment of the present application.
  • the interactive schematic diagram of the positioning method can summarize the above-mentioned methods in FIGS. 4-13 .
  • the method provided by this application includes:
  • Step 1 The cloud server 300 generates a key and a verification ID.
  • Step 2 The cloud server 300 sends the key and the verification ID to the first mobile phone 100 and the second mobile phone 200 .
  • Step 3 The second mobile phone 200 transmits the encrypted UWB signal when the distance between the first mobile phone 100 and the second mobile phone 200 is less than the distance threshold.
  • the UWB signal carries a key and a verification identifier.
  • Step 4 The first mobile phone 100 receives and decrypts the UWB signal from the second mobile phone 200, and obtains the first relative position information of the mobile phone 100 and the mobile phone 200 according to the UWB signal.
  • Step 5 Navigate according to the first relative position information and send the first relative position information to the second mobile phone 200 .
  • Step 6 The second mobile phone 200 navigates according to the first relative position information.
  • Step 7 When the distance between the first mobile phone 100 and the second mobile phone 200 is less than the distance threshold and does not change within a preset time, the first mobile phone 100 confirms getting in the car.
  • Step 8 When the distance between the first mobile phone 100 and the second mobile phone 200 is less than the distance threshold and does not change within a preset time, the second mobile phone 200 confirms that the passenger gets on the bus.
  • Step 9 The cloud server receives the confirmation boarding instructions from the first mobile phone 100 and the second mobile phone 200 .
  • the vehicle 400 is determined to have reached the end of travel through the GPS location information, and the first mobile phone 100 detects that the distance between the first mobile phone 100 and the vehicle 400 is greater than a preset distance threshold (such as 1m, 2m, etc.)
  • the first mobile phone 100 sends a payment request to the cloud server 300, and the cloud service 300 confirms that the payment is completed, and sends the payment content to the second mobile phone 200 (not shown in FIG. 15 ), which can confirm the completion of the order and payment more accurately without additional operations. operate.
  • a preset distance threshold such as 1m, 2m, etc.
  • the trigger operation mentioned may include: click operation, long press operation, and gesture trigger operation, etc., which are not limited here.
  • the positioning signal is a UWB signal as an example for description. Understandably, the UWB signal can also be replaced by an ultrasonic signal.
  • the Bluetooth module in the positioning device is replaced with an ultrasonic transceiver module, and the first mobile phone 100 is also provided with an ultrasonic transceiver module. In this way, the positioning device can realize transmitting ultrasonic signals, and the first mobile phone 100 can realize receiving ultrasonic signals.
  • the positioning device 700 is located in the vehicle.
  • the second mobile phone 200 may also be integrated with a function of transmitting UWB signals or ultrasonic signals, so as to realize the same function as that of the positioning device 700 .
  • the method of calculating the distance between the first mobile phone 100 and the vehicle 400 according to the UWB signal can also be replaced by: after detecting the GPS positioning information of the vehicle 400 and the starting point of the trip, If the distance between the GPS positioning information is less than the preset distance threshold, the first mobile phone 100 is notified to transmit the encrypted UWB signal 1 .
  • the first mobile phone 100 records the time of transmission Ta.
  • the positioning device 700 receives the UWB signal 1 transmitted by the first mobile phone 100, and transmits the UWB signal 2 with an encrypted time difference T0, wherein the time difference T0 is the time difference when the UWB signal 1 is transmitted from the first mobile phone 100 to the positioning device 700.
  • an apparatus 1500 provided by this application includes a communication unit 1501 , a display unit 1502 and a processing unit 1503 . in,
  • the communication unit 1501 is configured to acquire the position information of the second terminal obtained by using the first positioning method.
  • the display unit 1502 is configured to display the first interface.
  • the first interface includes a map, a first positioning mark and a second positioning mark
  • the first positioning mark is used to mark the location information of the second terminal on the map
  • the second positioning mark is used to mark the position information of the target position on the map
  • the target location is obtained by the first terminal based on user operations.
  • the processing unit 1503 is configured to use a second positioning method to perform positioning with the second terminal when the distance between the target location and the second terminal is smaller than a preset distance threshold. Wherein, the positioning accuracy of the second positioning method is greater than that of the first positioning method.
  • the processing unit 1503 is further configured to acquire first relative position information of the first terminal and the second terminal that are positioned by using the second positioning method.
  • the first relative position information includes the distance and direction between the first terminal and the second terminal.
  • the display unit 1502 is further configured to update the first positioning identifier on the first interface according to the first relative position information.
  • the first terminal includes multiple antennas.
  • the communication unit 1501 is further configured to receive a positioning signal from the location of the second terminal when the distance between the target location and the second terminal is smaller than a preset distance threshold. Wherein, the positioning signal carries the first moment when the positioning signal is transmitted.
  • the processing unit 1503 is further configured to record the second moment when the positioning signal is received, determine the distance of the second terminal relative to the first terminal according to the first moment, the second moment, and the set signal propagation rate; and determine the distance between the second terminal and the first terminal according to the multiple antennas and the three-point positioning device 1500, determining the relative direction of the second terminal relative to the second terminal.
  • the communication unit 1501 is specifically configured to receive a positioning signal from the second terminal when the distance between the target location and the second terminal is smaller than a preset distance threshold.
  • the communication unit 1501 is specifically configured to receive a positioning signal from a positioning device when the distance between the target position and the second terminal is smaller than a preset distance threshold. Wherein, the location of the positioning device is the same as that of the second terminal.
  • the first terminal interacts with the second terminal through a cloud server.
  • the communication unit 1501 is further configured to receive verification information from the cloud server, where the verification information includes a verification ID and a key.
  • the communication unit 1501 is specifically configured to receive a location signal from the second terminal that carries a verification identifier and is encrypted by a key at the first moment.
  • the processing unit 1503 is further configured to decrypt the first moment by the first terminal according to the key when the verification identifier from the cloud server is consistent with the verification identifier carried by the positioning signal.
  • the positioning signal is a UWB signal or an ultrasonic signal.
  • the first relative position information includes text information used to indicate the distance and direction of the second terminal relative to the first terminal.
  • the display unit 1502 is further configured to, when the distance between the second terminal and the first terminal is less than a preset distance threshold, the first terminal display the first prompt information on the first interface, The first prompt information is used to indicate that passengers have boarded the vehicle.
  • the communication unit 1501 is further configured to receive the first request from the second terminal. Wherein, the first request is used to request first relative location information of the first terminal.
  • the display unit 1502 is further configured to display second prompt information on the first interface in response to the first request. Wherein, the second prompt information is used to indicate to share the first relative position information with the second terminal.
  • the communication unit 1501 is further configured to send the first relative position information to the second terminal in response to the confirmation operation on the second prompt information.
  • FIG. 16 is a schematic diagram of a hardware structure of a first terminal and a second terminal provided in an embodiment of the present application.
  • the first terminal and the second terminal include a processor 1601, a communication line 1604 and At least one communication interface (the communication interface 1603 is used as an example in FIG. 16 for illustration).
  • the processor 1601 can be a general-purpose central processing unit (central processing unit, CPU), a microprocessor, a specific application integrated circuit (application-specific integrated circuit, ASIC), or one or more for controlling the execution of the program program of this application integrated circuit.
  • CPU central processing unit
  • ASIC application-specific integrated circuit
  • Communication lines 1604 may include circuitry that communicates information between the components described above.
  • the communication interface 1603 uses any device such as a transceiver for communicating with other devices or communication networks, such as Ethernet, wireless local area networks (wireless local area networks, WLAN) and so on.
  • a transceiver for communicating with other devices or communication networks, such as Ethernet, wireless local area networks (wireless local area networks, WLAN) and so on.
  • the first terminal and the second terminal may further include a memory 1602 .
  • the memory 1602 may be a read-only memory (ROM) or other types of static storage devices that can store static information and instructions, a random access memory (random access memory, RAM) or other types that can store information and instructions It can also be an electrically erasable programmable read-only memory (EEPROM), compact disc read-only memory (CD-ROM) or other optical disc storage, optical disc storage (including compact discs, laser discs, optical discs, digital versatile discs, Blu-ray discs, etc.), magnetic disk storage media or other magnetic storage devices, or can be used to carry or store desired program code in the form of instructions or data structures and can be programmed by a computer Any other medium accessed, but not limited to.
  • the memory may exist independently and be connected to the processor through the communication line 1604 . Memory can also be integrated with the processor.
  • the memory 1602 is used to store computer-executed instructions for implementing the solution of the present application, and the execution is controlled by the processor 1601 .
  • the processor 1601 is configured to execute computer-executed instructions stored in the memory 1602, so as to implement the positioning method performed by the first terminal or the second terminal provided in the embodiment of the present application.
  • the computer-executed instructions in the embodiment of the present application may also be referred to as application program code, which is not specifically limited in the embodiment of the present application.
  • the processor 1601 may include one or more CPUs, for example, CPU0 and CPU1 in FIG. 16 .
  • the first terminal and the second terminal may include multiple processors, for example, processor 1601 and processor 1605 in FIG. 16 .
  • processors may be a single-core (single-CPU) processor or a multi-core (multi-CPU) processor.
  • a processor herein may refer to one or more devices, circuits, and/or processing cores for processing data (eg, computer program instructions).
  • FIG. 17 is a schematic structural diagram of a chip provided by an embodiment of the present application.
  • the chip 170 includes one or more than two (including two) processors 1710 and a communication interface 1730 .
  • memory 1740 stores the following elements: executable modules or data structures, or subsets thereof, or extensions thereof.
  • the memory 1740 may include a read-only memory and a random access memory, and provides instructions and data to the processor 1710 .
  • a part of the memory 1740 may also include a non-volatile random access memory (non-volatile random access memory, NVRAM).
  • the memory 1740 , the communication interface 1730 and the memory 1740 are coupled together through the bus system 1720 .
  • the bus system 1720 may include not only a data bus, but also a power bus, a control bus, and a status signal bus.
  • the various buses are labeled bus system 1720 in FIG. 17 .
  • the method performed by the first terminal or the second terminal described in the above embodiments of the present application may be applied to the processor 1710 or implemented by the processor 1710 .
  • the processor 1710 may be an integrated circuit chip with signal processing capabilities.
  • each step of the above method may be implemented by an integrated logic circuit of hardware in the processor 1710 or instructions in the form of software.
  • the above-mentioned processor 1710 may be a general-purpose processor (for example, a microprocessor or a conventional processor), a digital signal processor (digital signal processing, DSP), an application specific integrated circuit (application specific integrated circuit, ASIC), an off-the-shelf programmable gate Array (field-programmable gate array, FPGA) or other programmable logic devices, discrete gates, transistor logic devices or discrete hardware components, the processor 1710 can implement or execute the first terminal or the second terminal disclosed in the embodiments of the present application Execution method, steps and logic block diagram.
  • DSP digital signal processing
  • ASIC application specific integrated circuit
  • FPGA field-programmable gate array
  • the steps of the method performed by the first terminal or the second terminal disclosed in the embodiments of the present application may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor.
  • the software module may be located in a mature storage medium in the field such as random access memory, read-only memory, programmable read-only memory, or electrically erasable programmable read only memory (EEPROM).
  • the storage medium is located in the memory 1740, and the processor 1710 reads the information in the memory 1740, and combines its hardware to complete the above-mentioned steps of the method executed by the first terminal or the second terminal.
  • the instructions stored in the memory for execution by the processor may be implemented in the form of computer program products.
  • the computer program product may be written in the memory in advance, or may be downloaded and installed in the memory in the form of software.
  • a computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on the computer, the processes or functions according to the embodiments of the present application will be generated in whole or in part.
  • the computer can be a general purpose computer, special purpose computer, computer network, or other programmable apparatus.
  • Computer instructions may be stored in or transmitted from one computer-readable storage medium to another computer-readable storage medium, e.g. Coaxial cable, optical fiber, digital subscriber line (digital subscriber line, DSL) or wireless (such as infrared, wireless, microwave, etc.) transmission to another website site, computer, server or data center.
  • Computer readable storage medium can be Any available media capable of being stored by a computer or a data storage device such as a server, data center, etc. integrated with one or more available media.
  • available media may include magnetic media (e.g., floppy disks, hard disks, or tapes), optical media (e.g., A digital versatile disc (digital versatile disc, DVD)), or a semiconductor medium (for example, a solid state disk (solid state disk, SSD)), etc.
  • magnetic media e.g., floppy disks, hard disks, or tapes
  • optical media e.g., A digital versatile disc (digital versatile disc, DVD)
  • a semiconductor medium for example, a solid state disk (solid state disk, SSD)
  • the embodiment of the present application also provides a computer-readable storage medium.
  • the methods performed by the first terminal or the second terminal described in the foregoing embodiments may be implemented in whole or in part by software, hardware, firmware or any combination thereof.
  • Computer-readable media may include computer storage media and communication media, and may include any medium that can transfer a computer program from one place to another.
  • a storage media may be any target media that can be accessed by a computer.
  • the computer-readable medium may include compact disc read-only memory (compact disc read-only memory, CD-ROM), RAM, ROM, EEPROM or other optical disc storage; the computer-readable medium may include a magnetic disk memory or other disk storage devices.
  • any connected cord is properly termed a computer-readable medium.
  • Disk and disc includes compact disc (CD), laser disc, compact disc, digital versatile disc (DVD), floppy disk and Blu-ray disc where disks usually reproduce data magnetically, while discs reproduce data optically with lasers. Reproduce data.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Radar, Positioning & Navigation (AREA)
  • Remote Sensing (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Navigation (AREA)

Abstract

The present application relates to the technical field of terminals, and provides a positioning method and apparatus. In the positioning method, when the distance between a target position and a second terminal is less than a preset distance threshold, a first terminal and the second terminal implement positioning using a second positioning method. The first terminal may use the second positioning method to obtain first relative position information of the first terminal and the second terminal obtained by positioning, the first relative position information comprising the distance and orientation of the first terminal and the second terminal. A first positioning identifier is then updated in a first interface according to the first relative position information. As the positioning precision of the second positioning method is greater than that of a first positioning method, a passenger holding the first terminal may more accurately perceive the distance and orientation between the passenger and a driver holding the second terminal.

Description

定位方法和装置Positioning method and device
本申请要求于2021年08月18日提交中国国家知识产权局、申请号为202110951404.9、申请名称为“定位方法和装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application with the application number 202110951404.9 and the application title "Positioning Method and Device" submitted to the State Intellectual Property Office of China on August 18, 2021, the entire contents of which are incorporated in this application by reference.
技术领域technical field
本申请涉及终端技术领域,尤其涉及一种定位方法和装置。The present application relates to the technical field of terminals, and in particular to a positioning method and device.
背景技术Background technique
目前,随着互联网技术的发展,网约车已经成为人们交通出行的一部分。在乘客打车成功后,在乘客终端的网约车应用的显示界面上会显示司机的位置,以供乘客查阅。At present, with the development of Internet technology, online car-hailing has become a part of people's transportation. After the passenger takes a taxi successfully, the driver's location will be displayed on the display interface of the online car-hailing application of the passenger terminal for the passenger to check.
通常情况下,司机的位置是司机终端通过GPS定位、基站定位或蓝牙定位等10米级的定位技术获取的。Usually, the driver's location is obtained by the driver's terminal through 10-meter-level positioning technologies such as GPS positioning, base station positioning, or Bluetooth positioning.
然而,通过上述方法获取到的司机的位置的精度低,造成乘客无法感知到自己相对于司机的精确位置。However, the accuracy of the driver's position acquired by the above method is low, causing the passenger to be unable to perceive his precise position relative to the driver.
发明内容Contents of the invention
本申请提供一种定位方法和装置,可以采集乘客的第一终端与司机的第二终端的第一相对位置信息,进而使得乘客可以感知到自己相对于司机的精确位置。The present application provides a positioning method and device, which can collect the first relative position information of the passenger's first terminal and the driver's second terminal, so that the passenger can perceive the precise position of himself relative to the driver.
第一方面,本申请提供一种定位方法,应用于通信系统,通信系统包括第一终端和第二终端。本申请提供的方法包括:第一终端获取采用第一定位方法得到的第二终端的位置信息。第一终端显示第一界面。其中,第一界面包括地图、第一定位标识和第二定位标识,第一定位标识用于在地图中标记第二终端的位置信息,第二定位标识用于在地图上标记目标位置的位置信息,目标位置为第一终端基于用户操作得到的。在目标位置与第二终端之间的距离,小于预设的距离阈值的情况下,第一终端与第二终端之间采用第二定位方法进行定位。其中,第二定位方法的定位精度大于第一定位方法的定位精度。第一终端获取采用第二定位方法定位得到的第一终端与第二终端的第一相对位置信息,第一相对位置信息包括第一终端与第二终端的距离和方向。第一终端根据第一相对位置信息,在第一界面中更新第一定位标识。In a first aspect, the present application provides a positioning method applied to a communication system, where the communication system includes a first terminal and a second terminal. The method provided in the present application includes: the first terminal acquires the position information of the second terminal obtained by using the first positioning method. The first terminal displays the first interface. Wherein, the first interface includes a map, a first positioning mark and a second positioning mark, the first positioning mark is used to mark the location information of the second terminal on the map, and the second positioning mark is used to mark the position information of the target position on the map , the target location is obtained by the first terminal based on user operations. If the distance between the target location and the second terminal is smaller than the preset distance threshold, the first terminal and the second terminal are positioned using the second positioning method. Wherein, the positioning accuracy of the second positioning method is greater than that of the first positioning method. The first terminal acquires first relative position information of the first terminal and the second terminal obtained by positioning using the second positioning method, where the first relative position information includes a distance and a direction between the first terminal and the second terminal. The first terminal updates the first positioning identifier on the first interface according to the first relative position information.
本申请提供的定位方法,在目标位置与第二终端之间的距离,小于预设的距离阈值的情况下,第一终端与第二终端之间采用第二定位方法进行定位。第一终端可以获取采用第二定位方法定位得到的第一终端与第二终端的第一相对位置信息,第一相对位置信息包括第一终端与第二终端的距离和方向。进而,根据第一相对位置信息,在第一界面中更新第一定位标识。由于第二定位方法的定位精度大于第一定位方法的定位精度,可以使得持有第一终端的乘客更精确的感知到持有第二终端的司机与自己的距离和方向。In the positioning method provided by the present application, when the distance between the target location and the second terminal is smaller than a preset distance threshold, the first terminal and the second terminal use the second positioning method for positioning. The first terminal may acquire first relative position information of the first terminal and the second terminal obtained by positioning using the second positioning method, where the first relative position information includes a distance and a direction between the first terminal and the second terminal. Furthermore, the first positioning identifier is updated on the first interface according to the first relative position information. Since the positioning accuracy of the second positioning method is greater than that of the first positioning method, the passenger holding the first terminal can more accurately perceive the distance and direction between the driver holding the second terminal and himself.
在一种可选地实施方式中,第一终端包括多个天线,在目标位置与第二终端之间的距 离,小于预设的距离阈值的情况下,第一终端与第二终端之间采用第二定位方法进行定位,包括:在目标位置与第二终端之间的距离,小于预设的距离阈值的情况下,第一终端接收来自第二终端的位置的定位信号。其中,定位信号携带有定位信号被发射的第一时刻。第一终端记录接收到定位信号的第二时刻。第一终端根据第一时刻、第二时刻以及设定的信号传播速率,确定第二终端相对于第一终端的距离。第一终端根据多个天线和三点定位方法,确定第二终端相对于第二终端的相对方向。In an optional implementation manner, the first terminal includes multiple antennas, and when the distance between the target location and the second terminal is smaller than a preset distance threshold, the first terminal and the second terminal use The second positioning method performs positioning, including: when the distance between the target position and the second terminal is smaller than a preset distance threshold, the first terminal receives a positioning signal from the position of the second terminal. Wherein, the positioning signal carries the first moment when the positioning signal is transmitted. The first terminal records the second moment when the positioning signal is received. The first terminal determines the distance of the second terminal relative to the first terminal according to the first moment, the second moment and the set signal propagation rate. The first terminal determines the relative direction of the second terminal relative to the second terminal according to the multiple antennas and the three-point positioning method.
这样,可以精确地计算出第二终端相对于第一终端的距离和方向。In this way, the distance and direction of the second terminal relative to the first terminal can be accurately calculated.
进一步地,在目标位置与第二终端之间的距离,小于预设的距离阈值的情况下,第一终端接收来自第二终端的位置的定位信号,包括:第二终端在检测到目标位置与第二终端之间的距离,小于预设的距离阈值的情况下,则第二终端发射定位信号。第一终端接收来自第二终端的定位信号。Further, when the distance between the target position and the second terminal is less than the preset distance threshold, the first terminal receives the positioning signal from the position of the second terminal, including: the second terminal detects the target position and If the distance between the second terminals is less than the preset distance threshold, the second terminal transmits a positioning signal. The first terminal receives the positioning signal from the second terminal.
这样,可以使用第二终端可以发射定位信号,成本低。In this way, the second terminal can be used to transmit positioning signals, and the cost is low.
或者,进一步地,在目标位置与第二终端之间的距离,小于预设的距离阈值的情况下,第一终端接收来自第二终端的位置的定位信号,包括:第二终端在检测到目标位置与第二终端之间的距离,小于预设的距离阈值的情况下,通知定位设备发射定位信号,其中,定位设备与第二终端的位置相同。第一终端接收来自定位设备的定位信号。Or, further, when the distance between the target position and the second terminal is less than the preset distance threshold, the first terminal receives the positioning signal from the position of the second terminal, including: the second terminal detects the target If the distance between the location and the second terminal is less than a preset distance threshold, the positioning device is notified to transmit a positioning signal, where the location of the positioning device is the same as that of the second terminal. The first terminal receives a positioning signal from a positioning device.
这样,可以使用定位设备发射定位信号,减少了第二终端的功耗。In this way, the positioning device can be used to transmit the positioning signal, which reduces the power consumption of the second terminal.
在一种可选地实施方式中,第一终端和第二终端通过云服务器交互,在第一终端显示第一界面之前,本申请提供的方法还包括:第一终端和第二终端接收来自云服务器的验证信息,其中,验证信息包括验证标识和密钥。第一终端接收来自第二终端的位置的定位信号,包括:第一终端接收来自第二终端的位置且携带有验证标识、被密钥加密第一时刻的定位信号。在第一终端根据第一时刻、第二时刻以及设定的信号传播速率,确定第二终端相对于第一终端的距离之前,本申请提供的方法还包括:在来自云服务器的验证标识与定位信号携带的验证标识一致的情况下,第一终端根据密钥解密第一时刻。In an optional implementation manner, the first terminal and the second terminal interact through a cloud server, and before the first terminal displays the first interface, the method provided by this application further includes: the first terminal and the second terminal receive information from the cloud Verification information of the server, wherein the verification information includes a verification ID and a key. The first terminal receiving the positioning signal from the location of the second terminal includes: the first terminal receiving the positioning signal from the location of the second terminal, carrying a verification identifier, and encrypted by a key at the first moment. Before the first terminal determines the distance of the second terminal relative to the first terminal according to the first moment, the second moment and the set signal propagation rate, the method provided by this application further includes: verifying the identification and positioning from the cloud server If the verification identifiers carried in the signals are consistent, the first terminal decrypts the first moment according to the key.
这样,可以提高定位信号中的第一时刻在传播过程中不会被他人获取,即保证了第一相对位置信息的私密性和安全性。In this way, it can be improved that the first moment in the positioning signal will not be obtained by others during the propagation process, that is, the privacy and security of the first relative position information can be guaranteed.
在一种可选地实施方式中,定位信号为UWB信号或超声波信号。In an optional implementation manner, the positioning signal is a UWB signal or an ultrasonic signal.
在一种可选地实施方式中,第一相对位置信息包括用于指示第二终端相对于第一终端的距离和方向的文字信息。In an optional implementation manner, the first relative position information includes text information used to indicate the distance and direction of the second terminal relative to the first terminal.
这样,用户可以通过第一相对位置信息更方便的感知到自己距离司机的距离和方向。In this way, the user can perceive the distance and direction from the driver more conveniently through the first relative position information.
进一步地,第一终端在第一界面的地图上还显示有第三定位标识,其中,第三定位标识用于标记通过第一定位方法得到的第一终端的位置信息,第一定位标识的内容更新为指示第二终端与第一终端在地图上的相对位置。第一相对位置信息还包括:从第三定位标识指向更新后的第一定位标识的箭头。Further, the first terminal also displays a third positioning mark on the map of the first interface, wherein the third positioning mark is used to mark the position information of the first terminal obtained through the first positioning method, and the content of the first positioning mark It is updated to indicate the relative positions of the second terminal and the first terminal on the map. The first relative position information further includes: an arrow pointing from the third positioning mark to the updated first positioning mark.
这样,用户可以通过第一定位标识、第三定位标识以及箭头,更方便的感知到自己距离司机的距离和方向。In this way, the user can perceive the distance and direction from the driver more conveniently through the first positioning mark, the third positioning mark and the arrow.
更进一步地,文字信息的内容随着第一相对位置信息的变化而更新。Furthermore, the content of the text information is updated along with the change of the first relative position information.
进一步地,当第二终端与第一终端的距离小于预设的距离阈值的情况下,第一终端在第一界面显示第一提示信息,第一提示信息用于指示乘客已上车。Further, when the distance between the second terminal and the first terminal is less than a preset distance threshold, the first terminal displays first prompt information on the first interface, and the first prompt information is used to indicate that passengers have boarded the vehicle.
这样,持有第一终端的乘客可以通过第一提示信息感知到,自己已经正确上车。In this way, the passenger who holds the first terminal can perceive through the first prompt information that he has got on the bus correctly.
在一种可选地实施方式中,本申请提供的方法还包括:第二终端显示第二界面,第二界面包括第一控件和第三定位标识。其中,第三定位标识用于标记通过第一定位方法得到的第一终端的位置信息。第二终端响应于对第一控件的触发操作,向第一终端发送第一请求。其中,第一请求用于请求第一终端的第一相对位置信息。第一终端响应于第一请求,在第一界面显示第二提示信息。其中,第二提示信息用于指示向第二终端共享第一相对位置信息。第一终端响应于对第二提示信息的确认操作,向第二终端发送第一相对位置信息。第二终端根据第一相对位置信息和第二终端采用第一定位方法得到的位置信息,生成第一终端与第二终端的第二相对位置信息。第二终端根据第二相对位置信息,在第二界面中更新第三定位标识。In an optional implementation manner, the method provided in the present application further includes: the second terminal displays a second interface, and the second interface includes the first control and the third positioning mark. Wherein, the third positioning identifier is used to mark the position information of the first terminal obtained through the first positioning method. The second terminal sends the first request to the first terminal in response to the trigger operation on the first control. Wherein, the first request is used to request first relative location information of the first terminal. In response to the first request, the first terminal displays second prompt information on the first interface. Wherein, the second prompt information is used to indicate to share the first relative position information with the second terminal. The first terminal sends the first relative position information to the second terminal in response to the confirmation operation on the second prompt information. The second terminal generates second relative position information of the first terminal and the second terminal according to the first relative position information and the position information obtained by the second terminal using the first positioning method. The second terminal updates the third positioning identifier on the second interface according to the second relative position information.
这样,使得持有第二终端的司机也可以通过第二相对位置信息,精确的感知到乘客相对于自己的距离和方向。In this way, the driver holding the second terminal can accurately perceive the distance and direction of the passenger relative to himself through the second relative position information.
进一步地,第二相对位置信息包括用于指示第一终端相对于第二终端的距离和方向的文字信息。Further, the second relative position information includes text information for indicating the distance and direction of the first terminal relative to the second terminal.
这样,持有第二终端的司机可以通过文字信息,更方便的感知到乘客相对于自己的距离和方向。In this way, the driver holding the second terminal can more conveniently perceive the distance and direction of the passenger relative to himself through text messages.
更进一步地,第二界面还显示有第一定位标识和第三定位标识,其中,第三定位标识用于指示第一终端与第二终端在地图上的相对位置,第二相对位置信息还包括:从第一定位标识指向第三定位标识的箭头。Furthermore, the second interface also displays a first positioning mark and a third positioning mark, wherein the third positioning mark is used to indicate the relative position of the first terminal and the second terminal on the map, and the second relative position information also includes : An arrow pointing from the first positioning mark to the third positioning mark.
这样,持有第二终端的司机还可以通过第一定位标识、第三定位标识以及箭头,更方便的感知到乘客相对于自己的距离和方向。In this way, the driver holding the second terminal can also more conveniently perceive the distance and direction of the passenger relative to himself through the first positioning mark, the third positioning mark and the arrow.
进一步地,当第一终端与第二终端的距离小于预设的距离阈值的情况下,第二终端在第二界面显示第三提示信息,第三提示信息用于指示乘客已上车。Further, when the distance between the first terminal and the second terminal is less than the preset distance threshold, the second terminal displays third prompt information on the second interface, and the third prompt information is used to indicate that passengers have boarded the vehicle.
这样,持有第二终端的司机可以通过第三提示信息感知到,乘客已经正确上车。In this way, the driver holding the second terminal can perceive through the third prompt information that the passenger has got on the bus correctly.
第二方面,本申请还提供一种定位装置,应用于第一终端,本申请提供的装置包括:In the second aspect, the present application also provides a positioning device, which is applied to the first terminal, and the device provided in the present application includes:
通信单元,用于获取采用第一定位方法得到的第二终端的位置信息。显示单元,用于显示第一界面。其中,第一界面包括地图、第一定位标识和第二定位标识,第一定位标识用于在地图中标记第二终端的位置信息,第二定位标识用于在地图上标记目标位置的位置信息,目标位置为第一终端基于用户操作得到的。处理单元,用于在目标位置与第二终端之间的距离,小于预设的距离阈值的情况下,与第二终端之间采用第二定位方法进行定位。其中,第二定位方法的定位精度大于第一定位方法的定位精度。处理单元,还用于获取采用第二定位方法定位得到的第一终端与第二终端的第一相对位置信息。其中,第一相对位置信息包括第一终端与第二终端的距离和方向。显示单元,还用于根据第一相对位置信息,在第一界面中更新第一定位标识。A communication unit, configured to acquire the position information of the second terminal obtained by using the first positioning method. A display unit, configured to display the first interface. Wherein, the first interface includes a map, a first positioning mark and a second positioning mark, the first positioning mark is used to mark the location information of the second terminal on the map, and the second positioning mark is used to mark the position information of the target position on the map , the target location is obtained by the first terminal based on user operations. The processing unit is configured to use the second positioning method to perform positioning with the second terminal when the distance between the target position and the second terminal is less than a preset distance threshold. Wherein, the positioning accuracy of the second positioning method is greater than that of the first positioning method. The processing unit is further configured to acquire first relative position information of the first terminal and the second terminal obtained by positioning using the second positioning method. Wherein, the first relative position information includes the distance and direction between the first terminal and the second terminal. The display unit is further configured to update the first positioning mark on the first interface according to the first relative position information.
在一种可选地实施方式中,第一终端包括多个天线。通信单元,还用于在目标位置与第二终端之间的距离,小于预设的距离阈值的情况下,接收来自第二终端的位置的定位信号。其中,定位信号携带有定位信号被发射的第一时刻。处理单元,还用于记录接收到定位信号的第二时刻,根据第一时刻、第二时刻以及设定的信号传播速率,确定第二终端相对于第一终端的距离;以及根据多个天线和三点定位装置,确定第二终端相对于第二终端 的相对方向。In an optional implementation manner, the first terminal includes multiple antennas. The communication unit is further configured to receive a positioning signal from the location of the second terminal when the distance between the target location and the second terminal is smaller than a preset distance threshold. Wherein, the positioning signal carries the first moment when the positioning signal is transmitted. The processing unit is further configured to record the second moment when the positioning signal is received, and determine the distance of the second terminal relative to the first terminal according to the first moment, the second moment and the set signal propagation rate; and according to the multiple antennas and The three-point positioning device determines the relative direction of the second terminal relative to the second terminal.
进一步地,通信单元,具体用于在目标位置与第二终端之间的距离,小于预设的距离阈值的情况下,则接收来自第二终端的定位信号。Further, the communication unit is specifically configured to receive a positioning signal from the second terminal when the distance between the target location and the second terminal is less than a preset distance threshold.
或者,进一步地,通信单元,具体用于在目标位置与第二终端之间的距离,小于预设的距离阈值的情况下,接收来自定位设备的定位信号。其中,定位设备与第二终端的位置相同。Or, further, the communication unit is specifically configured to receive a positioning signal from the positioning device when the distance between the target position and the second terminal is smaller than a preset distance threshold. Wherein, the location of the positioning device is the same as that of the second terminal.
在一种可选地实施方式中,第一终端和第二终端通过云服务器交互。通信单元,还用于接收来自云服务器的验证信息,其中,验证信息包括验证标识和密钥。通信单元,具体用于接收来自第二终端的位置且携带有验证标识、被密钥加密第一时刻的定位信号。处理单元,还用于在来自云服务器的验证标识与定位信号携带的验证标识一致的情况下,第一终端根据密钥解密第一时刻。In an optional implementation manner, the first terminal interacts with the second terminal through a cloud server. The communication unit is further configured to receive verification information from the cloud server, where the verification information includes a verification ID and a key. The communication unit is specifically configured to receive a location signal from the second terminal, which carries a verification identifier and is encrypted by a key at the first moment. The processing unit is further configured to decrypt the first moment by the first terminal according to the key when the verification identifier from the cloud server is consistent with the verification identifier carried by the positioning signal.
在一种可选地实施方式中,定位信号为UWB信号或超声波信号。In an optional implementation manner, the positioning signal is a UWB signal or an ultrasonic signal.
在一种可选地实施方式中,第一相对位置信息包括用于指示第二终端相对于第一终端的距离和方向的文字信息。In an optional implementation manner, the first relative position information includes text information used to indicate the distance and direction of the second terminal relative to the first terminal.
在一种可选地实施方式中,显示单元,还用于当第二终端与第一终端的距离小于预设的距离阈值的情况下,第一终端在第一界面显示第一提示信息,第一提示信息用于指示乘客已上车。In an optional implementation manner, the display unit is further configured to, when the distance between the second terminal and the first terminal is less than a preset distance threshold, the first terminal displays the first prompt information on the first interface, and the first terminal displays the first prompt information on the first interface. A reminder message is used to indicate that the passenger has boarded the vehicle.
在一种可选地实施方式中,通信单元,还用于接收来自第二终端的第一请求。其中,第一请求用于请求第一终端的第一相对位置信息。显示单元,还用于响应于第一请求,在第一界面显示第二提示信息。其中,第二提示信息用于指示向第二终端共享第一相对位置信息。通信单元,还用于响应于对第二提示信息的确认操作,向第二终端发送第一相对位置信息。In an optional implementation manner, the communication unit is further configured to receive the first request from the second terminal. Wherein, the first request is used to request first relative location information of the first terminal. The display unit is further configured to display second prompt information on the first interface in response to the first request. Wherein, the second prompt information is used to indicate to share the first relative position information with the second terminal. The communication unit is further configured to send the first relative position information to the second terminal in response to the confirmation operation on the second prompt information.
第三方面,本申请实施例提供一种定位装置,包括处理器和存储器,存储器用于存储代码指令;处理器用于运行代码指令,以执行如第一方面或第一方面的任一种实现方式中描述的第一终端执行的定位方法。In the third aspect, the embodiment of the present application provides a positioning device, including a processor and a memory, the memory is used to store code instructions; the processor is used to run the code instructions, so as to execute any implementation method as in the first aspect or the first aspect The positioning method performed by the first terminal described in .
第四方面,本申请实施例提供一种计算机可读存储介质,计算机可读存储介质存储有指令,当指令被执行时,使得计算机执行如第一方面或第一方面的任一种实现方式中描述的第一终端执行的定位方法。In the fourth aspect, the embodiment of the present application provides a computer-readable storage medium, the computer-readable storage medium stores instructions, and when the instructions are executed, the computer executes the first aspect or any implementation manner of the first aspect. Describe the positioning method performed by the first terminal.
第五方面,一种计算机程序产品,包括计算机程序,当计算机程序被运行时,使得计算机执行如第一方面或第一方面的任一种实现方式中描述第一终端执行的定位方法。In a fifth aspect, a computer program product includes a computer program, and when the computer program is executed, the computer executes the positioning method performed by the first terminal as described in the first aspect or any implementation manner of the first aspect.
应当理解的是,本申请的第二方面至第五方面与本申请的第一方面的技术方案相对应,各方面及对应的可行实施方式所取得的有益效果相似,不再赘述。It should be understood that the second aspect to the fifth aspect of the present application correspond to the technical solution of the first aspect of the present application, and the advantageous effects obtained by each aspect and the corresponding feasible implementation manners are similar, so details are not repeated here.
附图说明Description of drawings
图1为第二终端B向第一终端A发送第二终端B的GPS位置信息的交互示意图;FIG. 1 is an interactive schematic diagram of a second terminal B sending GPS location information of a second terminal B to a first terminal A;
图2为本申请实施例提供的第一终端和第二终端的硬件系统架构示意图;FIG. 2 is a schematic diagram of a hardware system architecture of a first terminal and a second terminal provided in an embodiment of the present application;
图3为本申请实施例提供的第一手机100、云服务器300、第二手机200以及车辆400的定位设备之间的交互示意图;FIG. 3 is a schematic diagram of interaction between the first mobile phone 100, the cloud server 300, the second mobile phone 200, and the positioning device of the vehicle 400 provided by the embodiment of the present application;
图4为本申请实施例提供的第一手机100、云服务器300、以及第二手机200完成网 约车的下单流程的交互示意图;Fig. 4 is the first mobile phone 100 provided by the embodiment of the present application, the cloud server 300, and the second mobile phone 200 complete the interactive schematic diagram of the order process of car-hailing online;
图5为本申请实施例提供的云服务器300分别向第一手机100和车辆400的定位设备下发密钥和验证信息的交互示意图;FIG. 5 is a schematic diagram of the interaction between the cloud server 300 and the positioning devices of the first mobile phone 100 and the vehicle 400 respectively provided by the embodiment of the present application;
图6为本申请实施例提供的定位设备700的结构框图;FIG. 6 is a structural block diagram of a positioning device 700 provided in an embodiment of the present application;
图7为本申请实施例提供的第一手机100的第一界面的示意图;FIG. 7 is a schematic diagram of the first interface of the first mobile phone 100 provided by the embodiment of the present application;
图8为本申请实施例提供的第二手机200的第二界面的示意图;FIG. 8 is a schematic diagram of a second interface of a second mobile phone 200 provided in an embodiment of the present application;
图9为本申请实施例提供的第一手机100接收来自车辆400的定位设备的UWB信号的场景示意图;FIG. 9 is a schematic diagram of a scene where the first mobile phone 100 receives a UWB signal from a positioning device of a vehicle 400 according to an embodiment of the present application;
图10为本申请实施例提供的第一手机100根据第一相对位置信息指引乘客正确上车的界面示意图;FIG. 10 is a schematic diagram of the interface of the first mobile phone 100 guiding passengers to get on the bus correctly according to the first relative position information provided by the embodiment of the present application;
图11为本申请实施例提供的第一手机100共享第一相对位置信息到第二手机200的交互示意图;FIG. 11 is a schematic diagram of the interaction of the first mobile phone 100 sharing the first relative position information to the second mobile phone 200 provided by the embodiment of the present application;
图12为本申请实施例提供的第二手机200根据第二相对位置信息指引司机正确接到乘客的界面示意图;FIG. 12 is a schematic diagram of the interface of the second mobile phone 200 guiding the driver to pick up the passenger correctly according to the second relative position information provided by the embodiment of the present application;
图13为本申请实施例提供的定位方法的流程图;FIG. 13 is a flow chart of the positioning method provided by the embodiment of the present application;
图14为本申请实施例提供的定位方法的交互示意图;FIG. 14 is an interactive schematic diagram of the positioning method provided by the embodiment of the present application;
图15为本申请实施例提供的定位装置1500的结构框图;FIG. 15 is a structural block diagram of a positioning device 1500 provided in an embodiment of the present application;
图16为本申请实施例提供的第一终端或第二终端的硬件结构示意图;FIG. 16 is a schematic diagram of a hardware structure of a first terminal or a second terminal provided in an embodiment of the present application;
图17为本申请实施例提供的一种芯片的结构示意图。FIG. 17 is a schematic structural diagram of a chip provided by an embodiment of the present application.
具体实施方式Detailed ways
为了便于清楚描述本申请实施例的技术方案,在本申请的实施例中,采用了“第一”、“第二”等字样对功能和作用基本相同的相同项或相似项进行区分。例如,第一值和第二值仅仅是为了区分不同的值,并不对其先后顺序进行限定。本领域技术人员可以理解“第一”、“第二”等字样并不对数量和执行次序进行限定,并且“第一”、“第二”等字样也并不限定一定不同。In order to clearly describe the technical solutions of the embodiments of the present application, in the embodiments of the present application, words such as "first" and "second" are used to distinguish the same or similar items with basically the same function and effect. For example, the first value and the second value are only used to distinguish different values, and their sequence is not limited. Those skilled in the art can understand that words such as "first" and "second" do not limit the number and execution order, and words such as "first" and "second" do not necessarily limit the difference.
需要说明的是,本申请中,“示例性的”或者“例如”等词用于表示作例子、例证或说明。本申请中被描述为“示例性的”或者“例如”的任何实施例或设计方案不应被解释为比其他实施例或设计方案更优选或更具优势。确切而言,使用“示例性的”或者“例如”等词旨在以具体方式呈现相关概念。It should be noted that, in this application, words such as "exemplary" or "for example" are used as examples, illustrations or illustrations. Any embodiment or design described herein as "exemplary" or "for example" is not to be construed as preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplary" or "such as" is intended to present related concepts in a concrete manner.
本申请中,“至少一个”是指一个或者多个,“多个”是指两个或两个以上。“和/或”,描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B的情况,其中A,B可以是单数或者复数。字符“/”一般表示前后关联对象是一种“或”的关系。“以下至少一项(个)”或其类似表达,是指的这些项中的任意组合,包括单项(个)或复数项(个)的任意组合。例如,a,b,或c中的至少一项(个),可以表示:a,b,c,a-b,a-c,b-c,或a-b-c,其中a,b,c可以是单个,也可以是多个。In this application, "at least one" means one or more, and "multiple" means two or more. "And/or" describes the association relationship of associated objects, indicating that there may be three types of relationships, for example, A and/or B, which can mean: A exists alone, A and B exist simultaneously, and B exists alone, where A, B can be singular or plural. The character "/" generally indicates that the contextual objects are an "or" relationship. "At least one of the following" or similar expressions refer to any combination of these items, including any combination of single or plural items. For example, at least one item (piece) of a, b, or c can represent: a, b, c, a-b, a-c, b-c, or a-b-c, where a, b, c can be single or multiple .
目前,随着互联网技术的发展,网约车已经成为人们交通出行的一部分。例如,乘客想要从出行起点“滨河一街路口”打车到出行终点“学苑路公交站”。如图1所示,司机 在触发第二终端B接单成功后,第二终端B采集第二终端的GPS位置信息并上传到云服务器300。云服务器300向第一终端A发送第二终端B的GPS位置信息,第一终端A将第二终端B的GPS位置信息映射到地图上显示。进而,第一终端A在网约车应用的派单界面上的地图中,标识有司机的GPS位置信息,以供乘客查阅。At present, with the development of Internet technology, online car-hailing has become a part of people's transportation. For example, a passenger wants to take a taxi from the starting point of the trip "Intersection of Binhe First Street" to the destination of the trip "Xueyuan Road Bus Station". As shown in FIG. 1 , after the driver triggers the second terminal B to successfully accept the order, the second terminal B collects the GPS location information of the second terminal and uploads it to the cloud server 300 . The cloud server 300 sends the GPS location information of the second terminal B to the first terminal A, and the first terminal A maps the GPS location information of the second terminal B to a map for display. Furthermore, the first terminal A marks the driver's GPS location information on the map on the dispatch interface of the online car-hailing application for passengers to refer to.
然而,上述司机的GPS位置信息是采用定位精度为10米级的GPS定位技术定位的。如此,会导致乘客在派单界面上查阅到的司机的位置不够精确。However, the above-mentioned driver's GPS location information is located using GPS positioning technology with a positioning accuracy of 10 meters. In this way, the location of the driver that the passenger checks on the dispatch interface is not accurate enough.
有鉴于此,本申请实施例提供了一种定位方法。在网约车的司机接乘客的途中,若司机与出行起点的距离小于预设的距离阈值,则司机的第二终端控制定位设备发射定位信号。其中,定位信号携带有发射时刻。乘客的第一终端可以接收来自定位设备的定位信号,并记录接收时刻与定位信号的传播方向。第一终端可以基于发射时刻、接收时刻以及定位信号传播速率,确定乘客相对于司机的距离,如此,确定距离的精度可以达到厘米级。进而,第一终端可以根据定位信号的传播方向、乘客相对于司机的距离,确定乘客与司机的相对位置信息。然后,第一终端在网约车应用的派单界面显示的地图中,标识乘客与司机的相对位置信息。In view of this, an embodiment of the present application provides a positioning method. On the way for the driver of the online car-hailing car to pick up passengers, if the distance between the driver and the starting point of the trip is less than the preset distance threshold, the driver's second terminal controls the positioning device to transmit a positioning signal. Wherein, the positioning signal carries a transmission time. The passenger's first terminal can receive the positioning signal from the positioning device, and record the receiving time and the propagation direction of the positioning signal. The first terminal can determine the distance of the passenger relative to the driver based on the transmission time, reception time and propagation rate of the positioning signal. In this way, the accuracy of determining the distance can reach centimeter level. Furthermore, the first terminal may determine the relative position information of the passenger and the driver according to the propagation direction of the positioning signal and the distance between the passenger and the driver. Then, the first terminal identifies the relative position information of the passenger and the driver in the map displayed on the dispatch interface of the online car-hailing application.
如此,乘客可以在网约车应用的派单界面显示的地图中,查阅到乘客与司机的相对位置信息。又由于确定的距离的精度可以达到厘米级,使得乘客查阅到的乘客与司机的相对位置信息的精确度高,从而可以实现包括但不限于本申请实施例提供的定位方法中的网约车服务。In this way, the passenger can check the relative location information of the passenger and the driver on the map displayed on the order interface of the online car-hailing application. And because the accuracy of the determined distance can reach the centimeter level, the accuracy of the relative position information of the passenger and the driver that the passenger consults is high, so that the online car-hailing service including but not limited to the positioning method provided by the embodiment of the present application can be realized .
可以理解的是,上述第一终端和第二终端均为终端设备。终端设备可以是手机(mobile phone)、穿戴式设备(如智能手环或智能手表)、平板电脑(Pad)、带无线收发功能的电脑、虚拟现实(virtual reality,VR)终端设备、增强现实(augmented reality,AR)终端设备等等。本申请实施例对终端设备所采用的具体技术和具体设备形态不做限定。It can be understood that, the foregoing first terminal and the second terminal are both terminal devices. The terminal device can be a mobile phone, a wearable device (such as a smart bracelet or a smart watch), a tablet computer (Pad), a computer with a wireless transceiver function, a virtual reality (VR) terminal device, an augmented reality ( augmented reality, AR) terminal equipment and so on. The embodiment of the present application does not limit the specific technology and specific device form adopted by the terminal device.
为了能够更好地理解本申请实施例,下面对本申请实施例的终端设备的结构进行介绍。示例性的,图2为本申请实施例提供的一种终端设备的结构示意图。In order to better understand the embodiment of the present application, the structure of the terminal device in the embodiment of the present application is introduced below. Exemplarily, FIG. 2 is a schematic structural diagram of a terminal device provided in an embodiment of the present application.
终端设备可以包括处理器110,GPS定位设备120,内部存储器121,通用串行总线(universal serial bus,USB)接口130,充电管理模块140,电源管理模块141,天线1,天线2,移动通信模块150,无线通信模块160,超声波收发模块161,音频模块170,扬声器170A,收话器170B,麦克风170C,传感器模块180,按键190,指示器192,摄像头193,以及显示屏194等。其中传感器模块180可以包括压力传感器180A,陀螺仪传感器180B,气压传感器180C,磁传感器180D,加速度传感器180E,距离传感器180F,接近光传感器180G,指纹传感器180H,温度传感器180J,触摸传感器180K,环境光传感器180L,骨传导传感器180M等。The terminal device may include a processor 110, a GPS positioning device 120, an internal memory 121, a universal serial bus (universal serial bus, USB) interface 130, a charging management module 140, a power management module 141, an antenna 1, an antenna 2, and a mobile communication module 150, wireless communication module 160, ultrasonic transceiver module 161, audio module 170, speaker 170A, receiver 170B, microphone 170C, sensor module 180, button 190, indicator 192, camera 193, and display screen 194, etc. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, bone conduction sensor 180M, etc.
可以理解的是,本申请实施例示意的结构并不构成对终端设备的具体限定。在本申请另一些实施例中,终端设备可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。It can be understood that, the structure shown in the embodiment of the present application does not constitute a specific limitation on the terminal device. In other embodiments of the present application, the terminal device may include more or fewer components than shown in the figure, or combine certain components, or separate certain components, or arrange different components. The illustrated components can be realized in hardware, software or a combination of software and hardware.
处理器110可以包括一个或多个处理单元。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。处理器110中还可以设置存储器,用于存储指令和数据。 Processor 110 may include one or more processing units. Wherein, different processing units may be independent devices, or may be integrated in one or more processors. A memory may also be provided in the processor 110 for storing instructions and data.
USB接口130是符合USB标准规范的接口,具体可以是Mini USB接口,Micro USB接口,USB Type C接口等。USB接口130可以用于连接充电器为终端设备充电,也可以用于终端设备与外围设备之间传输数据。也可以用于连接耳机,通过耳机播放音频。该接口还可以用于连接其他电子设备,例如AR设备等。The USB interface 130 is an interface conforming to the USB standard specification, specifically, it can be a Mini USB interface, a Micro USB interface, a USB Type C interface, and the like. The USB interface 130 can be used to connect a charger to charge the terminal device, and can also be used to transmit data between the terminal device and peripheral devices. It can also be used to connect headphones and play audio through them. This interface can also be used to connect other electronic devices, such as AR devices.
充电管理模块140用于从充电器接收充电输入。其中,充电器可以是无线充电器,也可以是有线充电器。电源管理模块141用于连接充电管理模块140与处理器110。The charging management module 140 is configured to receive a charging input from a charger. Wherein, the charger may be a wireless charger or a wired charger. The power management module 141 is used for connecting the charging management module 140 and the processor 110 .
终端设备的无线通信功能可以通过天线1,天线2,移动通信模块150,无线通信模块160,调制解调处理器以及基带处理器等实现。The wireless communication function of the terminal device can be realized by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor and the baseband processor.
天线1和天线2用于发射和接收电磁波信号,如蓝牙信号、超宽带(Ultra wide band,UWB)信号。终端设备中的天线可用于覆盖单个或多个通信频带。在一种实施方式中,天线1和天线2均可以替换为阵列天线,阵列天线中包括多个阵列是排布的子天线,每个子天线的收发相对方向不同。如此,终端设备可以根据每个子天线的接收到的信号的强度,确定接收到的信号的传播方向。在另一种实施方式中,终端设备还可以包括天线3(图2中未示意出),天线1、天线2以及天线3的收发相对方向不同。终端设备可以根据信号到达天线1、天线2以及天线3的时间差,通过三点定位方法可以计算出信号的传播方向。Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals, such as Bluetooth signals and ultra wide band (UWB) signals. Antennas in end devices can be used to cover single or multiple communication frequency bands. In one embodiment, both the antenna 1 and the antenna 2 can be replaced by an array antenna, and the array antenna includes a plurality of array-arranged sub-antennas, and each sub-antenna has a different relative direction of sending and receiving. In this way, the terminal device can determine the propagation direction of the received signal according to the intensity of the received signal of each sub-antenna. In another implementation manner, the terminal device may further include an antenna 3 (not shown in FIG. 2 ), and the relative directions of the antenna 1, the antenna 2, and the antenna 3 are different for transmitting and receiving. The terminal device can calculate the propagation direction of the signal through the three-point positioning method according to the time difference between the arrival of the signal at the antenna 1, the antenna 2, and the antenna 3.
移动通信模块150可以提供应用在终端设备上的包括2G/3G/4G/5G等无线通信的解决方案。移动通信模块150可以包括至少一个滤波器,开关,功率放大器,低噪声放大器(low noise amplifier,LNA)等。移动通信模块150可以由天线1接收电磁波,并对接收的电磁波进行滤波,放大等处理,传送至调制解调处理器进行解调。The mobile communication module 150 can provide wireless communication solutions including 2G/3G/4G/5G applied on terminal equipment. The mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (low noise amplifier, LNA) and the like. The mobile communication module 150 can receive electromagnetic waves through the antenna 1, filter and amplify the received electromagnetic waves, and send them to the modem processor for demodulation.
无线通信模块160可以提供应用在终端设备上的包括无线局域网(wirelesslocal area networks,WLAN)(如无线保真(wireless fidelity,Wi-Fi)网络),蓝牙(bluetooth,BT),全球导航卫星系统(global navigation satellite system,GNSS),调频(frequency modulation,FM),超宽带(Ultra wide band,UWB)等无线通信的解决方案。The wireless communication module 160 can provide wireless local area networks (wireless local area networks, WLAN) (such as wireless fidelity (Wi-Fi) network), bluetooth (bluetooth, BT), global navigation satellite system ( Global navigation satellite system, GNSS), frequency modulation (frequency modulation, FM), ultra wide band (Ultra wide band, UWB) and other wireless communication solutions.
超声波收发模块161可以用于收发超声波信号。The ultrasonic transceiver module 161 can be used to send and receive ultrasonic signals.
终端设备通过GPU,显示屏194,以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏194和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。The terminal device realizes the display function through the GPU, the display screen 194, and the application processor. The GPU is a microprocessor for image processing, and is connected to the display screen 194 and the application processor. GPUs are used to perform mathematical and geometric calculations for graphics rendering.
显示屏194用于显示图像,视频等。显示屏194包括显示面板。在一些实施例中,终端设备可以包括1个或N个显示屏194,N为大于1的正整数。The display screen 194 is used to display images, videos and the like. The display screen 194 includes a display panel. In some embodiments, the terminal device may include 1 or N display screens 194, where N is a positive integer greater than 1.
终端设备可以通过ISP,摄像头193,视频编解码器,GPU,显示屏194以及应用处理器等实现拍摄功能。The terminal device can realize the shooting function through ISP, camera 193 , video codec, GPU, display screen 194 and application processor.
摄像头193用于捕获静态图像或视频。在一些实施例中,终端设备可以包括1个或N个摄像头193,N为大于1的正整数。Camera 193 is used to capture still images or video. In some embodiments, the terminal device may include 1 or N cameras 193, where N is a positive integer greater than 1.
GPS定位设备120,用于采集终端设备当前的GPS位置信息。The GPS positioning device 120 is configured to collect current GPS position information of the terminal device.
内部存储器121可以用于存储计算机可执行程序代码,可执行程序代码包括指令。内部存储器121可以包括存储程序区和存储数据区。The internal memory 121 may be used to store computer-executable program codes including instructions. The internal memory 121 may include an area for storing programs and an area for storing data.
终端设备可以通过音频模块170,扬声器170A,受话器170B,麦克风170C,以及应用处理器等实现音频功能。例如音乐播放,录音等。The terminal device can implement audio functions through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, and the application processor. Such as music playback, recording, etc.
音频模块170用于将数字音频信息转换成模拟音频信号输出,也用于将模拟音频输入 转换为数字音频信号。扬声器170A,也称“喇叭”,用于将音频电信号转换为声音信号。终端设备可以通过扬声器170A收听音乐,或收听免提通话。收话器170B,也称“听筒”,用于将音频电信号转换成声音信号。当终端设备接听电话或语音信息时,可以通过将收话器170B靠近人耳接听语音。麦克风170C,也称“话筒”,“传声器”,用于将声音信号转换为电信号。The audio module 170 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signal. Speaker 170A, also referred to as a "horn", is used to convert audio electrical signals into sound signals. The terminal device can listen to music through the speaker 170A, or listen to hands-free calls. The receiver 170B, also called "earpiece", is used to convert audio electrical signals into audio signals. When the terminal device answers a phone call or voice information, the receiver 170B can be placed close to the human ear to listen to the voice. The microphone 170C, also called "microphone" or "microphone", is used to convert sound signals into electrical signals.
压力传感器180A用于感受压力信号,可以将压力信号转换成电信号。在一些实施例中,压力传感器180A可以设置于显示屏194。陀螺仪传感器180B可以用于确定终端设备的运动姿态。气压传感器180C用于测量气压。磁传感器180D包括霍尔传感器。加速度传感器180E可检测终端设备在各个相对方向上(一般为三轴)加速度的大小。距离传感器180F,用于测量距离。接近光传感器180G可以包括例如发光二极管(LED)和光检测器,例如光电二极管。环境光传感器180L用于感知环境光亮度。指纹传感器180H用于采集指纹。温度传感器180J用于检测温度。触摸传感器180K,也称“触控器件”。触摸传感器180K可以设置于显示屏194,由触摸传感器180K与显示屏194组成触摸屏,也称“触控屏”。骨传导传感器180M可以获取振动信号。The pressure sensor 180A is used to sense the pressure signal and convert the pressure signal into an electrical signal. In some embodiments, pressure sensor 180A may be disposed on display screen 194 . The gyroscope sensor 180B can be used to determine the motion posture of the terminal device. The air pressure sensor 180C is used to measure air pressure. The magnetic sensor 180D includes a Hall sensor. The acceleration sensor 180E can detect the acceleration of the terminal device in various relative directions (generally three axes). The distance sensor 180F is used to measure the distance. Proximity light sensor 180G may include, for example, light emitting diodes (LEDs) and light detectors, such as photodiodes. The ambient light sensor 180L is used for sensing ambient light brightness. The fingerprint sensor 180H is used to collect fingerprints. The temperature sensor 180J is used to detect temperature. The touch sensor 180K is also called "touch device". The touch sensor 180K can be disposed on the display screen 194, and the touch sensor 180K and the display screen 194 form a touch screen, also called a “touch screen”. The bone conduction sensor 180M can acquire vibration signals.
按键190包括开机键,音量键等。按键190可以是机械按键。也可以是触摸式按键。终端设备可以接收按键输入,产生与终端设备的用户设置以及功能控制有关的键信号输入。指示器192可以是指示灯,可以用于指示充电状态,电量变化,也可以用于指示消息,未接来电,通知等。The keys 190 include a power key, a volume key and the like. The key 190 may be a mechanical key. It can also be a touch button. The terminal device can receive key input and generate key signal input related to user settings and function control of the terminal device. The indicator 192 can be an indicator light, and can be used to indicate charging status, power change, and can also be used to indicate messages, missed calls, notifications, and the like.
终端设备的软件系统可以采用分层架构,事件驱动架构,微核架构,微服务架构,或云架构等,在此不再赘述。The software system of the terminal device may adopt a layered architecture, an event-driven architecture, a micro-kernel architecture, a micro-service architecture, or a cloud architecture, etc., which will not be repeated here.
下面,以第一终端为第一手机100、第二终端为第二手机200为例,对本申请实施例提供的定位方法进行说明,该示例并不构成对本申请实施例的限定。下述实施例可以相互结合,对于相同或相似的概念或过程不再赘述。Next, taking the first mobile phone 100 as the first terminal and the second mobile phone 200 as the second terminal as an example, the positioning method provided by the embodiment of the present application will be described. This example does not constitute a limitation to the embodiment of the present application. The following embodiments can be combined with each other, and the same or similar concepts or processes will not be repeated.
图3为本申请实施例提供的定位方法的应用场景架构图。如图3所示,乘客的第一手机100和司机的第二手机200分别与云服务器300通信连接,以便进行数据交互。车辆400上安装有定位设备,司机的第二手机200可以与定位设备建立一对一的通信连接。例如,司机的第二手机200可以与定位设备建立蓝牙连接或wifi连接等,在此不作限定。FIG. 3 is an architecture diagram of an application scenario of a positioning method provided by an embodiment of the present application. As shown in FIG. 3 , the passenger's first mobile phone 100 and the driver's second mobile phone 200 are respectively connected in communication with the cloud server 300 for data interaction. A positioning device is installed on the vehicle 400, and the driver's second mobile phone 200 can establish a one-to-one communication connection with the positioning device. For example, the driver's second mobile phone 200 may establish a bluetooth or wifi connection with the positioning device, which is not limited herein.
示例性地,当乘客想要从出行起点“滨河一街路口”打车到出行终点“学苑路公交站”时,可以在第一手机100的系统主界面上触发网约车应用的图标。第一手机100可以响应于乘客的触发操作,显示网约车应用的派单界面(附图中未示),其中,派单界面中包括下单控件。第一手机100可以接收乘客在派单界面录入的出行起点“滨河一街路口”和出行终点“学苑路公交站”。进而,第一手机100响应于乘客对派单界面的下单控件的触发操作,向云服务器300发送订单请求。其中,订单请求携带有乘客的GPS位置信息、出行起点“滨河一街路口”、出行终点“学苑路公交站”、以及乘客的个人信息(如身份信息、名称等)等。For example, when a passenger wants to take a taxi from the starting point of the trip "Binhe Yijie Intersection" to the destination "Xueyuan Road Bus Station", the icon of the online car-hailing application can be triggered on the system main interface of the first mobile phone 100 . The first mobile phone 100 may respond to the passenger's trigger operation to display a dispatch interface (not shown in the figure) of the online car-hailing application, wherein the dispatch interface includes an order control. The first mobile phone 100 can receive the travel starting point "Binhe 1st Street intersection" and travel destination "Xueyuan Road Bus Station" entered by passengers on the order dispatching interface. Further, the first mobile phone 100 sends an order request to the cloud server 300 in response to the passenger's trigger operation on the order control of the dispatch interface. Among them, the order request carries the passenger's GPS location information, the travel starting point "Binhe 1st Street Intersection", the travel destination "Xueyuan Road Bus Station", and the passenger's personal information (such as identity information, name, etc.).
如图4所示,云服务器300将订单请求下发至第二手机200。第二手机200接收订单请求后,在第二手机200的接单界面显示出行起点“滨河一街路口”、出行终点“学苑路公交站”、以及乘客的个人信息等(附图中未示)。第二手机200可以响应于司机在第二手机200的接单界面的接单控件的触发操作,向云服务器300发送接单指令。其中,接单 指令携带有司机的GPS位置信息,司机的个人信息(如身份信息、名称等)等。可以理解地,GPS位置信息为第二手机200采用第一定位方法采集的。另外,上述的第一定位方法还可以被替换为采集基站位置信息、或者蓝牙位置信息等的定位方法,在此不作限定。As shown in FIG. 4 , the cloud server 300 sends the order request to the second mobile phone 200 . After the second mobile phone 200 receives the order request, the order receiving interface of the second mobile phone 200 displays the travel starting point "Binhe 1st Street Intersection", the travel destination "Xueyuan Road Bus Station", and the passenger's personal information, etc. (not shown in the drawings) . The second mobile phone 200 may send an order receiving instruction to the cloud server 300 in response to the driver's trigger operation on the order receiving control on the order receiving interface of the second mobile phone 200 . Wherein, the order receiving instruction carries the driver's GPS location information, the driver's personal information (such as identity information, name, etc.) and the like. Understandably, the GPS location information is collected by the second mobile phone 200 using the first positioning method. In addition, the above-mentioned first positioning method may also be replaced by a positioning method of collecting base station location information, or Bluetooth location information, etc., which is not limited herein.
进而,云服务器300根据接单指令和订单请求,生成验证信息。其中,验证信息包括验证标识(如订单号)、第一手机100的GPS位置信息、出行起点“滨河一街路口”、出行终点“学苑路公交站”、乘客的个人信息(如身份信息、名称等)、第二手机200的GPS位置信息以及司机的个人信息(如身份信息、名称等)等。可选地,云服务器300还可以生成密钥。如图5所示,云服务器300可以将验证信息和密钥分别下发至第一手机100和第二手机200。由于第二手机200与定位设备预先建立了一对一的通信连接,如此,第二手机200还可以向定位设备发送密钥和验证信息中的验证标识。定位设备接收来自第二手机200的密钥和验证标识,并存储密钥和验证标识。Furthermore, the cloud server 300 generates verification information according to the order receiving instruction and the order request. Among them, the verification information includes the verification identification (such as the order number), the GPS location information of the first mobile phone 100, the travel starting point "Binhe Yijie intersection", the travel destination "Xueyuan Road Bus Station", and the passenger's personal information (such as identity information, name, etc.) etc.), the GPS location information of the second mobile phone 200, and the driver's personal information (such as identity information, name, etc.) and the like. Optionally, the cloud server 300 can also generate a key. As shown in FIG. 5 , the cloud server 300 may deliver the verification information and the key to the first mobile phone 100 and the second mobile phone 200 respectively. Since the second mobile phone 200 has pre-established a one-to-one communication connection with the positioning device, the second mobile phone 200 can also send the key and the verification identifier in the verification information to the positioning device. The positioning device receives the key and the verification ID from the second mobile phone 200, and stores the key and the verification ID.
示例地,下面以定位设备可以与第二手机200蓝牙连接为例,说明定位设备的结构和工作原理。如图6所示,定位设备700可以包括蓝牙模块701、信号处理模块702、信号发射模块703、存储模块704以及电源接口705。信号处理模块702分别与蓝牙模块701、信号发射模块703、存储模块704以及电源接口705电连接。Exemplarily, the structure and working principle of the positioning device will be described below by taking the Bluetooth connection between the positioning device and the second mobile phone 200 as an example. As shown in FIG. 6 , the positioning device 700 may include a Bluetooth module 701 , a signal processing module 702 , a signal transmitting module 703 , a storage module 704 and a power interface 705 . The signal processing module 702 is electrically connected to the Bluetooth module 701 , the signal transmitting module 703 , the storage module 704 and the power interface 705 respectively.
可以理解地,定位设备700可以通过蓝牙模块701与第二手机200建立一对一的通信连接。进而,定位设备700可以通过蓝牙模块701接收来自第二手机200的密钥和验证标识,并将密钥和验证标识存储于存储模块704。信号发射模块703可以用于发射定位信号。其中,定位信号可以为被密钥加密的携带有定位信号被发射的第一时刻的UWB信号。可以理解地,通过密钥对UWB信号加密,可以保护司机的位置信息和乘客的位置信息不泄露给他人,保证了信息的安全性。当然地,定位信号也可以是未被加密过的携带有定位信号被发射的第一时刻的UWB信号等,在此作限定。另外,电源接口705可以与车载电源连接,以使得车载电源可以通过电源接口705为定位设备700供电。如此,车载电源可以为定位设备700提供较长的续航和较大的信号发射功率。可选地,电源接口705还可以被替换为蓄电池为定位设备700供电,在此不作限定。Understandably, the positioning device 700 can establish a one-to-one communication connection with the second mobile phone 200 through the Bluetooth module 701 . Furthermore, the positioning device 700 may receive the key and the verification ID from the second mobile phone 200 through the Bluetooth module 701 , and store the key and the verification ID in the storage module 704 . The signal transmitting module 703 may be used to transmit positioning signals. Wherein, the positioning signal may be a UWB signal encrypted by a key and carrying the first moment when the positioning signal is transmitted. Understandably, by encrypting the UWB signal with a key, the driver's location information and the passenger's location information can be protected from being leaked to others, thereby ensuring information security. Certainly, the positioning signal may also be an unencrypted UWB signal carrying the first moment when the positioning signal is transmitted, etc., which are limited here. In addition, the power interface 705 can be connected to a vehicle power supply, so that the vehicle power supply can supply power to the positioning device 700 through the power interface 705 . In this way, the vehicle power supply can provide the positioning device 700 with a longer battery life and greater signal transmission power. Optionally, the power interface 705 may also be replaced by a battery to supply power to the positioning device 700, which is not limited herein.
在云服务器300将验证信息分别下发至第一手机100和第二手机200后,完成了网约车的下单流程。进而,如图7所示,乘客的第一手机100显示第一界面101。其中,第一手机100的第一界面101显示有地图,地图上包括第一定位标识801、第二定位标识802,以及距离提示104“距您2公里”。可以理解地,距离提示104用于指示车辆400在地图上的GPS位置信息相对于出行起点的GPS位置信息的距离,以供乘客查阅。第一定位标识801用于标记车辆400在地图上的GPS位置信息(即第二手机200在地图上的GPS位置信息),第二定位标识802用于标记出行起点“滨河一街路口”在地图上的GPS位置信息。After the cloud server 300 sends the verification information to the first mobile phone 100 and the second mobile phone 200 respectively, the order process of online car-hailing is completed. Furthermore, as shown in FIG. 7 , the passenger's first mobile phone 100 displays a first interface 101 . Wherein, the first interface 101 of the first mobile phone 100 displays a map, and the map includes a first positioning mark 801, a second positioning mark 802, and a distance prompt 104 "2 kilometers away from you". It can be understood that the distance prompt 104 is used to indicate the distance of the GPS location information of the vehicle 400 on the map relative to the GPS location information of the travel starting point, for passengers to check. The first positioning mark 801 is used to mark the GPS position information of the vehicle 400 on the map (that is, the GPS position information of the second mobile phone 200 on the map), and the second positioning mark 802 is used to mark the starting point of travel "Binhe First Street intersection" on the map GPS location information on the .
类似地,如图8所示,司机的第二手机200显示第二界面201。在第二界面201中也显示有地图,地图上包括第一定位标识801、第二定位标识802以及距离提示202“距起点2公里”。距离提示202用于指示车辆400在地图上的GPS位置信息相对于出行起点的GPS位置信息的距离,以供司机查阅。其中,第一定位标识801用于标记车辆400在地图上的GPS位置信息,第二定位标识802用于标记出行起点“滨河一街路口”在地图上的GPS位置信息。Similarly, as shown in FIG. 8 , the driver's second mobile phone 200 displays a second interface 201 . A map is also displayed on the second interface 201 , and the map includes a first positioning mark 801 , a second positioning mark 802 and a distance prompt 202 "2 kilometers from the starting point". The distance prompt 202 is used to indicate the distance of the GPS location information of the vehicle 400 on the map relative to the GPS location information of the travel starting point, for the driver to check. Among them, the first positioning mark 801 is used to mark the GPS position information of the vehicle 400 on the map, and the second positioning mark 802 is used to mark the GPS position information of the travel starting point "Binhe First Street Intersection" on the map.
在司机的第二手机200检测到司机的GPS位置信息与出行起点“滨河一街路口”的GPS位置信息之间的距离小于预设的距离阈值(如40m、50m以及60m等)时,乘客具有获取车辆400精确的位置信息(即第一手机100与车辆400的第一相对位置信息)的需求,以便能够快速准确的找到司机的车辆400上车。由于GPS定位技术的精确度不高,如此会导致第一界面101上的第一定位标识801,在地图上标识的车辆400的GPS位置信息的精确度也不高。如此,可以采用精确度更高的第二定位方法对车辆400的位置信息定位。可以理解地,第二定位方法的定位精度大于上述的第一定位方法的定位精度。When the driver's second mobile phone 200 detects that the distance between the driver's GPS location information and the GPS location information of the travel starting point "Binhe Yijie intersection" is less than a preset distance threshold (such as 40m, 50m, and 60m, etc.), the passenger has Acquiring the precise location information of the vehicle 400 (that is, the first relative location information between the first mobile phone 100 and the vehicle 400 ) is required, so as to quickly and accurately find the driver's vehicle 400 to board. Since the accuracy of the GPS positioning technology is not high, the accuracy of the first positioning mark 801 on the first interface 101 and the GPS position information of the vehicle 400 marked on the map is not high. In this way, the position information of the vehicle 400 can be positioned using the second positioning method with higher accuracy. It can be understood that the positioning accuracy of the second positioning method is greater than the positioning accuracy of the above-mentioned first positioning method.
下面,以第二定位方法为UWB定位技术,并结合图9说明利用UWB定位技术对司机的位置信息定位的过程。In the following, the second positioning method is the UWB positioning technology, and the process of using the UWB positioning technology to locate the driver's position information will be described with reference to FIG. 9 .
如图9所示,司机的第二手机200检测到车辆400的GPS位置信息与出行起点的GPS位置信息之间的距离,小于预设的距离阈值的情况下,第二手机200可以通知车辆400上的定位设备700发射UWB信号。进而,定位设备700的信号处理模块702从存储模块704中提取出密钥和验证标识,并控制信号发射模块703发射携带有验证标识和加密的第一时刻的UWB信号。其中,第一时刻为UWB信号被发射的时刻。As shown in Figure 9, when the driver's second mobile phone 200 detects that the distance between the GPS location information of the vehicle 400 and the GPS location information of the travel starting point is less than the preset distance threshold, the second mobile phone 200 can notify the vehicle 400 The positioning device 700 on the device transmits UWB signals. Furthermore, the signal processing module 702 of the positioning device 700 extracts the key and the verification ID from the storage module 704, and controls the signal transmitting module 703 to transmit the UWB signal carrying the verification ID and the encrypted first moment. Wherein, the first moment is the moment when the UWB signal is transmitted.
如此,乘客的第一手机100可以接收到定位设备700发射的UWB信号,并记录接收到UWB信号的第二时刻。第一手机100可以检测UWB信号携带的验证标识,与先前从云服务器300接收的验证标识是否一致,如果一致,则说明发射UWB信号的定位设备700所在的车辆400,正是乘客所预约的车辆。如此,第一手机100可以根据先前从云服务器300接收的密钥,解密UWB信号的第一时刻。In this way, the passenger's first mobile phone 100 can receive the UWB signal transmitted by the positioning device 700, and record the second moment when the UWB signal is received. The first mobile phone 100 can detect whether the verification identification carried by the UWB signal is consistent with the verification identification previously received from the cloud server 300. If they are consistent, it means that the vehicle 400 where the positioning device 700 that transmits the UWB signal is located is exactly the vehicle reserved by the passenger. . In this way, the first mobile phone 100 can decrypt the first moment of the UWB signal according to the key previously received from the cloud server 300 .
进而,第一手机100可以根据的第一时刻、第二时刻计算UWB信号的传输时间t。第一手机100根据算式d=v×t,确定定位设备700所在的车辆400与第一手机100的距离(即第二手机200和第一手机100的距离)。其中,d为定位设备700所在的车辆400与第一手机100的距离,v为UWB信号的传播速率,t为UWB信号的传输时间。需要说明的是,传输时间t可以精确到皮秒级,精确度高;再者,传播速率为设定的常数,可以精确到毫米每秒。Furthermore, the first mobile phone 100 may calculate the transmission time t of the UWB signal according to the first moment and the second moment. The first mobile phone 100 determines the distance between the vehicle 400 where the positioning device 700 is located and the first mobile phone 100 (that is, the distance between the second mobile phone 200 and the first mobile phone 100 ) according to the formula d=v×t. Wherein, d is the distance between the vehicle 400 where the positioning device 700 is located and the first mobile phone 100, v is the propagation rate of the UWB signal, and t is the transmission time of the UWB signal. It should be noted that the transmission time t can be accurate to the level of picoseconds, and the accuracy is high; moreover, the propagation rate is a set constant, which can be accurate to millimeters per second.
可以理解地,在上述的过程中,由于UWB信号的传输时间、和传播速率的精确度都高,则计算得到的距离可以精确到厘米级(如5.61米)。另外,第一手机100的还可以根据UWB信号分别到达第一手机200天线的传输时间,通过三点定位方法可以计算出发射的UWB信号的车辆400的方向。例如,第一手机200包括天线1和天线2,天线1和天线2的间距为D。假设UWB信号到达天线1的传输时间为T1,如此,可以根据传输时间T1和传播速度计算出距离D1;UWB信号到达天线2的传输时间为T2,如此,可以根据传输时间T2和传播速度计算出距离D2。由于天线1、天线2以及发射UWB信号的定位设备构成三角形,在已知D、D1以及D2的情况下,可以通过三角函数计算出定位设备与天线1或天线2的夹角,进而得到第一手机100相对于UWB信号的传播方向。It can be understood that, in the above process, since the UWB signal's transmission time and propagation rate are highly accurate, the calculated distance can be accurate to centimeter level (eg, 5.61 meters). In addition, the first mobile phone 100 can also calculate the direction of the transmitted UWB signal of the vehicle 400 through the three-point positioning method according to the transmission time of the UWB signal reaching the antenna of the first mobile phone 200 respectively. For example, the first mobile phone 200 includes an antenna 1 and an antenna 2, and the distance between the antenna 1 and the antenna 2 is D. Suppose the transmission time of UWB signal to reach antenna 1 is T1, so the distance D1 can be calculated according to the transmission time T1 and propagation speed; the transmission time of UWB signal to reach antenna 2 is T2, so, can be calculated according to the transmission time T2 and propagation speed distance D2. Since antenna 1, antenna 2 and the positioning device transmitting UWB signals form a triangle, in the case of known D, D1 and D2, the angle between the positioning device and antenna 1 or antenna 2 can be calculated by trigonometric functions, and then the first The mobile phone 100 is relative to the propagation direction of the UWB signal.
可以理解地,UWB信号的传播方向即车辆400相对于第一手机100的方向(即第二手机200和第一手机100的距离),并且通过第一手机100的天线确定UWB信号的传播方向来指示的车辆400相对于第一手机100的方向,精确度高。如此,将车辆400与第一手机100的距离、与车辆400相对于第一手机100的方向结合起来,即可得到车辆400与第一手机100更精确的第一相对位置信息。It can be understood that the propagation direction of the UWB signal is the direction of the vehicle 400 relative to the first mobile phone 100 (that is, the distance between the second mobile phone 200 and the first mobile phone 100), and the propagation direction of the UWB signal is determined by the antenna of the first mobile phone 100. The indicated direction of the vehicle 400 relative to the first mobile phone 100 is highly accurate. In this way, by combining the distance between the vehicle 400 and the first mobile phone 100 and the direction of the vehicle 400 relative to the first mobile phone 100 , more accurate first relative position information of the vehicle 400 and the first mobile phone 100 can be obtained.
下面,结合图10介绍第一手机100如何根据第一相对位置信息指引乘客正确上车。Next, with reference to FIG. 10 , how the first mobile phone 100 guides passengers to get on the bus correctly according to the first relative position information will be introduced.
示例性地,第一手机100可以根据第一手机100的GPS位置信息、车辆400与第一手机100的距离、以及UWB信号的传播方向,在第一界面101中的地图上标识车辆400与第一手机100的第一相对位置信息105。如图10中的(a)所示,第一手机100可以在第一界面101的地图上显示第三定位标识803,其中,第三定位标识803用于标记第一手机100的在地图上的GPS位置信息,即乘客的GPS位置信息。另外,第一手机100还可以将第一定位标识801的内容更新为指示车辆400与第一手机400在地图上的相对位置。其中,第一相对位置信息105可以为“距您右前方15.61米”的文字信息。可以理解地,第一相对位置信息105用于指示车辆400与第一手机100的距离和方向,即乘客与司机之间的距离和方向。如此,乘客即可通过第一相对位置信息105,更精确的感知到车辆400与第一手机100的距离和方向(如右前方15.61米)。Exemplarily, the first mobile phone 100 can identify the vehicle 400 and the first mobile phone 100 on the map in the first interface 101 according to the GPS location information of the first mobile phone 100, the distance between the vehicle 400 and the first mobile phone 100, and the propagation direction of the UWB signal. First relative location information 105 of a mobile phone 100 . As shown in (a) in FIG. 10 , the first mobile phone 100 may display a third location mark 803 on the map of the first interface 101, wherein the third location mark 803 is used to mark the position of the first mobile phone 100 on the map. GPS location information, that is, the passenger's GPS location information. In addition, the first mobile phone 100 may also update the content of the first positioning mark 801 to indicate the relative positions of the vehicle 400 and the first mobile phone 400 on the map. Wherein, the first relative position information 105 may be text information of "15.61 meters from your front right". Understandably, the first relative position information 105 is used to indicate the distance and direction between the vehicle 400 and the first mobile phone 100 , that is, the distance and direction between the passenger and the driver. In this way, the passenger can more accurately perceive the distance and direction between the vehicle 400 and the first mobile phone 100 through the first relative position information 105 (for example, 15.61 meters ahead right).
另外,第一相对位置信息105还可以包括用于指示车辆400的方向的箭头,即从第三定位标识803指向更新后的第一定位标识801的箭头。乘客还可以通过第三定位标识803、更新后的第一定位标识801以及用于指示车辆400的方向的箭头,感知车辆400相对于第一手机100的方向与距离。如此,乘客可以更方便的感知车辆400相对于自己的位置,以合理规划寻找车辆400的路线和出发时间。In addition, the first relative position information 105 may also include an arrow for indicating the direction of the vehicle 400 , that is, an arrow pointing from the third positioning mark 803 to the updated first positioning mark 801 . Passengers can also perceive the direction and distance of the vehicle 400 relative to the first mobile phone 100 through the third positioning mark 803 , the updated first positioning mark 801 and the arrow indicating the direction of the vehicle 400 . In this way, passengers can more conveniently perceive the position of the vehicle 400 relative to themselves, so as to reasonably plan to find the route and departure time of the vehicle 400 .
如图10中的(b)所示,在车辆400到达出行起点“滨河一街路口”后,车辆400不再移动,而是等候乘客的上车。以及第一相对位置信息105的内容更新为:“距您右后方5.61米”。如此,乘客在移动寻找车辆400的过程中,可以通过第一相对位置信息105,更精确的感知到车辆400与第一手机100的距离和方向(如右后方5.61米)。可以理解地,在第一相对位置信息105包括用于指示车辆400的方向的箭头时,上述的箭头的指向会随着车辆400和第一手机100之间的相对距离和方向的变化调整。如此,乘客可以更方便的感知车辆400相对于自己的位置,以判断自己的移动的方向是否正确,进而,可以更高效准确的找到车辆400。As shown in (b) in FIG. 10 , after the vehicle 400 arrives at the starting point of travel "the intersection of Binhe First Street", the vehicle 400 no longer moves, but waits for passengers to board. And the content of the first relative position information 105 is updated as: "5.61 meters from your rear right". In this way, the passenger can more accurately perceive the distance and direction between the vehicle 400 and the first mobile phone 100 (such as 5.61 meters behind the right) through the first relative position information 105 while moving to find the vehicle 400 . Understandably, when the first relative position information 105 includes an arrow indicating the direction of the vehicle 400 , the direction of the above arrow will be adjusted as the relative distance and direction between the vehicle 400 and the first mobile phone 100 change. In this way, passengers can more conveniently perceive the position of the vehicle 400 relative to themselves, so as to judge whether their own moving direction is correct, and then, can find the vehicle 400 more efficiently and accurately.
如图10中的(c)所示,当车辆400与第一手机100的距离小于预设的距离阈值(如0.5m、0.3m等),并且持续时长超过预设的时长(如3s、5s等)的情况下,则说明乘客已经找到车辆400并上车。进而,第一手机100在第一界面101显示第一提示信息106“已上车”。可以理解地,第一提示信息用于指示乘客已上车。如此,乘客可以通过第一提示信息106感知到自己已经正确上车。并且用户的第一手机100会把“已上车”的信息发送给云服务器300,用于云服务器300确认乘车。As shown in (c) in Figure 10, when the distance between the vehicle 400 and the first mobile phone 100 is less than the preset distance threshold (such as 0.5m, 0.3m, etc.), and the duration exceeds the preset duration (such as 3s, 5s etc.), it means that the passenger has found the vehicle 400 and got on the bus. Furthermore, the first mobile phone 100 displays a first prompt message 106 "already boarded" on the first interface 101 . Understandably, the first prompt information is used to indicate that the passenger has boarded the vehicle. In this way, the passengers can perceive that they have got on the bus correctly through the first prompt information 106 . And the user's first mobile phone 100 will send the information of "have boarded" to the cloud server 300, which is used for the cloud server 300 to confirm the ride.
另外,在司机的GPS位置信息与出行起点“滨河一街路口”的GPS位置信息之间的距离小于预设的距离阈值(如40m、50m以及60m等)时,司机也具有获取乘客精确的相对位置的需求,以便确定乘客与自己更精确的相对位置。如此,司机可以请求第一手机100共享精确的相对位置到司机的第二手机200。In addition, when the distance between the driver's GPS location information and the GPS location information of the "Binhe First Street Intersection" of the travel starting point is less than the preset distance threshold (such as 40m, 50m, and 60m, etc.), the driver also has the ability to obtain the passenger's accurate relative information. Position requirements in order to determine the more precise relative position of passengers and themselves. In this way, the driver can request the first mobile phone 100 to share the precise relative location to the driver's second mobile phone 200 .
下面,结合图7-图8以及图11-图12说明,第二手机200如何指引司机如何正确接到乘客。Next, with reference to FIGS. 7-8 and 11-12 , how the second mobile phone 200 guides the driver to pick up passengers correctly will be described.
请返回参阅图7,在第二手机200的第二界面201显示有第一控件203。第二手机200可以响应于司机对第一控件203的触发操作,向第一手机100发送第一请求,其中,第一请求用于请求第一手机100的第一相对位置信息。如图8所示,第一手机100接收来自第 二手机200的第一请求,在第一界面101显示第二提示信息102。其中,第二提示信息102用于指示向第二手机200共享第一相对位置信息,且在第二提示信息102包括确认控件103。Please refer back to FIG. 7 , the first control 203 is displayed on the second interface 201 of the second mobile phone 200 . The second mobile phone 200 may send a first request to the first mobile phone 100 in response to the driver's trigger operation on the first control 203 , wherein the first request is used to request first relative position information of the first mobile phone 100 . As shown in FIG. 8, the first mobile phone 100 receives the first request from the second mobile phone 200, and displays the second prompt information 102 on the first interface 101. Wherein, the second prompt information 102 is used to indicate to share the first relative position information with the second mobile phone 200 , and the second prompt information 102 includes a confirmation control 103 .
如图11所示,若乘客允许将第一相对位置信息共享给第二手机200,则第一手机100可以响应于乘客对确认控件103的确认操作,向云服务器300发送第一相对位置信息。进而,云服务器300向第二手机200发送第一相对位置信息。可以理解地,当乘客允许将第一相对位置信息共享给第二手机200后,第二手机200才会接收到第一相对位置信息,如此,可以保护乘客的位置隐私。As shown in FIG. 11 , if the passenger allows the first relative position information to be shared with the second mobile phone 200 , the first mobile phone 100 may send the first relative position information to the cloud server 300 in response to the passenger's confirmation operation on the confirmation control 103 . Furthermore, the cloud server 300 sends the first relative location information to the second mobile phone 200 . It can be understood that the second mobile phone 200 will receive the first relative position information only after the passenger allows the first relative position information to be shared with the second mobile phone 200, so that the passenger's location privacy can be protected.
由于第一相对位置信息包括车辆400与第一手机100的距离、以及UWB信号的传播方向,则司机的第二手机200可以根据第二手机200的GPS位置信息、车辆400与第一手机100的距离、以及UWB信号的传播方向,生成第一手机100与车辆400的第二相对位置信息204。如图12中的(a)所示,第二手机200可以在第二界面201的地图上显示第一定位标识801和第三定位标识803,其中,第一定位标识801用于标记车辆400的GPS位置信息,第三定位标识803用于指示第一手机100与车辆400在地图上的相对位置。另外,第二手机200的第二界面201还可以显示第一手机100与车辆400的第二相对位置信息204。其中,第二相对位置信息204包括“右前方距乘客15.61米”的文字信息。Since the first relative position information includes the distance between the vehicle 400 and the first mobile phone 100 and the propagation direction of the UWB signal, the driver's second mobile phone 200 can use the GPS position information of the second mobile phone 200 and the distance between the vehicle 400 and the first mobile phone 100 The distance and the propagation direction of the UWB signal generate the second relative position information 204 of the first mobile phone 100 and the vehicle 400 . As shown in (a) in FIG. 12 , the second mobile phone 200 can display a first positioning mark 801 and a third positioning mark 803 on the map of the second interface 201, wherein the first positioning mark 801 is used to mark the position of the vehicle 400 For GPS location information, the third location identifier 803 is used to indicate the relative locations of the first mobile phone 100 and the vehicle 400 on the map. In addition, the second interface 201 of the second mobile phone 200 can also display the second relative position information 204 of the first mobile phone 100 and the vehicle 400 . Wherein, the second relative position information 204 includes the text information of "15.61 meters from the passenger in the front right".
可以理解地,第二相对位置信息204用于指示第一手机100与车辆400的距离和方向,即乘客与司机之间的距离和方向。如此,司机即可通过第二相对位置信息204,更精确的感知到第一手机100与车辆400的距离和方向(如15.61米)。另外,第二相对位置信息204还可以包括:从第一定位标识801指向第三定位标识803的箭头。可以理解地,箭头用于指示第一手机100的方向。司机还可以通过第三定位标识803、第一定位标识801以及用于指示第一手机100的方向的箭头,感知第一手机100相对于车辆400的方向和距离。如此,司机可以更方便的感知第一手机100相对于自己的位置(即乘客相对于司机的位置),以合理规划寻找乘客的路线。Understandably, the second relative position information 204 is used to indicate the distance and direction between the first mobile phone 100 and the vehicle 400 , that is, the distance and direction between the passenger and the driver. In this way, the driver can more accurately perceive the distance and direction (eg, 15.61 meters) between the first mobile phone 100 and the vehicle 400 through the second relative position information 204 . In addition, the second relative position information 204 may further include: an arrow pointing from the first positioning mark 801 to the third positioning mark 803 . Understandably, the arrow is used to indicate the direction of the first mobile phone 100 . The driver can also perceive the direction and distance of the first mobile phone 100 relative to the vehicle 400 through the third positioning mark 803 , the first positioning mark 801 and the arrow indicating the direction of the first mobile phone 100 . In this way, the driver can perceive the position of the first mobile phone 100 relative to himself (that is, the position of the passenger relative to the driver) more conveniently, so as to reasonably plan a route to find the passenger.
如图12中的(b)所示,在车辆400到达出行起点“滨河一街路口”后,车辆400不再移动,而是等候乘客的上车。另外,第二相对位置信息204的内容可以更新为:“右方距乘客5.61米”,车辆400的第一定位标识801也位于出行起点“滨河一街路口”。如此,司机可以在乘客在移动的过程中,通过第二相对位置信息204,更精确的感知到车辆400与第一手机100的距离和方向(如右方5.61米)。可以理解地,在第二相对位置信息204包括用于指示第一手机100的方向的箭头时,上述的箭头的指向会随着第一手机100和车辆400之间的相对距离和方向的变化调整,以判断乘客的是否正在朝向自己的位置赶来。如此,司机可以继续耐心等候乘客的到来,而不需要电话催促乘客出发或询问乘客的位置。As shown in (b) in FIG. 12 , after the vehicle 400 arrives at the starting point of travel "the intersection of Binhe First Street", the vehicle 400 no longer moves, but waits for passengers to board. In addition, the content of the second relative position information 204 can be updated to: "5.61 meters away from the passenger on the right", and the first positioning mark 801 of the vehicle 400 is also located at the starting point of travel "the intersection of Binhe First Street". In this way, the driver can more accurately perceive the distance and direction between the vehicle 400 and the first mobile phone 100 (such as 5.61 meters to the right) through the second relative position information 204 while the passenger is moving. It can be understood that when the second relative position information 204 includes an arrow indicating the direction of the first mobile phone 100 , the direction of the above arrow will be adjusted according to the change of the relative distance and direction between the first mobile phone 100 and the vehicle 400 , to judge whether the passenger is heading towards his position. In this way, the driver can continue to wait patiently for the arrival of the passenger, without the need to call the passenger to urge the passenger to leave or ask the passenger's location.
如图12中的(c)所示,当第一手机100与距离车辆400小于预设的距离阈值(如0.5m、0.3m等),并且持续时长超过预设的时长(如3s、5s等)的情况下,则说明乘客已经找到车辆400并上车。进而,第二手机200在第二界面201显示第三提示信息205“乘客已确认上车”。可以理解地,第三提示信息205用于指示确认乘客已上车。如此,司机可以通过第三提示信息205感知到乘客已经正确上车,无需再询问乘客的手机号码的尾号来判断乘客是否上车正确,减少了乘客和司机的打车流程环节。另外,乘客和司机也无需通过 核对手机号码的尾号确定是否乘坐正确的车辆,为语言障碍人士提供了更多的方便。As shown in (c) in Figure 12, when the distance between the first mobile phone 100 and the vehicle 400 is less than the preset distance threshold (such as 0.5m, 0.3m, etc.), and the duration exceeds the preset duration (such as 3s, 5s, etc. ), it means that the passenger has found the vehicle 400 and boarded it. Furthermore, the second mobile phone 200 displays a third prompt message 205 "The passenger has confirmed boarding" on the second interface 201 . Understandably, the third prompt message 205 is used to indicate to confirm that the passenger has boarded the vehicle. In this way, the driver can perceive that the passenger has got on the bus correctly through the third prompt message 205, and there is no need to ask the tail number of the passenger's mobile phone number to judge whether the passenger got on the bus correctly, which reduces the taxi process link between the passenger and the driver. In addition, passengers and drivers do not need to check the last number of the mobile phone number to determine whether they are taking the correct vehicle, which provides more convenience for people with language barriers.
另外,第二手机200还可以在检测到车辆400与第一手机100的距离在预设的时长(如5s)内未发生变化的情况下,通知车辆400上的定位设备700停止发射UWB信号,以降低定位设备700的功耗。In addition, the second mobile phone 200 can also notify the positioning device 700 on the vehicle 400 to stop transmitting UWB signals when detecting that the distance between the vehicle 400 and the first mobile phone 100 has not changed within a preset period of time (such as 5s), In order to reduce the power consumption of the positioning device 700 .
下面,仍以第一终端为第一手机100、第二终端为第二手机200为例,说明上述的说明图3-图12的定位方法的流程。Hereinafter, still taking the first mobile phone 100 as the first terminal and the second mobile phone 200 as the second terminal as an example, the above-mentioned flow of the positioning method in FIGS. 3-12 will be described.
图13为本申请实施例提供的一种定位方法的流程示意图。如图13所示,该定位方法可以包括如下步骤:FIG. 13 is a schematic flow chart of a positioning method provided by an embodiment of the present application. As shown in Figure 13, the positioning method may include the following steps:
S1401:第一手机100响应于乘客对系统主界面上触发网约车应用的图标的触发操作,显示网约车应用的派单界面。其中,派单界面中包括下单控件。S1401: The first mobile phone 100 responds to the passenger's trigger operation on the icon that triggers the online car-hailing application on the main interface of the system, and displays the dispatch interface of the online car-hailing application. Wherein, the dispatch interface includes an order control.
示例性地,第一手机100可以接收乘客在派单界面录入的出行起点“滨河一街路口”和出行终点“学苑路公交站”。当然地,“滨河一街路口”还可以被替换为其他的出行起点,“学苑路公交站”还可以被替换为其他的出行终点,在此不作限定。Exemplarily, the first mobile phone 100 may receive the travel starting point "Binhe 1st Street Intersection" and the travel destination "Xueyuan Road Bus Station" entered by the passenger on the dispatch interface. Of course, "the intersection of Binhe First Street" can also be replaced by other travel starting points, and "Xueyuan Road Bus Station" can also be replaced by other travel destinations, which are not limited here.
S1402:第一手机100响应于乘客对派单界面的下单控件的触发操作,向云服务器200发送订单请求。S1402: The first mobile phone 100 sends an order request to the cloud server 200 in response to the passenger's trigger operation on the order control of the dispatch interface.
S1403:云服务器200向第二手机200发送订单请求。S1403: The cloud server 200 sends an order request to the second mobile phone 200.
其中,订单请求携带有乘客的GPS位置信息、出行起点“滨河一街路口”、出行终点“学苑路公交站”、以及乘客的个人信息(如身份信息、名称等)等。第二手机200接收订单请求后,在第二手机200的接单界面显示出行起点“滨河一街路口”、出行终点“学苑路公交站”、以及用来确认乘客的部分个人信息等。Among them, the order request carries the passenger's GPS location information, the travel starting point "Binhe 1st Street Intersection", the travel destination "Xueyuan Road Bus Station", and the passenger's personal information (such as identity information, name, etc.). After the second mobile phone 200 receives the order request, the order receiving interface of the second mobile phone 200 displays the travel starting point "Binhe 1st Street Intersection", the travel destination "Xueyuan Road Bus Station", and some personal information used to confirm passengers.
S1404:第二手机200可以响应于司机在第二手机200的接单界面的接单控件的触发操作,向云服务器300发送与订单请求关联的接单指令。S1404: The second mobile phone 200 may send an order receiving instruction associated with the order request to the cloud server 300 in response to the driver's trigger operation on the order receiving control on the order receiving interface of the second mobile phone 200 .
其中,接单指令携带有司机的GPS位置信息,司机的个人信息(如身份信息、名称等)等。进而,云服务器300根据接单指令和订单请求,生成验证信息。其中,验证信息包括验证标识(如订单号)、第一手机100的GPS位置信息、出行起点“滨河一街路口”、出行终点“学苑路公交站”、乘客的个人信息(如身份信息、名称等)、第二手机200的GPS位置信息以及司机的个人信息(如身份信息、名称等)等。Wherein, the order receiving instruction carries the driver's GPS location information, the driver's personal information (such as identity information, name, etc.) and the like. Furthermore, the cloud server 300 generates verification information according to the order receiving instruction and the order request. Among them, the verification information includes the verification identification (such as the order number), the GPS location information of the first mobile phone 100, the travel starting point "Binhe Yijie intersection", the travel destination "Xueyuan Road Bus Station", and the passenger's personal information (such as identity information, name, etc.) etc.), the GPS location information of the second mobile phone 200, and the driver's personal information (such as identity information, name, etc.) and the like.
S1405:云服务器300根据接单指令和订单请求,生成验证信息。S1405: The cloud server 300 generates verification information according to the order receiving instruction and the order request.
S1406:第一手机100和第二手机200接收来自云服务器300的验证信息。S1406: The first mobile phone 100 and the second mobile phone 200 receive verification information from the cloud server 300 .
其中,第一手机100和第二手机200还可以接收来自云服务器300的用于加密定位信号的密钥。Wherein, the first mobile phone 100 and the second mobile phone 200 may also receive a key for encrypting the positioning signal from the cloud server 300 .
S1407:第一手机100显示第一界面101。S1407: The first mobile phone 100 displays the first interface 101.
其中,第一手机100的第一界面101显示有地图,地图上包括第一定位标识801、第二定位标识802,以及距离提示104。距离提示104用于指示车辆400在地图上的GPS位置信息相对于出行起点的GPS位置信息的距离。第一定位标识801用于标记车辆400在地图上的GPS位置信息,第二定位标识802用于标记出行起点“滨河一街路口”在地图上的GPS位置信息。Wherein, the first interface 101 of the first mobile phone 100 displays a map, and the map includes a first positioning mark 801 , a second positioning mark 802 , and a distance prompt 104 . The distance prompt 104 is used to indicate the distance between the GPS position information of the vehicle 400 on the map and the GPS position information of the travel starting point. The first positioning mark 801 is used to mark the GPS position information of the vehicle 400 on the map, and the second positioning mark 802 is used to mark the GPS position information of the travel starting point "Binhe First Street Intersection" on the map.
S1408:第二手机200显示第二界面102。S1408: The second mobile phone 200 displays the second interface 102 .
在第二界面201中也显示有地图,地图上包括第一定位标识801、第二定位标识802 以及距离提示202。距离提示202用于指示车辆400在地图上的GPS位置信息相对于出行起点的GPS位置信息的距离。第一定位标识801用于标记车辆400在地图上的GPS位置信息,第二定位标识802用于标记出行起点“滨河一街路口”在地图上的GPS位置信息。A map is also displayed on the second interface 201 , and the map includes a first positioning mark 801 , a second positioning mark 802 and a distance prompt 202 . The distance prompt 202 is used to indicate the distance between the GPS location information of the vehicle 400 on the map and the GPS location information of the travel starting point. The first positioning mark 801 is used to mark the GPS position information of the vehicle 400 on the map, and the second positioning mark 802 is used to mark the GPS position information of the travel starting point "Binhe First Street Intersection" on the map.
S1409:第二手机200在检测到车辆400的GPS位置信息与出行起点的GPS位置信息之间的距离,小于预设的距离阈值的情况下,第二手机200可以通知车辆400上的定位设备700发射UWB信号。S1409: When the second mobile phone 200 detects that the distance between the GPS location information of the vehicle 400 and the GPS location information of the travel starting point is less than a preset distance threshold, the second mobile phone 200 can notify the positioning device 700 on the vehicle 400 Transmit UWB signal.
其中,定位设备700的结构和原理可以参照上述实施例中对图6的介绍,在此不再赘述。Wherein, for the structure and principle of the positioning device 700, reference may be made to the introduction to FIG. 6 in the foregoing embodiment, and details are not repeated here.
S1410:第一手机100可以接收定位设备700发射的UWB信号,并记录接收到UWB信号的第二时刻。其中,UWB信号携带有定位信号被发射的第一时刻。S1410: The first mobile phone 100 may receive the UWB signal transmitted by the positioning device 700, and record a second moment when the UWB signal is received. Wherein, the UWB signal carries the first moment when the positioning signal is transmitted.
其中,S1409-S1410的工作原理,可以参照上述实施例中对图9的介绍,在此不再赘述。另外,当第二手机200也具备UWB信号的收发功能的情况下,在S1409-S1410中,发射UWB信号的设备还可以被替换为:集成有UWB信号发射功能的第二手机200。Wherein, for the working principles of S1409-S1410, reference may be made to the introduction to FIG. 9 in the foregoing embodiments, and details are not repeated here. In addition, when the second mobile phone 200 also has the function of sending and receiving UWB signals, in S1409-S1410, the device for transmitting UWB signals may also be replaced by: the second mobile phone 200 integrated with the function of transmitting UWB signals.
S1411:第一手机100根据第一时刻、第二时刻,确定定位设备700所在的车辆400与第一手机100的距离,以及确定UWB信号的传播方向。S1411: The first mobile phone 100 determines the distance between the vehicle 400 where the positioning device 700 is located and the first mobile phone 100 according to the first moment and the second moment, and determines the propagation direction of the UWB signal.
可以理解地,将车辆400与第一手机100的距离、与车辆400相对于第一手机100的方向结合起来,即可得到车辆400与第一手机100的更精确的第一相对位置信息。It can be understood that by combining the distance between the vehicle 400 and the first mobile phone 100 and the direction of the vehicle 400 relative to the first mobile phone 100 , more accurate first relative position information of the vehicle 400 and the first mobile phone 100 can be obtained.
下面结合S1412,介绍第一手机100如何根据第一相对位置信息指引乘客寻找车辆400。The following describes how the first mobile phone 100 guides passengers to find the vehicle 400 according to the first relative position information in conjunction with S1412.
S1412:第一手机100可以在第一界面101的地图上显示第三定位标识803。第三定位标识803用于标记第一手机100的GPS位置信息,以及第一手机100根据第一相对位置信息,在第一界面101中更新第一定位标识。S1412: The first mobile phone 100 may display the third location mark 803 on the map on the first interface 101 . The third location identifier 803 is used to mark the GPS location information of the first mobile phone 100 , and the first mobile phone 100 updates the first location identifier in the first interface 101 according to the first relative location information.
可以理解地,第一相对位置信息用于指示车辆400与第一手机100的距离和方向。如此,乘客即可通过第一相对位置信息,更精确的感知到车辆400与第一手机100的距离和方向。另外,第一相对位置信息还可以包括车辆400在地图上的更新后的第一定位标识801和用于指示车辆400的方向的箭头,如此,乘客还可以通过第三定位标识803和更新后的第一定位标识801的相对位置,以及和用于指示车辆400的方向的箭头,确定车辆400相对于第一手机100的方向和距离。Understandably, the first relative position information is used to indicate the distance and direction between the vehicle 400 and the first mobile phone 100 . In this way, the passenger can more accurately perceive the distance and direction between the vehicle 400 and the first mobile phone 100 through the first relative position information. In addition, the first relative position information may also include an updated first location mark 801 of the vehicle 400 on the map and an arrow used to indicate the direction of the vehicle 400. In this way, passengers may also pass the third location mark 803 and the updated The relative position of the first positioning mark 801 and the arrow used to indicate the direction of the vehicle 400 determine the direction and distance of the vehicle 400 relative to the first mobile phone 100 .
需要说明的是,S1412的工作原理可以参考上述的对图10的介绍,在此不再赘述。It should be noted that, for the working principle of S1412, reference may be made to the above-mentioned introduction to FIG. 10 , which will not be repeated here.
下面,结合S1413-S1416,介绍第一手机100如何将第一相对位置信息共享到第二手机200。Next, how the first mobile phone 100 shares the first relative position information to the second mobile phone 200 will be introduced in combination with S1413-S1416.
S1413:第二手机200响应于司机对第二界面201的第一控件203的触发操作,向第一手机100发送第一请求。其中,第一请求用于指示请求第一手机100的第一相对位置信息。S1413: The second mobile phone 200 sends a first request to the first mobile phone 100 in response to the driver's trigger operation on the first control 203 of the second interface 201 . Wherein, the first request is used to indicate to request the first relative location information of the first mobile phone 100 .
S1414:第一手机100响应于第一请求,在第一界面101显示第二提示信息102。其中,第二提示信息102用于指示向第二手机200共享第一相对位置信息。S1414: The first mobile phone 100 displays the second prompt information 102 on the first interface 101 in response to the first request. Wherein, the second prompt information 102 is used for instructing to share the first relative position information with the second mobile phone 200 .
S1415:第一手机100可以响应于乘客对第二提示信息102的确认操作,向第二手机200发送第一相对位置信息。S1415: The first mobile phone 100 may send the first relative position information to the second mobile phone 200 in response to the passenger's confirmation operation on the second prompt information 102 .
S1416:第二手机200根据第一相对位置信息和第二手机200的GPS位置信息,生成第二相对位置信息。S1416: The second mobile phone 200 generates second relative position information according to the first relative position information and the GPS position information of the second mobile phone 200 .
可以理解地,上述的S1413-S1416可以省略。Understandably, the above S1413-S1416 can be omitted.
下面结合S1418-S1419,介绍第二手机200如何根据第二相对位置信息,指引司机如何正确接到乘客。In the following, in combination with S1418-S1419, how the second mobile phone 200 guides the driver to pick up the passenger correctly according to the second relative position information will be introduced.
S1417:第二手机200在第二界面201中的地图上显示第一定位标识801和第二相对位置信息。其中,第一定位标识801用于指示车辆400在地图上的GPS定位信息。S1417: The second mobile phone 200 displays the first positioning mark 801 and the second relative position information on the map in the second interface 201 . Wherein, the first location mark 801 is used to indicate the GPS location information of the vehicle 400 on the map.
其中,S1417的具体流程和原理,可以参考上述对图12的介绍,在此不再赘述。Wherein, for the specific process and principle of S1417, reference may be made to the above-mentioned introduction to FIG. 12 , which will not be repeated here.
可以理解地,第二相对位置信息用于指示第一手机100与车辆400距离和方向。如此,司机即可通过第二相对位置信息,更精确的感知到第一手机100与车辆400的距离(如15.61米)和方向。第二界面201还可以显示有第三定位标识803,第三定位标识803用于指示第一手机100与车辆400在地图上的相对位置。Understandably, the second relative position information is used to indicate the distance and direction between the first mobile phone 100 and the vehicle 400 . In this way, the driver can more accurately perceive the distance (eg, 15.61 meters) and direction between the first mobile phone 100 and the vehicle 400 through the second relative position information. The second interface 201 may also display a third positioning mark 803, which is used to indicate the relative positions of the first mobile phone 100 and the vehicle 400 on the map.
另外,第二相对位置信息还可以包括:第五定位标识1201和用于指示第一手机100的方向的箭头,司机还可以通过第三定位标识803和第五定位标识1201,以及用于指示第一手机100的方向的箭头,确定第一手机100相对于车辆400的距离和方向。如此,司机可以更精确的确定第一手机100相对于自己的位置,以合理规划寻找乘客的路线。In addition, the second relative position information may also include: a fifth positioning mark 1201 and an arrow for indicating the direction of the first mobile phone 100, and the driver may also pass the third positioning mark 803 and the fifth positioning mark 1201, and an arrow for indicating the direction of the first An arrow in the direction of the mobile phone 100 determines the distance and direction of the first mobile phone 100 relative to the vehicle 400 . In this way, the driver can more accurately determine the position of the first mobile phone 100 relative to himself, so as to plan a reasonable route to find passengers.
S1418:当第一手机100与车辆400的距离小于预设的距离阈值的情况下,第二手机200在第二界面201显示第三提示信息205。其中,第三提示信息205用于指示确认乘客已上车。S1418: When the distance between the first mobile phone 100 and the vehicle 400 is less than a preset distance threshold, the second mobile phone 200 displays third prompt information 205 on the second interface 201 . Wherein, the third prompt information 205 is used to indicate to confirm that the passenger has boarded the vehicle.
下面,结合S1419介绍第一手机100如何根据第一相对位置信息指引乘客上车。Next, how the first mobile phone 100 guides passengers to get on the bus according to the first relative position information will be introduced in conjunction with S1419.
S1419:当第一手机100检测到车辆400与第一手机100的距离小于预设的距离阈值的情况下,第一手机100在第一界面101显示第一提示信息106,第一提示信息106用于指示乘客已上车。S1419: When the first mobile phone 100 detects that the distance between the vehicle 400 and the first mobile phone 100 is less than the preset distance threshold, the first mobile phone 100 displays the first prompt information 106 on the first interface 101, and the first prompt information 106 uses Yu instructed the passengers to get on the bus.
可以理解地,上述的S1418-S1420可以省略。Understandably, the above S1418-S1420 may be omitted.
图14为本申请实施例提供的定位方法的交互示意图。该定位方法的交互示意图可以概括上述的图4-图13的方法。FIG. 14 is an interactive schematic diagram of a positioning method provided by an embodiment of the present application. The interactive schematic diagram of the positioning method can summarize the above-mentioned methods in FIGS. 4-13 .
如图14所示,本申请提供的方法包括:As shown in Figure 14, the method provided by this application includes:
步骤1:云服务器300生成密钥和验证标识。Step 1: The cloud server 300 generates a key and a verification ID.
步骤2:云服务器300将密钥和验证标识发送到第一手机100和第二手机200。Step 2: The cloud server 300 sends the key and the verification ID to the first mobile phone 100 and the second mobile phone 200 .
步骤3:第二手机200在第一手机100和第二手机200的距离小于距离阈值时,发射加密的UWB信号。其中,UWB信号携带有密钥和验证标识。Step 3: The second mobile phone 200 transmits the encrypted UWB signal when the distance between the first mobile phone 100 and the second mobile phone 200 is less than the distance threshold. Wherein, the UWB signal carries a key and a verification identifier.
步骤4:第一手机100接收并解密来自第二手机200的UWB信号,根据UWB信号获取手机100和手机200的第一相对位置信息。Step 4: The first mobile phone 100 receives and decrypts the UWB signal from the second mobile phone 200, and obtains the first relative position information of the mobile phone 100 and the mobile phone 200 according to the UWB signal.
步骤5:根据第一相对位置信息导航且向第二手机200发送第一相对位置信息。Step 5: Navigate according to the first relative position information and send the first relative position information to the second mobile phone 200 .
步骤6:第二手机200根据第一相对位置信息导航。Step 6: The second mobile phone 200 navigates according to the first relative position information.
步骤7:在第一手机100和第二手机200的距离小于距离阈值,且在预设时间内未发生变化时,第一手机100确认上车。Step 7: When the distance between the first mobile phone 100 and the second mobile phone 200 is less than the distance threshold and does not change within a preset time, the first mobile phone 100 confirms getting in the car.
步骤8:在第一手机100和第二手机200的距离小于距离阈值,且在预设时间内未发生变化时,第二手机200确认乘客上车。Step 8: When the distance between the first mobile phone 100 and the second mobile phone 200 is less than the distance threshold and does not change within a preset time, the second mobile phone 200 confirms that the passenger gets on the bus.
步骤9:云服务器接收来自第一手机100和第二手机200的确认上车指令。在车辆400通过GPS位置信息判定为到达出行终点后,在第一手机100检测到第一手机100与车辆 400的距离大于预设的距离阈值(如1m、2m等)的情况下,第一手机100向云服务器300发送支付请求,云服务300确认完成支付,将支付内容下发至第二手机200(图15中未示意),可以进行更加精确的不需要额外操作的确认完成订单和支付的操作。Step 9: The cloud server receives the confirmation boarding instructions from the first mobile phone 100 and the second mobile phone 200 . After the vehicle 400 is determined to have reached the end of travel through the GPS location information, and the first mobile phone 100 detects that the distance between the first mobile phone 100 and the vehicle 400 is greater than a preset distance threshold (such as 1m, 2m, etc.), the first mobile phone 100 sends a payment request to the cloud server 300, and the cloud service 300 confirms that the payment is completed, and sends the payment content to the second mobile phone 200 (not shown in FIG. 15 ), which can confirm the completion of the order and payment more accurately without additional operations. operate.
另外,上述的介绍本申请实施例提供的定位方法中,提到的触发操作可以包括:点击操作、长按操作、以及手势触发操作等,在此不做限定。In addition, in the above introduction to the positioning method provided by the embodiment of the present application, the trigger operation mentioned may include: click operation, long press operation, and gesture trigger operation, etc., which are not limited here.
另外,上述的介绍本申请实施例提供的定位方法中,都是以定位信号为UWB信号为例说明的。可以理解地,UWB信号还可以被替换为超声波信号。对应地,定位设备中的蓝牙模块被替换为超声波收发模块,第一手机100中也设置有超声波收发模块。如此,定位设备可以实现发射超声波信号,第一手机100可以实现接收超声波信号。In addition, in the above description of the positioning method provided by the embodiment of the present application, the positioning signal is a UWB signal as an example for description. Understandably, the UWB signal can also be replaced by an ultrasonic signal. Correspondingly, the Bluetooth module in the positioning device is replaced with an ultrasonic transceiver module, and the first mobile phone 100 is also provided with an ultrasonic transceiver module. In this way, the positioning device can realize transmitting ultrasonic signals, and the first mobile phone 100 can realize receiving ultrasonic signals.
再者,上述的介绍本申请实施例提供的定位方法中,都是以定位设备700位于车辆说明的。另外,第二手机200还可以集成有UWB信号或超声波信号的发射功能,可以实现与定位设备700同样的功能。Furthermore, in the above description of the positioning method provided by the embodiment of the present application, it is described that the positioning device 700 is located in the vehicle. In addition, the second mobile phone 200 may also be integrated with a function of transmitting UWB signals or ultrasonic signals, so as to realize the same function as that of the positioning device 700 .
另外,在上述实施例中,为了进一步提高距离的精确度,根据UWB信号计算第一手机100与车辆400的距离的方式还可以被替换为:在检测到车辆400的GPS定位信息与出行起点的GPS定位信息之间的距离,小于预设的距离阈值的情况下,通知第一手机100发射经过加密的UWB信号1。第一手机100记录发射时刻Ta。定位设备700接收第一手机100发射的UWB信号1,并发射携带有加密的时间差T0的UWB信号2,其中,时间差T0为UWB信号1从第一手机100发射到定位设备700的时间差。第一手机100接收定位设备700发射的UWB信号2,并记录第二时刻Tb。并且通过密钥解密出UWB信号2中携带的时间差T0。如此,第一手机100可以根据公式D=c×(Tb-Ta-T0)/2计算第一手机100与车辆400的距离。其中,D为第一手机100与车辆400的距离,c为UWB信号的传输速度。In addition, in the above embodiment, in order to further improve the accuracy of the distance, the method of calculating the distance between the first mobile phone 100 and the vehicle 400 according to the UWB signal can also be replaced by: after detecting the GPS positioning information of the vehicle 400 and the starting point of the trip, If the distance between the GPS positioning information is less than the preset distance threshold, the first mobile phone 100 is notified to transmit the encrypted UWB signal 1 . The first mobile phone 100 records the time of transmission Ta. The positioning device 700 receives the UWB signal 1 transmitted by the first mobile phone 100, and transmits the UWB signal 2 with an encrypted time difference T0, wherein the time difference T0 is the time difference when the UWB signal 1 is transmitted from the first mobile phone 100 to the positioning device 700. The first mobile phone 100 receives the UWB signal 2 transmitted by the positioning device 700, and records the second time Tb. And the time difference T0 carried in the UWB signal 2 is decrypted through the key. In this way, the first mobile phone 100 can calculate the distance between the first mobile phone 100 and the vehicle 400 according to the formula D=c×(Tb-Ta-T0)/2. Wherein, D is the distance between the first mobile phone 100 and the vehicle 400, and c is the transmission speed of the UWB signal.
请参阅图15,本申请实施例还提供一种定位装置1500,应用于第一终端。如图15所示,本申请提供的装置1500包括通信单元1501、显示单元1502以及处理单元1503。其中,Referring to FIG. 15 , the embodiment of the present application further provides a positioning apparatus 1500, which is applied to a first terminal. As shown in FIG. 15 , an apparatus 1500 provided by this application includes a communication unit 1501 , a display unit 1502 and a processing unit 1503 . in,
通信单元1501,用于获取采用第一定位方法得到的第二终端的位置信息。显示单元1502,用于显示第一界面。其中,第一界面包括地图、第一定位标识和第二定位标识,第一定位标识用于在地图中标记第二终端的位置信息,第二定位标识用于在地图上标记目标位置的位置信息,目标位置为第一终端基于用户操作得到的。处理单元1503,用于在目标位置与第二终端之间的距离,小于预设的距离阈值的情况下,与第二终端之间采用第二定位方法进行定位。其中,第二定位方法的定位精度大于第一定位方法的定位精度。处理单元1503,还用于获取采用第二定位方法定位得到的第一终端与第二终端的第一相对位置信息。其中,第一相对位置信息包括第一终端与第二终端的距离和方向。显示单元1502,还用于根据第一相对位置信息,在第一界面中更新第一定位标识。The communication unit 1501 is configured to acquire the position information of the second terminal obtained by using the first positioning method. The display unit 1502 is configured to display the first interface. Wherein, the first interface includes a map, a first positioning mark and a second positioning mark, the first positioning mark is used to mark the location information of the second terminal on the map, and the second positioning mark is used to mark the position information of the target position on the map , the target location is obtained by the first terminal based on user operations. The processing unit 1503 is configured to use a second positioning method to perform positioning with the second terminal when the distance between the target location and the second terminal is smaller than a preset distance threshold. Wherein, the positioning accuracy of the second positioning method is greater than that of the first positioning method. The processing unit 1503 is further configured to acquire first relative position information of the first terminal and the second terminal that are positioned by using the second positioning method. Wherein, the first relative position information includes the distance and direction between the first terminal and the second terminal. The display unit 1502 is further configured to update the first positioning identifier on the first interface according to the first relative position information.
在一种可选地实施方式中,第一终端包括多个天线。通信单元1501,还用于在目标位置与第二终端之间的距离,小于预设的距离阈值的情况下,接收来自第二终端的位置的定位信号。其中,定位信号携带有定位信号被发射的第一时刻。处理单元1503,还用于记录接收到定位信号的第二时刻,根据第一时刻、第二时刻以及设定的信号传播速率,确定第二终端相对于第一终端的距离;以及根据多个天线和三点定位装置1500,确定第二 终端相对于第二终端的相对方向。In an optional implementation manner, the first terminal includes multiple antennas. The communication unit 1501 is further configured to receive a positioning signal from the location of the second terminal when the distance between the target location and the second terminal is smaller than a preset distance threshold. Wherein, the positioning signal carries the first moment when the positioning signal is transmitted. The processing unit 1503 is further configured to record the second moment when the positioning signal is received, determine the distance of the second terminal relative to the first terminal according to the first moment, the second moment, and the set signal propagation rate; and determine the distance between the second terminal and the first terminal according to the multiple antennas and the three-point positioning device 1500, determining the relative direction of the second terminal relative to the second terminal.
进一步地,通信单元1501,具体用于在目标位置与第二终端之间的距离,小于预设的距离阈值的情况下,则接收来自第二终端的定位信号。Further, the communication unit 1501 is specifically configured to receive a positioning signal from the second terminal when the distance between the target location and the second terminal is smaller than a preset distance threshold.
或者,进一步地,通信单元1501,具体用于在目标位置与第二终端之间的距离,小于预设的距离阈值的情况下,接收来自定位设备的定位信号。其中,定位设备与第二终端的位置相同。Or, further, the communication unit 1501 is specifically configured to receive a positioning signal from a positioning device when the distance between the target position and the second terminal is smaller than a preset distance threshold. Wherein, the location of the positioning device is the same as that of the second terminal.
在一种可选地实施方式中,第一终端和第二终端通过云服务器交互。通信单元1501,还用于接收来自云服务器的验证信息,其中,验证信息包括验证标识和密钥。通信单元1501,具体用于接收来自第二终端的位置且携带有验证标识、被密钥加密第一时刻的定位信号。处理单元1503,还用于在来自云服务器的验证标识与定位信号携带的验证标识一致的情况下,第一终端根据密钥解密第一时刻。In an optional implementation manner, the first terminal interacts with the second terminal through a cloud server. The communication unit 1501 is further configured to receive verification information from the cloud server, where the verification information includes a verification ID and a key. The communication unit 1501 is specifically configured to receive a location signal from the second terminal that carries a verification identifier and is encrypted by a key at the first moment. The processing unit 1503 is further configured to decrypt the first moment by the first terminal according to the key when the verification identifier from the cloud server is consistent with the verification identifier carried by the positioning signal.
在一种可选地实施方式中,定位信号为UWB信号或超声波信号。In an optional implementation manner, the positioning signal is a UWB signal or an ultrasonic signal.
在一种可选地实施方式中,第一相对位置信息包括用于指示第二终端相对于第一终端的距离和方向的文字信息。In an optional implementation manner, the first relative position information includes text information used to indicate the distance and direction of the second terminal relative to the first terminal.
在一种可选地实施方式中,显示单元1502,还用于当第二终端与第一终端的距离小于预设的距离阈值的情况下,第一终端在第一界面显示第一提示信息,第一提示信息用于指示乘客已上车。In an optional implementation manner, the display unit 1502 is further configured to, when the distance between the second terminal and the first terminal is less than a preset distance threshold, the first terminal display the first prompt information on the first interface, The first prompt information is used to indicate that passengers have boarded the vehicle.
在一种可选地实施方式中,通信单元1501,还用于接收来自第二终端的第一请求。其中,第一请求用于请求第一终端的第一相对位置信息。显示单元1502,还用于响应于第一请求,在第一界面显示第二提示信息。其中,第二提示信息用于指示向第二终端共享第一相对位置信息。通信单元1501,还用于响应于对第二提示信息的确认操作,向第二终端发送第一相对位置信息。In an optional implementation manner, the communication unit 1501 is further configured to receive the first request from the second terminal. Wherein, the first request is used to request first relative location information of the first terminal. The display unit 1502 is further configured to display second prompt information on the first interface in response to the first request. Wherein, the second prompt information is used to indicate to share the first relative position information with the second terminal. The communication unit 1501 is further configured to send the first relative position information to the second terminal in response to the confirmation operation on the second prompt information.
示例性的,图16为本申请实施例提供的一种第一终端和第二终端的硬件结构示意图,如图16所示,该第一终端和第二终端包括处理器1601,通信线路1604以及至少一个通信接口(图16中示例性的以通信接口1603为例进行说明)。Exemplarily, FIG. 16 is a schematic diagram of a hardware structure of a first terminal and a second terminal provided in an embodiment of the present application. As shown in FIG. 16 , the first terminal and the second terminal include a processor 1601, a communication line 1604 and At least one communication interface (the communication interface 1603 is used as an example in FIG. 16 for illustration).
处理器1601可以是一个通用中央处理器(central processing unit,CPU),微处理器,特定应用集成电路(application-specific integrated circuit,ASIC),或一个或多个用于控制本申请方案程序执行的集成电路。The processor 1601 can be a general-purpose central processing unit (central processing unit, CPU), a microprocessor, a specific application integrated circuit (application-specific integrated circuit, ASIC), or one or more for controlling the execution of the program program of this application integrated circuit.
通信线路1604可包括在上述组件之间传送信息的电路。 Communication lines 1604 may include circuitry that communicates information between the components described above.
通信接口1603,使用任何收发器一类的装置,用于与其他设备或通信网络通信,如以太网,无线局域网(wireless local area networks,WLAN)等。The communication interface 1603 uses any device such as a transceiver for communicating with other devices or communication networks, such as Ethernet, wireless local area networks (wireless local area networks, WLAN) and so on.
可能的,该第一终端和第二终端还可以包括存储器1602。Possibly, the first terminal and the second terminal may further include a memory 1602 .
存储器1602可以是只读存储器(read-only memory,ROM)或可存储静态信息和指令的其他类型的静态存储设备,随机存取存储器(random access memory,RAM)或者可存储信息和指令的其他类型的动态存储设备,也可以是电可擦可编程只读存储器(electrically erasable programmable read-only memory,EEPROM)、只读光盘(compact disc read-only memory,CD-ROM)或其他光盘存储、光碟存储(包括压缩光碟、激光碟、光碟、数字通用光碟、蓝光光碟等)、磁盘存储介质或者其他磁存储设备、或者能够用于携带或存储具有指令或数据结构形式的期望的程序代码并能够由计算机存取的任何其他介质,但不限 于此。存储器可以是独立存在,通过通信线路1604与处理器相连接。存储器也可以和处理器集成在一起。The memory 1602 may be a read-only memory (ROM) or other types of static storage devices that can store static information and instructions, a random access memory (random access memory, RAM) or other types that can store information and instructions It can also be an electrically erasable programmable read-only memory (EEPROM), compact disc read-only memory (CD-ROM) or other optical disc storage, optical disc storage (including compact discs, laser discs, optical discs, digital versatile discs, Blu-ray discs, etc.), magnetic disk storage media or other magnetic storage devices, or can be used to carry or store desired program code in the form of instructions or data structures and can be programmed by a computer Any other medium accessed, but not limited to. The memory may exist independently and be connected to the processor through the communication line 1604 . Memory can also be integrated with the processor.
其中,存储器1602用于存储执行本申请方案的计算机执行指令,并由处理器1601来控制执行。处理器1601用于执行存储器1602中存储的计算机执行指令,从而实现本申请实施例所提供的第一终端或第二终端执行的定位方法。Wherein, the memory 1602 is used to store computer-executed instructions for implementing the solution of the present application, and the execution is controlled by the processor 1601 . The processor 1601 is configured to execute computer-executed instructions stored in the memory 1602, so as to implement the positioning method performed by the first terminal or the second terminal provided in the embodiment of the present application.
可能的,本申请实施例中的计算机执行指令也可以称之为应用程序代码,本申请实施例对此不作具体限定。Possibly, the computer-executed instructions in the embodiment of the present application may also be referred to as application program code, which is not specifically limited in the embodiment of the present application.
在具体实现中,作为一种实施例,处理器1601可以包括一个或多个CPU,例如图16中的CPU0和CPU1。In a specific implementation, as an embodiment, the processor 1601 may include one or more CPUs, for example, CPU0 and CPU1 in FIG. 16 .
在具体实现中,作为一种实施例,第一终端和第二终端可以包括多个处理器,例如图16中的处理器1601和处理器1605。这些处理器中的每一个可以是一个单核(single-CPU)处理器,也可以是一个多核(multi-CPU)处理器。这里的处理器可以指一个或多个设备、电路、和/或用于处理数据(例如计算机程序指令)的处理核。In a specific implementation, as an example, the first terminal and the second terminal may include multiple processors, for example, processor 1601 and processor 1605 in FIG. 16 . Each of these processors may be a single-core (single-CPU) processor or a multi-core (multi-CPU) processor. A processor herein may refer to one or more devices, circuits, and/or processing cores for processing data (eg, computer program instructions).
示例性的,图17为本申请实施例提供的一种芯片的结构示意图。芯片170包括一个或两个以上(包括两个)处理器1710和通信接口1730。Exemplarily, FIG. 17 is a schematic structural diagram of a chip provided by an embodiment of the present application. The chip 170 includes one or more than two (including two) processors 1710 and a communication interface 1730 .
在一些实施方式中,存储器1740存储了如下的元素:可执行模块或者数据结构,或者他们的子集,或者他们的扩展集。In some implementations, memory 1740 stores the following elements: executable modules or data structures, or subsets thereof, or extensions thereof.
本申请实施例中,存储器1740可以包括只读存储器和随机存取存储器,并向处理器1710提供指令和数据。存储器1740的一部分还可以包括非易失性随机存取存储器(non-volatile random access memory,NVRAM)。In this embodiment of the present application, the memory 1740 may include a read-only memory and a random access memory, and provides instructions and data to the processor 1710 . A part of the memory 1740 may also include a non-volatile random access memory (non-volatile random access memory, NVRAM).
本申请实施例中,存储器1740、通信接口1730以及存储器1740通过总线系统1720耦合在一起。其中,总线系统1720除包括数据总线之外,还可以包括电源总线、控制总线和状态信号总线等。为了便于描述,在图17中将各种总线都标为总线系统1720。In the embodiment of the present application, the memory 1740 , the communication interface 1730 and the memory 1740 are coupled together through the bus system 1720 . Wherein, the bus system 1720 may include not only a data bus, but also a power bus, a control bus, and a status signal bus. For ease of description, the various buses are labeled bus system 1720 in FIG. 17 .
上述本申请实施例描述的第一终端或第二终端执行的方法可以应用于处理器1710中,或者由处理器1710实现。处理器1710可能是一种集成电路芯片,具有信号的处理能力。在实现过程中,上述方法的各步骤可以通过处理器1710中的硬件的集成逻辑电路或者软件形式的指令完成。上述的处理器1710可以是通用处理器(例如,微处理器或常规处理器)、数字信号处理器(digital signal processing,DSP)、专用集成电路(application specific integrated circuit,ASIC)、现成可编程门阵列(field-programmable gate array,FPGA)或者其他可编程逻辑器件、分立门、晶体管逻辑器件或分立硬件组件,处理器1710可以实现或者执行本申请实施例中的公开的第一终端或第二终端执行的方法、步骤及逻辑框图。The method performed by the first terminal or the second terminal described in the above embodiments of the present application may be applied to the processor 1710 or implemented by the processor 1710 . The processor 1710 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method may be implemented by an integrated logic circuit of hardware in the processor 1710 or instructions in the form of software. The above-mentioned processor 1710 may be a general-purpose processor (for example, a microprocessor or a conventional processor), a digital signal processor (digital signal processing, DSP), an application specific integrated circuit (application specific integrated circuit, ASIC), an off-the-shelf programmable gate Array (field-programmable gate array, FPGA) or other programmable logic devices, discrete gates, transistor logic devices or discrete hardware components, the processor 1710 can implement or execute the first terminal or the second terminal disclosed in the embodiments of the present application Execution method, steps and logic block diagram.
结合本申请实施例所公开的第一终端或第二终端执行的方法的步骤可以直接体现为硬件译码处理器执行完成,或者用译码处理器中的硬件及软件模块组合执行完成。其中,软件模块可以位于随机存储器、只读存储器、可编程只读存储器或带电可擦写可编程存储器(electrically erasable programmable read only memory,EEPROM)等本领域成熟的存储介质中。该存储介质位于存储器1740,处理器1710读取存储器1740中的信息,结合其硬件完成上述第一终端或第二终端执行的方法的步骤。The steps of the method performed by the first terminal or the second terminal disclosed in the embodiments of the present application may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. Wherein, the software module may be located in a mature storage medium in the field such as random access memory, read-only memory, programmable read-only memory, or electrically erasable programmable read only memory (EEPROM). The storage medium is located in the memory 1740, and the processor 1710 reads the information in the memory 1740, and combines its hardware to complete the above-mentioned steps of the method executed by the first terminal or the second terminal.
在上述实施例中,存储器存储的供处理器执行的指令可以以计算机程序产品的形式实现。其中,计算机程序产品可以是事先写入在存储器中,也可以是以软件形式下载并安装 在存储器中。In the above embodiments, the instructions stored in the memory for execution by the processor may be implemented in the form of computer program products. Wherein, the computer program product may be written in the memory in advance, or may be downloaded and installed in the memory in the form of software.
计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行计算机程序指令时,全部或部分地产生按照本申请实施例的流程或功能。计算机可以是通用计算机、专用计算机、计算机网络或者其他可编程装置。计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一计算机可读存储介质传输,例如,计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线(digital subscriber line,DSL)或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。计算机可读存储介质可以是计算机能够存储的任何可用介质或者是包括一个或多个可用介质集成的服务器、数据中心等数据存储设备。例如,可用介质可以包括磁性介质(例如,软盘、硬盘或磁带)、光介质(例如,数字通用光盘(digital versatile disc,DVD))、或者半导体介质(例如,固态硬盘(solid state disk,SSD))等。A computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on the computer, the processes or functions according to the embodiments of the present application will be generated in whole or in part. The computer can be a general purpose computer, special purpose computer, computer network, or other programmable apparatus. Computer instructions may be stored in or transmitted from one computer-readable storage medium to another computer-readable storage medium, e.g. Coaxial cable, optical fiber, digital subscriber line (digital subscriber line, DSL) or wireless (such as infrared, wireless, microwave, etc.) transmission to another website site, computer, server or data center. Computer readable storage medium can be Any available media capable of being stored by a computer or a data storage device such as a server, data center, etc. integrated with one or more available media. For example, available media may include magnetic media (e.g., floppy disks, hard disks, or tapes), optical media (e.g., A digital versatile disc (digital versatile disc, DVD)), or a semiconductor medium (for example, a solid state disk (solid state disk, SSD)), etc.
本申请实施例还提供了一种计算机可读存储介质。上述实施例中描述的第一终端或第二终端执行的方法可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。计算机可读介质可以包括计算机存储介质和通信介质,还可以包括任何可以将计算机程序从一个地方传送到另一个地方的介质。存储介质可以是可由计算机访问的任何目标介质。The embodiment of the present application also provides a computer-readable storage medium. The methods performed by the first terminal or the second terminal described in the foregoing embodiments may be implemented in whole or in part by software, hardware, firmware or any combination thereof. Computer-readable media may include computer storage media and communication media, and may include any medium that can transfer a computer program from one place to another. A storage media may be any target media that can be accessed by a computer.
作为一种可能的设计,计算机可读介质可以包括紧凑型光盘只读储存器(compact disc read-only memory,CD-ROM)、RAM、ROM、EEPROM或其它光盘存储器;计算机可读介质可以包括磁盘存储器或其它磁盘存储设备。而且,任何连接线也可以被适当地称为计算机可读介质。例如,如果使用同轴电缆,光纤电缆,双绞线,DSL或无线技术(如红外,无线电和微波)从网站,服务器或其它远程源传输软件,则同轴电缆,光纤电缆,双绞线,DSL或诸如红外,无线电和微波之类的无线技术包括在介质的定义中。如本文所使用的磁盘和光盘包括光盘(CD),激光盘,光盘,数字通用光盘(digital versatile disc,DVD),软盘和蓝光盘,其中磁盘通常以磁性方式再现数据,而光盘利用激光光学地再现数据。As a possible design, the computer-readable medium may include compact disc read-only memory (compact disc read-only memory, CD-ROM), RAM, ROM, EEPROM or other optical disc storage; the computer-readable medium may include a magnetic disk memory or other disk storage devices. Also, any connected cord is properly termed a computer-readable medium. For example, if the software is transmitted from a website, server, or other remote source using coaxial cable, fiber optic cable, twisted pair, DSL, or wireless technologies such as infrared, radio, and microwave, then coaxial cable, fiber optic cable, twisted pair, DSL or wireless technologies such as infrared, radio and microwave are included in the definition of medium. Disk and disc, as used herein, includes compact disc (CD), laser disc, compact disc, digital versatile disc (DVD), floppy disk and Blu-ray disc where disks usually reproduce data magnetically, while discs reproduce data optically with lasers. Reproduce data.
上述的组合也应包括在计算机可读介质的范围内。以上,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以权利要求的保护范围为准。Combinations of the above should also be included within the scope of computer-readable media. The above is only the specific implementation of the application, but the scope of protection of the application is not limited thereto. Anyone familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the application, and should cover Within the protection scope of this application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims (24)

  1. 一种定位方法,其特征在于,应用于通信系统,所述通信系统包括第一终端和第二终端,所述方法包括:A positioning method, characterized in that it is applied to a communication system, the communication system includes a first terminal and a second terminal, and the method includes:
    所述第一终端获取采用第一定位方法得到的所述第二终端的位置信息;The first terminal acquires the location information of the second terminal obtained by using the first positioning method;
    所述第一终端显示第一界面,其中,所述第一界面包括地图、第一定位标识和第二定位标识,所述第一定位标识用于在所述地图中标记所述第二终端的位置信息,所述第二定位标识用于在所述地图上标记目标位置的位置信息,所述目标位置为所述第一终端基于用户操作得到的;The first terminal displays a first interface, where the first interface includes a map, a first location identifier, and a second location identifier, and the first location identifier is used to mark the location of the second terminal on the map. location information, the second positioning identifier is used to mark the location information of a target location on the map, and the target location is obtained by the first terminal based on a user operation;
    在所述目标位置与所述第二终端之间的距离,小于预设的距离阈值的情况下,所述第一终端与所述第二终端之间采用第二定位方法进行定位,其中,所述第二定位方法的定位精度大于所述第一定位方法的定位精度;When the distance between the target location and the second terminal is less than a preset distance threshold, the first terminal and the second terminal are positioned using a second positioning method, wherein the The positioning accuracy of the second positioning method is greater than the positioning accuracy of the first positioning method;
    所述第一终端获取采用所述第二定位方法定位得到的所述第一终端与所述第二终端的第一相对位置信息,所述第一相对位置信息包括所述第一终端与所述第二终端的距离和方向;The first terminal acquires first relative position information of the first terminal and the second terminal obtained by positioning using the second positioning method, and the first relative position information includes the first relative position information of the first terminal and the the distance and direction of the second terminal;
    所述第一终端根据所述第一相对位置信息,在所述第一界面中更新所述第一定位标识。The first terminal updates the first positioning identifier on the first interface according to the first relative position information.
  2. 根据权利要求1所述的方法,其特征在于,所述第一终端包括多个天线,在所述目标位置与所述第二终端之间的距离,小于预设的距离阈值的情况下,所述第一终端与所述第二终端之间采用第二定位方法进行定位,包括:The method according to claim 1, wherein the first terminal includes multiple antennas, and when the distance between the target location and the second terminal is less than a preset distance threshold, the The second positioning method is used for positioning between the first terminal and the second terminal, including:
    在所述目标位置与所述第二终端之间的距离,小于预设的距离阈值的情况下,所述第一终端接收来自所述第二终端的位置的定位信号,其中,所述定位信号携带有所述定位信号被发射的第一时刻;When the distance between the target position and the second terminal is less than a preset distance threshold, the first terminal receives a positioning signal from the position of the second terminal, wherein the positioning signal carry the first moment when the positioning signal is transmitted;
    所述第一终端记录接收到所述定位信号的第二时刻;The first terminal records the second moment when the positioning signal is received;
    所述第一终端根据所述第一时刻、所述第二时刻以及设定的信号传播速率,确定所述第二终端相对于所述第一终端的距离;The first terminal determines the distance of the second terminal relative to the first terminal according to the first moment, the second moment and a set signal propagation rate;
    所述第一终端根据所述多个天线和三点定位方法,确定所述第二终端相对于所述第二终端的相对方向。The first terminal determines the relative direction of the second terminal relative to the second terminal according to the plurality of antennas and the three-point positioning method.
  3. 根据权利要求2所述的方法,其特征在于,所述在所述目标位置与所述第二终端之间的距离,小于预设的距离阈值的情况下,所述第一终端接收来自所述第二终端的位置的定位信号,包括:The method according to claim 2, wherein when the distance between the target location and the second terminal is less than a preset distance threshold, the first terminal receives the The positioning signal of the location of the second terminal, comprising:
    所述第二终端在检测到所述目标位置与所述第二终端之间的距离,小于预设的距离阈值的情况下,则所述第二终端发射所述定位信号;When the second terminal detects that the distance between the target location and the second terminal is less than a preset distance threshold, the second terminal transmits the positioning signal;
    所述第一终端接收来自所述第二终端的所述定位信号。The first terminal receives the positioning signal from the second terminal.
  4. 根据权利要求2所述的方法,其特征在于,所述在所述目标位置与所述第二终端之间的距离,小于预设的距离阈值的情况下,所述第一终端接收来自所述第二终端的位置的定位信号,包括:The method according to claim 2, wherein when the distance between the target location and the second terminal is less than a preset distance threshold, the first terminal receives the The positioning signal of the location of the second terminal, comprising:
    所述第二终端在检测到所述目标位置与所述第二终端之间的距离,小于预设的距离阈值的情况下,通知定位设备发射所述定位信号,其中,所述定位设备与所述第二终端的位 置相同;When the second terminal detects that the distance between the target position and the second terminal is less than a preset distance threshold, it notifies the positioning device to transmit the positioning signal, wherein the positioning device and the The position of the second terminal is the same;
    所述第一终端接收来自所述定位设备的定位信号。The first terminal receives a positioning signal from the positioning device.
  5. 根据权利要求2所述的方法,其特征在于,所述第一终端和所述第二终端通过云服务器交互,在所述第一终端显示第一界面之前,所述方法还包括:The method according to claim 2, wherein the first terminal and the second terminal interact through a cloud server, and before the first terminal displays the first interface, the method further comprises:
    所述第一终端和所述第二终端接收来自所述云服务器的验证信息,其中,所述验证信息包括验证标识和密钥;The first terminal and the second terminal receive verification information from the cloud server, where the verification information includes a verification ID and a key;
    所述第一终端接收来自所述第二终端的位置的定位信号,包括:所述第一终端接收来自所述第二终端的位置且携带有验证标识、被密钥加密所述第一时刻的定位信号;The receiving by the first terminal of the positioning signal from the location of the second terminal includes: the first terminal receiving the positioning signal from the location of the second terminal, which carries a verification identifier and is encrypted by a key at the first moment positioning signal;
    在所述第一终端根据所述第一时刻、所述第二时刻以及设定的信号传播速率,确定所述第二终端相对于所述第一终端的距离之前,所述方法还包括:Before the first terminal determines the distance of the second terminal relative to the first terminal according to the first moment, the second moment and the set signal propagation rate, the method further includes:
    在来自所述云服务器的所述验证标识与所述定位信号携带的验证标识一致的情况下,所述第一终端根据所述密钥解密所述第一时刻。In a case where the verification identifier from the cloud server is consistent with the verification identifier carried in the positioning signal, the first terminal decrypts the first moment according to the key.
  6. 根据权利要求2-5任一所述的方法,其特征在于,所述定位信号为UWB信号或超声波信号。The method according to any one of claims 2-5, wherein the positioning signal is a UWB signal or an ultrasonic signal.
  7. 根据权利要求1所述的方法,其特征在于,所述第一相对位置信息包括用于指示所述第二终端相对于所述第一终端的距离和方向的文字信息。The method according to claim 1, wherein the first relative position information includes text information for indicating the distance and direction of the second terminal relative to the first terminal.
  8. 根据权利要求7所述的方法,其特征在于,所述第一终端在所述第一界面的地图上还显示有第三定位标识,其中,所述第三定位标识用于标记通过所述第一定位方法得到的所述第一终端的位置信息,所述第一定位标识的内容更新为指示所述第二终端与所述第一终端在所述地图上的相对位置,所述第一相对位置信息还包括:从所述第三定位标识指向更新后的所述第一定位标识的箭头。The method according to claim 7, wherein the first terminal further displays a third positioning mark on the map of the first interface, wherein the third positioning mark is used to mark the The position information of the first terminal obtained by a positioning method, the content of the first positioning identifier is updated to indicate the relative position of the second terminal and the first terminal on the map, and the first relative The location information further includes: an arrow pointing from the third location identifier to the updated first location identifier.
  9. 根据权利要求7所述的方法,其特征在于,所述文字信息的内容随着所述第一相对位置信息的变化而更新。The method according to claim 7, wherein the content of the text information is updated along with the change of the first relative position information.
  10. 根据权利要求1所述的方法,其特征在于,当所述第二终端与所述第一终端的距离小于预设的距离阈值的情况下,所述第一终端在所述第一界面显示第一提示信息,所述第一提示信息用于指示乘客已上车。The method according to claim 1, wherein when the distance between the second terminal and the first terminal is less than a preset distance threshold, the first terminal displays the first A prompt message, the first prompt message is used to indicate that the passenger has boarded the vehicle.
  11. 根据权利要求1所述的方法,其特征在于,所述方法还包括:The method according to claim 1, further comprising:
    所述第二终端显示第二界面,所述第二界面包括第一控件和第三定位标识,其中,所述第三定位标识用于标记通过所述第一定位方法得到的所述第一终端的位置信息;The second terminal displays a second interface, the second interface includes a first control and a third positioning mark, wherein the third positioning mark is used to mark the first terminal obtained by the first positioning method location information;
    所述第二终端响应于对所述第一控件的触发操作,向所述第一终端发送第一请求,其中,所述第一请求用于请求所述第一终端的第一相对位置信息;The second terminal sends a first request to the first terminal in response to a trigger operation on the first control, where the first request is used to request first relative position information of the first terminal;
    所述第一终端响应于所述第一请求,在所述第一界面显示第二提示信息,其中,所述第二提示信息用于指示向所述第二终端共享所述第一相对位置信息;The first terminal displays second prompt information on the first interface in response to the first request, where the second prompt information is used to indicate to share the first relative position information with the second terminal ;
    所述第一终端响应于对所述第二提示信息的确认操作,向所述第二终端发送所述第一相对位置信息;The first terminal sends the first relative position information to the second terminal in response to an operation for confirming the second prompt information;
    所述第二终端根据所述第一相对位置信息和所述第二终端采用第一定位方法得到的位置信息,生成所述第一终端与所述第二终端的第二相对位置信息,generating, by the second terminal, second relative position information between the first terminal and the second terminal according to the first relative position information and position information obtained by the second terminal using a first positioning method,
    所述第二终端根据所述第二相对位置信息,在所述第二界面中更新所述第三定位标识。The second terminal updates the third positioning identifier on the second interface according to the second relative position information.
  12. 根据权利要求11所述的方法,其特征在于,所述第二相对位置信息包括用于指示 所述第一终端相对于所述第二终端的距离和方向的文字信息。The method according to claim 11, wherein the second relative position information includes text information for indicating the distance and direction of the first terminal relative to the second terminal.
  13. 根据权利要求12所述的方法,其特征在于,所述第二界面还显示有所述第一定位标识和第三定位标识,其中,第三定位标识用于指示所述第一终端与所述第二终端在所述地图上的相对位置,所述第二相对位置信息还包括:从第一定位标识指向所述第三定位标识的箭头。The method according to claim 12, wherein the second interface further displays the first positioning mark and the third positioning mark, wherein the third positioning mark is used to indicate that the first terminal and the For the relative position of the second terminal on the map, the second relative position information further includes: an arrow pointing from the first positioning mark to the third positioning mark.
  14. 根据权利要求11所述的方法,其特征在于,当所述第一终端与所述第二终端的距离小于预设的距离阈值的情况下,所述第二终端在所述第二界面显示第三提示信息,第三提示信息用于指示乘客已上车。The method according to claim 11, wherein when the distance between the first terminal and the second terminal is less than a preset distance threshold, the second terminal displays the first Three prompt information, the third prompt information is used to indicate that the passenger has boarded the bus.
  15. 一种定位装置,其特征在于,应用于第一终端,所述装置包括:A positioning device is characterized in that it is applied to a first terminal, and the device includes:
    通信单元,用于获取采用第一定位方法得到的第二终端的位置信息;a communication unit, configured to acquire the position information of the second terminal obtained by using the first positioning method;
    显示单元,用于显示第一界面,其中,所述第一界面包括地图、第一定位标识和第二定位标识,所述第一定位标识用于在所述地图中标记所述第二终端的位置信息,所述第二定位标识用于在所述地图上标记目标位置的位置信息,所述目标位置为所述第一终端基于用户操作得到的;A display unit, configured to display a first interface, where the first interface includes a map, a first location mark, and a second location mark, and the first location mark is used to mark the location of the second terminal on the map location information, the second positioning identifier is used to mark the location information of a target location on the map, and the target location is obtained by the first terminal based on a user operation;
    处理单元,用于在所述目标位置与所述第二终端之间的距离,小于预设的距离阈值的情况下,与所述第二终端之间采用第二定位方法进行定位,其中,所述第二定位方法的定位精度大于所述第一定位方法的定位精度;A processing unit, configured to use a second positioning method to perform positioning with the second terminal when the distance between the target position and the second terminal is less than a preset distance threshold, wherein the The positioning accuracy of the second positioning method is greater than the positioning accuracy of the first positioning method;
    所述处理单元,还用于获取采用所述第二定位方法定位得到的所述第一终端与所述第二终端的第一相对位置信息,其中,所述第一相对位置信息包括所述第一终端与所述第二终端的距离和方向;The processing unit is further configured to acquire first relative position information of the first terminal and the second terminal obtained by using the second positioning method, wherein the first relative position information includes the first the distance and direction between a terminal and said second terminal;
    所述显示单元,还用于根据所述第一相对位置信息,在所述第一界面中更新所述第一定位标识。The display unit is further configured to update the first positioning mark on the first interface according to the first relative position information.
  16. 根据权利要求15所述的装置,其特征在于,所述第一终端包括多个天线,The apparatus according to claim 15, wherein the first terminal comprises a plurality of antennas,
    所述通信单元,还用于在所述目标位置与所述第二终端之间的距离,小于预设的距离阈值的情况下,接收来自所述第二终端的位置的定位信号,其中,所述定位信号携带有所述定位信号被发射的第一时刻;The communication unit is further configured to receive a positioning signal from the position of the second terminal when the distance between the target position and the second terminal is less than a preset distance threshold, wherein the The positioning signal carries the first moment when the positioning signal is transmitted;
    所述处理单元,还用于记录接收到所述定位信号的第二时刻,根据所述第一时刻、所述第二时刻以及设定的信号传播速率,确定所述第二终端相对于所述第一终端的距离;以及根据所述多个天线和三点定位装置,确定所述第二终端相对于所述第二终端的相对方向。The processing unit is further configured to record the second moment when the positioning signal is received, and determine the relative distance between the second terminal and the the distance of the first terminal; and determining the relative direction of the second terminal relative to the second terminal according to the plurality of antennas and the three-point positioning device.
  17. 根据权利要求16所述的装置,其特征在于,所述通信单元,具体用于在所述目标位置与所述第二终端之间的距离,小于预设的距离阈值的情况下,则接收来自所述第二终端的所述定位信号。The device according to claim 16, wherein the communication unit is specifically configured to, when the distance between the target location and the second terminal is less than a preset distance threshold, then receive the The positioning signal of the second terminal.
  18. 根据权利要求16所述的装置,其特征在于,所述通信单元,具体用于在所述目标位置与所述第二终端之间的距离,小于预设的距离阈值的情况下,接收来自定位设备的定位信号,其中,所述定位设备与所述第二终端的位置相同。The device according to claim 16, wherein the communication unit is specifically configured to receive a positioning message from the location when the distance between the target location and the second terminal is less than a preset distance threshold. A location signal of a device, wherein the location of the location device is the same as that of the second terminal.
  19. 根据权利要求16所述的装置,其特征在于,所述第一终端和所述第二终端通过云服务器交互,The device according to claim 16, wherein the first terminal and the second terminal interact through a cloud server,
    所述通信单元,还用于接收来自所述云服务器的验证信息,其中,所述验证信息包括验证标识和密钥;The communication unit is further configured to receive verification information from the cloud server, wherein the verification information includes a verification ID and a key;
    所述通信单元,具体用于接收来自所述第二终端的位置且携带有验证标识、被密钥加密所述第一时刻的定位信号;The communication unit is specifically configured to receive a location signal from the second terminal that carries a verification identifier and is encrypted at the first moment by a key;
    所述处理单元,还用于在来自所述云服务器的所述验证标识与所述定位信号携带的验证标识一致的情况下,所述第一终端根据所述密钥解密所述第一时刻。The processing unit is further configured to, when the verification identifier from the cloud server is consistent with the verification identifier carried by the positioning signal, decrypt the first moment by the first terminal according to the key.
  20. 根据权利要求16-19任一所述的装置,其特征在于,所述定位信号为UWB信号或超声波信号。The device according to any one of claims 16-19, wherein the positioning signal is a UWB signal or an ultrasonic signal.
  21. 根据权利要求15所述的装置,其特征在于,所述第一相对位置信息包括用于指示所述第二终端相对于所述第一终端的距离和方向的文字信息。The device according to claim 15, wherein the first relative position information includes text information for indicating the distance and direction of the second terminal relative to the first terminal.
  22. 根据权利要求15所述的装置,其特征在于,所述显示单元,还用于当所述第二终端与所述第一终端的距离小于预设的距离阈值的情况下,所述第一终端在所述第一界面显示第一提示信息,所述第一提示信息用于指示乘客已上车。The device according to claim 15, wherein the display unit is further configured to, when the distance between the second terminal and the first terminal is less than a preset distance threshold, the first terminal Displaying first prompt information on the first interface, the first prompt information is used to indicate that passengers have boarded the vehicle.
  23. 根据权利要求15所述的装置,其特征在于,The device according to claim 15, characterized in that,
    所述通信单元,还用于接收来自所述第二终端的第一请求,其中,所述第一请求用于请求所述第一终端的第一相对位置信息;The communication unit is further configured to receive a first request from the second terminal, where the first request is used to request first relative position information of the first terminal;
    所述显示单元,还用于响应于所述第一请求,在所述第一界面显示第二提示信息,其中,所述第二提示信息用于指示向所述第二终端共享所述第一相对位置信息;The display unit is further configured to display second prompt information on the first interface in response to the first request, where the second prompt information is used to indicate that the first prompt is shared with the second terminal. Relative location information;
    所述通信单元,还用于响应于对所述第二提示信息的确认操作,向所述第二终端发送所述第一相对位置信息。The communication unit is further configured to send the first relative position information to the second terminal in response to a confirmation operation on the second prompt information.
  24. 一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,其特征在于,所述计算机程序被处理器执行时,使得计算机执行如权利要求1至14任一项中所述第一终端执行的方法。A computer-readable storage medium, the computer-readable storage medium stores a computer program, wherein, when the computer program is executed by a processor, the computer executes the first step as described in any one of claims 1 to 14. A method executed by a terminal.
PCT/CN2022/094226 2021-08-18 2022-05-20 Positioning method and apparatus WO2023020055A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110951404.9A CN113660611B (en) 2021-08-18 2021-08-18 Positioning method and device
CN202110951404.9 2021-08-18

Publications (1)

Publication Number Publication Date
WO2023020055A1 true WO2023020055A1 (en) 2023-02-23

Family

ID=78481143

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/094226 WO2023020055A1 (en) 2021-08-18 2022-05-20 Positioning method and apparatus

Country Status (2)

Country Link
CN (1) CN113660611B (en)
WO (1) WO2023020055A1 (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20230315415A1 (en) * 2022-03-25 2023-10-05 Micron Technology, Inc. Programming a Coarse Grained Reconfigurable Array through Description of Data Flow Graphs
US11809361B1 (en) 2022-07-15 2023-11-07 Micron Technology, Inc. Network data storage devices having external access control
US11853819B1 (en) 2022-07-15 2023-12-26 Micron Technology, Inc. Message queues in network-ready storage products having computational storage processors
US11868828B1 (en) 2022-07-15 2024-01-09 Micron Technology, Inc. Message routing in a network-ready storage product for internal and external processing
US11868827B1 (en) 2022-07-15 2024-01-09 Micron Technology, Inc. Network storage products with options for external processing
US11947834B2 (en) 2022-07-15 2024-04-02 Micron Technology, Inc. Data storage devices with reduced buffering for storage access messages
US11983434B2 (en) 2022-07-15 2024-05-14 Micron Technology, Inc. Network-ready storage products with computational storage processors

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113660611B (en) * 2021-08-18 2023-04-18 荣耀终端有限公司 Positioning method and device
CN114302335A (en) * 2021-12-28 2022-04-08 深圳市蜻蜓互联智慧科技有限公司 Electric vehicle management system and method based on UWB

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105025437A (en) * 2015-06-02 2015-11-04 北京嘀嘀无限科技发展有限公司 Positioning method, device, and system
CN105792124A (en) * 2014-12-26 2016-07-20 腾讯科技(深圳)有限公司 Positioning method and device
CN107800747A (en) * 2016-09-07 2018-03-13 北京嘀嘀无限科技发展有限公司 A kind of passenger's locating and displaying processing method and processing device
CN112399334A (en) * 2020-10-20 2021-02-23 北京嘀嘀无限科技发展有限公司 Ultra-wideband-based positioning method and device, electronic equipment and readable storage medium
CN113660611A (en) * 2021-08-18 2021-11-16 荣耀终端有限公司 Positioning method and device

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106658414A (en) * 2017-02-10 2017-05-10 北京拜克洛克科技有限公司 Method for searching reserved bicycle, and user terminal
CN108986538A (en) * 2018-09-19 2018-12-11 Oppo广东移动通信有限公司 Parking stall indicating means, device, terminal and system
CN112291711A (en) * 2020-10-09 2021-01-29 Oppo广东移动通信有限公司 Terminal and positioning method and positioning device thereof
CN113269976B (en) * 2021-03-30 2022-08-23 荣耀终端有限公司 Positioning method and device
CN113115439B (en) * 2021-04-20 2023-06-13 Oppo广东移动通信有限公司 Positioning method and related equipment
CN112996109B (en) * 2021-04-21 2023-03-14 四川巨微集成电路有限公司 Positioning method based on fusion of UWB (ultra Wide band) and Bluetooth technologies, mobile device and target device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105792124A (en) * 2014-12-26 2016-07-20 腾讯科技(深圳)有限公司 Positioning method and device
CN105025437A (en) * 2015-06-02 2015-11-04 北京嘀嘀无限科技发展有限公司 Positioning method, device, and system
CN107800747A (en) * 2016-09-07 2018-03-13 北京嘀嘀无限科技发展有限公司 A kind of passenger's locating and displaying processing method and processing device
CN112399334A (en) * 2020-10-20 2021-02-23 北京嘀嘀无限科技发展有限公司 Ultra-wideband-based positioning method and device, electronic equipment and readable storage medium
CN113660611A (en) * 2021-08-18 2021-11-16 荣耀终端有限公司 Positioning method and device

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20230315415A1 (en) * 2022-03-25 2023-10-05 Micron Technology, Inc. Programming a Coarse Grained Reconfigurable Array through Description of Data Flow Graphs
US11815935B2 (en) * 2022-03-25 2023-11-14 Micron Technology, Inc. Programming a coarse grained reconfigurable array through description of data flow graphs
US11809361B1 (en) 2022-07-15 2023-11-07 Micron Technology, Inc. Network data storage devices having external access control
US11853819B1 (en) 2022-07-15 2023-12-26 Micron Technology, Inc. Message queues in network-ready storage products having computational storage processors
US11868828B1 (en) 2022-07-15 2024-01-09 Micron Technology, Inc. Message routing in a network-ready storage product for internal and external processing
US11868827B1 (en) 2022-07-15 2024-01-09 Micron Technology, Inc. Network storage products with options for external processing
US11947834B2 (en) 2022-07-15 2024-04-02 Micron Technology, Inc. Data storage devices with reduced buffering for storage access messages
US11983434B2 (en) 2022-07-15 2024-05-14 Micron Technology, Inc. Network-ready storage products with computational storage processors

Also Published As

Publication number Publication date
CN113660611B (en) 2023-04-18
CN113660611A (en) 2021-11-16

Similar Documents

Publication Publication Date Title
WO2023020055A1 (en) Positioning method and apparatus
EP2941664B1 (en) Head mounted display and method for controlling the same
CN110689460B (en) Traffic accident data processing method, device, equipment and medium based on block chain
CN110570687B (en) AGV control method and device and storage medium
KR20160107054A (en) Vehicle control apparatus and method thereof, vehicle driving assistance apparatus and method thereof, mobile terminal and method thereof
CN110751854B (en) Parking guidance method and device for automobile and storage medium
EP3919337B1 (en) Control vehicle
KR20140088461A (en) Wearable video device and video system having the same
CN110347520A (en) Method, apparatus, electronic equipment and the medium of message distribution
CN111983559A (en) Indoor positioning navigation method and device
JP2009083815A (en) Drive recorder device and accident analysis simulation device
CN110972085B (en) Information interaction method, device, storage medium, equipment and system
KR20180003185A (en) Method and apparatus for notifying bus passengers
CN113469620A (en) Dispatching method, device and equipment for distribution resources and computer readable storage medium
KR20150099236A (en) Apparatus and method for providing push service based on location
CN112533015B (en) Live interaction method, device, equipment and storage medium
CN109581358A (en) Recognition methods, device and the storage medium of barrier
CN208061450U (en) Portable plug-and-play anti-collision warning device
CN111031493B (en) Running time information transmission method and device, electronic equipment and storage medium
CN112991439B (en) Method, device, electronic equipment and medium for positioning target object
CN112734346B (en) Method, device and equipment for determining lane coverage and readable storage medium
US20230400592A1 (en) Positioning method and related apparatus
WO2021164387A1 (en) Early warning method and apparatus for target object, and electronic device
CN112885095B (en) Road surface information detection method, device, equipment and computer readable storage medium
CN114598992A (en) Information interaction method, device, equipment and computer readable storage medium

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

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE