Elevation record generation method, apparatus, and electronic device

CN120832340BActive Publication Date: 2026-09-22HANGZHOU EZVIZ SOFTWARE CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202410473354.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-04-18
Publication Date
2026-09-22
Estimated Expiration
2044-04-18

AI Technical Summary

Technical Problem

然而,该方法过于依赖所处环境的全球导航卫星系统高度数据以及气象环境的稳定性,在全球导航卫星系统信号波动较大的场景下如登山场景,无法确保全球导航卫星系统高度数据的稳定性,此时按照不稳定的全球导航卫星系统高度数据对气压计高度进行校准会导致生成的海拔记录误差增大

Benefits of technology

[0054]由以上技术方案可见,本申请实施例持续采集并存储气压数据、全球导航卫星系统信息以及电子地图高程信息,并在需要生成海拔记录时,从已存储的气压数据中确定出气压波动时段以及非气压波动时段,对两种不同的时段分别设置了不同的海拔记录生成方法。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120832340B_ABST
    Figure CN120832340B_ABST
Patent Text Reader

Abstract

Embodiments of the present application provide a method and device for generating an altitude record and an electronic device. When the altitude record needs to be generated, the air pressure fluctuation period and the non-air pressure fluctuation period are determined from the stored air pressure data. The reference altitude is determined by using the electronic map elevation information and the global navigation satellite system information corresponding to the non-air pressure fluctuation period. The altitude record of the non-air pressure fluctuation period is determined according to the reference altitude and the air pressure data of the period. The altitude record of the air pressure fluctuation period is determined by fitting the electronic map elevation information and the global navigation satellite system information corresponding to the air pressure fluctuation period. The air pressure data is corrected by combining the electronic map elevation information and the global navigation satellite system information, which avoids calibrating the altimeter height according to the unstable global navigation satellite system information only, and reduces the error of the generated altitude record.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of smart wearable devices, and in particular to methods, apparatus and electronic devices for generating altitude records. Background Technology

[0002] Current smart wearable devices can display continuous altitude changes during exercise, i.e., altitude records during the activity. The relevant technology calibrates the barometer altitude using stable Global Navigation Satellite System (GNSS) altitude data to generate the altitude record. However, this method relies heavily on the stability of the surrounding GNSS altitude data and meteorological conditions. In scenarios with significant GNSS signal fluctuations, such as mountain climbing, the stability of the GNSS altitude data cannot be guaranteed. Calibrating the barometer altitude using unstable GNSS altitude data in such cases leads to increased errors in the generated altitude record. Summary of the Invention

[0003] In view of this, this application provides an altitude record generation method, apparatus, and electronic device to reduce the error of altitude records generated by smart wearable devices.

[0004] The technical solution provided in this application is as follows:

[0005] According to an embodiment of the first aspect of this application, an altitude record generation method is proposed, which is applied to a smart wearable device, and the method includes:

[0006] When the conditions for generating altitude records are met, the periods of air pressure fluctuation and the periods of non-air pressure fluctuation are determined based on air pressure data.

[0007] The reference altitude for the non-pressure fluctuation period is determined by fitting the electronic map elevation information and the global navigation satellite system information. The altitude record for the non-pressure fluctuation period is determined by using the reference altitude and the air pressure data corresponding to the non-pressure fluctuation period.

[0008] The elevation information of the electronic map corresponding to the pressure fluctuation period is matched with the information of the Global Navigation Satellite System to determine the altitude record of the pressure fluctuation period;

[0009] The air pressure data, the electronic map elevation information, and the global navigation satellite system information are continuously collected and stored.

[0010] Optionally, the conditions for generating altitude records include:

[0011] If the operation of viewing the altitude record is triggered through the smart wearable device, it is determined that the conditions for generating the altitude record are met.

[0012] Alternatively, if a message indicating that the current movement has ended is received, then the conditions for generating an altitude record are determined to be met.

[0013] Alternatively, if the smart wearable device is detected to be in an idle state, then the conditions for generating an altitude record are determined to be met.

[0014] Optionally, the air pressure data includes the sampling time and the corresponding air pressure value at that sampling time; determining the air pressure fluctuation period and the non-air pressure fluctuation period based on the air pressure data includes:

[0015] The pressure values ​​included in the pressure data are fitted into a pressure fluctuation curve according to the sampling time included in the pressure data. Each pressure value on the pressure fluctuation curve corresponds to a slope value. The set of sampling times corresponding to pressure values ​​whose slope values ​​are within a first preset range is determined as the pressure fluctuation period.

[0016] The set of sampling times other than the period of air pressure fluctuation is defined as the non-air pressure fluctuation period.

[0017] Optionally, the Global Navigation Satellite System (GNSS) information includes GNSS altitude data and GNSS latitude and longitude data. The GNSS altitude data represents the current altitude information detected by the GNSS, and the GNSS latitude and longitude data represents the current latitude and longitude information detected by the GNSS. The electronic map elevation information represents the altitude information corresponding to the current location determined in the electronic map based on the GNSS latitude and longitude data. The baseline altitude for the non-pressure fluctuation period is determined by fitting the electronic map elevation information and the GNSS information together, including:

[0018] The non-baric pressure fluctuation period is divided into at least one target period according to a preset duration;

[0019] In each target time period, the target time corresponding to that target time period is determined, wherein at the target time, the difference between the electronic map elevation information and the global navigation satellite system elevation data is within a first preset range;

[0020] The average value of the electronic map elevation information and the global navigation satellite system elevation data corresponding to the target time is determined as the reference altitude for the target time period to which the target time belongs.

[0021] Optionally, the air pressure data further includes barometer altitude, and the step of determining the altitude record for the non-pressure fluctuation period using the reference altitude and the air pressure data corresponding to the non-pressure fluctuation period includes:

[0022] Determine the barometer height corresponding to each moment in the non-barometric fluctuation period, and determine the reference barometer height corresponding to the target moment in the target period to which that moment belongs. Determine the target relative height based on the barometer height and the reference barometer height.

[0023] Based on the baseline altitude of the target time period to which the target time belongs and the target relative altitude, the altitude record for each time moment is determined, and the set of altitude records for each time moment is determined as the altitude record for the non-barometric pressure fluctuation period.

[0024] Optionally, the Global Navigation Satellite System (GNSS) information includes GNSS altitude data and GNSS latitude and longitude data. The GNSS altitude data represents the current altitude information detected by the GNSS, and the GNSS latitude and longitude data represents the current latitude and longitude information detected by the GNSS. The electronic map elevation information represents the altitude information corresponding to the current location determined in the electronic map based on the GNSS latitude and longitude data. The step of fitting the electronic map elevation information corresponding to the pressure fluctuation period and the GNSS information to determine the altitude record for the pressure fluctuation period includes:

[0025] If the difference between the electronic map elevation information and the global navigation satellite system altitude data corresponding to the air pressure fluctuation period is within a second preset range, then the average value of the electronic map elevation information and the global navigation satellite system altitude data corresponding to the air pressure fluctuation period is determined as the altitude record of the air pressure fluctuation period.

