Altitude calculation method and device, electronic equipment and computer storage medium

By combining air pressure sensors, navigation satellite systems and weather servers, the problem of inaccurate altitude calculation in the prior art is solved, and the target altitude is quickly and accurately obtained in various environments.

CN119687864APending Publication Date: 2025-03-25SUUNTO SPORTS TECHNOLOGY (DONGGUAN) CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202411613410.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-12
Publication Date
2025-03-25

AI Technical Summary

Technical Problem

In the prior art, altitude data is easily affected by weather and satellite signals when obtaining, resulting in inaccurate altitude calculations, especially in harsh movements or weather.

Method used

By combining air pressure sensors, navigation satellite systems and weather servers, the air pressure sensors are used to obtain the current air pressure data to determine whether the navigation satellite signal exists. If it does not exist, query historical data or obtain sea level air pressure data from the weather server, and then determine the target altitude.

Benefits of technology

It achieves rapid and accurate acquisition of target altitude in various environments (such as exercise, daily use, and severe weather), improving the accuracy and reliability of altitude calculations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119687864A_ABST
    Figure CN119687864A_ABST
Patent Text Reader

Abstract

The invention discloses an altitude calculation method and device, electronic equipment and a computer storage medium. The method comprises the following steps: acquiring current air pressure data by using an air pressure sensor; then, judging whether a navigation satellite signal exists in the current position or not; if the navigation satellite signal does not exist, judging whether historical sea level air pressure data obtained based on a navigation satellite system exist in a preset time period or not; if the historical sea level air pressure data acquired based on the navigation satellite system does not exist in the preset time period, acquiring current sea level air pressure data based on a weather server; and finally, determining the target altitude of the current position according to the current air pressure data and the current sea level air pressure data. According to the method, the target altitude can be determined through the current sea level air pressure data no matter in daily life or in sports or in bad weather, and the altitude accuracy is ensured in a mode of determining the altitude by combining the air pressure sensor, the navigation satellite system and the weather server.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of altitude calculation, and in particular to an altitude calculation method, device, electronic device and computer storage medium. Background Art

[0002] In related altitude calculation technologies, users cannot quickly and accurately obtain altitude data. For example, altitude calculated by a barometer is easily affected by weather, and altitude calculated by the Global Navigation Satellite System (GNSS) is easily affected by current satellite signals, and the sea level pressure obtained from the weather server has poor real-time performance. In addition, in related technologies, GNSS is usually turned on during user exercise, and the barometer altitude and GNSS altitude are merged. However, because GNSS power consumption is relatively high, GNSS is not turned on during daily use. Calculating altitude based solely on a barometer will lead to increasing altitude deviations. Summary of the invention

[0003] The embodiments of the present application provide an altitude calculation method, device, electronic device and computer storage medium. The method can ensure that the target altitude can be determined through the current sea level pressure data whether in daily life, during exercise or in bad weather, and the accuracy of the altitude is ensured by combining the pressure sensor, the navigation satellite system and the weather server to determine the altitude.

[0004] In a first aspect, an embodiment of the present application provides a method for calculating altitude, including:

[0005] Use the air pressure sensor to obtain the current air pressure data;

[0006] Determine whether there is a navigation satellite signal at the current location;

[0007] If the above navigation satellite signal does not exist, determining whether there is historical sea level pressure data obtained based on the navigation satellite system within a preset time period;

[0008] If there is no historical sea level pressure data obtained based on the above-mentioned navigation satellite system within the above-mentioned preset time period, obtaining current sea level pressure data based on the weather server;

[0009] The target altitude of the current position is determined according to the current air pressure data and the current sea level air pressure data.

[0010] In a possible implementation, after determining whether there is a navigation satellite signal at the current location and before determining the target altitude of the current location according to the current air pressure data and the current sea level air pressure data, the method further includes:

[0011] If the above-mentioned navigation satellite signal exists, the above-mentioned current sea level pressure data is obtained based on the above-mentioned navigation satellite system.

[0012] In a possible implementation, if the navigation satellite signal exists, obtaining the current sea level pressure data based on the navigation satellite system includes:

[0013] If the navigation satellite signal exists, the current sea level pressure data is determined based on the altitude information obtained based on the navigation satellite system and the current air pressure data.

[0014] In a possible implementation, if the navigation satellite signal does not exist, after determining whether there is historical sea level pressure data acquired based on the navigation satellite system within a preset time period, and before determining the target altitude of the current position according to the current pressure data and the current sea level pressure data, the method further includes:

