A cumulative climbing height calculation method and device, electronic equipment and storage medium

By acquiring the average static altitude deviation and real-time air pressure difference, and combining them with the motion update threshold, the calculation of the barometer's climb value during motion was optimized, the effects of noise and fluctuations were resolved, and accurate calculation of cumulative climb height was achieved.

CN115655217BActive Publication Date: 2025-12-23TOUCHGFX CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211152960.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-09-21
Publication Date
2025-12-23
Estimated Expiration
2042-09-21

AI Technical Summary

Technical Problem

The barometer generates noise during actual operation, resulting in abnormally large rise values ​​under static conditions. The relative height difference update threshold is set too small, ignoring the rise values ​​under fluctuating conditions, which leads to calculation errors.

Method used

By obtaining the average altitude deviation value under static conditions, combining the initial motion and real-time air pressure values, the real-time difference is calculated. The average altitude deviation value is then compared with the motion update threshold to update the altitude value and optimize the climb value calculation.

Benefits of technology

It effectively avoids the problem of abnormally large rise values ​​caused by static noise, accurately accumulates the rise values ​​of fluctuating segments, and improves calculation accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115655217B_ABST
    Figure CN115655217B_ABST
Patent Text Reader

Abstract

The application discloses a cumulative climbing height calculation method and device, electronic equipment and a storage medium. The method comprises the following steps: obtaining a height average deviation value in a static state; obtaining an environment air pressure value in a motion initial state to obtain a first height value; obtaining a real-time air pressure value at a certain moment in the motion to obtain a second height value; obtaining a real-time difference value according to the difference between the first height value and the second height value; comparing and judging through the calculation between the real-time difference value, the height average deviation value and a motion update threshold, and updating the first height value. The application can avoid the problem that the climbing value is abnormally large due to the accumulation of the static noise of the barometer when the climbing value is calculated, and the climbing value in the up-and-down fluctuation section will not be ignored, so that the accurate accumulation can be achieved. Meanwhile, when the noise of the barometer is calculated, the noise characteristics are independently calculated by a single barometer, and the calculation precision is further optimized.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of height measurement, and in particular to a cumulative climbing height calculation method and device, electronic equipment and a storage medium. BACKGROUND

[0002] In a wearable device, it is necessary to provide a cumulative climbing value of a user in mountain climbing and the like. A sensor for calculating such a value is a barometer. The height value corresponding to a certain barometer can be calculated using the barometric height formula, and the climbing value of this section can be simply calculated by calculating the height difference corresponding to the initial and end barometric pressures. The cumulative climbing value is obtained by accumulating the climbing values of multiple sections.

[0003] However, in the actual process, the barometer itself has noise. If the relative height difference update threshold is set too small, the static deviation is easily accumulated, resulting in an abnormally large climbing value in a static state. At the same time, in the actual mountain climbing and the like, there are ups and downs. If the relative height difference update threshold is set too large, the climbing in this case is completely ignored. In addition, the initial height needs to be updated to calculate the climbing value in this case. SUMMARY

[0004] This section aims to summarize some aspects of the embodiments of the present application and briefly introduce some preferred embodiments. Some simplifications or omissions may be made in this section and the abstract and title of the specification to avoid obscuring the purpose of this section, abstract and title. Such simplifications or omissions cannot be used to limit the scope of the present application.

[0005] In view of the above-mentioned existing problems, the present application is proposed. Therefore, the present application provides a cumulative climbing height calculation method to solve the problems that the barometer itself has noise in the actual process, the relative height difference update threshold is set too small, the static deviation is easily accumulated, and the climbing value in a static state is abnormally large, and the relative height difference update threshold is set too large, and the climbing in this case is completely ignored.

[0006] To solve the above technical problems, the present application provides the following technical solutions:

[0007] In a first aspect, the present application provides a cumulative climbing height calculation method, comprising:

[0008] obtaining a height average deviation value in a static state;