[0026] If the difference between the electronic map elevation information and the global navigation satellite system elevation data corresponding to the pressure fluctuation period is not within the second preset range, the elevation record of the pressure fluctuation period is predicted based on the elevation records of the non-pressure fluctuation period before the start of the pressure fluctuation period and after the end of the pressure fluctuation period.

[0027] Optionally, the Global Navigation Satellite System (GNSS) information includes GNSS altitude data, GNSS latitude and longitude data, and GNSS signal quality information. The GNSS altitude data represents the current altitude information detected by the GNSS, the GNSS latitude and longitude data represents the current latitude and longitude information detected by the GNSS, and the GNSS signal quality information represents the accuracy of the current GNSS detection of the altitude and latitude / longitude data. The electronic map elevation information represents the altitude information corresponding to the current location determined in the electronic map based on the GNSS latitude and longitude data. Before fitting the electronic map elevation information and the GNSS information corresponding to the non-pressure fluctuation period to determine the reference altitude for the non-pressure fluctuation period, the method further includes:

[0028] If the signal quality information of the Global Navigation Satellite System is detected to be within a preset signal quality range, the Global Navigation Satellite System information to which the signal quality information belongs, as well as the corresponding electronic map elevation information, will be deleted.

[0029] According to an embodiment of the second aspect of this application, an altitude recording generation apparatus is provided, which is applied to a smart wearable device, and the apparatus includes:

[0030] The time period determination unit is used to determine the time periods of air pressure fluctuation and the time periods of non-air pressure fluctuation based on air pressure data when the conditions for generating altitude records are met.

[0031] The first recording unit is used to match the electronic map elevation information and global navigation satellite system information corresponding to the non-pressure fluctuation period to determine the reference altitude of the non-pressure fluctuation period; and to determine the altitude record of the non-pressure fluctuation period by using the reference altitude and the air pressure data corresponding to the non-pressure fluctuation period.

[0032] The second recording unit is used to match the electronic map elevation information corresponding to the air pressure fluctuation period with the global navigation satellite system information to determine the altitude record of the air pressure fluctuation period.

[0033] The air pressure data, the electronic map elevation information, and the global navigation satellite system information are continuously collected and stored.

[0034] Optionally, the time period determination unit is specifically used for:

[0035] If the operation of viewing the altitude record is triggered through the smart wearable device, it is determined that the conditions for generating the altitude record are met.

[0036] Alternatively, if a message indicating that the current movement has ended is received, then the conditions for generating an altitude record are determined to be met.

[0037] Alternatively, if the smart wearable device is detected to be in an idle state, then the conditions for generating an altitude record are determined to be met.

[0038] And / or, the air pressure data includes the sampling time and the corresponding air pressure value at that sampling time; the time period determination unit is specifically used for:

[0039] The pressure values ​​included in the pressure data are fitted into a pressure fluctuation curve according to the sampling time included in the pressure data. Each pressure value on the pressure fluctuation curve corresponds to a slope value. The set of sampling times corresponding to pressure values ​​whose slope values ​​are within a first preset range is determined as the pressure fluctuation period.

[0040] The set of sampling times other than the period of air pressure fluctuation is defined as the non-air pressure fluctuation period;

[0041] And / or, the Global Navigation Satellite System (GNSS) information includes GNSS altitude data and GNSS latitude and longitude data, wherein the GNSS altitude data represents the current altitude information detected by the GNSS, the GNSS latitude and longitude data represents the current latitude and longitude information detected by the GNSS, and the electronic map elevation information represents the altitude information corresponding to the current location determined in the electronic map based on the GNSS latitude and longitude data; the first recording unit is specifically used for:

[0042] The non-baric pressure fluctuation period is divided into at least one target period according to a preset duration;

[0043] In each target time period, the target time corresponding to that target time period is determined, wherein at the target time, the difference between the electronic map elevation information and the global navigation satellite system elevation data is within a first preset range;

[0044] The average value of the electronic map elevation information and the global navigation satellite system elevation data corresponding to the target time is determined as the reference altitude of the target time period to which the target time belongs;

[0045] And / or, the barometric pressure data further includes barometer altitude, and the first recording unit is specifically used for:

[0046] Determine the barometer height corresponding to each moment in the non-barometric fluctuation period, and determine the reference barometer height corresponding to the target moment in the target period to which that moment belongs. Determine the target relative height based on the barometer height and the reference barometer height.

[0047] Based on the baseline altitude of the target time period to which the target time belongs and the relative altitude of the target, the altitude record of each time is determined, and the set of altitude records of each time is determined as the altitude record of the non-barometric pressure fluctuation period.

[0048] And / or, the Global Navigation Satellite System (GNSS) information includes GNSS altitude data and GNSS latitude and longitude data, wherein the GNSS altitude data represents the current altitude information detected by the GNSS, the GNSS latitude and longitude data represents the current latitude and longitude information detected by the GNSS, and the electronic map elevation information represents the altitude information corresponding to the current location determined in the electronic map based on the GNSS latitude and longitude data; the second recording unit is specifically used for:

[0049] If the difference between the electronic map elevation information and the global navigation satellite system altitude data corresponding to the air pressure fluctuation period is within a second preset range, then the average value of the electronic map elevation information and the global navigation satellite system altitude data corresponding to the air pressure fluctuation period is determined as the altitude record of the air pressure fluctuation period.

[0050] If the difference between the electronic map elevation information and the global navigation satellite system elevation data corresponding to the pressure fluctuation period is not within the second preset range, the elevation record of the pressure fluctuation period is predicted based on the elevation records of the non-pressure fluctuation period before the start of the pressure fluctuation period and after the end of the pressure fluctuation period.

[0051] And / or, the Global Navigation Satellite System (GNSS) information includes GNSS altitude data, GNSS latitude and longitude data, and GNSS signal quality information. The GNSS altitude data represents the current altitude information detected by the GNSS, the GNSS latitude and longitude data represents the current latitude and longitude information detected by the GNSS, and the GNSS signal quality information represents the accuracy of the GNSS detection of the altitude and latitude / longitude data. The electronic map elevation information represents the altitude information corresponding to the current location determined in the electronic map based on the GNSS latitude and longitude data. Before fitting the electronic map elevation information and the GNSS information corresponding to the non-pressure fluctuation period to determine the reference altitude for the non-pressure fluctuation period, the first recording unit is further configured to:

[0052] If the signal quality information of the Global Navigation Satellite System is detected to be within a preset signal quality range, the Global Navigation Satellite System information to which the signal quality information belongs, as well as the corresponding electronic map elevation information, will be deleted.

[0053] According to an embodiment of the third aspect of this application, an electronic device is proposed, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the method as described in the first aspect.

[0054] As can be seen from the above technical solutions, the embodiments of this application continuously collect and store air pressure data, global navigation satellite system information and electronic map elevation information, and when it is necessary to generate an altitude record, determine the air pressure fluctuation period and the non-air pressure fluctuation period from the stored air pressure data, and set different altitude record generation methods for the two different periods.