[0015] If there is historical sea level pressure data acquired based on the navigation satellite system within the preset time period, the last historical sea level pressure data is determined as the current sea level pressure data.

[0016] In a possible implementation, after determining whether there is historical sea level pressure data acquired based on a navigation satellite system within a preset time period, the method further includes:

[0017] If there is no historical sea level pressure data obtained based on the above-mentioned navigation satellite system within the above-mentioned preset time period, and the above-mentioned current sea level pressure data cannot be obtained based on the above-mentioned weather server, the target altitude of the above-mentioned current position is determined according to the landmark information of the known altitude corresponding to the above-mentioned current position.

[0018] In a possible implementation manner, the method further includes: storing the current sea level pressure data and the corresponding acquisition time in a database.

[0019] In a possible implementation manner, there is a negative correlation between the target altitude and the current air pressure data.

[0020] In a second aspect, an embodiment of the present application provides an altitude calculation device, including:

[0021] A first acquisition module, used to acquire current air pressure data using an air pressure sensor;

[0022] The first determination module is used to determine whether there is a navigation satellite signal at the current location;

[0023] A second judgment module is used to judge whether there is historical sea level pressure data obtained based on the navigation satellite system within a preset time period if the above-mentioned navigation satellite signal does not exist;

[0024] A second acquisition module is used to acquire current sea level pressure data based on a weather server if there is no historical sea level pressure data acquired based on the navigation satellite system within the preset time period;

[0025] The first determination module is used to determine the target altitude of the current position according to the current air pressure data and the current sea level air pressure data.

[0026] In a third aspect, an embodiment of the present application provides an electronic device, comprising: a processor and a memory; wherein the memory stores executable program code, and the processor runs a program corresponding to the executable program code by reading the executable program code stored in the memory, so as to execute the method steps provided in the first aspect of the embodiment of the present application or any possible implementation method of the first aspect.

[0027] In a fourth aspect, an embodiment of the present application provides a computer storage medium, which stores multiple instructions, and the instructions are suitable for being loaded by a processor and executing the method steps provided by the first aspect of the embodiment of the present application or any possible implementation of the first aspect.

[0028] The beneficial effects brought about by the technical solutions provided by some embodiments of the present application include at least:

[0029] In the embodiment of the present application, the current air pressure data is obtained through the air pressure sensor, and then, by judging whether there is a navigation satellite signal at the current position, if there is no navigation satellite signal, it is further judged whether there is historical sea level pressure data obtained based on the navigation satellite system within the preset time period; if there is no historical sea level pressure data obtained based on the navigation satellite system within the preset time period, the current sea level pressure data is obtained based on the weather server; finally, the target altitude of the current position is determined according to the current air pressure data and the current sea level pressure data. This diversified method can not only obtain the current sea level pressure data based on the navigation satellite system, but also determine the current sea level pressure data based on the historical sea level pressure data within the preset time period when there is no navigation satellite signal, and can also obtain the current sea level pressure data based on the weather server when there is no navigation satellite signal and there is no historical sea level pressure data obtained based on the navigation satellite system within the preset time period, so that the altitude information of the current position can be accurately determined through the current sea level pressure data whether in motion, in daily use or in bad weather, and the accuracy of the altitude is guaranteed by combining the air pressure sensor, the navigation satellite system and the weather server to determine the altitude. BRIEF DESCRIPTION OF THE DRAWINGS

[0030] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0031] Figure 1 A schematic diagram of the architecture of an altitude calculation system provided by an exemplary embodiment of the present application;

[0032] Figure 2 A flowchart of an altitude calculation method provided by an exemplary embodiment of the present application;

[0033] Figure 3 A schematic diagram of an implementation process of an altitude calculation method provided by an exemplary embodiment of the present application;

[0034] Figure 4 A schematic diagram of the structure of an altitude calculation device provided by an exemplary embodiment of the present application;

[0035] Figure 5 A schematic structural diagram of an electronic device provided as an exemplary embodiment of the present application. DETAILED DESCRIPTION

[0036] In order to make the features and advantages of the present application more obvious and easy to understand, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present application.

[0037] The terms "first", "second", "third", etc. in the specification and claims of this application and the above-mentioned drawings are used to distinguish different objects, rather than to describe a specific order. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but optionally includes steps or units that are not listed, or optionally includes other steps or units inherent to these processes, methods, products or devices.

