A mobile terminal gravity sensor data intelligent correction method

CN122525682APending Publication Date: 2026-08-07SHENZHEN ZHUO CHUANG INTELLIGENT TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
SHENZHEN ZHUO CHUANG INTELLIGENT TECH CO LTD
Filing Date
2026-06-24
Publication Date
2026-08-07

AI Technical Summary

Technical Problem

[0004]本发明旨在至少在一定程度上解决现有技术中的技术问题之一,通过基于实验的移动终端获取实验划分温度;基于实验划分温度获取实验表示偏移值;基于实验表示偏移值获取实验偏移函数;基于实验偏移函数获取第一偏移阈值与第二偏移阈值;基于实验表示偏移值、第一偏移阈值以及第二偏移阈值获取实验偏移表示值;基于实验划分温度和实验偏移表示值获取偏移对照函数;基于目标移动终端的重力传感器获取实时温度、实时X轴传感值、实时Y轴传感值以及实时Z轴传感值;基于实时温度与偏移对照函数获取实时X轴偏移值、实时Y轴偏移值以及实时Z轴偏移值;基于实时X轴偏移值、实时Y轴偏移值以及实时Z轴偏移值、X轴偏移值、实时Y轴偏移值以及实时Z轴偏移值获取实时X轴校正值、实时Y轴校正值以及实时Z轴校正值,以解决现有的传感器数据校正技术中获取的温度变化偏移值不准确,导致校正效果较差的问题

Benefits of technology

[0057]The beneficial effects of this invention are as follows: This invention obtains the experimental division temperature based on an experimental mobile terminal; obtains the experimental representation offset value based on the experimental division temperature; obtains the experimental offset function based on the experimental representation offset value; obtains a first offset threshold and a second offset threshold based on the experimental offset function; obtains the experimental offset representation value based on the experimental representation offset value, the first offset threshold, and the second offset threshold; obtains an offset comparison function based on the experimental division temperature and the experimental offset representation value; obtains real-time temperature, real-time X-axis sensing value, real-time Y-axis sensing value, and real-time Z-axis sensing value based on the gravity sensor of the target mobile terminal; obtains real-time X-axis offset value, real-time Y-axis offset value, and real-time Z-axis offset value based on the real-time temperature and the offset comparison function; and obtains real-time X-axis correction value, real-time Y-axis correction value, and real-time Z-axis correction value based on the real-time X-axis offset value, real-time Y-axis offset value, and real-time Z-axis offset value. The advantage is that it can more accurately obtain the offset value of the gravity sensor caused by temperature changes, thus improving the correction effect.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122525682A_ABST
    Figure CN122525682A_ABST
Patent Text Reader

Abstract

The application discloses a kind of mobile terminal gravity sensor data intelligent correction method, it is related to sensor data correction technical field, including the following steps: based on experimental division temperature acquisition experiment representation offset value;Based on experiment representation offset value obtains experimental offset function;Based on experimental offset function obtains first offset threshold and second offset threshold;Based on experimental representation offset value, first offset threshold and second offset threshold obtain experimental offset representation value;Based on experimental division temperature and experimental offset representation value obtains offset contrast function;Based on real-time X-axis offset value, real-time Y-axis offset value and real-time Z-axis offset value, X-axis offset value, real-time Y-axis offset value and real-time Z-axis offset value, real-time X-axis correction value, real-time Y-axis correction value and real-time Z-axis correction value are obtained;The present application is used to solve the problem that the temperature variation offset value obtained in the existing sensor data correction technology is not accurate, which leads to poor correction effect.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of sensor data correction technology, specifically to an intelligent correction method for gravity sensor data in a mobile terminal. Background Technology

[0002] Gravity sensors are one of the core inertial sensors in mobile terminals. They are used to measure the acceleration components that the device experiences in three axes, thereby obtaining information such as the tilt angle and motion state of the device relative to the direction of gravity.

[0003] Due to the influence of environmental changes, gravity sensors inevitably suffer from various measurement errors. Temperature drift is one of the most significant and difficult-to-eliminate error sources. Changes in ambient temperature and internal heat generation in mobile terminals can both cause sensor zero-point shift and sensitivity changes. Existing gravity sensors typically do not perform temperature drift correction. When temperature drift correction is performed, it is usually based on a fixed temperature drift coefficient. However, the coefficient changes with different temperatures, leading to inaccurate correction. For example, patent application CN103529490A discloses a correction method and system for a mobile terminal gravity sensor. This solution fails to set a suitable correction method based on temperature changes. In other words, the temperature drift values ​​obtained in existing sensor data correction technologies are inaccurate, resulting in poor correction performance. Summary of the Invention