[0055] For periods without air pressure fluctuations, a baseline altitude is determined using the corresponding electronic map elevation information and Global Navigation Satellite System (GNSS) information. The altitude record for that period is then determined based on the baseline altitude and the air pressure data for that time period. However, for periods of air pressure fluctuation, the air pressure data fluctuates too much to be considered valid data. In this case, the altitude record for the air pressure fluctuation period is determined by directly fitting the corresponding electronic map elevation information and GNSS information. This approach incorporates electronic map elevation information and combines it with GNSS information to correct the air pressure data, avoiding the need to calibrate the barometer altitude solely based on unstable GNSS information, thus reducing the error in the generated altitude record. Attached Figure Description

[0056] The accompanying drawings, which are incorporated in and form a part of this specification, illustrate embodiments consistent with this application and, together with the specification, serve to explain the principles of this application.

[0057] Figure 1 A flowchart of the altitude record generation method provided in this application embodiment;

[0058] Figure 2 This is a schematic diagram of the structure of a smart wearable device provided in an embodiment of this application;

[0059] Figure 3 This is a schematic diagram of a data storage unit structure provided in an embodiment of this application;

[0060] Figure 4 A schematic structural diagram of an electronic device provided in an embodiment of this application;

[0061] Figure 5 This is a structural diagram of the altitude record generation device provided in an embodiment of this application. Detailed Implementation

[0062] To enable those skilled in the art to better understand the technical solutions provided in the embodiments of this application, and to make the above-mentioned objectives, features and advantages of the embodiments of this application more apparent and understandable, the technical solutions in the embodiments of this application will be further described in detail below with reference to the accompanying drawings.

[0063] Please refer to Figure 1 , Figure 1 This is a flowchart of an altitude record generation method provided in an embodiment of this application, which is applied to a smart wearable device.

[0064] In this embodiment, the smart wearable device can be a smartwatch, smart bracelet, smart glasses, etc., and this application does not limit it. The structure of the smart wearable device in this embodiment will be described below. Figure 2 Detailed descriptions are omitted here.

[0065] like Figure 1 As shown, the method may include the following steps:

[0066] Step 101: When the conditions for generating altitude records are met, determine the periods of air pressure fluctuation and the periods of non-air pressure fluctuation based on the air pressure data.

[0067] In this embodiment, when it is determined that an altitude record needs to be generated, the air pressure data can be divided into air pressure data corresponding to air pressure fluctuation periods and air pressure data corresponding to non-air pressure fluctuation periods based on other stored data. Air pressure fluctuation periods indicate that the air pressure data values ​​for these periods fluctuate too much and cannot be used to determine the altitude record; these are unusable data. Non-air pressure fluctuation periods are other periods besides the air pressure fluctuation periods, indicating that the corresponding air pressure data fluctuates less and can be used as normal data for altitude recording.

[0068] As an example, meeting the conditions for generating altitude records may include:

[0069] If the operation of viewing the altitude record is triggered through the smart wearable device, it is determined that the conditions for generating the altitude record are met.

[0070] Alternatively, if a message indicating that the current movement has ended is received, then the conditions for generating an altitude record are determined to be met.

[0071] Alternatively, if the smart wearable device is detected to be in an idle state, then the conditions for generating an altitude record are determined to be met.

[0072] In this embodiment, it is easy to understand that the smart wearable device will automatically start generating the altitude record during the above-mentioned exercise when the current exercise has ended. After receiving the message indicating that the current exercise has ended, the smart wearable device determines that the altitude record generation conditions are met. The message indicating that the current exercise has ended may be automatically generated by the smart device after detecting that the user has not been in an exercise state for a certain period of time, or it may be manually triggered by the user through gestures or buttons. This application does not limit this.

[0073] In this embodiment, before the current exercise ends, the user can also manually trigger the smart wearable device to view the altitude record, such as by clicking or touching the corresponding button to generate the relevant instruction to view the altitude record. When the user's instruction to manually trigger the smart wearable device to view the altitude record is received before the current exercise ends, it is determined that the altitude record generation conditions are met, and the smart wearable device is triggered to generate the altitude record from the start of the current exercise to the current moment.

[0074] In this embodiment, even when the controller of the smart wearable device is in an idle state, the conditions for generating an altitude record can be met, and automatic altitude record generation can begin. As an example, the controller of the smart wearable device can be a microcontroller unit (MCU). When the controller's occupancy rate is detected to be lower than a preset threshold (e.g., the MCU's occupancy rate is detected to be lower than 10%), it indicates that the controller is currently in an idle state. At this time, automatic altitude record generation can begin without affecting the normal execution of other functions.

[0075] As one embodiment, the air pressure data may include the sampling time and the corresponding air pressure value at that sampling time; the specific method for determining the air pressure fluctuation period and the non-air pressure fluctuation period based on the air pressure data may include:

[0076] The pressure values ​​included in the pressure data are fitted into a pressure fluctuation curve according to the sampling time included in the pressure data. Each pressure value on the pressure fluctuation curve corresponds to a slope value. The set of sampling times corresponding to pressure values ​​whose slope values ​​are within a first preset range is determined as the pressure fluctuation period.

[0077] The set of sampling times other than the period of air pressure fluctuation is defined as the non-air pressure fluctuation period.

[0078] In this embodiment, the air pressure data can be continuously collected and stored in the smart wearable device by the air pressure sensor at a first frequency (e.g., 3Hz). The air pressure data collected by the air pressure sensor can include the sampling time and the air pressure value corresponding to the sampling time.

[0079] The method for storing air pressure data will be discussed below. Figure 3 A detailed description will not be provided here.

[0080] In this embodiment, the method of fitting the pressure values ​​included in the pressure data into a pressure fluctuation curve according to the sampling time included in the pressure data may include least squares method, linear regression fitting, maximum likelihood fitting, etc., and this application does not limit it.

[0081] It's easy to understand that each pressure value on the pressure fluctuation curve corresponds to a slope value, i.e., the slope of the pressure fluctuation curve at that point. After determining the slope value corresponding to each pressure value, the pressure values ​​are filtered based on the slope value. It should be noted that since the slope value can be negative, in this embodiment, the first preset range can be the range of absolute values ​​of the slope values. For example, if the absolute value of the slope value is greater than a preset slope threshold, the set of sampling times corresponding to that slope value is determined as the pressure fluctuation period.

[0082] Furthermore, considering that atmospheric density gradually decreases with increasing altitude, resulting in changes in air pressure with altitude—generally, the higher the altitude, the lower the air pressure, and the faster the pressure changes—as an example, different slope thresholds can be set according to the range of air pressure values. For instance, air pressure values ​​can be divided into high-pressure and low-pressure ranges. In the high-pressure range, a relatively small slope threshold can be set, while in the low-pressure range, a relatively large slope threshold can be set.

[0083] This concludes the description of step 101. We will now proceed to step 102.

[0084] Step 102: Fit the electronic map elevation information and the global navigation satellite system information corresponding to the non-pressure fluctuation period to determine the reference altitude of the non-pressure fluctuation period; determine the altitude record of the non-pressure fluctuation period by using the reference altitude and the air pressure data corresponding to the non-pressure fluctuation period.

[0085] In this embodiment, the global navigation satellite system can be the Global Positioning System (GPS), the Beidou Navigation Satellite System (BDS), etc., and this application does not limit it.