[0038] Please refer to the following Figure 1 , which is a schematic diagram of the architecture of an altitude calculation system provided by an exemplary embodiment of this specification. Figure 1As shown, the altitude calculation system may include: a smart wearable device 110 and a server 120. Among them:

[0039] The smart wearable device 110 can interact with the server 120 through the network to receive messages from the server 120 or send messages to the server 120. The smart wearable device 110 can be, but is not limited to, a smart watch, smart glasses, or other devices with user version software installed. The smart wearable device 110 can have a built-in air pressure sensor, and can also have a user version of software installed. The software can be, but is not limited to, a global navigation satellite system that can receive location information sent by navigation satellites.

[0040] In the embodiment of this specification, the smart wearable device 110 may be a smart wearable device that performs altitude calculation. When the user wants to obtain the target altitude of the current location, the user may first use the air pressure sensor on the smart wearable device 110 to obtain the current air pressure data, but is not limited to; then, use the user version software to determine whether there is a navigation satellite signal at the current location; if there is no navigation satellite signal, determine whether there is historical sea level pressure data obtained based on the navigation satellite system within a preset time period; if there is no historical sea level pressure data obtained based on the navigation satellite system within the preset time period, obtain the current sea level pressure data based on the weather server; finally, determine the target altitude of the current location based on the current air pressure data and the current sea level pressure data.

[0041] Optionally, the smart wearable device 110 may also establish a data relationship with the network, and establish a data connection relationship with the server 120 through the network, for example, receiving current sea level pressure data sent by a weather server.

[0042] The server 120 may be a server that provides various altitude calculation functions. It should be noted that the server 120 may be hardware or software. When the server 120 is hardware, it may be implemented as a distributed server cluster consisting of multiple servers, or it may be implemented as a single server. When the server 120 is software, it may be implemented as multiple software or software modules (for example, for providing distributed services), or it may be implemented as a single software or software module, which is not specifically limited here. The server 120 may be, but is not limited to, a hardware server, a virtual server, a cloud server, etc.

[0043] Optionally, after receiving the altitude calculation instruction sent by the smart wearable device 110 through the network, the server 120 can also perform altitude calculation using the altitude calculation method provided in the embodiment of the present application.

[0044] It can be understood that the altitude calculation method provided in the embodiment of the present application can be executed by the smart wearable device 110 alone, or by the server 120 alone, or by a terminal connected to the smart wearable device 110, and the embodiment of the present application is not limited to this.

[0045] The network may be a medium that provides a communication link between the smart wearable device 110 and the server 120, or may be the Internet including network devices and transmission media, but is not limited thereto. The transmission medium may be a wired link, such as but not limited to coaxial cable, optical fiber, and digital subscriber line (DSL), or a wireless link, such as but not limited to wireless fidelity (WIFI), Hypertext Transfer Protocol (HTTP), Bluetooth, and mobile device network, etc.

[0046] Understandably, Figure 1 The number of smart wearable devices 110 and servers 120 in the altitude calculation system shown is only an example. In a specific implementation, the altitude calculation system may include any number of smart wearable devices 110 and servers 120.

[0047] Next, combine Figure 1 , taking the intelligent wearable device 110 performing altitude calculation as an example, an altitude calculation method provided by an exemplary embodiment of the present application is introduced. For details, please refer to Figure 2 , which exemplarily shows a flow chart of an altitude calculation method provided in an embodiment of the present application. Figure 2 As shown, the altitude calculation method may include the following steps:

[0048] S201, using the air pressure sensor to obtain current air pressure data.

[0049] Specifically, the air pressure sensor in the smart wearable device can be used to obtain the current air pressure data of the location. The above-mentioned air pressure sensor usually contains a component that is sensitive to air pressure changes. When the external atmospheric pressure changes, the component will produce a corresponding electrical signal change. This electrical signal is then processed by the circuit inside the sensor and converted into standard voltage, current, digital signal and other forms to indicate the current atmospheric pressure. As the altitude increases, the current air pressure data will gradually decrease. Because the earth's gravitational pull on the atmosphere weakens, the air density and pressure decrease. Therefore, using the actual measured air pressure data and calculating it can more accurately reflect the changes in altitude.

[0050] S202, determining whether there is a navigation satellite signal at the current location.