[0009] obtaining an initial environment barometric pressure value in a motion to obtain a first height value;

[0010] obtaining a real-time barometric pressure value at a certain moment in the motion to obtain a second height value;

[0011] According to the difference between the first height value and the second height value, a real-time difference value is obtained;

[0012] The first height value is updated by comparing the real-time difference value with the height average deviation value and the motion update threshold value.

[0013] As a preferred scheme of the cumulative climb height calculation method, the height average deviation value in a static state is obtained, and the step includes:

[0014] The pressure values in the static period are read to obtain the mean value and the standard deviation of the height values in the static period;

[0015] The height average deviation value is three times the standard deviation in the static period.

[0016] As a preferred scheme of the cumulative climb height calculation method, the motion update threshold value includes an upward update threshold value and a downward update threshold value.

[0017] As a preferred scheme of the cumulative climb height calculation method, the step of updating the first height value by comparing the real-time difference value with the height average deviation value and the motion update threshold value includes:

[0018] When the real-time difference value is greater than or equal to the sum of the height average deviation value and the upward update threshold value, the real-time difference value is added to the climb value, and the current first height value is updated to the current second height value.

[0019] As a preferred scheme of the cumulative climb height calculation method, the step of updating the first height value by comparing the real-time difference value with the height average deviation value and the motion update threshold value further includes:

[0020] When the real-time difference value is less than or equal to the negative of the sum of the height average deviation value and the downward update threshold value, the current first height value is directly updated to the current second height value.

[0021] As a preferred scheme of the cumulative climb height calculation method, the step of comparing the real-time difference value with the height average deviation value and the motion update threshold value further includes,

[0022] When the real-time difference value is less than the sum of the height average deviation value and the upward update threshold value,

[0023] Or, when the real-time difference value is greater than the negative of the sum of the height average deviation value and the downward update threshold value;

[0024] Or, after the first height value is updated to the second height value,

[0025] Then, the steps after obtaining the environment air pressure value where the motion is initially located are executed cyclically.

[0026] As a preferred solution of the cumulative climb height calculation method, the ascending update threshold is 2.5 m, and the descending update threshold is 3 m.

[0027] In a second aspect, the application provides a cumulative climb height calculation device, comprising,

[0028] The obtaining module is configured to obtain the height average deviation value in a static state, obtain the first height value by obtaining the environment air pressure value where the motion is initially located, and obtain the second height value by obtaining the real-time air pressure value at a certain moment during the motion.

[0029] The calculation module is configured to obtain the real-time difference value according to the difference between the first height value and the second height value.

[0030] The judgment and update module is configured to compare the real-time difference value with the height average deviation value and the motion update threshold, and update the first height value.

[0031] In a third aspect, the application provides a computing device, comprising:

[0032] a memory and a processor;

[0033] The memory is configured to store computer executable instructions, and the processor is configured to execute the computer executable instructions, so as to realize the steps of the cumulative climb height calculation method.

[0034] In a fourth aspect, the application provides a computer readable storage medium, which stores computer executable instructions, and the computer executable instructions are executed by a processor to realize the steps of the cumulative climb height calculation method.

[0035] Compared with the prior art, the application has the following beneficial effects: the application can avoid the problem that the climb value is abnormally large due to the accumulation of the static noise of the barometer when the climb value is calculated; the climb value is not ignored in the up-and-down section, and accurate accumulation can be achieved; and when the noise of the barometer is calculated, the noise characteristics of a single barometer are calculated independently, and the calculation accuracy is further optimized. BRIEF DESCRIPTION OF DRAWINGS

[0036] In order to more clearly illustrate the technical solutions of the embodiments of the application, the following will briefly introduce the drawings needed in the embodiment description. Obviously, the drawings in the following description are only some embodiments of the application, and for those skilled in the art, other drawings can also be obtained without creative labor. Among them:

[0037] Figure 1 The overall flowchart of the cumulative climbing height calculation method according to one embodiment of the present application. DETAILED DESCRIPTION

[0038] In order to make the above objectives, features and advantages of the present application more apparent, specific embodiments of the present application will be described in detail below with the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without creative work should fall within the protection scope of the present application.

[0039] In the following description, a large number of specific details are set forth in order to facilitate a thorough understanding of the present application. However, the present application can be implemented in other different manners than those described herein, and those skilled in the art can make similar generalizations without departing from the spirit and scope of the present application. Therefore, the present application is not limited to the specific embodiments disclosed below.

[0040] Secondly, the term "one embodiment" or "an embodiment" as used herein means that a specific feature, structure or characteristic described can be included in at least one implementation of the present application. The term "in one embodiment" appearing in different places in the specification does not mean the same embodiment, nor does it mean that the embodiment is independent or alternative to other embodiments.

[0041] The present application is described in detail with reference to the accompanying drawings. In the detailed description of the embodiments of the present application, the sectional view of the device structure is partially enlarged without the general proportion for the convenience of description, and the schematic diagram is only an example, which should not limit the scope of protection of the present application. In addition, the three-dimensional spatial dimensions of length, width and depth should be included in the actual manufacture.

[0042] Meanwhile, in the description of the present application, it should be noted that the terms "up, down, inner and outer" and the like indicate the orientation or positional relationship based on the orientation or positional relationship shown in the drawings, and are only for the convenience of describing the present application and simplifying the description, and do not indicate or imply that the device or element referred to must have a particular orientation, be constructed and operated in a particular orientation, and therefore cannot be understood as a limitation on the present application. In addition, the terms "first, second or third" are only for the purpose of description, and cannot be understood as indicating or implying relative importance.

[0043] Unless otherwise defined, the terms "mounting, connecting, associating" should be interpreted broadly, for example: can be fixed connection, detachable connection or integral connection; can also be mechanical connection, electrical connection or direct connection, can also be indirectly connected through intermediate medium, can also be the internal communication of two elements. For those skilled in the art, the specific meaning of the above terms in the present application can be understood according to the specific circumstances.

[0044] Embodiment 1

[0045] Reference Figure 1 For an embodiment of the present application, a cumulative climbing height calculation method is provided, comprising:

[0046] S100: Obtain the height average deviation value △H under static condition;

[0047] Further, the height average deviation value under static condition is obtained, and the step comprises:

[0048] Read the air pressure value in the static period to obtain the height value average H in the static period m And the standard deviation H s ;

[0049] The height average deviation value is three times the standard deviation H s in the static period.

[0050] It should be noted that the barometer reading can be converted to height value using the air pressure-height formula, i.e. H = 44300 * (1-(P / P0)^(1 / 5.256)); In the formula: H is the altitude, P0 is the atmospheric pressure (0℃, 101.325kPa).

[0051] At the same time, in the normal distribution, according to the nature of the standard deviation: the data within 1, 2, 3 standard deviations from the mean accounts for 68.2%, 95.4%, 99.6% respectively, therefore the height average deviation value △H = 3*H s , representing the height offset error of the barometer itself under static condition.

[0052] Preferably, the static period is greater than thirty minutes.

[0053] S200: Obtain the environment air pressure value at the initial motion, to obtain the first height value H0;

[0054] S300: Obtain the real-time air pressure value at a certain time during the motion, to obtain the second height value H1;

[0055] S400: Obtain the real-time difference value dh according to the difference between the first height value and the second height value;

[0056] That is: dh = H1-H0.

[0057] S500: judging by the calculation between the real-time difference dh and the height average deviation value AH and the motion updating threshold, and updating the first height value H0.

[0058] Further, the motion updating threshold includes an ascending updating threshold UR and a descending updating threshold UD.

[0059] Further, the ascending updating threshold UR is 2.5 m, and the descending updating threshold UD is 3 m.

