IP Library › Granted Patent US 12,265,098
Granted Patent B2
US 12,265,098 · App. 18/040,690 · Granted Apr 1, 2025

Sensor data processing method, electronic device, and readable storage medium

Inventor: Yangsen Duan (Shenzhen, CN)
Assignee: Honor Device Co., Ltd.
G01P15/16
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 12,265,098
App. No.
18/040,690
Granted
Apr 1, 2025
Kind
B2
Abstract

This application discloses a sensor data processing method, an electronic device, and a readable storage medium, and relates to the field of data processing technologies. The method includes: obtaining a group of raw sensor data, where the raw sensor data is sensor data output, based on an actual output data rate ODR, by a sensor; and obtaining a group of target sensor data through calculation based on the group of raw sensor data, a target ODR, and the actual ODR. The target sensor data is estimated sensor data output, based on the target ODR, by the sensor, and there is no ODR error.

Claims (54)

1. A sensor data processing method, applied to an electronic device, wherein the sensor data processing method comprises:

obtaining a group of raw sensor data, wherein raw sensor data in the group of raw sensor data is sensor data that is output, based on an actual output data rate (ODR), by a sensor; and

obtaining a group of target sensor data through calculation based on the group of raw sensor data, a target ODR, and the actual ODR, wherein target sensor data of the group of target sensor data is estimated sensor data that is output, based on the target ODR, by the sensor, and the target sensor data is used to implement a function of an application, and wherein obtaining the group of target sensor data through calculation based on the group of raw sensor data, the target ODR, and the actual ODR comprises:

obtaining the group of target sensor data using an interpolation algorithm based on the group of raw sensor data, the target ODR, and the actual ODR, and wherein obtaining the group of target sensor data by using the interpolation algorithm based on the group of raw sensor data, the target ODR, and the actual ODR comprises:

obtaining a total quantity of data entries in the group of target sensor data through calculation based on a time length of the group of raw sensor data and the target ODR, wherein the time length of the group of raw sensor data is a ratio of a total quantity of data entries in the group of raw sensor data to the actual ODR; and

obtaining the group of target sensor data through calculation, after the actual ODR, the target ODR, the time length of the group of raw sensor data, the total quantity of the data entries in the group of raw sensor data, the total quantity of the data entries in the group of target sensor data, and the group of raw sensor data are substituted into the interpolation algorithm.

2. The sensor data processing method according to claim 1 , wherein before obtaining the group of target sensor data through calculation based on the group of raw sensor data, the target ODR, and the actual ODR, the method further comprises:

determining the actual ODR of the sensor.

3. The sensor data processing method according to claim 2 , wherein determining the actual ODR of the sensor comprises:

obtaining the actual ODR of the sensor through calculation based on the time length of the group of raw sensor data and the total quantity of the data entries in the group of raw sensor data.

4. The sensor data processing method according to claim 1 , wherein after obtaining the group of target sensor data through calculation based on the group of raw sensor data, the target ODR, and the actual ODR, the method further comprises:

sending the group of target sensor data to the application, so that the application uses the group of target sensor data to implement the function.

5. The sensor data processing method according to claim 4 , wherein before sending the group of target sensor data to the application, the method further comprises:

obtaining a group of processed target sensor data by performing filtering processing on the group of target sensor data; and

wherein sending the group of target sensor data to the application comprises sending the group of processed target sensor data to the application, so that the application uses the group of processed target sensor data to implement the function.

6. The sensor data processing method according to claim 1 , wherein the actual ODR is different than a calibrated ODR of the sensor.

7. The sensor data processing method according to claim 6 , wherein a difference between the actual ODR and the calibrated ODR of the sensor depends on a clock system error of the sensor.

8. An electronic device, comprising:

one or more sensors, configured to output raw sensor data to one or more processors;

the one or more processors; and

a memory, wherein a program is stored on the memory, and

wherein when the program is executed by the one or more processors, the electronic device is enabled to:

obtain a group of raw sensor data, wherein raw sensor data of the group of raw sensor data is sensor data that is output, based on an actual output data rate (ODR), by a sensor; and

obtain a group of target sensor data through calculation based on the group of raw sensor data, a target ODR, and the actual ODR, wherein target sensor data of the group of target sensor data is estimated sensor data that is output, based on the target ODR, by the sensor, and the target sensor data is used to implement a function of an application, and wherein obtaining the group of target sensor data through calculation based on the group of raw sensor data, the target ODR, and the actual ODR comprises:

obtaining the group of target sensor data using an interpolation algorithm based on the group of raw sensor data, the target ODR, and the actual ODR, and wherein obtaining the group of target sensor data by using the interpolation algorithm based on the group of raw sensor data, the target ODR, and the actual ODR comprises:

obtaining a total quantity of data entries in the group of target sensor data through calculation based on a time length of the group of raw sensor data and the target ODR, wherein the time length of the group of raw sensor data is a ratio of a total quantity of data entries in the group of raw sensor data to the actual ODR; and

obtaining the group of target sensor data through calculation, after the actual ODR, the target ODR, the time length of the group of raw sensor data, the total quantity of the data entries in the group of raw sensor data, the total quantity of the data entries in the group of target sensor data, and the group of raw sensor data are substituted into the interpolation algorithm.

9. The device according to claim 8 , wherein the electronic device is further enabled to:

before obtaining the group of target sensor data through calculation based on the group of raw sensor data, the target ODR, and the actual ODR, determine an actual ODR of the one or more sensors.

10. The device according to claim 9 , wherein determining the actual ODR of the one or more sensors comprises:

obtaining the actual ODR of the one or more sensors through calculation based on the time length of the group of raw sensor data and the total quantity of the data entries in the group of raw sensor data.

11. The device according to claim 8 , wherein the electronic device is further enabled to:

after the obtaining the group of target sensor data through calculation based on the group of raw sensor data, the target ODR, and the actual ODR, sending the group of target sensor data to the application, so that the application uses the group of target sensor data to implement the function.

12. The device according to claim 11 , wherein the electronic device is further enabled to:

before the sending the group of target sensor data to the application, obtaining a group of processed target sensor data by performing filtering processing on the group of target sensor data; and

wherein sending the group of target sensor data to the application comprises sending the group of processed target sensor data to the application, so that the application uses the group of processed target sensor data to implement a specific function.

13. The device according to claim 8 , wherein the actual ODR is different than a calibrated ODR of the one or more sensors.

14. The device according to claim 13 , wherein a difference between the actual ODR and the calibrated ODR of the sensor depends on a clock system error of the sensor.

15. A non-transitory computer readable storage medium, wherein a computer program is stored on the non-transitory computer readable storage medium, and the computer program is executed by a processor to:

obtain a group of raw sensor data, wherein raw sensor data of the group of raw sensor data is sensor data that is output, based on an actual output data rate (ODR), by a sensor; and

obtain a group of target sensor data through calculation based on the group of raw sensor data, a target ODR, and the actual ODR, wherein target sensor data of the group of target sensor data is estimated sensor data that is output, based on the target ODR, by the sensor, and the target sensor data is used to implement a function of an application, and wherein obtaining the group of target sensor data through calculation based on the group of raw sensor data, the target ODR, and the actual ODR comprises:

obtaining the group of target sensor data using an interpolation algorithm based on the group of raw sensor data, the target ODR, and the actual ODR, and wherein obtaining the group of target sensor data by using the interpolation algorithm based on the group of raw sensor data, the target ODR, and the actual ODR comprises:

obtaining a total quantity of data entries in the group of target sensor data through calculation based on a time length of the group of raw sensor data and the target ODR, wherein the time length of the group of raw sensor data is a ratio of a total quantity of data entries in the group of raw sensor data to the actual ODR; and

obtaining the group of target sensor data through calculation, after the actual ODR, the target ODR, the time length of the group of raw sensor data, the total quantity of the data entries in the group of raw sensor data, the total quantity of the data entries in the group of target sensor data, and the group of raw sensor data are substituted into the interpolation algorithm.

16. The non-transitory computer readable storage medium according to claim 15 , wherein the computer program is executed by the processor further to:

before obtaining the group of target sensor data through calculation based on the group of raw sensor data, the target ODR, and the actual ODR, determine the actual ODR of the sensor.

17. The non-transitory computer readable storage medium according to claim 16 , wherein determining the actual ODR of the sensor comprises:

obtaining the actual ODR of the sensor through calculation based on the time length of the group of raw sensor data and the total quantity of the data entries in the group of raw sensor data.

18. The non-transitory computer readable storage medium according to claim 15 , wherein the computer program is executed by the processor further to:

after obtaining the group of target sensor data through calculation based on the group of raw sensor data, the target ODR, and the actual ODR, send the group of target sensor data to the application, so that the application uses the group of target sensor data to implement the function.

19. The non-transitory computer readable storage medium according to claim 18 , wherein the computer program is executed by the processor further to:

before sending the group of target sensor data to the application, obtaining a group of processed target sensor data by performing filtering processing on the group of target sensor data; and

wherein sending the group of target sensor data to the application comprises sending the group of processed target sensor data to the application, so that the application uses the group of processed target sensor data to implement the function.

20. The non-transitory computer readable storage medium according to claim 15 , wherein the actual ODR is different than a calibrated ODR of the sensor.

Assignments (1)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Jun 15, 2023
From: DUAN, YANGSEN
To: HONOR DEVICE CO., LTD.
Reel/Frame 063963/0746 →
Priority Claims (1)
CN 202111284471.6 · Nov 1, 2021 · national
Continuity (1)
Related Publication 20240264197A1 · Aug 8, 2024
References Cited (20)
US 8589720B2 · Garudadri et al. · 2013 [cited by applicant]
US 11403030B2 · Ware et al. · 2022 [cited by applicant]
US 11543248B2 · Rosingana et al. · 2023 [cited by applicant]
US 20100083028A1 · Oh et al. · 2010 [cited by applicant]
US 20150123827A1 · Claus et al. · 2015 [cited by applicant]
US 20170153121A1 · Hsu · 2017 [cited by examiner]
US 20180266847A1 · Trythall · 2018 [cited by examiner]
US 20200205724A1 · Lee · 2020 [cited by examiner]
US 20200240819A1 · Milota et al. · 2020 [cited by applicant]
CN 102007741A · 2011 [cited by applicant]
CN 106525107A · 2017 [cited by applicant]
CN 106681670A · 2017 [cited by applicant]
CN 107153454A · 2017 [cited by applicant]
CN 109313918A · 2019 [cited by applicant]
CN 111754954A · 2020 [cited by applicant]
CN 112394821A · 2021 [cited by applicant]
CN 114185512A · 2022 [cited by applicant]
WO 9717809A1 · 1997 [cited by applicant]
WO 2016057289A1 · 2016 [cited by applicant]
Li et al., “Research on Energy-saving Routing Algorithm ISC-ODR for 3D Wireless Sensor Networks”, Computer Science, vol. 41 No. 7, Jul. 2014, 4 pages. [cited by applicant]