[0051] Specifically, although the current air pressure data can be obtained through the air pressure sensor, the current altitude can be calculated based on the relationship between air pressure and altitude. However, the air pressure sensor is easily affected by factors such as temperature, humidity and weather, which may cause inaccurate sensor readings. Therefore, the current target altitude can be calculated by fusion of the altitude information provided by the air pressure sensor and the navigation satellite, so that the result is more accurate. It can be, but not limited to, by opening the navigation satellite system on the smart wearable device to receive the navigation satellite signal. If the current position-related information can be accurately provided, it means that there is a stable navigation satellite signal at the current position. If the navigation is deviated or cannot be positioned, it may mean that the signal is weak or does not exist. The above-mentioned navigation satellite signal refers to a modulated wave emitted by the navigation satellite in the navigation satellite system for navigation and positioning. The above-mentioned navigation satellite transmits navigation data to the ground via radio signals. After receiving these signals, the three-dimensional coordinates (i.e., longitude, latitude and altitude), speed and time information, etc. can be obtained by calculating the signal propagation time and satellite position information. However, the altitude is not directly equivalent to the altitude, and the altitude needs to be converted and corrected to obtain the altitude of the location. The above-mentioned navigation satellite system may be a global positioning system (GPS) or a global navigation satellite system (GNSS), which is not limited in the embodiments of the present application.

[0052] S203: If there is a navigation satellite signal, obtain current sea level pressure data based on the navigation satellite system.

[0053] Specifically, if the navigation satellite signal can be successfully received through the navigation satellite system, the current position information (including longitude, latitude and altitude) can be obtained by using the navigation satellite system, and then the sea level pressure data can be obtained based on the position information. The above-mentioned current sea level pressure data can be obtained, but not limited to, based on the observation data of the current position at the current time. Calculating the target altitude of the current position based on the current sea level pressure data will make the target altitude more accurate. The above-mentioned observation data can include, but is not limited to, the current position information (including longitude, latitude and altitude), time information, speed information, etc.

[0054] Furthermore, if the above-mentioned navigation satellite signal exists, it means that the above-mentioned navigation satellite system can be used to obtain more accurate position information, and the current sea level pressure data can be determined based on the altitude information obtained based on the navigation satellite system and the above-mentioned current air pressure data. For example, but not limited to, the position information obtained by the above-mentioned navigation satellite system can be first converted and corrected to obtain the altitude information of the current position, and then the altitude information is fused with the above-mentioned current air pressure data, so as to more accurately determine the current sea level pressure data. The above-mentioned fusion method can be a Kalman filter, that is, the position data (longitude, latitude and altitude) is used as an observation value, and the current air pressure data is used as another observation value, and is fused through a Kalman filter; it can also be a neural network method, that is, by training the neural network, it can learn the complex relationship between the data, and output the fused current sea level pressure data, which is not limited to the embodiment of the present application.

[0055] Please continue to refer to Figure 2 ,like Figure 2 As shown, after determining whether there is a navigation satellite signal at the current position in S202, the altitude calculation method may further include:

[0056] S204: If there is no navigation satellite signal, determine whether there is historical sea level pressure data obtained based on the navigation satellite system within a preset time period.

[0057] Specifically, since the navigation satellite signal is a modulated wave broadcast by a navigation satellite, obstacles such as buildings, trees, tunnels on the ground may block the navigation satellite signal, resulting in weakened signal strength or inability to receive, or severe weather conditions (such as heavy rain, lightning, etc.) may also affect the propagation and reception of satellite signals. In this case, it can be checked in the database whether there is historical sea level pressure data obtained based on the navigation satellite system within a preset time period. The above-mentioned historical sea level pressure data is the pressure data of the current sea level actually measured within a preset time period, which is usually related to factors such as seasonal climate, time and place. At the same time, due to differences in factors such as the topography of the earth's surface, ocean distribution, and atmospheric circulation, the sea level pressure data in different regions will also be different. The above-mentioned preset time period can be the previous hour or the previous day, and the embodiments of the present application are not limited to this.

[0058] S205: If there is historical sea level pressure data acquired based on the navigation satellite system within the preset time period, the last historical sea level pressure data is determined as the current sea level pressure data.

[0059] Specifically, in the short term, the historical sea level pressure data obtained based on the navigation satellite system still has a certain reference value. Therefore, if the navigation satellite signal cannot be received due to weather or geographical reasons, if there is historical sea level pressure data obtained based on the navigation satellite system within a preset time period, the last historical sea level pressure data can be determined as the current sea level pressure data.