[0060] Further, the step of judging by the calculation between the real-time difference and the height average deviation value and the motion updating threshold, and updating the first height value includes:

[0061] When the real-time difference is greater than or equal to the sum of the height average deviation value and the ascending updating threshold, the real-time difference is accumulated to the climbing value, and the current first height value is updated to the current second height value.

[0062] Further, the step of judging by the calculation between the real-time difference and the height average deviation value and the motion updating threshold, and updating the first height value includes:

[0063] When the real-time difference is less than or equal to the negative of the sum of the height average deviation value and the descending updating threshold, the current first height value is directly updated to the current second height value.

[0064] It should be noted that the purpose of this step is to track and update the effective fluctuation of the height in real time, which is beneficial to calculate the climbing value of the ascending segment in the process of descending and ascending again.

[0065] Further, the step of judging by the calculation between the real-time difference and the height average deviation value and the motion updating threshold includes:

[0066] When the real-time difference is less than the sum of the height average deviation value and the ascending updating threshold,

[0067] or, when the real-time difference is greater than the negative of the sum of the height average deviation value and the descending updating threshold;

[0068] or, after the first height value is updated to the second height value,

[0069] then, the above steps after obtaining the initial environmental air pressure value of the motion are executed in a loop.

[0070] The above is a schematic scheme of the cumulative climbing height calculation method of the embodiment. It should be noted that the technical scheme of the cumulative climbing height calculation device belongs to the same concept as the technical scheme of the cumulative climbing height calculation method described above. The technical scheme of the cumulative climbing height calculation device in the embodiment is not described in detail, and the details can be referred to the description of the technical scheme of the cumulative climbing height calculation method described above.

[0071] The cumulative climbing height calculation device in the embodiment comprises:

[0072] The acquisition module is configured to acquire the height average deviation value in a static condition, acquire the environment air pressure value at the initial stage of the movement to obtain a first height value, and acquire a real-time air pressure value at a certain moment during the movement to obtain a second height value.

[0073] The calculation module is configured to obtain a real-time difference value according to the difference between the first height value and the second height value.

[0074] The judgment and update module is configured to compare and judge through the calculation between the real-time difference value, the height average deviation value, and the movement update threshold, and update the first height value.

[0075] The embodiment further provides a computing device suitable for cumulative climbing height calculation, comprising:

[0076] The memory is configured to store computer executable instructions, and the processor is configured to execute the computer executable instructions to implement the cumulative climbing height calculation method proposed in the above embodiment.

[0077] The embodiment further provides a storage medium having a computer program stored thereon, and the program is executed by the processor to implement the cumulative climbing height calculation method proposed in the above embodiment.

[0078] The storage medium proposed in the embodiment belongs to the same inventive concept as the cumulative climbing height calculation method proposed in the above embodiment. The technical details not described in detail in the embodiment can be referred to the above embodiment, and the embodiment has the same beneficial effects as the above embodiment.

[0079] Through the above description of the embodiments, those skilled in the art can clearly understand that the present application can be realized by means of software and necessary general hardware, and of course can also be realized by hardware, but in many cases the former is a better embodiment. Based on such understanding, the technical solutions of the present application can be embodied in the form of a software product, and the computer software product can be stored in a computer readable storage medium, such as a floppy disk, a read-only memory (ROM), a random access memory (RAM), a FLASH memory, a hard disk, or an optical disc, etc., and includes a number of instructions to make a computer device (which can be a personal computer, a server, or a network device, etc.) execute the methods of various embodiments of the present application.

[0080] Embodiment 2

[0081] Referring to Table 1-2, for an embodiment of the present application, a cumulative climbing height calculation method is provided, and in order to verify its beneficial effects, the comparison results of two schemes are provided.

[0082] Table 1 Comparison test of cumulative climbing value under static state

[0083]

[0084]

