WO2024001615A1 - Climbing state identification method and apparatus - Google Patents

Climbing state identification method and apparatus Download PDF

Info

Publication number
WO2024001615A1
WO2024001615A1 PCT/CN2023/095751 CN2023095751W WO2024001615A1 WO 2024001615 A1 WO2024001615 A1 WO 2024001615A1 CN 2023095751 W CN2023095751 W CN 2023095751W WO 2024001615 A1 WO2024001615 A1 WO 2024001615A1
Authority
WO
WIPO (PCT)
Prior art keywords
terminal device
climbing
air pressure
state
pressure data
Prior art date
Application number
PCT/CN2023/095751
Other languages
French (fr)
Chinese (zh)
Other versions
WO2024001615A9 (en
Inventor
邸皓轩
李丹洪
张晓武
Original Assignee
荣耀终端有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 荣耀终端有限公司 filed Critical 荣耀终端有限公司
Publication of WO2024001615A1 publication Critical patent/WO2024001615A1/en
Publication of WO2024001615A9 publication Critical patent/WO2024001615A9/en

Links

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01DMEASURING NOT SPECIALLY ADAPTED FOR A SPECIFIC VARIABLE; ARRANGEMENTS FOR MEASURING TWO OR MORE VARIABLES NOT COVERED IN A SINGLE OTHER SUBCLASS; TARIFF METERING APPARATUS; MEASURING OR TESTING NOT OTHERWISE PROVIDED FOR
    • G01D21/00Measuring or testing not otherwise provided for
    • G01D21/02Measuring two or more variables by means not covered by a single other subclass

Definitions

  • the present application relates to the field of terminal technology, and in particular to a method and device for identifying a climbing state.
  • the terminal device can usually detect the user's exercise time, exercise calories burned, average exercise pace, average exercise speed, exercise cadence, average exercise stride, And basic motion data such as the number of motion steps are detected and displayed in the interface of the terminal device, so that users can observe a variety of data throughout the motion process.
  • the terminal device can also identify the climbing status. For example, the terminal device can identify whether the terminal device is in a climbing state based on a pre-built model.
  • Embodiments of the present application provide a method and device for identifying a climbing state, so that the terminal device can detect the first state, avoid the first state from affecting the identification of the walking and climbing state, and thereby improve the accuracy of the method for identifying the climbing state. .
  • embodiments of the present application provide a method for identifying a climbing state.
  • the method includes: obtaining acceleration data; the acceleration data is data obtained within a preset time period; the preset time period includes the first moment and the second moment; based on the acceleration Data to determine whether the first terminal device is in the first state.
  • the first state is used to indicate that when the first terminal device is in the first state, the first terminal device is located at different altitudes at at least two moments; when the first terminal device is not in the first state, A state, based on the first air pressure data obtained at the first time and the second air pressure data obtained at the second time, it is determined that the first terminal device is in the walking and climbing state; wherein, the first terminal device in the walking and climbing state is in the walking and climbing state at the first time and the second moment are located at different altitudes.
  • the first terminal device can detect the first state, avoid the first state from affecting the identification of the walking and climbing state, and thereby improve the accuracy of the method for identifying the climbing state.
  • determining that the first terminal device is in a walking climbing state based on the first air pressure data obtained at the first moment and the second air pressure data obtained at the second moment includes: determining the altitude corresponding to the first air pressure data.
  • the difference between the altitudes corresponding to the second air pressure data is an altitude difference; when the altitude difference is greater than the first threshold, it is determined that the first terminal device is in a walking climbing state. In this way, the first terminal device can determine whether the altitude has increased based on the altitude difference between the first air pressure data and the second air pressure data.
  • the first state includes one or more of the following: flight climbing state, elevator climbing state, riding car climbing state, riding climbing state, scooter climbing state, or Balance car climbing state.
  • the first air pressure data is changed data collected by the second terminal device after detecting a change in air pressure.
  • the climbing state can be identified based on the air pressure data collected by the second terminal device, so that the climbing state identification method provided by the embodiment of the present application can be applied to more types of first terminal equipment.
  • Terminal Equipment The second terminal device may be the wearable device described in the embodiments of this application.
  • the method further includes: obtaining the pedometer data corresponding to the third moment; the pedometer data corresponding to the third moment is the data corresponding to the first change in the number of steps after the first moment; Determine the difference between the first moment and the third moment to obtain the time difference; when the altitude difference is greater than the first threshold, determining that the first terminal device is in a walking climbing state includes: when the altitude difference is greater than the first threshold, and When the time difference is less than the second threshold, it is determined that the first terminal device is in a walking and climbing state. It can be understood that since during walking and climbing, changes in air pressure data will be accompanied by changes in the number of steps, so the difference between the first moment and the third moment must be less than the time threshold.
  • the terminal device can determine the difference between the first moment and the third moment and the relationship between the time thresholds to eliminate the situation where the change time of the air pressure data in the non-climbing state is significantly different from the change time of the number of steps. situation, thereby improving the accuracy of walking and climbing status recognition.
  • the method further includes: obtaining multiple base station number information between the first moment and the second moment; when the number of changes in the multiple base station number information exceeds a third threshold, the altitude difference is less than or equal to
  • the first threshold and/or the time difference is greater than or equal to the second threshold, it is determined that the first terminal device is not in a walking and climbing state. It is understandable that when the user climbs on foot, the climbing height increases slowly, and it is difficult for the base station to switch multiple times in a short period of time. Therefore, the number of base station switching times within a threshold period can be determined to eliminate the cases that are not climbing. High state scenes, thereby improving the accuracy of climbing state recognition.
  • the method further includes: when it is determined that the first terminal device is in a walking and climbing state, determining the sum of the first pedometer data and the second pedometer data to obtain an accumulated step count value. ;
  • the first pedometer data is the pedometer data obtained at the first moment
  • the second pedometer data is the pedometer data obtained at the second moment
  • the altitude difference is determined to be the climbing height in the walking climbing state. It can be understood that during walking, there is a certain correspondence between the number of climbing steps and the climbing height. For example, the higher the climbing height, the more climbing steps.
  • the terminal device can use the relationship between the cumulative value of steps and the altitude difference to filter out a climbing height that is more consistent with the actual scenario.
  • the method further includes: displaying a first interface; the first interface includes a first control for instructing to start motion recording; when receiving an operation for the first control, displaying a second interface; The second interface includes the climbing height.
  • the first terminal device can realize real-time display of the climbing height, thereby improving the user's experience of using the motion recording function.
  • the method further includes: when the first terminal device receives an operation to end the exercise recording, displaying a third interface; wherein the third interface includes information indicating the maximum climbing altitude, and a user interface.
  • a second control for viewing the motion chart when the first terminal device receives an operation for the second control, a fourth interface is displayed; the fourth interface includes: a chart for indicating changes in climbing altitude.
  • the first terminal device can display the highest climbing height and changes in the climbing height during the walking and climbing process after ending the motion recording. This makes it easier for users to grasp the overall situation of the exercise process, thereby improving the user’s experience of using the exercise recording function.
  • the method further includes: when the first terminal device is in the first state, determining that the first terminal device is not in a walking and climbing state. In this way, the first terminal device can eliminate interference in the first state.
  • the first terminal device includes: Bluetooth hardware abstraction layer BT HAL, connection service module and default HAL, BT HAL and the default HAL are located in the HAL, and the connection service module is located in the application framework layer
  • the method also includes: BT HAL obtains the first air pressure data and the second air pressure data; the first air pressure data and the second air pressure data are both sent by the second terminal device based on Bluetooth; BT HAL obtains the first air pressure data and the second air pressure data Send to the connection service module; the connection service module sends the first air pressure data and the second air pressure data to the preset HAL; determine the first terminal device based on the first air pressure data obtained at the first time and the second air pressure data obtained at the second time Being in a walking and climbing state includes: the preset HAL determines that the first terminal device is in a walking and climbing state based on the first air pressure data and the second air pressure data.
  • the first terminal device can obtain the air pressure data from the second device, and transmit the air pressure data based on multiple modules in the first terminal device to a device that can walk
  • the preset HAL for climbing state identification makes the climbing state identification method provided by the embodiment of the present application applicable to more types of first terminal devices.
  • the first terminal device also includes: a preset sensor control center sensor hub, which determines whether the first terminal device is in the first state based on the acceleration data, including: the preset sensor hub based on the acceleration data, Determine whether the first terminal device is in the first state.
  • the sensor hub can realize the acquisition and processing of sensor data in low-power consumption scenarios, so that the climbing state identification method provided by the embodiment of the present application can be applied to the first terminal device in more scenarios.
  • the HAL also includes: a modem HAL, and the method also includes: the modem HAL obtains multiple base station number information between the first moment and the second moment; the modem HAL sends the multiple base station number information Preset HAL; when the number of changes in multiple base station number information exceeds the third threshold, the altitude difference is less than or equal to the first threshold, and/or when the time difference is greater than or equal to the second threshold, the preset HAL determines the first terminal device Not in a walking climbing condition. Therefore, by determining the number of base station switching times within a threshold period, scenarios that do not belong to the climbing state can be eliminated, thereby improving the accuracy of the climbing state identification.
  • embodiments of the present application provide a method for identifying a climbing state.
  • the method includes: establishing a communication connection with a second terminal device; sending a first instruction to the second terminal device; and the first instruction is used to instruct the second terminal device to obtain The first air pressure data and the second air pressure data collected after the air pressure changes; receiving the first air pressure data and the second air pressure data from the second terminal device; obtaining acceleration data; the acceleration data is data obtained within a preset time period; preset The duration includes the first moment and the second moment; based on the acceleration data, it is determined whether the first terminal device is in the first state; the first state is used to indicate that the first terminal device is in at least two moments when the first terminal device is in the first state.
  • the first terminal device Located at different altitudes; when the first terminal device is not in the first state, it is determined based on the first air pressure data obtained at the first moment and the second air pressure data obtained at the second moment that the first terminal device is in a walking and climbing state; wherein, in The first terminal device in the walking climbing state is located at different altitudes at the first moment and the second moment.
  • the first terminal device obtains the air pressure data from the second device based on the instruction message, so that the climbing state identification method provided by the embodiment of the present application can be applied to more types of first terminal devices.
  • Terminal Equipment Terminal Equipment.
  • embodiments of the present application provide a climbing state recognition device and an acquisition unit for acquiring acceleration degree data; the acceleration data is data obtained within a preset time period; the preset time period includes the first moment and the second moment; the processing unit is configured to determine whether the first terminal device is in the first state based on the acceleration data, and the first state It is used to indicate that when the first terminal device is in the first state, the first terminal device is located at different altitudes at at least two moments; when the first terminal device is not in the first state, the processing unit is also used to obtain the first terminal device based on the first moment.
  • the first air pressure data and the second air pressure data obtained at the second moment determine that the first terminal device is in the walking and climbing state; wherein, the first terminal device in the walking and climbing state is located at different altitudes at the first moment and the second moment.
  • the processing unit is specifically configured to determine the difference between the altitude corresponding to the first air pressure data and the altitude corresponding to the second air pressure data, and obtain the altitude difference; when the altitude difference is greater than the first threshold At this time, the processing unit is also specifically configured to determine that the first terminal device is in a walking and climbing state.
  • the first state includes one or more of the following: flight climbing state, elevator climbing state, riding car climbing state, riding climbing state, scooter climbing state, or Balance car climbing state.
  • the first air pressure data is changed data collected by the second terminal device after detecting a change in air pressure.
  • the acquisition unit is also used to acquire the pedometer data corresponding to the third moment; the pedometer data corresponding to the third moment is the pedometer data corresponding to the first change in the number of steps after the first moment. data; the processing unit is also used to determine the difference between the first moment and the third moment to obtain the time difference; when the altitude difference is greater than the first threshold, when the altitude difference is greater than the first threshold and the time difference is less than the When the second threshold is reached, the processing unit is also used to determine that the first terminal device is in a walking and climbing state.
  • the acquisition unit is also used to acquire multiple base station number information between the first moment and the second moment; when the number of changes in the multiple base station number information exceeds the third threshold, the altitude difference is less than or equal to the first threshold, and/or, when the time difference is greater than or equal to the second threshold, the processing unit is also configured to determine that the first terminal device is not in a walking and climbing state.
  • the processing unit when it is determined that the first terminal device is in a walking and climbing state, the processing unit is also configured to determine the sum of the first pedometer data and the second pedometer data to obtain the number of steps. Accumulated value; wherein, the first pedometer data is the pedometer data obtained at the first moment, and the second pedometer data is the pedometer data obtained at the second moment; when the accumulated value of steps is greater than the altitude difference and the When the product of four thresholds is used, the processing unit is also used to determine the altitude difference as the climbing height in the walking climbing state.
  • the display unit is also used to display a first interface; the first interface includes a first control for instructing to start motion recording; when receiving an operation for the first control, the display unit, It is also used to display the second interface; wherein the second interface includes the climbing height.
  • the display unit when the first terminal device receives an operation to end the motion recording, the display unit is also used to display a third interface; wherein the third interface includes information indicating the maximum climbing altitude, And a second control for viewing the motion chart; when the first terminal device receives an operation for the second control, the display unit is also used to display a fourth interface; the fourth interface includes: used to indicate changes in climbing altitude chart.
  • the method further includes: when the first terminal device is in the first state, the processing unit is also configured to determine that the first terminal device is not in a walking and climbing state.
  • the first terminal device includes: Bluetooth hardware abstraction layer BT HAL, a connection service module and a default HAL.
  • the BT HAL and the default HAL are located in the HAL
  • the connection service module is located in the application program.
  • the processing unit is also used to: obtain the first air pressure data and the second air pressure data; the first air pressure data and the second air pressure data are both sent by the second terminal device based on Bluetooth; convert the first air pressure data and the second air pressure data
  • the second air pressure data is sent to the connection service module; the first air pressure data and the second air pressure data are sent to the preset HAL; and it is determined based on the first air pressure data and the second air pressure data that the first terminal device is in a walking and climbing state.
  • the first terminal device further includes: a preset sensor control center sensor hub and a processing module, specifically configured to determine whether the first terminal device is in the first state based on acceleration data.
  • the HAL also includes: a modem HAL, an acquisition module, which is also used to acquire multiple base station number information between the first moment and the second moment; and a processing module, which is also used to:
  • the preset HAL is sent to each base station number information; when the number of changes of multiple base station number information exceeds the third threshold, the altitude difference is less than or equal to the first threshold, and/or the time difference is greater than or the second threshold, the first The terminal device is not in the walking climbing state.
  • embodiments of the present application provide a method for identifying a climbing state.
  • the method includes: a communication unit configured to establish a communication connection with a second terminal device; the communication unit further configured to send a first instruction to the second terminal device; The first instruction is used to instruct the second terminal device to obtain the first air pressure data and the second air pressure data collected after the air pressure changes; the communication unit is used to receive the first air pressure data and the second air pressure data from the second terminal device; obtain The unit is used to obtain acceleration data; the acceleration data is data obtained within a preset time period; the preset time period includes the first moment and the second moment; the processing unit is used to determine whether the first terminal device is in the first state based on the acceleration data.
  • the first state is used to indicate that when the first terminal device is in the first state, the first terminal device is located at different altitudes at at least two moments; when the first terminal device is not in the first state, the processing unit is also used to indicate based on the first terminal device
  • the first air pressure data obtained at one moment and the second air pressure data obtained at the second moment determine that the first terminal device is in the walking and climbing state; wherein, the first terminal device in the walking and climbing state is located at the first moment and the second moment. Different altitudes.
  • embodiments of the present application provide a terminal device, including a processor and a memory.
  • the memory is used to store code instructions; the processor is used to run the code instructions, so that the terminal device can execute the first aspect or any one of the first aspects.
  • the method described in the first implementation manner enables the terminal device to perform the method described in the second aspect or any implementation manner of the second aspect.
  • embodiments of the present application provide a computer-readable storage medium.
  • the computer-readable storage medium stores instructions. When the instructions are executed, the computer executes as in the first aspect or any implementation of the first aspect.
  • the described method enables the terminal device to perform the method described in the second aspect or any implementation of the second aspect.
  • a seventh aspect a computer program product, including a computer program, when the computer program is run, causes the computer to execute the method described in the first aspect or any implementation of the first aspect, causing the terminal device to execute the method as described in the first aspect.
  • Figure 1 is a schematic diagram of a scenario provided by an embodiment of the present application.
  • Figure 2 is a schematic diagram of the hardware structure of a terminal device provided by an embodiment of the present application.
  • Figure 3 is a schematic diagram of the software structure of a terminal device provided by an embodiment of the present application.
  • Figure 4 is a schematic flowchart of a climbing state identification method provided by an embodiment of the present application.
  • Figure 5 is a schematic diagram of an interface for starting motion provided by an embodiment of the present application.
  • Figure 6 is a schematic diagram of an interface for real-time display of climbing height provided by an embodiment of the present application.
  • Figure 7 is a schematic diagram of an interface for prompting the user to enter a preset function provided by an embodiment of the present application
  • Figure 8 is a schematic structural diagram of a climbing state identification device provided by an embodiment of the present application.
  • Figure 9 is a schematic diagram of the hardware structure of another terminal device provided by an embodiment of the present application.
  • words such as “first” and “second” are used to distinguish the same or similar items with basically the same functions and effects.
  • the first value and the second value are only used to distinguish different values, and their order is not limited.
  • words such as “first” and “second” do not limit the number and execution order, and words such as “first” and “second” do not limit the number and execution order.
  • At least one refers to one or more, and “plurality” refers to two or more.
  • “And/or” describes the association of associated objects, indicating that there can be three relationships, for example, A and/or B, which can mean: A exists alone, A and B exist simultaneously, and B exists alone, where A, B can be singular or plural.
  • the character “/” generally indicates that the related objects are in an “or” relationship.
  • “At least one of the following” or similar expressions thereof refers to any combination of these items, including any combination of a single item (items) or a plurality of items (items).
  • At least one of a, b, or c can represent: a, b, c, a and b, a and c, b and c, or a, b and c, where a, b, c can be single or multiple.
  • the climbing state recognition can be used to identify the user's motion state in climbing scenes such as mountain climbing or stair climbing.
  • the climbing state recognition method described in the embodiment of this application can be used to realize walking and climbing. Status identification.
  • the walking-climbing state can be understood as the increase in altitude at the location of the terminal device caused by changes in the number of steps when the user carrying the terminal device is walking or running, or it can be understood as the increase in altitude at the location of the terminal device. The elevation of increases as the user steps.
  • some terminal devices with air pressure sensors can recognize the climbing state based on a model used to identify the climbing state.
  • the terminal device cannot solve the impact of the interference scene on the climbing state, and the terminal device may misjudge the interference scene as the climbing state, making the climbing state recognition less accurate.
  • the interference scenario may also be called the first state, and the first state is used to indicate that when the terminal device is in the first state, the terminal device is located at different altitudes at at least two moments. It can be understood that when the altitude of the terminal device changes and it is determined based on the acceleration data that the terminal device belongs to any of the following states: flying, riding, riding, elevator, scooter, or balancing car, it can be determined that the terminal The device satisfies the first state.
  • the first state may include one or more of the following: an airplane scene (also known as a flight climbing state), a car riding scene (also called a car climbing state), a riding scene (also called a riding scene) climbing state), elevator scene (also known as Elevator climbing state), scooter scene (also known as scooter climbing state), or balancing car scene (or balancing car climbing state), etc.
  • the interference scenario may include other contents according to the actual situation, which is not limited in the embodiments of this application.
  • the flight climbing state can be understood as the increase in altitude of the position of the terminal equipment caused by the upward movement of the aircraft (or aircraft, etc.) when the terminal device is in the process of ascending by car; climbing by car
  • the high state can be understood as the increase in altitude at the location of the terminal device caused by the movement of the vehicle when the terminal device is in the process of riding uphill; the high riding state can be understood as the user carrying the terminal device while riding uphill.
  • the terminal equipment is in the process of rising, the elevation of the terminal equipment is increased due to the movement of the bicycle;
  • the elevator climbing state can be understood as the terminal equipment is in the process of the elevator rising, and the elevation of the terminal equipment is increased due to the upward movement of the elevator.
  • the climbing state of the scooter can be understood as the increase in altitude at the location of the terminal device due to the sliding motion when the user carries the terminal device and uses the scooter to glide to a high place;
  • the climbing state of the balance car can be understood as the user During the process of carrying the terminal device and driving the balance car uphill, the altitude of the location of the terminal device increases due to the movement of the balance car.
  • inventions of the present application provide a method for identifying a climbing state.
  • the first terminal device obtains acceleration data; the acceleration data is data obtained within a preset time period, and the preset time period includes the first moment and the second moment; based on Acceleration data determines whether the first terminal device is in the first state.
  • the first state is used to indicate that when the first terminal device is in the first state, the first terminal device is located at different altitudes at at least two moments; when the first terminal device is not in In the first state, it is determined based on the first air pressure data obtained at the first moment and the second air pressure data obtained at the second moment that the first terminal device is in the walking and climbing state; wherein, the first terminal device in the walking and climbing state is in the first state.
  • the first terminal device can avoid mistaking the first state for the climbing state by identifying the first state that affects the recognition of the climbing state, and improve the accuracy of the recognition of the climbing state.
  • the first terminal device may be the terminal device described in the embodiments of this application.
  • inventions of the present application provide another method for identifying the climbing state.
  • the first terminal device establishes a communication connection with the second terminal device; the first terminal device sends a first instruction to the second terminal device; the first instruction is used to Instruct the second terminal device to obtain the air pressure data collected after the air pressure changes; the first terminal device receives the air pressure data from the second terminal device; the first terminal device obtains the acceleration data; the first terminal device determines the first terminal device based on the acceleration data Whether it is in the first state; the first state is used to indicate that when the first terminal device is in the first state, the first terminal device is located at different altitudes at at least two moments; furthermore, the first terminal device can be based on the first air pressure data and the second air pressure The data identifies whether the first terminal device is in a climbing state.
  • the first terminal device can avoid mistaking the first state for the climbing state by identifying the first state that affects the recognition of the climbing state; and then the second terminal device can obtain the air pressure data and send the air pressure data to the third terminal device.
  • a terminal device enables the first terminal device to improve the accuracy of climbing status identification based on the identification of air pressure data and interference scenes.
  • the second terminal device may be the wearable device described in the embodiments of this application.
  • a terminal device that does not have an air pressure sensor, it can obtain air pressure data through a wearable device connected to the terminal device, and then identify the climbing status based on the air pressure data.
  • FIG. 1 is a schematic diagram of a scenario provided by an embodiment of the present application.
  • the terminal device is a mobile phone as an example for illustration. This example does not constitute a limitation of the embodiments of the present application. limited.
  • the terminal device can detect the user's running status and display the detected exercise data on the terminal device.
  • the terminal device can detect the movement data of the user running 38'46".
  • the terminal device can display an interface as shown in a in Figure 1.
  • the interface can include: text information indicating that the GPS is searching, Controls for turning on music, controls for taking photos, maps, information indicating running length, information indicating running time, information indicating running calories burned, information indicating running pace, Information used to indicate running pace, information used to indicate running heart rate changes, controls for locking the screen, controls for setting the volume, and controls for pausing recording, etc.
  • text information indicating that the GPS is searching Controls for turning on music
  • controls for taking photos maps
  • information indicating running length information indicating running time
  • information indicating running calories burned information indicating running pace
  • Information used to indicate running pace information used to indicate running heart rate changes, controls for locking the screen, controls for setting the volume, and controls for pausing recording, etc.
  • the terminal device can display all the exercise data of the entire exercise process. For example, when the terminal device receives the user's operation to view running details, the terminal device can display as shown in b in Figure 1 interface. As shown in b in Figure 1, the interface can include: controls for viewing running tracks, controls for viewing pace, controls for viewing charts, and controls for viewing running details, etc. The control for viewing run details is selected.
  • the interface shown in b in Figure 1 also includes: controls for sharing running data, information for indicating running length, information for indicating exercise time, information for indicating exercise calories consumed, information for indicating exercise Basic motion data such as average pace information, information used to indicate the average speed of exercise, information used to indicate the stride frequency of exercise, information used to indicate the average stride length of exercise, and information used to indicate the number of steps of exercise.
  • terminal equipment can also be called a terminal (terminal), user equipment (user equipment, UE), mobile station (mobile station, MS), mobile terminal (mobile terminal, MT), etc.
  • the terminal device can be a mobile phone (mobile phone), smart TV, wearable device, tablet computer (Pad), computer with wireless transceiver function, virtual reality (VR) terminal device, augmented reality (AR) terminal Equipment, wireless terminals in industrial control, wireless terminals in self-driving, wireless terminals in remote medical surgery, wireless terminals in smart grid, transportation Wireless terminals in transportation safety, wireless terminals in smart city, wireless terminals in smart home, etc.
  • the above-mentioned wearable devices may be: smart watches, smart bracelets, smart gloves, etc.
  • the embodiments of this application do not limit the specific technology and specific device form used by the wearable devices.
  • FIG. 2 is a schematic structural diagram of a terminal device provided by an embodiment of the present application.
  • the terminal device may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, an antenna 1, an antenna 2, and a mobile communication module.
  • a processor 110 an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, an antenna 1, an antenna 2, and a mobile communication module.
  • Wireless communication module 160 audio module 170, speaker 170A, receiver 170B, microphone 170C, headphone interface 170D, sensor module 180, button 190, indicator 192, camera 193, and display screen 194, etc.
  • the sensor module 180 may include: an acceleration sensor 180E, a touch sensor 180K, and a pedometer 180N.
  • the sensor module 180 may also include: a pressure sensor, a gyroscope sensor, a magnetic sensor, a distance sensor, a proximity light sensor, a fingerprint sensor, a temperature sensor, an ambient light sensor, and a bone sensor. sensor, etc. (not shown in Figure 2).
  • the sensor module 180 may include an air pressure sensor 180C.
  • the sensor module 180 may not include the air pressure sensor 180C. It is understood that the terminal device may use air pressure sensors in other devices (such as wearable devices) at this time. , assisting the terminal device to complete the process of identifying the climbing status.
  • the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the terminal device.
  • the terminal device may include more or less components than shown in the figures, or some components may be combined, or some components may be separated, or may be arranged differently.
  • the components illustrated may be implemented in hardware, software, or a combination of software and hardware.
  • Processor 110 may include one or more processing units. Among them, different processing units can be independent devices or integrated in one or more processors.
  • the processor 110 may also be provided with a memory for storing instructions and data.
  • the USB interface 130 is an interface that complies with the USB standard specification, and may be a Mini USB interface, a Micro USB interface, a USB Type C interface, etc.
  • the USB interface 130 can be used to connect a charger to charge the terminal device, and can also be used to transmit data between the terminal device and peripheral devices. It can also be used to connect headphones to play audio through them. This interface can also be used to connect other electronic devices, such as AR devices, etc.
  • the charging management module 140 is used to receive charging input from the charger.
  • the charger can be a wireless charger or a wired charger.
  • the power management module 141 is used to connect the charging management module 140 and the processor 110 .
  • the wireless communication function of the terminal device can be implemented through antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, modem processor and baseband processor, etc.
  • Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals.
  • Antennas in end devices can be used to cover single or multiple communication bands. Different antennas can also be reused to improve antenna utilization.
  • the mobile communication module 150 can provide wireless communication solutions including 2G/3G/4G/5G applied to terminal devices.
  • the mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (LNA), etc.
  • the mobile communication module 150 can receive electromagnetic waves through the antenna 1, perform filtering, amplification and other processing on the received electromagnetic waves, and transmit them to the modem processor for demodulation.
  • the wireless communication module 160 can provide applications including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) network), Bluetooth (BT), and global navigation satellite systems (WLAN) applied to terminal devices.
  • WLAN wireless local area networks
  • BT Bluetooth
  • WLAN global navigation satellite systems
  • GNSS Global navigation satellite system
  • FM frequency modulation
  • the terminal device implements display functions through the GPU, the display screen 194, and the application processor.
  • the GPU is an image processing microprocessor and is connected to the display screen 194 and the application processor. GPUs are used to perform mathematical and geometric calculations for graphics rendering.
  • the display screen 194 is used to display images, videos, etc.
  • Display 194 includes a display panel.
  • the terminal device may include 1 or N display screens 194, where N is a positive integer greater than 1.
  • the terminal device can realize the shooting function through the ISP, camera 193, video codec, GPU, display screen 194 and application processor.
  • Camera 193 is used to capture still images or video.
  • the terminal device may include 1 or N cameras 193, where N is a positive integer greater than 1.
  • the external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the terminal device.
  • the external memory card communicates with the processor 110 through the external memory interface 120 to implement the data storage function. Such as saving music, videos, etc. files in external memory card.
  • Internal memory 121 may be used to store computer executable program code, which includes instructions.
  • the internal memory 121 may include a program storage area and a data storage area.
  • the terminal device can implement audio functions through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone interface 170D, and the application processor. Such as music playback, recording, etc.
  • the audio module 170 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signals.
  • Speaker 170A also called “speaker”
  • Receiver 170B also called “earpiece”
  • the headphone interface 170D is used to connect wired headphones.
  • Microphone 170C also called “microphone” or “microphone”, is used to convert sound signals into electrical signals.
  • the terminal device may have a microphone 170C.
  • Air pressure sensor 180C is used to measure air pressure.
  • the terminal device can calculate the altitude (or can also be called altitude) through the air pressure data measured by the air pressure sensor 180C to assist positioning and navigation.
  • the air pressure data measured by the air pressure sensor 180C can also be used to identify the climbing status of the terminal device.
  • the acceleration sensor 180E may be a three-axis (including x-axis, y-axis, and z-axis) acceleration sensor, and the acceleration sensor 180E may be used to detect acceleration data of the terminal device in three directions.
  • the acceleration data detected by the acceleration sensor 180E can be used by the terminal device to detect interference scenarios.
  • Touch sensor 180K also known as “touch device”.
  • the touch sensor 180K can be disposed on the display screen 194, and the touch sensor 180K and the display screen 194 form a touch screen, or "touch screen”.
  • the buttons 190 include a power button, a volume button, etc.
  • Key 190 may be a mechanical key. It can also be a touch button.
  • the terminal device can receive key input and generate key signal input related to user settings and function control of the terminal device.
  • the indicator 192 may be an indicator light, which may be used to indicate charging status, power changes, or may be used to indicate messages, missed calls, notifications, etc.
  • the pedometer 180N can be used to detect the number of steps of the user when the user carries the terminal device, such as the detection of the number of steps when the user walks, the detection of the number of steps when the user runs, the detection of the number of steps when the user climbs a mountain or stairs, etc. wait.
  • the software system of the terminal device can adopt a layered architecture, event-driven architecture, micro-kernel architecture, micro-service architecture, or cloud architecture, etc., which will not be described again here.
  • FIG. 3 is a schematic diagram of the software structure of a terminal device provided by an embodiment of the present application.
  • the layered architecture divides the software into several layers, and each layer has clear roles and division of labor.
  • the layers communicate through software interfaces.
  • the Android system is divided into four layers, from top to bottom: application layer, application framework (framework) layer, hardware abstraction layer (HAL), and sensor control center (sensor hub) )layer.
  • application layer application framework (framework) layer
  • HAL hardware abstraction layer
  • sensor control center sensor hub
  • the application layer can include a series of applications.
  • the application layer may include: sports fitness Health application, this sports health application can be used to record the movement status of the user when carrying the terminal device for exercise.
  • the application layer may also include: camera, calendar, phone, map, phone, music, settings, mailbox, video, social networking and other applications (not shown in Figure 3). In the embodiment of the present application, This is not limited.
  • the application framework layer provides an application programming interface (API) and programming framework for applications in the application layer.
  • API application programming interface
  • the application framework layer includes some predefined functions.
  • the application framework layer may include: a connection service module (or iconnect service module), etc.
  • the iconnect service module is used to send the hardware data received in the BT HAL module in the HAL layer to the preset HAL in the HAL layer.
  • the application framework layer may also include: a window manager, a content provider, a resource manager, a view system, a notification manager, etc. (not shown in Figure 3).
  • a window manager is used to manage window programs.
  • the window manager can obtain the display size, determine whether there is a status bar, lock the screen, touch the screen, drag the screen, capture the screen, etc.
  • Content providers are used to store and retrieve data and make this data accessible to applications. Data can include videos, images, audio, calls made and received, browsing history and bookmarks, phone books, etc.
  • the view system includes visual controls, such as controls that display text, controls that display pictures, etc.
  • a view system can be used to build applications.
  • the display interface can be composed of one or more views.
  • a display interface including a text message notification icon may include a view for displaying text and a view for displaying pictures.
  • the resource manager provides various resources to applications, such as localized strings, icons, pictures, layout files, video files, etc.
  • the notification manager allows applications to display notification information in the status bar, which can be used to convey notification-type messages and can automatically disappear after a short stay without user interaction. For example, the notification manager is used to notify download completion, message reminders, etc.
  • the notification manager can also be notifications that appear in the status bar at the top of the system in the form of charts or scroll bar text, such as notifications for applications running in the background, or notifications that appear on the screen in the form of conversation windows. For example, text information is prompted in the status bar, a prompt sound is emitted, the terminal device vibrates, and the indicator light flashes, etc.
  • the purpose of the HAL layer is to abstract the hardware. It can provide a unified interface for querying hardware devices for upper-layer applications, or it can also provide data storage services for upper-layer applications, or provide data processing services for upper-layer applications.
  • the HAL layer may include: default HAL, modem HAL, BT HAL, etc.
  • the preset HAL can be the management layer of the sensor.
  • the preset HAL can be used to fuse sensor data to achieve multi-modal data fusion and calculation in high-power consumption scenarios.
  • the preset HAL can be run independently for implementation.
  • the stability of the algorithm, or the preset HAL can also be coupled to the operation of other modules in the HAL layer.
  • the preset HAL is used to implement the altitude climbing algorithm in the altitude climbing state identification method, and in the altitude climbing algorithm, the fusion and calculation of each sensor data are implemented.
  • other algorithms can also be implemented in the preset HAL, such as Algorithm 1,..., Algorithm N, etc., which are not limited in the embodiments of this application.
  • the modem HAL is used to send the acquired modem information to the default HAL.
  • the modem information may include: base station number (cell identity, CID) information, radio access technology (radio access technology, RAT) information, etc.
  • the CID information can be used to indicate the switching situation of the base station
  • the RAT information is used to indicate the network situation that the terminal device accesses, such as the situation where the terminal device accesses 3G, 4G or 5G.
  • BT HAL is used to forward the hardware data transmitted by Bluetooth to the iconnect service module.
  • BT HAL can be used to forward the air pressure data transmitted from the wearable device to the terminal device via Bluetooth to the iconnect service module.
  • the sensor hub is used to control sensors, acquire, fuse, and process sensor data in low-power scenarios.
  • the sensor hub can include a preset sensor hub.
  • the default sensor hub can be used to obtain Pedometer data and acceleration data, etc.
  • the preset sensor hub can also be used to realize the recognition of interference scenes such as airplane scenes, ride scenes, riding scenes, elevator scenes, scooter scenes, and balancing car scenes based on acceleration data.
  • the preset sensor hub can send the obtained pedometer data and the identified interference scenes to the preset HAL, so that the preset HAL can execute the climbing algorithm based on the pedometer data and interference scenes to achieve the goal of climbing. Status recognition and climbing height detection.
  • the preset sensor hub can realize the above-mentioned sensor data acquisition, fusion, and processing functions.
  • the sports health application may send a height climbing algorithm to the preset HAL.
  • the preset HAL can perform a climbing algorithm based on the pedometer data and interference scene identification data obtained from the preset sensor hub, the CID information obtained from the modem HAL, and the air pressure data obtained from the iconnect service module. Calculation to obtain information such as climbing status and climbing height.
  • the preset HAL can send the climbing status and climbing height to the sports health application, so that the sports health application can be displayed in the interface corresponding to the outdoor running function.
  • the software structure of the terminal device may also include other layers and other modules.
  • the specific form of the software structure of the terminal device is not limited in the embodiments of the present application.
  • the terminal device when the terminal device includes a pedometer and does not include an air pressure sensor, and the wearable device that establishes a communication connection with the terminal device includes an air pressure sensor, the terminal device and the wearable device can jointly execute the embodiment of the present application.
  • the climbing state identification method described in (such as scenario one); or, when the terminal device includes a pedometer and an air pressure sensor, the terminal device can independently execute the climbing state identification method described in the embodiments of this application (such as scenario two) ); Or, when the wearable device contains a built-in chip-based user identity module (embedded-subscriber identity module, eSIM), air pressure sensor, and pedometer, and the wearable device has the ability to execute the climbing algorithm in a high-power consumption scenario When the hardware capabilities are sufficient, the wearable device can also independently execute the climbing state identification method described in the embodiments of this application (such as scenario 3).
  • eSIM embedded-subscriber identity module
  • the execution subject of the climbing state identification method may include other devices according to the actual scenario, which is not specifically limited in the embodiments of the present application.
  • the terminal device and the wearable device can jointly execute the climbing state identification method described in the embodiments of this application.
  • the terminal device includes a pedometer
  • the wearable device includes an air pressure sensor.
  • FIG. 4 is a schematic flowchart of a climbing state identification method provided by an embodiment of the present application. As shown in Figure 4, the climbing state identification method may include the following steps:
  • the terminal device establishes a communication connection with the wearable device.
  • the terminal device and the wearable device can establish a communication connection through a wired method; or the terminal device and the wearable device can also establish a communication connection through a wireless method.
  • terminal devices and wearable devices The communication connection can be established through wireless methods such as Bluetooth, WIFI, or connecting to the same cloud account. In the embodiments of this application, there is no limit to the method of establishing a communication connection between the terminal device and the wearable device.
  • the terminal device sends a message for obtaining air pressure data to the wearable device.
  • the wearable device may obtain a message sent via the terminal device for obtaining air pressure data.
  • the terminal device may send a message for obtaining air pressure data to the wearable device through Bluetooth or other methods.
  • the terminal device may trigger the step shown in S402 based on the embodiment corresponding to FIG. 5 .
  • Figure 5 is a schematic diagram of an interface for starting motion provided by an embodiment of the present application.
  • the terminal device may display an interface as shown in a in Figure 5.
  • the interface may include: a control 501 for instructing to start recording exercise data. Controls for instructing warm-up, controls for instructing to turn on music, text box for searching content, controls corresponding to the outdoor running function (the control corresponding to the outdoor running function is selected), controls corresponding to the indoor running function, yoga function Corresponding controls, controls corresponding to fitness functions, controls corresponding to walking functions, recommended course cards, information used to indicate accumulated running (km), and controls used to set running goals.
  • the interface shown in a in Figure 5 also includes: controls in the taskbar at the bottom of the sports health application, such as health controls, sports controls, discovery controls, device controls, and my controls for viewing other functions in sports health. wait.
  • the terminal device when the terminal device receives the user's trigger operation on the control 501, the terminal device can perform a motion countdown, and display the interface shown in b in Figure 5 when the countdown ends. , and then sends a message to the wearable device to obtain air pressure data.
  • the air pressure data can be used to identify the climbing status and calculate the climbing height.
  • the interface may include: information 502 used to indicate the climbing height.
  • the triggering operation may be a click operation, a long press operation, a sliding operation or a voice operation, etc., which is not limited in the embodiments of the present application.
  • the climbing height may not be displayed temporarily in the information 502 indicating the climbing height in the interface shown in b in FIG. 5; further, the terminal device may based on S403-S414.
  • the steps shown are to identify the climbing status and calculate the climbing height, and display the calculated climbing height in the information 502 for indicating the climbing height, thereby realizing real-time display of the climbing height.
  • the wearable device can also send N pieces of air pressure data generated when the air pressure data changes to the terminal device in real time. Therefore, the terminal device does not need to perform the step of sending an instruction message to the wearable device in S402.
  • the wearable device can send N pieces of air pressure data generated when the air pressure data changes to the terminal device in real time, when the terminal device receives the user's command for control 501 in the interface as shown in a in Figure 5
  • the terminal device can perform the steps shown in S405-S414 based on the N pieces of air pressure data to identify the climbing status and detect the climbing height.
  • the wearable device determines that the air pressure data changes, the wearable device collects N pieces of air pressure data.
  • the value of N can be a value such as 2, 10, 50, 60, or 80. N is greater than or equal to 2.
  • the wearable device can collect N air pressure data once every 5 seconds, or it can also be 2 N pieces of air pressure data are collected once per second. In the embodiment of this application, the time for collecting air pressure data is not limited.
  • the wearable device can acquire air pressure data based on the air pressure sensor.
  • the wearable device collects N pieces of air pressure data.
  • the wearable device can also directly send numerous air pressure data collected by the wearable device to the terminal device when receiving a message for obtaining air pressure data.
  • the terminal device determines whether the air pressure data has changed, and determines whether the air pressure data has changed. Collect N pieces of air pressure data when the air pressure data changes.
  • the wearable device sends N pieces of air pressure data and collection times corresponding to the N pieces of air pressure data to the terminal device.
  • the wearable device can send N pieces of air pressure data and the collection times corresponding to the N pieces of air pressure data to the terminal device based on Bluetooth.
  • the terminal device receives N pieces of air pressure data from the wearable device and the collection times corresponding to the N pieces of air pressure data.
  • the BT HAL in the terminal device can receive N air pressure data from the wearable device and the collection times corresponding to the N air pressure data; furthermore, the BT HAL can receive the N air pressure data.
  • the data and the collection times corresponding to the N air pressure data are forwarded to the preset HAL via the iconnect service module.
  • the terminal device determines the altitude corresponding to the first air pressure data among the N pieces of air pressure data, the first time corresponding to the first air pressure data, and the third time corresponding to when the number of steps in the N pieces of pedometer data changes. .
  • the N pieces of air pressure data may include: the first air pressure data (or may also be called the first air pressure data, the first air pressure data is obtained at the first moment), the second air pressure data, ..., and the Nth air pressure data (or can also be called the second air pressure data); since there is a correspondence between air pressure data and altitude, any air pressure data can correspond to an altitude data.
  • the second air pressure data may also be called the second air pressure data.
  • the N pedometer data may be collected by the terminal device based on a pedometer, and any of the N pedometer data may be used to indicate changes in the number of steps. For example, when the change in the number of steps at the second collection time is 5 compared to the first collection time, the pedometer data corresponding to the second collection time may be 5.
  • the terminal device when the terminal device receives N pieces of air pressure data from the wearable device and the collection times corresponding to the N pieces of air pressure data, the terminal device can obtain step counting at the same collection time according to the collection times corresponding to the N pieces of air pressure data.
  • the pedometer data obtained by the device is obtained, and N pedometer data corresponding to N collection times are obtained.
  • the terminal device obtains acceleration data.
  • the terminal device can obtain acceleration data in real time based on the acceleration sensor.
  • the terminal device can obtain acceleration data within a preset time period for interference scene identification, where the preset time period can include: a first time and a second time.
  • the terminal device when the terminal device determines that the interference scenario is not satisfied within the preset time period based on the acceleration data, the terminal device can continue to perform the climbing state identification method based on the air pressure data at the first moment and the air pressure data at the second moment. step.
  • the frequency at which the terminal device can collect acceleration data can be 100 hertz (hz), which can be understood as collecting acceleration data 100 times per second and collecting acceleration data every 10 milliseconds (ms).
  • the acceleration data obtained by the terminal device can be:
  • the Acc(t) may be a three-axis timing array that has been calibrated and synchronized by timestamps.
  • the terminal device determines whether the interference scenario is satisfied based on the acceleration data.
  • the terminal device can be used for other things other than walking that can cause changes in altitude at least two moments. Identify the interference scene and eliminate the impact of changes in air pressure data caused by the interference scene on the recognition of walking and climbing conditions.
  • the terminal device when the terminal device determines that the interference scenario is satisfied based on the acceleration data, the terminal device can perform the steps shown in S411; or, when the terminal device determines that the interference scenario is satisfied based on the acceleration data, the terminal device can perform the steps shown in S408. Steps to further identify the climbing status.
  • the terminal device can perform feature extraction on the acceleration data, and determine whether the interference scenario is met based on the extracted features. For example, the terminal device can extract the fast fourier transform (FFT) feature vector, variance, mean, and first-order difference (including the variance, mean, and zero-crossing point in the first-order difference), Second-order difference and other features; and input the above features into the preset model to obtain the recognition result.
  • FFT fast fourier transform
  • the decision data module can be used to implement binary classification.
  • N interference scenes such as airplane scenes, car riding scenes, riding scenes, elevator scenes, scooter scenes, and balancing car scenes
  • the terminal device can establish N decision trees.
  • the terminal device can establish 6 decision trees, such as: airplane scene and non-airplane scene, riding scene and non-riding scene, riding scene and non-riding scene, elevator scene and non-elevator scene scenes, scooter scenes and non-scooter scenes, balancing car scenes and non-balancing car scenes, etc.
  • the terminal device can obtain the scene corresponding to the maximum value of the six decision tree output results and obtain the recognition result, such as when an airplane scene and a non-aircraft scene, a riding scene and a non-riding scene, an elevator scene and a non-elevator scene,
  • the output results of the scooter scene and the non-scooter scene, as well as the balancing car scene and the non-balancing car scene are all values close to 0, and when the output results of the riding scene and the non-riding scene are 1, the terminal device can determine
  • the recognition result of this interference scene is the ride scene.
  • the method of identifying interference scenarios may not be limited to the above-mentioned decision tree model, and may also be other machine learning models, which is not limited in the embodiments of the present application.
  • the preset sensor hub in the terminal device can be used to perform the interference scene identification step shown in S407; then the preset sensor hub can send the identified interference scene to the preset HAL; so that the preset HAL can determine the climbing status based on the interference scenario.
  • the preset sensor hub can detect interference scenes in real time and send the detected interference scenes or non-interference scenes to the preset HAL in real time.
  • interference scenes may cause an increase in climbing height, and when the terminal device cannot recognize the interference scene, it is easy to mistake the climbing height caused by the interference scene for the user's walking. Climbing height, which in turn affects climbing status recognition or climbing height detection. Therefore, in the embodiment of the present application, the interference scene can be accurately identified, the interference scene can be determined as a non-climbing state, and the climbing state can be accurately detected.
  • the terminal device can also first perform the steps shown in S409-S410 to determine whether the initial climbing height is greater than the height threshold, and when it is determined that the initial climbing height is greater than the height threshold, instruct the preset sensor hub to perform S406-S407.
  • the steps are based on acceleration data to determine the interference scene.
  • the terminal device determines whether the difference between the first time and the third time is less than the time threshold.
  • the terminal device when the terminal device determines that the difference between the first moment and the third moment is less than the time threshold, the terminal device may perform the steps shown in S409; or, when the terminal device determines that the difference between the first moment and the third moment value greater than or equal to the time threshold, the terminal device can perform the steps shown in S411.
  • the difference between the first time and the third time may be the difference obtained by subtracting the third time from the first time, or may also be the difference obtained by subtracting the first time from the third time.
  • the terminal device when the terminal device determines that the difference between the first moment and the third moment is less than the time threshold, the terminal device may also perform the steps shown in S412; or it may be understood that the steps shown in S408 may also be used independently. Identification of climbing status.
  • the terminal device can determine the difference between the first moment and the third moment and the relationship between the time thresholds to eliminate the situation where the change time of the air pressure data in the non-climbing state is significantly different from the change time of the number of steps. Condition.
  • the time threshold is 2 minutes.
  • the first time recorded is 12 noon
  • the third time recorded when the number of steps changes is 5 p.m.
  • the difference between the first time and the third time is 5 hours. Since 5 hours is greater than the time threshold of 2 minutes, the terminal device can determine that it is currently in a non-climbing state.
  • the time threshold may also be a value of 3 minutes, 5 minutes, etc., which is not limited in the embodiments of the present application.
  • the terminal device determines the initial climbing altitude based on the altitude corresponding to the first air pressure data among the N air pressure data and the altitude corresponding to the Nth air pressure number among the N air pressure data.
  • the initial climbing altitude may be the value obtained by subtracting the altitude corresponding to the first air pressure data from the altitude corresponding to the Nth air pressure number.
  • the terminal device determines whether the initial climbing height is greater than the height threshold.
  • the terminal device when the terminal device determines that the initial climbing height is greater than the height threshold, the terminal device can perform the steps shown in S412; or, when the terminal device determines that the initial climbing height is less than or equal to the height threshold, the terminal device can perform S411. the steps shown.
  • the steps shown in S410 can also be used independently to identify the climbing state.
  • the terminal device can identify the climbing state based on one or more of the steps shown in S407, S408 and S410. Moreover, during the process of identifying the climbing state, the terminal device does not limit the execution order of S407, S408 and S410.
  • the terminal device when the terminal device determines that the air pressure data has not changed within a period of time threshold (such as 2 minutes or other values), the terminal device can determine that the climbing status is not met at this time; furthermore, the terminal device can re-obtain N air pressure data, for example, the terminal device can re-execute the steps shown in S402-S404, and re-perform climbing status identification and climbing height detection based on the steps shown in S405-S414.
  • a period of time threshold such as 2 minutes or other values
  • the terminal device may determine that the climbing state is not satisfied at this time, and then perform the steps shown in S411. For example, the terminal device can determine the number of base station switching times based on the CID information. For example, when the terminal device determines that the CID information changes more than 3 times within 1 minute, or determines that the CID information changes more than 5 times within 3 minutes, the terminal device can determine that the climbing status is not satisfied. .
  • the terminal device may determine the number of changes in the CID information between the first moment and the second moment. When the number of changes exceeds the number threshold, it is determined that the climbing state is not satisfied.
  • the terminal device can also Periodically detect changes in CID information, and when it is determined that the number of changes exceeds the number threshold, it is determined that the climbing status is not met.
  • the number of times threshold can be a value such as 1 or 2.
  • the terminal equipment's judgment on the number of base station switching times within a period of time cannot be used alone as a condition to meet the climbing status identification. Therefore, the terminal equipment can combine S407, S408 and S410 to jointly perform climbing status identification to improve the accuracy of climbing status identification. .
  • the modem HAL can send the obtained CID information to the preset HAL, and then the preset HAL completes the judgment of using the CID information to determine whether the terminal device meets the climbing status.
  • the number of base station switching times within a certain period of time can be determined to eliminate the cases that are not climbing. High state scenes, thereby improving the accuracy of climbing state recognition.
  • the terminal device determines that it does not meet the climbing status.
  • the terminal device determines that it meets the climbing status.
  • the terminal device determines the actual number of climbing steps based on N pedometer data.
  • the terminal device can obtain the sum of N pedometer data as the actual climbing step.
  • the terminal device determines whether there are M pieces of stable air pressure data among the N pieces of air pressure data.
  • the terminal device can obtain the sum of the M pedometer data and the sum of the N pedometer data, and use the sum of the N pedometer data The actual number of climbing steps is obtained by subtracting the sum of M pedometer data from the sum.
  • M is less than N, and the value of M can be 5, 8 or 10, etc., which is not limited in the embodiments of the present application.
  • the M pieces of pedometer data may be pedometer data corresponding to the M pieces of air pressure data.
  • the terminal device may determine whether there are M pieces of stable air pressure data among the N pieces of air pressure data based on the corresponding variances of the air pressure data (or changes in the air pressure data, or the mean of the air pressure data), etc. For example, when the terminal device determines that the variance is less than the variance threshold, the terminal device may determine that the air pressure data is stable; or when the terminal device determines that the variance is greater than or equal to the variance threshold, the terminal device may determine that the air pressure data is unstable.
  • the variance of the Qth air pressure data among the N pieces of air pressure data may be the variance determined based on the Q pieces of air pressure data between the first air pressure data and the Qth air pressure data, and Q is less than or equal to N.
  • the terminal device can detect the situation where the air pressure data is stable. Recognition, for example, identifies M stable air pressure data, and when calculating the actual number of climbing steps, removes the influence of the M pedometer data in the stable state on the climbing altitude, thereby enhancing the accuracy of the climbing altitude calculation.
  • the terminal device determines that the actual number of climbing steps is greater than the initial climbing height ⁇ the preset threshold, the terminal device determines the initial climbing height as the final climbing height.
  • the terminal device can use the relationship between the actual number of climbing steps and the initial climbing height to select a climbing height that is more consistent with the actual scenario.
  • the terminal device when the terminal device determines the final climbing height corresponding to N pieces of air pressure data, the terminal device can display the final climbing height in the interface in real time, so that the user can view the distance from the starting position to the current position at any time during the climbing process. the climbing height; alternatively, the terminal device can also log in when receiving the user's operation to end the exercise recording. The maximum value of the climbing height during the mountain process and the change curve of the climbing height during the exercise are displayed in the interface.
  • the final climbing height in the step shown in S414 can be understood as the first final climbing height corresponding to the first acquisition of N air pressure data; after S414, the terminal device can also continue to perform S402-S410.
  • the steps shown calculate the second initial climbing height, the second actual climbing steps, etc. based on the N air pressure data obtained for the second time; further, in the step shown in S414, when the terminal device determines the second When the actual number of climbing steps is greater than the product of the second initial climbing height and the preset threshold, the final climbing height is determined to be the cumulative value of the first final climbing height and the second initial climbing height. It can be understood that the terminal device can determine the final climbing height based on the accumulated value of the climbing height corresponding to multiple air pressure data.
  • FIG. 6 is a schematic diagram of an interface for real-time display of climbing height provided by an embodiment of the present application.
  • the climbing height can be displayed in real time on the interface shown in a in Figure 6.
  • the information 601 used to indicate the climbing height in the interface can be displayed as 2 meters
  • the information used to indicate the running time in the interface can be displayed as 5 seconds
  • other information displayed in the interface can be displayed as 2 meters.
  • the content can be found in the interface shown in a in Figure 1, and will not be described again here.
  • the terminal device can display the interface shown in b in Figure 6. This interface can display that the user climbed 7.02 kilometers, took 1:30:46, consumed 804 kcal, and climbed Height 1200 meters.
  • the terminal device can display the interface shown in c in Figure 6.
  • the interface can display: the exercise ended at 16:58 pm on June 8, 2022, the exercise time was 1:30:46, and the calories consumed 804 kcal, average pace 12′34′′/km, average speed 4.67 km/h, average cadence 153 steps/min, average stride length 31 cm, number of steps 22775, and the maximum climbing altitude during the climb is 1200 meters , other content displayed in this interface may be similar to the interface shown in b in Figure 1, and will not be described again here.
  • the terminal device may display the interface shown in d in FIG. 6 .
  • the interface may include: a chart corresponding to the cadence and a chart 603 corresponding to the climbing height.
  • the average cadence information is 153
  • the maximum cadence information is 182
  • the maximum climbing height information is 1200 meters.
  • the chart 603 can indicate the overall climbing situation during the mountain climbing process. For example, the maximum climbing height is reached after about 90 minutes of climbing.
  • the terminal device can display the climbing height in real time based on the embodiment corresponding to Figure 6, or can display the overall climbing situation during the climbing process when the operation is completed, so that the user can view it at any time, thereby increasing the user experience of the sports and health application.
  • the preset HAL can perform the steps shown in S408-SS414 to identify the climbing status and detect the climbing height, and when the climbing height is detected, the climbing height is sent to the sports health application. This allows sports and health applications to display the obtained climbing height in the interface for easy viewing by users.
  • the terminal device and the wearable device can identify the climbing status and calculate the climbing height through data interaction; and the terminal device can avoid the impact of the interference scene on the identification of the climbing status based on the identification of interference scenes, and then Improve the accuracy of climbing status recognition.
  • Scenario 2 When the terminal device includes a pedometer and an air pressure sensor, the terminal device can independently execute the climbing state identification method described in the embodiment of this application.
  • the terminal device can obtain N pieces of air pressure data when the air pressure data changes based on the air pressure sensor of the terminal device, and then perform the steps shown in S405-SS414.
  • the terminal device can independently execute the climbing state identification method described in the embodiments of this application; and the terminal device can also avoid the impact of the interference scene on the climbing state identification based on the identification of the interference scene, thereby improving the climbing state. Recognition accuracy.
  • Scenario 3 When the wearable device contains a built-in chip-based user identity module (embedded-subscriber identity module, eSIM), air pressure sensor, and pedometer, and the wearable device has the hardware capability to execute the altitude climbing algorithm in a high-power consumption scenario At this time, the wearable device can also independently execute the climbing state identification method described in the embodiments of this application.
  • eSIM embedded-subscriber identity module
  • the wearable device when the wearable device contains an eSIM, the wearable device can use the number of base station switching times in the step shown in S410 to determine whether the terminal device satisfies the climbing state based on the eSIM.
  • the CID information used to indicate the number of base station switching times can be obtained by the eSIM in the wearable device.
  • the wearable device can perform the steps in S405-SS414 in which the terminal device identifies the climbing state and detects the climbing height.
  • the wearable device can open a preset function in a sports and health application (such as an outdoor running function) based on the method corresponding to the embodiment in Figure 5, and realize the identification of the climbing state in the preset function.
  • a sports and health application such as an outdoor running function
  • the wearable device can also automatically recognize the user's motion state, and when it recognizes that the user's motion state meets the preset function, displays an interface for prompting the user to enter the preset function.
  • FIG. 7 is a schematic diagram of an interface for prompting the user to enter a preset function provided by an embodiment of the present application.
  • the preset function is the outdoor running function as an example for illustration. It can be understood that the wearable device can perform climbing state recognition in the outdoor running function.
  • the wearable device When the wearable device detects that the user may be in a running state based on acceleration data, the wearable device may display an interface as shown in a in Figure 7 .
  • the interface may include: prompt information, a control 701 for entering the outdoor running function, a control for entering the indoor running function, and a control for ignoring entering the outdoor running function or indoor running.
  • the prompt information can be displayed as: Are you running?
  • the wearable device may display the interface shown in b in FIG. 7 .
  • the interface may include: information indicating cumulative running (km), a control 702 indicating starting to record exercise data, a control 702 indicating warm-up, and Controls for turning on music, etc.
  • the wearable device when the wearable device receives the user's trigger operation on the control 702, the wearable device can collect air pressure data, pedometer data, acceleration data, etc., and start crawling. High status identification and climbing height detection.
  • the method for the wearable device to trigger the recognition of entering the climbing state may not be limited to the embodiment corresponding to Figure 7, and this is not limited in the embodiments of the present application.
  • the wearable device can independently execute the climbing state identification method described in the embodiments of this application; and the wearable device can also identify the interference scene to avoid the impact of the interference scene on the climbing state identification, thereby improving the climbing state. High state recognition accuracy.
  • Figure 8 is a schematic structural diagram of a climbing state identification device provided by an embodiment of the present application.
  • the climbing state identifying device may be the terminal device in the embodiment of the present application, or may be a device within the terminal device. Chip or chip system.
  • the climbing state identification device 80 can be used in communication equipment, circuits, hardware components or chips.
  • the climbing state identification device includes: an acquisition unit 801 and a processing unit 803 .
  • the acquisition unit 801 is used to support the climbing state identification device 80 to perform data acquisition steps
  • the processing unit 803 is used to support the climbing state identification device 80 to perform data processing steps.
  • the climbing state recognition device 80 may further include: a display unit 802 , the display unit 802 being configured to support the display steps performed by the climbing state recognition device 80 .
  • the embodiment of the present application provides a climbing state identification device 80 and an acquisition unit 801 for acquiring acceleration data; the acceleration data is data acquired within a preset time period, and the preset time period includes the first moment and the second moment. ; Processing unit 803, configured to determine whether the first terminal device is in a first state based on acceleration data.
  • the first state is used to indicate that when the first terminal device is in the first state, the first terminal device is located at different altitudes at at least two moments.
  • the processing unit 803 is also configured to determine that the first terminal device is in the walking and climbing state based on the first air pressure data obtained at the first time and the second air pressure data obtained at the second time; Wherein, the first terminal device in the walking climbing state is located at different altitudes at the first moment and the second moment.
  • the climbing state identification device 80 may also include a communication unit 804.
  • the communication unit 804 is used to support the climbing state identification device 80 in performing the steps of sending and receiving data.
  • the communication unit 804 may be an input or output interface, a pin or a circuit, etc.
  • the climbing state identification device 80 may also include: a storage unit 805 .
  • the processing unit 803 and the storage unit 805 are connected through lines.
  • the storage unit 805 may include one or more memories, which may be devices used to store programs or data in one or more devices or circuits.
  • the storage unit 805 may exist independently and be connected to the processing unit 803 of the climbing state recognition device through a communication line.
  • the storage unit 805 can also be integrated with the processing unit 803.
  • the storage unit 805 may store computer execution instructions for the method in the terminal device, so that the processing unit 803 executes the method in the above embodiment.
  • the storage unit 805 may be a register, cache, RAM, etc., and the storage unit 805 may be integrated with the processing unit 803.
  • the storage unit 805 may be a read-only memory (ROM) or other type of static storage device that can store static information and instructions, and the storage unit 805 may be independent from the processing unit 803.
  • Figure 9 is a schematic diagram of the hardware structure of another terminal device provided by an embodiment of the present application.
  • the terminal device includes a processor 901, a communication line 904 and at least one communication interface (exemplarily shown in Figure 9 as communication Interface 903 is taken as an example for explanation).
  • the processor 901 can be a general central processing unit (CPU), a microprocessor, an application-specific integrated circuit (ASIC), or one or more processors used to control the execution of the program of the present application. integrated circuit.
  • CPU central processing unit
  • ASIC application-specific integrated circuit
  • Communication lines 904 may include circuitry that communicates information between the above-described components.
  • the communication interface 903 uses any device such as a transceiver to communicate with other devices or communication networks, such as Ethernet, wireless local area networks (WLAN), etc.
  • a transceiver to communicate with other devices or communication networks, such as Ethernet, wireless local area networks (WLAN), etc.
  • WLAN wireless local area networks
  • the terminal device may also include a memory 902.
  • Memory 902 may be a read-only memory (ROM) or other type of static storage device that can store static information and instructions, a random access memory (random access memory (RAM)) or other type that can store information and instructions.
  • a dynamic storage device can also be an electrically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or other optical disk storage, optical disc storage (including compressed optical discs, laser discs, optical discs, digital versatile discs, Blu-ray discs, etc.), disk storage media or other magnetic storage devices, or can be used to carry or store desired program code in the form of instructions or data structures and can be used by a computer Any other medium for access, but not limited to this.
  • the memory may exist independently and be connected to the processor through a communication line 904. Memory can also be integrated with the processor.
  • the memory 902 is used to store computer execution instructions for executing the solution of the present application, and is controlled by the processor 901 for execution.
  • the processor 901 is used to execute computer execution instructions stored in the memory 902, thereby implementing the climbing state identification method provided by the embodiment of the present application.
  • the computer execution instructions in the embodiments of the present application may also be called application codes, which are not specifically limited in the embodiments of the present application.
  • the processor 901 may include one or more CPUs, such as CPU0 and CPU1 in FIG. 9 .
  • the terminal device may include multiple processors, such as the processor 901 and the processor 905 in Figure 9 .
  • processors may be a single-CPU processor or a multi-CPU processor.
  • a processor here may refer to one or more devices, circuits, and/or processing cores for processing data (eg, computer program instructions).
  • a computer program product includes one or more computer instructions. When computer program instructions are loaded and executed on a computer, processes or functions according to embodiments of the present application are generated in whole or in part.
  • the computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable device.
  • Computer instructions may be stored in or transmitted from one computer-readable storage medium to another computer-readable storage medium, e.g., computer instructions may be transmitted from a website, computer, server or data center via a wired link (e.g. Coaxial cable, optical fiber, digital subscriber line (DSL) or wireless (such as infrared, wireless, microwave, etc.) means to transmit to another website site, computer, server or data center.
  • a wired link e.g. Coaxial cable, optical fiber, digital subscriber line (DSL) or wireless (such as infrared, wireless, microwave, etc.
  • the computer-readable storage medium can be Any available media that a computer can store or is a data storage device such as a server, data center, or other integrated server that includes one or more available media.
  • available media may include magnetic media (eg, floppy disks, hard disks, or tapes), optical media (eg, Digital versatile disc (digital versatile disc, DVD)), or semiconductor media (for example, solid state disk (solid state disk, SSD)), etc.
  • Computer-readable media may include computer storage media and communication media and may include any medium that can transfer a computer program from one place to another.
  • the storage media can be any target media that can be accessed by the computer.
  • the computer-readable medium may include compact disc read-only memory (CD-ROM), RAM, ROM, EEPROM or other optical disk storage; the computer-readable medium may include a magnetic disk memory or other disk storage device.
  • any connecting wire may also be appropriately referred to as a computer-readable media.
  • coaxial cable, fiber optic cable, twisted pair, DSL or wireless technologies such as infrared, radio and microwave
  • coaxial cable, fiber optic cable, twisted pair, DSL or wireless technologies such as infrared, radio and microwave are included in the definition of medium.
  • Disk and optical disc includes compact disc (CD), laser disc, optical disc, digital versatile disc (DVD), floppy disk, and Blu-ray disc, where disks typically reproduce data magnetically, while discs reproduce data optically using lasers. Reproduce data.

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Measurement Of The Respiration, Hearing Ability, Form, And Blood Characteristics Of Living Organisms (AREA)
  • Telephone Function (AREA)

Abstract

The embodiments of the present application relate to the technical field of terminals. Provided are a climbing state identification method and apparatus. The method comprises: on the basis of acceleration data, determining whether a first terminal device is in a first state, wherein the first state is used for indicating that: when the first terminal device is in the first state, the first terminal device is located at different altitudes at at least two moments; and when the first terminal device is not in the first state, determining, on the basis of first air pressure data obtained at a first moment and second air pressure data obtained at a second moment, that the first terminal device is in a walking climbing state, wherein the first terminal device in the walking climbing state is located at different altitudes at the first moment and the second moment. In this way, the first terminal device can detect a first state, thereby preventing the first state from affecting the identification of the walking climbing state, and thus improving the accuracy of the climbing state identification method.

Description

爬高状态识别方法和装置Climbing status recognition method and device
本申请要求于2022年07月01日提交中国国家知识产权局、申请号为202210770042.8、申请名称为“爬高状态识别方法和装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims priority to the Chinese patent application submitted to the State Intellectual Property Office of China on July 1, 2022, with application number 202210770042.8 and the application name "Height Climbing State Identification Method and Device", the entire content of which is incorporated herein by reference. Applying.
技术领域Technical field
本申请涉及终端技术领域,尤其涉及一种爬高状态识别方法和装置。The present application relates to the field of terminal technology, and in particular to a method and device for identifying a climbing state.
背景技术Background technique
随着互联网的普及和发展,人们对于终端设备的功能需求也越发多样化。例如,为了满足用户对于运动健康功能的使用需求,终端设备通常可以在检测到用户运动时,对运动时间、运动消耗热量、运动平均配速、运动平均速度、运动步频、运动平均步幅、以及运动步数等基础运动数据进行检测,并显示在终端设备的界面中,使得用户可以观测到整个运动过程的多种数据。With the popularization and development of the Internet, people's functional requirements for terminal devices have become more and more diverse. For example, in order to meet the user's needs for sports and health functions, the terminal device can usually detect the user's exercise time, exercise calories burned, average exercise pace, average exercise speed, exercise cadence, average exercise stride, And basic motion data such as the number of motion steps are detected and displayed in the interface of the terminal device, so that users can observe a variety of data throughout the motion process.
通常情况下,终端设备除了需要对上述基础运动数据进行检测外,还可以对爬高状态进行识别。例如,终端设备可以基于预先构建的模型识别终端设备是否处于爬高状态。Normally, in addition to detecting the above basic motion data, the terminal device can also identify the climbing status. For example, the terminal device can identify whether the terminal device is in a climbing state based on a pre-built model.
然而,上述爬高状态识别方法的准确性较低。However, the accuracy of the above-mentioned climbing state identification method is low.
发明内容Contents of the invention
本申请实施例提供一种爬高状态识别方法和装置,使得终端设备可以实现对第一状态的检测,避免第一状态影响到步行爬高状态的识别,进而提高爬高状态识别方法的准确性。Embodiments of the present application provide a method and device for identifying a climbing state, so that the terminal device can detect the first state, avoid the first state from affecting the identification of the walking and climbing state, and thereby improve the accuracy of the method for identifying the climbing state. .
第一方面,本申请实施例提供一种爬高状态识别方法,方法包括:获取加速度数据;加速度数据为预设时长内获取的数据;预设时长中包括第一时刻以及第二时刻;基于加速度数据,确定第一终端设备是否处于第一状态,第一状态用于指示第一终端设备处于第一状态时第一终端设备在至少两个时刻位于不同的海拔;当第一终端设备不是处于第一状态,基于第一时刻获得的第一气压数据和第二时刻获得的第二气压数据确定第一终端设备处于步行爬高状态;其中,处于步行爬高状态的第一终端设备在第一时刻和第二时刻位于不同的海拔。这样,使得第一终端设备可以实现对第一状态的检测,避免第一状态影响到步行爬高状态的识别,进而提高爬高状态识别方法的准确性。In a first aspect, embodiments of the present application provide a method for identifying a climbing state. The method includes: obtaining acceleration data; the acceleration data is data obtained within a preset time period; the preset time period includes the first moment and the second moment; based on the acceleration Data to determine whether the first terminal device is in the first state. The first state is used to indicate that when the first terminal device is in the first state, the first terminal device is located at different altitudes at at least two moments; when the first terminal device is not in the first state, A state, based on the first air pressure data obtained at the first time and the second air pressure data obtained at the second time, it is determined that the first terminal device is in the walking and climbing state; wherein, the first terminal device in the walking and climbing state is in the walking and climbing state at the first time and the second moment are located at different altitudes. In this way, the first terminal device can detect the first state, avoid the first state from affecting the identification of the walking and climbing state, and thereby improve the accuracy of the method for identifying the climbing state.
在一种可能的实现方式中,基于第一时刻获得的第一气压数据和第二时刻获得的第二气压数据确定第一终端设备处于步行爬高状态,包括:确定第一气压数据对应的海拔与第二气压数据对应的海拔之间的差值,得到海拔差值;在海拔差值大于第一阈值时,确定第一终端设备处于步行爬高状态。这样,第一终端设备可以通过第一气压数据以及第二气压数据之间的海拔差值,确定海拔是否升高。In a possible implementation, determining that the first terminal device is in a walking climbing state based on the first air pressure data obtained at the first moment and the second air pressure data obtained at the second moment includes: determining the altitude corresponding to the first air pressure data. The difference between the altitudes corresponding to the second air pressure data is an altitude difference; when the altitude difference is greater than the first threshold, it is determined that the first terminal device is in a walking climbing state. In this way, the first terminal device can determine whether the altitude has increased based on the altitude difference between the first air pressure data and the second air pressure data.
在一种可能的实现方式中,第一状态包括下述一种或多种:飞行爬高状态、电梯爬高状态、乘车爬高状态、骑行爬高状态、滑板车爬高状态、或平衡车爬高状态。这 样,使得第一终端设备可以实现对于影响步行爬高状态的多种其他爬高状态的识别,并提高步行爬高状态识别的准确性。In a possible implementation, the first state includes one or more of the following: flight climbing state, elevator climbing state, riding car climbing state, riding climbing state, scooter climbing state, or Balance car climbing state. this In this way, the first terminal device can realize the identification of various other climbing states that affect the walking and climbing state, and improve the accuracy of identifying the walking and climbing state.
在一种可能的实现方式中,第一气压数据为第二终端设备在检测到气压发生变化后采集的变化后的数据。这样,在第一终端设备未包含气压计时,可以基于第二终端设备采集到的气压数据进行爬高状态识别,使得本申请实施例提供的爬高状态识别方法可以适用于更多类型的第一终端设备。其中,第二终端设备可以为本申请实施例中描述的可穿戴设备。In a possible implementation, the first air pressure data is changed data collected by the second terminal device after detecting a change in air pressure. In this way, when the first terminal device does not include a barometer, the climbing state can be identified based on the air pressure data collected by the second terminal device, so that the climbing state identification method provided by the embodiment of the present application can be applied to more types of first terminal equipment. Terminal Equipment. The second terminal device may be the wearable device described in the embodiments of this application.
在一种可能的实现方式中,方法还包括:获取第三时刻对应的计步器数据;第三时刻对应的计步器数据为第一时刻后步数第一次发生变化时对应的数据;确定第一时刻与第三时刻的差值,得到时间差值;在海拔差值大于第一阈值时,确定第一终端设备处于步行爬高状态,包括:在海拔差值大于第一阈值,且时间差值小于第二阈值时,确定第一终端设备处于步行爬高状态。可以理解的是,由于处于步行爬高过程中,气压数据的变化必将伴随着步数的变化,因此第一时刻与第三时刻之间的差值必定小于时间阈值。基于此,终端设备可以通过确定第一时刻与第三时刻之间的差值、以及时间阈值之间的关系,排除非爬高状态下气压数据的变化时间与步数的变化时间差距较大的情况,进而提高步行爬高状态识别的准确性。In a possible implementation, the method further includes: obtaining the pedometer data corresponding to the third moment; the pedometer data corresponding to the third moment is the data corresponding to the first change in the number of steps after the first moment; Determine the difference between the first moment and the third moment to obtain the time difference; when the altitude difference is greater than the first threshold, determining that the first terminal device is in a walking climbing state includes: when the altitude difference is greater than the first threshold, and When the time difference is less than the second threshold, it is determined that the first terminal device is in a walking and climbing state. It can be understood that since during walking and climbing, changes in air pressure data will be accompanied by changes in the number of steps, so the difference between the first moment and the third moment must be less than the time threshold. Based on this, the terminal device can determine the difference between the first moment and the third moment and the relationship between the time thresholds to eliminate the situation where the change time of the air pressure data in the non-climbing state is significantly different from the change time of the number of steps. situation, thereby improving the accuracy of walking and climbing status recognition.
在一种可能的实现方式中,方法还包括:获取第一时刻以及第二时刻之间的多个基站编号信息;当多个基站编号信息的变化次数超过第三阈值,海拔差值小于或等于第一阈值,和/或,时间差值大于或等于第二阈值时,确定第一终端设备未处于步行爬高状态。可以理解的是,由于用户步行爬高时,爬升的高度是缓慢增加的,很难会出现短时间内基站多次切换的情况,因此可以通过确定一段时间阈值内基站切换次数,排除不属于爬高状态的场景,进而提高爬高状态识别的准确性。In a possible implementation, the method further includes: obtaining multiple base station number information between the first moment and the second moment; when the number of changes in the multiple base station number information exceeds a third threshold, the altitude difference is less than or equal to When the first threshold and/or the time difference is greater than or equal to the second threshold, it is determined that the first terminal device is not in a walking and climbing state. It is understandable that when the user climbs on foot, the climbing height increases slowly, and it is difficult for the base station to switch multiple times in a short period of time. Therefore, the number of base station switching times within a threshold period can be determined to eliminate the cases that are not climbing. High state scenes, thereby improving the accuracy of climbing state recognition.
在一种可能的实现方式中,方法还包括:在确定第一终端设备处于步行爬高状态的情况下,确定第一计步器数据以及第二计步器数据的和,得到步数累加值;其中,第一计步器数据为第一时刻获取的计步器数据,第二计步器数据为第二时刻获取的计步器数据;在步数累加值大于海拔差值与第四阈值的乘积时,确定海拔差值为步行爬高状态下的爬升高度。可以理解的是,在步行不高过程中,爬升步数与爬升高度之间存在一定的对应关系,例如爬升高度越高爬升步数越多,因此为了避免爬升步数较少而爬升高度较高或者爬升步数较多而爬升高度较少等不合理的情况,终端设备可以利用步数累加值、与海拔差值之间的关系筛选出更符合实际场景的爬升高度。In a possible implementation, the method further includes: when it is determined that the first terminal device is in a walking and climbing state, determining the sum of the first pedometer data and the second pedometer data to obtain an accumulated step count value. ; Among them, the first pedometer data is the pedometer data obtained at the first moment, and the second pedometer data is the pedometer data obtained at the second moment; when the accumulated step count value is greater than the altitude difference and the fourth threshold When multiplied by , the altitude difference is determined to be the climbing height in the walking climbing state. It can be understood that during walking, there is a certain correspondence between the number of climbing steps and the climbing height. For example, the higher the climbing height, the more climbing steps. Therefore, in order to avoid having fewer climbing steps and a higher climbing height Or in unreasonable situations such as a large number of climbing steps but a low climbing height, the terminal device can use the relationship between the cumulative value of steps and the altitude difference to filter out a climbing height that is more consistent with the actual scenario.
在一种可能的实现方式中,方法还包括:显示第一界面;第一界面中包括用于指示开始运动记录的第一控件;在接收到针对第一控件的操作时,显示第二界面;其中,第二界面中包括爬升高度。这样,第一终端设备可以实现对于爬升高度的实时显示,进而提高用户使用运动记录功能的体验感。In a possible implementation, the method further includes: displaying a first interface; the first interface includes a first control for instructing to start motion recording; when receiving an operation for the first control, displaying a second interface; The second interface includes the climbing height. In this way, the first terminal device can realize real-time display of the climbing height, thereby improving the user's experience of using the motion recording function.
在一种可能的实现方式中,方法还包括:在第一终端设备接收到结束运动记录的操作时,显示第三界面;其中,第三界面中包括用于指示最高爬升高度的信息、以及用于查看运动图表的第二控件;在第一终端设备接收到针对第二控件的操作时,显示第四界面;第四界面中包括:用于指示爬升高度变化情况的图表。这样,使得第一终端设备可以结束运动记录后显示步行爬过过程中的最高爬升高度以及爬升高度变化情 况,便于用户掌握运动过程的整体情况,进而提高用户使用运动记录功能的体验感。In a possible implementation, the method further includes: when the first terminal device receives an operation to end the exercise recording, displaying a third interface; wherein the third interface includes information indicating the maximum climbing altitude, and a user interface. A second control for viewing the motion chart; when the first terminal device receives an operation for the second control, a fourth interface is displayed; the fourth interface includes: a chart for indicating changes in climbing altitude. In this way, the first terminal device can display the highest climbing height and changes in the climbing height during the walking and climbing process after ending the motion recording. This makes it easier for users to grasp the overall situation of the exercise process, thereby improving the user’s experience of using the exercise recording function.
在一种可能的实现方式中,方法还包括:当第一终端设备处于第一状态时,确定第一终端设备不是处于步行爬高状态。这样,第一终端设备可以排除掉第一状态的干扰。In a possible implementation, the method further includes: when the first terminal device is in the first state, determining that the first terminal device is not in a walking and climbing state. In this way, the first terminal device can eliminate interference in the first state.
在一种可能的实现方式中,第一终端设备中包括:蓝牙硬件抽象层BT HAL、连接服务模块以及预设HAL,BT HAL以及预设HAL位于HAL中,连接服务模块位于应用程序框架层中,方法还包括:BT HAL获取第一气压数据以及第二气压数据;第一气压数据以及第二气压数据均为第二终端设备基于蓝牙发送的;BT HAL将第一气压数据以及第二气压数据发送至连接服务模块;连接服务模块将第一气压数据以及第二气压数据发送至预设HAL;基于第一时刻获得的第一气压数据和第二时刻获得的第二气压数据确定第一终端设备处于步行爬高状态,包括:预设HAL基于第一气压数据和第二气压数据确定第一终端设备处于步行爬高状态。这样,在第一终端设备中不存在气压计的情况下,第一终端设备可以从第二设备中获取气压数据,并基于第一终端设备中的多个模块将该气压数据传输至可以进行步行爬高状态识别的预设HAL中,使得本申请实施例提供的爬高状态识别方法可以适用于更多类型的第一终端设备。In a possible implementation, the first terminal device includes: Bluetooth hardware abstraction layer BT HAL, connection service module and default HAL, BT HAL and the default HAL are located in the HAL, and the connection service module is located in the application framework layer , the method also includes: BT HAL obtains the first air pressure data and the second air pressure data; the first air pressure data and the second air pressure data are both sent by the second terminal device based on Bluetooth; BT HAL obtains the first air pressure data and the second air pressure data Send to the connection service module; the connection service module sends the first air pressure data and the second air pressure data to the preset HAL; determine the first terminal device based on the first air pressure data obtained at the first time and the second air pressure data obtained at the second time Being in a walking and climbing state includes: the preset HAL determines that the first terminal device is in a walking and climbing state based on the first air pressure data and the second air pressure data. In this way, when there is no barometer in the first terminal device, the first terminal device can obtain the air pressure data from the second device, and transmit the air pressure data based on multiple modules in the first terminal device to a device that can walk The preset HAL for climbing state identification makes the climbing state identification method provided by the embodiment of the present application applicable to more types of first terminal devices.
在一种可能的实现方式中,第一终端设备中还包括:预设传感器控制中心sensor hub,基于加速度数据,确定第一终端设备是否处于第一状态,包括:预设sensor hub基于加速度数据,确定第一终端设备是否处于第一状态。这样,sensor hub可以实现低功耗场景中的传感器数据的获取和处理,使得本申请实施例提供的爬高状态识别方法可以适用于处于更多场景下的第一终端设备。In a possible implementation, the first terminal device also includes: a preset sensor control center sensor hub, which determines whether the first terminal device is in the first state based on the acceleration data, including: the preset sensor hub based on the acceleration data, Determine whether the first terminal device is in the first state. In this way, the sensor hub can realize the acquisition and processing of sensor data in low-power consumption scenarios, so that the climbing state identification method provided by the embodiment of the present application can be applied to the first terminal device in more scenarios.
在一种可能的实现方式中,HAL中还包括:调制解调器modem HAL,方法还包括:modem HAL获取第一时刻以及第二时刻之间的多个基站编号信息;modem HAL将多个基站编号信息发送预设HAL;当多个基站编号信息的变化次数超过第三阈值,海拔差值小于或等于第一阈值,和/或,时间差值大于或第二阈值时,预设HAL确定第一终端设备未处于步行爬高状态。因此可以通过确定一段时间阈值内基站切换次数,排除不属于爬高状态的场景,进而提高爬高状态识别的准确性。In a possible implementation, the HAL also includes: a modem HAL, and the method also includes: the modem HAL obtains multiple base station number information between the first moment and the second moment; the modem HAL sends the multiple base station number information Preset HAL; when the number of changes in multiple base station number information exceeds the third threshold, the altitude difference is less than or equal to the first threshold, and/or when the time difference is greater than or equal to the second threshold, the preset HAL determines the first terminal device Not in a walking climbing condition. Therefore, by determining the number of base station switching times within a threshold period, scenarios that do not belong to the climbing state can be eliminated, thereby improving the accuracy of the climbing state identification.
第二方面,本申请实施例提供一种爬高状态识别方法,方法包括:与第二终端设备建立通信连接;向第二终端设备发送第一指令;第一指令用于指示第二终端设备获取气压发生变化后采集的第一气压数据以及第二气压数据;接收来自第二终端设备的第一气压数据以及第二气压数据;获取加速度数据;加速度数据为预设时长内获取的数据;预设时长中包括第一时刻以及第二时刻;基于加速度数据,确定第一终端设备是否处于第一状态;第一状态用于指示第一终端设备处于第一状态时第一终端设备在至少两个时刻位于不同的海拔;当第一终端设备不是处于第一状态,基于第一时刻获得的第一气压数据和第二时刻获得的第二气压数据确定第一终端设备处于步行爬高状态;其中,处于步行爬高状态的第一终端设备在第一时刻和第二时刻位于不同的海拔。这样,在终端设备不存在气压计的情况下,第一终端设备基于指示消息从第二设备中获取气压数据,使得本申请实施例提供的爬高状态识别方法可以适用于更多类型的第一终端设备。In a second aspect, embodiments of the present application provide a method for identifying a climbing state. The method includes: establishing a communication connection with a second terminal device; sending a first instruction to the second terminal device; and the first instruction is used to instruct the second terminal device to obtain The first air pressure data and the second air pressure data collected after the air pressure changes; receiving the first air pressure data and the second air pressure data from the second terminal device; obtaining acceleration data; the acceleration data is data obtained within a preset time period; preset The duration includes the first moment and the second moment; based on the acceleration data, it is determined whether the first terminal device is in the first state; the first state is used to indicate that the first terminal device is in at least two moments when the first terminal device is in the first state. Located at different altitudes; when the first terminal device is not in the first state, it is determined based on the first air pressure data obtained at the first moment and the second air pressure data obtained at the second moment that the first terminal device is in a walking and climbing state; wherein, in The first terminal device in the walking climbing state is located at different altitudes at the first moment and the second moment. In this way, when the terminal device does not have a barometer, the first terminal device obtains the air pressure data from the second device based on the instruction message, so that the climbing state identification method provided by the embodiment of the present application can be applied to more types of first terminal devices. Terminal Equipment.
第三方面,本申请实施例提供一种爬高状态识别装置,获取单元,用于获取加速 度数据;加速度数据为预设时长内获取的数据;预设时长中包括第一时刻以及第二时刻;处理单元,用于基于加速度数据,确定第一终端设备是否处于第一状态,第一状态用于指示第一终端设备处于第一状态时第一终端设备在至少两个时刻位于不同的海拔;当第一终端设备不是处于第一状态,处理单元,还用于基于第一时刻获得的第一气压数据和第二时刻获得的第二气压数据确定第一终端设备处于步行爬高状态;其中,处于步行爬高状态的第一终端设备在第一时刻和第二时刻位于不同的海拔。In the third aspect, embodiments of the present application provide a climbing state recognition device and an acquisition unit for acquiring acceleration degree data; the acceleration data is data obtained within a preset time period; the preset time period includes the first moment and the second moment; the processing unit is configured to determine whether the first terminal device is in the first state based on the acceleration data, and the first state It is used to indicate that when the first terminal device is in the first state, the first terminal device is located at different altitudes at at least two moments; when the first terminal device is not in the first state, the processing unit is also used to obtain the first terminal device based on the first moment. The first air pressure data and the second air pressure data obtained at the second moment determine that the first terminal device is in the walking and climbing state; wherein, the first terminal device in the walking and climbing state is located at different altitudes at the first moment and the second moment.
在一种可能的实现方式中,处理单元,具体用于确定第一气压数据对应的海拔与第二气压数据对应的海拔之间的差值,得到海拔差值;在海拔差值大于第一阈值时,处理单元,还具体用于确定第一终端设备处于步行爬高状态。In a possible implementation, the processing unit is specifically configured to determine the difference between the altitude corresponding to the first air pressure data and the altitude corresponding to the second air pressure data, and obtain the altitude difference; when the altitude difference is greater than the first threshold At this time, the processing unit is also specifically configured to determine that the first terminal device is in a walking and climbing state.
在一种可能的实现方式中,第一状态包括下述一种或多种:飞行爬高状态、电梯爬高状态、乘车爬高状态、骑行爬高状态、滑板车爬高状态、或平衡车爬高状态。In a possible implementation, the first state includes one or more of the following: flight climbing state, elevator climbing state, riding car climbing state, riding climbing state, scooter climbing state, or Balance car climbing state.
在一种可能的实现方式中,第一气压数据为第二终端设备在检测到气压发生变化后采集的变化后的数据。In a possible implementation, the first air pressure data is changed data collected by the second terminal device after detecting a change in air pressure.
在一种可能的实现方式中,获取单元,还用于获取第三时刻对应的计步器数据;第三时刻对应的计步器数据为第一时刻后步数第一次发生变化时对应的数据;处理单元,还用于确定第一时刻与第三时刻的差值,得到时间差值;在海拔差值大于第一阈值时,在海拔差值大于第一阈值,且时间差值小于第二阈值时,处理单元,还用于确定第一终端设备处于步行爬高状态。In a possible implementation, the acquisition unit is also used to acquire the pedometer data corresponding to the third moment; the pedometer data corresponding to the third moment is the pedometer data corresponding to the first change in the number of steps after the first moment. data; the processing unit is also used to determine the difference between the first moment and the third moment to obtain the time difference; when the altitude difference is greater than the first threshold, when the altitude difference is greater than the first threshold and the time difference is less than the When the second threshold is reached, the processing unit is also used to determine that the first terminal device is in a walking and climbing state.
在一种可能的实现方式中,获取单元,还用于获取第一时刻以及第二时刻之间的多个基站编号信息;当多个基站编号信息的变化次数超过第三阈值,海拔差值小于或等于第一阈值,和/或,时间差值大于或等于第二阈值时,处理单元,还用于确定第一终端设备未处于步行爬高状态。In a possible implementation, the acquisition unit is also used to acquire multiple base station number information between the first moment and the second moment; when the number of changes in the multiple base station number information exceeds the third threshold, the altitude difference is less than or equal to the first threshold, and/or, when the time difference is greater than or equal to the second threshold, the processing unit is also configured to determine that the first terminal device is not in a walking and climbing state.
在一种可能的实现方式中,在确定第一终端设备处于步行爬高状态的情况下,处理单元,还用于确定第一计步器数据以及第二计步器数据的和,得到步数累加值;其中,第一计步器数据为第一时刻获取的计步器数据,第二计步器数据为第二时刻获取的计步器数据;在步数累加值大于海拔差值与第四阈值的乘积时,处理单元,还用于确定海拔差值为步行爬高状态下的爬升高度。In a possible implementation, when it is determined that the first terminal device is in a walking and climbing state, the processing unit is also configured to determine the sum of the first pedometer data and the second pedometer data to obtain the number of steps. Accumulated value; wherein, the first pedometer data is the pedometer data obtained at the first moment, and the second pedometer data is the pedometer data obtained at the second moment; when the accumulated value of steps is greater than the altitude difference and the When the product of four thresholds is used, the processing unit is also used to determine the altitude difference as the climbing height in the walking climbing state.
在一种可能的实现方式中,显示单元,还用于显示第一界面;第一界面中包括用于指示开始运动记录的第一控件;在接收到针对第一控件的操作时,显示单元,还用于显示第二界面;其中,第二界面中包括爬升高度。In a possible implementation, the display unit is also used to display a first interface; the first interface includes a first control for instructing to start motion recording; when receiving an operation for the first control, the display unit, It is also used to display the second interface; wherein the second interface includes the climbing height.
在一种可能的实现方式中,在第一终端设备接收到结束运动记录的操作时,显示单元,还用于显示第三界面;其中,第三界面中包括用于指示最高爬升高度的信息、以及用于查看运动图表的第二控件;在第一终端设备接收到针对第二控件的操作时,显示单元,还用于显示第四界面;第四界面中包括:用于指示爬升高度变化情况的图表。In a possible implementation, when the first terminal device receives an operation to end the motion recording, the display unit is also used to display a third interface; wherein the third interface includes information indicating the maximum climbing altitude, And a second control for viewing the motion chart; when the first terminal device receives an operation for the second control, the display unit is also used to display a fourth interface; the fourth interface includes: used to indicate changes in climbing altitude chart.
在一种可能的实现方式中,方法还包括:当第一终端设备处于第一状态时,处理单元,还用于确定第一终端设备不是处于步行爬高状态。In a possible implementation, the method further includes: when the first terminal device is in the first state, the processing unit is also configured to determine that the first terminal device is not in a walking and climbing state.
在一种可能的实现方式中,第一终端设备中包括:蓝牙硬件抽象层BT HAL、连接服务模块以及预设HAL,BT HAL以及预设HAL位于HAL中,连接服务模块位于应用程 序框架层中,处理单元,还用于:获取第一气压数据以及第二气压数据;第一气压数据以及第二气压数据均为第二终端设备基于蓝牙发送的;将第一气压数据以及第二气压数据发送至连接服务模块;将第一气压数据以及第二气压数据发送至预设HAL;基于第一气压数据和第二气压数据确定第一终端设备处于步行爬高状态。In a possible implementation, the first terminal device includes: Bluetooth hardware abstraction layer BT HAL, a connection service module and a default HAL. The BT HAL and the default HAL are located in the HAL, and the connection service module is located in the application program. In the sequence framework layer, the processing unit is also used to: obtain the first air pressure data and the second air pressure data; the first air pressure data and the second air pressure data are both sent by the second terminal device based on Bluetooth; convert the first air pressure data and the second air pressure data The second air pressure data is sent to the connection service module; the first air pressure data and the second air pressure data are sent to the preset HAL; and it is determined based on the first air pressure data and the second air pressure data that the first terminal device is in a walking and climbing state.
在一种可能的实现方式中,第一终端设备中还包括:预设传感器控制中心sensor hub,处理模块,具体用于基于加速度数据,确定第一终端设备是否处于第一状态。In a possible implementation, the first terminal device further includes: a preset sensor control center sensor hub and a processing module, specifically configured to determine whether the first terminal device is in the first state based on acceleration data.
在一种可能的实现方式中,HAL中还包括:调制解调器modem HAL,获取模块,还用于获取第一时刻以及第二时刻之间的多个基站编号信息;处理模块,还用于:将多个基站编号信息发送预设HAL;当多个基站编号信息的变化次数超过第三阈值,海拔差值小于或等于第一阈值,和/或,时间差值大于或第二阈值时,确定第一终端设备未处于步行爬高状态。In a possible implementation, the HAL also includes: a modem HAL, an acquisition module, which is also used to acquire multiple base station number information between the first moment and the second moment; and a processing module, which is also used to: The preset HAL is sent to each base station number information; when the number of changes of multiple base station number information exceeds the third threshold, the altitude difference is less than or equal to the first threshold, and/or the time difference is greater than or the second threshold, the first The terminal device is not in the walking climbing state.
第四方面,本申请实施例提供一种爬高状态识别方法,方法包括:通信单元,用于与第二终端设备建立通信连接;通信单元,还用于向第二终端设备发送第一指令;第一指令用于指示第二终端设备获取气压发生变化后采集的第一气压数据以及第二气压数据;通信单元,用于接收来自第二终端设备的第一气压数据以及第二气压数据;获取单元,用于获取加速度数据;加速度数据为预设时长内获取的数据;预设时长中包括第一时刻以及第二时刻;处理单元,用于基于加速度数据,确定第一终端设备是否处于第一状态;第一状态用于指示第一终端设备处于第一状态时第一终端设备在至少两个时刻位于不同的海拔;当第一终端设备不是处于第一状态,处理单元,还用于基于第一时刻获得的第一气压数据和第二时刻获得的第二气压数据确定第一终端设备处于步行爬高状态;其中,处于步行爬高状态的第一终端设备在第一时刻和第二时刻位于不同的海拔。In a fourth aspect, embodiments of the present application provide a method for identifying a climbing state. The method includes: a communication unit configured to establish a communication connection with a second terminal device; the communication unit further configured to send a first instruction to the second terminal device; The first instruction is used to instruct the second terminal device to obtain the first air pressure data and the second air pressure data collected after the air pressure changes; the communication unit is used to receive the first air pressure data and the second air pressure data from the second terminal device; obtain The unit is used to obtain acceleration data; the acceleration data is data obtained within a preset time period; the preset time period includes the first moment and the second moment; the processing unit is used to determine whether the first terminal device is in the first state based on the acceleration data. state; the first state is used to indicate that when the first terminal device is in the first state, the first terminal device is located at different altitudes at at least two moments; when the first terminal device is not in the first state, the processing unit is also used to indicate based on the first terminal device The first air pressure data obtained at one moment and the second air pressure data obtained at the second moment determine that the first terminal device is in the walking and climbing state; wherein, the first terminal device in the walking and climbing state is located at the first moment and the second moment. Different altitudes.
第五方面,本申请实施例提供一种终端设备,包括处理器和存储器,存储器用于存储代码指令;处理器用于运行代码指令,使得终端设备以执行如第一方面或第一方面的任一种实现方式中描述的方法,使得终端设备以执行如第二方面或第二方面的任一种实现方式中描述的方法。In a fifth aspect, embodiments of the present application provide a terminal device, including a processor and a memory. The memory is used to store code instructions; the processor is used to run the code instructions, so that the terminal device can execute the first aspect or any one of the first aspects. The method described in the first implementation manner enables the terminal device to perform the method described in the second aspect or any implementation manner of the second aspect.
第六方面,本申请实施例提供一种计算机可读存储介质,计算机可读存储介质存储有指令,当指令被执行时,使得计算机执行如第一方面或第一方面的任一种实现方式中描述的方法,使得终端设备以执行如第二方面或第二方面的任一种实现方式中描述的方法。In a sixth aspect, embodiments of the present application provide a computer-readable storage medium. The computer-readable storage medium stores instructions. When the instructions are executed, the computer executes as in the first aspect or any implementation of the first aspect. The described method enables the terminal device to perform the method described in the second aspect or any implementation of the second aspect.
第七方面,一种计算机程序产品,包括计算机程序,当计算机程序被运行时,使得计算机执行如第一方面或第一方面的任一种实现方式中描述的方法,使得终端设备以执行如第二方面或第二方面的任一种实现方式中描述的方法。A seventh aspect, a computer program product, including a computer program, when the computer program is run, causes the computer to execute the method described in the first aspect or any implementation of the first aspect, causing the terminal device to execute the method as described in the first aspect. The method described in the second aspect or any implementation of the second aspect.
应当理解的是,本申请的第三方面至第七方面与本申请的第一方面的至第二方面中的技术方案相对应,各方面及对应的可行实施方式所取得的有益效果相似,不再赘述。It should be understood that the third to seventh aspects of the present application correspond to the technical solutions in the first to second aspects of the present application, and the beneficial effects achieved by each aspect and the corresponding feasible implementations are similar and different. Again.
附图说明Description of drawings
图1为本申请实施例提供的一种场景示意图;Figure 1 is a schematic diagram of a scenario provided by an embodiment of the present application;
图2为本申请实施例提供的一种终端设备的硬件结构示意图;Figure 2 is a schematic diagram of the hardware structure of a terminal device provided by an embodiment of the present application;
图3为本申请实施例提供的一种终端设备的软件结构示意图; Figure 3 is a schematic diagram of the software structure of a terminal device provided by an embodiment of the present application;
图4为本申请实施例提供的一种爬高状态识别方法的流程示意图;Figure 4 is a schematic flowchart of a climbing state identification method provided by an embodiment of the present application;
图5为本申请实施例提供的一种开始运动的界面示意图;Figure 5 is a schematic diagram of an interface for starting motion provided by an embodiment of the present application;
图6为本申请实施例提供的一种爬升高度实时显示的界面示意图;Figure 6 is a schematic diagram of an interface for real-time display of climbing height provided by an embodiment of the present application;
图7为本申请实施例提供的一种提示用户进入预设功能的界面示意图;Figure 7 is a schematic diagram of an interface for prompting the user to enter a preset function provided by an embodiment of the present application;
图8为本申请实施例提供的一种爬高状态识别装置的结构示意图;Figure 8 is a schematic structural diagram of a climbing state identification device provided by an embodiment of the present application;
图9为本申请实施例提供的另一种终端设备的硬件结构示意图。Figure 9 is a schematic diagram of the hardware structure of another terminal device provided by an embodiment of the present application.
具体实施方式Detailed ways
为了便于清楚描述本申请实施例的技术方案,在本申请的实施例中,采用了“第一”、“第二”等字样对功能和作用基本相同的相同项或相似项进行区分。例如,第一值和第二值仅仅是为了区分不同的值,并不对其先后顺序进行限定。本领域技术人员可以理解“第一”、“第二”等字样并不对数量和执行次序进行限定,并且“第一”、“第二”等字样也并不限定一定不同。In order to facilitate a clear description of the technical solutions of the embodiments of the present application, in the embodiments of the present application, words such as “first” and “second” are used to distinguish the same or similar items with basically the same functions and effects. For example, the first value and the second value are only used to distinguish different values, and their order is not limited. Those skilled in the art can understand that words such as "first" and "second" do not limit the number and execution order, and words such as "first" and "second" do not limit the number and execution order.
需要说明的是,本申请中,“示例性的”或者“例如”等词用于表示作例子、例证或说明。本申请中被描述为“示例性的”或者“例如”的任何实施例或设计方案不应被解释为比其他实施例或设计方案更优选或更具优势。确切而言,使用“示例性的”或者“例如”等词旨在以具体方式呈现相关概念。It should be noted that in this application, words such as “exemplary” or “for example” are used to represent examples, illustrations or explanations. Any embodiment or design described herein as "exemplary" or "such as" is not intended to be construed as preferred or advantageous over other embodiments or designs. Rather, use of the words "exemplary" or "such as" is intended to present the concept in a concrete manner.
本申请中,“至少一个”是指一个或者多个,“多个”是指两个或两个以上。“和/或”,描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B的情况,其中A,B可以是单数或者复数。字符“/”一般表示前后关联对象是一种“或”的关系。“以下至少一项(个)”或其类似表达,是指的这些项中的任意组合,包括单项(个)或复数项(个)的任意组合。例如,a,b,或c中的至少一项(个),可以表示:a,b,c,a和b,a和c,b和c,或a、b和c,其中a,b,c可以是单个,也可以是多个。In this application, "at least one" refers to one or more, and "plurality" refers to two or more. "And/or" describes the association of associated objects, indicating that there can be three relationships, for example, A and/or B, which can mean: A exists alone, A and B exist simultaneously, and B exists alone, where A, B can be singular or plural. The character "/" generally indicates that the related objects are in an "or" relationship. "At least one of the following" or similar expressions thereof refers to any combination of these items, including any combination of a single item (items) or a plurality of items (items). For example, at least one of a, b, or c can represent: a, b, c, a and b, a and c, b and c, or a, b and c, where a, b, c can be single or multiple.
可以理解的是,爬高状态识别可以用于实现用户在登山、或爬楼梯等爬高场景中的运动状态的识别,本申请实施例中描述爬高状态识别方法可以用于实现对于步行爬高状态的识别。其中,步行爬高状态可以理解为携带终端设备的用户在步行或跑步等过程中,由步数变化引起的终端设备所处位置处的海拔的升高,或可以理解为终端设备所处位置处的海拔随着用户的步数的增加而升高。It can be understood that the climbing state recognition can be used to identify the user's motion state in climbing scenes such as mountain climbing or stair climbing. The climbing state recognition method described in the embodiment of this application can be used to realize walking and climbing. Status identification. Among them, the walking-climbing state can be understood as the increase in altitude at the location of the terminal device caused by changes in the number of steps when the user carrying the terminal device is walking or running, or it can be understood as the increase in altitude at the location of the terminal device. The elevation of increases as the user steps.
一种实现中,部分拥有气压传感器的终端设备可以基于用于识别爬高状态的模型,实现对于爬高状态的识别。然而,由于在爬高状态识别过程中,终端设备无法解决干扰场景对于爬高状态的影响,而终端设备可能将干扰场景误判为爬高状态,使得爬高状态识别的准确性较低。In one implementation, some terminal devices with air pressure sensors can recognize the climbing state based on a model used to identify the climbing state. However, during the climbing state recognition process, the terminal device cannot solve the impact of the interference scene on the climbing state, and the terminal device may misjudge the interference scene as the climbing state, making the climbing state recognition less accurate.
其中,该干扰场景也可以称为第一状态,第一状态用于指示终端设备处于该第一状态时终端设备在至少两个时刻位于不同的海拔。可以理解为,当终端设备的海拔发生变化,且基于加速度数据确定终端设备属于下述飞飞行、乘车、骑行、电梯、滑板车、或平衡车中的任一种状态时,可以确定终端设备满足第一状态。The interference scenario may also be called the first state, and the first state is used to indicate that when the terminal device is in the first state, the terminal device is located at different altitudes at at least two moments. It can be understood that when the altitude of the terminal device changes and it is determined based on the acceleration data that the terminal device belongs to any of the following states: flying, riding, riding, elevator, scooter, or balancing car, it can be determined that the terminal The device satisfies the first state.
例如,该第一状态可以包括下述一种或多种:飞机场景(或称为飞行爬高状态)、乘车场景(或称为乘车爬高状态)、骑行场景(或称为骑行爬高状态)、电梯场景(或称为 电梯爬高状态)、滑板车场景(或称为滑板车爬高状态)、或平衡车场景(或称为平衡车爬高状态)等。该干扰场景可以根据实际情况包括其他内容,本申请实施例中对此不做限定。For example, the first state may include one or more of the following: an airplane scene (also known as a flight climbing state), a car riding scene (also called a car climbing state), a riding scene (also called a riding scene) climbing state), elevator scene (also known as Elevator climbing state), scooter scene (also known as scooter climbing state), or balancing car scene (or balancing car climbing state), etc. The interference scenario may include other contents according to the actual situation, which is not limited in the embodiments of this application.
可以理解的是,飞行爬高状态可以理解为终端设备处于飞机(或飞行器等)上行的过程中,由飞机(或飞行器)的上行引起的终端设备所处位置处海拔的升高;乘车爬高状态可以理解为终端设备处于乘车爬坡的过程中,由车辆的运动引起的终端设备所处位置处海拔的升高;骑行爬高状态可以理解为用户携带终端设备进行骑行爬坡时,由自行车的运动引起的终端设备所处位置处海拔的升高;电梯爬高状态可以理解为终端设备处于电梯上升的过程中,由电梯上行引起的终端设备所处位置处海拔的升高;滑板车爬高状态可以理解为用户携带终端设备并利用滑板车向高处滑行的过程中,由于滑行运动引起的终端设备所处位置处海拔的升高;平衡车爬高状态可以理解为用户携带终端设备并驾驶平衡车爬坡的过程中,由于平衡车的运动引起的终端设备所处位置处海拔的升高。It can be understood that the flight climbing state can be understood as the increase in altitude of the position of the terminal equipment caused by the upward movement of the aircraft (or aircraft, etc.) when the terminal device is in the process of ascending by car; climbing by car The high state can be understood as the increase in altitude at the location of the terminal device caused by the movement of the vehicle when the terminal device is in the process of riding uphill; the high riding state can be understood as the user carrying the terminal device while riding uphill. When the terminal equipment is in the process of rising, the elevation of the terminal equipment is increased due to the movement of the bicycle; the elevator climbing state can be understood as the terminal equipment is in the process of the elevator rising, and the elevation of the terminal equipment is increased due to the upward movement of the elevator. ; The climbing state of the scooter can be understood as the increase in altitude at the location of the terminal device due to the sliding motion when the user carries the terminal device and uses the scooter to glide to a high place; the climbing state of the balance car can be understood as the user During the process of carrying the terminal device and driving the balance car uphill, the altitude of the location of the terminal device increases due to the movement of the balance car.
有鉴于此,本申请实施例提供一种爬高状态识别方法,第一终端设备获取加速度数据;加速度数据为预设时长内获取的数据,预设时长中包括第一时刻以及第二时刻;基于加速度数据,确定第一终端设备是否处于第一状态,第一状态用于指示第一终端设备处于第一状态时第一终端设备在至少两个时刻位于不同的海拔;当第一终端设备不是处于第一状态,基于第一时刻获得的第一气压数据和第二时刻获得的第二气压数据确定第一终端设备处于步行爬高状态;其中,处于步行爬高状态的第一终端设备在第一时刻和第二时刻位于不同的海拔。这样,使得第一终端设备可以通过对影响爬高状态识别的第一状态的识别,避免将第一状态误认为爬高状态,提高爬高状态识别的准确性。其中,该第一终端设备可以为本申请实施例中描述的终端设备。In view of this, embodiments of the present application provide a method for identifying a climbing state. The first terminal device obtains acceleration data; the acceleration data is data obtained within a preset time period, and the preset time period includes the first moment and the second moment; based on Acceleration data determines whether the first terminal device is in the first state. The first state is used to indicate that when the first terminal device is in the first state, the first terminal device is located at different altitudes at at least two moments; when the first terminal device is not in In the first state, it is determined based on the first air pressure data obtained at the first moment and the second air pressure data obtained at the second moment that the first terminal device is in the walking and climbing state; wherein, the first terminal device in the walking and climbing state is in the first state. moment and the second moment are located at different altitudes. In this way, the first terminal device can avoid mistaking the first state for the climbing state by identifying the first state that affects the recognition of the climbing state, and improve the accuracy of the recognition of the climbing state. The first terminal device may be the terminal device described in the embodiments of this application.
另一种实现中,部分未拥有气压传感器的终端设备则难以独立实现对于爬高状态的识别。In another implementation, it is difficult for some terminal devices that do not have air pressure sensors to independently recognize the climbing state.
有鉴于此,本申请实施例提供另一种爬高状态识别方法,第一终端设备与第二终端设备建立通信连接;第一终端设备向第二终端设备发送第一指令;第一指令用于指示第二终端设备获取气压发生变化后采集的气压数据;第一终端设备接收来自第二终端设备的气压数据;第一终端设备获取加速度数据;第一终端设备根据加速度数据,确定第一终端设备是否处于第一状态;第一状态用于指示第一终端设备处于第一状态时第一终端设备在至少两个时刻位于不同的海拔;进而第一终端设备可以基于第一气压数据以及第二气压数据识别第一终端设备是否处于爬高状态。这样,使得第一终端设备可以通过对影响爬高状态识别的第一状态的识别,避免将第一状态误认为爬高状态;进而第二终端设备可以获取气压数据,并将气压数据发送至第一终端设备,使得第一终端设备可以基于气压数据以及干扰场景的识别,提高爬高状态识别的准确性。其中,该第二终端设备可以为本申请实施例中描述的可穿戴设备。In view of this, embodiments of the present application provide another method for identifying the climbing state. The first terminal device establishes a communication connection with the second terminal device; the first terminal device sends a first instruction to the second terminal device; the first instruction is used to Instruct the second terminal device to obtain the air pressure data collected after the air pressure changes; the first terminal device receives the air pressure data from the second terminal device; the first terminal device obtains the acceleration data; the first terminal device determines the first terminal device based on the acceleration data Whether it is in the first state; the first state is used to indicate that when the first terminal device is in the first state, the first terminal device is located at different altitudes at at least two moments; furthermore, the first terminal device can be based on the first air pressure data and the second air pressure The data identifies whether the first terminal device is in a climbing state. In this way, the first terminal device can avoid mistaking the first state for the climbing state by identifying the first state that affects the recognition of the climbing state; and then the second terminal device can obtain the air pressure data and send the air pressure data to the third terminal device. A terminal device enables the first terminal device to improve the accuracy of climbing status identification based on the identification of air pressure data and interference scenes. Wherein, the second terminal device may be the wearable device described in the embodiments of this application.
可以理解的是,针对未拥有气压传感器的终端设备来说,其可以通过与终端设备连接的可穿戴设备获取气压数据,进而基于气压数据进行爬高状态识别。It can be understood that for a terminal device that does not have an air pressure sensor, it can obtain air pressure data through a wearable device connected to the terminal device, and then identify the climbing status based on the air pressure data.
示例性的,针对无法获取气压数据的终端设备,终端设备可以基于图1对应的实施例获取运动过程中的其他运动数据。图1为本申请实施例提供的一种场景示意图。在图1对应的实施例中,以终端设备为手机为例进行示例说明,该示例并不构成对本申请实施例的 限定。For example, for a terminal device that cannot obtain air pressure data, the terminal device can obtain other motion data during the motion based on the embodiment corresponding to FIG. 1 . Figure 1 is a schematic diagram of a scenario provided by an embodiment of the present application. In the embodiment corresponding to Figure 1, the terminal device is a mobile phone as an example for illustration. This example does not constitute a limitation of the embodiments of the present application. limited.
当用户爬山或者爬楼梯时,用户可以利用终端设备的运动健康应用记录户外跑步等场景中的多种运动数据。例如,当用户打开运动健康应用中的户外跑步功能,并触发开始运动记录对应的控件时,终端设备可以对用户的跑步状态进行检测,并将检测到的运动数据显示在终端设备中。例如,终端设备可以对用户跑步38′46″的运动数据进行检测,如终端设备可以显示如图1中的a所示的界面,该界面中可以包括:用于指示GPS正在搜索的文字信息、用于开启音乐的控件、用于拍摄照片的控件、地图、用于指示跑步长度的信息、用于指示跑步用时的信息、用于指示跑步消耗热量的信息、用于指示跑步配速的信息、用于指示跑步配速的信息、用于指示跑步心率变化的信息、用于锁屏的控件、用于设置音量的控件、以及用于暂停记录的控件等。使得用户可以在如图1中的a所示的界面中,随时查看运动过程中的状态信息。When users climb mountains or stairs, users can use the sports and health application of the terminal device to record various sports data in scenes such as outdoor running. For example, when a user turns on the outdoor running function in a sports and health application and triggers the control corresponding to starting exercise recording, the terminal device can detect the user's running status and display the detected exercise data on the terminal device. For example, the terminal device can detect the movement data of the user running 38'46". For example, the terminal device can display an interface as shown in a in Figure 1. The interface can include: text information indicating that the GPS is searching, Controls for turning on music, controls for taking photos, maps, information indicating running length, information indicating running time, information indicating running calories burned, information indicating running pace, Information used to indicate running pace, information used to indicate running heart rate changes, controls for locking the screen, controls for setting the volume, and controls for pausing recording, etc. This allows the user to display the information as shown in Figure 1 In the interface shown in a, you can check the status information during exercise at any time.
当终端设备接收到用户触发结束运动的操作时,终端设备可以显示整个运动过程的全部运动数据,例如终端设备可以在接收到用户查看跑步详情的操作时,显示如图1中的b所示的界面。如图1中的b所示的界面,该界面中可以包括:用于查看跑步轨迹的控件、用于查看配速的控件、用于查看图表的控件、以及用于查看跑步详情的控件等,该用于查看跑步详情的控件为选中状态。图1中的b所示的界面中还包括:用于分享跑步数据的控件、用于指示跑步长度的信息、用于指示运动时间的信息、用于指示运动消耗热量的信息、用于指示运动平均配速的信息、用于指示运动平均速度的信息、用于指示运动步频的信息、用于指示运动平均步幅的信息、以及用于指示运动步数的信息等基础运动数据。When the terminal device receives the user's operation to trigger the end of exercise, the terminal device can display all the exercise data of the entire exercise process. For example, when the terminal device receives the user's operation to view running details, the terminal device can display as shown in b in Figure 1 interface. As shown in b in Figure 1, the interface can include: controls for viewing running tracks, controls for viewing pace, controls for viewing charts, and controls for viewing running details, etc. The control for viewing run details is selected. The interface shown in b in Figure 1 also includes: controls for sharing running data, information for indicating running length, information for indicating exercise time, information for indicating exercise calories consumed, information for indicating exercise Basic motion data such as average pace information, information used to indicate the average speed of exercise, information used to indicate the stride frequency of exercise, information used to indicate the average stride length of exercise, and information used to indicate the number of steps of exercise.
可以理解的是,上述终端设备也可以称为终端,(terminal)、用户设备(user equipment,UE)、移动台(mobile station,MS)、移动终端(mobile terminal,MT)等。终端设备可以为手机(mobile phone)、智能电视、穿戴式设备、平板电脑(Pad)、带无线收发功能的电脑、虚拟现实(virtual reality,VR)终端设备、增强现实(augmented reality,AR)终端设备、工业控制(industrial control)中的无线终端、无人驾驶(self-driving)中的无线终端、远程手术(remote medical surgery)中的无线终端、智能电网(smart grid)中的无线终端、运输安全(transportation safety)中的无线终端、智慧城市(smart city)中的无线终端、智慧家庭(smart home)中的无线终端等等。It can be understood that the above-mentioned terminal equipment can also be called a terminal (terminal), user equipment (user equipment, UE), mobile station (mobile station, MS), mobile terminal (mobile terminal, MT), etc. The terminal device can be a mobile phone (mobile phone), smart TV, wearable device, tablet computer (Pad), computer with wireless transceiver function, virtual reality (VR) terminal device, augmented reality (AR) terminal Equipment, wireless terminals in industrial control, wireless terminals in self-driving, wireless terminals in remote medical surgery, wireless terminals in smart grid, transportation Wireless terminals in transportation safety, wireless terminals in smart city, wireless terminals in smart home, etc.
上述可穿戴设备可以为:智能手表、智能手环、智能手套等,本申请的实施例对可穿戴设备所采用的具体技术和具体设备形态不做限定。The above-mentioned wearable devices may be: smart watches, smart bracelets, smart gloves, etc. The embodiments of this application do not limit the specific technology and specific device form used by the wearable devices.
因此,为了能够更好地理解本申请实施例,下面对本申请实施例的终端设备的结构进行介绍。示例性的,图2为本申请实施例提供的一种终端设备的结构示意图。Therefore, in order to better understand the embodiments of the present application, the structure of the terminal device of the embodiments of the present application is introduced below. For example, FIG. 2 is a schematic structural diagram of a terminal device provided by an embodiment of the present application.
终端设备可以包括处理器110,外部存储器接口120,内部存储器121,通用串行总线(universal serial bus,USB)接口130,充电管理模块140,电源管理模块141,天线1,天线2,移动通信模块150,无线通信模块160,音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,传感器模块180,按键190,指示器192,摄像头193,以及显示屏194等。The terminal device may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, an antenna 1, an antenna 2, and a mobile communication module. 150. Wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, headphone interface 170D, sensor module 180, button 190, indicator 192, camera 193, and display screen 194, etc.
其中,传感器模块180可以包括:加速度传感器180E、触摸传感器180K以及计步器180N。可能的实现方式中,该传感器模块180中还可以包括:压力传感器,陀螺仪传感器,磁传感器,距离传感器,接近光传感器,指纹传感器,温度传感器,环境光传感器,骨传 导传感器等(图2中未示出)。Among them, the sensor module 180 may include: an acceleration sensor 180E, a touch sensor 180K, and a pedometer 180N. In a possible implementation, the sensor module 180 may also include: a pressure sensor, a gyroscope sensor, a magnetic sensor, a distance sensor, a proximity light sensor, a fingerprint sensor, a temperature sensor, an ambient light sensor, and a bone sensor. sensor, etc. (not shown in Figure 2).
可能的实现方式中,在终端设备可以独立进行爬高状态识别的场景中,该传感器模块180中可以包括气压传感器180C。或者,在终端设备无法独立进行爬高状态识别的场景中,该传感器模块180中可以不包括气压传感器180C,可以理解的是此时终端设备可以利用其他设备(如可穿戴设备)中的气压传感器,辅助终端设备完成爬高状态识别的过程。In a possible implementation, in a scenario where the terminal device can independently identify the climbing state, the sensor module 180 may include an air pressure sensor 180C. Alternatively, in a scenario where the terminal device cannot independently identify the climbing status, the sensor module 180 may not include the air pressure sensor 180C. It is understood that the terminal device may use air pressure sensors in other devices (such as wearable devices) at this time. , assisting the terminal device to complete the process of identifying the climbing status.
可以理解的是,本申请实施例示意的结构并不构成对终端设备的具体限定。在本申请另一些实施例中,终端设备可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。It can be understood that the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the terminal device. In other embodiments of the present application, the terminal device may include more or less components than shown in the figures, or some components may be combined, or some components may be separated, or may be arranged differently. The components illustrated may be implemented in hardware, software, or a combination of software and hardware.
处理器110可以包括一个或多个处理单元。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。处理器110中还可以设置存储器,用于存储指令和数据。Processor 110 may include one or more processing units. Among them, different processing units can be independent devices or integrated in one or more processors. The processor 110 may also be provided with a memory for storing instructions and data.
USB接口130是符合USB标准规范的接口,具体可以是Mini USB接口,Micro USB接口,USB Type C接口等。USB接口130可以用于连接充电器为终端设备充电,也可以用于终端设备与外围设备之间传输数据。也可以用于连接耳机,通过耳机播放音频。该接口还可以用于连接其他电子设备,例如AR设备等。The USB interface 130 is an interface that complies with the USB standard specification, and may be a Mini USB interface, a Micro USB interface, a USB Type C interface, etc. The USB interface 130 can be used to connect a charger to charge the terminal device, and can also be used to transmit data between the terminal device and peripheral devices. It can also be used to connect headphones to play audio through them. This interface can also be used to connect other electronic devices, such as AR devices, etc.
充电管理模块140用于从充电器接收充电输入。其中,充电器可以是无线充电器,也可以是有线充电器。电源管理模块141用于连接充电管理模块140与处理器110。The charging management module 140 is used to receive charging input from the charger. Among them, the charger can be a wireless charger or a wired charger. The power management module 141 is used to connect the charging management module 140 and the processor 110 .
终端设备的无线通信功能可以通过天线1,天线2,移动通信模块150,无线通信模块160,调制解调处理器以及基带处理器等实现。The wireless communication function of the terminal device can be implemented through antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, modem processor and baseband processor, etc.
天线1和天线2用于发射和接收电磁波信号。终端设备中的天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals. Antennas in end devices can be used to cover single or multiple communication bands. Different antennas can also be reused to improve antenna utilization.
移动通信模块150可以提供应用在终端设备上的包括2G/3G/4G/5G等无线通信的解决方案。移动通信模块150可以包括至少一个滤波器,开关,功率放大器,低噪声放大器(low noise amplifier,LNA)等。移动通信模块150可以由天线1接收电磁波,并对接收的电磁波进行滤波,放大等处理,传送至调制解调处理器进行解调。The mobile communication module 150 can provide wireless communication solutions including 2G/3G/4G/5G applied to terminal devices. The mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves through the antenna 1, perform filtering, amplification and other processing on the received electromagnetic waves, and transmit them to the modem processor for demodulation.
无线通信模块160可以提供应用在终端设备上的包括无线局域网(wirelesslocal area networks,WLAN)(如无线保真(wireless fidelity,Wi-Fi)网络),蓝牙(bluetooth,BT),全球导航卫星系统(global navigation satellite system,GNSS),调频(frequency modulation,FM)等无线通信的解决方案。The wireless communication module 160 can provide applications including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) network), Bluetooth (BT), and global navigation satellite systems (WLAN) applied to terminal devices. Global navigation satellite system (GNSS), frequency modulation (frequency modulation, FM) and other wireless communication solutions.
终端设备通过GPU,显示屏194,以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏194和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。The terminal device implements display functions through the GPU, the display screen 194, and the application processor. The GPU is an image processing microprocessor and is connected to the display screen 194 and the application processor. GPUs are used to perform mathematical and geometric calculations for graphics rendering.
显示屏194用于显示图像,视频等。显示屏194包括显示面板。在一些实施例中,终端设备可以包括1个或N个显示屏194,N为大于1的正整数。The display screen 194 is used to display images, videos, etc. Display 194 includes a display panel. In some embodiments, the terminal device may include 1 or N display screens 194, where N is a positive integer greater than 1.
终端设备可以通过ISP,摄像头193,视频编解码器,GPU,显示屏194以及应用处理器等实现拍摄功能。The terminal device can realize the shooting function through the ISP, camera 193, video codec, GPU, display screen 194 and application processor.
摄像头193用于捕获静态图像或视频。在一些实施例中,终端设备可以包括1个或N个摄像头193,N为大于1的正整数。 Camera 193 is used to capture still images or video. In some embodiments, the terminal device may include 1 or N cameras 193, where N is a positive integer greater than 1.
外部存储器接口120可以用于连接外部存储卡,例如Micro SD卡,实现扩展终端设备的存储能力。外部存储卡通过外部存储器接口120与处理器110通信,实现数据存储功能。例如将音乐,视频等文件保存在外部存储卡中。The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the terminal device. The external memory card communicates with the processor 110 through the external memory interface 120 to implement the data storage function. Such as saving music, videos, etc. files in external memory card.
内部存储器121可以用于存储计算机可执行程序代码,可执行程序代码包括指令。内部存储器121可以包括存储程序区和存储数据区。Internal memory 121 may be used to store computer executable program code, which includes instructions. The internal memory 121 may include a program storage area and a data storage area.
终端设备可以通过音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,以及应用处理器等实现音频功能。例如音乐播放,录音等。The terminal device can implement audio functions through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone interface 170D, and the application processor. Such as music playback, recording, etc.
音频模块170用于将数字音频信息转换成模拟音频信号输出,也用于将模拟音频输入转换为数字音频信号。扬声器170A,也称“喇叭”,用于将音频电信号转换为声音信号。终端设备可以通过扬声器170A收听音乐,或收听免提通话。受话器170B,也称“听筒”,用于将音频电信号转换成声音信号。当终端设备接听电话或语音信息时,可以通过将受话器170B靠近人耳接听语音。耳机接口170D用于连接有线耳机。麦克风170C,也称“话筒”,“传声器”,用于将声音信号转换为电信号。本申请实施例中,终端设备可以拥有设置一个麦克风170C。The audio module 170 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signals. Speaker 170A, also called "speaker", is used to convert audio electrical signals into sound signals. The terminal device can listen to music through the speaker 170A, or listen to hands-free calls. Receiver 170B, also called "earpiece", is used to convert audio electrical signals into sound signals. When the terminal device answers a call or voice message, the voice can be heard by bringing the receiver 170B close to the human ear. The headphone interface 170D is used to connect wired headphones. Microphone 170C, also called "microphone" or "microphone", is used to convert sound signals into electrical signals. In this embodiment of the present application, the terminal device may have a microphone 170C.
气压传感器180C用于测量气压。在一些实施例中,终端设备可以通过气压传感器180C测得的气压数据计算海拔(或也可以称为高度),辅助定位和导航。本申请实施例中,该气压传感器180C测得的气压数据还可以用于实现终端设备进行爬高状态的识别。Air pressure sensor 180C is used to measure air pressure. In some embodiments, the terminal device can calculate the altitude (or can also be called altitude) through the air pressure data measured by the air pressure sensor 180C to assist positioning and navigation. In this embodiment of the present application, the air pressure data measured by the air pressure sensor 180C can also be used to identify the climbing status of the terminal device.
加速度传感器180E可以为三轴(包括x轴、y轴和z轴)加速度传感器,加速度传感器180E可以用于检测终端设备在三个方向上的加速度数据。本申请实施例中,加速度传感器180E检测得到的加速度数据,可以用于终端设备进行干扰场景的检测。The acceleration sensor 180E may be a three-axis (including x-axis, y-axis, and z-axis) acceleration sensor, and the acceleration sensor 180E may be used to detect acceleration data of the terminal device in three directions. In the embodiment of the present application, the acceleration data detected by the acceleration sensor 180E can be used by the terminal device to detect interference scenarios.
触摸传感器180K,也称“触控器件”。触摸传感器180K可以设置于显示屏194,由触摸传感器180K与显示屏194组成触摸屏,或称“触控屏”。Touch sensor 180K, also known as "touch device". The touch sensor 180K can be disposed on the display screen 194, and the touch sensor 180K and the display screen 194 form a touch screen, or "touch screen".
按键190包括开机键,音量键等。按键190可以是机械按键。也可以是触摸式按键。终端设备可以接收按键输入,产生与终端设备的用户设置以及功能控制有关的键信号输入。指示器192可以是指示灯,可以用于指示充电状态,电量变化,也可以用于指示消息,未接来电,通知等。The buttons 190 include a power button, a volume button, etc. Key 190 may be a mechanical key. It can also be a touch button. The terminal device can receive key input and generate key signal input related to user settings and function control of the terminal device. The indicator 192 may be an indicator light, which may be used to indicate charging status, power changes, or may be used to indicate messages, missed calls, notifications, etc.
计步器180N可以用于实现用户携带终端设备时对于的用户步数的检测,例如用户步行时步数的检测、以及用户跑步时步数的检测、用户爬山或爬楼梯等时步数的检测等。The pedometer 180N can be used to detect the number of steps of the user when the user carries the terminal device, such as the detection of the number of steps when the user walks, the detection of the number of steps when the user runs, the detection of the number of steps when the user climbs a mountain or stairs, etc. wait.
终端设备的软件系统可以采用分层架构,事件驱动架构,微核架构,微服务架构,或云架构等,在此不再赘述。The software system of the terminal device can adopt a layered architecture, event-driven architecture, micro-kernel architecture, micro-service architecture, or cloud architecture, etc., which will not be described again here.
本申请实施例以分层架构的安卓(Android)系统为例,示例性说明终端设备的软件结构。示例性的,图3为本申请实施例提供的一种终端设备的软件结构示意图。The embodiment of this application takes the Android system with a layered architecture as an example to illustrate the software structure of the terminal device. Exemplarily, FIG. 3 is a schematic diagram of the software structure of a terminal device provided by an embodiment of the present application.
如图3所示,分层架构将软件分成若干个层,每一层都有清晰的角色和分工。层与层之间通过软件接口通信。在一些实施例中,将Android系统分为四层,从上至下分别为应用程序层、应用程序框架(framework)层,硬件抽象层(hardware abstraction layer,HAL),以及传感器控制中心(sensor hub)层。可以理解的是,该分层架构可以根据实际场景包括其他层,本申请实施例中对此不再赘述。As shown in Figure 3, the layered architecture divides the software into several layers, and each layer has clear roles and division of labor. The layers communicate through software interfaces. In some embodiments, the Android system is divided into four layers, from top to bottom: application layer, application framework (framework) layer, hardware abstraction layer (HAL), and sensor control center (sensor hub) )layer. It can be understood that the layered architecture may include other layers according to actual scenarios, which will not be described again in the embodiments of this application.
其中,应用程序层可以包括一系列应用程序。例如该应用程序层中可以包括:运动健 康应用,该运动健康应用可以用于实现对于用户携带终端设备进行运动时的运动状态的记录。可以理解的是,应用程序层中还可以包括:相机,日历,电话,地图,电话,音乐,设置,邮箱,视频,社交等应用程序(图3中未示出),本申请实施例中对此不做限定。Among them, the application layer can include a series of applications. For example, the application layer may include: sports fitness Health application, this sports health application can be used to record the movement status of the user when carrying the terminal device for exercise. It can be understood that the application layer may also include: camera, calendar, phone, map, phone, music, settings, mailbox, video, social networking and other applications (not shown in Figure 3). In the embodiment of the present application, This is not limited.
应用程序框架层为应用程序层的应用程序提供应用编程接口(application programming interface,API)和编程框架。应用程序框架层包括一些预先定义的函数。The application framework layer provides an application programming interface (API) and programming framework for applications in the application layer. The application framework layer includes some predefined functions.
如图3所示,应用程序框架层中可以包括:连接服务模块(或称为iconnect服务模块)等。该iconnect服务模块用于将HAL层中的BT HAL模块中接收到的硬件数据发送至HAL层中的预设HAL中。可以理解的是,该应用程序框架层中还可以包括:窗口管理器,内容提供器,资源管理器,视图系统,以及通知管理器等(图3中未示出)。As shown in Figure 3, the application framework layer may include: a connection service module (or iconnect service module), etc. The iconnect service module is used to send the hardware data received in the BT HAL module in the HAL layer to the preset HAL in the HAL layer. It can be understood that the application framework layer may also include: a window manager, a content provider, a resource manager, a view system, a notification manager, etc. (not shown in Figure 3).
例如,窗口管理器用于管理窗口程序。窗口管理器可以获取显示屏大小,判断是否有状态栏,锁定屏幕,触摸屏幕,拖拽屏幕,截取屏幕等。内容提供器用来存放和获取数据,并使这些数据可以被应用程序访问。数据可以包括视频,图像,音频,拨打和接听的电话,浏览历史和书签,电话簿等。视图系统包括可视控件,例如显示文字的控件,显示图片的控件等。视图系统可用于构建应用程序。显示界面可以由一个或多个视图组成的。例如,包括短信通知图标的显示界面,可以包括显示文字的视图以及显示图片的视图。资源管理器为应用程序提供各种资源,比如本地化字符串,图标,图片,布局文件,视频文件等等。通知管理器使应用程序可以在状态栏中显示通知信息,可以用于传达告知类型的消息,可以短暂停留后自动消失,无需用户交互。比如通知管理器被用于告知下载完成,消息提醒等。通知管理器还可以是以图表或者滚动条文本形式出现在系统顶部状态栏的通知,例如后台运行的应用程序的通知,还可以是以对话窗口形式出现在屏幕上的通知。例如在状态栏提示文本信息,发出提示音,终端设备振动,指示灯闪烁等。For example, a window manager is used to manage window programs. The window manager can obtain the display size, determine whether there is a status bar, lock the screen, touch the screen, drag the screen, capture the screen, etc. Content providers are used to store and retrieve data and make this data accessible to applications. Data can include videos, images, audio, calls made and received, browsing history and bookmarks, phone books, etc. The view system includes visual controls, such as controls that display text, controls that display pictures, etc. A view system can be used to build applications. The display interface can be composed of one or more views. For example, a display interface including a text message notification icon may include a view for displaying text and a view for displaying pictures. The resource manager provides various resources to applications, such as localized strings, icons, pictures, layout files, video files, etc. The notification manager allows applications to display notification information in the status bar, which can be used to convey notification-type messages and can automatically disappear after a short stay without user interaction. For example, the notification manager is used to notify download completion, message reminders, etc. The notification manager can also be notifications that appear in the status bar at the top of the system in the form of charts or scroll bar text, such as notifications for applications running in the background, or notifications that appear on the screen in the form of conversation windows. For example, text information is prompted in the status bar, a prompt sound is emitted, the terminal device vibrates, and the indicator light flashes, etc.
如图3所示,HAL层的目的在于将硬件抽象化,可以为上层的应用提供一个统一的查询硬件设备的接口,或也可以为上层应用提供数据存储服务,或者为上层应用提供数据处理服务。本申请实施例中HAL层中可以包括:预设HAL、调制解调器(modem)HAL、以及BT HAL等。As shown in Figure 3, the purpose of the HAL layer is to abstract the hardware. It can provide a unified interface for querying hardware devices for upper-layer applications, or it can also provide data storage services for upper-layer applications, or provide data processing services for upper-layer applications. . In the embodiment of the present application, the HAL layer may include: default HAL, modem HAL, BT HAL, etc.
该预设HAL可以为传感器的管理层,该预设HAL可以用于融合各传感器数据,实现高功耗场景下的多模态的数据的融合和计算;该预设HAL可以单独运行用于实现算法的稳定性,或者,该预设HAL也可以耦合HAL层中的其他模块运行。The preset HAL can be the management layer of the sensor. The preset HAL can be used to fuse sensor data to achieve multi-modal data fusion and calculation in high-power consumption scenarios. The preset HAL can be run independently for implementation. The stability of the algorithm, or the preset HAL can also be coupled to the operation of other modules in the HAL layer.
本申请实施例中,该预设HAL用于实现爬高状态识别方法中的爬高算法,在爬高算法中实现各传感器数据的融合和计算。可能的实现方式中,该预设HAL中也可以实现其他算法,如算法1,…,算法N等,本申请实施例中对此不做限定。In the embodiment of the present application, the preset HAL is used to implement the altitude climbing algorithm in the altitude climbing state identification method, and in the altitude climbing algorithm, the fusion and calculation of each sensor data are implemented. In a possible implementation manner, other algorithms can also be implemented in the preset HAL, such as Algorithm 1,..., Algorithm N, etc., which are not limited in the embodiments of this application.
modem HAL用于将获取的modem信息发送至预设HAL。其中,该modem信息中可以包括:基站编号(cell identity,CID)信息、以及无线电接入技术(radio access technology,RAT)信息等。其中,该CID信息可以用于指示基站的切换情况,该RAT信息用于指示终端设备接入的网络情况,例如终端设备接入3G、4G或5G的情况等。modem HAL is used to send the acquired modem information to the default HAL. Among them, the modem information may include: base station number (cell identity, CID) information, radio access technology (radio access technology, RAT) information, etc. The CID information can be used to indicate the switching situation of the base station, and the RAT information is used to indicate the network situation that the terminal device accesses, such as the situation where the terminal device accesses 3G, 4G or 5G.
BT HAL用于将蓝牙传输的硬件数据转发至iconnect服务模块。例如,BT HAL可以用于将可穿戴设备通过蓝牙传输至终端设备的气压数据转发至iconnect服务模块。BT HAL is used to forward the hardware data transmitted by Bluetooth to the iconnect service module. For example, BT HAL can be used to forward the air pressure data transmitted from the wearable device to the terminal device via Bluetooth to the iconnect service module.
sensor hub用于实现低功耗场景中的传感器的控制、传感器数据的获取、融合和处理,sensor hub中可以包括预设sensor hub。本申请实施例中,该预设sensor hub可以用于获取 计步器数据以及加速度数据等;该预设sensor hub还可以用于基于加速度数据实现对于飞机场景、乘车场景、骑行场景、电梯场景、滑板车场景、以及平衡车场景等干扰场景的识别;进而预设sensor hub可以将获取的计步器数据、以及识别得到的干扰场景发送至预设HAL,使得预设HAL可以基于计步器数据、以及干扰场景执行爬高算法,实现对于爬高状态的识别以及爬升高度的检测。The sensor hub is used to control sensors, acquire, fuse, and process sensor data in low-power scenarios. The sensor hub can include a preset sensor hub. In the embodiment of this application, the default sensor hub can be used to obtain Pedometer data and acceleration data, etc.; the preset sensor hub can also be used to realize the recognition of interference scenes such as airplane scenes, ride scenes, riding scenes, elevator scenes, scooter scenes, and balancing car scenes based on acceleration data. ;Then the preset sensor hub can send the obtained pedometer data and the identified interference scenes to the preset HAL, so that the preset HAL can execute the climbing algorithm based on the pedometer data and interference scenes to achieve the goal of climbing. Status recognition and climbing height detection.
可以理解的是,即使在终端设备处于息屏等低功耗状态下,预设sensor hub也可以实现上述传感器数据的获取、融合和处理等功能。It is understandable that even when the terminal device is in a low-power state such as turning off the screen, the preset sensor hub can realize the above-mentioned sensor data acquisition, fusion, and processing functions.
示例性的,结合图3对应的实施例,在运动健康应用接收到用户在户外跑步功能或其他运动中的开始运动记录的操作时,运动健康应用可以向预设HAL发送用于执行爬高算法的指示信息,进而预设HAL可以基于从预设sensor hub获取的计步器数据和干扰场景识别数据,从modem HAL获取的CID信息,以及从iconnect服务模块获取的气压数据等,进行爬高算法的计算,获取爬高状态以及爬升高度等信息。进一步的,预设HAL可以将爬高状态以及爬升高度发送至运动健康应用,使得运动健康应用可以显示在户外跑步功能对应的界面中。Exemplarily, with reference to the embodiment corresponding to Figure 3, when the sports health application receives the user's operation to start exercise recording during outdoor running or other sports, the sports health application may send a height climbing algorithm to the preset HAL. Instruction information, and then the preset HAL can perform a climbing algorithm based on the pedometer data and interference scene identification data obtained from the preset sensor hub, the CID information obtained from the modem HAL, and the air pressure data obtained from the iconnect service module. Calculation to obtain information such as climbing status and climbing height. Furthermore, the preset HAL can send the climbing status and climbing height to the sports health application, so that the sports health application can be displayed in the interface corresponding to the outdoor running function.
可以理解的是,终端设备的软件结构中还可以包括其他层以及其他模块,本申请实施例中对终端设备的软件结构的具体形态不做限定。It can be understood that the software structure of the terminal device may also include other layers and other modules. The specific form of the software structure of the terminal device is not limited in the embodiments of the present application.
下面以具体地实施例对本申请的技术方案以及本申请的技术方案如何解决上述技术问题进行详细说明。下面这几个具体的实施例可以独立实现,也可以相互结合,对于相同或相似的概念或过程可能在某些实施例中不再赘述。The technical solution of the present application and how the technical solution of the present application solves the above technical problems will be described in detail below with specific embodiments. The following specific embodiments can be implemented independently or combined with each other. The same or similar concepts or processes may not be described again in some embodiments.
本申请实施例中,当终端设备中包含计步器且不包含气压传感器,而与终端设备建立通信连接的可穿戴设备中包含气压传感器时,终端设备以及可穿戴设备可以共同执行本申请实施例中描述的爬高状态识别方法(如场景一);或者,当终端设备中包含计步器以及气压传感器时,终端设备可以独立执行本申请实施例中描述的爬高状态识别方法(如场景二);或者,当可穿戴设备中包含内置芯片式用户身份识别模块(embedded-subscriber identity module,eSIM)、气压传感器、以及计步器,并且可穿戴设备具备高功耗场景下执行爬高算法的硬件能力时,可穿戴设备也可以独立执行本申请实施例中描述的爬高状态识别方法(如场景三)。In this embodiment of the present application, when the terminal device includes a pedometer and does not include an air pressure sensor, and the wearable device that establishes a communication connection with the terminal device includes an air pressure sensor, the terminal device and the wearable device can jointly execute the embodiment of the present application. The climbing state identification method described in (such as scenario one); or, when the terminal device includes a pedometer and an air pressure sensor, the terminal device can independently execute the climbing state identification method described in the embodiments of this application (such as scenario two) ); Or, when the wearable device contains a built-in chip-based user identity module (embedded-subscriber identity module, eSIM), air pressure sensor, and pedometer, and the wearable device has the ability to execute the climbing algorithm in a high-power consumption scenario When the hardware capabilities are sufficient, the wearable device can also independently execute the climbing state identification method described in the embodiments of this application (such as scenario 3).
可以理解的是,爬高状态识别方法的执行主体可以根据实际场景包括其他设备,本申请实施例中对此不做具体限定。It can be understood that the execution subject of the climbing state identification method may include other devices according to the actual scenario, which is not specifically limited in the embodiments of the present application.
场景一、终端设备以及可穿戴设备可以共同执行本申请实施例中描述的爬高状态识别方法。其中,在场景一对应的实施例中,终端设备中包含计步器、可穿戴设备中包含气压传感器。Scenario 1: The terminal device and the wearable device can jointly execute the climbing state identification method described in the embodiments of this application. Among them, in the embodiment corresponding to one scenario, the terminal device includes a pedometer, and the wearable device includes an air pressure sensor.
示例性的,当用户携带终端设备以及可穿戴设备登山时,终端设备与可穿戴设备可以协同进行用户登山过程中的爬高状态识别。图4为本申请实施例提供的一种爬高状态识别方法的流程示意图。如图4所示,爬高状态识别方法可以包括如下步骤:For example, when the user carries the terminal device and the wearable device to climb a mountain, the terminal device and the wearable device can cooperate to identify the climbing status of the user during the mountain climbing process. Figure 4 is a schematic flowchart of a climbing state identification method provided by an embodiment of the present application. As shown in Figure 4, the climbing state identification method may include the following steps:
S401、终端设备与可穿戴设备建立通信连接。S401. The terminal device establishes a communication connection with the wearable device.
示例性的,终端设备与可穿戴设备可以通过有线方式建立通信连接;或者,终端设备与可穿戴设备也可以通过无线方式建立通信连接。例如,终端设备与可穿戴设备 可以通过蓝牙、WIFI、或连接到同一云端账号等无线方式建立通信连接,本申请实施例中对终端设备与可穿戴设备建立通信连接的方式不做限定。For example, the terminal device and the wearable device can establish a communication connection through a wired method; or the terminal device and the wearable device can also establish a communication connection through a wireless method. For example, terminal devices and wearable devices The communication connection can be established through wireless methods such as Bluetooth, WIFI, or connecting to the same cloud account. In the embodiments of this application, there is no limit to the method of establishing a communication connection between the terminal device and the wearable device.
S402、终端设备向可穿戴设备发送用于获取气压数据的消息。S402. The terminal device sends a message for obtaining air pressure data to the wearable device.
适应的,可穿戴设备可以获取经由终端设备发送的用于获取气压数据的消息。本申请实施例中,终端设备可以通过蓝牙等方式向可穿戴设备发送用于获取气压数据的消息。Adapted, the wearable device may obtain a message sent via the terminal device for obtaining air pressure data. In this embodiment of the present application, the terminal device may send a message for obtaining air pressure data to the wearable device through Bluetooth or other methods.
示例性的,终端设备可以基于图5对应的实施例触发S402所示的步骤。图5为本申请实施例提供的一种开始运动的界面示意图。Exemplarily, the terminal device may trigger the step shown in S402 based on the embodiment corresponding to FIG. 5 . Figure 5 is a schematic diagram of an interface for starting motion provided by an embodiment of the present application.
当终端设备接收到用户打开运动健康应用中的户外跑步功能时,终端设备可以显示如图5中的a所示的界面,该界面中可以包括:用于指示开始记录运动数据的控件501、用于指示热身的控件、用于指示开启音乐的控件、用于搜索内容的文本框、户外跑步功能对应的控件(该户外跑步功能对应的控件为选中状态)、室内跑步功能对应的控件、瑜伽功能对应的控件、健身功能对应的控件、步行功能对应的控件、推荐课程卡片、用于指示累计跑步(公里)的信息、用于设置跑步目标的控件。图5中的a所示的界面中还包括:运动健康应用底部任务栏中的控件,如用于查看其他运动健康中的功能的健康控件、运动控件、发现控件、设备控件、以及我的控件等。When the terminal device receives that the user has turned on the outdoor running function in the sports and health application, the terminal device may display an interface as shown in a in Figure 5. The interface may include: a control 501 for instructing to start recording exercise data. Controls for instructing warm-up, controls for instructing to turn on music, text box for searching content, controls corresponding to the outdoor running function (the control corresponding to the outdoor running function is selected), controls corresponding to the indoor running function, yoga function Corresponding controls, controls corresponding to fitness functions, controls corresponding to walking functions, recommended course cards, information used to indicate accumulated running (km), and controls used to set running goals. The interface shown in a in Figure 5 also includes: controls in the taskbar at the bottom of the sports health application, such as health controls, sports controls, discovery controls, device controls, and my controls for viewing other functions in sports health. wait.
在如图5中的a所示的界面中,当终端设备接收到用户针对控件501的触发操作时,终端设备可以进行运动倒计时,并在倒计时结束时显示如图5中的b所示的界面,进而向可穿戴设备发送用于获取气压数据的消息,该气压数据可以用于识别爬高状态以及计算爬升高度。如图5中的b所示的界面,该界面中可以包括:用于指示爬升高度的信息502,该界面中显示的其他内容可以参见图1中的a所示的界面中的描述,在此不再赘述。其中,该触发操作可以为点击操作、长按操作、滑动操作或语音操作等,本申请实施例中对此不做限定。In the interface shown in a in Figure 5, when the terminal device receives the user's trigger operation on the control 501, the terminal device can perform a motion countdown, and display the interface shown in b in Figure 5 when the countdown ends. , and then sends a message to the wearable device to obtain air pressure data. The air pressure data can be used to identify the climbing status and calculate the climbing height. As shown in b in Figure 5, the interface may include: information 502 used to indicate the climbing height. For other content displayed in this interface, please refer to the description of the interface shown in a in Figure 1. Here No longer. The triggering operation may be a click operation, a long press operation, a sliding operation or a voice operation, etc., which is not limited in the embodiments of the present application.
可以理解的是,由于刚开启跑步记录,因此图5中的b所示的界面中的用于指示爬升高度的信息502中可以暂时不显示爬升高度;进一步的,终端设备可以基于S403-S414所示的步骤进行爬高状态的识别以及爬升高度的计算,并将计算得到的爬升高度显示在用于指示爬升高度的信息502中,实现爬升高度的实时显示。It can be understood that since the running record has just been started, the climbing height may not be displayed temporarily in the information 502 indicating the climbing height in the interface shown in b in FIG. 5; further, the terminal device may based on S403-S414. The steps shown are to identify the climbing status and calculate the climbing height, and display the calculated climbing height in the information 502 for indicating the climbing height, thereby realizing real-time display of the climbing height.
可以理解的是,触发终端设备执行S402所示的步骤的方法可以不限于图5对应的实施例,本申请实施例中对此不做限定。It can be understood that the method of triggering the terminal device to perform the steps shown in S402 may not be limited to the embodiment corresponding to FIG. 5, and this is not limited in the embodiments of the present application.
可能的实现方式中,可穿戴设备也可以实时将气压数据发生变化时产生的N个气压数据发送至终端设备,因此终端设备也可以不需要执行S402中向可穿戴设备发送指示消息的步骤。In a possible implementation, the wearable device can also send N pieces of air pressure data generated when the air pressure data changes to the terminal device in real time. Therefore, the terminal device does not need to perform the step of sending an instruction message to the wearable device in S402.
示例性的,由于可穿戴设备可以实时将气压数据发生变化时产生的N个气压数据发送至终端设备,因此当终端设备接收到用户在如图5中的a所示的界面中针对控件501的触发操作时,终端设备可以基于N个气压数据执行S405-S414所示的步骤,进行爬高状态识别以及爬升高度检测。For example, since the wearable device can send N pieces of air pressure data generated when the air pressure data changes to the terminal device in real time, when the terminal device receives the user's command for control 501 in the interface as shown in a in Figure 5 When the operation is triggered, the terminal device can perform the steps shown in S405-S414 based on the N pieces of air pressure data to identify the climbing status and detect the climbing height.
S403、当可穿戴设备确定气压数据发生变化时,可穿戴设备采集N个气压数据。S403. When the wearable device determines that the air pressure data changes, the wearable device collects N pieces of air pressure data.
本申请实施例中,该N的取值可以为2、10、50、60、或80等数值,N大于或等于2,可穿戴设备可以5秒采集一次N个气压数据,或也可以为2秒采集一次N个气压数据,本申请实施例中对采集气压数据的时间不做限定。 In the embodiment of this application, the value of N can be a value such as 2, 10, 50, 60, or 80. N is greater than or equal to 2. The wearable device can collect N air pressure data once every 5 seconds, or it can also be 2 N pieces of air pressure data are collected once per second. In the embodiment of this application, the time for collecting air pressure data is not limited.
示例性的,可穿戴设备可以基于气压传感器获取气压数据,在接收到来自终端设备的用于获取气压数据的消息,且检测到气压数据发生变化时,可穿戴设备采集N个气压数据。For example, the wearable device can acquire air pressure data based on the air pressure sensor. When receiving a message for acquiring air pressure data from the terminal device and detecting a change in the air pressure data, the wearable device collects N pieces of air pressure data.
可能的实现方式中,可穿戴设备也可以直接将接收到用于获取气压数据的消息时,可穿戴设备采集的众多气压数据发送至终端设备,由终端设备确定气压数据是否发生变化,并在确定气压数据发生变化时采集N个气压数据。In a possible implementation, the wearable device can also directly send numerous air pressure data collected by the wearable device to the terminal device when receiving a message for obtaining air pressure data. The terminal device determines whether the air pressure data has changed, and determines whether the air pressure data has changed. Collect N pieces of air pressure data when the air pressure data changes.
S404、可穿戴设备向终端设备发送N个气压数据以及N个气压数据分别对应的采集时间。S404. The wearable device sends N pieces of air pressure data and collection times corresponding to the N pieces of air pressure data to the terminal device.
示例性的,可穿戴设备可以基于蓝牙的方式向终端设备发送N个气压数据以及N个气压数据分别对应的采集时间。适应的,终端设备接收到来自可穿戴设备的N个气压数据以及N个气压数据分别对应的采集时间。For example, the wearable device can send N pieces of air pressure data and the collection times corresponding to the N pieces of air pressure data to the terminal device based on Bluetooth. Adapted, the terminal device receives N pieces of air pressure data from the wearable device and the collection times corresponding to the N pieces of air pressure data.
可能的实现方式中,如图3所示,终端设备中的BT HAL可以接收到来自可穿戴设备的N个气压数据以及N个气压数据分别对应的采集时间;进而,BT HAL可以将N个气压数据以及N个气压数据分别对应的采集时间,经由iconnect服务模块转发至预设HAL。In a possible implementation, as shown in Figure 3, the BT HAL in the terminal device can receive N air pressure data from the wearable device and the collection times corresponding to the N air pressure data; furthermore, the BT HAL can receive the N air pressure data. The data and the collection times corresponding to the N air pressure data are forwarded to the preset HAL via the iconnect service module.
S405、终端设备确定N个气压数据中的第一个气压数据对应的高度、该第一个气压数据对应的第一时刻、以及N个计步器数据中步数发生变化时对应的第三时刻。S405. The terminal device determines the altitude corresponding to the first air pressure data among the N pieces of air pressure data, the first time corresponding to the first air pressure data, and the third time corresponding to when the number of steps in the N pieces of pedometer data changes. .
本申请实施例中,该N个气压数据中可以包括:第一个气压数据(或也可以称为第一气压数据,该第一气压数据为第一时刻获取的),第二个气压数据,...,以及第N个气压数据(或也可以称为第二气压数据);由于气压数据与高度之间存在对应关系,因此任一个气压数据可以对应于一个高度数据。其中,当N为2时,第二个气压数据也可以称为第二气压数据。In the embodiment of the present application, the N pieces of air pressure data may include: the first air pressure data (or may also be called the first air pressure data, the first air pressure data is obtained at the first moment), the second air pressure data, ..., and the Nth air pressure data (or can also be called the second air pressure data); since there is a correspondence between air pressure data and altitude, any air pressure data can correspond to an altitude data. Wherein, when N is 2, the second air pressure data may also be called the second air pressure data.
本申请实施例中,该N个计步器数据可以为终端设备基于计步器采集得到的,该N个计步器数据中的任一计步器数据可以用于指示步数变化情况。例如,当第二个采集时刻相对于第一个采集时刻,步数的变化量为5时,则该第二个采集时刻对应的计步器数据可以为5。In this embodiment of the present application, the N pedometer data may be collected by the terminal device based on a pedometer, and any of the N pedometer data may be used to indicate changes in the number of steps. For example, when the change in the number of steps at the second collection time is 5 compared to the first collection time, the pedometer data corresponding to the second collection time may be 5.
示例性的,在终端设备接收到来自可穿戴设备的N个气压数据以及N个气压数据分别对应的采集时间时,终端设备可以按照N个气压数据分别对应的采集时间获取相同采集时间下计步器获取的计步器数据,得到N个采集时间对应的N个计步器数据。For example, when the terminal device receives N pieces of air pressure data from the wearable device and the collection times corresponding to the N pieces of air pressure data, the terminal device can obtain step counting at the same collection time according to the collection times corresponding to the N pieces of air pressure data. The pedometer data obtained by the device is obtained, and N pedometer data corresponding to N collection times are obtained.
S406、终端设备获取加速度数据。S406. The terminal device obtains acceleration data.
示例性的,终端设备可以基于加速度传感器实时获取加速度数据。例如,终端设备可以获取预设时长内的加速度数据进行干扰场景识别,其中,该预设时长可以包括:第一时刻以及第二时刻。For example, the terminal device can obtain acceleration data in real time based on the acceleration sensor. For example, the terminal device can obtain acceleration data within a preset time period for interference scene identification, where the preset time period can include: a first time and a second time.
可以理解的是,在终端设备基于加速度数据确定预设时长内不满足干扰场景的情况下,终端设备可以基于第一时刻的气压数据以及第二时刻的气压数据继续执行爬高状态识别方法中的步骤。It can be understood that, when the terminal device determines that the interference scenario is not satisfied within the preset time period based on the acceleration data, the terminal device can continue to perform the climbing state identification method based on the air pressure data at the first moment and the air pressure data at the second moment. step.
例如,终端设备可以采集加速度数据的频率可以为100赫兹(hz),可以理解为1s采集100次加速度数据,每10毫秒(ms)采集一次加速度数据。For example, the frequency at which the terminal device can collect acceleration data can be 100 hertz (hz), which can be understood as collecting acceleration data 100 times per second and collecting acceleration data every 10 milliseconds (ms).
终端设备获取的加速度数据可以为: The acceleration data obtained by the terminal device can be:
其中,该Acc(t)可以为经过时间戳校准同步的三轴时序数组。 Wherein, the Acc(t) may be a three-axis timing array that has been calibrated and synchronized by timestamps.
S407、终端设备基于加速度数据判断是否满足干扰场景。S407. The terminal device determines whether the interference scenario is satisfied based on the acceleration data.
可以理解的是,由于本申请实施例描述的爬高状态识别方法可以用于实现对于步行爬高场景的识别,因此终端设备可以对于除了步行之外,其他可以引起至少两个时刻海拔发生变化的干扰场景进行识别,并排除该干扰场景带来的气压数据的变化对于步行爬高状态识别的影响。It can be understood that since the climbing state identification method described in the embodiment of the present application can be used to realize the identification of walking and climbing scenes, the terminal device can be used for other things other than walking that can cause changes in altitude at least two moments. Identify the interference scene and eliminate the impact of changes in air pressure data caused by the interference scene on the recognition of walking and climbing conditions.
本申请实施例中,当终端设备基于加速度数据确定满足干扰场景时,终端设备可以执行S411所示的步骤;或者,当终端设备基于加速度数据确定满足干扰场景时,终端设备可以执行S408所示的步骤,进行爬高状态的进一步识别。In the embodiment of the present application, when the terminal device determines that the interference scenario is satisfied based on the acceleration data, the terminal device can perform the steps shown in S411; or, when the terminal device determines that the interference scenario is satisfied based on the acceleration data, the terminal device can perform the steps shown in S408. Steps to further identify the climbing status.
示例性的,终端设备可以对加速度数据进行特征提取,并基于提取到的特征确定是否满足干扰场景。例如,终端设备可以在提取加速度数据中的快速傅里叶变换(fast fourier transform,FFT)特征向量、方差、均值、一阶差分(如包括一阶差分中的方差、均值以及过零点等)、二阶差分等特征;并将上述特征输入至预设模型中,得到识别结果。For example, the terminal device can perform feature extraction on the acceleration data, and determine whether the interference scenario is met based on the extracted features. For example, the terminal device can extract the fast fourier transform (FFT) feature vector, variance, mean, and first-order difference (including the variance, mean, and zero-crossing point in the first-order difference), Second-order difference and other features; and input the above features into the preset model to obtain the recognition result.
以该预设模型为决策树模型为例进行示例说明,该决策数据模块可以用于实现二分类。示例性的,针对如飞机场景、乘车场景、骑行场景、电梯场景、滑板车场景、以及平衡车场景等N个干扰场景,终端设备可以建立N个决策树。例如,针对上述6个干扰场景,终端设备可以建立6个决策树,如:飞机场景与非飞机场景、乘车场景与非乘车场景、骑行场景与非骑行场景、电梯场景与非电梯场景、滑板车场景与非滑板车场景、平衡车场景与非平衡车场景等。进一步的,终端设备可以获取该6个决策树输出结果的最大值对应的场景,得到识别结果,例如当飞机场景与非飞机场景、骑行场景与非骑行场景、电梯场景与非电梯场景、滑板车场景与非滑板车场景、以及平衡车场景与非平衡车场景的输出结果均为趋近于0的数值,而乘车场景与非乘车场景的输出结果为1时,终端设备可以确定该干扰场景的识别结果为乘车场景。Taking the preset model as a decision tree model as an example, the decision data module can be used to implement binary classification. For example, for N interference scenes such as airplane scenes, car riding scenes, riding scenes, elevator scenes, scooter scenes, and balancing car scenes, the terminal device can establish N decision trees. For example, for the above 6 interference scenarios, the terminal device can establish 6 decision trees, such as: airplane scene and non-airplane scene, riding scene and non-riding scene, riding scene and non-riding scene, elevator scene and non-elevator scene scenes, scooter scenes and non-scooter scenes, balancing car scenes and non-balancing car scenes, etc. Further, the terminal device can obtain the scene corresponding to the maximum value of the six decision tree output results and obtain the recognition result, such as when an airplane scene and a non-aircraft scene, a riding scene and a non-riding scene, an elevator scene and a non-elevator scene, The output results of the scooter scene and the non-scooter scene, as well as the balancing car scene and the non-balancing car scene are all values close to 0, and when the output results of the riding scene and the non-riding scene are 1, the terminal device can determine The recognition result of this interference scene is the ride scene.
可以理解的是,识别干扰场景的方法可以不限于上述决策树模型,也可以为其他机器学习模型,本申请实施例中对此不做限定。It can be understood that the method of identifying interference scenarios may not be limited to the above-mentioned decision tree model, and may also be other machine learning models, which is not limited in the embodiments of the present application.
可能的实现方式中,如图3所示,终端设备中的预设sensor hub可以用于执行S407所示的步骤中进行干扰场景识别的步骤;进而预设sensor hub可以将识别得到的干扰场景发送至预设HAL;使得预设HAL可以基于干扰场景确定爬高状态。其中,预设sensor hub可以对于干扰场景的实时检测,并将检测到的干扰场景或者非干扰场景实时发送至预设HAL。In a possible implementation, as shown in Figure 3, the preset sensor hub in the terminal device can be used to perform the interference scene identification step shown in S407; then the preset sensor hub can send the identified interference scene to the preset HAL; so that the preset HAL can determine the climbing status based on the interference scenario. Among them, the preset sensor hub can detect interference scenes in real time and send the detected interference scenes or non-interference scenes to the preset HAL in real time.
可以理解的是,由于干扰场景可能会带来爬升高度升高的情况,而当终端设备无法识别出干扰场景时,则很容易将该干扰场景中带来的爬升高度误认为用户步行时产生的爬升高度,进而影响爬高状态识别、或者爬升高度检测。因此,本申请实施例中可以实现对于干扰场景的准确识别,并将干扰场景确定为非爬高状态,实现对于爬高状态的精准检测。It is understandable that interference scenes may cause an increase in climbing height, and when the terminal device cannot recognize the interference scene, it is easy to mistake the climbing height caused by the interference scene for the user's walking. Climbing height, which in turn affects climbing status recognition or climbing height detection. Therefore, in the embodiment of the present application, the interference scene can be accurately identified, the interference scene can be determined as a non-climbing state, and the climbing state can be accurately detected.
可能的实现方式中,终端设备也可以先执行S409-S410所示的步骤确定初始爬升高度是否大于高度阈值,并在确定初始爬升高度大于高度阈值时,指示预设sensor hub执行S406-S407所示的步骤基于加速度数据进行干扰场景的判断。In a possible implementation, the terminal device can also first perform the steps shown in S409-S410 to determine whether the initial climbing height is greater than the height threshold, and when it is determined that the initial climbing height is greater than the height threshold, instruct the preset sensor hub to perform S406-S407. The steps are based on acceleration data to determine the interference scene.
S408、终端设备判断第一时刻与第三时刻的差值是否小于时间阈值。S408. The terminal device determines whether the difference between the first time and the third time is less than the time threshold.
本申请实施例中,当终端设备确定第一时刻与第三时刻的差值小于时间阈值时,终端设备可以执行S409所示的步骤;或者,当终端设备确定第一时刻与第三时刻的差值大于 或等于时间阈值时,终端设备可以执行S411所示的步骤。其中,该第一时刻与第三时刻的差值可以为,第一时刻减去第三时刻得到的差值,或也可以为第三时刻减去第一时刻得到的差值。In the embodiment of the present application, when the terminal device determines that the difference between the first moment and the third moment is less than the time threshold, the terminal device may perform the steps shown in S409; or, when the terminal device determines that the difference between the first moment and the third moment value greater than or equal to the time threshold, the terminal device can perform the steps shown in S411. The difference between the first time and the third time may be the difference obtained by subtracting the third time from the first time, or may also be the difference obtained by subtracting the first time from the third time.
可能的实现方式中,当终端设备确定第一时刻与第三时刻的差值小于时间阈值时,终端设备也可以执行S412所示的步骤;或理解为该S408所示的步骤也可以独立用于爬高状态的识别。In a possible implementation, when the terminal device determines that the difference between the first moment and the third moment is less than the time threshold, the terminal device may also perform the steps shown in S412; or it may be understood that the steps shown in S408 may also be used independently. Identification of climbing status.
可以理解的是,由于登山过程中,气压数据的变化必将伴随着步数的变化,因此第一时刻与第三时刻之间的差值必定小于时间阈值。基于此,终端设备可以通过确定第一时刻与第三时刻之间的差值、以及时间阈值之间的关系,排除非爬高状态下气压数据的变化时间与步数的变化时间差距较大的情况。It can be understood that since changes in air pressure data will be accompanied by changes in the number of steps during mountain climbing, the difference between the first moment and the third moment must be less than the time threshold. Based on this, the terminal device can determine the difference between the first moment and the third moment and the relationship between the time thresholds to eliminate the situation where the change time of the air pressure data in the non-climbing state is significantly different from the change time of the number of steps. Condition.
示例性的,以时间阈值为2分钟为例进行示例说明。例如,当气压数据发生变化时记录的第一时刻为中午12点时,而步数发生变化时记录的第三时刻为下午5点时,第一时刻与第三时刻的差值为5小时,由于5小时大于时间阈值2分钟,因此终端设备可以确定当前为非爬高状态。其中,该时间阈值也可以取值为3分钟、或5分钟等数值,本申请实施例中对此不做限定。As an example, the time threshold is 2 minutes. For example, when the air pressure data changes, the first time recorded is 12 noon, and the third time recorded when the number of steps changes is 5 p.m., the difference between the first time and the third time is 5 hours. Since 5 hours is greater than the time threshold of 2 minutes, the terminal device can determine that it is currently in a non-climbing state. The time threshold may also be a value of 3 minutes, 5 minutes, etc., which is not limited in the embodiments of the present application.
S409、终端设备基于N个气压数据中的第一个气压数据对应的海拔、以及N个气压数据中的第N个气压数对应的海拔,确定初始爬升高度。S409. The terminal device determines the initial climbing altitude based on the altitude corresponding to the first air pressure data among the N air pressure data and the altitude corresponding to the Nth air pressure number among the N air pressure data.
示例性的,初始爬升高度可以为第N个气压数对应的海拔减去第一个气压数据对应的海拔得到的数值。For example, the initial climbing altitude may be the value obtained by subtracting the altitude corresponding to the first air pressure data from the altitude corresponding to the Nth air pressure number.
S410、终端设备判断初始爬升高度是否大于高度阈值。S410. The terminal device determines whether the initial climbing height is greater than the height threshold.
本申请实施例中,当端设备判断初始爬升高度大于高度阈值时,终端设备可以执行S412所示的步骤;或者,当端设备判断初始爬升高度小于或等于高度阈值时,终端设备可以执行S411所示的步骤。In the embodiment of the present application, when the terminal device determines that the initial climbing height is greater than the height threshold, the terminal device can perform the steps shown in S412; or, when the terminal device determines that the initial climbing height is less than or equal to the height threshold, the terminal device can perform S411. the steps shown.
可以理解的是,通过爬升高度与高度阈值之间的关系,排除爬升高度发生微小变化时的干扰情况,提升识别爬高状态的准确性。It can be understood that through the relationship between the climbing height and the height threshold, interference when the climbing height changes slightly is eliminated, and the accuracy of identifying the climbing status is improved.
可能的实现方式中,S410所示的步骤也可以独立用于爬高状态的识别。In a possible implementation, the steps shown in S410 can also be used independently to identify the climbing state.
可以理解的是,综合S407、S408以及S410所示的步骤中的描述,终端设备可以基于上述S407、S408以及S410所示的步骤中的一种或多种进行爬高状态的识别。并且,进行爬高状态识别过程中,终端设备对S407、S408以及S410之间的执行顺序不做限定。It can be understood that, based on the descriptions in the steps shown in S407, S408 and S410, the terminal device can identify the climbing state based on one or more of the steps shown in S407, S408 and S410. Moreover, during the process of identifying the climbing state, the terminal device does not limit the execution order of S407, S408 and S410.
可能的实现方式中,当终端设备确定一段时间阈值(例如2分钟或其他数值)内,气压数据未发生变化时,则终端设备可以确定此时不满足爬高状态;进而,终端设备可以重新获取N个气压数据,例如终端设备可以重新执行S402-S404所示的步骤,并重新基于S405-S414所示的步骤进行爬高状态识别以及爬升高度检测。In a possible implementation, when the terminal device determines that the air pressure data has not changed within a period of time threshold (such as 2 minutes or other values), the terminal device can determine that the climbing status is not met at this time; furthermore, the terminal device can re-obtain N air pressure data, for example, the terminal device can re-execute the steps shown in S402-S404, and re-perform climbing status identification and climbing height detection based on the steps shown in S405-S414.
可能的实现方式中,当终端设备确定一段时间阈值内基站切换次数超过一定次数阈值时,则终端设备可以确定此时不满足爬高状态,进而执行S411所示的步骤。例如,终端设备可以基于CID信息确定基站切换次数,例如当终端设备确定1分钟内CID信息变化超过3次,或者确定3分钟内CID信息变化超过5次时,终端设备可以确定不满足爬高状态。In a possible implementation, when the terminal device determines that the number of base station switching times exceeds a certain threshold within a period of time, the terminal device may determine that the climbing state is not satisfied at this time, and then perform the steps shown in S411. For example, the terminal device can determine the number of base station switching times based on the CID information. For example, when the terminal device determines that the CID information changes more than 3 times within 1 minute, or determines that the CID information changes more than 5 times within 3 minutes, the terminal device can determine that the climbing status is not satisfied. .
示例性的,终端设备可以确定第一时刻以及第二时刻之间CID信息的变化次数,当变化次数超过次数阈值时,确定不满足爬高状态。或者,终端设备也可以在第一时刻之后周 期性的检测CID信息的变化情况,并在确定变化次数超过次数阈值时,确定不满足爬高状态。其中,该次数阈值可以为1或2等数值。For example, the terminal device may determine the number of changes in the CID information between the first moment and the second moment. When the number of changes exceeds the number threshold, it is determined that the climbing state is not satisfied. Alternatively, the terminal device can also Periodically detect changes in CID information, and when it is determined that the number of changes exceeds the number threshold, it is determined that the climbing status is not met. The number of times threshold can be a value such as 1 or 2.
其中,终端设备对于一段时间内基站切换次数的判断,无法单独作为满足爬高状态识别的条件,因此终端设备可以结合S407、S408以及S410共同进行爬高状态识别,提高爬高状态识别的准确性。Among them, the terminal equipment's judgment on the number of base station switching times within a period of time cannot be used alone as a condition to meet the climbing status identification. Therefore, the terminal equipment can combine S407, S408 and S410 to jointly perform climbing status identification to improve the accuracy of climbing status identification. .
可能的实现方式中,如图3所示,modem HAL可以将获取的CID信息发送至预设HAL,进而由预设HAL完成利用CID信息确定终端设备是否满足爬高状态的判断。In a possible implementation, as shown in Figure 3, the modem HAL can send the obtained CID information to the preset HAL, and then the preset HAL completes the judgment of using the CID information to determine whether the terminal device meets the climbing status.
可以理解的是,由于用户进行爬高时,爬升的高度是缓慢增加的,很难会出现短时间内基站多次切换的情况,因此可以通过确定一段时间阈值内基站切换次数,排除不属于爬高状态的场景,进而提高爬高状态识别的准确性。It is understandable that when the user climbs, the climbing height increases slowly, and it is difficult for the base station to switch multiple times in a short period of time. Therefore, the number of base station switching times within a certain period of time can be determined to eliminate the cases that are not climbing. High state scenes, thereby improving the accuracy of climbing state recognition.
S411、终端设备确定不满足爬高状态。S411. The terminal device determines that it does not meet the climbing status.
S412、终端设备确定满足爬高状态。S412. The terminal device determines that it meets the climbing status.
S413、终端设备基于N个计步器数据确定实际爬升步数。S413. The terminal device determines the actual number of climbing steps based on N pedometer data.
示例性的,终端设备可以获取N个计步器数据的和,作为实际爬升步骤。For example, the terminal device can obtain the sum of N pedometer data as the actual climbing step.
可能的实现方式中,终端设备判断N个气压数据中是否存在稳定的M个气压数据。当终端设备确定N个气压数据中存在稳定的M个气压数据时,终端设备可以获取M个计步器数据的和,以及N个计步器数据的和,并利N个计步器数据的和减去M个计步器数据的和,得到实际爬升步数。其中,M小于N,M的取值可以为5、8或10等数值,本申请实施例中对此不做限定。其中,该M个计步器数据可以为M个气压数据对应的计步器数据。In a possible implementation, the terminal device determines whether there are M pieces of stable air pressure data among the N pieces of air pressure data. When the terminal device determines that there are M stable air pressure data among the N air pressure data, the terminal device can obtain the sum of the M pedometer data and the sum of the N pedometer data, and use the sum of the N pedometer data The actual number of climbing steps is obtained by subtracting the sum of M pedometer data from the sum. Wherein, M is less than N, and the value of M can be 5, 8 or 10, etc., which is not limited in the embodiments of the present application. The M pieces of pedometer data may be pedometer data corresponding to the M pieces of air pressure data.
示例性的,终端设备可以基于气压数据分别对应的方差(或气压数据的变化情况、或者气压数据的均值)等,确定N个气压数据中是否存在稳定的M个气压数据。例如,当终端设备确定该方差小于方差阈值时,终端设备可以确定气压数据稳定;或者,当终端设备确定该方差大于或等于方差阈值时,终端设备可以确定气压数据不稳定。其中,该N个气压数据中的第Q个气压数据的方差,可以为基于第一个气压数据至第Q个气压数据之间的Q个气压数据确定的方差,Q小于或等于N。For example, the terminal device may determine whether there are M pieces of stable air pressure data among the N pieces of air pressure data based on the corresponding variances of the air pressure data (or changes in the air pressure data, or the mean of the air pressure data), etc. For example, when the terminal device determines that the variance is less than the variance threshold, the terminal device may determine that the air pressure data is stable; or when the terminal device determines that the variance is greater than or equal to the variance threshold, the terminal device may determine that the air pressure data is unstable. The variance of the Qth air pressure data among the N pieces of air pressure data may be the variance determined based on the Q pieces of air pressure data between the first air pressure data and the Qth air pressure data, and Q is less than or equal to N.
可以理解的是,由于用户在登山过程中经常会出现走走停停的情况,因此采集的N个气压数据中可能会出现气压数据较为稳定的情况,因此终端设备可以对气压数据稳定的情况进行识别,例如识别到M个稳定的气压数据,并在进行实际爬升步数计算时,去除稳定状态下的M个计步器数据对于爬升高度的影响,进而增强爬升高度计算的准确性。It is understandable that since users often stop and go during mountain climbing, the collected N air pressure data may have relatively stable air pressure data. Therefore, the terminal device can detect the situation where the air pressure data is stable. Recognition, for example, identifies M stable air pressure data, and when calculating the actual number of climbing steps, removes the influence of the M pedometer data in the stable state on the climbing altitude, thereby enhancing the accuracy of the climbing altitude calculation.
S414、在终端设备确定实际爬升步数大于初始爬升高度×预设阈值时,终端设备将初始爬升高度确定为最终爬升高度。S414. When the terminal device determines that the actual number of climbing steps is greater than the initial climbing height × the preset threshold, the terminal device determines the initial climbing height as the final climbing height.
可以理解的是,在登山过程中,爬升步数与爬升高度之间存在一定的对应关系,例如爬升高度越高爬升步数越多,因此为了避免爬升步数较少而爬升高度较高或者爬升步数较多而爬升高度较少等不合理的情况,终端设备可以利用实际爬升步数、与初始爬升高度之间的关系筛选出更符合实际场景的爬升高度。It is understandable that in the process of mountain climbing, there is a certain correspondence between the number of climbing steps and the climbing height. For example, the higher the climbing height, the more climbing steps. Therefore, in order to avoid having fewer climbing steps, the climbing height is higher or the climbing height is higher. In unreasonable situations such as a large number of steps but a low climbing height, the terminal device can use the relationship between the actual number of climbing steps and the initial climbing height to select a climbing height that is more consistent with the actual scenario.
示例性的,在终端设备确定N个气压数据对应的最终爬升高度时,终端设备可以将该最终爬升高度实时显示在界面中,使得用户可以在登山的过程中随时查看从起始位置到当前位置处的爬升高度;或者,终端设备也可以在接收到用户结束运动记录的操作时,将登 山过程中爬升高度的最大值以及运动过程中爬升高度的变化曲线显示在界面中。For example, when the terminal device determines the final climbing height corresponding to N pieces of air pressure data, the terminal device can display the final climbing height in the interface in real time, so that the user can view the distance from the starting position to the current position at any time during the climbing process. the climbing height; alternatively, the terminal device can also log in when receiving the user's operation to end the exercise recording. The maximum value of the climbing height during the mountain process and the change curve of the climbing height during the exercise are displayed in the interface.
可能的实现方式中,S414所示的步骤中的最终爬升高度可以理解为第一次获取N个气压数据时对应的第一个最终爬升高度;在S414之后,终端设备也可以继续执行S402-S410所示的步骤,基于第二次获取的N个气压数据计算第二个初始爬升高度、以及第二个实际爬升步数等;进一步的,在S414所示的步骤中,当终端设备确定第二个实际爬升步数大于第二个初始爬升高度与预设阈值的乘积时,确定最终爬升高度为第一个最终爬升高度与第二个初始爬升高度的累加值。可以理解的是,终端设备可以基于多次气压数据对应的爬升高度的累加值,确定最终爬升高度。In a possible implementation, the final climbing height in the step shown in S414 can be understood as the first final climbing height corresponding to the first acquisition of N air pressure data; after S414, the terminal device can also continue to perform S402-S410. The steps shown calculate the second initial climbing height, the second actual climbing steps, etc. based on the N air pressure data obtained for the second time; further, in the step shown in S414, when the terminal device determines the second When the actual number of climbing steps is greater than the product of the second initial climbing height and the preset threshold, the final climbing height is determined to be the cumulative value of the first final climbing height and the second initial climbing height. It can be understood that the terminal device can determine the final climbing height based on the accumulated value of the climbing height corresponding to multiple air pressure data.
示例性的,图6为本申请实施例提供的一种爬升高度实时显示的界面示意图。在终端设备检测到N个气压数据对应的爬升高度时,可以将爬升高度实时显示在如图6中的a所示的界面中。如图6中的a所示,该界面中的用于指示爬升高度的信息601中可以显示为2米,该界面中用于指示跑步用时的信息可以显示为5秒,该界面中显示的其他内容可以参见图1中的a所示的界面,在此不再赘述。Exemplarily, FIG. 6 is a schematic diagram of an interface for real-time display of climbing height provided by an embodiment of the present application. When the terminal device detects the climbing height corresponding to N pieces of air pressure data, the climbing height can be displayed in real time on the interface shown in a in Figure 6. As shown in a in Figure 6, the information 601 used to indicate the climbing height in the interface can be displayed as 2 meters, the information used to indicate the running time in the interface can be displayed as 5 seconds, and other information displayed in the interface can be displayed as 2 meters. The content can be found in the interface shown in a in Figure 1, and will not be described again here.
在用户登山1:30:46到达山顶时,终端设备可以显示如图6中的b所示的界面,该界面中可以显示登山7.02公里、用时1:30:46、消耗热量804千卡、爬升高度1200米。When the user reaches the top of the mountain at 1:30:46, the terminal device can display the interface shown in b in Figure 6. This interface can display that the user climbed 7.02 kilometers, took 1:30:46, consumed 804 kcal, and climbed Height 1200 meters.
在用户结束运动时,终端设备可以显示如图6中的c所示的界面,该界面中可以显示:2022年6月8日下午16:58运动结束,运动时间1:30:46、消耗热量804千卡、平均配速12′34″/公里、平均速度4.67公里/小时、平均步频153步/分钟、平均步幅31厘米、步数22775步、爬升过程中的最高爬升高度为1200米,该界面中显示的其他内容可以与图1中的b所示的界面类似,在此不再赘述。When the user ends the exercise, the terminal device can display the interface shown in c in Figure 6. The interface can display: the exercise ended at 16:58 pm on June 8, 2022, the exercise time was 1:30:46, and the calories consumed 804 kcal, average pace 12′34″/km, average speed 4.67 km/h, average cadence 153 steps/min, average stride length 31 cm, number of steps 22775, and the maximum climbing altitude during the climb is 1200 meters , other content displayed in this interface may be similar to the interface shown in b in Figure 1, and will not be described again here.
在如图6中的c所示的界面中,当终端设备接收到用户针对用于查看图表的控件602的操作时,终端设备可以显示如图6中的d所示的界面。如图6中的d所示的界面,该界面中可以包括:步频对应的图表、以及爬升高度对应的图表603、平均步频信息为153、最大步频信息为182、最高爬升高度信息为1200米。其中,该图表603可以指示登山过程中的整体爬高情况,例如在登山90分钟左右,到达最高爬升高度。In the interface shown in c in FIG. 6 , when the terminal device receives the user's operation on the control 602 for viewing the chart, the terminal device may display the interface shown in d in FIG. 6 . As shown in d in Figure 6, the interface may include: a chart corresponding to the cadence and a chart 603 corresponding to the climbing height. The average cadence information is 153, the maximum cadence information is 182, and the maximum climbing height information is 1200 meters. Among them, the chart 603 can indicate the overall climbing situation during the mountain climbing process. For example, the maximum climbing height is reached after about 90 minutes of climbing.
可以理解的是,终端设备可以基于图6对应的实施例实时显示爬升高度,也可以在结束运行时显示爬升过程中的整体爬高情况,便于用户随时查看,进而增加运动健康应用的使用体验。It can be understood that the terminal device can display the climbing height in real time based on the embodiment corresponding to Figure 6, or can display the overall climbing situation during the climbing process when the operation is completed, so that the user can view it at any time, thereby increasing the user experience of the sports and health application.
可能的实现方式中,如图3所示,预设HAL可以执行S408-SS414所示的步骤进行爬升状态识别以及爬升高度检测,并在检测到爬升高度时,将爬升高度发送至运动健康应用,使得运动健康应用可以将获取的爬升高度显示在界面中,便于用户查看。In a possible implementation, as shown in Figure 3, the preset HAL can perform the steps shown in S408-SS414 to identify the climbing status and detect the climbing height, and when the climbing height is detected, the climbing height is sent to the sports health application. This allows sports and health applications to display the obtained climbing height in the interface for easy viewing by users.
基于此,终端设备与可穿戴设备可以通过数据交互,进行爬高状态的识别以及爬升高度的计算;并且,终端设备可以基于对干扰场景的识别,避免干扰场景对爬高状态识别的影响,进而提高爬高状态识别的准确性。Based on this, the terminal device and the wearable device can identify the climbing status and calculate the climbing height through data interaction; and the terminal device can avoid the impact of the interference scene on the identification of the climbing status based on the identification of interference scenes, and then Improve the accuracy of climbing status recognition.
场景二、当终端设备中包含计步器以及气压传感器时,终端设备可以独立执行本申请实施例中描述的爬高状态识别方法。Scenario 2: When the terminal device includes a pedometer and an air pressure sensor, the terminal device can independently execute the climbing state identification method described in the embodiment of this application.
参见图4对应的实施例,终端设备可以在S405之前,基于终端设备的气压传感器获取气压数据发生变化时的N个气压数据,进而执行S405-SS414所示的步骤。 Referring to the corresponding embodiment in Figure 4, before S405, the terminal device can obtain N pieces of air pressure data when the air pressure data changes based on the air pressure sensor of the terminal device, and then perform the steps shown in S405-SS414.
基于此,终端设备可以独立执行本申请实施例中描述的爬高状态识别方法;并且,终端设备也可以基于对干扰场景的识别,避免干扰场景对爬高状态识别的影响,进而提高爬高状态识别的准确性。Based on this, the terminal device can independently execute the climbing state identification method described in the embodiments of this application; and the terminal device can also avoid the impact of the interference scene on the climbing state identification based on the identification of the interference scene, thereby improving the climbing state. Recognition accuracy.
场景三、当可穿戴设备中包含内置芯片式用户身份识别模块(embedded-subscriber identity module,eSIM)、气压传感器、计步器,并且可穿戴设备具备高功耗场景下执行爬高算法的硬件能力时,可穿戴设备也可以独立执行本申请实施例中描述的爬高状态识别方法。Scenario 3: When the wearable device contains a built-in chip-based user identity module (embedded-subscriber identity module, eSIM), air pressure sensor, and pedometer, and the wearable device has the hardware capability to execute the altitude climbing algorithm in a high-power consumption scenario At this time, the wearable device can also independently execute the climbing state identification method described in the embodiments of this application.
可以理解的是,当可穿戴设备中包含eSIM时,可穿戴设备可以基于eSIM实现S410所示的步骤中利用基站切换次数确定满足终端设备是否满足爬高状态的识别。其中,用于指示基站切换次数的CID信息可以由可穿戴设备中的eSIM获取。It can be understood that when the wearable device contains an eSIM, the wearable device can use the number of base station switching times in the step shown in S410 to determine whether the terminal device satisfies the climbing state based on the eSIM. Among them, the CID information used to indicate the number of base station switching times can be obtained by the eSIM in the wearable device.
参见图4对应的实施例,可穿戴设备可以执行S405-SS414中终端设备进行爬高状态识别以及爬升高度检测的步骤。Referring to the corresponding embodiment in FIG. 4 , the wearable device can perform the steps in S405-SS414 in which the terminal device identifies the climbing state and detects the climbing height.
示例性的,可穿戴设备可以基于图5对应的实施例中的方式,打开运动健康应用中的预设功能(如户外跑步功能),并在预设功能中实现爬高状态的识别。Exemplarily, the wearable device can open a preset function in a sports and health application (such as an outdoor running function) based on the method corresponding to the embodiment in Figure 5, and realize the identification of the climbing state in the preset function.
可能的实现方式中,可穿戴设备也可以实现用户运动的状态进行自动识别,并在识别到用户运动状态满足预设功能时,显示用于提示用户进入预设功能的界面。In a possible implementation, the wearable device can also automatically recognize the user's motion state, and when it recognizes that the user's motion state meets the preset function, displays an interface for prompting the user to enter the preset function.
示例性的,图7为本申请实施例提供的一种提示用户进入预设功能的界面示意图。在图7对应的实施例中,以预设功能为户外跑步功能为例进行示例说明,可以理解的是可穿戴设备可以在该户外跑步功能中进行爬高状态识别。Exemplarily, FIG. 7 is a schematic diagram of an interface for prompting the user to enter a preset function provided by an embodiment of the present application. In the embodiment corresponding to FIG. 7 , the preset function is the outdoor running function as an example for illustration. It can be understood that the wearable device can perform climbing state recognition in the outdoor running function.
在可穿戴设备基于加速度数据检测到用户可能处于跑步状态时,可穿戴设备可以显示如图7中的a所示的界面。如图7中的a所示的界面,该界面中可以包括:提示信息、用于进入户外跑步功能的控件701、用于进入室内跑步功能的控件、以及用于忽略进入户外跑步功能或室内跑步功能的控件。其中,该提示信息可以显示为:你在跑步吗?When the wearable device detects that the user may be in a running state based on acceleration data, the wearable device may display an interface as shown in a in Figure 7 . As shown in a in Figure 7, the interface may include: prompt information, a control 701 for entering the outdoor running function, a control for entering the indoor running function, and a control for ignoring entering the outdoor running function or indoor running. Functional controls. Wherein, the prompt information can be displayed as: Are you running?
在如图7中的a所示的界面中,当可穿戴设备接收到用户针对控件701的触发操作时,可穿戴设备可以显示如图7中的b所示的界面。如图7中的b所示的界面,该界面中可以包括:用于指示累计跑步(公里)的信息、用于指示开始记录运动数据的控件702、用于指示热身的控件、以及用于指示开启音乐的控件等。In the interface shown in a in FIG. 7 , when the wearable device receives the user's trigger operation for the control 701 , the wearable device may display the interface shown in b in FIG. 7 . As shown in b in Figure 7 , the interface may include: information indicating cumulative running (km), a control 702 indicating starting to record exercise data, a control 702 indicating warm-up, and Controls for turning on music, etc.
在如图7中的b所示的界面中,在可穿戴设备接收到用户针对控件702的触发操作时,可穿戴设备可以采集气压数据、计步器数据、以及加速度数据等,并开始进行爬高状态识别以及爬升高度检测。In the interface shown in b in Figure 7, when the wearable device receives the user's trigger operation on the control 702, the wearable device can collect air pressure data, pedometer data, acceleration data, etc., and start crawling. High status identification and climbing height detection.
可以理解的是,可穿戴设备触发进入爬高状态识别的方法可以不限于图7对应的实施例,本申请实施例中对此不做限定。It can be understood that the method for the wearable device to trigger the recognition of entering the climbing state may not be limited to the embodiment corresponding to Figure 7, and this is not limited in the embodiments of the present application.
基于此,可穿戴设备可以独立执行本申请实施例中描述的爬高状态识别方法;并且,可穿戴设备也可以基于对干扰场景的识别,避免干扰场景对爬高状态识别的影响,进而提高爬高状态识别的准确性。Based on this, the wearable device can independently execute the climbing state identification method described in the embodiments of this application; and the wearable device can also identify the interference scene to avoid the impact of the interference scene on the climbing state identification, thereby improving the climbing state. High state recognition accuracy.
可以理解的是,本申请实施例中描述的界面仅作为一种示例,并不能构成对本申请实施例的限定。 It can be understood that the interface described in the embodiment of the present application is only an example and does not constitute a limitation to the embodiment of the present application.
上面结合图4-图7,对本申请实施例提供的方法进行了说明,下面对本申请实施例提供的执行上述方法的装置进行描述。如图8所示,图8为本申请实施例提供的一种爬高状态识别装置的结构示意图,该爬高状态识别装置可以是本申请实施例中的终端设备,也可以是终端设备内的芯片或芯片系统。The method provided by the embodiment of the present application has been described above with reference to FIGS. 4-7 , and the device for performing the above method provided by the embodiment of the present application will be described below. As shown in Figure 8, Figure 8 is a schematic structural diagram of a climbing state identification device provided by an embodiment of the present application. The climbing state identifying device may be the terminal device in the embodiment of the present application, or may be a device within the terminal device. Chip or chip system.
如图8所示,爬高状态识别装置80可以用于通信设备、电路、硬件组件或者芯片中,该爬高状态识别装置包括:获取单元801、以及处理单元803。其中,获取单元801用于支持爬高状态识别装置80执行数据获取的步骤,处理单元803用于支持爬高状态识别装置80执行数据处理的步骤。As shown in FIG. 8 , the climbing state identification device 80 can be used in communication equipment, circuits, hardware components or chips. The climbing state identification device includes: an acquisition unit 801 and a processing unit 803 . The acquisition unit 801 is used to support the climbing state identification device 80 to perform data acquisition steps, and the processing unit 803 is used to support the climbing state identification device 80 to perform data processing steps.
可能的实施例中,爬高状态识别装置80还可以包括:显示单元802,显示单元802用于支持爬高状态识别装置80执行的显示的步骤。In a possible embodiment, the climbing state recognition device 80 may further include: a display unit 802 , the display unit 802 being configured to support the display steps performed by the climbing state recognition device 80 .
具体的,本申请实施例提供一种爬高状态识别装置80,获取单元801,用于获取加速度数据;加速度数据为预设时长内获取的数据,预设时长中包括第一时刻以及第二时刻;处理单元803,用于基于加速度数据,确定第一终端设备是否处于第一状态,第一状态用于指示第一终端设备处于第一状态时第一终端设备在至少两个时刻位于不同的海拔;当第一终端设备不是处于第一状态,处理单元803,还用于基于第一时刻获得的第一气压数据和第二时刻获得的第二气压数据确定第一终端设备处于步行爬高状态;其中,处于步行爬高状态的第一终端设备在第一时刻和第二时刻位于不同的海拔。Specifically, the embodiment of the present application provides a climbing state identification device 80 and an acquisition unit 801 for acquiring acceleration data; the acceleration data is data acquired within a preset time period, and the preset time period includes the first moment and the second moment. ; Processing unit 803, configured to determine whether the first terminal device is in a first state based on acceleration data. The first state is used to indicate that when the first terminal device is in the first state, the first terminal device is located at different altitudes at at least two moments. ; When the first terminal device is not in the first state, the processing unit 803 is also configured to determine that the first terminal device is in the walking and climbing state based on the first air pressure data obtained at the first time and the second air pressure data obtained at the second time; Wherein, the first terminal device in the walking climbing state is located at different altitudes at the first moment and the second moment.
可能的实现方式中,该爬高状态识别装置80中也可以包括通信单元804。具体的,通信单元804用于支持爬高状态识别装置80执行数据的发送以及数据的接收的步骤。其中,该通信单元804可以是输入或者输出接口、管脚或者电路等。In a possible implementation, the climbing state identification device 80 may also include a communication unit 804. Specifically, the communication unit 804 is used to support the climbing state identification device 80 in performing the steps of sending and receiving data. The communication unit 804 may be an input or output interface, a pin or a circuit, etc.
可能的实施例中,爬高状态识别装置80还可以包括:存储单元805。处理单元803、存储单元805通过线路相连。存储单元805可以包括一个或者多个存储器,存储器可以是一个或者多个设备、电路中用于存储程序或者数据的器件。存储单元805可以独立存在,通过通信线路与爬高状态识别装置具有的处理单元803相连。存储单元805也可以和处理单元803集成在一起。In a possible embodiment, the climbing state identification device 80 may also include: a storage unit 805 . The processing unit 803 and the storage unit 805 are connected through lines. The storage unit 805 may include one or more memories, which may be devices used to store programs or data in one or more devices or circuits. The storage unit 805 may exist independently and be connected to the processing unit 803 of the climbing state recognition device through a communication line. The storage unit 805 can also be integrated with the processing unit 803.
存储单元805可以存储终端设备中的方法的计算机执行指令,以使处理单元803执行上述实施例中的方法。存储单元805可以是寄存器、缓存或者RAM等,存储单元805可以和处理单元803集成在一起。存储单元805可以是只读存储器(read-only memory,ROM)或者可存储静态信息和指令的其他类型的静态存储设备,存储单元805可以与处理单元803相独立。The storage unit 805 may store computer execution instructions for the method in the terminal device, so that the processing unit 803 executes the method in the above embodiment. The storage unit 805 may be a register, cache, RAM, etc., and the storage unit 805 may be integrated with the processing unit 803. The storage unit 805 may be a read-only memory (ROM) or other type of static storage device that can store static information and instructions, and the storage unit 805 may be independent from the processing unit 803.
图9为本申请实施例提供的另一种终端设备的硬件结构示意图,如图9所示,该终端设备包括处理器901,通信线路904以及至少一个通信接口(图9中示例性的以通信接口903为例进行说明)。Figure 9 is a schematic diagram of the hardware structure of another terminal device provided by an embodiment of the present application. As shown in Figure 9, the terminal device includes a processor 901, a communication line 904 and at least one communication interface (exemplarily shown in Figure 9 as communication Interface 903 is taken as an example for explanation).
处理器901可以是一个通用中央处理器(central processing unit,CPU),微处理器,特定应用集成电路(application-specific integrated circuit,ASIC),或一个或多个用于控制本申请方案程序执行的集成电路。The processor 901 can be a general central processing unit (CPU), a microprocessor, an application-specific integrated circuit (ASIC), or one or more processors used to control the execution of the program of the present application. integrated circuit.
通信线路904可包括在上述组件之间传送信息的电路。Communication lines 904 may include circuitry that communicates information between the above-described components.
通信接口903,使用任何收发器一类的装置,用于与其他设备或通信网络通信,如以太网,无线局域网(wireless local area networks,WLAN)等。 The communication interface 903 uses any device such as a transceiver to communicate with other devices or communication networks, such as Ethernet, wireless local area networks (WLAN), etc.
可能的,该终端设备还可以包括存储器902。Possibly, the terminal device may also include a memory 902.
存储器902可以是只读存储器(read-only memory,ROM)或可存储静态信息和指令的其他类型的静态存储设备,随机存取存储器(random access memory,RAM)或者可存储信息和指令的其他类型的动态存储设备,也可以是电可擦可编程只读存储器(electrically erasable programmable read-only memory,EEPROM)、只读光盘(compact disc read-only memory,CD-ROM)或其他光盘存储、光碟存储(包括压缩光碟、激光碟、光碟、数字通用光碟、蓝光光碟等)、磁盘存储介质或者其他磁存储设备、或者能够用于携带或存储具有指令或数据结构形式的期望的程序代码并能够由计算机存取的任何其他介质,但不限于此。存储器可以是独立存在,通过通信线路904与处理器相连接。存储器也可以和处理器集成在一起。Memory 902 may be a read-only memory (ROM) or other type of static storage device that can store static information and instructions, a random access memory (random access memory (RAM)) or other type that can store information and instructions. A dynamic storage device can also be an electrically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or other optical disk storage, optical disc storage (including compressed optical discs, laser discs, optical discs, digital versatile discs, Blu-ray discs, etc.), disk storage media or other magnetic storage devices, or can be used to carry or store desired program code in the form of instructions or data structures and can be used by a computer Any other medium for access, but not limited to this. The memory may exist independently and be connected to the processor through a communication line 904. Memory can also be integrated with the processor.
其中,存储器902用于存储执行本申请方案的计算机执行指令,并由处理器901来控制执行。处理器901用于执行存储器902中存储的计算机执行指令,从而实现本申请实施例所提供的爬高状态识别方法。Among them, the memory 902 is used to store computer execution instructions for executing the solution of the present application, and is controlled by the processor 901 for execution. The processor 901 is used to execute computer execution instructions stored in the memory 902, thereby implementing the climbing state identification method provided by the embodiment of the present application.
可能的,本申请实施例中的计算机执行指令也可以称之为应用程序代码,本申请实施例对此不作具体限定。Possibly, the computer execution instructions in the embodiments of the present application may also be called application codes, which are not specifically limited in the embodiments of the present application.
在具体实现中,作为一种实施例,处理器901可以包括一个或多个CPU,例如图9中的CPU0和CPU1。In specific implementation, as an embodiment, the processor 901 may include one or more CPUs, such as CPU0 and CPU1 in FIG. 9 .
在具体实现中,作为一种实施例,终端设备可以包括多个处理器,例如图9中的处理器901和处理器905。这些处理器中的每一个可以是一个单核(single-CPU)处理器,也可以是一个多核(multi-CPU)处理器。这里的处理器可以指一个或多个设备、电路、和/或用于处理数据(例如计算机程序指令)的处理核。In specific implementation, as an embodiment, the terminal device may include multiple processors, such as the processor 901 and the processor 905 in Figure 9 . Each of these processors may be a single-CPU processor or a multi-CPU processor. A processor here may refer to one or more devices, circuits, and/or processing cores for processing data (eg, computer program instructions).
计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行计算机程序指令时,全部或部分地产生按照本申请实施例的流程或功能。计算机可以是通用计算机、专用计算机、计算机网络或者其他可编程装置。计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一计算机可读存储介质传输,例如,计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线(digital subscriber line,DSL)或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。计算机可读存储介质可以是计算机能够存储的任何可用介质或者是包括一个或多个可用介质集成的服务器、数据中心等数据存储设备。例如,可用介质可以包括磁性介质(例如,软盘、硬盘或磁带)、光介质(例如,数字通用光盘(digital versatile disc,DVD))、或者半导体介质(例如,固态硬盘(solid state disk,SSD))等。A computer program product includes one or more computer instructions. When computer program instructions are loaded and executed on a computer, processes or functions according to embodiments of the present application are generated in whole or in part. The computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable device. Computer instructions may be stored in or transmitted from one computer-readable storage medium to another computer-readable storage medium, e.g., computer instructions may be transmitted from a website, computer, server or data center via a wired link (e.g. Coaxial cable, optical fiber, digital subscriber line (DSL) or wireless (such as infrared, wireless, microwave, etc.) means to transmit to another website site, computer, server or data center. The computer-readable storage medium can be Any available media that a computer can store or is a data storage device such as a server, data center, or other integrated server that includes one or more available media. For example, available media may include magnetic media (eg, floppy disks, hard disks, or tapes), optical media (eg, Digital versatile disc (digital versatile disc, DVD)), or semiconductor media (for example, solid state disk (solid state disk, SSD)), etc.
本申请实施例还提供了一种计算机可读存储介质。上述实施例中描述的方法可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。计算机可读介质可以包括计算机存储介质和通信介质,还可以包括任何可以将计算机程序从一个地方传送到另一个地方的介质。存储介质可以是可由计算机访问的任何目标介质。An embodiment of the present application also provides a computer-readable storage medium. The methods described in the above embodiments can be implemented in whole or in part by software, hardware, firmware, or any combination thereof. Computer-readable media may include computer storage media and communication media and may include any medium that can transfer a computer program from one place to another. The storage media can be any target media that can be accessed by the computer.
作为一种可能的设计,计算机可读介质可以包括紧凑型光盘只读储存器(compact disc read-only memory,CD-ROM)、RAM、ROM、EEPROM或其它光盘存储器;计算机可读介质可以包括磁盘存储器或其它磁盘存储设备。而且,任何连接线也可以被适当地称为计 算机可读介质。例如,如果使用同轴电缆,光纤电缆,双绞线,DSL或无线技术(如红外,无线电和微波)从网站,服务器或其它远程源传输软件,则同轴电缆,光纤电缆,双绞线,DSL或诸如红外,无线电和微波之类的无线技术包括在介质的定义中。如本文所使用的磁盘和光盘包括光盘(CD),激光盘,光盘,数字通用光盘(digital versatile disc,DVD),软盘和蓝光盘,其中磁盘通常以磁性方式再现数据,而光盘利用激光光学地再现数据。As a possible design, the computer-readable medium may include compact disc read-only memory (CD-ROM), RAM, ROM, EEPROM or other optical disk storage; the computer-readable medium may include a magnetic disk memory or other disk storage device. Furthermore, any connecting wire may also be appropriately referred to as a computer-readable media. For example, if coaxial cable, fiber optic cable, twisted pair, DSL or wireless technologies (such as infrared, radio and microwave) are used to transmit the Software from a website, server or other remote source, then coaxial cable, fiber optic cable, twisted pair, DSL or wireless technologies such as infrared, radio and microwave are included in the definition of medium. Disk and optical disc, as used herein, includes compact disc (CD), laser disc, optical disc, digital versatile disc (DVD), floppy disk, and Blu-ray disc, where disks typically reproduce data magnetically, while discs reproduce data optically using lasers. Reproduce data.
上述的组合也应包括在计算机可读介质的范围内。以上,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应以权利要求的保护范围为准。 Combinations of the above should also be included within the scope of computer-readable media. The above are only specific embodiments of the present invention, but the protection scope of the present invention is not limited thereto. Any person familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed by the present invention, and all of them should be covered. within the protection scope of the present invention. Therefore, the protection scope of the present invention should be subject to the protection scope of the claims.

Claims (16)

  1. 一种爬高状态识别方法,其特征在于,所述方法包括:A method for identifying a climbing state, characterized in that the method includes:
    获取加速度数据;所述加速度数据为预设时长内获取的数据,所述预设时长中包括第一时刻以及第二时刻;Obtain acceleration data; the acceleration data is data obtained within a preset time period, and the preset time period includes a first moment and a second moment;
    基于所述加速度数据,确定第一终端设备是否处于第一状态,所述第一状态用于指示所述第一终端设备处于所述第一状态时所述第一终端设备在至少两个时刻位于不同的海拔;Based on the acceleration data, it is determined whether the first terminal device is in a first state, the first state is used to indicate that the first terminal device is located at at least two moments when the first terminal device is in the first state. different altitudes;
    当所述第一终端设备不是处于所述第一状态,基于所述第一时刻获得的第一气压数据和所述第二时刻获得的第二气压数据确定所述第一终端设备处于步行爬高状态;其中,When the first terminal device is not in the first state, it is determined based on the first air pressure data obtained at the first time and the second air pressure data obtained at the second time that the first terminal device is in a walking climbing state. state; where,
    处于所述步行爬高状态的所述第一终端设备在所述第一时刻和所述第二时刻位于不同的海拔。The first terminal device in the walking and climbing state is located at different altitudes at the first moment and the second moment.
  2. 根据权利要求1所述的方法,其特征在于,所述基于所述第一时刻获得的第一气压数据和所述第二时刻获得的第二气压数据确定所述第一终端设备处于步行爬高状态,包括:The method according to claim 1, characterized in that the first terminal device is determined to be walking and climbing based on the first air pressure data obtained at the first time and the second air pressure data obtained at the second time. status, including:
    确定所述第一气压数据对应的海拔与所述第二气压数据对应的海拔之间的差值,得到海拔差值;Determine the difference between the altitude corresponding to the first air pressure data and the altitude corresponding to the second air pressure data to obtain the altitude difference;
    在所述海拔差值大于第一阈值时,确定所述第一终端设备处于所述步行爬高状态。When the altitude difference is greater than the first threshold, it is determined that the first terminal device is in the walking climbing state.
  3. 根据权利要求1或2所述的方法,其特征在于,所述第一状态包括下述一种或多种:飞行爬高状态、电梯爬高状态、乘车爬高状态、骑行爬高状态、滑板车爬高状态、或平衡车爬高状态。The method according to claim 1 or 2, characterized in that the first state includes one or more of the following: a flight climbing state, an elevator climbing state, a ride climbing state, and a riding climbing state. , scooter climbing state, or balance car climbing state.
  4. 根据权利要求1-3任一项所述的方法,其特征在于,所述第一气压数据为第二终端设备在检测到气压发生变化后采集的变化后的数据。The method according to any one of claims 1 to 3, characterized in that the first air pressure data is changed data collected by the second terminal device after detecting a change in air pressure.
  5. 根据权利要求4所述的方法,其特征在于,所述方法还包括:The method of claim 4, further comprising:
    获取第三时刻对应的计步器数据;所述第三时刻对应的计步器数据为所述第一时刻后步数第一次发生变化时对应的数据;Obtain the pedometer data corresponding to the third moment; the pedometer data corresponding to the third moment is the data corresponding to the first change in the number of steps after the first moment;
    确定所述第一时刻与所述第三时刻的差值,得到时间差值;Determine the difference between the first time and the third time to obtain the time difference;
    所述在所述海拔差值大于第一阈值时,确定所述第一终端设备处于所述步行爬高状态,包括:在所述海拔差值大于所述第一阈值,且所述时间差值小于第二阈值时,确定所述第一终端设备处于所述步行爬高状态。Determining that the first terminal device is in the walking climbing state when the altitude difference is greater than the first threshold includes: when the altitude difference is greater than the first threshold, and the time difference When it is less than the second threshold, it is determined that the first terminal device is in the walking and climbing state.
  6. 根据权利要求5所述的方法,其特征在于,所述方法还包括:The method of claim 5, further comprising:
    获取所述第一时刻以及所述第二时刻之间的多个基站编号信息;Obtain multiple base station number information between the first time and the second time;
    当所述多个基站编号信息的变化次数超过第三阈值,所述海拔差值小于或等于所述第一阈值,和/或,所述时间差值大于或等于所述第二阈值时,确定所述第一终端设备未处于所述步行爬高状态。When the number of changes in the plurality of base station number information exceeds a third threshold, the altitude difference is less than or equal to the first threshold, and/or the time difference is greater than or equal to the second threshold, it is determined The first terminal device is not in the walking and climbing state.
  7. 根据权利要求2-6任一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 2-6, characterized in that the method further includes:
    在确定所述第一终端设备处于所述步行爬高状态的情况下,确定第一计步器数据以及第二计步器数据的和,得到步数累加值;其中,所述第一计步器数据为所述第一时刻获取的计步器数据,所述第二计步器数据为所述第二时刻获取的计步器数据; When it is determined that the first terminal device is in the walking and climbing state, the sum of the first pedometer data and the second pedometer data is determined to obtain an accumulated step count value; wherein, the first step counter The pedometer data is the pedometer data obtained at the first time, and the second pedometer data is the pedometer data obtained at the second time;
    在所述步数累加值大于所述海拔差值与第四阈值的乘积时,确定所述海拔差值为所述步行爬高状态下的爬升高度。When the cumulative value of the number of steps is greater than the product of the altitude difference and the fourth threshold, the altitude difference is determined to be the climbing height in the walking climbing state.
  8. 根据权利要求7所述的方法,其特征在于,所述方法还包括:The method of claim 7, further comprising:
    显示第一界面;所述第一界面中包括用于指示开始运动记录的第一控件;Display a first interface; the first interface includes a first control for instructing to start motion recording;
    在接收到针对所述第一控件的操作时,显示第二界面;其中,所述第二界面中包括所述爬升高度。When an operation on the first control is received, a second interface is displayed; wherein the second interface includes the climbing height.
  9. 根据权利要求7或8所述的方法,其特征在于,所述方法还包括:The method according to claim 7 or 8, characterized in that, the method further includes:
    在所述第一终端设备接收到结束运动记录的操作时,显示第三界面;其中,所述第三界面中包括用于指示最高爬升高度的信息、以及用于查看运动图表的第二控件;When the first terminal device receives an operation to end the exercise recording, a third interface is displayed; wherein the third interface includes information indicating the highest climbing altitude and a second control for viewing the exercise chart;
    在所述第一终端设备接收到针对所述第二控件的操作时,显示第四界面;所述第四界面中包括:用于指示所述爬升高度变化情况的图表。When the first terminal device receives an operation on the second control, a fourth interface is displayed; the fourth interface includes: a chart indicating changes in the climbing height.
  10. 根据权利要求1-9任一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 1-9, characterized in that the method further includes:
    当所述第一终端设备处于所述第一状态时,确定所述第一终端设备不是处于所述步行爬高状态。When the first terminal device is in the first state, it is determined that the first terminal device is not in the walking and climbing state.
  11. 根据权利要求1所述的方法,其特征在于,所述第一终端设备中包括:蓝牙硬件抽象层BT HAL、连接服务模块以及预设HAL,所述BT HAL以及预设HAL位于HAL中,所述连接服务模块位于应用程序框架层中,所述方法还包括:The method according to claim 1, characterized in that the first terminal device includes: Bluetooth hardware abstraction layer BT HAL, a connection service module and a preset HAL, the BT HAL and the preset HAL are located in the HAL, so The connection service module is located in the application framework layer, and the method further includes:
    所述BT HAL获取所述第一气压数据以及所述第二气压数据;所述第一气压数据以及所述第二气压数据均为第二终端设备基于蓝牙发送的;The BT HAL acquires the first air pressure data and the second air pressure data; both the first air pressure data and the second air pressure data are sent by the second terminal device based on Bluetooth;
    所述BT HAL将所述第一气压数据以及所述第二气压数据发送至所述连接服务模块;The BT HAL sends the first air pressure data and the second air pressure data to the connection service module;
    所述连接服务模块将所述第一气压数据以及所述第二气压数据发送至预设HAL;The connection service module sends the first air pressure data and the second air pressure data to the preset HAL;
    所述基于第一时刻获得的第一气压数据和第二时刻获得的第二气压数据确定所述第一终端设备处于步行爬高状态,包括:所述预设HAL基于所述第一气压数据和所述第二气压数据确定所述第一终端设备处于所述步行爬高状态。Determining that the first terminal device is in a walking and climbing state based on the first air pressure data obtained at the first time and the second air pressure data obtained at the second time includes: the preset HAL is based on the first air pressure data and the second air pressure data obtained at the second time. The second air pressure data determines that the first terminal device is in the walking and climbing state.
  12. 根据权利要求11所述的方法,其特征在于,所述第一终端设备中还包括:预设传感器控制中心sensor hub,所述基于所述加速度数据,确定第一终端设备是否处于第一状态,包括:The method according to claim 11, characterized in that the first terminal device further includes: a preset sensor control center sensor hub, which determines whether the first terminal device is in the first state based on the acceleration data, include:
    所述预设sensor hub基于所述加速度数据,确定所述第一终端设备是否处于所述第一状态。The preset sensor hub determines whether the first terminal device is in the first state based on the acceleration data.
  13. 根据权利要求11所述的方法,其特征在于,所述HAL中还包括:调制解调器modem HAL,所述方法还包括:The method according to claim 11, characterized in that the HAL further includes: modem HAL, and the method further includes:
    所述modem HAL获取所述第一时刻以及所述第二时刻之间的多个基站编号信息;The modem HAL obtains multiple base station number information between the first time and the second time;
    所述modem HAL将所述多个基站编号信息发送所述预设HAL;The modem HAL sends the multiple base station number information to the preset HAL;
    当所述多个基站编号信息的变化次数超过第三阈值,海拔差值小于或等于第一阈值,和/或,时间差值大于或第二阈值时,所述预设HAL确定所述第一终端设备未处于所述步行爬高状态。When the number of changes in the multiple base station number information exceeds the third threshold, the altitude difference is less than or equal to the first threshold, and/or the time difference is greater than or the second threshold, the preset HAL determines the first The terminal device is not in the walking and climbing state.
  14. 一种爬高状态识别方法,其特征在于,所述方法包括:A method for identifying a climbing state, characterized in that the method includes:
    与第二终端设备建立通信连接;Establish a communication connection with the second terminal device;
    向所述第二终端设备发送第一指令;所述第一指令用于指示所述第二终端设备获 取气压发生变化后采集的第一气压数据以及第二气压数据;Send a first instruction to the second terminal device; the first instruction is used to instruct the second terminal device to obtain Get the first air pressure data and the second air pressure data collected after the air pressure changes;
    接收来自所述第二终端设备的所述第一气压数据以及所述第二气压数据;Receive the first air pressure data and the second air pressure data from the second terminal device;
    获取加速度数据;所述加速度数据为预设时长内获取的数据;所述预设时长中包括第一时刻以及第二时刻;Obtain acceleration data; the acceleration data is data obtained within a preset time period; the preset time period includes a first moment and a second moment;
    基于所述加速度数据,确定第一终端设备是否处于第一状态;所述第一状态用于指示所述第一终端设备处于所述第一状态时所述第一终端设备在至少两个时刻位于不同的海拔;Based on the acceleration data, determine whether the first terminal device is in a first state; the first state is used to indicate that the first terminal device is located at at least two moments when the first terminal device is in the first state. different altitudes;
    当所述第一终端设备不是处于所述第一状态,基于第一时刻获得的第一气压数据和第二时刻获得的第二气压数据确定所述第一终端设备处于步行爬高状态;其中,When the first terminal device is not in the first state, it is determined that the first terminal device is in a walking and climbing state based on the first air pressure data obtained at the first moment and the second air pressure data obtained at the second moment; wherein,
    处于所述步行爬高状态的所述第一终端设备在所述第一时刻和所述第二时刻位于不同的海拔。The first terminal device in the walking climbing state is located at different altitudes at the first moment and the second moment.
  15. 一种终端设备,包括存储器、处理器以及存储在所述存储器中并可在所述处理器上运行的计算机程序,其特征在于,所述处理器执行所述计算机程序时,使得所述终端设备执行如权利要求1至13任一项所述的方法,或执行如权利要求14所述的方法。A terminal device includes 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 computer program, the terminal device Perform the method according to any one of claims 1 to 13, or perform the method according to claim 14.
  16. 一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,其特征在于,所述计算机程序被处理器执行时,使得计算机执行如权利要求1至13任一项所述的方法,或执行如权利要求14所述的方法。 A computer-readable storage medium, the computer-readable storage medium stores a computer program, characterized in that, when the computer program is executed by a processor, it causes the computer to execute the method according to any one of claims 1 to 13 , or perform the method as claimed in claim 14.
PCT/CN2023/095751 2022-07-01 2023-05-23 Climbing state identification method and apparatus WO2024001615A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202210770042.8A CN117367487A (en) 2022-07-01 2022-07-01 Climbing state identification method and device
CN202210770042.8 2022-07-01

Publications (2)

Publication Number Publication Date
WO2024001615A1 true WO2024001615A1 (en) 2024-01-04
WO2024001615A9 WO2024001615A9 (en) 2024-04-04

Family

ID=89383174

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/095751 WO2024001615A1 (en) 2022-07-01 2023-05-23 Climbing state identification method and apparatus

Country Status (2)

Country Link
CN (1) CN117367487A (en)
WO (1) WO2024001615A1 (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160106368A1 (en) * 2014-10-17 2016-04-21 Nokia Technologies Oy Method and apparatus for providing movement detection based on air pressure data
CN111366170A (en) * 2020-02-19 2020-07-03 维沃移动通信有限公司 State determination method and electronic equipment
CN112449051A (en) * 2019-08-16 2021-03-05 华为技术有限公司 Flight state detection method and terminal equipment
CN112629482A (en) * 2019-09-24 2021-04-09 华为技术有限公司 Method and equipment for measuring height on airplane
CN113792589A (en) * 2021-08-06 2021-12-14 荣耀终端有限公司 Overhead identification method and device
CN114485693A (en) * 2021-08-06 2022-05-13 荣耀终端有限公司 Overhead identification method, device and equipment

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103425895A (en) * 2013-08-28 2013-12-04 深圳市大麦科技有限公司 Multi-sensor motion and posture monitoring and analyzing method and system
US10088308B2 (en) * 2014-09-09 2018-10-02 Apple Inc. Electronic devices with pressure sensors for characterizing motion
WO2016181442A1 (en) * 2015-05-08 2016-11-17 富士通株式会社 Electronic apparatus, detection method, and detection program
CN105797348B (en) * 2016-03-09 2019-04-05 成都艾德沃传感技术有限公司 A kind of method and wearable electronic equipment of detection object type of sports
CN112268556B (en) * 2020-10-23 2022-02-25 重庆越致科技有限公司 Method and device for detecting state of pedestrian taking escalator
CN113029153B (en) * 2021-03-29 2024-05-28 浙江大学 Multi-scene PDR positioning method based on intelligent mobile phone multi-sensor fusion and SVM classification

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160106368A1 (en) * 2014-10-17 2016-04-21 Nokia Technologies Oy Method and apparatus for providing movement detection based on air pressure data
CN112449051A (en) * 2019-08-16 2021-03-05 华为技术有限公司 Flight state detection method and terminal equipment
CN112629482A (en) * 2019-09-24 2021-04-09 华为技术有限公司 Method and equipment for measuring height on airplane
CN111366170A (en) * 2020-02-19 2020-07-03 维沃移动通信有限公司 State determination method and electronic equipment
CN113792589A (en) * 2021-08-06 2021-12-14 荣耀终端有限公司 Overhead identification method and device
CN114485693A (en) * 2021-08-06 2022-05-13 荣耀终端有限公司 Overhead identification method, device and equipment

Also Published As

Publication number Publication date
WO2024001615A9 (en) 2024-04-04
CN117367487A (en) 2024-01-09

Similar Documents

Publication Publication Date Title
EP3893129A1 (en) Recommendation method based on user exercise state, and electronic device
US11523159B2 (en) Generating media content items based on location information
US20160375306A1 (en) Method and device for providing workout guide information
KR20170097888A (en) Method for combining and providing colltected data from plural devices and electronic device for the same
CN111983559A (en) Indoor positioning navigation method and device
CN114449599A (en) Network link switching method based on electronic equipment position and electronic equipment
WO2021052139A1 (en) Gesture input method and electronic device
CN111508609A (en) Health condition risk prediction method and device, computer equipment and storage medium
CN107923980A (en) Method and apparatus for providing positional information
WO2022073417A1 (en) Fusion scene perception machine translation method, storage medium, and electronic device
CN107885285A (en) Electronic equipment and its noise control method
WO2021213451A1 (en) Track playback method, and related apparatus
KR20170000196A (en) Method for outting state change effect based on attribute of object and electronic device thereof
CN111554069B (en) Intelligent alarm method and device
CN114424927A (en) Sleep monitoring method and device, electronic equipment and computer readable storage medium
WO2022033432A1 (en) Content recommendation method, electronic device and server
WO2022068887A1 (en) Method for displaying motion track, and electronic device
JP6380634B2 (en) Image reproducing apparatus, image reproducing method and program
WO2024001615A1 (en) Climbing state identification method and apparatus
WO2023045789A1 (en) Method and apparatus for exiting quick-response code
CN114532992B (en) Method, device and system for detecting nap state and computer readable storage medium
WO2022121600A1 (en) Activity recognition method, display method, and electronic device
WO2021147483A1 (en) Data sharing method and apparatus
WO2021253296A1 (en) Exercise model generation method and related device
CN113452896B (en) Image display method and electronic equipment

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 23829800

Country of ref document: EP

Kind code of ref document: A1