[0060] Please continue to refer to Figure 2 ,like Figure 2 As shown, in the above S204, if there is no navigation satellite signal, after determining whether there is historical sea level pressure data obtained based on the navigation satellite system within a preset time period, the altitude calculation method may further include:

[0061] S206: If there is no historical sea level pressure data obtained based on the navigation satellite system within the preset time period, current sea level pressure data is obtained based on the weather server.

[0062] Specifically, if there is no navigation satellite signal at the current location and there is no historical sea level pressure data obtained based on the navigation satellite system within the preset time period, it means that accurate sea level pressure data cannot be obtained through the navigation satellite system. The current sea level pressure data can be obtained through the weather server on the terminal connected to the smart wearable device.

[0063] Optionally, when there is no historical sea level pressure data obtained based on the navigation satellite system within a preset time period, and the current sea level pressure data cannot be obtained based on the weather server, the target altitude of the current location can be determined based on, but not limited to, landmark information of known altitude corresponding to the current location. Under severe weather conditions (such as heavy rain, lightning, etc.), the propagation path of electromagnetic waves is very unstable, the atmospheric ionosphere may also change, causing interference to the propagation of electromagnetic waves, or the equipment may become loose or damaged due to strong winds, which may result in the inability to receive navigation satellite signals and data sent by the weather server. In this case, the target altitude of the current location can be determined based on landmark buildings (landmark information) of known altitudes near the current location.

[0064] In a possible implementation, both the target altitude and the sea level pressure data will change with the change of the location. After the current sea level pressure data is acquired, i.e., the sea level pressure data is updated, the current sea level pressure data and the corresponding acquisition time can also be saved in the database, which is conducive to obtaining the target altitude of the current location through the most recently saved sea level pressure data in the database even when there is no navigation satellite signal, ensuring that the sea level pressure data can be obtained under any circumstances.

[0065] S207, determining the target altitude of the current position according to the current air pressure data and the current sea level air pressure data.

[0066] Specifically, there is a negative correlation between the above-mentioned target altitude and the above-mentioned current air pressure data. Altitude refers to the vertical distance between a certain point on the ground and the sea level, that is, the height difference, which is usually calculated based on the mean sea level. According to the relationship between the air pressure data, the sea level air pressure data and the target altitude, the target altitude of the current position can be calculated when the current air pressure data and the current sea level air pressure data are known. For example, but not limited to, the target altitude is calculated by the formula h = (P0-P) / (k×P0), where h represents the target altitude of the current position, P0 is the current sea level air pressure data, P is the current air pressure data, and k is the coefficient of the decrease in air pressure with altitude, which is generally taken as 0.0065 / 288.15 (this value is derived from the International Standard Atmospheric Model, which indicates the relative proportion of the decrease in air pressure for every 1 meter increase). It should be noted that this coefficient may vary due to different meteorological conditions and geographical locations.

[0067] In the embodiment of the present application, the current air pressure data is obtained through the air pressure sensor, and then, by judging whether there is a navigation satellite signal at the current position, if there is no navigation satellite signal, it is further judged whether there is historical sea level pressure data obtained based on the navigation satellite system within the preset time period; if there is no historical sea level pressure data obtained based on the navigation satellite system within the preset time period, the current sea level pressure data is obtained based on the weather server; finally, the target altitude of the current position is determined according to the current air pressure data and the current sea level pressure data. This diversified method can not only obtain the current sea level pressure data based on the navigation satellite system, but also determine the current sea level pressure data based on the historical sea level pressure data within the preset time period when there is no navigation satellite signal, and can also obtain the current sea level pressure data based on the weather server when there is no navigation satellite signal and there is no historical sea level pressure data obtained based on the navigation satellite system within the preset time period, so that the altitude information of the current position can be accurately determined through the current sea level pressure data whether in motion, in daily use or in bad weather, and the accuracy of the altitude is guaranteed by combining the air pressure sensor, the navigation satellite system and the weather server to determine the altitude.

