Indoor navigation method and electronic device

Through the electronic equipment carried by the user, the user records the walking trajectory of the user in the underground parking lot and provides navigation guidance, the problem of difficult vehicle positioning in the underground parking lot is solved, and the accuracy and convenience of navigation are improved.

WO2025124535A1PCT designated stage expired Publication Date: 2025-06-19HUAWEI TECH CO LTD
View PDF 9 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2024/139104
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-12-15
Filing Date
2024-12-13
Publication Date
2025-06-19

AI Technical Summary

Technical Problem

In underground parking lots, it is difficult for users to accurately locate the vehicle, which makes it a long time to find the vehicle.

Method used

Various data information is obtained through the electronic devices carried by the user, record the user's trajectory from getting off the vehicle to the marked position, and provide direction and distance guidance in the future to help the user find the vehicle position conveniently.

Benefits of technology

It effectively solves the problem of vehicle positioning difficulties in underground parking lots, reduces the time for users to find vehicles, and improves navigation accuracy and convenience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024139104_19062025_PF_FP_ABST
    Figure CN2024139104_19062025_PF_FP_ABST
Patent Text Reader

Abstract

An indoor navigation method, an electronic device, a chip, and a readable storage medium. The method comprises: when an electronic device cannot acquire the location of a vehicle, recording the walking trajectory of a user on the basis of data from various sensors, such that during subsequent vehicle-locating by a user, the electronic device can provide for the user direction and distance guidance to the vehicle position on the basis of the walking trajectory and the current position of the electronic device; or when the electronic device can acquire the vehicle position, recording the target floor where the vehicle is located, and during subsequent vehicle-locating by the user, and it is determined that the electronic device is located on the target floor, recording the walking trajectory of the user on the basis of the acquired position of the electronic device, so as to provide for the user direction and distance guidance to the vehicle position. In indoor vehicle-locating scenarios, the method allows electronic devices to provide for users direction and distance guidance to vehicle positions, thereby helping users to conveniently locate vehicles.
Need to check novelty before this filing date? Find Prior Art

Description

Indoor navigation method and electronic device

[0001] This application claims priority to the Chinese patent application filed with the China Patent Office on December 15, 2023, with application number 202311734633.0 and application name “Method and electronic device for indoor navigation”, the entire contents of which are incorporated by reference into this application. Technical Field

[0002] Embodiments of the present application relate to the field of electronic technology, and more particularly, to a method and electronic device for indoor navigation. Background Art

[0003] Currently, many indoor parking lots are located underground (e.g., on the first or second basement floors). The weak positioning signal in underground garages makes it difficult for users to accurately locate their vehicles after parking. Because underground parking lots are generally large, users often rely on memory to find their vehicles when they need to use them again. This makes accurate location retrieval difficult and time-consuming. Summary of the Invention

[0004] This application provides a method and electronic device for indoor navigation. This technical solution utilizes a user's electronic device to acquire various data information, thereby recording the user's trajectory from getting off a vehicle to a marked location. Subsequently, when the user returns to the marked location, the electronic device can provide the user with corresponding direction and distance guidance based on the previously acquired walking trajectory, allowing the user to easily locate the vehicle.

[0005] In a first aspect, a method for indoor navigation is provided, which satisfies a first preset condition and obtains first data information, wherein the first data information includes posture information and direction information of the electronic device, and / or location fingerprint information; records a first trajectory of the electronic device according to the first data information; the starting point of the first trajectory is the location point determined by the electronic device according to the first data information when the first preset condition is satisfied; meets a second preset condition and determines the end point of the first trajectory according to the second data information, wherein the first trajectory of the electronic device is formed between the end point of the first trajectory and the starting point; meets a third preset condition and displays a first display interface, wherein the first display interface includes first prompt information, and the first prompt information is used to indicate the direction from the position of the electronic device to the starting point.

[0006] It should be understood that the starting point of the first trajectory is the location of the vehicle.

[0007] The location fingerprint information may include information formed by one or more data such as the strength of a Wi-Fi signal, the strength of a Bluetooth signal, and data of a magnetometer.

[0008] Optionally, the first prompt information may also be used to indicate the distance from the position of the electronic device to the starting point.

[0009] After the electronic device detects that the user has gotten off the vehicle, it can obtain data from various sensors and record the user's walking trajectory, namely the first trajectory; when the second preset condition is met, the electronic device can determine the end point of the first trajectory (such as an elevator); when the user subsequently searches for the vehicle, if the electronic device determines that the user's position is at the end point of the first trajectory, or the user passes the end point of the first trajectory, the electronic device can start tracing the trajectory and can display the direction from the user's current position to the starting point of the first trajectory on the first display interface.

[0010] This technical solution can use the electronic devices carried by the user to obtain various data information to record the user's trajectory from getting off the vehicle to the marked location (such as an elevator); so that when the user subsequently comes to the marked location again or passes by the marked location, the electronic device can provide the user with corresponding direction guidance based on the previously obtained walking trajectory, so that the user can easily find the location of the vehicle.

[0011] In conjunction with the first aspect, in certain implementations of the first aspect, satisfying the third preset condition and displaying the first display interface includes:

[0012] The third preset condition is met, and in response to a first operation of the user, the first display interface is displayed.

[0013] Exemplarily, the first operation may be an operation in which the user clicks some function buttons.

[0014] Based on the embodiment of the present application, the electronic device can display the above-mentioned first display interface according to the user's operation to provide the user with car-finding guidance.

[0015] In combination with the first aspect, in certain implementations of the first aspect, the third preset condition includes at least one of the following conditions: the position of the electronic device is located at the end point of the first trajectory; the second trajectory of the electronic device includes the end point of the first trajectory, wherein the second trajectory is determined by the electronic device based on third data information, and the third data information includes posture information and direction information of the electronic device, and / or location fingerprint information, wherein the second trajectory and the first trajectory are located in the same coordinate system; or, when a floor change is detected, the difference between the last acquired position of the electronic device and the target key point is less than a threshold.

[0016] It can be understood that the types included in the third data information may be the same as the types included in the first data information, that is, may be data information of various sensors and wireless fingerprint information.

[0017] The second trajectory is the walking trajectory of the user recorded by the electronic device when the user is in the stage of looking for a car.

[0018] In combination with the first aspect, in certain implementations of the first aspect, the method further includes: displaying a second display interface in response to a second operation of the user, the second display interface including the first trajectory, indication information of the position and direction of the electronic device, and / or the second trajectory.

[0019] Based on an embodiment of the present application, the electronic device can, in response to a second user operation, display a second display interface including the first trajectory and information indicating the location and direction of the electronic device, thereby providing the user with real-time guidance of the vehicle's location and the user's current location. Furthermore, the second display interface can also include a second trajectory, thereby facilitating the user's determination of whether their walking trajectory during the vehicle search phase deviates from the originally recorded trajectory.

[0020] In combination with the first aspect, in certain implementations of the first aspect, recording the first trajectory of the electronic device based on the first data information includes: determining the relative displacement, direction and / or position fingerprint information of the target moment relative to the moment of the starting point or the previous moment of the target moment based on the first data information; and recording the first trajectory based on the relative displacement, direction and / or position fingerprint information.

[0021] It should be understood that the target time may be the time when the sensor of the electronic device samples.

[0022] Based on the embodiment of the present application, the electronic device can determine the relative displacement, direction and / or position fingerprint information of the target moment relative to the moment of the starting point or the moment before the target moment based on various data to record the user's walking trajectory.

[0023] In combination with the first aspect, in some implementations of the first aspect, the method further includes: during the movement of the electronic device, updating the direction in the first prompt information in real time according to the first trajectory.

[0024] Based on the embodiment of the present application, when the user is carrying the electronic device and moving around, the electronic device can also update the direction in the first prompt information in real time, thereby providing the user with real-time direction guidance.

[0025] In combination with the first aspect, in certain implementations of the first aspect, the real-time updating of the direction in the first prompt information based on the first trajectory includes: determining the displacement, direction and / or position fingerprint information of the position of the electronic device relative to the first trajectory based on fourth data information; and updating the direction in the first prompt information in real time based on the displacement, direction and / or position fingerprint information of the position relative to the first trajectory and the first trajectory.

[0026] When the user moves the electronic device, the electronic device can determine the current displacement, direction and other information of the electronic device based on the acquired fourth data information, so as to update the direction in the first prompt information in real time.

[0027] In combination with the first aspect, in certain implementations of the first aspect, before displaying the first display interface, the method further includes: if the position of the electronic device is not at the end point of the first trajectory, in response to a third operation of the user, displaying a third display interface, the third display interface including the position of the end point of the first trajectory.

[0028] For example, the end point of the first trajectory may be the junction of the underground garage and the shopping mall, or the end point of the first trajectory may be the junction of the underground garage and the outdoors.

[0029] Based on the embodiment of the present application, if the user is not at the end point of the first track, the user can also view the location of the end point of the first track through the third operation, thereby providing the user with guidance on the location of the end point of the track.

[0030] In combination with the first aspect, in certain implementations of the first aspect, determining the end point of the first trajectory based on the second data information includes: determining the position information of the target key point; determining the end point of the first trajectory based on the position information of the target key point and the second data information; the method also includes: if the position of the electronic device is not at the end point of the first trajectory, in response to a third operation of the user, displaying a third display interface, the third display interface including the position information of the target key point.

[0031] For example, if a user takes an elevator from a basement, the target key point may be the location where the user exits the elevator. Since the user exits the elevator and enters a shopping mall, the electronic device may obtain location information of the location, such as longitude and latitude coordinates. The end point of the first trajectory may be a location near where the user enters the elevator.

[0032] Based on the embodiments of the present application, the electronic device can display the location of the target key point according to the user's operation, thereby providing the user with location guidance of the target key point, which is conducive to the user finding the target key point according to the guidance and provides convenience for subsequent accurate search for the vehicle.

[0033] In conjunction with the first aspect, in some implementations of the first aspect, the method further includes:

[0034] In response to a fourth operation of the user, a fourth display interface is displayed, where the fourth display interface includes the first track of the electronic device.

[0035] Based on the embodiment of the present application, the electronic device can display the first trajectory of the electronic device through the user's operation, so that the user can view the trajectory from getting off the vehicle to the key identification point.

[0036] In combination with the first aspect, in some implementations of the first aspect, the fourth display interface also includes the location and direction of the electronic device.

[0037] Based on the embodiment of the present application, the fourth display interface may further include the current location and direction of the electronic device, thereby facilitating the user to determine the relative relationship between his or her location and the first trajectory.

[0038] In combination with the first aspect, in certain implementations of the first aspect, the true direction of the segment of the track with a determined direction in the first track is a first direction, and after the first track in the third display interface is rotated, the direction of the segment of the track with a determined direction is displayed as a second direction, wherein the second direction is perpendicular to the side where the status bar of the electronic device is located.

[0039] For example, if the first direction is the direction of entering the elevator, then the second direction is downward. Alternatively, if the first direction is the direction of exiting the elevator, then the second direction is upward.

[0040] In combination with the first aspect, in certain implementations of the first aspect, the method further includes: obtaining fifth data information of the electronic device; if the similarity between the fifth data information and the second data information is greater than a first threshold, determining that the position of the electronic device is located at the end point of the first trajectory; or, if the similarity between the fifth data information and the second data information is less than or equal to the first threshold, determining that the position of the electronic device is not located at the end point of the first trajectory.

[0041] Based on the embodiment of the present application, the electronic device can determine whether the current position of the electronic device is at the end point of the first trajectory based on the relationship between the acquired fifth data information and the second data information, which is helpful for the electronic device to determine whether to start recording the user's trajectory again, so as to provide direction and distance guidance to the user.

[0042] In combination with the first aspect, in some implementations of the first aspect, the method further includes: in response to a fifth operation of the user, determining that the position of the electronic device is located at an end point of the first trajectory.

[0043] In some cases, the judgment of the electronic device may also be biased. It may happen that the user is already at the end point of the first track, but the electronic device determines that the user is not at the end point of the first track. In this case, the user can perform the fifth operation to make the electronic device determine that the user is currently at the end point of the first track.

[0044] For example, the fifth operation may be an operation in which the user checks a checkbox indicating that the end point of the first track has been reached.

[0045] In combination with the first aspect, in some implementations of the first aspect, the first prompt information further includes a distance from the position to the starting point.

[0046] Based on the embodiment of the present application, the first prompt information may also include the distance from the current position of the electronic device to the starting point of the first trajectory, thereby helping the user understand how far away the current parking position is.

[0047] In combination with the first aspect, in certain implementations of the first aspect, the electronic device is communicatively connected to the intelligent driving device, and the first preset condition includes at least one of the following conditions: the gear position of the intelligent driving device is in the parking gear; the communication connection between the electronic device and the intelligent driving device is disconnected; the intelligent driving device is in a locked state; an operation to start recording the trajectory is detected; or the distance between the electronic device and the intelligent driving device is greater than a preset distance, wherein the preset distance is calculated by the electronic device through wireless communication.

[0048] Exemplarily, the wireless communication method may include Bluetooth, UWB, etc.

[0049] In combination with the first aspect, in certain implementations of the first aspect, the second preset condition includes at least one of the following conditions: the change value of the magnetometer data obtained by the electronic device is greater than the second threshold; the absolute value of the change of the barometer data obtained by the electronic device is greater than the third threshold, or the change value of the barometer data obtained by the electronic device within the preset time is greater than the fourth threshold; the change of the inertial sensor data obtained by the electronic device complies with the first rule, and the inertial sensor includes at least one of an accelerometer, a gyroscope or a magnetometer; the signal strength of the communication signal of the electronic device complies with the second rule, and the communication signal includes at least one of a Wi-Fi signal, a Bluetooth signal, a cellular signal or a positioning signal; the electronic device is able to obtain accurate positioning information; or the floor where the electronic device is located changes.

[0050] In a second aspect, a method for indoor navigation is provided, which is applied to an electronic device, and the method includes: determining first position information of an intelligent driving device, second position information of a target key point, and a target floor where the intelligent driving device is located; obtaining third position information of the electronic device; if it is determined that the electronic device is located on the target floor, recording a third trajectory of the electronic device according to the second information, wherein the starting point of the third trajectory is the position corresponding to the third position information, and the second information includes posture information and direction information of the electronic device, and / or position fingerprint information; in response to a first operation of a user, displaying a first display interface, the first display interface including first prompt information, and the first prompt information being used to indicate the direction from the current position of the electronic device to the intelligent driving device.

[0051] Exemplarily, the first location information, the second location information, and the third location information may be latitude and longitude information.