[0004] This invention aims to at least partially address one of the technical problems in the prior art. It involves acquiring experimental segmentation temperatures using an experimental mobile terminal; obtaining experimental representation offset values ​​based on the experimental segmentation temperatures; obtaining an experimental offset function based on the experimental representation offset values; obtaining a first offset threshold and a second offset threshold based on the experimental offset function; obtaining experimental offset representation values ​​based on the experimental representation offset values, the first offset threshold, and the second offset threshold; obtaining an offset comparison function based on the experimental segmentation temperatures and experimental offset representation values; acquiring real-time temperature, real-time X-axis sensing values, real-time Y-axis sensing values, and real-time Z-axis sensing values ​​based on the gravity sensor of the target mobile terminal; obtaining real-time X-axis offset values, real-time Y-axis offset values, and real-time Z-axis offset values ​​based on the real-time temperature and offset comparison function; and obtaining real-time X-axis correction values, real-time Y-axis correction values, and real-time Z-axis correction values ​​based on the real-time X-axis offset values, real-time Y-axis offset values, and real-time Z-axis offset values. This addresses the problem of inaccurate temperature change offset values ​​obtained in existing sensor data correction techniques, leading to poor correction effects.

[0005] To achieve the above objectives, this application provides a method for intelligent correction of gravity sensor data in a mobile terminal, comprising the following steps:

[0006] The experimental division temperature was obtained using a mobile terminal based on the experiment.

[0007] The experimental representation offset value is obtained based on the temperature division in the experiment;

[0008] The experimental offset function is obtained based on the experimental representation offset value;

[0009] The first and second offset thresholds are obtained based on the experimental offset function;

[0010] The experimental offset representation value is obtained based on the experimental representation offset value, the first offset threshold, and the second offset threshold;

[0011] A offset control function is obtained based on experimental temperature division and experimental offset representation values;

[0012] The gravity sensor of the target mobile terminal acquires real-time temperature, real-time X-axis sensing value, real-time Y-axis sensing value and real-time Z-axis sensing value.

[0013] The real-time X-axis offset, real-time Y-axis offset, and real-time Z-axis offset values ​​are obtained based on the real-time temperature and offset comparison function.

[0014] Real-time X-axis correction values, real-time Y-axis correction values, and real-time Z-axis correction values ​​are obtained based on real-time X-axis offset values, real-time Y-axis offset values, and real-time Z-axis offset values.

[0015] Furthermore, the acquisition of experimental partition temperatures by the mobile terminal based on the experiment includes the following sub-steps:

[0016] Set the initial temperature before the conversion is off, and mark it as the reference initial temperature;

[0017] At the reference initial temperature, a first acceleration value of gravity acceleration is applied to the X-axis, Y-axis and Z-axis respectively, and then the data of the gravity sensor is acquired and labeled as X-axis reference acceleration, Y-axis reference acceleration and Z-axis reference acceleration respectively;

[0018] Obtain the operating temperature of the mobile terminal and mark it as the experimental operating temperature;

[0019] Obtain the range of experimental operating temperatures and mark it as the equipment operating temperature range;

[0020] The operating temperature range of the equipment is divided into equal intervals, and the temperature interval is the first temperature interval. Each division point within the operating temperature range of the equipment is obtained and marked as the temperature range division point.

[0021] Obtain the experimental operating temperature corresponding to all temperature range division points within the equipment's operating temperature range, and mark them as experimental division temperatures.

[0022] Furthermore, obtaining the experimental representation offset value based on the experimentally divided temperature includes the following sub-steps:

[0023] At the experimental temperature, gravitational acceleration of the first acceleration value was applied to the X-axis, Y-axis and Z-axis respectively, and then the data of the gravity sensor was acquired and labeled as X-axis experimental acceleration, Y-axis experimental acceleration and Z-axis experimental acceleration respectively.

[0024] Obtain the offset values ​​of the X-axis experimental acceleration, Y-axis experimental acceleration, and Z-axis experimental acceleration from the X-axis reference acceleration, Y-axis reference acceleration, and Z-axis reference acceleration, respectively, and label them as X-axis experimental offset value, Y-axis experimental offset value, and Z-axis experimental offset value, respectively.

[0025] The experimental offset values ​​for the X-axis, Y-axis, and Z-axis are all marked as experimental representation offset values.

[0026] Furthermore, obtaining the experimental offset function based on the experimental representation offset value includes the following sub-steps:

[0027] Under the same experimental division temperature, obtain the first number of experimental representation offset values ​​in the same axial direction, and mark them as experimental target offset values;

[0028] A Cartesian coordinate system is established with the experimental target offset value as the horizontal axis data and the number of experimental target offset values ​​as the vertical axis data, and it is marked as the experimental offset coordinate system.

[0029] Obtain the coordinates of the experimental target offset value and the number of experimental target offset values ​​as the x-coordinate and y-coordinate, respectively, and mark them as experimental offset coordinate points;

[0030] Plot all experimental offset coordinate points on the experimental offset coordinate system to obtain a scatter plot, and label it as the experimental offset scatter plot;

[0031] The function is obtained by fitting all the experimental offset coordinate points in the experimental offset scatter plot, and it is marked as the experimental offset function.

[0032] Furthermore, obtaining the first offset threshold and the second offset threshold based on the experimental offset function includes the following sub-steps:

[0033] The region enclosed by the vertical lower edge of the experimental offset function and the horizontal axis of the experimental offset coordinate system is marked as the first data region.

[0034] Obtain the area of ​​the first data region and mark it as the first data area;

[0035] In the experimental offset coordinate system, create a line segment on the horizontal axis that can move left and right and has a length equal to the first data length, and mark it as the first constructed line segment;

[0036] The real-time area of ​​the first data region vertically above the first constructed line segment is marked as the line segment search area;

