Control method and device, electronic equipment, storage medium and program product
By automatically activating blood oxygen monitoring by acquiring location and air pressure data, it solves the problems of inconvenience in carrying blood oxygen meters and preventing altitude sickness during outdoor sports, achieving immediacy and convenience while saving power.
Patent Information
- Application Number
- CN202410969014.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-18
- Publication Date
- 2026-01-20
AI Technical Summary
Outdoor sports users face challenges when using pulse oximeters in high-altitude environments, including inconvenience in carrying them and the inability to anticipate risks. Existing pulse oximeter monitoring requires users to actively activate it, which makes it impossible to prevent altitude sickness in advance and also affects the device's power consumption.
By acquiring location and air pressure data, the target altitude is automatically determined, and blood oxygen monitoring is activated when the altitude exceeds a preset threshold. Combined with data cleaning and fusion processing, the accuracy and timeliness of altitude determination are improved.
It achieves real-time and convenient blood oxygen monitoring, can prevent altitude sickness in advance, saves equipment power consumption, and enhances intelligence.
Smart Images

Figure CN121366481A_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present disclosure relates to the technical field of electronic devices, and in particular, to a control method and apparatus, an electronic device, a storage medium, and a program product. BACKGROUND
[0002] With the improvement of people's living standards, outdoor sports are no longer a sport that only a small number of people like. Outdoor sports are becoming closer to everyone's life, and more and more people are involved in outdoor sports. Whether it is to try skiing out of curiosity, or a mountaineering enthusiast, or a professional backpacker, the demand for outdoor sports is growing. Most users in the outdoor circle are currently using blood oxygen meters to record high-altitude or outdoor blood oxygen data, and there are problems of inconvenience to carry and inability to predict risks in advance. SUMMARY
[0003] To overcome the problems in the related art, the present disclosure provides a control method and apparatus, an electronic device, a storage medium, and a program product to improve the immediacy and convenience of blood oxygen monitoring.
[0004] According to a first aspect of an embodiment of the present disclosure, a control method is provided, comprising:
[0005] obtaining positioning data and air pressure data;
[0006] determining a target altitude based on the positioning data and / or the air pressure data;
[0007] in response to the target altitude exceeding a preset altitude threshold, starting a blood oxygen monitoring function.
[0008] In some embodiments, the positioning data includes positioning data within a preset time period, and the air pressure data within the preset time period;
[0009] The determination of the target altitude based on the positioning data and / or the air pressure data includes:
[0010] determining a first altitude based on the positioning data at an initial time within the preset time period;
[0011] determining a second altitude based on the air pressure data at the initial time;
[0012] performing fusion processing based on the first altitude and the second altitude to determine a fused initial altitude;
[0013] determining the target altitude based on the initial altitude, the positioning data within the preset time period, and / or the air pressure data.
[0014] In some embodiments, the determination of the target altitude based on the initial altitude, the positioning data within the preset time period, and / or the air pressure data includes:
[0015] in response to determining that the motion displacement is greater than the preset displacement threshold based on the positioning data within the preset time length, determining the target altitude based on the positioning data and / or the air pressure data within the preset time length;
[0016] in response to the motion displacement being less than or equal to the preset displacement threshold, determining the target altitude based on the initial altitude and / or the air pressure data within the preset time length.
[0017] In some embodiments, the determining the target altitude based on the positioning data and / or the air pressure data within the preset time length comprises:
[0018] in response to the air pressure data within the preset time length changing, determining the target altitude based on the air pressure data within the preset time length;
[0019] in response to the air pressure data within the preset time length not changing, determining the target altitude based on the positioning data within the preset time length.
[0020] In some embodiments, the determining the target altitude based on the initial altitude and / or the air pressure data within the preset time length comprises:
[0021] in response to the air pressure data within the preset time length changing, determining the target altitude based on the air pressure data within the preset time length;
[0022] in response to the air pressure data within the preset time length not changing, determining the initial altitude as the target altitude.
[0023] In some embodiments, the method further comprises:
[0024] respectively performing data cleaning on the positioning data and the air pressure data within the preset time length to obtain cleaned positioning data and cleaned air pressure data;
[0025] the determining the target altitude based on the initial altitude, the positioning data and / or the air pressure data within the preset time length comprises:
[0026] determining the target altitude based on the initial altitude, the cleaned positioning data and / or the cleaned air pressure data within the preset time length; wherein the initial altitude is determined based on the cleaned positioning data at the initial time and the cleaned air pressure data at the initial time.
[0027] In some embodiments, the starting the blood oxygen monitoring function in response to the target altitude exceeding a preset altitude threshold comprises:
[0028] in response to the motion application being started and the target altitude exceeding the preset altitude threshold, outputting prompt information prompting to start the blood oxygen monitoring function in the motion application;
[0029] after receiving an instruction to start the blood oxygen monitoring function based on the prompt information, starting the blood oxygen monitoring function in the motion application.
[0030] According to a second aspect of the embodiments of the present disclosure, a control device is provided, comprising:
[0031] an acquisition module configured to acquire positioning data and air pressure data;
[0032] a determination module configured to determine a target altitude based on the positioning data and / or the air pressure data;
[0033] an enabling module configured to enable a blood oxygen monitoring function in response to the target altitude exceeding a preset altitude threshold.
[0034] In some embodiments, the positioning data includes positioning data within a preset time length, and the air pressure data within the preset time length; the determination module is further configured to determine a first altitude based on positioning data at an initial time within the preset time length, determine a second altitude based on air pressure data at the initial time, perform fusion processing based on the first altitude and the second altitude to determine a fused initial altitude, and determine the target altitude based on the initial altitude, the positioning data and / or the air pressure data within the preset time length.
[0035] In some embodiments, the determination module is further configured to determine the target altitude based on the positioning data and / or the air pressure data within the preset time length in response to determining that a motion displacement is greater than a preset displacement threshold based on the positioning data within the preset time length, and determine the target altitude based on the initial altitude and / or the air pressure data within the preset time length in response to the motion displacement being less than or equal to the preset displacement threshold.
[0036] In some embodiments, the determination module is further configured to determine the target altitude based on the air pressure data within the preset time length in response to the air pressure data within the preset time length changing, and determine the target altitude based on the positioning data within the preset time length in response to the air pressure data within the preset time length not changing.
[0037] In some embodiments, the determination module is further configured to determine the target altitude based on the air pressure data within the preset time length in response to the air pressure data within the preset time length changing, and determine the initial altitude as the target altitude in response to the air pressure data within the preset time length not changing.
[0038] In some embodiments, the device further comprises:
[0039] a data cleaning module, configured to clean the positioning data and the barometric pressure data in the preset time period respectively to obtain cleaned positioning data and cleaned barometric pressure data;
[0040] The determination module is further configured to determine the target altitude based on the initial altitude, the cleaned positioning data and / or the cleaned barometric pressure data in the preset time period; wherein the initial altitude is determined based on the cleaned positioning data at the initial time and the cleaned barometric pressure data at the initial time.
[0041] In some embodiments, the starting module is further configured to, in response to the motion application being started and the target altitude exceeding the preset altitude threshold, output prompt information prompting to start the blood oxygen monitoring function in the motion application; and start the blood oxygen monitoring function in the motion application based on receiving an instruction to start the blood oxygen monitoring function according to the prompt information.
[0042] According to a third aspect of the embodiments of the present disclosure, an electronic device is provided, comprising:
[0043] a processor;
[0044] a memory for storing computer programs or instructions;
[0045] The processor executes the computer programs or instructions to implement the steps of the method according to the first aspect.
[0046] According to a fourth aspect of the embodiments of the present disclosure, a non-transitory computer readable storage medium is provided, which stores computer programs or instructions, and when the computer programs or instructions in the storage medium are executed by a processor, the steps of the method according to the first aspect are implemented.
[0047] According to a fifth aspect of the embodiments of the present disclosure, a computer program product is provided, which comprises computer programs or instructions, and when the computer programs or instructions are executed by a processor, the steps of the method according to the first aspect are implemented.
[0048] The technical solutions provided by the embodiments of the present disclosure can include the following beneficial effects:
[0049] In the embodiments of the present disclosure, the electronic device acquires two types of data, i.e., positioning data and barometric pressure data, and selectively determines an accurate target altitude according to at least one of the two types of data, and automatically starts the blood oxygen monitoring function when the target altitude is greater than a preset altitude threshold, which can improve the instantaneity and convenience of blood oxygen monitoring, prevent high altitude reaction in advance, save the power consumption of the electronic device, and have high intelligence.
[0050] It should be understood that the general description and detailed description below are only exemplary and explanatory, and cannot limit the present disclosure. BRIEF DESCRIPTION OF DRAWINGS
[0051] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and serve to explain the principles of the present disclosure, in conjunction with the description.
[0052] Figure 1 is a control method flowchart example diagram shown by an embodiment of the present disclosure.
[0053] Figure 2 is an altitude determination method flowchart example diagram in an embodiment of the present disclosure.
[0054] Figure 3 is a control device diagram shown by an embodiment of the present disclosure.
[0055] Figure 4 is a block diagram of an electronic device shown by an embodiment of the present disclosure. DETAILED DESCRIPTION
[0056] The exemplary embodiments will be described in detail herein with reference to the attached drawings. The following description is only exemplary and explanatory, and cannot limit the present disclosure. The same reference numbers in different drawings represent the same or similar elements or steps.
[0057] Figure 1 is a control method flowchart example diagram shown by an embodiment of the present disclosure, which comprises the following steps: Figure 1 It can be known that the control method comprises the following steps:
[0058] S101, acquiring positioning data and air pressure data;
[0059] S102, determining a target altitude based on the positioning data and / or the air pressure data.
[0060] S103, in response to the target altitude exceeding a preset altitude threshold, starting a blood oxygen monitoring function.
[0061] The control method in the embodiments of the present disclosure can be applied to terminal electronic devices such as mobile phones, cameras, tablet computers, vehicle-mounted devices, or wearable devices.
[0062] In step S101, the electronic device acquires positioning data and air pressure data. The positioning data can be acquired based on a positioning module in the electronic device, such as a Beidou positioning module, a Global Positioning System (GPS) module, a Global Navigation Satellite System (GNSS) module, etc., which are not limited in the embodiments of the present disclosure. The air pressure data can be acquired based on an air pressure gauge in the electronic device. Generally, the altitude is negatively correlated with the air pressure data.
[0063] In steps S102-S103, the electronic device determines a target altitude based on the positioning data and / or the air pressure data, to start the blood oxygen monitoring function when the target altitude exceeds a preset altitude threshold. It should be noted that the target altitude exceeding the preset altitude threshold can indicate that the electronic device enters a highland area. Since people are prone to hypoxia in the highland area, which can cause harm to the body, it is necessary to start the blood oxygen monitoring function in this case.
[0064] In the embodiments of the present disclosure, the electronic device can select a data source to determine the target altitude according to the accuracy of the acquired positioning data and air pressure data. For example, if the positioning data changes frequently and greatly in a short time, it indicates that the accuracy of the positioning data is not high, and the electronic device can determine the target altitude based on the air pressure data. If the air pressure data changes frequently and greatly in a short time, it indicates that the accuracy of the air pressure data is not high, and the electronic device can determine the target altitude based on the positioning data. Of course, if the accuracy of the positioning data and the air pressure data is acceptable, the electronic device can determine the target altitude based on the fusion of the positioning data and the air pressure data. The short time can be a preset time threshold, such as 30 seconds, etc.
[0065] In some embodiments, the electronic device can determine a current target altitude based on the current positioning data and / or air pressure data, and compare the current target altitude with the preset altitude threshold to determine whether to start the blood oxygen monitoring function. In other embodiments, the electronic device can also determine the target altitude based on the positioning data and / or air pressure data in a preset time period, to further determine whether to start the blood oxygen monitoring function.
[0066] In the embodiments of the present disclosure, when determining the target altitude based on the positioning data and / or the barometric pressure data, in some embodiments, one altitude value can be determined based on the positioning data or the barometric pressure data and taken as the target altitude; or the electronic device determines one altitude value based on the positioning data and one altitude value based on the barometric pressure data respectively, and then fuses the two altitude values to obtain the target altitude. When determining the altitude value based on the positioning data, the electronic device may, for example, send the GPS positioning data to a server, and receive the altitude value corresponding to the position returned by the server; for another example, when the positioning data is GNSS satellite positioning data, the GNSS positioning data may include, for example, latitude and longitude, GNSS altitude, etc., and the electronic device can read the altitude from the GNSS positioning data; when determining the altitude value based on the barometric pressure data, the electronic device may, for example, also send the barometric pressure data to a server, and receive the altitude value corresponding to the barometric pressure data returned by the server. Of course, in the embodiments of the present disclosure, the electronic device may also store the mapping between position and altitude, and the mapping between barometric pressure and altitude.
[0067] In other embodiments, the electronic device can input the positioning data and / or the barometric pressure data into an altitude determination model to obtain the target altitude output by the model, wherein the altitude determination model can be obtained by training and parameterizing a network such as a Convolutional Neural Networks (CNN) or a Deep Neural Networks (DNN) based on a large amount of training sample data and label values, the training sample data may include sample barometric pressure data and / or sample positioning data, and the label values are pre-set accurate altitude values.
[0068] It should be noted that, since the working of the barometer and the positioning module may be affected by the environment, if the positioning data and / or the barometric pressure data deviate, the determination of the target altitude will be affected. Therefore, in the embodiments of the present disclosure, the electronic device can also obtain environmental data, and combine the environmental data with the positioning data and the barometric pressure data to determine the target altitude. For example, the environmental data can be used to determine an environmental influence weight, and the environmental influence weight can be applied to a first altitude corresponding to the positioning data and / or a second altitude corresponding to the barometric pressure data, so as to further obtain the target altitude; for another example, the environmental data can be input into the altitude determination model together with the positioning data and / or the barometric pressure data, so as to determine the target altitude, in which case, the sample data used for training the altitude determination model also includes environmental sample data. The environmental data may include at least one of the following: environmental temperature, environmental humidity.
[0069] In the embodiments of the present disclosure, the electronic device starts the blood oxygen monitoring function when the target altitude exceeds the preset altitude threshold, for example, the function of a separate blood oxygen monitoring application in the electronic device can be started, and the blood oxygen monitoring function in other applications can also be started. The other applications can be any application integrated with the blood oxygen monitoring function, such as a sports application, a health comprehensive management application, or a weather application, a location application, and the like. In addition, the electronic device can directly start the blood oxygen monitoring function when the target altitude exceeds the preset altitude threshold, or can first output a prompt information and start the blood oxygen monitoring function after receiving a user operation based on the output prompt information. The form and timing of starting the blood oxygen monitoring function in the embodiments of the present disclosure are not limited.
[0070] In the related art, the blood oxygen monitoring function needs to be started by the user, and then there are problems: on the one hand, if the user forgets or is not convenient to start the blood oxygen monitoring function when it needs to be started (for example, in a high-altitude environment), the high-altitude reaction cannot be prevented in advance; on the other hand, if the user always starts the blood oxygen monitoring function, unnecessary blood oxygen monitoring may occur, thereby affecting the power consumption of the electronic device.
[0071] To this end, in the embodiments of the present disclosure, the electronic device acquires two types of data, i.e., positioning data and air pressure data, and selectively determines an accurate target altitude based on at least one of the two types of data, and automatically starts the blood oxygen monitoring function when the target altitude is greater than the preset altitude threshold, thereby improving the instantaneity and convenience of blood oxygen monitoring, preventing high-altitude reaction in advance, saving the power consumption of the electronic device, and having high intelligence.
[0072] In the embodiments of the present disclosure, after the electronic device starts the blood oxygen monitoring function, if the monitored blood oxygen value is lower than a preset blood oxygen threshold, the electronic device can output a prompt information of low blood oxygen. The preset blood oxygen threshold can be a threshold based on gender differentiation and / or a threshold based on age differentiation. The electronic device can display a configuration interface to receive a configuration of the gender and / or the age, thereby determining the blood oxygen threshold corresponding to the name and / or the age.
[0073] In some embodiments, the positioning data includes positioning data within a preset time length, and the air pressure data within the preset time length;
[0074] The determining of the target altitude based on the positioning data and / or the air pressure data includes:
[0075] Determining a first altitude based on the positioning data at an initial time within the preset time length;
[0076] Determining a second altitude based on the air pressure data at the initial time;
[0077] Performing fusion processing based on the first altitude and the second altitude to determine a fused initial altitude;
[0078] determine the target altitude based on the initial altitude, the positioning data and / or the air pressure data within the preset time length.
[0079] In the embodiments of the present disclosure, the electronic device determines the target altitude based on the positioning data and / or the air pressure data within the preset time length. First, the electronic device determines a first altitude corresponding to the positioning data based on the positioning data at an initial time within the preset time length, and determines a second altitude corresponding to the air pressure data based on the air pressure data at the initial time, where the manner of determining the first altitude and the second altitude can refer to the foregoing.
[0080] It should be noted that in the embodiments of the present disclosure, the initial time represents a time earlier in the preset time length, and the time corresponding to the positioning data at the initial time and the air pressure data at the initial time can be the same or different. The preset time length can be a relatively short time length, for example, 1 minute or the like.
[0081] In the embodiments of the present disclosure, after the electronic device determines the first altitude and the second altitude corresponding to the initial time based on the two types of data, the electronic device can perform fusion processing on the two altitudes to obtain a fused initial altitude, for example, the first altitude and the second altitude can be weighted and fused based on a preset weight.
[0082] In the embodiments of the present disclosure, after the electronic device obtains the fused initial altitude, the electronic device determines the target altitude based on the initial altitude, the positioning data and / or the air pressure data within the preset time length. In some embodiments, the electronic device can determine the target altitude by weighted fusion based on a preset weight based on the initial altitude, a first statistical altitude corresponding to the positioning data within the preset time length and / or a second statistical altitude corresponding to the air pressure data within the preset time length. In some embodiments, the electronic device can determine the target altitude based on the first statistical altitude and the second statistical altitude in the case where the initial altitude has a large difference with the first statistical altitude and the second statistical altitude, and determine the initial altitude as the target altitude in the case where the initial altitude has a small difference with the first statistical altitude and the second statistical altitude. It should be noted that the first statistical altitude and the second statistical altitude can be an average value or a median value of the altitudes within the preset time length, and the embodiments of the present disclosure do not make any limitation.
[0083] It can be understood that in the embodiments of the present disclosure, the electronic device determines the fused initial altitude based on the positioning data and the air pressure data at the initial time, and then determines the target altitude based on the fused initial altitude in combination with the positioning data and / or the air pressure data within the preset time length. Since the accuracy of the fused initial altitude is relatively high, the target altitude determined in combination with the fused initial altitude can improve the accuracy of the determination of the target altitude.
[0084] In some embodiments, the determining the target altitude based on the initial altitude, the positioning data and / or the air pressure data in the preset time period comprises:
[0085] In response to determining that the motion displacement is greater than the preset displacement threshold based on the positioning data in the preset time period, the target altitude is determined based on the positioning data and / or the air pressure data in the preset time period;
[0086] In response to the motion displacement being less than or equal to the preset displacement threshold, the target altitude is determined based on the initial altitude and / or the air pressure data in the preset time period.
[0087] In the embodiments of the present disclosure, when the electronic device determines that the motion displacement is greater than the preset displacement threshold based on the positioning data in the preset time period, i.e., in the case of large displacement, it is considered that the initial altitude determined based on the positioning data and the air pressure data at the initial time may not conform to the actual situation after the motion, and therefore, in the case of large displacement, the target altitude is determined based on the positioning data and / or the air pressure data in the preset time period. For example, the target altitude can be directly determined based on the statistical value of the positioning data or the air pressure data in the preset time period, or the positioning data and the air pressure data in the preset time period can be weighted and fused to determine the target altitude.
[0088] In the embodiments of the present disclosure, when the electronic device determines that the motion displacement is less than or equal to the preset displacement threshold, the target altitude is determined based on the initial altitude and / or the air pressure data in the preset time period. Wherein, the motion displacement less than or equal to the preset displacement threshold can be that no motion occurs, or that motion occurs but the motion displacement is small. Because in the case of no motion or small motion displacement, the altitude value will not change greatly, the target altitude can be determined based on the initial altitude, and because the sensitivity of the barometer is usually good, the target altitude can also be determined based on the air pressure data in the case of small displacement.
[0089] It can be understood that in the embodiments of the present disclosure, the determination method of the target altitude is formulated based on the size of the motion displacement, which can improve the accuracy of the determination of the target altitude.
[0090] In some embodiments, the determining the target altitude based on the positioning data and / or the air pressure data in the preset time period comprises:
[0091] In response to the air pressure data in the preset time period changing, the target altitude is determined based on the air pressure data in the preset time period;
[0092] In response to the air pressure data in the preset time period not changing, the target altitude is determined based on the positioning data in the preset time period.
[0093] In the embodiments of the present disclosure, the barometric pressure data changes, indicating that the barometer data is updated. Since the sensitivity of the barometer is usually good, in the case that a large motion displacement occurs and the change of the barometric pressure data is detected, the accurate target altitude can be obtained directly based on the barometric pressure data in the preset time period. If the barometric pressure data does not change, the target altitude is determined based on the positioning data in the preset time period. For example, when the target altitude is determined based on the barometric pressure data in the preset time period, the altitude corresponding to the barometric pressure data at the last time can be determined as the target altitude, or the altitude corresponding to the statistical value of the barometric pressure data in the preset time period can be determined as the target altitude. Similarly, the target altitude can be determined based on the positioning data in the preset time period.
[0094] It can be understood that, in the embodiments of the present disclosure, the barometric pressure data or the positioning data in the preset time period is selected based on whether the barometric pressure data changes, so as to determine the target altitude, which can improve the accuracy of the determination of the target altitude. Compared with the way of updating the fusion altitude based on the barometric pressure data and the positioning data, i.e., updating the initial altitude to obtain the target altitude, the power consumption of the electronic device can be considered.
[0095] In some embodiments, the target altitude is determined based on the initial altitude and / or the barometric pressure data in the preset time period, including:
[0096] In response to the change of the barometric pressure data in the preset time period, the target altitude is determined based on the barometric pressure data in the preset time period.
[0097] In response to the change of the barometric pressure data in the preset time period, the target altitude is determined based on the barometric pressure data in the preset time period.
[0098] In the embodiments of the present disclosure, since the sensitivity of the barometer is usually good, in the case that a large motion displacement occurs and the change of the barometric pressure data is detected, the accurate target altitude can be obtained directly based on the barometric pressure data in the preset time period. If the barometric pressure data does not change, the target altitude is determined based on the positioning data in the preset time period. For example, when the target altitude is determined based on the barometric pressure data in the preset time period, the altitude corresponding to the barometric pressure data at the last time can be determined as the target altitude, or the altitude corresponding to the statistical value of the barometric pressure data in the preset time period can be determined as the target altitude. Similarly, the target altitude can be determined based on the positioning data in the preset time period.
[0099] It can be understood that, in the embodiments of the present disclosure, the barometric pressure data or the positioning data in the preset time period is selected based on whether the barometric pressure data changes, so as to determine the target altitude, which can improve the accuracy of the determination of the target altitude. Compared with the way of updating the fusion altitude based on the barometric pressure data and the positioning data, i.e., updating the initial altitude to obtain the target altitude, the power consumption of the electronic device can be considered.
[0100] It should be noted that in the embodiments of the present disclosure, if the air pressure data and the positioning data in the preset time period do not change at the same time, the electronic device does not update the target altitude. In addition, in the embodiments of the present disclosure, if the electronic device only obtains air pressure data or positioning data, the electronic device can also determine the target altitude based on a single type of data, rather than being limited to determining the target altitude based on two types of data.
[0101] In addition, in the embodiments of the present disclosure, the electronic device can also clean the data for the air pressure data and the positioning data in the preset time period. In some embodiments, the method further includes:
[0102] cleaning the positioning data and the air pressure data in the preset time period respectively to obtain cleaned positioning data and cleaned air pressure data;
[0103] The determining of the target altitude based on the initial altitude, the positioning data and / or the air pressure data in the preset time period includes:
[0104] The determining of the target altitude based on the initial altitude, the cleaned positioning data and / or the cleaned air pressure data in the preset time period; wherein the initial altitude is determined based on the cleaned positioning data at the initial time and the cleaned air pressure data at the initial time.
[0105] In the embodiments of the present disclosure, the data cleaning of the positioning data can be based on the strength of the signal when the positioning data is obtained. For example, the positioning data with a signal strength less than or equal to a preset strength threshold is removed, and the positioning data with a signal strength greater than the preset strength threshold, i.e., the positioning data with a high signal strength, is retained. In addition, in the embodiments of the present disclosure, the data cleaning of the positioning data and the air pressure data can also include filtering processing, such as mean filtering, smoothing filtering, etc., to remove noise data through filtering.
[0106] In the embodiments of the present disclosure, the electronic device can calculate a fused initial altitude based on the cleaned positioning data and / or the cleaned air pressure data, and determine the target altitude based on the initial altitude, the cleaned positioning data and the cleaned air pressure data in the preset time period. The way of determining the initial altitude based on the cleaned positioning data and the cleaned air pressure data, and the way of determining the target altitude based on the initial altitude, the cleaned positioning data and the cleaned air pressure data in the preset time period can be referred to the foregoing.
[0107] It can be understood that in the embodiments of the present disclosure, the target altitude is determined after the positioning data and the air pressure data in the preset time period are cleaned, which can reduce the influence of noise data and improve the accuracy of the determination of the target altitude.
[0108] In some embodiments, the starting of the blood oxygen monitoring function in response to the target altitude exceeding the preset altitude threshold includes:
[0109] In response to the motion application being started and the target altitude exceeding the preset altitude threshold, prompt information prompting to start the blood oxygen monitoring function is output in the motion application;
[0110] After receiving an instruction to start the blood oxygen monitoring function based on the prompt information, the blood oxygen monitoring function is started in the motion application.
[0111] In the embodiments of the present disclosure, the electronic device supports starting the blood oxygen monitoring function in the motion application, and the electronic device also outputs prompt information prompting to start the blood oxygen monitoring function after detecting that the target altitude exceeds the preset altitude threshold, so as to determine whether it is necessary to start the blood oxygen monitoring function for the user.
[0112] In some embodiments, the electronic device starts the blood oxygen monitoring function in the motion application after receiving a screen touch operation or a voice operation to start the blood oxygen monitoring function based on the prompt information; in other embodiments, if the electronic device does not detect a feedback instruction based on the prompt information within a preset time period, it means that the user does not object to starting the blood oxygen monitoring function, and at this time, the electronic device can also start the blood oxygen monitoring function in the motion application.
[0113] It can be understood that in the embodiments of the present disclosure, by integrating the blood oxygen monitoring function in the motion application, the user can instantly know the blood oxygen condition without having to exit the motion application and start the blood oxygen monitoring application again, which is more intelligent and convenient for the user.
[0114] Figure 2 is an example of an altitude determination method flowchart in the embodiments of the present disclosure, as shown in the figure, comprising the following steps: Figure 2
[0115] S201, the motion application is started.
[0116] In the embodiments of the present disclosure, the blood oxygen monitoring function is integrated in the motion application, and if the motion application is started, the altitude determination method of the present disclosure is executed to start the blood oxygen monitoring function when the altitude exceeds the preset altitude threshold.
[0117] S202, start and lose GPS? If yes, execute step S203; if no, execute step S207.
[0118] In the embodiments of the present disclosure, start and lose GPS means whether there is GPS positioning data, and on the basis of whether there is GPS positioning data, the electronic device further determines whether the barometer data is lost. The electronic device can be a smart watch, a bracelet, or other wearable devices.
[0119] S203, whether the barometer is lost? If yes, execute step S204; if no, execute step S205.
[0120] In the embodiment of the present disclosure, whether the barometer is lost, that is, whether the barometer data is acquired. If neither the GPS positioning data nor the barometer data is acquired, step S204 is executed; if the GPS positioning data is not acquired but the barometer data is acquired, step S205 is executed.
[0121] S204, output the altitude value at the last time.
[0122] S205, the barometer calculates the altitude.
[0123] In the embodiment of the present disclosure, the barometer calculating the altitude may, for example, be based on the corresponding relationship between the barometric data and the altitude value, and the corresponding altitude is searched.
[0124] S206, output the barometer altitude.
[0125] In the embodiment of the present disclosure, the barometer altitude is output, that is, the altitude is taken as the target altitude, so as to further determine whether to start the blood oxygen monitoring function.
[0126] S207, whether the barometer is lost? If yes, execute step S204; if no, execute step S208.
[0127] In the embodiment of the present disclosure, on the basis of not losing the GPS positioning data, the electronic device further determines whether the barometer data is acquired, so as to perform different processing. If only the GPS positioning data exists and the barometric data is lost, the electronic device can output the GPS altitude of the GPS positioning data, or can determine the altitude value at the last time as the current altitude value.
[0128] S208, the barometer altitude is fused with the GPS altitude to obtain the fused altitude.
[0129] In the embodiment of the present disclosure, if the GPS positioning data and the barometric data of the barometer are both acquired, the aforementioned method can be used to acquire the fused altitude, that is, the initial altitude after fusion in the embodiment of the present disclosure.
[0130] S209, whether the slope bottom is reached? If yes, execute step S210; if no, execute step S215.
[0131] In the embodiments of the present disclosure, whether reaching the slope bottom is applied in the skiing scene. Generally, skiing is sliding from high to low, and reaching the slope bottom also indicates that a large motion displacement has occurred. In the embodiments of the present disclosure, whether reaching the slope bottom can be determined based on the fused altitude, and in addition, whether reaching the slope bottom can also be determined based on the GPS positioning data. In the embodiments of the present disclosure, if reaching the slope bottom indicates that a large motion displacement has occurred, at this time, the target altitude needs to be determined based on the new GPS altitude and the barometer altitude; and if not reaching the slope bottom, the target altitude can be determined based on the fused altitude and the barometer altitude.
[0132] S210, acquiring a GPS altitude.
[0133] In the embodiments of the present disclosure, the GPS altitude can be acquired, for example, based on the correspondence between the positioning data and the altitude value to find the corresponding altitude.
[0134] S211, barometer calibration? If yes, step S212 is performed; if no, step S214 is performed.
[0135] In the embodiments of the present disclosure, the barometer calibration means that the barometer data has changed. If reaching the slope bottom and the barometer data has changed, step S212 is performed, otherwise, step S214 is performed.
[0136] S212, calculating the altitude by the standard barometer.
[0137] In the embodiments of the present disclosure, the altitude calculated by the standard barometer means determining the altitude corresponding to the barometer data.
[0138] S213, outputting the barometer altitude.
[0139] In the embodiments of the present disclosure, in the case of reaching the slope bottom and the barometer data changing, the barometer altitude is taken as the target altitude.
[0140] S214, outputting the GPS altitude.
[0141] In the embodiments of the present disclosure, in the case of reaching the slope bottom and the barometer data not changing, the GPS altitude corresponding to the GPS positioning data is taken as the target altitude.
[0142] S215, barometer calibration? If yes, step S212 is performed; if no, step S216 is performed.
[0143] In the embodiments of the present disclosure, in the case of not reaching the slope bottom, that is, in the case of small motion displacement, if the barometer data changes, the barometer altitude is taken as the target altitude; and if the barometer data does not change, step S216 is performed.
[0144] S216, outputting the fused altitude.
[0145] In the embodiments of the present disclosure, the fused altitude determined in step S208 is output as the target altitude.
[0146] In the embodiments of the present disclosure, the accurate altitude value is calculated after the motion application is started to start the blood oxygen monitoring, so that the starting of the blood oxygen monitoring function is more intelligent, and convenience is provided for the user.
[0147] Figure 3 is a control device diagram shown in an embodiment of the present disclosure, which comprises Figure 3 It can be seen that it comprises
[0148] The acquisition module 301 is configured to acquire positioning data and air pressure data.
[0149] The determination module 302 is configured to determine a target altitude based on the positioning data and / or the air pressure data.
[0150] The starting module 303 is configured to start a blood oxygen monitoring function in response to the target altitude exceeding a preset altitude threshold.
[0151] In some embodiments, the positioning data comprises positioning data within a preset time length, and the air pressure data within the preset time length; the determination module 302 is further configured to determine a first altitude based on positioning data at an initial time within the preset time length, determine a second altitude based on air pressure data at the initial time, perform fusion processing based on the first altitude and the second altitude to determine a fused initial altitude, and determine the target altitude based on the initial altitude, the positioning data and / or the air pressure data within the preset time length.
[0152] In some embodiments, the determination module 302 is further configured to determine the target altitude based on the positioning data and / or the air pressure data within the preset time length in response to determining that a motion displacement is greater than a preset displacement threshold based on the positioning data within the preset time length, and determine the target altitude based on the initial altitude and / or the air pressure data within the preset time length in response to the motion displacement being less than or equal to the preset displacement threshold.
[0153] In some embodiments, the determination module 302 is further configured to determine the target altitude based on the air pressure data within the preset time length in response to the air pressure data within the preset time length changing, and determine the target altitude based on the positioning data within the preset time length in response to the air pressure data within the preset time length not changing.
[0154] In some embodiments, the determining module 302 is further configured to, in response to a change in the air pressure data within the preset time period, determine the target altitude based on the air pressure data within the preset time period; and in response to no change in the air pressure data within the preset time period, determine the initial altitude as the target altitude.
[0155] In some embodiments, the apparatus further comprises:
[0156] a data cleaning module configured to clean the positioning data and the air pressure data within the preset time period respectively to obtain cleaned positioning data and cleaned air pressure data;
[0157] The determining module 302 is further configured to determine the target altitude based on the initial altitude and the cleaned positioning data and / or the cleaned air pressure data within the preset time period; wherein the initial altitude is determined based on the cleaned positioning data at the initial time and the cleaned air pressure data at the initial time.
[0158] In some embodiments, the starting module 303 is further configured to, in response to the motion application being started and the target altitude exceeding the preset altitude threshold, output, in the motion application, prompt information prompting to start the blood oxygen monitoring function; and start the blood oxygen monitoring function in the motion application based on receiving an instruction to start the blood oxygen monitoring function according to the prompt information.
[0159] As to the apparatus in the above embodiments, the specific manners in which various modules perform operations have been described in detail in the embodiments of the method, and thus will not be described in detail here.
[0160] Figure 4 is a structural block diagram of an electronic device according to an exemplary embodiment. For example, the electronic device 400 can be a mobile phone, a tablet computer, a wearable device, etc.
[0161] Referring to Figure 4 , the apparatus 400 can include one or more of the following components: a processing component 402, a memory 404, a power supply component 406, a multimedia component 408, an audio component 410, an input / output (I / O) interface 412, a sensor component 414, and a communication component 416.
[0162] The processing component 402 generally controls the overall operations of the device 400, such as operations associated with display, telephony calls, data communication, camera operations, and recording operations. The processing component 402 can include one or more processors 420 to execute instructions to complete all or part of steps of the above methods. In addition, the processing component 402 can include one or more modules to facilitate the interaction between the processing component 402 and other components. For example, the processing component 402 can include a multimedia module to facilitate the interaction between the multimedia component 408 and the processing component 402.
[0163] The memory 404 is configured to store various types of data to support operations on the device 400. Examples of these data include at least one of the following: instructions for any application or methods operating on the device 400, contact data, phonebook data, messages, pictures, and videos. The memory 404 can be implemented by any type of volatile or nonvolatile storage devices or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read only memory (EEPROM), erasable programmable read only memory (EPROM), programmable read only memory (PROM), read only memory (ROM), magnetic storage, flash memory, magnetic disk, or optical disk.
[0164] The power component 406 provides power to the various components of the device 400. The power component 406 can include at least one of the following: a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the device 400.
[0165] The multimedia component 408 includes a screen providing an output interface between the device 400 and a user. In some embodiments, the screen includes a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen can be implemented as a touch screen to receive input signals from a user. The touch panel includes one or more touch sensors to sense touch, swiping, and gestures on the touch panel. The touch sensor can not only sense a boundary of a touching or swiping action, but also detect duration and pressure related to the touching or swiping action. In some embodiments, the multimedia component 408 includes a front camera and / or a rear camera. When the device 400 is in an operation mode, such as a shooting mode or a video mode, the front camera and / or the rear camera can receive external multimedia data. Each of the front and rear cameras can be a fixed optical lens system or have a focal length and optical zoom capability.
[0166] The audio component 410 is configured to output and / or input audio signals. For example, the audio component 410 includes a microphone (MIC) that is configured to receive external audio signals when the device 400 is in an operation mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals can be further stored in the memory 404 or transmitted via the communication component 416. In some embodiments, the audio component 410 also includes a speaker for outputting audio signals.
[0167] The I / O interface 412 provides an interface between the processing component 402 and peripheral interface modules, which can be a keypad, a click wheel, and buttons, etc. The buttons can include, but are not limited to, a home button, a volume button, a start button, and a lock button.
[0168] The sensor component 414 includes one or more sensors for providing status assessments for various aspects of the device 400. For example, the sensor component 414 can detect an open / closed position of the device 400, relative positioning of components, such as a display and keypad of the device 400, a change in position of the device 400 or a component of the device 400, the presence or absence of user contact with the device 400, the orientation or acceleration / deceleration of the device 400, and a temperature change of the device 400. The sensor component 414 can include proximity sensor(s) configured to detect presence of a nearby object without any physical contact. The sensor component 414 can also include an optical sensor, such as a complementary metal-oxide semiconductor (CMOS) or charge coupled device (CCD) image sensor, utilized in imaging applications. In some embodiments, the sensor component 414 can further include at least one of an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, and a temperature sensor, among others.
[0169] The communication component 416 is configured to facilitate wired or wireless communication between the device 400 and another device. The device 400 can access a wireless network based on a communication standard, such as Wi-Fi, 4G, 5G, or a combination thereof. In an example embodiment, the communication component 416 receives broadcast signals or broadcast-related information from an external broadcast management system via a broadcast channel. In an example embodiment, the communication component 416 can further include a Near Field Communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on Radio Frequency Identification (RFID) techniques, Infrared Data Association (IrDA) techniques, Ultra-WideBand (UWB) techniques, Bluetooth (BT) techniques, and other techniques.
[0170] In exemplary embodiments, the apparatus 400 can be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic devices.
[0171] In exemplary embodiments, a non-transitory computer readable storage medium including instructions, such as the memory 404 including executable instructions or a computer program, is also provided, which can be executed by the processor 420 of the apparatus 400 to complete the above method. For example, the non-transitory computer readable storage medium can be a ROM, a Random Access Memory (RAM), a Compact Disc Read-Only Memory (CD-ROM), a magnetic tape, a floppy disk and an optical data storage device, etc.
[0172] A non-transitory computer readable storage medium, when instructions in the storage medium are executed by a processor of an electronic device, enables the electronic device to perform any of the control methods according to the embodiments of the present disclosure.
[0173] The embodiments of the present disclosure provide a computer program product, which includes a computer program or executable instructions stored in a computer readable storage medium. A processor of a computer device reads the computer program or executable instructions from the computer readable storage medium, and the processor executes the computer program or executable instructions, so that the computer device performs any of the control methods according to the embodiments of the present disclosure.
[0174] Other embodiments of the present disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the application disclosed herein. The present disclosure is intended to cover any variations, uses or adaptations of the present disclosure following, in general, the principles of the present disclosure and including such
[0175] It should be understood that the present disclosure is not limited to the precise construction that has been described above and shown in the accompanying drawings, and that various modifications and changes can be made by those skilled in the art without departing from the scope of the present disclosure. The scope of the present disclosure is limited only by the appended claims.
Claims
1. A control method characterized by, The method comprises: obtaining positioning data and air pressure data; determining a target altitude based on the positioning data and / or the air pressure data; in response to the target altitude exceeding a preset altitude threshold, starting a blood oxygen monitoring function.
2. The method of claim 1, wherein, The positioning data comprises positioning data within a preset time period, and the air pressure data within the preset time period; determining a target altitude based on the positioning data and / or the air pressure data within the preset time period, comprising: determining a first altitude based on the positioning data at an initial time within the preset time period; determining a second altitude based on the air pressure data at the initial time; performing fusion processing based on the first altitude and the second altitude to determine a fused initial altitude; determining the target altitude based on the initial altitude, the positioning data and / or the air pressure data within the preset time period.
3. The method of claim 2, wherein, determining the target altitude based on the initial altitude, the positioning data and / or the air pressure data within the preset time period, comprising: in response to determining that a motion displacement is greater than a preset displacement threshold based on the positioning data within the preset time period, determining the target altitude based on the positioning data and / or the air pressure data within the preset time period; in response to the motion displacement being less than or equal to the preset displacement threshold, determining the target altitude based on the initial altitude and / or the air pressure data within the preset time period.
4. The method of claim 3, wherein, determining the target altitude based on the positioning data and / or the air pressure data within the preset time period, comprising: in response to the air pressure data within the preset time period changing, determining the target altitude based on the air pressure data within the preset time period; in response to the air pressure data within the preset time period not changing, determining the target altitude based on the positioning data within the preset time period.
5. The method of claim 3, wherein, determining the target altitude based on the initial altitude and / or the air pressure data within the preset time period, comprising: in response to the air pressure data within the preset time period changing, determining the target altitude based on the air pressure data within the preset time period; in response to the air pressure data within the preset time period not changing, determining the initial altitude as the target altitude.
6. The method of claim 2, wherein, The method further comprises: respectively performing data cleaning on the positioning data and the air pressure data within the preset time period to obtain cleaned positioning data and air pressure data; determining the target altitude based on the initial altitude, the cleaned positioning data and / or the air pressure data within the preset time period, comprising: determining the target altitude based on the initial altitude, the cleaned positioning data and / or the air pressure data within the preset time period; wherein the initial altitude is determined based on the cleaned positioning data at the initial time and the cleaned air pressure data at the initial time.
7. The method of claim 1, wherein, in response to the target altitude exceeding the preset altitude threshold, starting a blood oxygen monitoring function, comprising: in response to a motion application being started and the target altitude exceeding the preset altitude threshold, outputting prompt information in the motion application to prompt starting of the blood oxygen monitoring function; starting the blood oxygen monitoring function in the motion application based on receiving an instruction to start the blood oxygen monitoring function based on the prompt information.
8. A control device characterized by comprising: The device comprises: an acquisition module configured to obtain positioning data and air pressure data; determining a target altitude based on the positioning data and / or the air pressure data; starting a blood oxygen monitoring function in response to the target altitude exceeding a preset altitude threshold.
9. An electronic device, comprising: comprise: a processor; a memory for storing computer programs or instructions; wherein the processor executes the computer programs or instructions to implement the steps of the method of any one of claims 1 to 7.
10. A non-transitory computer-readable storage medium storing a computer program or instructions, the computer program or instructions comprising the steps of: when the computer programs or instructions in the storage medium are executed by the processor, the steps of the method of any one of claims 1 to 7 are implemented.
11. A computer program product comprising computer programs or instructions, characterized in that, the computer programs or instructions are executed by the processor, the steps of the method of any one of claims 1 to 7 are implemented.