[0052] Based on the embodiment of the present application, the electronic device can first determine the first position information of the intelligent driving device (such as a vehicle), the second position information of the target key point, and the target floor where the parking is located. When the user subsequently searches for the car, the electronic device can continue to obtain the third position information of the electronic device when accurate position information can be obtained. If it is further determined that the electronic device is on the target floor, the third trajectory of the electronic device can be recorded based on the second information, and the third position information of the electronic device obtained last is used as the starting point of the third trajectory. Thus, when the user wants the electronic device to provide guidance, the first operation can be used to make the electronic device display the first display interface, providing the user with directional guidance from the current location to the location of the vehicle.

[0053] In this technical solution, after getting off the vehicle, the electronic device has already determined the latitude and longitude of the vehicle and the target floor of the vehicle, as well as the latitude and longitude of the target key points (such as the elevator); when searching for the vehicle subsequently, the electronic device can continue to obtain the third position information of the electronic device when it can obtain accurate position information. When the user arrives at the target floor, the electronic device can start recording the trajectory and use the third position information as the starting point. Since the recorded trajectory also has direction and distance, and the latitude and longitude coordinates of the vehicle are known, the electronic device can provide direction and distance guidance to the user.

[0054] In combination with the second aspect, in certain implementations of the second aspect, determining that the electronic device is located on the target floor includes: if the difference between the first data and the second data of the barometer obtained is less than a fifth threshold, determining that the electronic device is located on the target floor; wherein the first data is the barometer value currently obtained by the electronic device, and the second data is the barometer value obtained on the target floor and recorded by the electronic device; or, determining that the electronic device is located on the target floor based on the obtained floor information.

[0055] Based on the embodiments of the present application, the electronic device can determine whether it is located on the target floor in a variety of ways.

[0056] In combination with the second aspect, in certain implementations of the second aspect, before determining that the electronic device is located on the target floor, the method also includes: determining that the difference between the third location information and the second location information is less than or equal to a sixth threshold; or, determining that the third location information is the last location information obtained by the electronic device.

[0057] Based on the embodiment of the present application, if the difference between the third location information and the second location information is less than or equal to the sixth threshold, it can be determined that the user has exited the previous elevator. If the third location information is the location information last acquired by the electronic device, it can be determined that the user has exited from another location. In both cases, the technical solution of the present application is applicable.

[0058] In combination with the second aspect, in some implementations of the second aspect, the method further includes: in response to a second operation of the user, displaying a second display interface, the second display interface including the first position information, the second position information, an indication of the current position and direction of the electronic device, and / or the third trajectory.

[0059] Based on the embodiments of the present application, users can also view the specific location of the vehicle, the current location and direction of the electronic device, and / or the third track after the user reaches the target floor through convenient operations. This helps users to clearly understand their own location and the location of the vehicle.

[0060] In combination with the second aspect, in certain implementations of the second aspect, recording the third trajectory of the electronic device based on the second information includes: determining the current position, direction and / or position fingerprint information based on the second information and the third position information; and recording the third trajectory based on the current position, direction and / or position fingerprint information.

[0061] Based on the embodiments of the present application, the electronic device can determine the current location, direction and / or location fingerprint information based on various data and the third location information of the electronic device to record the user's walking trajectory.

[0062] In combination with the second aspect, in certain implementations of the second aspect, the first prompt information also includes the distance from the current location to the intelligent driving device.

[0063] Based on the embodiment of the present application, the first prompt information may also include the distance from the current position of the electronic device to the starting point of the first trajectory, thereby helping the user understand how far away the current parking position is.

[0064] In combination with the second aspect, in certain implementations of the second aspect, determining the first position information of the intelligent driving device includes: satisfying a first preset condition, obtaining first data information, the first data information including posture information and direction information of the electronic device, and / or location fingerprint information; recording a first trajectory of the electronic device based on the first data information; the starting point of the first trajectory is the position point determined by the electronic device based on the first data information when the first preset condition is satisfied; satisfying a second preset condition, determining the end point of the first trajectory based on the second data information, forming the first trajectory of the electronic device between the end point of the first trajectory and the starting point; determining the first position information of the intelligent driving device based on the direction of the first trajectory or the direction of a portion of the first trajectory and the second position information of the target key point.

[0065] Based on an embodiment of the present application, the electronic device can record a first walking trajectory of the user carrying the electronic device after the user exits the vehicle, and determine the first location information of the vehicle based on the direction of the first trajectory or the direction of a portion of the first trajectory and the second location information of the target key point. For example, the second location information is longitude and latitude coordinates, which can be obtained by reverse engineering based on the longitude and latitude coordinates of the target key point and the exact direction in the first trajectory.

[0066] In a third aspect, an electronic device is provided, comprising: one or more processors; one or more memories; the one or more memories storing one or more programs, which, when executed by one or more processors, enable the indoor navigation method described in the first aspect, the second aspect, and any possible implementation to be executed.

[0067] In a fourth aspect, indoor navigation is provided, including: a module for implementing the indoor navigation method as described in the first aspect, the second aspect, and any possible implementation manner.

[0068] In a fifth aspect, a chip is provided, comprising a processor and a communication interface, wherein the communication interface is used to receive a signal and transmit the signal to the processor, and the processor processes the signal so that the indoor navigation method described in the first aspect, the second aspect, and any possible implementation method is executed.

[0069] In a sixth aspect, a readable storage medium is provided, wherein instructions are stored in the readable storage medium. When the instructions are executed on an electronic device, the indoor navigation method as described in the first aspect, the second aspect, and any possible implementation method is executed.

[0070] In a seventh aspect, a computer program product is provided, which enables the indoor navigation method as described in the first aspect, the second aspect, and any possible implementation manner to be executed. BRIEF DESCRIPTION OF THE DRAWINGS

[0071] FIG1 is a schematic structural diagram of an electronic device provided in an embodiment of the present application.

[0072] FIG2 is a schematic diagram of the software structure of the electronic device provided in an embodiment of the present application.

[0073] FIG3 is a schematic diagram of a trajectory recording device provided by an embodiment of the present application.

[0074] FIG4 is a schematic diagram of another electronic device recording trajectory provided in an embodiment of the present application.

[0075] FIG5 is a schematic flow chart of a method for recording a track provided in an embodiment of the present application.

[0076] FIG6 is a schematic diagram of a set of GUIs provided in an embodiment of the present application.

[0077] FIG7 is a schematic diagram of another set of GUIs provided in an embodiment of the present application.

[0078] FIG8 is a schematic diagram of another set of GUIs provided in an embodiment of the present application.

[0079] FIG9 is a schematic diagram of another set of GUIs provided in an embodiment of the present application.

[0080] FIG10 is a schematic diagram of another set of GUIs provided in an embodiment of the present application.

[0081] FIG11 is a schematic diagram of another set of GUIs provided in an embodiment of the present application.

[0082] FIG12 is a schematic diagram of another set of GUIs provided in an embodiment of the present application.

[0083] FIG13 is a schematic diagram of another set of GUIs provided in an embodiment of the present application.

[0084] FIG14 is a schematic flowchart of a trajectory backtracking provided in an embodiment of the present application.

[0085] FIG15 is a schematic flowchart of an indoor navigation method provided in an embodiment of the present application.

[0086] FIG16 is a schematic flowchart of another indoor navigation method provided in an embodiment of the present application.

[0087] FIG17 is a schematic block diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0088] The technical solution in this application will be described below with reference to the accompanying drawings.

[0089] The indoor navigation method in the embodiments of the present application can be applied to electronic devices such as smartphones, tablet computers, laptops, personal computers (PCs), ultra-mobile personal computers (UMPCs), netbooks, vehicle-mounted devices, wearable devices, foldable devices, and Internet of Things (IoT) devices.

[0090] 1 shows a schematic structural diagram of an electronic device 100. The electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display 194, and a subscriber identification module (SIM) card interface 195. 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, a bone conduction sensor 180M, etc.

[0091] It should be understood that the structures illustrated in the embodiments of the present application do not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may include more or fewer components than shown, or may combine or separate certain components, or arrange the components differently. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.

[0092] The processor 110 may include one or more processing units. For example, the processor 110 may include an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU). The different processing units may be independent devices or integrated into one or more processors.

[0093] The controller may be the nerve center and command center of the electronic device 100. The controller may generate an operation control signal according to the instruction operation code and the timing signal to complete the control of fetching and executing instructions.

[0094] Processor 110 may also include a memory for storing instructions and data. In some embodiments, the memory in processor 110 is a cache memory. This memory can store instructions or data that have just been used or are being recycled by processor 110. If processor 110 needs to use the same instruction or data again, it can directly access the memory. This avoids duplicate accesses, reduces processor 110 latency, and thus improves system efficiency.

[0095] In some embodiments, the processor 110 may include one or more interfaces. The interfaces may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus interface.

[0096] The I2C interface is a bidirectional synchronous serial bus, including a serial data line (SDA) and a serial clock line (SCL).

[0097] The I2S interface can be used for audio communication. In some embodiments, the processor 110 can include multiple I2S buses. The processor 110 can be coupled to the audio module 170 via the I2S bus to enable communication between the processor 110 and the audio module 170.

[0098] The PCM interface can also be used for audio communication, sampling, quantizing and encoding analog signals. In some embodiments, the audio module 170 and the wireless communication module 160 can be coupled via a PCM bus interface.

[0099] The UART interface is a universal serial data bus used for asynchronous communication. The bus can be a bidirectional communication bus. It converts the data to be transmitted between serial communication and parallel communication. In some embodiments, the UART interface is generally used to connect the processor 110 and the wireless communication module 160.

[0100] The MIPI interface can be used to connect the processor 110 with peripheral devices such as the display screen 194 and the camera 193.

[0101] The GPIO interface can be configured via software. The GPIO interface can be configured as a control signal or a data signal. In some embodiments, the GPIO interface can be used to connect the processor 110 to the camera 193, the display 194, the wireless communication module 160, the audio module 170, the sensor module 180, etc.

[0102] The USB interface 130 is an interface that complies with USB standards, and may be a Mini USB interface, a Micro USB interface, a USB Type C interface, etc. The USB interface 130 may be used to connect a charger to charge the electronic device 100, and may also be used to transfer data between the electronic device 100 and peripheral devices.

[0103] It is understood that the interface connection relationship between the modules illustrated in the embodiments of the present application is merely an illustrative illustration and does not constitute a structural limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may also adopt different interface connection methods from the above embodiments, or a combination of multiple interface connection methods.

[0104] The charging management module 140 is configured to receive charging input from a charger. The charger can be either a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 can receive charging input from the wired charger via the USB interface 130. In some wireless charging embodiments, the charging management module 140 can receive wireless charging input via the wireless charging coil of the electronic device 100. While charging the battery 142, the charging management module 140 can also provide power to the electronic device via the power management module 141.

[0105] The power management module 141 is used to connect the battery 142 , the charging management module 140 and the processor 110 .

[0106] The wireless communication function of the electronic device 100 can be implemented through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor and the baseband processor.

[0107] The mobile communication module 150 can provide wireless communication solutions including 2G / 3G / 4G / 5G applied on the electronic device 100.

[0108] The modem processor may include a modulator and a demodulator. The modulator is used to modulate the low-frequency baseband signal to be transmitted into a medium-high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After being processed by the baseband processor, the low-frequency baseband signal is passed to the application processor. The application processor outputs a sound signal through an audio device (not limited to the speaker 170A, the receiver 170B, etc.) or displays an image or video through the display screen 194. In some embodiments, the modem processor may be an independent device. In other embodiments, the modem processor may be independent of the processor 110 and be set in the same device as the mobile communication module 150 or other functional modules.

[0109] The wireless communication module 160 can provide wireless communication solutions for application on the electronic device 100, including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), Bluetooth low energy (BLE), global navigation satellite system (GNSS), frequency modulation (FM), near field communication technology (NFC), infrared technology (IR), etc.

[0110] In some embodiments, antenna 1 of electronic device 100 is coupled to mobile communication module 150 , and antenna 2 is coupled to wireless communication module 160 , so that electronic device 100 can communicate with the network and other devices through wireless communication technology.

[0111] Electronic device 100 implements display functionality through a GPU, display screen 194, and an application processor. A GPU is a microprocessor for image processing that connects display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. Processor 110 may include one or more GPUs that execute program instructions to generate or modify display information.

[0112] Display screen 194 is used to display images, videos, etc. Display screen 194 includes a display panel. The display panel can be a liquid crystal display (LCD), or a display panel made of one of the following materials: organic light-emitting diode (OLED), active-matrix organic light-emitting diode (AMOLED), flexible light-emitting diode (FLED), MiniLED, MicroLed, Micro-oLed, or quantum dot light-emitting diode (QLED). In some embodiments, electronic device 100 can include one or N display screens 194, where N is a positive integer greater than 1.

[0113] The electronic device 100 can implement a shooting function through an ISP, a camera 193, a video codec, a GPU, a display screen 194, and an application processor.

[0114] The ISP is used to process data fed back by the camera 193. The camera 193 is used to capture still images or videos.

[0115] Digital signal processors are used to process digital signals. In addition to processing digital image signals, they can also process other digital signals.

[0116] Video codecs are used to compress or decompress digital video.

[0117] The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100.

[0118] The internal memory 121 may be used to store computer executable program codes, which include instructions. The processor 110 executes the instructions stored in the internal memory 121 to execute various functional applications and data processing of the electronic device 100.

[0119] The electronic device 100 can implement audio functions through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone jack 170D, and the application processor.

[0120] The audio module 170 is used to convert digital audio information into analog audio signals for output, and is also used to convert analog audio input into digital audio signals.

[0121] The speaker 170A, also called a "horn", is used to convert audio electrical signals into sound signals.

[0122] The receiver 170B, also called a "handset", is used to convert audio electrical signals into sound signals.

[0123] Microphone 170C, also called "microphone" or "microphone", is used to convert sound signals into electrical signals.

[0124] The headphone jack 170D is used to connect a wired headphone.

[0125] Among them, the sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, an acceleration sensor 180E, a distance sensor 180F, a fingerprint sensor 180H, a touch sensor 180K, a bone conduction sensor 180M, etc.

[0126] The buttons 190 include a power button, a volume button, and the like.

[0127] Motor 191 can generate vibration prompts.

[0128] The indicator 192 may be an indicator light, which may be used to indicate the charging status, power level changes, messages, missed calls, notifications, etc.

[0129] The SIM card interface 195 is used to connect a SIM card.

[0130] The software system of the electronic device 100 can adopt a layered architecture, an event-driven architecture, a micro-kernel architecture, a micro-service architecture, or a cloud architecture. In the embodiment of the present application, the software structure of the electronic device 100 is exemplified by taking an operating system of a layered architecture as an example.