[0086] In this embodiment, the Global Navigation Satellite System (GNSS) information can be continuously collected and stored in the smart wearable device by the GNSS positioning module in the smart wearable device at a second frequency (e.g., 1 Hz).

[0087] In this embodiment, there is no direct relationship between the second frequency for collecting global navigation satellite system information and the first frequency for collecting air pressure data. They can be the same or different, and this application does not impose any restrictions on this.

[0088] In this embodiment, the collected Global Navigation Satellite System (GNSS) information may include GNSS latitude and longitude data and GNSS altitude data. The GNSS altitude data represents the current altitude information detected by the GNSS, and the GNSS latitude and longitude data represents the current latitude and longitude information detected by the GNSS. Due to limitations in the GNSS signal acquisition principle, even if the currently detected GNSS latitude and longitude data is very accurate, there may still be instances where the GNSS altitude data fluctuates significantly. Therefore, this embodiment introduces electronic map elevation information with smaller fluctuations when the GNSS latitude and longitude data is accurately positioned.

[0089] In this embodiment, the electronic map elevation information represents the altitude information corresponding to the current location determined on the electronic map based on the latitude and longitude data of the Global Navigation Satellite System (GNSS). In other words, the electronic map elevation information is the altitude of the location indicated by the corresponding latitude and longitude on the electronic map, obtained from the GNSS latitude and longitude data collected by the GNSS positioning module. It is easy to understand that since one set of electronic map elevation information can be obtained from each set of GNSS latitude and longitude data, the acquisition and storage frequency of the electronic map elevation information is the same as that of the GNSS information, i.e., both are at the second frequency.

[0090] In this embodiment, the process of determining the elevation information of the electronic map based on the latitude and longitude data of the Global Navigation Satellite System can be achieved through 4G, Bluetooth, or other means, and this application does not impose any restrictions on this.

[0091] The storage methods for Global Navigation Satellite System information and electronic map elevation information will be discussed below. Figure 3 A detailed description will not be provided here.

[0092] In this embodiment, a method for generating altitude records during periods of non-barometric fluctuation is proposed. Specifically, the method for determining the reference altitude for the non-barometric fluctuation period by fitting the electronic map elevation information and Global Navigation Satellite System information corresponding to the non-barometric fluctuation period may include:

[0093] The non-baric pressure fluctuation period is divided into at least one target period according to a preset duration;

[0094] In each target time period, the target time corresponding to that target time period is determined, wherein at the target time, the difference between the electronic map elevation information and the global navigation satellite system elevation data is within a first preset range;

[0095] The average value of the electronic map elevation information and the global navigation satellite system elevation data corresponding to the target time is determined as the reference altitude for the target time period to which the target time belongs.

[0096] In this embodiment, the non-pressure fluctuation period can be divided according to a preset duration. For example, if the total duration of the non-pressure fluctuation period is 60 minutes, the non-pressure fluctuation period can be divided into 12 target periods, with each target period lasting 5 minutes, and a reference altitude can be determined for each target period.

[0097] It's easy to understand that during outdoor activities like mountaineering, the location of smart wearable devices will experience changes in altitude and weather conditions. The purpose of dividing the target time period is to re-determine the baseline altitude at regular intervals (target time periods) to reduce the impact of these changes. In other words, using the same baseline altitude within the same target time period assumes that changes in altitude and weather conditions are minimal and insufficient to affect altitude detection. Users can adjust the target time period by controlling the preset duration.

[0098] In this embodiment, after dividing the non-pressure fluctuation period into target periods, it is also necessary to determine the target time corresponding to the target period within the target period. At the target time, the difference between the electronic map elevation information and the global navigation satellite system elevation data is within a first preset range.

[0099] As one embodiment, the method for determining the target time can be to first identify candidate time periods within the target time period. A candidate time period is a segment of consecutive moments, and the difference between the electronic map elevation information and the Global Navigation Satellite System (GNSS) altitude data at any moment within a candidate time period falls within a first preset range. After identifying the candidate time periods, any moment within a candidate time period can be used as the target time corresponding to the target time period to which the candidate time period belongs. In other words, the target time can be any moment within a consecutive segment of moments in the target time period where the difference between the electronic map elevation information and the GNSS altitude data falls within a first preset range.

[0100] In this embodiment, the target time actually refers to the time when the global navigation satellite system signal fluctuation is relatively small. When the difference between the electronic map elevation information of consecutive moments and the electronic altitude data of the current consecutive moments in the target time period is within the first preset range, it indicates that the global navigation satellite system signal is relatively stable in the consecutive moments. At this time, any moment in the consecutive moments can be taken as the target time corresponding to the target time period. The length of the consecutive moments can be divided according to user needs, and this application does not impose any restrictions on this.

[0101] As an example, the method for determining the target time can also directly determine the candidate time within a first preset range of the difference between the electronic map elevation information and the global navigation satellite system elevation data in the target time period, and take any one of the candidate times as the target time corresponding to the target time period.

[0102] In this embodiment, for each target time period, the corresponding target time is determined. After determining the target time, the average of the electronic map elevation information and the global navigation satellite system (GNSS) altitude data corresponding to the target time is determined as the reference altitude for the target time period to which the target time belongs. It is easy to understand that since the GNSS signal fluctuation at the target time is small, it indicates that the electronic map elevation information and the GNSS altitude data corresponding to the target time are close to the actual altitude at that time. Therefore, the average of the two can be used as the reference altitude for the target time period to which the target time belongs.

[0103] Furthermore, the air pressure data may also include barometer altitude, and the step of determining the altitude record for the non-pressure fluctuation period using the reference altitude and the air pressure data corresponding to the non-pressure fluctuation period includes:

[0104] Determine the barometer height corresponding to each moment in the non-barometric fluctuation period, and determine the reference barometer height corresponding to the target moment in the target period to which that moment belongs. Determine the target relative height based on the barometer height and the reference barometer height.

[0105] Based on the baseline altitude of the target time period to which the target time belongs and the target relative altitude, the altitude record for each time moment is determined, and the set of altitude records for each time moment is determined as the altitude record for the non-barometric pressure fluctuation period.

[0106] In this embodiment, the barometer altitude refers to the current altitude determined by the barometer sensor. The barometer altitude is calculated based on the air pressure value collected by the barometer sensor, and can be calculated using the pressure-potential altitude formula.

[0107]

[0108] Where h is the barometer height, p0 is the standard atmospheric pressure (101.325 kPa), p is the actual measured atmospheric pressure (i.e., the collected air pressure value) in kilopascals (kPa), and T is the actual measured temperature in degrees Celsius (°C). The actual measured temperature can be measured by a temperature sensor or other module in a smart wearable device, and this application does not impose any restrictions on this.

[0109] Due to the inherent limitations of barometer sensors, the accuracy of barometer height calculated from the barometer readings is not high in absolute terms, but it is relatively accurate in relative terms. For example, if the barometer height at point A is 620 meters and at point B is 690 meters, the actual altitudes at points A and B may differ significantly from 620 meters and 690 meters, respectively. However, the altitude difference (i.e., relative altitude) between points A and B is 70 meters, which is relatively accurate.