[0037] Obtain the length of the distribution of the experimental target offset value on the horizontal axis in the experimental offset coordinate system, and mark it as the second data length;

[0038] The search area of ​​the line segment when the experimental target offset value is uniformly distributed within the range of the experimental target offset value is obtained and marked as the first mean area; the calculation formula of the first mean area is: S3=S2×(C1÷C2); where S3 is the first mean area, S2 is the first data area, C1 is the first data length, and C2 is the second data length;

[0039] The first area threshold is obtained as: S1 = f × S3; where S1 is the first area threshold and f is a set ratio value.

[0040] The first constructed line segment is shifted to the right from the leftmost side of the experimental offset coordinate system; when the search area of ​​the line segment is greater than or equal to the first area threshold, the movement of the first constructed line segment is stopped; the experimental target offset value corresponding to the minimum x-coordinate of the first constructed line segment at this time is obtained and marked as the first offset threshold.

[0041] The first constructed line segment is shifted to the left from the rightmost side of the experimental offset coordinate system; when the search area of ​​the line segment is greater than or equal to the first area threshold, the movement of the first constructed line segment is stopped; the experimental target offset value corresponding to the largest x-coordinate of the first constructed line segment at this time is obtained and marked as the second offset threshold.

[0042] Furthermore, obtaining the experimental offset representation value based on the experimental representation offset value, the first offset threshold, and the second offset threshold includes the following sub-steps:

[0043] The mean value of the experimental target offset within the range of the first offset threshold to the second offset threshold is obtained and marked as the experimental offset representation value;

[0044] Obtain experimental offset values ​​for different experimental division temperatures and different axial directions.

[0045] Furthermore, obtaining the offset control function based on the experimentally divided temperature and experimental offset representation values ​​includes the following sub-steps:

[0046] With experimental temperature as the horizontal axis value and experimental offset value as the vertical axis value, a Cartesian coordinate system is established and marked as the offset control coordinate system.

[0047] The points where the experimental temperature is divided and the corresponding experimental offset value is represented by the x-axis and y-axis are marked as offset control coordinate points;

[0048] Plot the offset reference coordinate points on the offset reference coordinate system, and then perform function fitting on all the offset reference coordinate points to obtain the offset reference function.

[0049] Furthermore, acquiring real-time temperature, real-time X-axis sensing value, real-time Y-axis sensing value, and real-time Z-axis sensing value based on the gravity sensor of the target mobile terminal includes the following sub-steps:

[0050] Obtain the temperature of the target mobile terminal and mark it as the real-time temperature;

[0051] The gravity sensor of the target mobile terminal acquires the gravity acceleration along the X, Y, and Z axes, and labels them as real-time X-axis sensing values, real-time Y-axis sensing values, and real-time Z-axis sensing values.

[0052] Furthermore, obtaining the real-time X-axis offset value, real-time Y-axis offset value, and real-time Z-axis offset value based on the real-time temperature and offset comparison function includes the following sub-steps:

[0053] Obtain the offset comparison functions for the X, Y, and Z axes;

[0054] Substitute the real-time temperature as the horizontal axis into the corresponding offset comparison function to obtain the vertical axis value, which is then labeled as the real-time X-axis offset value, real-time Y-axis offset value, and real-time Z-axis offset value, respectively.

[0055] Furthermore, obtaining real-time X-axis correction values, real-time Y-axis correction values, and real-time Z-axis correction values ​​based on real-time X-axis offset values, real-time Y-axis offset values, and real-time Z-axis offset values ​​includes the following sub-steps:

[0056] The real-time X-axis offset value, real-time Y-axis offset value, and real-time Z-axis offset value are used as offset values ​​to adjust the real-time X-axis sensing value, real-time Y-axis sensing value, and real-time Z-axis sensing value, respectively. These values ​​are then labeled as real-time X-axis correction value, real-time Y-axis correction value, and real-time Z-axis correction value.

[0057] The beneficial effects of this invention are as follows: This invention obtains the experimental division temperature based on an experimental mobile terminal; obtains the experimental representation offset value based on the experimental division temperature; obtains the experimental offset function based on the experimental representation offset value; obtains a first offset threshold and a second offset threshold based on the experimental offset function; obtains the experimental offset representation value based on the experimental representation offset value, the first offset threshold, and the second offset threshold; obtains an offset comparison function based on the experimental division temperature and the experimental offset representation value; obtains real-time temperature, real-time X-axis sensing value, real-time Y-axis sensing value, and real-time Z-axis sensing value based on the gravity sensor of the target mobile terminal; obtains real-time X-axis offset value, real-time Y-axis offset value, and real-time Z-axis offset value based on the real-time temperature and the offset comparison function; and obtains real-time X-axis correction value, real-time Y-axis correction value, and real-time Z-axis correction value based on the real-time X-axis offset value, real-time Y-axis offset value, and real-time Z-axis offset value. The advantage is that it can more accurately obtain the offset value of the gravity sensor caused by temperature changes, thus improving the correction effect.

[0058] This invention obtains real-time X-axis offset, real-time Y-axis offset, and real-time Z-axis offset values ​​based on a real-time temperature and offset comparison function. Its advantage lies in that it can obtain more accurate offset values ​​of the gravity sensor caused by temperature changes based on real-time temperature, thereby improving the correction effect. Attached Figure Description