[0131] Figure 2 is a block diagram of the software structure of electronic device 100 according to an embodiment of the present application. A layered architecture divides software into several layers, each with distinct roles and responsibilities. Layers communicate with each other via software interfaces. In some embodiments, the operating system is divided into four layers: the application layer, the application framework layer, the system library layer, and the kernel layer, from top to bottom. The application layer may include a series of application packages.

[0132] As shown in FIG2 , the application package may include applications such as camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message, wallet, etc.

[0133] The application framework layer provides an application programming interface (API) and programming framework for applications in the application layer. The application framework layer includes some predefined functions.

[0134] As shown in FIG2 , the application framework layer may include a window manager, a content provider, a view system, a telephony manager, a resource manager, a notification manager, and the like.

[0135] The window manager is used to manage window programs. The window manager can obtain the display size, determine whether there is a status bar, lock the screen, take screenshots, etc.

[0136] Content providers are used to store and retrieve data and make it accessible to applications. The data may include videos, images, audio, calls made and received, browsing history and bookmarks, phone books, etc.

[0137] The view system includes visual controls, such as those for displaying text and images. The view system is used to build applications. A display interface can consist of one or more views. For example, a display interface containing a text notification icon might include a view for displaying text and a view for displaying images.

[0138] The phone manager is used to provide communication functions of the electronic device 100, such as management of call status (including answering, hanging up, etc.).

[0139] The resource manager provides various resources for applications, such as localized strings, icons, images, layout files, video files, and so on.

[0140] The Notification Manager allows applications to display notifications in the status bar. These messages can be displayed briefly and then disappear automatically without user interaction. For example, the Notification Manager is used to notify users of completed downloads and message reminders. The Notification Manager can also display notifications in the top status bar of the system as icons or scrolling text, such as notifications from background applications, or as dialog windows on the screen. Examples include text messages in the status bar, beeps, vibrations on electronic devices, and flashing indicator lights.

[0141] The core library consists of two parts: one is the function that needs to be called by the Java language, and the other is the core library.

[0142] The application layer and application framework layer run in a virtual machine. The virtual machine executes Java files in the application layer and application framework layer as binary files. The virtual machine manages object lifecycles, stack management, thread management, security and exception management, and garbage collection.

[0143] The system library can include multiple functional modules, such as a surface manager, media libraries, a 3D graphics processing library (such as OpenGL ES), and a 2D graphics engine (such as SGL).

[0144] The surface manager is used to manage the display subsystem and provide fusion of 2D and 3D layers for multiple applications.

[0145] The media library supports playback and recording of a variety of common audio and video formats, as well as static image files. The media library can support a variety of audio and video encoding formats, such as MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.

[0146] The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.

[0147] A 2D graphics engine is a drawing engine for 2D drawings.

[0148] The kernel layer is the layer between hardware and software. The kernel layer includes at least display driver, camera driver, audio driver, and sensor driver.

[0149] Before introducing the technical solution of this application, some professional terms that may be involved in this application are first introduced as follows.

[0150] Location fingerprint information: This links a physical location to a specific "fingerprint," with each location corresponding to a unique fingerprint. This fingerprint can be formed by one or more of the following data points: Wi-Fi signal strength, Bluetooth signal strength, magnetometer data, barometer data, etc., which can be detected by an electronic device at a specific location.

[0151] Currently, many indoor parking lots are located underground (e.g., on the first or second basement floors). The weak positioning signal in underground garages makes it difficult for users to accurately locate their vehicles after parking. Because underground parking lots are generally large, users often rely on memory to find their vehicles when they need to use them again. This makes accurate location retrieval difficult and time-consuming.

[0152] In light of this, the present application provides a method and electronic device for indoor navigation. This technical solution utilizes a user's electronic device to acquire various data information, thereby recording the user's trajectory from getting off the vehicle to a marked location. Consequently, when the user subsequently returns to the marked location, the electronic device can provide the user with corresponding direction and distance guidance based on the previously acquired walking trajectory, allowing the user to easily locate the vehicle.

[0153] The indoor navigation method in this application can be mainly divided into a trajectory recording stage and a trajectory tracing stage. In the trajectory recording stage, the electronic device can record the user's trajectory from getting off the car to the location mark (such as the elevator, the escalator, the stairs, and the entrance to the shopping mall); in the trajectory tracing stage, when the user comes to the location mark again (the end point of the trajectory), the electronic device can respond to the user's operation to provide the user with the direction and distance guidance of the vehicle's location, so that the user can quickly find the vehicle according to the guidance of the electronic device; or, in the trajectory tracing stage, when the electronic device detects that the user passes by the location mark, the electronic device has started to traverse the trajectory, and when the user subsequently views the recorded trajectory, the electronic device can display the user's current location and the trajectory obtained in the trajectory recording stage, so that the user can quickly find the vehicle according to the guidance of the electronic device.

[0154] It can be understood that the location marker can also be understood as the location where the user's travel status changes.

[0155] The following will introduce the technical solution of the trajectory recording stage in this application in conjunction with Figures 3-5.

[0156] FIG3 is a schematic diagram of an electronic device provided in an embodiment of the present application for determining the trajectory of a user after getting off a vehicle.

[0157] As shown in Figure 3 (a), the user's vehicle is parked on the underground first floor of the garage. There is no positioning signal or the positioning error is large on the underground first floor. In this scenario, the user needs to take the elevator from the underground first floor to the first floor. At this time, the user needs to determine the location of the vehicle.

[0158] In this application, if it is determined that the preset condition A is met, the electronic device can start recording the user's walking trajectory. When the user enters the target elevator car, the electronic device stops recording the user's walking trajectory. In this case, the location of the vehicle is the starting point of the trajectory, and the location of the target elevator car is the end point of the user's walking trajectory.

[0159] In some examples, the preset condition A may include, but is not limited to, the following conditions:

[0160] Condition 1: The vehicle is in the parking position (P position).

[0161] Condition 2: The communication connection between the electronic device and the vehicle is disconnected.

[0162] Condition 3: The vehicle is locked.

[0163] For example, the electronic device is connected to the vehicle for communication, so that the electronic device can obtain various states of the vehicle. When the electronic device detects that the vehicle is in P gear, or locked, or the communication connection between the electronic device and the vehicle is disconnected, the electronic device can start recording the user's travel trajectory.

[0164] Condition 4: Detecting the user clicking to start recording the track.

[0165] In some examples, when the electronic device detects that the user clicks to start recording the walking trajectory, it can start recording the user's walking trajectory.

[0166] It is understandable that, since the user wears the electronic device, holds the electronic device in his hand, or puts the electronic device in his pocket or bag, the walking trajectory of the user recorded by the electronic device is also the movement trajectory of the electronic device.

[0167] In the present application, the electronic device may record the trajectory through sensor data; or, the electronic device may also record the trajectory through sensor data and location fingerprint information.

[0168] As an example, the electronic device may record a trajectory through sensor data.

[0169] For example, an electronic device may include sensors such as an accelerometer, gyroscope, magnetometer, and barometer. When the electronic device begins recording a trajectory, it can obtain data from the accelerometer, gyroscope, magnetometer, and other sensors to determine the electronic device's position and direction of movement, as well as information such as the user's stride length and number of steps. The electronic device can then determine its relative displacement relative to the starting position at each moment, thereby recording the electronic device's movement trajectory, i.e., the user's walking trajectory.

[0170] Alternatively, the electronic device can determine the relative displacement of each moment relative to the previous moment based on data from various sensors, thereby recording the movement trajectory of the electronic device, that is, the walking trajectory of the user. The moment here can be the frequency at which the electronic device obtains sensor data, or it can be a preset time period, which is not limited in the present embodiment.

[0171] The posture of the electronic device may include the electronic device being placed on the user's chest, in a pocket, in a phone posture, in a hand-held posture, etc.

[0172] It is understood that the starting point of the trajectory (or starting position) is the location at which the electronic device begins to acquire data from various sensors and record the trajectory. The starting point of the trajectory can be considered the location of the vehicle. It is understood that due to weak positioning signals or large positioning errors in underground garages, this location does not refer to a location with longitude and latitude information. Instead, this location can correspond to the data acquired by various sensors, and the electronic device cannot obtain specific longitude and latitude information.

[0173] The end point of the trajectory may be located at the entrance of the target elevator room or stairwell. It is understandable that the end point of the trajectory is not a point, but may be understood as an area, such as an area near the entrance of the target elevator room.

[0174] In some embodiments, the electronic device can determine the location of the end point by using changes in magnetometer data. For example, at a location farther from the elevator, the electronic device may obtain a smaller change in magnetometer data, while at a location closer to the elevator, the electronic device may obtain a larger change in magnetometer data. When the electronic device enters or is within the elevator, the value obtained by the magnetometer is minimal, allowing the electronic device to determine the approximate location of the trajectory's end point by using changes in magnetometer data.

[0175] In some implementations, the electronic device may determine the location of the end point of the trajectory through changes in data from a barometer or an accelerometer, or target information.

[0176] In one example, the electronic device can determine whether the user goes up or down an elevator (or stairs, or escalator) by observing that the data changes of the barometer conform to the following rules.

[0177] Case 1: The absolute reading of the barometer rises or falls above threshold 1.

[0178] For example, if the absolute reading of the barometer rises above a threshold of 1, the electronic device can determine that the user is getting off the elevator, stairs, or escalator; if the absolute reading of the barometer drops above a threshold of 1, the electronic device can determine that the user is getting on the elevator, stairs, or escalator.

[0179] Case 2: The barometer reading rises or falls above threshold 2 within a period of time.

[0180] For example, if the barometer reading rises above threshold 2 within a period of time, the electronic device can determine that the user is getting off the elevator, stairs, or escalator; if the barometer reading drops above threshold 2 within a period of time, the electronic device can determine that the user is getting on the elevator, stairs, or escalator.

[0181] In this case, the electronic device may determine the position T1 before the moment when the above situation 1 or situation 2 is detected (and / or the fingerprint information, air pressure / altitude information at the position) as the end point of the trajectory.

[0182] It should be understood that the time T1 can be a fixed duration, or a period of time during which the electronic device does not detect long-distance movement. For example, long-distance movement can be understood as the movement distance of the electronic device being greater than a preset value.

[0183] In another example, the electronic device may also determine whether the user goes up or down an elevator or stairs by observing that changes in accelerometer data conform to the following rules.

[0184] Case 1: The vertical changes in the accelerometer's three-axis values ​​conform to a target pattern. For example, if target pattern 1 is that the acceleration first increases vertically (overweight) and then decreases (weightlessness), it can be determined that the user is riding the elevator upward. Target pattern 2 is that the acceleration first decreases vertically (weightlessness) and then increases (overweight), which can be determined that the user is riding the elevator downward.

[0185] In this case, the electronic device may determine the position a period of time T2 before the moment when the above situation 1 is detected (and / or the fingerprint information, air pressure / altitude information at the position) as the end point of the trajectory.

[0186] It should be understood that the time T2 can be a fixed time period or a period of time during which the electronic device does not detect long-distance movement. For example, long-distance movement can be understood as the movement distance of the electronic device being greater than a preset value.

[0187] In another example, the target information includes cellular network signal strength or floor information, and the electronic device can also determine the end point of the track through the cellular network signal strength or floor information.

[0188] Case 1: The change in cellular network signal strength complies with target rule 2. For example, target rule 2 is that over a period of time, the cellular network signal strength first decreases and then increases.

[0189] Case 2: The location information acquired by the electronic device includes floor information, and the floor change can be directly determined based on the floor information.

[0190] For example, some shopping malls or buildings provide information about each floor. When an electronic device is located on a different floor, the information about that floor can be obtained.

[0191] In this case, the electronic device may determine the position T1 before the moment when the above situation 1 or situation 2 is detected (and / or the fingerprint information, air pressure / altitude information at the position) as the end point of the trajectory.

[0192] It should be understood that the time T1 can be a fixed duration, or a period of time during which the electronic device does not detect long-distance movement. For example, long-distance movement can be understood as the movement distance of the electronic device being greater than a preset value.

[0193] In this way, the electronic device can record the trajectory of the user from getting off the vehicle to the location marker (such as the target elevator, stairwell, escalator). It should be understood that the trajectory records the relative position of the vehicle position and the location marker.

[0194] As another example, the electronic device may also record tracks through sensor data and location fingerprint information.

[0195] For example, the sensor may include the aforementioned accelerometer, gyroscope, magnetometer, barometer, etc. The location fingerprint information may include the strength of the aforementioned wireless signals acquired by the electronic device, such as Wi-Fi signal strength, Bluetooth signal strength, and may also include the strength of the geomagnetic signal. The method for electronic devices to record the trajectory can be found in the relevant description above. Because the electronic device acquires more data, the trajectory recorded by the electronic device from the user's exit location to the target elevator or stairwell location is more accurate.

[0196] It should be understood that since there is no positioning signal or the positioning signal is weak on the B1 floor, while there is a positioning signal on the first floor, when the user takes the elevator from the B1 floor to the first floor, after the user exits the elevator, the electronic device can obtain accurate positioning signals (such as latitude and longitude information), so that the electronic device can use the exit location of the elevator as the target key point, and can subsequently provide the user with guidance on the location of the elevator.

[0197] In the embodiment of the present application, since the electronic device has recorded the trajectory 1 of the user from getting off the car to the target elevator, and the electronic device has recorded the location of the user when exiting the target elevator (i.e., the target key point), when the user subsequently searches for the vehicle, the user can smoothly reach the location of the elevator based on the location of the target elevator. After taking the elevator and exiting the elevator, the electronic device can provide the user with direction and distance guidance based on the current location and the previously recorded trajectory 1.

[0198] As shown in Figure 3(b), the user's vehicle is parked on the underground first floor of the garage. There is no positioning signal or the positioning error is large on the underground first floor. After getting off the vehicle, the user needs to take an escalator or stairs to the shopping mall on the first floor. In this case, the user needs to determine the location of the vehicle.

[0199] Similarly, the electronic device can record the user's walking trajectory through sensor data; or, the electronic device can also record the trajectory through sensor data and location fingerprint information.

[0200] In the process of an electronic device recording a user's walking trajectory, when the user does not take the escalator, the barometer data obtained by the electronic device changes little; when the user takes the escalator, the barometer data obtained by the electronic device changes greatly, so that the electronic device can determine the position of the user on the escalator through the change of the barometer data, and thus the position of the user on the escalator can be used as the end point of the recorded trajectory 1.