[0110] In this embodiment, each air pressure value corresponds to a barometer height. The target relative height between the barometer height (denoted as the measured barometer height) at each moment in each target time period during non-air pressure fluctuation periods and the barometer height (denoted as the reference barometer height) at the target moment corresponding to that target time period can be determined, that is, the difference between the measured barometer height and the reference barometer height.

[0111] For example, if the target time in a target time period is the 120th second, the barometer height corresponding to the target time, i.e., the reference barometer height, is 3310 meters. Calculate the relative height between the barometer height at the 10th second of the target time period, i.e., the measured barometer height (e.g., 3306 meters), and the barometer height at the target time. Then the relative height of the target is 3306 - 3310 = -4 meters.

[0112] In this embodiment, the above steps are performed for the barometer height corresponding to each moment. After determining the target relative height, the altitude record for each moment can be determined based on the target relative height and the reference altitude of the target time period to which the target time belongs. Specifically, the altitude record for that moment can be determined by adding the reference altitude and the target relative height.

[0113] For example, taking the above example again, after determining that the relative height of the target is -4 meters, add the base altitude of the target time period (for example, 3260 meters) to the relative height of the target to determine that the altitude record of the 10th second in the target time period is 3260 + (-4) = 3256 meters.

[0114] In this embodiment, after determining the altitude record at each moment during the non-pressure fluctuation period, the set of altitude records at each moment is taken as the altitude record for the non-pressure fluctuation period.

[0115] This concludes the description of step 102. We will now proceed to step 103.

[0116] Step 103: Fit the electronic map elevation information corresponding to the air pressure fluctuation period with the global navigation satellite system information to determine the altitude record of the air pressure fluctuation period.

[0117] In step 102, a method for generating altitude records during non-barometric pressure fluctuation periods was proposed. In this embodiment, a method for generating altitude records during barometric pressure fluctuation periods was proposed.

[0118] Specifically, the method for determining the altitude record of the air pressure fluctuation period by fitting the electronic map elevation information and the global navigation satellite system information corresponding to the air pressure fluctuation period may include:

[0119] If the difference between the electronic map elevation information and the global navigation satellite system altitude data corresponding to the air pressure fluctuation period is within a second preset range, then the average value of the electronic map elevation information and the global navigation satellite system altitude data corresponding to the air pressure fluctuation period is determined as the altitude record of the air pressure fluctuation period.

[0120] If the difference between the electronic map elevation information and the global navigation satellite system elevation data corresponding to the pressure fluctuation period is not within the second preset range, the elevation record of the pressure fluctuation period is predicted based on the elevation records of the non-pressure fluctuation period before the start of the pressure fluctuation period and after the end of the pressure fluctuation period.

[0121] In this embodiment, the Global Navigation Satellite System (GNSS) information includes GNSS altitude data and GNSS latitude and longitude data. The GNSS altitude data represents the current altitude information detected by the GNSS, and the GNSS latitude and longitude data represents the current latitude and longitude information detected by the GNSS. The electronic map elevation information represents the altitude information corresponding to the current location determined in the electronic map based on the GNSS latitude and longitude data.

[0122] In this embodiment, during periods of air pressure fluctuation, the air pressure values ​​and calculated barometer heights in the collected air pressure data fluctuate greatly. At this time, it is impossible to use the air pressure data with extremely fluctuating values ​​to determine the altitude record. Instead, the altitude record can only be determined based on the electronic map elevation information and global navigation satellite system information corresponding to that period.

[0123] It is easy to understand that before determining the altitude record using the electronic map elevation information and the Global Navigation Satellite System (GNSS) information corresponding to the period of air pressure fluctuation, it is also necessary to check whether the GNSS signal is stable during that period. In other words, if the GNSS signal fluctuation is small during the period of air pressure fluctuation, the electronic map elevation information and the GNSS information can be used to determine the altitude record; otherwise, a large error will still occur.

[0124] In this embodiment, it can be first determined whether the difference between the electronic map elevation information and the global navigation satellite system altitude data corresponding to the period of air pressure fluctuation is within a second preset range. If the difference is within the second preset range, it indicates that the two values ​​are not significantly different and the global navigation satellite system signal is relatively stable. At this time, the average value of the electronic map elevation information and the global navigation satellite system altitude data corresponding to the period of air pressure fluctuation can be directly used as the altitude record of the period of air pressure fluctuation, according to the method for determining the reference altitude in step 102.

[0125] It is easy to understand that when the global navigation satellite system signal is stable, the elevation information of the electronic map and the average value of the global navigation satellite system elevation data at each moment during the pressure fluctuation period can be used as the altitude record at that moment. At this time, the set of altitude records at each moment during the pressure fluctuation period is taken as the altitude record for the pressure fluctuation period.

[0126] In this embodiment, if the difference between the electronic map elevation information and the global navigation satellite system elevation data corresponding to the period of air pressure fluctuation is not within the second preset range, it indicates that the global navigation satellite system signal is unstable and fluctuates greatly during this period. At this time, the error of using the electronic map elevation information and the global navigation satellite system information is also large. Therefore, the altitude record of the air pressure fluctuation period can be predicted based on the altitude records of the non-air pressure fluctuation period before the start of the air pressure fluctuation period and the non-air pressure fluctuation period after the end of the air pressure fluctuation period.

[0127] As an example, after determining the altitude records corresponding to the non-pressure fluctuation period before the start of the pressure fluctuation period and the altitude records corresponding to the non-pressure fluctuation period after the end of the pressure fluctuation period, the blank part (i.e., the pressure fluctuation period) between the two altitude records can be smoothly transitioned using a curve smoothing transition algorithm. This application does not limit the method of smoothing transition.

[0128] As one embodiment, the Global Navigation Satellite System (GNSS) information further includes GNSS signal quality information, which indicates the accuracy with which the GNSS currently detects the altitude and latitude / longitude data. Before fitting the electronic map elevation information corresponding to the non-pressure fluctuation period with the GNSS information to determine the reference altitude for the non-pressure fluctuation period, the method further includes:

[0129] If the signal quality information of the Global Navigation Satellite System is detected to be within a preset signal quality range, the Global Navigation Satellite System information to which the signal quality information belongs, as well as the corresponding electronic map elevation information, will be deleted.

[0130] In this embodiment, when the Global Navigation Satellite System (GNSS) signal is collected by the GNSS positioning module, the GNSS signal may also include GNSS signal quality information. The GNSS signal quality information may include the GNSS signal strength and the number of positioning satellites.

[0131] In this embodiment, before matching the electronic map elevation information and Global Navigation Satellite System (GNSS) information corresponding to the non-barometric pressure fluctuation period to determine the reference altitude for that period, it is first determined whether the GNSS signal quality information is within a preset signal quality range (e.g., signal strength not less than 30 dB and number of positioning satellites not less than 4). In other words, it is first determined whether the GNSS signal quality is stable. If the GNSS signal quality information is not within the preset signal quality range, it indicates that the GNSS signal strength is weak or the number of positioning satellites is too small, indicating that the GNSS signal is unstable. The obtained GNSS information and the electronic map elevation information obtained from the GNSS latitude and longitude data cannot be used as the basis for determining the altitude record. At this time, the GNSS information to which the GNSS signal quality information belongs and the electronic map elevation information obtained from the GNSS latitude and longitude data are deleted, so that the unstable GNSS information and electronic map elevation information are no longer used when determining the altitude record.