[0059] Figure 1 This is a flowchart illustrating the steps of the method of the present invention;

[0060] Figure 2 This is a schematic diagram of the experimental offset function of the present invention;

[0061] Figure 3 This is a schematic diagram of the first offset threshold and the second offset threshold of the present invention;

[0062] Figure 4 This is a schematic diagram of the offset comparison function of the present invention. Detailed Implementation

[0063] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0064] Example 1, please refer to Figure 1 As shown, this application provides a method for intelligent correction of gravity sensor data in a mobile terminal, comprising the following steps:

[0065] Step S1: Obtain the experimental division temperature based on the mobile terminal used in the experiment; Step S1 includes the following sub-steps:

[0066] Step S101: Set the initial temperature before offset conversion and mark it as the reference initial temperature; the reference initial temperature is 25℃.

[0067] Step S102: At the reference initial temperature, apply the first acceleration value of gravity acceleration to the X-axis, Y-axis and Z-axis respectively, and then acquire the data of the gravity sensor respectively, which are marked as X-axis reference acceleration, Y-axis reference acceleration and Z-axis reference acceleration; X-axis, Y-axis and Z-axis of gravity sensor;

[0068] Step S103: Obtain the operating temperature of the mobile terminal and mark it as the experimental operating temperature;

[0069] Step S104: Obtain the range of experimental operating temperatures and mark it as the equipment operating temperature range;

[0070] Step S105: Divide the equipment operating temperature range into equal intervals, and the temperature interval is called the first temperature interval. Obtain each division point within the equipment operating temperature range and mark it as the temperature range division point. The temperature range division point is used to obtain the offset of all temperatures within the equipment operating temperature range. Therefore, the first temperature interval should not be too small, for example, the first temperature interval is 1℃.

[0071] Step S106: Obtain the experimental operating temperature corresponding to all temperature range division points within the equipment's operating temperature range, and mark them as experimental division temperatures;

[0072] In practical applications, for example, if the operating temperature range of the equipment is obtained as -40℃ to 60℃, and the first temperature interval is 1℃, then the experimental temperature division is as follows: -40℃, -39℃, ..., 59℃, 60℃.

[0073] Step S2, obtain the experimental representation offset value based on the experimentally divided temperature; Step S2 includes the following sub-steps:

[0074] Step S201: At the experimental temperature, apply the first acceleration value of gravity to the X-axis, Y-axis and Z-axis respectively, and then acquire the data of the gravity sensor respectively, and label them as X-axis experimental acceleration, Y-axis experimental acceleration and Z-axis experimental acceleration respectively;

[0075] Step S202: Obtain the offset values ​​of the X-axis experimental acceleration, Y-axis experimental acceleration, and Z-axis experimental acceleration from the X-axis reference acceleration, Y-axis reference acceleration, and Z-axis reference acceleration, respectively, and mark them as X-axis experimental offset value, Y-axis experimental offset value, and Z-axis experimental offset value, respectively.

[0076] Step S203: Mark the experimental offset values ​​of the X-axis, Y-axis and Z-axis as experimental representation offset values; the X-axis, Y-axis and Z-axis are subject to different temperature offsets, so the experimental representation offset values ​​of different axes are different.

[0077] Step S3: Obtain the experimental offset function based on the experimental representation offset value; Step S3 includes the following sub-steps:

[0078] Step S301: Under the same experimental division temperature, obtain a first number of experimental representation offset values ​​in the same axial direction and mark them as experimental target offset values; in order to obtain the experimental target offset values ​​corresponding to the experimental division temperature, the first number should not be too small to prevent the acquisition of noise points, for example, the first number is 1000; the same axial direction is any one of the X-axis, Y-axis and Z-axis of the gravity sensor;

[0079] Step S302: Establish a Cartesian coordinate system with the experimental target offset value as the horizontal axis data and the number of experimental target offset values ​​as the vertical axis data, and mark it as the experimental offset coordinate system;

[0080] Step S303: Obtain the coordinates of the experimental target offset value and the number of experimental target offset values ​​as the x-coordinate and y-coordinate, respectively, and mark them as experimental offset coordinate points;

[0081] Step S304: Plot all experimental offset coordinate points on the experimental offset coordinate system to obtain a scatter plot, and mark it as the experimental offset scatter plot;

[0082] Step S305: Fit all experimental offset coordinate points in the experimental offset scatter plot to obtain a function, and mark it as the experimental offset function;

[0083] In practical applications, for example, in an experiment where the temperature is set at 20℃, the experimental offset function is used to measure the offset value of the experimental target in the X-axis direction of the gravity sensor.

[0084] Step S4: Obtain the first offset threshold and the second offset threshold based on the experimental offset function; Step S4 includes the following sub-steps:

[0085] Step S401: Obtain the region enclosed by the vertical direction below the experimental offset function and the horizontal axis of the experimental offset coordinate system, and mark it as the first data region;

[0086] Step S402: Obtain the area of ​​the first data region and mark it as the first data area; this can represent the number of experimental target offset values.