[0201] It should be understood that since there is no positioning signal on the B1 floor, but there is a positioning signal on the first floor, when a user takes the escalator from the B1 floor to the first floor, after the user exits the escalator, the electronic device can obtain accurate positioning signals (such as latitude and longitude information), so that the electronic device can use the location of the escalator exit as the target key point, and can subsequently provide the user with guidance on the location of the escalator.

[0202] In the embodiment of the present application, since the electronic device has recorded the trajectory 1 of the user from getting off the bus to getting on the escalator, and the electronic device has recorded the location of the user when exiting the escalator (i.e., the target key point), when the user subsequently searches for the bus, the user can smoothly reach the escalator based on the location of the escalator. After taking the escalator and exiting the escalator, the electronic device can provide the user with direction and distance guidance based on the current location and the previously recorded trajectory 1.

[0203] It is understood that the "B1" and "1st floor" in Figure 3 are merely schematic. In actual scenarios, the vehicle can be located on any floor without a positioning signal, for example, the vehicle can also be located on the "B2" or "B3" floor, and the "1st floor" with a positioning signal can also be any floor with a positioning signal, and this embodiment of the application is not limited to this.

[0204] It is understandable that when a user walks up the stairs from the basement floor to the first floor, the electronic device can determine the user's position on the stairs through the change pattern of the accelerometer, so that the position of the stairs can be used as the end point of the trajectory and the position of the stairs can be used as the target key point.

[0205] In some cases, the end point of the trajectory and the target key point may be at the same location. The following will introduce this technical solution in conjunction with Figure 4.

[0206] Figure 4 is a schematic diagram of an electronic device, provided by an embodiment of the present application, determining a user's trajectory after exiting a vehicle. As shown in Figure 4 , the user's vehicle is parked on the underground first floor of an underground garage, where there is no positioning signal or a large positioning error. After exiting the vehicle, the user can enter the mall directly from the underground first floor without taking an elevator or escalator. In this case, the user needs to determine the vehicle's location.

[0207] It is understandable that when a user enters a shopping mall with an electronic device, accurate positioning information (such as latitude and longitude information) can be obtained, but accurate positioning information cannot be obtained before entering the shopping mall. Therefore, the electronic device can set the location where accurate positioning information can be obtained as the end point of the trajectory.

[0208] It is understandable that, since the positioning information may also have some errors, the end point of the trajectory may correspond to a small area rather than a point.

[0209] It should be understood that the electronic device can use the same method of recording a track as described above to record track 1. In this case, the target key point and the end point of the track can be the same point.

[0210] When the user needs to use the car again later, if the user is at another location, the electronic device can provide the user with guidance on the location of the mall entrance, so that the user can smoothly reach the mall entrance, which is the end point of the trajectory; afterward, the electronic device provides the user with direction and distance guidance based on the current location and the previously recorded trajectory 1, which helps the user quickly find the vehicle.

[0211] FIG5 is a schematic flow chart of a method for recording a track according to an embodiment of the present application. As shown in FIG5 , the method 400 can be applied to an electronic device, and the method 400 includes steps 410 to 430 .

[0212] 410 , when a first preset condition is met, the electronic device obtains data information A.

[0213] Exemplarily, the first preset condition may be the preset condition A mentioned above. For details, please refer to the relevant description in the above text.

[0214] When the first preset condition is met, the electronic device can obtain data information A, which can be various data obtained by sensors. For example, the sensor can include the accelerometer, gyroscope, magnetometer, barometer, etc. mentioned above.

[0215] The data information A may also include location fingerprint information obtained by the electronic device. For example, the location fingerprint information may be the strength of a wireless signal, such as the strength of a WI-FI signal or a Bluetooth signal obtained by the electronic device at the current location.

[0216] It should be understood that the data information A may also include other information, such as ultra-wideband UWB signals, etc., which is not limited in the embodiment of the present application.

[0217] 420 , the electronic device starts recording the trajectory A of the electronic device according to the data information A.

[0218] The electronic device can begin recording trajectory A based on the acquired data information A. The starting point of trajectory A can be considered to be the location of the vehicle. As the user moves, the data information A acquired by the electronic device changes. The electronic device can record trajectory A of the electronic device in real time based on the most recently acquired data information.

[0219] As an example, the electronic device can determine a position point based on the data information A obtained at each moment, and record the relative displacement between the position point and the starting position point, thereby obtaining the trajectory of the electronic device from the starting moment to this moment.

[0220] As another example, the electronic device can determine a location point based on the data information A obtained at each moment, and record the relative displacement between the location point at this moment and the location point at the previous moment, thereby obtaining the trajectory of the electronic device from the starting moment to this moment.

[0221] As another example, the electronic device may also record various walking points of the user and determine the trajectory of the electronic device by using curve fitting.

[0222] It should be understood that each moment here may be a moment when a sensor of an electronic device collects data, or the moment may also be a moment every 1 second, every 2 seconds, etc.

[0223] In some examples, the trajectory A can also be displayed in real time on the display interface of the electronic device, thereby helping the user to determine his or her walking trajectory.

[0224] It is understandable that the trajectory A can also be understood as the user's walking trajectory.

[0225] 430 , when the second preset condition is met, the electronic device determines the end point of track A.

[0226] For example, the second preset condition may include but is not limited to at least one of the following conditions:

[0227] A change value of the magnetometer data acquired by the electronic device is greater than a second threshold;

[0228] The changes in the accelerometer data obtained by the electronic device conform to a regular pattern;

[0229] Electronic devices can obtain accurate positioning information;

[0230] The floor where the electronic equipment is located changes.

[0231] The change in the floor where the electronic device is located may be determined by the electronic device through a change in barometer data, or may be determined by the electronic device through acquiring floor information provided by a shopping mall.

[0232] For example, the electronic device can determine the end point of track A by changes in the acquired magnetometer data. As shown in FIG3(a), the end point of track A can be the position where the user was before entering the target elevator car. For details, please refer to the above description.

[0233] Alternatively, the electronic device may determine the end point of track A by determining a change in floor level. As shown in FIG3( b ), the end point of track A may be the location of the user before entering the escalator. For details, please refer to the above description.

[0234] Alternatively, the electronic device may also determine the end point of trajectory A by obtaining changes in the accelerometer data. The end point of trajectory A may be the position where the user was before entering the stairs.

[0235] Alternatively, the electronic device may also obtain accurate positioning information to determine the end point of track A. As shown in FIG4 , the end point of track A may be the location of the entrance to a shopping mall, and details may be found in the above description.

[0236] Based on the embodiment of the present application, the electronic device can obtain data information from various sensors and / or data information from wireless signals when the first preset condition is met, and record the movement trajectory A of the electronic device through the obtained data information, and determine the end point of trajectory A when the second preset condition is met, so that the electronic device can obtain the walking trajectory of the user from getting off the vehicle to the marked position (the end point of the trajectory). Therefore, when the user subsequently searches for a vehicle, the electronic device can start recording the user's trajectory again at the end point of the trajectory or when passing by a technical point of the trajectory to determine the relative position of the user's current position and trajectory A, thereby providing direction and distance guidance for the user to find the vehicle.

[0237] Figure 6 is a schematic diagram of a graphical user interface (GUI) provided in an embodiment of the present application, wherein (a) to (c) in Figure 6 illustrate the process of providing elevator location guidance to the user.

[0238] 6( a ), the GUI may be a display interface 210 of the electronic device 200 . The display interface 210 may be a display desktop of the electronic device 200 , and the display interface 210 may include multiple applications installed on the electronic device 200 .

[0239] For example, after the electronic device 200 detects that the user clicks the application icon 211 of the application (Application, App) 1, the GUI as shown in (b) of FIG. 6 may be displayed.

[0240] For example, the App1 can be used by users to manage parking. Users can use the App1 to view the location of the vehicle, the parking duration, and the user's trajectory from parking to taking the elevator.

[0241] 6( b ), the GUI may be a display interface 220 of the parking location in App 1 . The display interface 220 may include at least a reminder card 221 and a parking details card 222 .

[0242] The prompt card 221 may include the prompt content "not currently at the elevator entrance where you went up the floor before" and a go to elevator function button 2211.

[0243] It should be understood that the text content included in the prompt content is merely illustrative, and in other examples, the text content included in the prompt content may also be other content. For example, the prompt content may also be "Your current location is not at the place where you just went upstairs" or "Your current location is not at the correct elevator entrance", etc., which is not limited in the embodiments of the present application.

[0244] For example, the electronic device 200 may determine whether the current location is at the end point of the track.

[0245] The electronic device 200 may determine whether the current location is at the end point of the track in at least one of the following ways:

[0246] Method 1: Matching based on fingerprint information (such as Wi-Fi, Bluetooth, and geomagnetism).

[0247] If the similarity between the fingerprint information 1 of the current position and the fingerprint information 2 of the end point of the track is greater than a threshold, the current position can be determined to be at the end point of the track. Otherwise, the electronic device can determine that the current position is not at the end point of the track.

[0248] Method 2: Matching based on air pressure data.

[0249] If the difference between the air pressure data 1 at the current position and the air pressure data 2 at the end point of the track is less than a threshold, the current position can be determined to be at the end point of the track. Otherwise, the electronic device can determine that the current position is not at the end point of the track.

[0250] In other examples, the electronic device may further determine, based on the altitude information, that the current location is not at the end point of the trajectory.

[0251] Method 3: When the electronic device can obtain accurate positioning data, continuously obtain the device's longitude and latitude coordinates (or obtain them at regular intervals based on a specific rule). When detecting a floor change event, compare the distance between the last acquired location of the electronic device and the target key point to see if it is less than a threshold. If so, the current location is determined to be at the end point of the trajectory.

[0252] It should be understood that method three can also be combined with method one or method two, so that the electronic device can accurately obtain the floor where the vehicle is located.

[0253] The parking details card 222 may include an approximate location of the vehicle, a local map containing the approximate location of the vehicle, the walking distance from the user getting off the vehicle to the elevator entrance, and a view track function button 2221.

[0254] It should be understood that the trajectory can be the trajectory of the user getting off the car to the elevator entrance (or escalator, stairs) walking. Alternatively, the trajectory can also be the walking trajectory of the user from getting off the car to the place where an accurate positioning signal can be obtained.

[0255] For example, after the electronic device 200 detects that the user clicks the go to elevator function button 221 , it may display a GUI as shown in FIG. 6( c ).

[0256] 6( c ), the GUI may be a display interface 230 of the electronic device 200 for displaying the location of the elevator entrance. The display interface 230 may include an elevator room indicator icon 231 and an indicator icon 232 of the user's current location.

[0257] In this way, when the electronic device determines that the user's current location is not in the previously recorded elevator location, it can provide corresponding guidance to the user. The user can determine the location of the elevator icon on the map, which helps the user quickly determine the location of the elevator and bring a good experience to the user.

[0258] Because electronic devices use data from sensors (such as magnetometers) or location fingerprint information to determine whether they are at the end point of the trajectory, some errors may occur due to location deviations or building interference, resulting in the user reaching the target elevator room they previously went to, but the electronic device determines based on the data that they are not there. In this case, the electronic device can provide the user with a manual selection option on the display interface, thereby improving error tolerance.

[0259] Therefore, the display interface 230 may also include a prompt content “reached the elevator hall of the parking floor” 233 , a function option box 2331 and a backtracking car search function button 234 .

[0260] It is understood that the user can manually select the function option box 2331 so that the electronic device 200 determines that the user's current location is in the target elevator. After the electronic device 200 detects that the user clicks the backtracking car search function button 234, the direction guidance and distance indication from the current location to the vehicle location can be displayed in a new display interface.

[0261] FIG7 is a schematic diagram of another set of GUIs provided by an embodiment of the present application, wherein (a) to (e) in FIG7 illustrate a process in which an electronic device provides vehicle location guidance to a user.

[0262] It should be understood that (a) in FIG. 7 can refer to the relevant description of (a) in FIG. 6 , and for the sake of brevity, it will not be repeated here.

[0263] After the electronic device determines that the user's current location is at the elevator entrance where the user went up the floor before, and after the electronic device 200 detects that the user clicks the application icon 211 of App1, the GUI shown in (b) of Figure 7 can be displayed.

[0264] 7( b ), the GUI may be a display interface 240 for parking locations in App 1 . The display interface 240 may include at least a reminder card 241 and a parking details card 242 .

[0265] Among them, the prompt card 242 can display the icon of the elevator, the text content "Arrived at the elevator entrance for going up the previous floor" and the back-tracking car search function button 2411.

[0266] It should be understood that the parking details card 242 can refer to the relevant description of the card 222.

[0267] It is understood that the text content is merely illustrative.

[0268] When the electronic device 200 detects that the user clicks the backtracking car search function button 2411, it can display the GUI shown in (c) of Figure 7.

[0269] 7( c ), the GUI may be a display interface 250 for displaying prompt information on the electronic device. The display interface 250 may include a card 251 and an icon 252 indicating a direction.

[0270] Card 251 may include icons of the elevator and the vehicle, as well as the distance between the elevator and the vehicle. For example, card 251 may display text such as "approximately 85 meters from parking location." It should be understood that the distance displayed here is the distance from the parking location to the elevator, as previously recorded by electronic device 200, i.e., the length of the user's walking path after getting off the vehicle.

[0271] The direction prompt icon 252 may indicate the direction of the vehicle's parking location, thereby providing a certain direction for the user to find the vehicle.

[0272] In other examples, the display interface 250 may not include the card 251 .

[0273] When the user moves in the direction prompted by the electronic device 200, the direction and distance in the display interface 250 can be updated in real time.

[0274] Referring to (d) in FIG. 7 , the distance from the vehicle in the card 251 in the display interface 250 is updated to 60 meters, and the direction indicated in the direction prompt icon 252 always points to the vehicle's location.

[0275] When the electronic device 200 detects that the user clicks the card 251 , it may display a GUI as shown in FIG. 7 ( e ).

[0276] Referring to (e) in FIG. 7 , the GUI is a display interface 260 that displays the user's walking trajectory from getting off the car to the elevator.

[0277] The display interface 260 may include a distance prompt card 261 , a walking track 262 , and a backtracking car search function button 263 .

[0278] The display interface 260 may further include an icon 2621 indicating the location of the elevator car (the end point of the trajectory), an icon 2622 indicating the location of the vehicle (the starting point of the trajectory), and an icon 2623 indicating the user's current location and direction.