[0132] This concludes the description of step 103.

[0133] In this embodiment, after determining the altitude records for the periods of air pressure fluctuation and the periods of non-air pressure fluctuation, the altitude records of the two periods are combined in chronological order to obtain the altitude record of the entire movement process.

[0134] This concludes the discussion on... Figure 1 Description of the flowchart for generating mid-altitude records.

[0135] This embodiment continuously collects and stores air pressure data, global navigation satellite system information, and electronic map elevation information at a preset frequency. When an altitude record needs to be generated, it determines the air pressure fluctuation period and the non-air pressure fluctuation period from the stored air pressure data, and sets different altitude record generation methods for the two different periods:

[0136] For periods without air pressure fluctuations, a baseline altitude is determined using the corresponding electronic map elevation information and Global Navigation Satellite System (GNSS) information. The altitude record for that period is then determined based on the baseline altitude and the air pressure data for that time period. However, for periods of air pressure fluctuation, the air pressure data fluctuates too much to be considered valid data. In such cases, the altitude record for the air pressure fluctuation period can be determined by directly fitting the corresponding electronic map elevation information and GNSS information. This approach incorporates electronic map elevation information and combines it with GNSS information to correct the air pressure data, avoiding the need to calibrate the barometer altitude solely based on unstable GNSS information, thus reducing the error in the generated altitude record.

[0137] Furthermore, in this embodiment, weak GNSS signals and corresponding electronic map elevation information are eliminated based on GNSS signal quality information, thus avoiding additional errors caused by using unstable GNSS signals and electronic map elevation information to correct the barometer height.

[0138] The following is combined with Figure 2 This application presents a schematic diagram of the structure of the smart wearable device proposed in the embodiments.

[0139] Please refer to Figure 2 , Figure 2 This is a schematic diagram of the structure of a smart wearable device provided in an embodiment of this application. The smart wearable device may include three parts: a data acquisition module, a data storage and processing module, and a data display module. Each module will be briefly described below.

[0140] Specifically, smart wearable devices may include:

[0141] A data acquisition module is used to collect external data; the data acquisition module may include:

[0142] The Global Navigation Satellite System (GNSS) positioning module is used to collect GNSS information at a second frequency. The GNSS information may include GNSS latitude and longitude data, GNSS altitude data, and GNSS signal quality information.

[0143] A barometric pressure sensor is used to collect barometric pressure data at a first frequency. The barometric pressure data may include the sampling time, the barometric pressure value at the sampling time, and the barometer height.

[0144] The network module is used to obtain the corresponding electronic map elevation information based on the latitude and longitude data of the Global Navigation Satellite System at a second frequency. The network module can be implemented through wireless communication methods such as 4G and Bluetooth, and this application does not impose any restrictions on this.

[0145] In addition to the data acquisition module, smart wearable devices also include:

[0146] The data storage and processing module is used to read the data collected by the data acquisition module and store the collected data in this module so that the stored data can be processed later to generate altitude records.

[0147] The following is combined with Figure 3 Briefly describe the process of storing the collected data.

[0148] Please refer to Figure 3 , Figure 3 This is a schematic diagram of a data storage unit structure provided in an embodiment of this application.

[0149] like Figure 3 As shown, in this embodiment, taking a first frequency (the frequency for collecting air pressure data) of 3Hz and a second frequency (the frequency for collecting global navigation satellite system information and electronic map elevation information) of 1Hz as an example, after reading the data collected by the data acquisition module, the data storage and processing module combines the three air pressure data points, one global navigation satellite system information point, and one electronic map elevation information point collected within the same time period (e.g., 1 second) into a single raw data storage unit for that time period and stores it in the data storage module. Therefore, in continuous time, the data format stored in its storage module is as follows: Figure 3 The style of the storage unit shown.

[0150] Each data storage unit stores three parts of information: Global Navigation Satellite System (GNSS) information, electronic map elevation information, and barometric pressure data. The GNSS information includes altitude data, latitude and longitude data, and signal quality information; the electronic map elevation information is determined based on the latitude and longitude data; and the barometric pressure data includes the sampling time, pressure value, and barometer height.

[0151] It is important to note that Figure 3The air pressure data in the data storage unit corresponding to each second actually includes three data points: three sampling times, three air pressure values, and three barometer heights. In subsequent calculations and processing, the average value of the three air pressure data points can be taken and used as the air pressure data of the data storage unit for subsequent processing. Alternatively, the maximum and minimum values ​​of the three air pressure data points can be removed, and the remaining air pressure data point can be used as the air pressure data of the data storage unit for subsequent processing. This application does not impose any restrictions on this approach.

[0152] This concludes the article. Figure 3 The description of the data storage unit structure diagram is as follows. Figure 2 Smart wearable devices in China.

[0153] In addition, smart wearable devices also include:

[0154] The data display module is used to show the generated altitude records.

[0155] This concludes the discussion on... Figure 2 Description of the structural diagram of a smart wearable device.

[0156] Please refer to Figure 4 , Figure 4 This is a schematic structural diagram of an electronic device proposed in an embodiment of this application. At the hardware level, the electronic device includes a processor, an internal bus, a network interface, memory, and non-volatile memory, and may also include other hardware required for various services. The processor reads the corresponding computer program from the non-volatile memory into memory and then runs it, forming a terminal interaction device at the logical level. Of course, besides software implementation, this application does not exclude other implementation methods, such as logic devices or a combination of hardware and software, etc. That is to say, the execution entity of the following processing flow is not limited to individual logic units, but can also be hardware or logic devices.

[0157] Please refer to Figure 5 , Figure 5 This is a structural diagram of an altitude recording generation device proposed in an embodiment of this application, which is applied to a smart wearable device. Figure 5 As shown, the altitude recording generation device may include a time period determination unit 501, a first recording unit 502, and a second recording unit 503. Specifically, the device includes:

[0158] The time period determination unit 501 is used to determine the air pressure fluctuation period and the non-air pressure fluctuation period based on air pressure data when the conditions for generating altitude records are met.

[0159] The first recording unit 502 is used to match the electronic map elevation information and global navigation satellite system information corresponding to the non-pressure fluctuation period to determine the reference altitude of the non-pressure fluctuation period; and to determine the altitude record of the non-pressure fluctuation period by using the reference altitude and the air pressure data corresponding to the non-pressure fluctuation period.

[0160] The second recording unit 503 is used to match the electronic map elevation information corresponding to the air pressure fluctuation period with the global navigation satellite system information to determine the altitude record of the air pressure fluctuation period.

[0161] The air pressure data, the electronic map elevation information, and the global navigation satellite system information are continuously collected and stored.

[0162] Optionally, the time period determination unit 501 is specifically used for:

[0163] If the operation of viewing the altitude record is triggered through the smart wearable device, it is determined that the conditions for generating the altitude record are met.