[0087] Step S403: In the experimental offset coordinate system, establish a line segment on the horizontal axis that can move left and right and has a length equal to the first data length, labeled as the first constructed line segment; the first constructed line segment should not be too large in order to search for a range where the number of experimental target offset values ​​is too small. Please refer to [link to relevant documentation]. Figure 3 As shown, for example, the length of the first data is 1cm, where the experimental target offset value corresponds to a length of 0.004mg and is 1cm.

[0088] Step S404: Mark the real-time area of ​​the first data region vertically above the first constructed line segment as the line segment search area;

[0089] Step S405: Obtain the distribution length of the experimental target offset value along the horizontal axis in the experimental offset coordinate system, and mark it as the second data length; please refer to... Figure 3 As shown, the experimental target offset value corresponds to a length of 1cm for 0.004mg, and the second data length is 30cm;

[0090] Step S406: Obtain the line segment search area when the experimental target offset value is uniformly distributed within the range of the experimental target offset value, and mark it as the first mean area; wherein the calculation formula of the first mean area is: S3=S2×(C1÷C2); where S3 is the first mean area, S2 is the first data area, C1 is the first data length, and C2 is the second data length;

[0091] In practical applications, for example, the area of ​​the first data obtained is 570 cm². 2 Therefore, S3 = 570 × (1 ÷ 30) = 19cm 2 The first mean area indicates that the number of experimental target offset values ​​is the same for each experimental target offset value within the range of experimental target offset values;

[0092] Step S407, obtain the first area threshold as: S1=f×S3; where S1 is the first area threshold and f is a set ratio value; the first area threshold is to search out the range where the number of experimental target offset values ​​is too small, that is, the first area threshold indicates that the number is small, so the first area threshold should not be set too large, for example, the first area threshold is 0.2;

[0093] In practical applications, the first area threshold is obtained as: S1 = 0.2 × 19 = 3.8 cm. 2 .

[0094] Step S408: Move the first constructed line segment to the right from the leftmost side of the experimental offset coordinate system; stop moving the first constructed line segment when the search area of ​​the line segment is greater than or equal to the first area threshold; obtain the experimental target offset value corresponding to the smallest x-coordinate of the first constructed line segment at this time, and mark it as the first offset threshold; filter out abnormally small experimental target offset values, and take the first offset threshold as the new minimum experimental target offset value to eliminate interference data;

[0095] Step S409: Move the first constructed line segment from the rightmost side of the experimental offset coordinate system to the left; when the search area of ​​the line segment is greater than or equal to the first area threshold, stop moving the first constructed line segment; obtain the experimental target offset value corresponding to the largest x-coordinate of the first constructed line segment at this time, and mark it as the second offset threshold; filter out abnormally large experimental target offset values, and take the second offset threshold as the new maximum value of the experimental target offset value to eliminate interference data;

[0096] In practical applications, to quickly obtain the first and second offset thresholds, the step size for each movement can be 1 cm; the first constructed line segment is shifted to the right from the leftmost side of the experimental offset coordinate system; when the line segment search area is 6.2 cm²... 2 Greater than the first area threshold of 3.8cm 2 Stop moving the first constructing segment; see [link / reference] Figure 3 As shown, the first offset threshold is obtained as 1.948 mg; the first constructed line segment is shifted to the left from the rightmost side of the experimental offset coordinate system; when the line segment search area is 4.2 cm²... 2 Greater than the first area threshold of 3.8cm 2 Stop moving the first constructing segment; see [link / reference] Figure 4 As shown, the second offset threshold is obtained as 2.052mg.

[0097] Step S5: Obtain the experimental offset representation value based on the experimental representation offset value, the first offset threshold, and the second offset threshold; Step S5 includes the following sub-steps:

[0098] Step S501: Obtain the average value of the experimental target offset within the range of the first offset threshold to the second offset threshold, and mark it as the experimental offset representation value;

[0099] Step S502: Obtain experimental offset values ​​for different experimental division temperatures and different axial directions; this facilitates the acquisition of offset comparison functions for the X-axis, Y-axis, and Z-axis of the gravity sensor.

[0100] In practical applications, for example, if the experimental temperature is 20℃, the experimental offset value of the gravity sensor in the X-axis direction is 2.000mg.

[0101] Step S6: Obtain the offset control function based on the experimental partition temperature and experimental offset representation value; Step S6 includes the following sub-steps:

[0102] Step S601: Establish a Cartesian coordinate system with the experimental temperature as the horizontal axis value and the experimental offset value as the vertical axis value, and mark it as the offset control coordinate system;

[0103] Step S602: Mark the coordinate points where the experimental division temperature and the corresponding experimental offset value are the abscissa and ordinate, respectively, as offset control coordinate points;

[0104] Step S603: Plot the offset reference coordinate points in the offset reference coordinate system, and then perform function fitting on all the offset reference coordinate points to obtain the offset reference function; this facilitates obtaining the corresponding offset magnitude at different temperatures.

[0105] For practical applications, please refer to Figure 4 As shown, the offset reference function corresponding to the X-axis of the gravity sensor is obtained.

[0106] Step S7: Acquire real-time temperature, real-time X-axis sensing value, real-time Y-axis sensing value, and real-time Z-axis sensing value based on the gravity sensor of the target mobile terminal; Step S7 includes the following sub-steps:

[0107] Step S701: Obtain the temperature of the target mobile terminal and mark it as the real-time temperature;

[0108] Step S702: Obtain the gravity acceleration of the target mobile terminal's gravity sensor on the X-axis, Y-axis, and Z-axis, and label them as real-time X-axis sensing values, real-time Y-axis sensing values, and real-time Z-axis sensing values.

[0109] Step S8: Obtain the real-time X-axis offset value, real-time Y-axis offset value, and real-time Z-axis offset value based on the real-time temperature and offset comparison function; Step S8 includes the following sub-steps:

[0110] Step S801: Obtain the offset comparison functions for the X-axis, Y-axis, and Z-axis; the X-axis represents the X-axis of the gravity sensor.

[0111] Step S802: Substitute the real-time temperature as the horizontal axis into the corresponding offset comparison function to obtain the vertical axis value, and mark them as the real-time X-axis offset value, real-time Y-axis offset value and real-time Z-axis offset value respectively.

[0112] In practical applications, for example, if the real-time temperature is -10℃, please refer to Figure 4 for the corresponding X-axis offset reference function. Substitute the real-time temperature of -10℃ as the horizontal axis into the axis offset reference function to obtain the vertical axis value of 5.200mg. Then the real-time X-axis offset value is 5.200mg.

[0113] Step S9: Obtain real-time X-axis correction values, real-time Y-axis correction values, and real-time Z-axis correction values ​​based on the real-time X-axis offset values, real-time Y-axis offset values, and real-time Z-axis offset values; Step S9 includes the following sub-steps:

[0114] Step S901: The real-time X-axis offset value, real-time Y-axis offset value, and real-time Z-axis offset value are used as offset values ​​to adjust the real-time X-axis sensing value, real-time Y-axis sensing value, and real-time Z-axis sensing value respectively, and are marked as real-time X-axis correction value, real-time Y-axis correction value, and real-time Z-axis correction value respectively.

[0115] In practical applications, for example, if the real-time X-axis sensing value is 52.000mg and the real-time X-axis offset value is 5.200mg, then the real-time X-axis correction value is 52.000mg - 5.200mg = 46.8mg.

[0116] Example 2: This application also provides an electronic device, which may include: a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory communicate with each other through the communication bus. The memory stores computer-readable instructions, and the processor can call the instructions in the memory. When the computer-readable instructions are executed by the processor, the steps in a method for intelligent correction of gravity sensor data in a mobile terminal are performed to achieve the following functions: The mobile terminal acquires the experimental division temperature based on the experimental division temperature; acquires the experimental representation offset value based on the experimental representation offset value; acquires the experimental offset function based on the experimental offset function; acquires a first offset threshold and a second offset threshold based on the experimental representation offset value, the first offset threshold, and the second offset threshold; acquires an experimental offset representation value based on the experimental division temperature and the experimental offset representation value; acquires real-time temperature, real-time X-axis sensing value, real-time Y-axis sensing value, and real-time Z-axis sensing value based on the gravity sensor of the target mobile terminal; acquires real-time X-axis offset value, real-time Y-axis offset value, and real-time Z-axis offset value based on the real-time temperature and the offset comparison function; and acquires real-time X-axis correction value, real-time Y-axis correction value, and real-time Z-axis correction value based on the real-time X-axis offset value, real-time Y-axis offset value, real-time Z-axis offset value, and real-time Z-axis correction value.

[0117] Furthermore, when the logical instructions in the aforementioned memory can be implemented as software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or a portion of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0118] Example 3: This application also provides a computer program product, which includes a computer program stored on a computer-readable storage medium. The computer program includes program instructions, and when the program instructions are executed by a computer, the computer can execute a mobile terminal gravity sensor data intelligent correction method provided by the above methods. This method includes: acquiring experimental division temperatures based on the experimental mobile terminal; acquiring experimental representation offset values ​​based on the experimental division temperatures; acquiring an experimental offset function based on the experimental representation offset values; acquiring a first offset threshold and a second offset threshold based on the experimental offset function; and acquiring experimental representation offset values, ... The experimental offset representation value is obtained using the first offset threshold and the second offset threshold; an offset comparison function is obtained based on the experimental temperature and the experimental offset representation value; real-time temperature, real-time X-axis sensing value, real-time Y-axis sensing value, and real-time Z-axis sensing value are obtained based on the gravity sensor of the target mobile terminal; real-time X-axis offset value, real-time Y-axis offset value, and real-time Z-axis offset value are obtained based on the real-time temperature and the offset comparison function; real-time X-axis correction value, real-time Y-axis correction value, and real-time Z-axis correction value are obtained based on the real-time X-axis offset value, real-time Y-axis offset value, real-time Z-axis offset value, and real-time Z-axis offset value.