[0279] Since the vehicle is parked in an underground garage or indoors, and the positioning signal of the vehicle in the underground garage or indoors is weak or there is no positioning signal, it is impossible to accurately locate the vehicle. In the present application, when the first preset condition is met, the electronic device can obtain data from multiple sensors, and / or the location fingerprint information of the location of the electronic device, so that the trajectory 1 of the electronic device can be determined. The starting point of trajectory 1 can be considered to be the location of the vehicle, and the end point of trajectory 1 can be the location where the user gets on the elevator or escalator or enters the shopping mall. When the user subsequently arrives at the location where the end point of trajectory 1 is located (such as the elevator entrance), the electronic device can display the above-mentioned trajectory 1 by checking the trajectory operation. In the process of the user moving according to trajectory 1, the electronic device can also determine the user's position and current direction of travel based on the data from multiple sensors, and / or the location fingerprint information of the location of the electronic device, and after comparing with the previously generated trajectory 1, the user's current location can be displayed in trajectory 1.

[0280] In this way, even if the vehicle has no accurate positioning signal, the user can easily view the vehicle's location and the user's current location, thereby providing the user with guidance to find the vehicle. When the user is looking back to find the vehicle, the electronic device can provide the user with the direction and distance of the vehicle, thereby facilitating the user to find the vehicle conveniently.

[0281] In another example, after the electronic device 200 detects that the user has clicked the view track function button 2421 in the parking details card 242 in the display interface 240, the GUI shown in FIG7(e) may also be displayed. In this case, the card 261 displayed in the display interface 260 displays the text "The elevator entrance is approximately 85 meters away from the parking location," and an icon 2623 indicating the user's location is located near the icon 2621.

[0282] In some other examples, after the technical solution shown in (c) in Figure 6, when the user walks to the location of the elevator according to the instructions of the elevator, when the electronic device 200 detects the operation of returning to the previous interface, the GUI shown in (b) in Figure 7 can be displayed.

[0283] In the embodiment shown in Figures 6-7, the user can enter the display interface for managing the vehicle by clicking the application icon of App 1. In some cases, the entrance for managing the vehicle can also be located in the negative first screen of the electronic device.

[0284] For example, Figure 8 is a schematic diagram of another set of GUIs provided by an embodiment of the present application, wherein (a) to (d) in Figure 8 illustrate a process in which an electronic device provides vehicle location guidance to a user.

[0285] 8( a ), the GUI is a display interface 310 of the negative first screen of the electronic device 300. The display interface 310 may include at least a parking card 311, an application usage card 312, a search function box, and the like.

[0286] The parking card 311 may include information such as the parking location, parking duration, and a thumbnail map of the vehicle's location.

[0287] When the electronic device 300 detects that the user clicks the parking card 311, it may display a GUI as shown in (b) of FIG8 .

[0288] It should be understood that (b) in FIG8 can refer to the relevant description of (b) in FIG6 , and for the sake of brevity, it will not be repeated.

[0289] After the electronic device 300 detects the user clicking to view the track 2221 , it may display a GUI as shown in (c) of FIG. 8 .

[0290] Because electronic devices use data from sensors (such as magnetometers) or location fingerprint information to determine whether they are at the end point of the trajectory, some errors may occur due to location deviations or building interference, resulting in the user reaching the target elevator room they previously went to, but the electronic device determines based on the data that they are not there. In this case, the electronic device can provide the user with a manual selection option on the display interface, thereby improving error tolerance.

[0291] Referring to (c) in FIG8 , the GUI may be a display interface 330 showing the user's disembarkation trajectory. The display interface 330 may include a distance prompt card 331, a walking trajectory 332, a prompt "Arrived at the elevator lobby of the parking floor" 333, a function option box 3331, and a backtracking function button 334.

[0292] To make the vehicle indication more clear, the display interface 330 may also include an icon 3321 of the elevator location (the end point of the track) and an icon 3322 of the vehicle location (the starting point of the track), so that the user can determine the relative position of the elevator and the vehicle.

[0293] If the user determines that the current position is already in the target elevator room, the user can click the function option box 3331. In response to the user clicking the function option box 3331, the electronic device can determine that the current position is in the target elevator room, thereby providing direction guidance to the user.

[0294] When the electronic device detects that the user clicks the backtracking car search function button 334, it can display the GUI shown in (d) in Figure 8.

[0295] 8( d ), the GUI may be a display interface 340 for displaying prompt information on the electronic device. The display interface 340 may include a card 341 and an icon 342 indicating a direction.

[0296] Card 341 may include icons of the elevator and the vehicle, as well as the distance between the elevator and the vehicle. For example, card 341 may display text such as "approximately 85 meters from parking location." It should be understood that the distance displayed here is the distance from the parking location to the elevator, as previously recorded by electronic device 300, i.e., the length of the user's walking path after exiting the vehicle.

[0297] The direction prompt icon 342 can indicate the direction of the vehicle's parking location, thereby providing a certain direction for the user to find the vehicle.

[0298] In other examples, the display interface 340 may not include the card 341 .

[0299] When the user moves in the direction prompted by the electronic device 300, the direction and distance in the display interface 340 can be updated in real time.

[0300] Based on the embodiment of the present application, when the electronic device determines that there is a certain error, the user can manually confirm that the current position is near the target elevator car, thereby improving the fault tolerance of the electronic device.

[0301] In some cases, when the electronic device determines that the user's current location is not in the target elevator car (the end point of the trajectory), when the user clicks the parking card to enter the display interface for managing the vehicle's location, the display interface can also be displayed in other forms. This technical solution will be described below in conjunction with Figures 6-7.

[0302] For example, Figure 9 is a schematic diagram of another set of GUIs provided by an embodiment of the present application, wherein (a) to (c) in Figure 9 illustrate a process in which an electronic device provides an elevator location guide to a user.

[0303] It should be understood that (a) in FIG9 can refer to the relevant description of (a) in FIG8 , and for the sake of brevity, it will not be repeated here.

[0304] When the electronic device 300 detects that the user clicks the parking card 311 , it may display a GUI as shown in FIG. 9( b ).

[0305] 9( b ), the GUI may be a display interface 350 of an electronic device, which may include a particle cloud image 351 , a prompt 352 indicating “reached the elevator lobby of the parking floor”, a function selection box 3521 , and a backtracking car search function button 353 .

[0306] For example, the particle cloud image 351 may include text content “It seems that I am not in the elevator hall where I just went upstairs” and a function button 3512 for going to the elevator.

[0307] When the electronic device 300 detects that the user clicks the go to elevator function button 3512 , it may display a GUI as shown in FIG. 9( c ).

[0308] 9( c ), the GUI may be a display interface 360 ​​for displaying the location of the elevator room on the electronic device 300. The display interface 360 ​​may include an elevator room indicator icon 361 and an indicator icon 362 of the user's current location.

[0309] In this way, when the electronic device determines that the user's current location is not in the previously recorded elevator location, it can provide corresponding guidance to the user. The user can determine the location of the elevator icon on the map, which helps the user quickly determine the location of the elevator and bring a good experience to the user.

[0310] For example, Figure 10 is a schematic diagram of another set of GUIs provided by an embodiment of the present application, wherein (a) to (c) in Figure 10 illustrate a process in which an electronic device provides vehicle location guidance to a user.

[0311] It should be understood that (a) to (b) in FIG10 can refer to the relevant description of (a) to (b) in FIG9 , and for the sake of brevity, they are not repeated here.

[0312] When the electronic device 300 detects that the user clicks the function option box 3521, the electronic device 300 can determine that the user's current location is near the target elevator car. In this case, when the electronic device 300 detects that the user clicks the backtracking car search function button 353, the GUI shown in Figure 10 (c) can be displayed.

[0313] 10( c ), the GUI may be a display interface 370 for displaying prompt information on the electronic device. The display interface 340 may include a card 371 and an icon 372 indicating a direction.

[0314] Card 371 may include icons of the elevator and the vehicle, as well as the distance between the elevator and the vehicle. For example, card 371 may display text such as "approximately 85 meters from parking location." It should be understood that the distance displayed here is the distance from the parking location to the elevator, as previously recorded by electronic device 300, i.e., the length of the user's walking path after exiting the vehicle.

[0315] The direction prompt icon 372 can indicate the direction of the vehicle's parking location, thereby providing a certain direction for the user to find the vehicle.

[0316] In other examples, the display interface 370 may not include the card 371 or the icon 372 .

[0317] When the user moves in the direction prompted by the electronic device 300, the direction and distance in the display interface 370 can be updated in real time.

[0318] Based on the embodiments of the present application, when the electronic device determines that there is a certain error, the user can manually confirm that the current location is near the target elevator, thereby improving the fault tolerance of the electronic device. When the user is looking back to find the vehicle, the electronic device can provide the user with the direction and distance of the vehicle, making it easier for the user to find the vehicle.

[0319] In some cases, when the user is near the target elevator, for example, when the user gets off the elevator and is ready to look for the vehicle, if the electronic device determines that the user's current location is near the target elevator (the end point of the trajectory), then when the user clicks the parking card, the electronic device can directly display the display interface in which the user indicates the direction of the vehicle.

[0320] For example, Figure 11 is a schematic diagram of another set of GUIs provided in an embodiment of the present application, wherein (a) to (b) in Figure 11 illustrate a process in which an electronic device provides vehicle location guidance to a user.

[0321] For (a) in FIG. 11 , reference can be made to the relevant description of (a) in FIG. 8 .

[0322] If the electronic device 300 determines that the user's current location is near the target elevator car, after the electronic device 300 detects the user clicking the parking card 311, the GUI shown in (b) of Figure 11 can be displayed.

[0323] Among them, (b) in Figure 11 can refer to the relevant description of (c) in Figure 10, and for the sake of brevity, it will not be repeated here.

[0324] In this way, when the user's current location is near the target elevator, the user can click on the parking card to make the electronic device directly display a display interface for indicating the direction of the vehicle's location, thereby improving the efficiency of the user's operation.

[0325] In some cases, when the user is near the target elevator, for example, when the user gets off the elevator and is preparing to look for a vehicle, if the electronic device determines that the user's current location is near the target elevator (the end point of the trajectory), the electronic device can actively pop up a reminder message. For example, if the electronic device is in lock screen state, a reminder message can be popped up in the lock screen interface; if the electronic device displays the desktop or other application display interface, a reminder message can be popped up to inform the user.

[0326] For example, Figure 12 is a schematic diagram of another set of GUIs provided by an embodiment of the present application, wherein (a) to (b) in Figure 12 illustrate a process in which an electronic device pops up a reminder message.

[0327] Referring to (a) in FIG12 , if the electronic device 300 determines that the user's current location is near the target elevator car (the end point of the trajectory), a display card 381 of a reminder message may pop up in the display interface 380 of the lock screen of the electronic device.

[0328] The display card 381 may include the text content "You have arrived at the elevator entrance where you went up the previous floor. Do you want to start backtracking?" and a backtracking car search function button 3811.

[0329] When the electronic device detects that the user clicks the backtracking car search function button 3811, it can display the GUI shown in (b) in Figure 12.

[0330] Among them, (b) in Figure 12 can refer to the relevant description of (c) in Figure 10, and for the sake of brevity, it will not be repeated here.

[0331] Based on the embodiment of the present application, if the electronic device determines that the user's current location is near the target elevator (the end point of the trajectory), the electronic device can actively pop up a reminder message to inform the user that the trajectory can be backtracked to quickly find the vehicle.

[0332] It is understandable that, in some cases, when the electronic device detects that the user passes by the target elevator car, the reminder message may also pop up, which is not limited in the embodiment of the present application.

[0333] It is understandable that the technical solutions in the various embodiments shown in the above Figures 6-12 can be combined with each other or partially combined to form a new technical solution, and such a technical solution should not be considered to exceed the scope of protection of this application.

[0334] In some cases, due to the presence of magnetic field interference, when a user views his or her walking trajectory at different locations, the electronic device may present different display modes to the user depending on whether there is magnetic field interference at the current location.

[0335] FIG13 is a schematic diagram of another set of GUIs provided in an embodiment of the present application.

[0336] When the user views the walking trajectory, if the electronic device determines that there is no magnetic field interference or the interference is small at the current location, the electronic device can directly display the trajectory based on the earth coordinate system.

[0337] The electronic device can determine whether magnetic field interference exists by obtaining magnetometer data. For example, when the magnetometer value obtained by the electronic device is less than or equal to a threshold, it can be determined that magnetic field interference does not exist; or when the magnetometer value obtained by the electronic device is greater than the threshold, it can be determined that magnetic field interference exists.

[0338] For example, referring to FIG. 13 (a), the GUI may be a display interface 280 of an electronic device. This display interface 280 may include a user's walking trajectory 281, an icon 282 indicating the elevator's location (the end point of the trajectory), an icon 283 indicating the vehicle's location (the starting point of the trajectory), an icon 284 indicating the user's current location, and a direction indicator icon 285. This allows the user to clearly identify their current location and the location of their vehicle.

[0339] If the electronic device determines that the current location is subject to magnetic field interference or significant interference, the electronic device may display the trajectory on the display interface according to a preset presentation rule. For example, the electronic device may rotate the entire trajectory based on the direction of a segment of the trajectory determined during the trajectory recording phase (e.g., a segment of the trajectory entering the target elevator car) so that the direction of this segment of the trajectory points to the bottom (or downward) of the display interface.

[0340] For example, referring to (b) in FIG13 , the GUI may be a display interface 290 of an electronic device. The display interface 290 may include a user's walking trajectory 291, an icon 292 indicating the location of the elevator (the end point of the trajectory), an icon 293 indicating the location of the vehicle (the starting point of the trajectory), and a direction indicator icon 294.

[0341] The direction indicator icon 294 may point to the bottom (or bottom) of the display interface 290. In other examples, the direction indicator icon 294 may point to other directions, such as the top (or top) of the display interface 290, which is not limited in this embodiment of the present application.

[0342] Based on the embodiments of the present application, the electronic device can present different display modes to the user according to whether there is magnetic field interference at the current location, thereby providing the user with directional guidance of the vehicle's location in a variety of situations, thereby improving the user's experience.

[0343] The following will introduce the technical solution of the trajectory tracing stage in this application in conjunction with Figure 14. In the trajectory tracing stage, the user can quickly find the location of the vehicle according to the guidance of the electronic device.

[0344] For example, FIG14 is a schematic flow chart of a trajectory backtracking method provided by an embodiment of the present application. As shown in FIG14 , the method 500 may include steps 510 to 540 .

[0345] 510 , the electronic device determines whether the current position is at the end point of track A.

[0346] For example, the electronic device may determine whether the current position is at the end point of track A based on the acquired data information.

[0347] It is understandable that the manner in which the electronic device determines whether the current position is at the end point of track A can be found in the relevant description above.