[0068] Please refer to the following Figure 3 , which exemplarily shows a schematic diagram of the implementation process of an altitude calculation method provided in an embodiment of the present application. Figure 3As shown, when it is necessary to obtain the target altitude of the current position, the pressure sensor in the barometer on the smart wearable device can be used to obtain the current air pressure data first, and then determine whether there is a GNSS signal (navigation satellite signal) at present. If there is a GNSS signal (navigation satellite signal) at present, the altitude information observed by the GNSS is used to obtain the current sea level pressure data; if there is no GNSS signal (navigation satellite signal) at present, it is determined whether there is historical sea level pressure data based on the fusion of GNSS and barometer within the preset time. If there is historical sea level pressure data based on the fusion of GNSS and barometer, the most recent historical sea level pressure data is determined as the current sea level pressure data; if there is no historical sea level pressure data based on the fusion of GNSS and barometer within the preset time, it can be further determined whether the sea level pressure data can be obtained from the weather server corresponding to the terminal connected to the smart wearable device. If the sea level pressure data can be obtained from the weather server, the sea level pressure data obtained from the weather server is determined as the current sea level pressure data. If the sea level pressure data cannot be obtained from the weather server, the target altitude of the current position can be obtained based on the landmark information of the known altitude near the current position. Finally, the target altitude of the current location is calculated based on the current air pressure data obtained by the air pressure sensor and the current sea level air pressure data, thereby ensuring that effective and accurate altitude calculation can be achieved under any circumstances.

[0069] Please refer to the following Figure 4 , which exemplarily shows a schematic diagram of the structure of an altitude calculation device provided in an embodiment of the present application. Figure 4 As shown, the altitude calculation device 400 may include:

[0070] A first acquisition module 410 is used to acquire current air pressure data using an air pressure sensor;

[0071] The first determination module 420 is used to determine whether there is a navigation satellite signal at the current location;

[0072] The second determination module 430 is configured to determine whether there is historical sea level pressure data acquired based on the navigation satellite system within a preset time period if the navigation satellite signal does not exist;

[0073] A second acquisition module 440 is configured to acquire current sea level pressure data based on a weather server if there is no historical sea level pressure data acquired based on the navigation satellite system within the preset time period;

[0074] The first determination module 450 is used to determine the target altitude of the current position according to the current air pressure data and the current sea level air pressure data.

[0075] In some possible embodiments, the altitude calculation device 400 further includes:

[0076] The third acquisition module is used to acquire the current sea level pressure data based on the navigation satellite system if the navigation satellite signal exists.

[0077] In some possible embodiments, the third acquisition module is specifically used to: if the navigation satellite signal exists, determine the current sea level pressure data according to the altitude information acquired based on the navigation satellite system and the current air pressure data.

[0078] In some possible embodiments, the altitude calculation device 400 further includes:

[0079] The fourth acquisition module is used to determine the last historical sea level pressure data as the current sea level pressure data if there is historical sea level pressure data acquired based on the navigation satellite system within the preset time period.

[0080] In some possible embodiments, the altitude calculation device 400 further includes:

[0081] The second determination module is used to determine the target altitude of the current position according to the landmark information of the known altitude corresponding to the current position if there is no historical sea level pressure data obtained based on the navigation satellite system within the preset time period and the current sea level pressure data cannot be obtained based on the weather server.

[0082] In some possible embodiments, the altitude calculation device 400 further includes:

[0083] The saving module is used to save the above current sea level pressure data and the corresponding acquisition time in a database.

[0084] In some possible embodiments, there is a negative correlation between the target altitude and the current air pressure data.

[0085] The division of each module in the above-mentioned altitude calculation device is only for illustration. In other embodiments, the altitude calculation device can be divided into different modules as needed to complete all or part of the functions of the above-mentioned altitude calculation device. The implementation of each module in the altitude calculation device provided in the embodiment of this specification can be in the form of a computer program. The computer program can be run on a smart wearable device, terminal or server. The program modules constituted by the computer program can be stored in the memory of the smart wearable device, terminal or server. When the computer program is executed by the processor, all or part of the steps of the altitude calculation method described in the embodiment of this specification are implemented.

[0086] See next Figure 5, which is a schematic diagram of the structure of an electronic device provided by an exemplary embodiment of this specification. Figure 5 As shown, the electronic device 500 may include: at least one processor 510 , at least one communication bus 520 , a user interface 530 , at least one network interface 540 , and a memory 550 .

[0087] The communication bus 520 may be used to realize the connection and communication among the above-mentioned components.

[0088] The user interface 530 may include buttons, and the optional user interface may also include a standard wired interface or a wireless interface.

[0089] The network interface 540 may optionally include a Bluetooth module, an NFC module, a Wi-Fi module, etc.