[0119] Example 4: This application also provides a computer-readable storage medium storing a computer program. When executed by a processor, the computer program performs the steps of the above-described intelligent correction method for mobile terminal gravity sensor data to achieve the following functions: acquiring experimental division temperature based on the experimental mobile terminal; acquiring experimental representation offset value based on the experimental division temperature; acquiring experimental offset function based on the experimental representation offset value; acquiring a first offset threshold and a second offset threshold based on the experimental offset function; acquiring experimental offset representation value based on the experimental representation offset value, the first offset threshold, and the second offset threshold; acquiring offset comparison function based on experimental division temperature and experimental offset representation value; acquiring real-time temperature, real-time X-axis sensing value, real-time Y-axis sensing value, and real-time Z-axis sensing value based on the gravity sensor of the target mobile terminal; acquiring real-time X-axis offset value, real-time Y-axis offset value, and real-time Z-axis offset value based on the real-time temperature and offset comparison function; acquiring real-time X-axis correction value, real-time Y-axis correction value, and real-time Z-axis correction value based on the real-time X-axis offset value, real-time Y-axis offset value, real-time Z-axis offset value, X-axis offset value, real-time Y-axis offset value, and real-time Z-axis offset value.

[0120] Based on the above description of the embodiments, the embodiments of the present invention can be provided as methods, systems, or computer program products. Based on this understanding, the above technical solutions, in essence or in terms of their contribution to the prior art, can be embodied in the form of a software product. This computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute the methods described in the various embodiments or certain parts of the embodiments.

[0121] In the embodiments provided in this application, it should be understood that the disclosed system or method can be implemented in other ways. The embodiments described above are merely illustrative. For example, the division of modules or units is only a logical functional division, and there may be other division methods in actual implementation. Furthermore, multiple modules or units may be combined or integrated into another system, or some features may be ignored or not executed. Additionally, the coupling or direct coupling or communication connection shown or discussed may be through some communication interfaces. The indirect coupling or communication connection between systems, modules, and units may be electrical, mechanical, or other forms.

[0122] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this application.

Claims

1. A method for intelligent correction of gravity sensor data in a mobile terminal, characterized in that, Includes the following steps: The experimental division temperature was obtained using a mobile terminal based on the experiment. The experimental representation offset value is obtained based on the temperature division in the experiment; The experimental offset function is obtained based on the experimental representation offset value; The first and second offset thresholds are obtained based on the experimental offset function; The experimental offset representation value is obtained based on the experimental representation offset value, the first offset threshold, and the second offset threshold; A offset control function is obtained based on experimental temperature division and experimental offset representation values; The gravity sensor of the target mobile terminal acquires real-time temperature, real-time X-axis sensing value, real-time Y-axis sensing value and real-time Z-axis sensing value. The real-time X-axis offset, real-time Y-axis offset, and real-time Z-axis offset values ​​are obtained based on the real-time temperature and offset comparison function. Real-time X-axis correction values, real-time Y-axis correction values, and real-time Z-axis correction values ​​are obtained based on real-time X-axis offset values, real-time Y-axis offset values, and real-time Z-axis offset values.

2. The intelligent correction method for gravity sensor data in a mobile terminal according to claim 1, characterized in that, The process of obtaining experimental partition temperatures using a mobile terminal based on the experiment includes the following sub-steps: Set the initial temperature before the conversion is off, and mark it as the reference initial temperature; At the reference initial temperature, a first acceleration value of gravity acceleration is applied to the X-axis, Y-axis and Z-axis respectively, and then the data of the gravity sensor is acquired and labeled as X-axis reference acceleration, Y-axis reference acceleration and Z-axis reference acceleration respectively; Obtain the operating temperature of the mobile terminal and mark it as the experimental operating temperature; Obtain the range of experimental operating temperatures and mark it as the equipment operating temperature range; The operating temperature range of the equipment is divided into equal intervals, and the temperature interval is the first temperature interval. Each division point within the operating temperature range of the equipment is obtained and marked as the temperature range division point. Obtain the experimental operating temperature corresponding to all temperature range division points within the equipment's operating temperature range, and mark them as experimental division temperatures.

3. The intelligent correction method for gravity sensor data in a mobile terminal according to claim 2, characterized in that, Obtaining the experimental representation offset value based on experimentally divided temperatures includes the following sub-steps: At the experimental temperature, gravitational acceleration of the first acceleration value was applied to the X-axis, Y-axis and Z-axis respectively, and then the data of the gravity sensor was acquired and labeled as X-axis experimental acceleration, Y-axis experimental acceleration and Z-axis experimental acceleration respectively. Obtain the offset values ​​of the X-axis experimental acceleration, Y-axis experimental acceleration, and Z-axis experimental acceleration from the X-axis reference acceleration, Y-axis reference acceleration, and Z-axis reference acceleration, respectively, and label them as X-axis experimental offset value, Y-axis experimental offset value, and Z-axis experimental offset value, respectively. The experimental offset values ​​for the X-axis, Y-axis, and Z-axis are all marked as experimental representation offset values.

4. The intelligent correction method for gravity sensor data in a mobile terminal according to claim 3, characterized in that, Obtaining the experimental offset function based on the experimental representation offset value includes the following sub-steps: Under the same experimental division temperature, obtain the first number of experimental representation offset values ​​in the same axial direction, and mark them as experimental target offset values; A Cartesian coordinate system is established with the experimental target offset value as the horizontal axis data and the number of experimental target offset values ​​as the vertical axis data, and it is marked as the experimental offset coordinate system. Obtain the coordinates of the experimental target offset value and the number of experimental target offset values ​​as the x-coordinate and y-coordinate, respectively, and mark them as experimental offset coordinate points; Plot all experimental offset coordinate points on the experimental offset coordinate system to obtain a scatter plot, and label it as the experimental offset scatter plot; The function is obtained by fitting all the experimental offset coordinate points in the experimental offset scatter plot, and it is marked as the experimental offset function.