[0348] 520 , if the current position of the electronic device is at the end point of trajectory A, determine the trajectory B of the electronic device.

[0349] If the electronic device's current location is at the end point of track A, the electronic device can determine the electronic device's track B. It is understood that the electronic device can determine track B in the same manner as it determines track A. For example, the electronic device can use the end point of track A as the starting point of track B, and record the track relative to the starting point based on the various acquired data information. This allows the electronic device to determine the relative position of the electronic device's current location to track A.

[0350] It should be understood that the electronic device can map the determined trajectory A and trajectory B to the same coordinate system. Since the data information obtained by the electronic device at the same position is almost the same and the data error is almost the same, mapping trajectory A and trajectory B to the same coordinate system can more accurately reflect the user's location.

[0351] It should be understood that step 520 may be an optional step. In other examples, step 520 may not be performed, and the embodiment of the present application is not limited thereto.

[0352] If step 520 is not performed, the electronic device can directly display the direction from the current location to the starting point of track A, thereby providing the user with a rough guide to help the user find the vehicle in the right direction and increase the possibility of the user successfully finding the vehicle.

[0353] 530 , in response to the user's operation A, display interface A is displayed, where display interface A includes a direction indication from the current position of the electronic device to the starting point of track A.

[0354] For example, the operation A may be a user clicking on a track to retrace the route. Referring to FIG7( c ), the display interface A may be display interface 250, and the direction indicator may be icon 252. Icon 252 may indicate the direction the user needs to go, thereby guiding the user to find the vehicle.

[0355] In some examples, the display interface A may also include an indication of the distance between the current position of the electronic device and the parking position, thereby helping the user determine how far away the vehicle is.

[0356] In some examples, as the electronic device or the user moves, the direction indication and distance indication in the display interface A can be updated in real time.

[0357] 540 , if the current position of the electronic device is not at the end point of the track A, prompt information A is displayed, and the prompt information A includes the position of the target key point.

[0358] For example, referring to (c) in FIG6 , the display interface corresponding to the prompt information A may be display interface 230. When the electronic device determines that the current position is not at the end point of trajectory A, the electronic device may display the prompt information A according to the user's operation, thereby providing the user with guidance on the location of the target key point, thereby facilitating the user to reach the target key point according to the guidance, and further reach the end point of trajectory A.

[0359] For example, referring to Figure 3(a), the target key point can be the location of the first-floor elevator exit. Referring to Figure 3(b), the target key point can be the location of the first-floor escalator exit. Referring to Figure 4, the target key point can be the same as the end point of trajectory A, which is the location of the entrance to the mall on the first floor below ground.

[0360] In this way, when the electronic device is not at the end point of track A, the electronic device can display the prompt information A to indicate the location of the target key point to the user, thereby facilitating guiding the user to reach the end point of track A.

[0361] In other examples, when a user carries an electronic device and passes the end point of track A, he or she may not immediately turn on the electronic device to view the original track A. Instead, he or she may have walked a certain distance before turning on the electronic device to view the track.

[0362] In this case, in this application, when the electronic device detects that the electronic device has passed the end point of track A, it can determine the track B of the electronic device, or it can start recording the track B of the electronic device, with the end point of track A as the starting point of track B. It is understandable that the electronic device can map track A and track B to the same coordinate system, so that when the user subsequently turns on the electronic device at any time T, the electronic device can determine the position T and movement direction of the electronic device at time T, and the electronic device can display the relative position of position T and track A.

[0363] As an example, the position T may be located on track A, so that the user can determine how far the position T is from the parking location, whether the user is going in the wrong direction, etc.

[0364] For example, during the movement of an electronic device, if the direction of movement of the electronic device is roughly correct, the data obtained by the electronic device at the same position T in trajectory A and trajectory B may be the same. Therefore, the electronic device can compare the obtained data information with the data information in trajectory A. If the difference or similarity between the two is less than a threshold, the electronic device can display position T in trajectory A.

[0365] As another example, the electronic device may also display both track A and track B in the display interface, so that the user can clearly understand whether the current track for finding the vehicle is correct.

[0366] It should be understood that the manner in which the electronic device starts recording the trajectory B of the electronic device can be referred to the relevant description in the foregoing text.

[0367] In the above embodiment, the electronic device cannot obtain the latitude and longitude information of the parking location, so the walking trajectory (relative displacement) after getting off the vehicle is needed to help the user retrace their steps to find the vehicle. In another case, if the vehicle's own trajectory recording is enabled when entering the underground garage (where satellite positioning is not possible), the latitude and longitude information of the parking location can be obtained based on the satellite positioning information before entering the garage and the vehicle's trajectory information.

[0368] It should be understood that sensors in the vehicle or in the vehicle (such as accelerometers, gyroscopes, magnetometers, etc.), and / or combined with wheel speed information, steering information, etc. uploaded by the vehicle can obtain the displacement and displacement direction of the vehicle at each moment, thereby determining the location of the vehicle.

[0369] In this case, after the user gets off the car, the electronic device may not start walking trajectory recording, but only needs to record the air pressure value after parking, which can correspond to the target floor of the parking location; and the electronic device can judge the above-mentioned floor change event (including walking out of the parking lot), obtain the corresponding location information based on the floor change event, and obtain the location information (such as longitude and latitude) of the target key point (such as the elevator room). When the user subsequently searches for the vehicle, the electronic device can start recording the trajectory C of the electronic device after determining that the user is on the target floor; the electronic device can also respond to the user's operation and display the direction and distance from the current position of the electronic device to the parking location in the display interface. The electronic device can also display the trajectory C, the direction of the user's current location, and the location of the vehicle.

[0370] It is understandable that the electronic device may record track C in the same manner as the electronic device records track B, which will not be described in detail here.

[0371] In this way, the relative position of the parking location and the target key point can be obtained without the need to follow the walking trajectory of the user getting off the car, and the above-mentioned car-finding process can be implemented to help the user find the parking location.

[0372] Specifically, taking the elevator as the target key point, the electronic device has determined the vehicle's location information A and the elevator's location information B, as well as the vehicle's target floor information (location information provided by a barometer or shopping mall).

[0373] In one embodiment, when the user is looking for a car, he or she continues to take the previous elevator. The process of the user looking back for the car can be performed by the electronic device, including the following steps:

[0374] Step 1: When the electronic device is able to obtain an accurate positioning signal, obtain the location information C of the electronic device.

[0375] For example, when a user is in a shopping mall, he or she can obtain an accurate positioning signal. At this time, the electronic device can obtain the latitude and longitude coordinates of the electronic device in real time or intermittently.

[0376] Step 2: Determine whether the difference between location information C and location information B is less than a threshold.

[0377] For example, the location information C and the location information B may be longitude and latitude coordinates, and the electronic device may determine whether the difference between the longitude and latitude of the location information C and the location information B is less than a threshold.

[0378] Step 3: If the difference between the location information C and the location information B is less than a threshold, determine whether the electronic device is located on the target floor.

[0379] If the difference between the longitude and latitude of the location information C and the location information B is less than a threshold, it can be determined that the electronic device is currently located in the elevator previously taken. The electronic device can then further determine whether the electronic device is located at the target floor.

[0380] For example, the electronic device can determine whether it is on the target floor by comparing the currently obtained barometer value with the barometer value obtained after getting off the vehicle; or, the electronic device can also determine whether it is on the target floor by obtaining floor information; or, the electronic device can also determine whether it is on the target floor by comparing the currently obtained altitude information with the altitude information obtained after getting off the vehicle.

[0381] Step 4: If the electronic device is located on the target floor, record the trajectory C of the electronic device.

[0382] It should be understood that if the electronic device is located on the target floor, the current location of the electronic device is on the same floor as the vehicle, and the electronic device can start recording trajectory C.

[0383] The recording method of the trajectory C can refer to the above description of the electronic device recording the trajectory B. For example, the electronic device records the trajectory C through data from various sensors.

[0384] Step 5: Display prompt information C, which is used to indicate the direction from the current location of the electronic device to the location information A of the vehicle.

[0385] The electronic device can display the prompt information C in the display interface in response to the user's operation.

[0386] The prompt information C can also be used to indicate the distance from the current position to the vehicle's position information A.

[0387] Since the parking location and the elevator location are both longitude and latitude coordinates in the Earth coordinate system, in another embodiment, when the user goes back to find the car, without taking the previous elevator, the user's backtracking process can be performed by the electronic device, including the following steps:

[0388] Step 1: When the electronic device is able to obtain an accurate positioning signal, obtain the location information C of the electronic device.

[0389] For example, when there is an accurate positioning signal, the electronic device can continuously obtain (or obtain at intervals in some manner) the location information of the electronic device. The location information can be the latitude and longitude coordinates of the electronic device.

[0390] Step 2: Determine whether the electronic device is located on the target floor.

[0391] Exemplarily, when the electronic device detects the above-mentioned floor change event, it can determine whether the electronic device is located on the target floor based on the data of the barometer or the acquired floor information.

[0392] Step 3: When it is determined that the electronic device is located on the target floor, the trajectory C of the electronic device is recorded.

[0393] For example, the electronic device may use the last acquired location information C as a starting point, and determine the current latitude and longitude coordinates of the electronic device based on the data acquired from various sensors, thereby recording the trajectory C of the electronic device.

[0394] Step 4: Display prompt information C, which is used to indicate the direction from the current location of the electronic device to the location information A of the vehicle.

[0395] The electronic device can display the prompt information C in the display interface in response to the user's operation.

[0396] The prompt information C can also be used to indicate the distance from the current position to the vehicle's position information A.

[0397] In this way, users do not need to start looking for the vehicle from the elevator they took before. After the user arrives at the target floor from other elevators, the electronic device can also provide the user with vehicle-finding instructions to help the user find the vehicle quickly.

[0398] In other examples, the electronic device may also determine the location of the vehicle by using the direction of trajectory 1 or the direction of a portion of trajectory 1 determined by the electronic device in the previous embodiments, and the location information of the target key point.

[0399] For example, based on the latitude and longitude information of the target key point and the direction of trajectory 1 or the direction before the user enters the elevator in trajectory 1, trajectory 1 is mapped to the coordinate system, so that the latitude and longitude coordinates of the starting point of trajectory 1 can be determined, that is, the location of the vehicle.

[0400] FIG15 is a schematic flow chart of a method for indoor navigation provided by an embodiment of the present application. As shown in FIG15 , the method 600 can be applied to an electronic device, and the method 600 can include steps 610 to 640.

[0401] 610. When a first preset condition is met, the electronic device obtains first data information, where the first data information includes posture information and direction information of the electronic device, and / or location fingerprint information.

[0402] Exemplarily, the electronic device is communicatively connected to the intelligent driving device, and the first preset condition may include, but is not limited to, at least one of the following:

[0403] The gear position of the intelligent driving device is in the parking position;

[0404] The electronic device is disconnected from the intelligent driving device;

[0405] The intelligent driving device is in the locked state;

[0406] An operation to start recording a track is detected; or,

[0407] The distance between the electronic device and the intelligent driving device is greater than a preset distance, where the preset distance is calculated by the electronic device through wireless communication (such as Bluetooth, UWB, etc.).

[0408] It should be understood that the electronic device is communicatively connected to the intelligent driving device (such as a vehicle), so that the electronic device can obtain various states of the intelligent driving device.

[0409] When a first preset condition is met, the electronic device may obtain first data information, where the first data information includes posture information and direction information of the electronic device, and / or location fingerprint information.

[0410] For example, electronic devices use accelerometers and gyroscopes to obtain attitude information, and use gyroscopes and magnetometers to obtain direction information. This location fingerprint information can include the strength of wireless signals obtained by the electronic device, such as Wi-Fi signal strength, Bluetooth signal strength, and geomagnetic signal strength.

[0411] 620. The electronic device records a first trajectory of the electronic device according to the first data information. The starting point of the first trajectory is a position point determined by the electronic device according to the first data information when a first preset condition is satisfied.

[0412] It should be understood that the specific implementation manner in which the electronic device records the first trajectory of the electronic device according to the first data information can refer to the relevant description above.

[0413] The starting point of the first trajectory can be understood as the location of the vehicle. The first trajectory is the walking trajectory of the user after getting off the vehicle.

[0414] 630 , if the second preset condition is met, the electronic device determines an end point of the first track according to the second data information, wherein the end point and the start point of the first track form a first track of the electronic device.

[0415] Exemplarily, the second preset condition is at least one of the following conditions:

[0416] A change value of the magnetometer data acquired by the electronic device is greater than a second threshold;

[0417] The absolute value of the change in the barometer data obtained by the electronic device is greater than a third threshold, or the change in the barometer data obtained by the electronic device within a preset time is greater than a fourth threshold;

[0418] Changes in inertial sensor data acquired by the electronic device conform to a first rule, where the inertial sensor includes at least one of an accelerometer, a gyroscope, or a magnetometer;

[0419] The signal strength of the communication signal of the electronic device complies with the second rule, the communication signal including at least one of a Wi-Fi signal, a Bluetooth signal, a cellular signal, or a positioning signal;

[0420] The electronic device is able to obtain accurate positioning information; or,

[0421] The floor where the electronic equipment is located changes.

[0422] It should be understood that the electronic device can determine the end point of the first track when the second preset condition is met.

[0423] For example, as shown in FIG3(a), the end point can be the location of the target elevator car. As shown in FIG3(b), the end point can also be the location of the escalator. As shown in FIG4, the end point can also be the location of the shopping mall entrance.

[0424] For example, the first rule may be a data change rule determined by the electronic device through an inertial sensor when a user goes up or down an elevator, stairs, or escalator, etc. The rule may be a rule preset in the electronic device.

[0425] It should be understood that the electronic device can also determine the above-mentioned events of going up or down an elevator, stairs, escalator, etc. by using only one of the inertial sensors. For example, the change pattern of the accelerometer can be used to determine whether the user is going up or down an elevator.

[0426] For example, the second rule may be that the signal strength first decreases and then increases after a period of time. Alternatively, the second rule may be a rule preset in the electronic device.

[0427] The type of data included in the second data information may be the same as that included in the first data information, such as data from various sensors. In some examples, the second data information is the same as the first data information.

[0428] It should be understood that the specific values ​​of the second threshold, the third threshold, and the fourth threshold are not limited in the embodiments of the present application. If the absolute value of the change in the barometer data obtained by the electronic device is greater than the third threshold, or if the change in the barometer data obtained by the electronic device within a preset time is greater than the fourth threshold, it can be determined that the floor on which the electronic device is located has changed.

[0429] This step 630 can also be understood as that when the second preset condition is met, the electronic device stops recording the user's walking trajectory, and the point where recording the walking trajectory stops is the end point.