[0090] Among them, the processor 510 may include one or more processing cores. The processor 510 uses various interfaces and lines to connect various parts within the entire electronic device 500, and runs or executes instructions, programs, code sets or instruction sets stored in the memory 550, and calls data stored in the memory 550, and various functions and processing data of the electronic device 500. Optionally, the processor 510 can be implemented in at least one hardware form of DSP, FPGA, and PLA. The processor 510 can integrate one or a combination of CPU, GPU, modem, etc. Among them, the CPU mainly processes the operating system, user interface, and application programs; the GPU is responsible for rendering and drawing the content to be displayed on the display screen; the modem is used to process wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor 510, and it can be implemented separately through a chip.

[0091] The memory 550 may include a RAM or a ROM. Optionally, the memory 550 includes a non-transitory computer-readable medium. The memory 550 may be used to store instructions, programs, codes, code sets, or instruction sets. The memory 550 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for at least one function (such as obtaining current sea level pressure data, determining a target altitude, etc.), instructions for implementing the above-mentioned various method embodiments, etc.; the data storage area may store data involved in the above-mentioned various method embodiments, etc. The memory 550 may optionally be at least one storage device located away from the aforementioned processor 510. As Figure 5 As shown, the memory 550 as a computer storage medium may include an operating system, a network communication module, a user interface module, and program instructions.

[0092] In some possible embodiments, the electronic device 500 may be the aforementioned Figure 4 In the altitude calculation device 400 shown, the processor 510 can be used to call the program instructions stored in the memory 550, and specifically perform the following operations: obtain current air pressure data using the air pressure sensor; determine whether there is a navigation satellite signal at the current position; if there is no such navigation satellite signal, determine whether there is historical sea level pressure data obtained based on the navigation satellite system within a preset time period; if there is no historical sea level pressure data obtained based on the navigation satellite system within the preset time period, obtain current sea level pressure data based on the weather server; determine the target altitude of the current position based on the current air pressure data and the current sea level pressure data.

[0093] In some possible embodiments, after the processor 510 executes the determination of whether a navigation satellite signal exists at the current location, and before the processor 510 executes the determination of the target altitude of the current location based on the current air pressure data and the current sea level pressure data, the processor 510 is further configured to execute: if the navigation satellite signal exists, obtaining the current sea level pressure data based on the navigation satellite system.

[0094] In some possible embodiments, when the processor 510 executes the above-mentioned acquisition of the current sea level pressure data based on the navigation satellite system if the navigation satellite signal exists, it is specifically used to execute: if the navigation satellite signal exists, determining the current sea level pressure data according to the altitude information acquired based on the navigation satellite system and the current pressure data.

[0095] In some possible embodiments, after the processor 510 executes the above-mentioned determination of whether there is historical sea level pressure data obtained based on the navigation satellite system within a preset time period if the navigation satellite signal does not exist, and before executing the above-mentioned determination of the target altitude of the current position based on the current pressure data and the current sea level pressure data, the processor 510 is also used to execute: if there is historical sea level pressure data obtained based on the navigation satellite system within the preset time period, the last historical sea level pressure data is determined as the current sea level pressure data.

[0096] In some possible embodiments, after executing the above-mentioned determination whether there is historical sea level pressure data obtained based on the navigation satellite system within the preset time period, the above-mentioned processor 510 is also used to execute: if there is no historical sea level pressure data obtained based on the above-mentioned navigation satellite system within the above-mentioned preset time period, and the above-mentioned current sea level pressure data cannot be obtained based on the above-mentioned weather server, then determining the target altitude of the above-mentioned current position according to the landmark information of the known altitude corresponding to the above-mentioned current position.

[0097] In some possible embodiments, the processor 510 is further configured to execute: storing the current sea level pressure data and the corresponding acquisition time in a database.

[0098] In some possible embodiments, there is a negative correlation between the target altitude and the current air pressure data.

[0099] The embodiment of the present application also provides a computer storage medium, which stores instructions, and when the instructions are executed on a computer or a processor, the computer or the processor executes one or more steps in any of the above methods. If the components of the above altitude calculation device are implemented in the form of software functional units and sold or used as independent products, they can be stored in the above storage medium.