[0164] Alternatively, if a message indicating that the current movement has ended is received, then the conditions for generating an altitude record are determined to be met.

[0165] Alternatively, if the smart wearable device is detected to be in an idle state, then the conditions for generating an altitude record are determined to be met.

[0166] And / or, the air pressure data includes the sampling time and the air pressure value corresponding to that sampling time; the time period determination unit 501 is specifically used for:

[0167] The pressure values ​​included in the pressure data are fitted into a pressure fluctuation curve according to the sampling time included in the pressure data. Each pressure value on the pressure fluctuation curve corresponds to a slope value. The set of sampling times corresponding to pressure values ​​whose slope values ​​are within a first preset range is determined as the pressure fluctuation period.

[0168] The set of sampling times other than the period of air pressure fluctuation is defined as the non-air pressure fluctuation period;

[0169] And / or, the Global Navigation Satellite System (GNSS) information includes GNSS altitude data and GNSS latitude and longitude data, wherein the GNSS altitude data represents the current altitude information detected by the GNSS, the GNSS latitude and longitude data represents the current latitude and longitude information detected by the GNSS, and the electronic map elevation information represents the altitude information corresponding to the current location determined in the electronic map based on the GNSS latitude and longitude data; the first recording unit 502 is specifically used for:

[0170] The non-baric pressure fluctuation period is divided into at least one target period according to a preset duration;

[0171] In each target time period, the target time corresponding to that target time period is determined, wherein at the target time, the difference between the electronic map elevation information and the global navigation satellite system elevation data is within a first preset range;

[0172] The average value of the electronic map elevation information and the global navigation satellite system elevation data corresponding to the target time is determined as the reference altitude of the target time period to which the target time belongs;

[0173] And / or, the air pressure data also includes barometer height, and the first recording unit 502 is specifically used for:

[0174] Determine the barometer height corresponding to each moment in the non-barometric fluctuation period, and determine the reference barometer height corresponding to the target moment in the target period to which that moment belongs. Determine the target relative height based on the barometer height and the reference barometer height.

[0175] Based on the baseline altitude of the target time period to which the target time belongs and the relative altitude of the target, the altitude record of each time is determined, and the set of altitude records of each time is determined as the altitude record of the non-barometric pressure fluctuation period.

[0176] And / or, the Global Navigation Satellite System (GNSS) information includes GNSS altitude data and GNSS latitude and longitude data, wherein the GNSS altitude data represents the current altitude information detected by the GNSS, the GNSS latitude and longitude data represents the current latitude and longitude information detected by the GNSS, and the electronic map elevation information represents the altitude information corresponding to the current location determined in the electronic map based on the GNSS latitude and longitude data; the second recording unit 503 is specifically used for:

[0177] If the difference between the electronic map elevation information and the global navigation satellite system altitude data corresponding to the air pressure fluctuation period is within a second preset range, then the average value of the electronic map elevation information and the global navigation satellite system altitude data corresponding to the air pressure fluctuation period is determined as the altitude record of the air pressure fluctuation period.

[0178] If the difference between the electronic map elevation information and the global navigation satellite system elevation data corresponding to the pressure fluctuation period is not within the second preset range, the elevation record of the pressure fluctuation period is predicted based on the elevation records of the non-pressure fluctuation period before the start of the pressure fluctuation period and after the end of the pressure fluctuation period.

[0179] And / or, the Global Navigation Satellite System (GNSS) information includes GNSS altitude data, GNSS latitude and longitude data, and GNSS signal quality information. The GNSS altitude data represents the current altitude information detected by the GNSS, the GNSS latitude and longitude data represents the current latitude and longitude information detected by the GNSS, and the GNSS signal quality information represents the accuracy of the current GNSS detection of the altitude and latitude / longitude data. The electronic map elevation information represents the altitude information corresponding to the current location determined in the electronic map based on the GNSS latitude and longitude data. Before fitting the electronic map elevation information and the GNSS information corresponding to the non-pressure fluctuation period to determine the reference altitude for the non-pressure fluctuation period, the first recording unit 502 is further configured to:

[0180] If the signal quality information of the Global Navigation Satellite System is detected to be within a preset signal quality range, the Global Navigation Satellite System information to which the signal quality information belongs, as well as the corresponding electronic map elevation information, will be deleted.

[0181] This concludes the process. Figure 5 Description of the mid-altitude recording generation device.

[0182] Correspondingly, in this embodiment, the present application also provides a computer-readable storage medium storing a plurality of computer instructions, which, when executed, can implement the method disclosed in the above examples of the present application.

[0183] For example, the aforementioned computer-readable storage medium can be any electronic, magnetic, optical, or other physical storage device that can contain or store information such as executable instructions, data, etc. For instance, computer-readable storage media can be: RAM (Random Access Memory), volatile memory, non-volatile memory, flash memory, storage drives (such as hard disk drives), solid-state drives, any type of storage disk (such as optical discs, DVDs, etc.), or similar storage media, or combinations thereof.

[0184] The above description is merely a preferred embodiment of this application and is not intended to limit this application. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the scope of protection of this application.

Claims

1. A method for generating altitude records, characterized in that, This method is applied to smart wearable devices, and the method includes: When the conditions for generating altitude records are met, the periods of air pressure fluctuation and the periods of non-air pressure fluctuation are determined based on air pressure data. The non-baric pressure fluctuation period is divided into at least one target period according to a preset duration; Within each target time period, the target time corresponding to that target time period is determined, wherein at the target time, the difference between the electronic map elevation information and the global navigation satellite system elevation data is within a first preset range; the electronic map elevation information represents the elevation information corresponding to the current location determined in the electronic map based on the global navigation satellite system latitude and longitude data; The average value of the electronic map elevation information and the global navigation satellite system elevation data corresponding to the target time is determined as the reference altitude of the target time period to which the target time belongs; Determine the barometer height corresponding to each moment in the non-barometric fluctuation period, and determine the reference barometer height corresponding to the target moment in the target period to which that moment belongs. Determine the target relative height based on the barometer height and the reference barometer height. Based on the baseline altitude of the target time period to which the target time belongs and the relative altitude of the target, the altitude record of each time is determined, and the set of altitude records of each time is determined as the altitude record of the non-barometric pressure fluctuation period. The elevation information of the electronic map corresponding to the pressure fluctuation period is matched with the information of the Global Navigation Satellite System to determine the altitude record of the pressure fluctuation period; The air pressure data, the electronic map elevation information, and the global navigation satellite system information are continuously collected and stored.

2. The method according to claim 1, characterized in that, The conditions for generating altitude records include: If the operation of viewing the altitude record is triggered through the smart wearable device, it is determined that the conditions for generating the altitude record are met. Alternatively, if a message indicating that the current movement has ended is received, then the conditions for generating an altitude record are determined to be met. Alternatively, if the smart wearable device is detected to be in an idle state, then the conditions for generating an altitude record are determined to be met.