[0430] 640. When a third preset condition is met, the electronic device displays a first display interface, where the first display interface includes first prompt information, and the first prompt information is used to indicate a direction from the position of the electronic device to the starting point.

[0431] Exemplarily, the third preset condition includes at least one of the following conditions:

[0432] Condition 1: The electronic device is located at the end point of the first trajectory;

[0433] Condition 2: The second trajectory of the electronic device includes the end point of the first trajectory, wherein the second trajectory is determined by the electronic device based on third data information, and the third data information includes posture information and direction information of the electronic device, and / or location fingerprint information, wherein the second trajectory and the first trajectory are located in the same coordinate system; or

[0434] Condition 3: When a floor change is detected, the difference between the last position acquired by the electronic device and the target key point is less than a threshold.

[0435] In condition one, when the user is looking for a vehicle, after the current location of the electronic device is at the end point of the first track, the electronic device also needs to start recording the track of the electronic device. The electronic device can display the first display interface to provide the user with directional guidance on the vehicle's location.

[0436] In condition two, when searching for a vehicle, the user may not check their phone after passing the end point of the first trajectory, but may only check their phone after walking a certain distance. In this case, when the user passes the end point of the first trajectory, the electronic device begins recording the second trajectory and can display the first display interface when the user checks their phone, providing the user with directions to the vehicle's location.

[0437] In condition three, when a floor change is detected, if the difference between the position last obtained by the electronic device and the target key point is less than a threshold, it can be understood that the user gets off the elevator from the target key point when looking for a car. When the user arrives at the corresponding floor, the electronic device can display the first display interface to provide the user with directional guidance on the vehicle's location.

[0438] Based on the embodiment of the present application, after the electronic device detects that the user gets off the vehicle, it can obtain data from various sensors and record the user's walking trajectory, namely the first trajectory; when the second preset condition is met, the electronic device can determine the end point of the first trajectory (such as the elevator); when the user subsequently searches for the vehicle, if the electronic device determines that the user's position is at the end point of the first trajectory, or the user passes the end point of the first trajectory, the electronic device can start to trace the trajectory (record the trajectory again) and can display the direction from the user's current position to the starting point of the first trajectory in the first display interface.

[0439] This technical solution can use the electronic devices carried by the user to obtain various data information to record the user's trajectory from getting off the vehicle to the marked location (such as an elevator); so that when the user subsequently comes to the marked location again or passes by the marked location, the electronic device can provide the user with corresponding direction guidance based on the previously obtained walking trajectory, so that the user can easily find the location of the vehicle.

[0440] In some embodiments, when a third preset condition is met, the electronic device displays the first display interface, including:

[0441] When the third preset condition is met and in response to the user's first operation, the electronic device displays the first display interface.

[0442] When the third preset condition is met, the electronic device may further display the first display interface according to the user's operation.

[0443] For example, referring to (b) and (c) in FIG. 7 , the first operation may be an operation in which the user clicks the backtracking car search function button 2411 , and the first display interface may be the display interface 250 .

[0444] In some embodiments, the method 600 further includes:

[0445] In response to a second operation by the user, a second display interface is displayed, where the second display interface includes the first track, information indicating the position and direction of the electronic device, and / or the second track.

[0446] 7 (e), the second operation may be an operation of the user clicking on the card 251, and the second display interface may be the display interface 260. The first track is track 262, and the indication information of the position and direction of the electronic device is 2623.

[0447] Optionally, the second display interface may further include an indication of the location of the vehicle and an indication of the location of the end point of the first trajectory.

[0448] Optionally, the second display interface may not include the first track. In this case, the second display interface includes an indication of the position and direction of the electronic device and an indication of the position of the vehicle.

[0449] Based on an embodiment of the present application, the electronic device can, in response to a second user operation, display a second display interface including the first trajectory and information indicating the location and direction of the electronic device, thereby providing the user with real-time guidance of the vehicle's location and the user's current location. Furthermore, the second display interface can also include a second trajectory, thereby facilitating the user's determination of whether their walking trajectory during the vehicle search phase deviates from the originally recorded trajectory.

[0450] In some embodiments, recording a first trajectory of an electronic device according to first data information includes:

[0451] Determine, based on the first data information, the relative displacement, direction, and / or position fingerprint information of the target moment relative to the moment of the starting point or the moment before the target moment;

[0452] The first trajectory is recorded according to the relative displacement, direction and / or position fingerprint information.

[0453] It should be understood that the target time may be the time when the sensor of the electronic device samples.

[0454] Based on the embodiment of the present application, the electronic device can determine the relative displacement, direction and / or position fingerprint information of the target moment relative to the moment of the starting point or the moment before the target moment based on various data to record the user's walking trajectory.

[0455] In some embodiments, the method 600 further includes:

[0456] During the movement of the electronic device, the direction in the first prompt information is updated in real time according to the first trajectory.

[0457] Since the electronic device records the track again when tracing back the track, it can determine the position and direction at each moment, so that the direction in the first prompt information can be updated in real time. It should be understood that the electronic device records the track again in the same way as the first track.

[0458] Based on the embodiment of the present application, when the user is carrying the electronic device and moving around, the electronic device can also update the direction in the first prompt information in real time, thereby providing the user with real-time direction guidance.

[0459] In some embodiments, updating the direction in the first prompt information in real time according to the first trajectory includes:

[0460] Determining, based on the fourth data information, the displacement, direction, and / or position fingerprint information of the electronic device relative to the first trajectory;

[0461] The direction in the first prompt information is updated in real time according to the displacement, direction and / or position fingerprint information of the electronic device relative to the first trajectory and the first trajectory.

[0462] When the user moves the electronic device, the electronic device can determine the current displacement, direction and other information of the electronic device based on the acquired fourth data information, so as to update the direction in the first prompt information in real time.

[0463] In some embodiments, before displaying the first display interface, method 600 further includes:

[0464] If the electronic device is not located at the end point of the first track, in response to a third operation of the user, a third display interface is displayed, where the third display interface includes the location of the end point of the first track.

[0465] For example, the end point of the first trajectory may be the junction of the underground garage and the shopping mall, or the end point of the first trajectory may be the junction of the underground garage and the outdoors.

[0466] Based on the embodiment of the present application, if the user is not at the end point of the first track, the user can also view the location of the end point of the first track through the third operation, thereby providing the user with guidance on the location of the end point of the track.

[0467] In some embodiments, determining the end point of the first trajectory according to the second data information includes:

[0468] Determine the location information of the target key points;

[0469] Determine the end point of the first trajectory according to the position information of the target key point and the second data information;

[0470] The method 600 further includes:

[0471] If the electronic device is not located at the end point of the first trajectory, in response to a third operation of the user, a third display interface is displayed, where the third display interface includes the location information of the target key point.

[0472] For example, referring to (b) and (c) in FIG. 6 , the third operation may be an operation in which the user clicks the go to elevator function button 2211 , the third display interface may be the display interface 230 , and the target key location information may be the indicator icon 232 .

[0473] For example, if a user takes an elevator from a basement, the target key point may be the location where the user exits the elevator. Since the user exits the elevator and enters a shopping mall, the electronic device may obtain location information of the location, such as longitude and latitude coordinates. The end point of the first trajectory may be a location near where the user enters the elevator.

[0474] Based on the embodiments of the present application, the electronic device can display the location of the target key point according to the user's operation, thereby providing the user with location guidance of the target key point, which is conducive to the user finding the target key point according to the guidance and provides convenience for subsequent accurate search for the vehicle.

[0475] In some embodiments, the method 600 further includes:

[0476] In response to a fourth operation of the user, a fourth display interface is displayed, where the fourth display interface includes the first track of the electronic device.

[0477] For example, referring to (b) and (c) in FIG. 8 , the fourth operation may be an operation in which the user clicks the view track function button 2221 , and the fourth display interface may be the display interface 330 .

[0478] Based on the embodiment of the present application, the electronic device can display the first trajectory of the electronic device through the user's operation, so that the user can view the trajectory from getting off the vehicle to the key identification point.

[0479] In some embodiments, the fourth display interface also includes the current location and direction of the electronic device.

[0480] Based on the embodiment of the present application, the fourth display interface may further include the current location and direction of the electronic device, thereby facilitating the user to determine the relative relationship between his or her location and the first trajectory.

[0481] In some embodiments, the actual direction of a segment of the first track having a determined direction is a first direction, and the direction of the segment of the first track having a determined direction after rotation in the third display interface is displayed as a second direction, wherein the second direction is perpendicular to the side where the status bar of the electronic device is located.

[0482] For example, if the first direction is the direction of entering the elevator, then the second direction is downward. Alternatively, if the first direction is the direction of exiting the elevator, then the second direction is upward.

[0483] In some embodiments, the method 600 further includes:

[0484] obtaining fifth data information of the electronic device;

[0485] If the similarity between the fifth data information and the second data information is greater than a first threshold, determining that the position of the electronic device is at the end point of the first trajectory;

[0486] Alternatively, if the similarity between the fifth data information and the second data information is less than or equal to the first threshold, it is determined that the position of the electronic device is not located at the end point of the first trajectory.

[0487] Exemplarily, the fifth data information and the second data information are location fingerprint information.

[0488] Based on the embodiment of the present application, the electronic device can determine whether the current position of the electronic device is at the end point of the first trajectory based on the relationship between the acquired fifth data information and the second data information, which is helpful for the electronic device to determine whether to start recording the user's trajectory again, so as to provide direction and distance guidance to the user.

[0489] In some embodiments, the method 600 further includes:

[0490] In response to a fifth operation of the user, it is determined that the position of the electronic device is located at an end point of the first trajectory.

[0491] Exemplarily, referring to (c) in FIG. 8 , the fifth operation may be an operation in which the user clicks on the function option box 3331 .

[0492] In some embodiments, the first prompt information also includes the distance from the location to the starting point.

[0493] Based on the embodiment of the present application, the first prompt information may also include the distance from the current position of the electronic device to the starting point of the first trajectory, thereby helping the user understand how far away the current parking position is.

[0494] In some embodiments, the end point of the first trajectory is an elevator car.

[0495] In some cases, the electronic device can obtain the latitude and longitude information of the parking location. The following will introduce this technical solution in conjunction with Figure 16.

[0496] FIG16 is a schematic flow chart of another indoor navigation method provided by an embodiment of the present application. As shown in FIG16 , the method 700 can be applied to an electronic device, and the method 700 can include steps 710 to 740.

[0497] At 710 , the electronic device determines first location information of the intelligent driving device, second location information of the target key point, and the target floor where the intelligent driving device is located.

[0498] For example, the electronic device can use the sensors of the vehicle or electronic device (such as accelerometers, gyroscopes, magnetometers, etc.), and / or combine the wheel speed information, steering information, etc. uploaded by the vehicle to obtain the displacement and displacement direction of the vehicle at each moment, so as to determine the position of the vehicle after entering the basement (such as longitude and latitude coordinates).

[0499] For example, the second position information of the target key point may be the longitude and latitude coordinates acquired by the electronic device, such as the longitude and latitude coordinates when the user exits the elevator.

[0500] Exemplarily, the target floor where the intelligent driving device is located may be obtained by the electronic device through a barometer, or may be determined by the electronic device through floor information.

[0501] 720. The electronic device obtains third location information of the electronic device.

[0502] When the user subsequently searches for the car, the electronic device can continue to obtain the third location information of the electronic device, such as the latitude and longitude coordinates, when accurate location information can be obtained.

[0503] 730. If it is determined that the electronic device is located on the target floor, the electronic device records a third trajectory of the electronic device based on the second information, wherein the starting point of the third trajectory is the position corresponding to the third position information, and the second information includes posture information and direction information of the electronic device, and / or location fingerprint information.

[0504] If the electronic device determines that it is located at the target floor, it means that the user has arrived at the floor where the vehicle was previously parked. At this time, the user may need to find the vehicle, and the electronic device may start recording a third trajectory of the electronic device, with the starting point of the trajectory being the location corresponding to the third location information.

[0505] 740. In response to a first operation of the user, a first display interface is displayed, where the first display interface includes first prompt information, where the first prompt information is used to indicate a direction from the current position of the electronic device to the intelligent driving device.

[0506] In other examples, the first prompt information can also be used to indicate the distance from the current location of the electronic device to the intelligent driving device.

[0507] Based on the embodiment of the present application, the electronic device can first determine the first position information of the intelligent driving device (such as a vehicle), the second position information of the target key point, and the target floor where the parking is located. When the user subsequently searches for the car, the electronic device can continue to obtain the third position information of the electronic device when accurate position information can be obtained. If it is further determined that the electronic device is on the target floor, the third trajectory of the electronic device can be recorded based on the second information, and the third position information of the electronic device obtained last is used as the starting point of the third trajectory. Thus, when the user wants the electronic device to provide guidance, the first operation can be used to make the electronic device display the first display interface, providing the user with directional guidance from the current location to the location of the vehicle.

[0508] In this technical solution, after getting off the vehicle, the electronic device has already determined the latitude and longitude of the vehicle and the target floor of the vehicle, as well as the latitude and longitude of the target key points (such as the elevator); when searching for the vehicle subsequently, the electronic device can continue to obtain the third position information of the electronic device when it can obtain accurate position information. When the user arrives at the target floor, the electronic device can start recording the trajectory and use the third position information as the starting point. Since the recorded trajectory also has direction and distance, and the latitude and longitude coordinates of the vehicle are known, the electronic device can provide direction and distance guidance to the user.

[0509] In some embodiments, determining that the electronic device is located on a target floor includes:

[0510] If the difference between the first data and the second data of the barometer obtained is less than a fifth threshold, it is determined that the electronic device is located on the target floor; wherein the first data is the barometer value currently obtained by the electronic device, and the second data is the barometer value obtained and recorded by the electronic device on the target floor; or

[0511] Determine that the electronic device is located on the target floor based on the acquired floor information.

[0512] It should be understood that the embodiment of the present application does not limit the specific value of the fifth threshold.

[0513] Based on the embodiments of the present application, the electronic device can determine whether it is located on the target floor in a variety of ways.

[0514] In some embodiments, before determining that the electronic device is located on the target floor, the method 700 further includes:

[0515] determining that a difference between the third position information and the second position information is less than or equal to a sixth threshold; or,

[0516] The third location information is determined to be the location information last acquired by the electronic device.

[0517] It should be understood that the embodiment of the present application does not limit the specific value of the sixth threshold.

[0518] Based on the embodiment of the present application, if the difference between the third location information and the second location information is less than or equal to the sixth threshold, it can be determined that the user has exited the previous elevator. If the third location information is the location information last acquired by the electronic device, it can be determined that the user has exited from another location. In both cases, the technical solution of the present application is applicable.