[0100] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The above computer program product includes one or more computer instructions. When the above computer program instructions are loaded and executed on a computer, the above process or function according to the embodiment of the present application is generated in whole or in part. The above computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The above computer instructions can be stored in a computer-readable storage medium or transmitted by the above computer-readable storage medium. The above computer instructions can be transmitted from a website site, computer, server or data center to another website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The above computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integration. The above available medium can be a magnetic medium, (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid state drive (SSD)), etc.

[0101] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through a computer program, and the program can be stored in a computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above-mentioned methods. The aforementioned storage medium includes: ROM, RAM, magnetic disk or optical disk and other media that can store program codes. In the absence of conflict, the technical features in this embodiment and the implementation scheme can be combined arbitrarily.

[0102] The above-mentioned embodiments are merely preferred embodiments of the present application and are not intended to limit the scope of the present application. Without departing from the design spirit of the present application, various modifications and improvements made to the technical solutions of the present application by ordinary technicians in this field should fall within the protection scope determined by the claims of the present application.

Claims

1. A method for calculating altitude, characterized in that: include: Use the air pressure sensor to obtain the current air pressure data; Determine whether there is a navigation satellite signal at the current location; If the navigation satellite signal does not exist, determining whether there is historical sea level pressure data acquired based on the navigation satellite system within a preset time period; If there is no historical sea level pressure data obtained based on the navigation satellite system within the preset time period, obtaining current sea level pressure data based on the weather server; The target altitude of the current position is determined according to the current air pressure data and the current sea level air pressure data.

2. The method according to claim 1, characterized in that After determining whether there is a navigation satellite signal at the current position, and before determining the target altitude of the current position according to the current air pressure data and the current sea level air pressure data, the method further includes: If the navigation satellite signal exists, the current sea level pressure data is acquired based on the navigation satellite system.

3. The method according to claim 2, characterized in that If the navigation satellite signal exists, acquiring the current sea level pressure data based on the navigation satellite system includes: If the navigation satellite signal exists, the current sea level pressure data is determined according to the altitude information acquired based on the navigation satellite system and the current air pressure data.

4. The method according to claim 1, characterized in that If the navigation satellite signal does not exist, after determining whether there is historical sea level pressure data acquired based on the navigation satellite system within a preset time period, and before determining the target altitude of the current position according to the current pressure data and the current sea level pressure data, the method further includes: If there is historical sea level pressure data acquired based on the navigation satellite system within the preset time period, the last historical sea level pressure data is determined as the current sea level pressure data.

5. The method according to claim 1, characterized in that After determining whether there is historical sea level pressure data acquired based on the navigation satellite system within the preset time period, the method further includes: If there is no historical sea level pressure data obtained based on the navigation satellite system within the preset time period, and the current sea level pressure data cannot be obtained based on the weather server, the target altitude of the current position is determined according to the landmark information of the known altitude corresponding to the current position.

6. The method according to claim 1, characterized in that The method further comprises: The current sea level pressure data and the corresponding acquisition time are stored in a database.

7. The method according to claim 1, characterized in that There is a negative correlation between the target altitude and the current air pressure data.

8. An altitude calculation device, characterized in that: include: A first acquisition module, used to acquire current air pressure data using an air pressure sensor; The first determination module is used to determine whether there is a navigation satellite signal at the current location; A second judgment module is used to judge whether there is historical sea level pressure data obtained based on the navigation satellite system within a preset time period if the navigation satellite signal does not exist; A second acquisition module is configured to acquire current sea level pressure data based on a weather server if there is no historical sea level pressure data acquired based on the navigation satellite system within the preset time period; The first determination module is used to determine the target altitude of the current position according to the current air pressure data and the current sea level air pressure data.

9. An electronic device, characterized in that: include: A processor and a memory; wherein the memory stores an executable program code, and the processor runs a program corresponding to the executable program code by reading the executable program code stored in the memory, so as to execute the method according to any one of claims 1 to 7.

10. A computer storage medium, characterized in that: The computer storage medium stores a plurality of instructions, which are suitable for being loaded by a processor and executing the method steps according to any one of claims 1-7.

Citation Information

Patent Citations

  • Method and apparatus for measuring absolute altitude

    CN106403891A

  • Terminal floor judgment device and method based on Beidou positioning

    CN113654519A

  • Vehicle-mounted terminal and vehicle-mounted system for assisting positioning of GNSS module

    CN115963524A

  • Altitude height determination method and device, storage medium and electronic equipment

    CN116631576A

  • Vehicle altitude analysis method and system based on dynamic air pressure monitoring

    CN118565434A