3. The method according to claim 1, characterized in that, The air pressure data includes the sampling time and the air pressure value corresponding to that sampling time; The determination of periods of air pressure fluctuation and periods of non-air pressure fluctuation based on air pressure data includes: The pressure values ​​included in the pressure data are fitted into a pressure fluctuation curve according to the sampling time included in the pressure data. Each pressure value on the pressure fluctuation curve corresponds to a slope value. The set of sampling times corresponding to pressure values ​​whose slope values ​​are within a first preset range is determined as the pressure fluctuation period. The set of sampling times other than the period of air pressure fluctuation is defined as the non-air pressure fluctuation period.

4. The method according to claim 1, characterized in that, The Global Navigation Satellite System (GNSS) information includes GNSS altitude data and GNSS latitude and longitude data. The GNSS altitude data represents the current altitude information detected by the GNSS, and the GNSS latitude and longitude data represents the current latitude and longitude information detected by the GNSS. The electronic map elevation information represents the altitude information corresponding to the current location determined in the electronic map based on the GNSS latitude and longitude data. The step of fitting the electronic map elevation information and the Global Navigation Satellite System information corresponding to the air pressure fluctuation period to determine the altitude record for the air pressure fluctuation period includes: If the difference between the electronic map elevation information and the global navigation satellite system altitude data corresponding to the air pressure fluctuation period is within a second preset range, then the average value of the electronic map elevation information and the global navigation satellite system altitude data corresponding to the air pressure fluctuation period is determined as the altitude record of the air pressure fluctuation period. If the difference between the electronic map elevation information and the global navigation satellite system elevation data corresponding to the pressure fluctuation period is not within the second preset range, the elevation record of the pressure fluctuation period is predicted based on the elevation records of the non-pressure fluctuation period before the start of the pressure fluctuation period and after the end of the pressure fluctuation period.

5. The method according to claim 1, characterized in that, The Global Navigation Satellite System (GNSS) information includes GNSS altitude data, GNSS latitude and longitude data, and GNSS signal quality information. The GNSS altitude data represents the current altitude information detected by the GNSS. The GNSS latitude and longitude data represents the current latitude and longitude information detected by the GNSS. The GNSS signal quality information represents the accuracy of the GNSS detection of the altitude and latitude / longitude data. The electronic map elevation information represents the altitude information corresponding to the current location determined in the electronic map based on the GNSS latitude and longitude data. Before fitting the electronic map elevation information and the GNSS information corresponding to the non-pressure fluctuation period to determine the reference altitude for the non-pressure fluctuation period, the method further includes: If the signal quality information of the Global Navigation Satellite System is detected to be within a preset signal quality range, the Global Navigation Satellite System information to which the signal quality information belongs, as well as the corresponding electronic map elevation information, will be deleted.

6. An altitude recording and generation device, characterized in that, This device is used in smart wearable devices, and the device includes: The time period determination unit is used to determine the time periods of air pressure fluctuation and the time periods of non-air pressure fluctuation based on air pressure data when the conditions for generating altitude records are met. The first recording unit is configured to divide the non-barometric fluctuation period into at least one target period according to a preset duration; determine the target time corresponding to each target period, wherein at the target time, the difference between the electronic map elevation information and the global navigation satellite system (GNSS) altitude data is within a first preset range; the electronic map elevation information represents the altitude information corresponding to the current location determined in the electronic map based on GNSS latitude and longitude data; determine the average value of the electronic map elevation information and the GNSS altitude data corresponding to the target time as the reference altitude of the target period to which the target time belongs; determine the barometer height corresponding to each moment in the non-barometric fluctuation period, and determine the reference barometer height corresponding to the target time of the target period to which the moment belongs; determine the target relative altitude based on the barometer height and the reference barometer height; determine the altitude record for each moment based on the reference altitude of the target period to which the target time belongs and the target relative altitude; and determine the set of altitude records for each moment as the altitude record for the non-barometric fluctuation period. The second recording unit is used to match the electronic map elevation information corresponding to the air pressure fluctuation period with the global navigation satellite system information to determine the altitude record of the air pressure fluctuation period. The air pressure data, the electronic map elevation information, and the global navigation satellite system information are continuously collected and stored.

7. The apparatus according to claim 6, characterized in that, The time period determination unit is specifically used for: If the operation of viewing the altitude record is triggered through the smart wearable device, it is determined that the conditions for generating the altitude record are met. Alternatively, if a message indicating that the current movement has ended is received, then the conditions for generating an altitude record are determined to be met. Alternatively, if the smart wearable device is detected to be in an idle state, then the conditions for generating an altitude record are determined to be met. And / or, the air pressure data includes the sampling time and the corresponding air pressure value at that sampling time; the time period determination unit is specifically used for: The pressure values ​​included in the pressure data are fitted into a pressure fluctuation curve according to the sampling time included in the pressure data. Each pressure value on the pressure fluctuation curve corresponds to a slope value. The set of sampling times corresponding to pressure values ​​whose slope values ​​are within a first preset range is determined as the pressure fluctuation period. The set of sampling times other than the period of air pressure fluctuation is defined as the non-air pressure fluctuation period.

8. The apparatus according to claim 6, characterized in that, The Global Navigation Satellite System (GNSS) information includes GNSS altitude data and GNSS latitude and longitude data. The GNSS altitude data represents the current altitude information detected by the GNSS, and the GNSS latitude and longitude data represents the current latitude and longitude information detected by the GNSS. The electronic map elevation information represents the altitude information corresponding to the current location determined in the electronic map based on the GNSS latitude and longitude data. The second recording unit is specifically used for: If the difference between the electronic map elevation information and the global navigation satellite system altitude data corresponding to the air pressure fluctuation period is within a second preset range, then the average value of the electronic map elevation information and the global navigation satellite system altitude data corresponding to the air pressure fluctuation period is determined as the altitude record of the air pressure fluctuation period. If the difference between the electronic map elevation information and the global navigation satellite system elevation data corresponding to the pressure fluctuation period is not within the second preset range, the elevation record of the pressure fluctuation period is predicted based on the elevation records of the non-pressure fluctuation period before the start of the pressure fluctuation period and after the end of the pressure fluctuation period. And / or, the Global Navigation Satellite System (GNSS) information includes GNSS altitude data, GNSS latitude and longitude data, and GNSS signal quality information. The GNSS altitude data represents the current altitude information detected by the GNSS, the GNSS latitude and longitude data represents the current latitude and longitude information detected by the GNSS, and the GNSS signal quality information represents the accuracy of the GNSS detection of the altitude and latitude / longitude data. The electronic map elevation information represents the altitude information corresponding to the current location determined in the electronic map based on the GNSS latitude and longitude data. Before fitting the electronic map elevation information and the GNSS information corresponding to the non-pressure fluctuation period to determine the reference altitude for the non-pressure fluctuation period, the first recording unit is further configured to: If the signal quality information of the Global Navigation Satellite System is detected to be within a preset signal quality range, the Global Navigation Satellite System information to which the signal quality information belongs, as well as the corresponding electronic map elevation information, will be deleted.

9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the program, it implements the method as described in any one of claims 1 to 5.

Citation Information

Patent Citations

  • Method for calculating altitude according to combination of GPS height and air pressure

    CN114322930A

  • Relative height measuring system and method for parachute

    CN117848283A