[0519] In some embodiments, the method 700 further includes:

[0520] In response to the user's second operation, a second display interface is displayed, where the second display interface includes the first position information, the second position information, information indicating the current position and direction of the electronic device, and / or the third track.

[0521] Based on the embodiments of the present application, users can also view the specific location of the vehicle, the current location and direction of the electronic device, and / or the third track after the user reaches the target floor through convenient operations. This helps users to clearly understand their own location and the location of the vehicle.

[0522] In some embodiments, recording a third trajectory of the electronic device according to the second information includes:

[0523] Determine the current location, direction and / or location fingerprint information based on the second information and the third location information;

[0524] The third trajectory is recorded according to the current position, direction and / or position fingerprint information.

[0525] Based on the embodiments of the present application, the electronic device can determine the current location, direction and / or location fingerprint information based on various data and the third location information of the electronic device to record the user's walking trajectory.

[0526] In some embodiments, determining the first location information of the intelligent driving device includes:

[0527] If a first preset condition is met, first data information is obtained, where the first data information includes posture information and direction information of the electronic device, and / or location fingerprint information;

[0528] Recording a first trajectory of the electronic device according to the first data information; wherein a starting point of the first trajectory is a position point determined by the electronic device according to the first data information when a first preset condition is satisfied;

[0529] When a second preset condition is met, an end point of the first trajectory is determined according to the second data information, and a first trajectory of the electronic device is formed between the end point and the starting point of the first trajectory;

[0530] The first position information of the intelligent driving device is determined according to the direction of the first trajectory or the direction of a portion of the first trajectory and the second position information of the target key point.

[0531] It should be understood that the above-mentioned first preset condition, second preset condition, first trajectory, etc. can refer to the relevant description in the previous text.

[0532] Based on an embodiment of the present application, the electronic device can record a first walking trajectory of the user carrying the electronic device after the user exits the vehicle, and determine the first location information of the vehicle based on the direction of the first trajectory or the direction of a portion of the first trajectory and the second location information of the target key point. For example, the second location information is longitude and latitude coordinates, which can be obtained by reverse engineering based on the longitude and latitude coordinates of the target key point and the exact direction in the first trajectory.

[0533] Figure 17 is an exemplary block diagram of an electronic device provided in an embodiment of the present application. As shown in Figure 17, the electronic device 1000 may include one or more processors 1010 and one or more memories 1020. The one or more memories 1020 store one or more programs. When the one or more programs are executed by the one or more processors 1010, the indoor navigation method described in any of the possible implementations described above is executed.

[0534] For example, the electronic device 1000 can be used to execute the aforementioned methods 400, 500, 600, and 700. The electronic device 1000 can also be the aforementioned electronic device 100, 200, or 300.

[0535] An embodiment of the present application also provides a chip, which includes a processor and a communication interface, wherein the communication interface is used to receive a signal and transmit the signal to the processor, and the processor processes the signal so that the indoor navigation method described in any possible implementation method described above is executed.

[0536] It is understandable that, in order to implement the above functions, the device includes hardware and / or software modules that perform the corresponding functions. In combination with the algorithm steps of each example described in the embodiments disclosed herein, the present application can be implemented in the form of hardware or a combination of hardware and software. Whether a function is executed in a hardware or software-driven hardware manner depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application in combination with the embodiments, but such implementation should not be considered to be beyond the scope of this application.

[0537] In this embodiment, the device can be divided into functional modules according to the above-mentioned method examples. For example, each functional module can be divided according to its function, or two or more functions can be integrated into a single processing module. The above-mentioned integrated modules can be implemented in the form of hardware. It should be noted that the module division in this embodiment is illustrative and only represents a logical functional division. In actual implementation, other division methods may be used.

[0538] This embodiment also provides a device, including a module for implementing the indoor navigation method in the above embodiment.

[0539] This embodiment further provides a readable storage medium, which stores instructions. When the instructions are executed on an electronic device, the electronic device executes the above-mentioned related method steps to implement the indoor navigation method in the above-mentioned embodiment.

[0540] This embodiment further provides a program product. When the program product is run on an electronic device, the electronic device is caused to execute the above-mentioned related steps to implement the indoor navigation method in the above-mentioned embodiment.

[0541] In addition, an embodiment of the present application also provides a device, which can specifically be a chip, component or module, and the device may include a connected processor and memory; wherein the memory is used to store execution instructions, and when the device is running, the processor can execute the execution instructions stored in the memory to enable the chip to execute the indoor navigation method in the above-mentioned method embodiments.

[0542] Among them, the devices, equipment, readable storage media, program products or chips provided in this embodiment are all used to execute the corresponding methods provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding methods provided above, and will not be repeated here.

[0543] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.

[0544] Those skilled in the art will clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0545] In the several embodiments provided in this application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are merely schematic. For example, the division of the units is merely a logical function division. In actual implementation, there may be other division methods, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0546] The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of these units may be selected to achieve the purpose of this embodiment according to actual needs.

[0547] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

[0548] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.

[0549] The above description is merely a specific embodiment of the present application, but the scope of protection of the present application is not limited thereto. Any changes or substitutions that can be easily conceived by a person skilled in the art within the technical scope disclosed in this application should be included in the scope of protection of this application. Therefore, the scope of protection of this application should be based on the scope of protection of the claims.

Claims

1. A method for indoor navigation, characterized in that: The method is applied to an electronic device, and the method comprises: When a first preset condition is met, first data information is acquired, where the first data information includes posture information and direction information of the electronic device, and / or location fingerprint information; recording a first trajectory of the electronic device according to the first data information; a starting point of the first trajectory is a position point determined by the electronic device according to the first data information when the first preset condition is met; When a second preset condition is met, determining an end point of the first trajectory according to second data information, wherein the end point of the first trajectory and the starting point form a first trajectory of the electronic device; When a third preset condition is met, a first display interface is displayed, wherein the first display interface includes first prompt information, and the first prompt information is used to indicate the direction from the position of the electronic device to the starting point.

2. The method according to claim 1, characterized in that The displaying of the first display interface when the third preset condition is met includes: When the third preset condition is met, the first display interface is displayed in response to a first operation of the user.

3. The method according to claim 1 or 2, characterized in that: The third preset condition includes at least one of the following conditions: The position of the electronic device is located at the end point of the first trajectory; The second trajectory of the electronic device includes the end point of the first trajectory, wherein the second trajectory is determined by the electronic device according to third data information, and the third data information includes posture information and direction information of the electronic device, and / or location fingerprint information, wherein the second trajectory and the first trajectory are located in the same coordinate system; or When a floor change is detected, the difference between the position last acquired by the electronic device and the target key point is less than a threshold.

4. The method according to claim 3, characterized in that The method further comprises: In response to a second operation of the user, a second display interface is displayed, where the second display interface includes the first trajectory, information indicating the position and direction of the electronic device, and / or the second trajectory.

5. The method according to claim 3, characterized in that: Recording a first trajectory of the electronic device according to the first data information includes: Determine the relative displacement, direction and / or position fingerprint information of the target moment relative to the moment of the starting point or the moment before the target moment according to the first data information; The first trajectory is recorded according to the relative displacement, direction and / or position fingerprint information.

6. The method according to any one of claims 1 to 5, characterized in that The method further comprises: During the movement of the electronic device, the direction in the first prompt information is updated in real time according to the first trajectory.

7. The method according to claim 6, characterized in that The updating the direction in the first prompt information in real time according to the first trajectory includes: Determine, according to fourth data information, the displacement, direction and / or position fingerprint information of the position of the electronic device relative to the first trajectory; The direction in the first prompt information is updated in real time according to the displacement, direction and / or position fingerprint information of the position relative to the first trajectory and the first trajectory.

8. The method according to any one of claims 1 to 7, characterized in that Before displaying the first display interface, the method further includes: If the position of the electronic device is not located at the end point of the first track, in response to a third operation of the user, a third display interface is displayed, where the third display interface includes the position of the end point of the first track.

9. The method according to any one of claims 1 to 7, characterized in that: The step of determining the end point of the first trajectory according to the second data information includes: Determine the location information of the target key points; Determining an end point of the first trajectory according to the position information of the target key point and the second data information; The method further comprises: If the position of the electronic device is not located at the end point of the first trajectory, in response to a third operation of the user, a third display interface is displayed, where the third display interface includes the position information of the target key point.

10. The method according to any one of claims 1 to 9, characterized in that The method further comprises: In response to a fourth operation of the user, a fourth display interface is displayed, where the fourth display interface includes the first track of the electronic device.

11. The method according to claim 10, characterized in that The fourth display interface also includes the position and direction of the electronic device.

12. The method according to claim 10, characterized in that The true direction of a section of the first trajectory with a determined direction is a first direction, and the direction of the section of the first trajectory with a determined direction in the third display interface after rotation is displayed as a second direction, wherein the second direction is perpendicular to the side where the status bar of the electronic device is located.

13. The method according to any one of claims 1 to 12, characterized in that The method further comprises: Acquiring fifth data information of the electronic device; If the similarity between the fifth data information and the second data information is greater than a first threshold, determining that the position of the electronic device is located at the end point of the first trajectory; or, If the similarity between the fifth data information and the second data information is less than or equal to a first threshold, it is determined that the position of the electronic device is not located at the end point of the first trajectory.

14. The method according to any one of claims 1 to 13, characterized in that The method further comprises: In response to a fifth operation of the user, it is determined that the position of the electronic device is located at an end point of the first trajectory.

15. The method according to any one of claims 1 to 14, characterized in that The first prompt information also includes the distance from the position to the starting point.

16. The method according to any one of claims 1 to 15, characterized in that The location of the end point of the first trajectory is the location of the elevator room.

17. The method according to any one of claims 1 to 16, characterized in that The electronic device is communicatively connected to the intelligent driving device, and the first preset condition includes at least one of the following conditions: The gear position of the intelligent driving device is in the parking gear position; The communication connection between the electronic device and the intelligent driving device is disconnected; The intelligent driving device is in a locked state; An operation of starting the recording track is detected; or, The distance between the electronic device and the intelligent driving device is greater than a preset distance, wherein the preset distance is calculated by the electronic device through wireless communication.

18. The method according to any one of claims 1 to 17, characterized in that The second preset condition includes at least one of the following conditions: The change value of the magnetometer data acquired by the electronic device is greater than a second threshold; The absolute value of the change in the barometer data acquired by the electronic device is greater than a third threshold, or the change in the barometer data acquired by the electronic device within a preset time is greater than a fourth threshold; The change of the data of the inertial sensor acquired by the electronic device conforms to the first rule, and the inertial sensor includes at least one of an accelerometer, a gyroscope or a magnetometer; The signal strength of the communication signal of the electronic device complies with the second rule, and the communication signal includes at least one of a Wi-Fi signal, a Bluetooth signal, a cellular signal, or a positioning signal; The electronic device is capable of acquiring accurate positioning information; or, The floor where the electronic device is located changes.

19. A method for indoor navigation, characterized in that: The method is applied to an electronic device, and the method comprises: Determine first position information of an intelligent driving device, second position information of a target key point, and a target floor where the intelligent driving device is located; Acquiring third location information of the electronic device; If it is determined that the electronic device is located at the target floor, a third trajectory of the electronic device is recorded according to the second information, wherein the starting point of the third trajectory is the position corresponding to the third position information, and the second information includes posture information and direction information of the electronic device, and / or position fingerprint information; In response to a first operation of the user, a first display interface is displayed, wherein the first display interface includes first prompt information, and the first prompt information is used to indicate a direction from a current position of the electronic device to the intelligent driving device.

20. The method according to claim 19, characterized in that The determining that the electronic device is located at the target floor includes: If the difference between the first data and the second data of the barometer obtained is less than a fifth threshold, it is determined that the electronic device is located on the target floor; wherein the first data is the barometer value currently obtained by the electronic device, and the second data is the barometer value obtained on the target floor and recorded by the electronic device; or It is determined that the electronic device is located on the target floor according to the acquired floor information.

21. The method according to claim 19 or 20, characterized in that Before determining that the electronic device is located on the target floor, the method further includes: Determine that a difference between the third location information and the second location information is less than or equal to a sixth threshold; or, It is determined that the third location information is the location information last acquired by the electronic device.

22. The method according to any one of claims 19 to 21, characterized in that The method further comprises: In response to a second operation of the user, a second display interface is displayed, wherein the second display interface includes the first position information, the second position information, information indicating the current position and direction of the electronic device, and / or the third trajectory.

23. The method according to any one of claims 19 to 22, characterized in that The step of recording a third track of the electronic device according to the second information includes: Determine the current position, direction and / or position fingerprint information according to the second information and the third position information; The third trajectory is recorded according to the current position, direction and / or position fingerprint information.

24. The method according to any one of claims 19 to 23, characterized in that The first prompt information also includes the distance from the current location to the intelligent driving device.

25. The method according to any one of claims 19 to 23, characterized in that The determining the first position information of the intelligent driving device includes: When a first preset condition is met, first data information is acquired, where the first data information includes posture information and direction information of the electronic device, and / or location fingerprint information; recording a first trajectory of the electronic device according to the first data information; a starting point of the first trajectory is a position point determined by the electronic device according to the first data information when the first preset condition is met; When a second preset condition is met, an end point of the first track is determined according to second data information, and a first track of the electronic device is formed between the end point of the first track and the starting point; The first position information of the intelligent driving device is determined according to the direction of the first trajectory or the direction of a portion of the first trajectory and the second position information of the target key point.

26. An electronic device, characterized in that: include: one or more processors; One or more memories; the one or more memories store one or more programs, and when the one or more programs are executed by one or more processors, the method for indoor navigation as described in any one of claims 1-25 is executed.

27. A chip, characterized in that: The chip includes a processor and a communication interface, wherein the communication interface is used to receive a signal and transmit the signal to the processor, and the processor processes the signal so that the indoor navigation method according to any one of claims 1 to 25 is executed.

28. A readable storage medium, characterized in that: The readable storage medium stores instructions, and when the instructions are executed on the electronic device, the indoor navigation method according to any one of claims 1 to 25 is executed.

Citation Information

Patent Citations

  • Indoor navigation method and electronic equipment

    CN120160623A

  • Navigation method and terminal

    CN106595648A

  • Method for improving navigation efficiency, device and mobile terminal

    CN106886844A

  • User terminal and control method thereof

    CN108449951A

  • Method, device and equipment for recommending and prompting idle parking space and prompting vehicle searching route

    CN110610250A