5. The intelligent correction method for gravity sensor data in a mobile terminal according to claim 4, characterized in that, Obtaining the first and second offset thresholds based on the experimental offset function includes the following sub-steps: The region enclosed by the vertical lower edge of the experimental offset function and the horizontal axis of the experimental offset coordinate system is marked as the first data region. Obtain the area of ​​the first data region and mark it as the first data area; In the experimental offset coordinate system, create a line segment on the horizontal axis that can move left and right and has a length equal to the first data length, and mark it as the first constructed line segment; The real-time area of ​​the first data region vertically above the first constructed line segment is marked as the line segment search area; Obtain the length of the distribution of the experimental target offset value on the horizontal axis in the experimental offset coordinate system, and mark it as the second data length; The search area of ​​the line segment when the experimental target offset value is uniformly distributed within the range of the experimental target offset value is obtained and marked as the first mean area; the calculation formula of the first mean area is: S3=S2×(C1÷C2); where S3 is the first mean area, S2 is the first data area, C1 is the first data length, and C2 is the second data length; The first area threshold is obtained as: S1 = f × S3; where S1 is the first area threshold and f is a set ratio value. The first constructed line segment is shifted to the right from the leftmost side of the experimental offset coordinate system; the movement of the first constructed line segment is stopped when the search area of ​​the line segment is greater than or equal to the first area threshold. Obtain the experimental target offset value corresponding to the minimum x-coordinate of the first constructed line segment at this time, and mark it as the first offset threshold; The first constructed line segment is shifted to the left from the rightmost side of the experimental offset coordinate system; when the search area of ​​the line segment is greater than or equal to the first area threshold, the movement of the first constructed line segment is stopped; the experimental target offset value corresponding to the largest x-coordinate of the first constructed line segment at this time is obtained and marked as the second offset threshold.

6. The intelligent correction method for gravity sensor data in a mobile terminal according to claim 5, characterized in that, Obtaining the experimental offset representation value based on the experimental representation offset value, the first offset threshold, and the second offset threshold includes the following sub-steps: The mean value of the experimental target offset within the range of the first offset threshold to the second offset threshold is obtained and marked as the experimental offset representation value; Obtain experimental offset values ​​for different experimental division temperatures and different axial directions.

7. The intelligent correction method for gravity sensor data in a mobile terminal according to claim 6, characterized in that, The process of obtaining the offset comparison function based on experimentally divided temperature and experimental offset representation values ​​includes the following sub-steps: With experimental temperature as the horizontal axis value and experimental offset value as the vertical axis value, a Cartesian coordinate system is established and marked as the offset control coordinate system. The points where the experimental temperature is divided and the corresponding experimental offset value is represented by the x-axis and y-axis are marked as offset control coordinate points; Plot the offset reference coordinate points on the offset reference coordinate system, and then perform function fitting on all the offset reference coordinate points to obtain the offset reference function.

8. The intelligent correction method for gravity sensor data in a mobile terminal according to claim 7, characterized in that, The acquisition of real-time temperature, real-time X-axis sensing value, real-time Y-axis sensing value, and real-time Z-axis sensing value based on the gravity sensor of the target mobile terminal includes the following sub-steps: Obtain the temperature of the target mobile terminal and mark it as the real-time temperature; The gravity sensor of the target mobile terminal acquires the gravity acceleration along the X, Y, and Z axes, and labels them as real-time X-axis sensing values, real-time Y-axis sensing values, and real-time Z-axis sensing values.

9. The intelligent correction method for gravity sensor data in a mobile terminal according to claim 8, characterized in that, Obtaining real-time X-axis offset, real-time Y-axis offset, and real-time Z-axis offset based on the real-time temperature and offset comparison function includes the following sub-steps: Obtain the offset comparison functions for the X, Y, and Z axes; Substitute the real-time temperature as the horizontal axis into the corresponding offset comparison function to obtain the vertical axis value, which is then labeled as the real-time X-axis offset value, real-time Y-axis offset value, and real-time Z-axis offset value, respectively.

10. The intelligent correction method for gravity sensor data in a mobile terminal according to claim 9, characterized in that, Obtaining real-time X-axis correction values, real-time Y-axis correction values, and real-time Z-axis correction values ​​based on real-time X-axis offset values, real-time Y-axis offset values, and real-time Z-axis offset values ​​includes the following sub-steps: The real-time X-axis offset value, real-time Y-axis offset value, and real-time Z-axis offset value are used as offset values ​​to adjust the real-time X-axis sensing value, real-time Y-axis sensing value, and real-time Z-axis sensing value, respectively. These values ​​are then labeled as real-time X-axis correction value, real-time Y-axis correction value, and real-time Z-axis correction value.

Citation Information

Patent Citations

  • Correcting method and system for mobile terminal gravity sensor

    CN103529490A