[0085] From the above Table 1, it can be seen that in the traditional scheme, the cumulative climbing value also appears under static state, and accumulates with time; using the present application, since the static error of the sensor has been considered, the cumulative climbing value is always zero under static state.

[0086] Table 2 Comparison test of cumulative climbing value under static state

[0087] Conventional scheme cumulative climb value Cumulative climb value according to the invention Cumulative climb value Cumulative climb value 940m 1222m

[0088] Table 2 is the data when climbing an altitude of 943m with many ups and downs of mountains, in the traditional scheme, the relative height is generally used to replace the cumulative climbing value, and in the actual situation, the cumulative climbing value contains the ups and downs of the rising section, so the cumulative climbing value calculated by the traditional scheme has a large error. The cumulative climbing value calculated by the present application is closer to the actual cumulative climbing value.

[0089] It should be noted that the above examples are only used to illustrate the technical solutions of the present application but not to limit the present application. Although the present application is described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solutions of the present application can be modified or equivalently replaced, without departing from the spirit and scope of the technical solutions of the present application, and all of them should be covered in the scope of the claims of the present application.

Claims

1. A cumulative climb height calculation method characterized by, The method comprises: obtaining a height average deviation value in a static state; obtaining a height average deviation value in a static state, the step comprising: reading the air pressure value in the static period to obtain the mean value and the standard deviation of the height value in the static period; the height average deviation value is three times the standard deviation in the static period; obtaining an initial environment air pressure value of the motion to obtain a first height value; obtaining a real-time air pressure value at a certain moment of the motion to obtain a second height value; obtaining a real-time difference value according to the difference between the first height value and the second height value; comparing and judging through the calculation between the real-time difference value and the height average deviation value and the motion update threshold, and updating the first height value, comprising: the motion update threshold comprises an ascending update threshold and a descending update threshold; when the real-time difference value is greater than or equal to the sum of the height average deviation value and the ascending update threshold, the real-time difference value is accumulated to the climbing value, and the current first height value is updated to the current second height value; further comprising: when the real-time difference value is less than or equal to the negative of the sum of the height average deviation value and the descending update threshold, the current first height value is directly updated to the current second height value.

2. The cumulative climb altitude calculation method of claim 1, wherein, The step of comparing and judging through the calculation between the real-time difference value and the height average deviation value and the motion update threshold further comprises: when the real-time difference value is less than the sum of the height average deviation value and the ascending update threshold, or, when the real-time difference value is greater than the negative of the sum of the height average deviation value and the descending update threshold; or, after the first height value is updated to the second height value, then, the steps after obtaining the initial environment air pressure value of the motion are executed cyclically.

3. The cumulative climb altitude calculation method of claim 2, wherein, The ascending update threshold is 2.5m, and the descending update threshold is 3m.

4. An apparatus for calculating accumulated climbing height, which applies the accumulated climbing height calculation method according to any one of claims 1 to 3, characterized by The method comprises: an obtaining module, configured to obtain a height average deviation value in a static state, obtain an initial environment air pressure value of the motion to obtain a first height value, and obtain a real-time air pressure value at a certain moment of the motion to obtain a second height value; a calculating module, configured to obtain a real-time difference value according to the difference between the first height value and the second height value; a judging and updating module, configured to compare and judge through the calculation between the real-time difference value and the height average deviation value and the motion update threshold, and update the first height value. 5.An electronic device, comprising: a memory and a processor; the memory is configured to store computer executable instructions, and the processor is configured to execute the computer executable instructions, and the computer executable instructions, when executed by the processor, implement the steps of the cumulative climbing height calculation method in any one of claims 1 to 3. 6.A computer readable storage medium, storing computer executable instructions, the computer executable instructions, when executed by a processor, implement the steps of the cumulative climbing height calculation method in any one of claims 1 to 3.

Citation Information

Patent Citations

  • Floor recognition method and system

    CN103874200A

  • Pressure assisted positioning method and device thereof

    TW202016503A