CN107328401B - Mobile terminal, data correction processing method of geomagnetic sensor of mobile terminal, and storage medium - Google Patents

Mobile terminal, data correction processing method of geomagnetic sensor of mobile terminal, and storage medium Download PDF

Info

Publication number
CN107328401B
CN107328401B CN201710615747.1A CN201710615747A CN107328401B CN 107328401 B CN107328401 B CN 107328401B CN 201710615747 A CN201710615747 A CN 201710615747A CN 107328401 B CN107328401 B CN 107328401B
Authority
CN
China
Prior art keywords
geomagnetic
mobile terminal
volume
loudspeaker
geomagnetic sensor
Prior art date
Legal status (The legal status 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 status listed.)
Active
Application number
CN201710615747.1A
Other languages
Chinese (zh)
Other versions
CN107328401A (en
Inventor
俞斌
杨维琴
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
TCL Mobile Communication Technology Ningbo Ltd
Original Assignee
TCL Mobile Communication Technology Ningbo Ltd
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 TCL Mobile Communication Technology Ningbo Ltd filed Critical TCL Mobile Communication Technology Ningbo Ltd
Priority to CN201710615747.1A priority Critical patent/CN107328401B/en
Publication of CN107328401A publication Critical patent/CN107328401A/en
Application granted granted Critical
Publication of CN107328401B publication Critical patent/CN107328401B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01CMEASURING DISTANCES, LEVELS OR BEARINGS; SURVEYING; NAVIGATION; GYROSCOPIC INSTRUMENTS; PHOTOGRAMMETRY OR VIDEOGRAMMETRY
    • G01C17/00Compasses; Devices for ascertaining true or magnetic north for navigation or surveying purposes
    • G01C17/38Testing, calibrating, or compensating of compasses

Abstract

The invention discloses a mobile terminal, a data correction processing method of a geomagnetic sensor thereof and a storage medium, wherein the method comprises the following steps: the mobile terminal acquires a geomagnetic value (x, y, z) sensed by the geomagnetic sensor; the mobile terminal compares the absolute values of the three geomagnetic values x, y and z, assigns the maximum value to A, and calculates the volume VOL of the corresponding loudspeaker according to a formula; and the mobile terminal controls the volume of the loudspeaker according to the calculated volume VOL of the loudspeaker and detects the volume of the loudspeaker to obtain the original data obtained by the geomagnetic sensor of the mobile terminal. The invention realizes the measurement of the geomagnetic original data of the mobile terminal, and ensures that the measurement data is more accurate, thereby avoiding the problem of calling the application program of the geomagnetic data in the using process.

Description

Mobile terminal, data correction processing method of geomagnetic sensor of mobile terminal, and storage medium
Technical Field
The present invention relates to the field of mobile terminals, and in particular, to a mobile terminal, a data correction processing method for a geomagnetic sensor thereof, and a storage medium.
Background
At present, various sensors are commonly used on the mobile terminal to improve the induction of the mobile terminal to some operations of a user, so that the mobile terminal is more intelligent. The most commonly used inductor is a geomagnetic inductor, and the geomagnetic inductor can be used for detecting the surrounding magnetic field intensity, so that the current position and other information can be further calculated according to the magnetic field intensity. Due to the application of the geomagnetic sensor in the aspect of position, the geomagnetic sensor is widely applied to mobile terminals, so that the mobile terminals have functions of compasses, GPS navigation assistance and the like. Therefore, the correctness of the data detected by the geomagnetic sensor is crucial, and if the geomagnetic sensor chip has defects, the deviation of the detected data will directly affect the use of various mobile terminal related applications.
In the prior art, generally, various applications are directly tested to determine whether functions are correct, and it is still impossible to measure raw geomagnetic data sensed by a geomagnetic sensor, and then it is determined whether data of the geomagnetic sensor is correct, that is, the processing of geomagnetic sensing data of a mobile terminal in the prior art is not accurate and needs to be improved.
Accordingly, the prior art is yet to be improved and developed.
Disclosure of Invention
The present invention is directed to a mobile terminal, a data correction processing method for a geomagnetic sensor thereof, and a storage medium thereof, which are provided to overcome the above-mentioned drawbacks of the prior art. The method aims to measure original geomagnetic data sensed by a geomagnetic sensor on the mobile terminal in a production stage of the mobile terminal and judge whether the original geomagnetic data is correct or not, so that the problem of an application program calling the geomagnetic data in the using process is avoided.
The technical scheme adopted by the invention for solving the technical problem is as follows:
a mobile terminal geomagnetic sensor data correction processing method comprises the following steps:
j1, the mobile terminal obtains a geomagnetic value (x, y, z) sensed by the geomagnetic sensor;
j2, comparing the absolute values of the three ground magnetic values x, y and z by the mobile terminal, assigning the maximum value to A, and calculating the volume VOL of the corresponding loudspeaker according to the formula 1;
wherein, the formula 1 is as follows:
VOL=A*VOLmax/Amax
in formula 1, VOLmax is the maximum loudspeaker volume value, Amax is the absolute value of the maximum geomagnetic value that the geomagnetic sensor can sense;
j3, the mobile terminal controls the volume of the loudspeaker according to the calculated loudspeaker volume VOL and detects the loudspeaker volume to obtain the original data obtained by the geomagnetic sensor of the mobile terminal.
The method for correcting and processing the data of the geomagnetic sensor in the mobile terminal, wherein the step J1 is preceded by:
JA. A timer is set, and steps S1 to S3 are executed when the timer expires.
The method for correcting and processing data of a geomagnetic sensor of a mobile terminal, wherein the step J3 of detecting speaker volume to obtain raw data obtained by the geomagnetic sensor of the mobile terminal specifically includes:
j31, installing the mobile terminal in a closed box, and installing a volume sensor in the closed box;
j32, then, applying a certain magnetic field to the box, and obtaining the volume of a loudspeaker of the mobile terminal through an inductor of the volume in the box, thereby obtaining the original data of the geomagnetism detected by a geomagnetic inductor of the corresponding mobile terminal;
j33, comparing the original data with the closed box with a certain magnetic field to obtain whether the original geomagnetic data detected by the geomagnetic sensor has deviation.
A mobile terminal comprising a processor, and a memory coupled to the processor,
the memory stores a computer program which realizes the steps of the data correction processing method of the geomagnetic sensor of any mobile terminal when being executed by the processor;
the processor is configured to call the program instructions in the memory to execute the steps of any one of the above methods for correcting and processing geomagnetic sensor data in the mobile terminal.
A storage medium, wherein the storage medium stores a computer program, and the computer program is executed by a processor to implement the steps of any of the mobile terminal geomagnetic sensor data correction processing methods.
A mobile terminal, comprising: the geomagnetic sensor, the loudspeaker and the central processing unit; the geomagnetic sensor is used for sensing the magnetic strength sensed by the mobile terminal, and the loudspeaker is used for producing sound according to the magnitude of geomagnetic field; the central processing unit acquires a geomagnetic value sensed by the geomagnetic sensor and controls the volume of the loudspeaker according to the geomagnetic value; the geomagnetic sensor, the central processing unit and the loudspeaker are sequentially connected;
wherein, central processing unit still includes: the device comprises a geomagnetic acquisition module, a volume calculation module and a volume control module;
the geomagnetic acquisition module is connected with the geomagnetic sensor and used for acquiring geomagnetic values sensed by the geomagnetic sensor, wherein the acquired geomagnetic values comprise geomagnetic component values in three directions of an x axis, a y axis and a z axis;
the volume calculation module is connected with the geomagnetic acquisition module and used for calculating the volume of the loudspeaker corresponding to the acquired geomagnetic value;
and the volume control module is connected with the volume calculation module and used for controlling the volume of the loudspeaker according to the volume of the loudspeaker calculated by the volume calculation module.
The mobile terminal, the volume calculation module is used for calculating the volume of the speaker corresponding to the obtained geomagnetic value at this time, and specifically includes:
the calculation method comprises the steps of firstly comparing the absolute values of geomagnetic component values in the three directions of the x axis, the y axis and the z axis, taking the maximum absolute value A, and calculating the corresponding loudspeaker volume BL value according to the formula 1; VOL ═ VOLmax/Amax … … … … … … … equation 1;
wherein, VOLmax is the maximum loudspeaker volume value, Amax is the absolute value of the maximum geomagnetic value that the geomagnetic sensor can sense.
The mobile terminal, the data correction processing method of the geomagnetic sensor of the mobile terminal and the storage medium provided by the invention have the advantages that by arranging the timer, the geomagnetic value (x, y, z) sensed by the geomagnetic sensor is acquired after the timer is overtime; the magnitude of the absolute value of the x value, the y value and the z value is converted into the loudspeaker volume, the corresponding equipment or device detects the loudspeaker volume to obtain the original data of the geomagnetic sensor of the mobile terminal, the measurement of the geomagnetic original data of the mobile terminal is realized, the measurement data is more accurate, and the problem of calling the application program of the geomagnetic data in the using process is avoided.
Drawings
Fig. 1 is a functional block diagram of a preferred embodiment of a mobile terminal of the present invention.
Fig. 2 is a flowchart illustrating a data correction processing method for a geomagnetic sensor of a mobile terminal according to a preferred embodiment of the present invention.
Fig. 3 is a flowchart illustrating a data correction processing method for a geomagnetic sensor of a mobile terminal according to another preferred embodiment of the present invention.
Fig. 4 is a functional block diagram of another preferred embodiment of the mobile terminal of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer and clearer, the present invention is further described in detail below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
Example 1
As shown in fig. 1, the mobile terminal according to the embodiment of the present invention includes a geomagnetic sensor, a speaker, and a central processing unit; the geomagnetic sensor is used for sensing the magnetic strength sensed by the mobile terminal, and the loudspeaker is used for producing sound according to the magnitude of geomagnetic field; the central processing unit acquires a geomagnetic value sensed by the geomagnetic sensor and controls the volume of the loudspeaker according to the geomagnetic value; the geomagnetic sensor, the central processing unit and the loudspeaker are sequentially connected;
wherein, central processing unit still includes: the geomagnetic acquisition module, the volume calculation module and the volume control module are sequentially connected; the method comprises the following specific steps:
the geomagnetic acquisition module is connected with the geomagnetic sensor and used for acquiring geomagnetic values sensed by the geomagnetic sensor, wherein the acquired geomagnetic values comprise geomagnetic component values in three directions of an x axis, a y axis and a z axis;
the volume calculation module is connected with the geomagnetic acquisition module and used for calculating the volume of the loudspeaker corresponding to the acquired geomagnetic value; the calculation method comprises the steps of firstly comparing the absolute values of geomagnetic component values in the three directions of the x axis, the y axis and the z axis, taking the maximum absolute value A, and calculating the corresponding loudspeaker volume BL value according to the formula 1; wherein, VOLmax is the maximum loudspeaker volume value, Amax is the absolute value of the maximum geomagnetic value that the geomagnetic sensor can induce;
VOL ═ VOLmax/Amax … … … … … … … equation 1;
and the volume control module is connected with the volume calculation module and used for controlling the volume of the loudspeaker according to the volume of the loudspeaker calculated by the volume calculation module.
The working principle of the mobile terminal of the embodiment of the invention is as follows: the geomagnetic acquisition module acquires geomagnetic values (x, y, z) sensed by the geomagnetic sensor, the volume calculation module compares absolute values of the x, y and z values, assigns the maximum value to A, and calculates the volume of the corresponding loudspeaker according to a formula 1.
The calculation method comprises the steps of firstly comparing the absolute values of geomagnetic component values in the three directions of the x axis, the y axis and the z axis, taking the maximum absolute value A, and calculating the corresponding loudspeaker volume BL value according to the formula 1; wherein, VOLmax is the maximum loudspeaker volume value, Amax is the absolute value of the maximum geomagnetic value that the geomagnetic sensor can induce;
VOL ═ VOLmax/Amax … … … … … … … equation 1;
the volume control module controls the volume corresponding to the volume of the loudspeaker according to the volume of the loudspeaker calculated by the volume calculation module, and the original geomagnetic data fed back by the geomagnetic sensor of the current mobile terminal is known according to the volume of the loudspeaker.
The mobile terminal of the embodiment of the invention obtains the geomagnetic values (x, y, z) induced by the geomagnetic sensor through the geomagnetic obtaining module; the absolute values of the three values of x, y and z are assigned to A, and the corresponding loudspeaker volume is calculated according to the formula 1; therefore, the geomagnetic data is converted into the loudspeaker volume, the loudspeaker volume is detected by corresponding equipment or a device to obtain the original data obtained by the geomagnetic sensor of the mobile terminal, and the measurement of the geomagnetic original data of the mobile terminal is realized.
The mobile terminal of the embodiment of the invention can realize the control of the volume of the loudspeaker according to the geomagnetic value of the mobile terminal, so that the original geomagnetic data fed back by the geomagnetic sensor of the current mobile terminal can be known according to the volume of the loudspeaker. The mobile terminal is only required to be installed in the closed box, the inductor with the volume is installed in the closed box, then a certain magnetic field is added to the box, the volume of a loudspeaker of the mobile terminal can be obtained through the inductor with the volume in the box, accordingly, original data of geomagnetism detected by the corresponding geomagnetic inductor of the mobile terminal can be obtained, and whether the original geomagnetism data detected by the geomagnetic inductor has deviation or not can be known by comparing the original data with the magnetic field added by the closed box in a certain size. Through data comparison, the method of the invention is proved to realize the measurement of the geomagnetic original data of the mobile terminal, so that the measurement data is more accurate, thereby avoiding the problem of the application program calling the geomagnetic data in the use process.
Examples of how to know whether there is a deviation in the original geomagnetic data detected by the geomagnetic sensor are as follows: for example, the volume of the loudspeaker is linearly divided into 1-1000 levels, the 1 level is lightest, the 1000 level is loudest, the maximum value VOLmax is set to 1000, the magnetic field intensity which can be induced by the geomagnetic sensor is also linearly divided into 1-100 levels, the 1 level has the minimum magnetic field intensity, the 100 level has the maximum magnetic field intensity, and the maximum value Amax is set to 100; and are
And satisfy VOL ═ A VOLmax/Amax
In the formula, VOLmax is the maximum speaker volume value, and Amax is the absolute value of the maximum geomagnetic value that the geomagnetic sensor can sense.
The magnetic field intensity that each geomagnetic sensor can sense can correspond to a speaker volume value according to the above formula, so we can know the magnetic field intensity that each geomagnetic sensor can sense according to the speaker volume value.
Based on the mobile terminal of the embodiment, the invention also provides a data correction processing method of the geomagnetic sensor of the mobile terminal.
Example 2
Referring to fig. 2, fig. 2 is a flowchart illustrating a data correction processing method for a geomagnetic sensor of a mobile terminal according to a preferred embodiment of the present invention. As shown in fig. 2, a method for correcting and processing data of a geomagnetic sensor in a mobile terminal according to an embodiment of the present invention includes:
and S10, the mobile terminal acquires the geomagnetic values (x, y, z) sensed by the geomagnetic sensor.
In this embodiment, the mobile terminal obtains a geomagnetic value sensed by the geomagnetic sensor, where the obtained geomagnetic value includes geomagnetic component values in three directions, i.e., an x axis, a y axis, and a z axis.
S20, comparing the absolute values of the three ground magnetic values x, y and z by the mobile terminal, assigning the maximum value to A, and calculating the volume VOL of the corresponding loudspeaker according to the formula 1;
wherein, the formula 1 is as follows:
VOL=A*VOLmax/Amax
in equation 1, VOLmax is the maximum speaker volume value, and Amax is the absolute value of the maximum geomagnetic value that the geomagnetic sensor can sense.
The calculation method in the embodiment of the invention comprises the steps of firstly comparing the absolute values of geomagnetic component values in three directions of an x axis, a y axis and a z axis, taking the maximum absolute value A, and calculating the corresponding value of the volume BL of the loudspeaker according to a formula 1; wherein, VOLmax is the maximum loudspeaker volume value, Amax is the absolute value of the maximum geomagnetic value that the geomagnetic sensor can sense.
For example, the volume of the loudspeaker is linearly divided into 1-1000 levels, the 1 level is lightest, the 1000 level is loudest, the VOLmax is set as 1000, the magnetic field intensity which can be induced by the geomagnetic sensor is also linearly divided into 1-100 levels, the 1 level has the minimum magnetic field intensity, the 100 level has the maximum magnetic field intensity, and the Amax is set as 100;
if a is 60, VOL is 60 VOLmax/Amax is 60 1000/100 is 600.
And S30, the mobile terminal controls the volume of the loudspeaker according to the calculated loudspeaker volume VOL and detects the loudspeaker volume to obtain the original data obtained by the geomagnetic sensor of the mobile terminal.
In the embodiment of the present invention, the controlling the volume of the speaker according to the calculated volume of the speaker, and the detecting the volume of the speaker to obtain the original data obtained by the geomagnetic sensor of the mobile terminal specifically includes: for example, a mobile terminal is installed in a closed box, and a volume sensor is installed in the closed box; then, applying a certain magnetic field to the box, and obtaining the volume of a loudspeaker of the mobile terminal through an inductor of the volume in the box so as to obtain original data of the geomagnetism detected by a geomagnetic inductor of the corresponding mobile terminal; and comparing the original data with the magnetic field of a certain magnitude applied by the closed box to obtain whether the original geomagnetic data detected by the geomagnetic sensor has deviation.
Further, step S10 is preceded by:
SA, setting a timer, and executing the steps S10 to S30 when the timer is overtime.
Example 3
Based on the mobile terminal in the above embodiment, the method for correcting and processing data of a geomagnetic sensor of a mobile terminal according to the present invention, as shown in fig. 3, includes the following steps:
step S1, setting a timer T, and then executing step S2;
step S2, judging whether the timer T is overtime, if yes, executing step S3, otherwise executing step S2;
step S3, the geomagnetic acquisition module acquires a geomagnetic value (x, y, z) sensed by the geomagnetic sensor, and then performs step S4;
step S4, the volume calculating module compares the absolute values of the x, y and z values, assigns the maximum value to A, calculates the volume of the corresponding loudspeaker according to the formula 1, and then executes the step S5;
in step S5, the volume control module 330 controls the volume corresponding to the speaker volume according to the speaker volume calculated by the volume calculation module.
Then, the volume of the loudspeaker is controlled according to the geomagnetic value of the mobile terminal, so that the original geomagnetic data fed back by the geomagnetic sensor of the current mobile terminal can be known according to the volume of the loudspeaker. The mobile terminal is only required to be installed in the closed box, the inductor with the volume is installed in the closed box, then a certain magnetic field is added to the box, the volume of a loudspeaker of the mobile terminal can be obtained through the inductor with the volume in the box, accordingly, original data of geomagnetism detected by the corresponding geomagnetic inductor of the mobile terminal can be obtained, and whether the original geomagnetism data detected by the geomagnetic inductor has deviation or not can be known by comparing the original data with the magnetic field added by the closed box in a certain size.
Of course, it will be understood by those skilled in the art that all or part of the processes of the methods of the above embodiments may be implemented by a computer program instructing relevant hardware (such as a processor, a controller, etc.), and the program may be stored in a computer readable storage medium, and when executed, the program may include the processes of the above method embodiments. The storage medium may be a memory, a magnetic disk, an optical disk, etc.
Example 4
As shown in fig. 4, the mobile terminal of this embodiment includes a processor 10, and a memory 20 connected to the processor 10;
the memory 20 stores a computer program, and the computer program is executed by the processor 10 to implement the steps of the method for correcting and processing geomagnetic sensor data of the mobile terminal according to any one of the above embodiments, as described above.
The processor 10 is configured to call the program instructions in the memory to execute the steps of the method for processing data correction of a geomagnetic sensor of a mobile terminal according to any of the above embodiments, as described above.
Example 5
The storage medium stores a computer program, and the computer program is executed by the processor 10 to implement the steps of the geomagnetic sensor data correction processing method for any mobile terminal, as described above.
In summary, in the mobile terminal, the data correction processing method for the geomagnetic sensor thereof, and the storage medium provided by the present invention, the method sets a timer, and obtains the geomagnetic value (x, y, z) sensed by the geomagnetic sensor after the timer expires; the magnitude of the absolute value of the x value, the y value and the z value is converted into the loudspeaker volume, the corresponding equipment or device detects the loudspeaker volume to obtain the original data of the geomagnetic sensor of the mobile terminal, the measurement of the geomagnetic original data of the mobile terminal is realized, the measurement data is more accurate, and the problem of calling the application program of the geomagnetic data in the using process is avoided.
It is to be understood that the invention is not limited to the examples described above, but that modifications and variations may be effected thereto by those of ordinary skill in the art in light of the foregoing description, and that all such modifications and variations are intended to be within the scope of the invention as defined by the appended claims.

Claims (6)

1. A mobile terminal geomagnetic sensor data correction processing method is characterized by comprising the following steps:
j1, the mobile terminal obtains a geomagnetic value (x, y, z) sensed by the geomagnetic sensor;
j2, comparing the absolute values of the three ground magnetic values x, y and z by the mobile terminal, assigning the maximum value to A, and calculating the volume VOL of the corresponding loudspeaker according to the formula 1;
wherein, the formula 1 is as follows:
VOL=A*VOLmax/Amax
in formula 1, VOLmax is the maximum loudspeaker volume value, Amax is the absolute value of the maximum geomagnetic value that the geomagnetic sensor can sense;
j3, the mobile terminal controls the volume of the loudspeaker according to the calculated volume VOL of the loudspeaker, and detects the volume of the loudspeaker to obtain original data obtained by a geomagnetic sensor of the mobile terminal;
the method for obtaining the original data obtained by the geomagnetic sensor of the mobile terminal by detecting the volume of the loudspeaker specifically comprises the following steps:
j31, installing the mobile terminal in a closed box, and installing a volume sensor in the closed box;
j32, then, applying a certain magnetic field to the box, and obtaining the volume of a loudspeaker of the mobile terminal through an inductor of the volume in the box, thereby obtaining the original data of the geomagnetism detected by a geomagnetic inductor of the corresponding mobile terminal;
j33, comparing the original data with the closed box with a certain magnetic field to obtain whether the original geomagnetic data detected by the geomagnetic sensor has deviation.
2. The method of claim 1, further comprising, before performing J1:
JA. Setting a timer, and executing J1 to J3 after the timer is overtime.
3. A mobile terminal comprising a processor, and a memory coupled to the processor,
the memory stores a computer program which, when executed by the processor, implements the steps of the mobile terminal geomagnetic sensor data correction processing method according to claim 1 or 2;
the processor is configured to call the program instructions in the memory to execute the steps of the method for processing data correction of the geomagnetic sensor in the mobile terminal according to claim 1 or 2.
4. A storage medium, characterized in that the storage medium stores a computer program, which when executed by a processor implements the steps of the mobile terminal geomagnetic sensor data correction processing method according to claim 1 or 2.
5. A mobile terminal, comprising: the geomagnetic sensor, the loudspeaker and the central processing unit; the geomagnetic sensor is used for sensing the magnetic strength sensed by the mobile terminal, and the loudspeaker is used for producing sound according to the magnitude of geomagnetic field; the central processing unit acquires a geomagnetic value sensed by the geomagnetic sensor and controls the volume of the loudspeaker according to the geomagnetic value; the geomagnetic sensor, the central processing unit and the loudspeaker are sequentially connected;
wherein, central processing unit still includes: the device comprises a geomagnetic acquisition module, a volume calculation module and a volume control module;
the geomagnetic acquisition module is connected with the geomagnetic sensor and used for acquiring geomagnetic values sensed by the geomagnetic sensor, wherein the acquired geomagnetic values comprise geomagnetic component values in three directions of an x axis, a y axis and a z axis;
the volume calculation module is connected with the geomagnetic acquisition module and used for calculating the volume of the loudspeaker corresponding to the acquired geomagnetic value;
and the volume control module is connected with the volume calculation module and used for controlling the volume of the loudspeaker according to the volume of the loudspeaker calculated by the volume calculation module.
6. The mobile terminal according to claim 5, wherein the volume calculating module is configured to calculate the volume of the speaker corresponding to the geomagnetic value obtained this time specifically includes:
the calculation method comprises the steps of firstly comparing the absolute values of geomagnetic component values in the three directions of the x axis, the y axis and the z axis, taking the maximum absolute value A, and calculating the corresponding loudspeaker volume BL value according to the formula 1; VOL ═ VOLmax/Amax … … … … … … … equation 1;
wherein, VOLmax is the maximum loudspeaker volume value, Amax is the absolute value of the maximum geomagnetic value that the geomagnetic sensor can sense.
CN201710615747.1A 2017-07-26 2017-07-26 Mobile terminal, data correction processing method of geomagnetic sensor of mobile terminal, and storage medium Active CN107328401B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710615747.1A CN107328401B (en) 2017-07-26 2017-07-26 Mobile terminal, data correction processing method of geomagnetic sensor of mobile terminal, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710615747.1A CN107328401B (en) 2017-07-26 2017-07-26 Mobile terminal, data correction processing method of geomagnetic sensor of mobile terminal, and storage medium

Publications (2)

Publication Number Publication Date
CN107328401A CN107328401A (en) 2017-11-07
CN107328401B true CN107328401B (en) 2021-02-19

Family

ID=60227410

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710615747.1A Active CN107328401B (en) 2017-07-26 2017-07-26 Mobile terminal, data correction processing method of geomagnetic sensor of mobile terminal, and storage medium

Country Status (1)

Country Link
CN (1) CN107328401B (en)

Citations (23)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1224308A (en) * 1997-08-19 1999-07-28 三星电子株式会社 Terrestrial magnetism correction apparatus
CN1550790A (en) * 2003-05-09 2004-12-01 ض� Three-dimentional position calibration of audio sensors and actuators on a distributed computing platform
US6941246B2 (en) * 2003-09-18 2005-09-06 Intel Corporation Method for three-dimensional position calibration of audio sensors and actuators on a distributed computing platform
WO2005085756A1 (en) * 2004-03-04 2005-09-15 Nokia Corporation Mobile user device
CN1879006A (en) * 2004-10-07 2006-12-13 雅马哈株式会社 Geomagnetic sensor and geomagnetic sensor correction method, temperature sensor and temperature sensor correction method, geomagnetism detection device
EP1843554A1 (en) * 2005-01-27 2007-10-10 Matsushita Electric Industrial Co., Ltd. Portable terminal
CN101292131A (en) * 2005-09-02 2008-10-22 诺基亚公司 Calibration of 3d field sensors
JP2010169574A (en) * 2009-01-23 2010-08-05 Casio Hitachi Mobile Communications Co Ltd Electronic device and program
CN102460069A (en) * 2009-06-05 2012-05-16 苹果公司 Calibration techniques for an electronic compass in a portable device
CN102620725A (en) * 2012-03-16 2012-08-01 惠州Tcl移动通信有限公司 Method for calibrating compasses of mobile devices
US8239153B2 (en) * 2009-06-05 2012-08-07 Apple Inc. Dynamic compass calibration in a portable device
CN102692608A (en) * 2011-03-22 2012-09-26 雅马哈株式会社 Geomagnetic field measurement device, offset determination method, and computer readable recording medium therefor
JP2012208069A (en) * 2011-03-30 2012-10-25 Kddi Corp Portable device, program and method for correcting gravity vector to be used for autonomous positioning
CN102822626A (en) * 2010-03-30 2012-12-12 苹果公司 Determining heading using magnetometer data and angular rate data
CN103051788A (en) * 2012-12-14 2013-04-17 惠州Tcl移动通信有限公司 Mobile terminal and volume adjusting method thereof
CN103618816A (en) * 2013-11-21 2014-03-05 Tcl通讯(宁波)有限公司 Electronic compass system with automatic correction function and implementation method thereof
CN102422125B (en) * 2009-05-14 2015-04-15 联想创新有限公司(香港) Method for correcting a geomagnetic sensor for a mobile device, as well as a mobile device and a program
CN105115485A (en) * 2015-07-23 2015-12-02 小米科技有限责任公司 Displaying method and device of compass calibration interface
CN105554257A (en) * 2015-12-11 2016-05-04 惠州Tcl移动通信有限公司 Compass fast initialization setting method, system and mobile terminal
CN105571614A (en) * 2015-12-14 2016-05-11 广东欧珀移动通信有限公司 Magnetic sensor calibration method and device
CN105676303A (en) * 2016-01-19 2016-06-15 南京理工大学 Terrestrial magnetism data collector
CN106412751A (en) * 2016-11-14 2017-02-15 惠州Tcl移动通信有限公司 Earphone capable of discriminating direction and realization method thereof
CN107202597A (en) * 2017-05-09 2017-09-26 深圳市金立通信设备有限公司 A kind of geomagnetic data calibration method and terminal

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9062971B2 (en) * 2008-03-06 2015-06-23 Texas Instruments Incorporated E-compass, tilt sensor, memory and processor with coarse detilting procedure

Patent Citations (23)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1224308A (en) * 1997-08-19 1999-07-28 三星电子株式会社 Terrestrial magnetism correction apparatus
CN1550790A (en) * 2003-05-09 2004-12-01 ض� Three-dimentional position calibration of audio sensors and actuators on a distributed computing platform
US6941246B2 (en) * 2003-09-18 2005-09-06 Intel Corporation Method for three-dimensional position calibration of audio sensors and actuators on a distributed computing platform
WO2005085756A1 (en) * 2004-03-04 2005-09-15 Nokia Corporation Mobile user device
CN1879006A (en) * 2004-10-07 2006-12-13 雅马哈株式会社 Geomagnetic sensor and geomagnetic sensor correction method, temperature sensor and temperature sensor correction method, geomagnetism detection device
EP1843554A1 (en) * 2005-01-27 2007-10-10 Matsushita Electric Industrial Co., Ltd. Portable terminal
CN101292131A (en) * 2005-09-02 2008-10-22 诺基亚公司 Calibration of 3d field sensors
JP2010169574A (en) * 2009-01-23 2010-08-05 Casio Hitachi Mobile Communications Co Ltd Electronic device and program
CN102422125B (en) * 2009-05-14 2015-04-15 联想创新有限公司(香港) Method for correcting a geomagnetic sensor for a mobile device, as well as a mobile device and a program
US8239153B2 (en) * 2009-06-05 2012-08-07 Apple Inc. Dynamic compass calibration in a portable device
CN102460069A (en) * 2009-06-05 2012-05-16 苹果公司 Calibration techniques for an electronic compass in a portable device
CN102822626A (en) * 2010-03-30 2012-12-12 苹果公司 Determining heading using magnetometer data and angular rate data
CN102692608A (en) * 2011-03-22 2012-09-26 雅马哈株式会社 Geomagnetic field measurement device, offset determination method, and computer readable recording medium therefor
JP2012208069A (en) * 2011-03-30 2012-10-25 Kddi Corp Portable device, program and method for correcting gravity vector to be used for autonomous positioning
CN102620725A (en) * 2012-03-16 2012-08-01 惠州Tcl移动通信有限公司 Method for calibrating compasses of mobile devices
CN103051788A (en) * 2012-12-14 2013-04-17 惠州Tcl移动通信有限公司 Mobile terminal and volume adjusting method thereof
CN103618816A (en) * 2013-11-21 2014-03-05 Tcl通讯(宁波)有限公司 Electronic compass system with automatic correction function and implementation method thereof
CN105115485A (en) * 2015-07-23 2015-12-02 小米科技有限责任公司 Displaying method and device of compass calibration interface
CN105554257A (en) * 2015-12-11 2016-05-04 惠州Tcl移动通信有限公司 Compass fast initialization setting method, system and mobile terminal
CN105571614A (en) * 2015-12-14 2016-05-11 广东欧珀移动通信有限公司 Magnetic sensor calibration method and device
CN105676303A (en) * 2016-01-19 2016-06-15 南京理工大学 Terrestrial magnetism data collector
CN106412751A (en) * 2016-11-14 2017-02-15 惠州Tcl移动通信有限公司 Earphone capable of discriminating direction and realization method thereof
CN107202597A (en) * 2017-05-09 2017-09-26 深圳市金立通信设备有限公司 A kind of geomagnetic data calibration method and terminal

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
"姿态检测地磁传感器静态校正技术";刘建敬等;《南京理工大学学报》;20120229;第36卷(第1期);全文 *
"硅基电磁式MEMS微扬声器结构设计与制作";刘文俊等;《磁性材料与器件》;20140331;第45卷(第2期);全文 *

Also Published As

Publication number Publication date
CN107328401A (en) 2017-11-07

Similar Documents

Publication Publication Date Title
US10802472B2 (en) Method and apparatus for controlling motor vibration
CN108287633B (en) Calibration method and device of pressure sensor
US7835879B2 (en) Method and device for calibrating a magnetic sensor
CN112019279B (en) Line loss calibration method, device and system and computer readable storage medium
JP2017538919A (en) Extended Kalman filter-based autonomous magnetometer calibration
CN111060132B (en) Calibration method and device for travelling crane positioning coordinates
KR20130025484A (en) A method and an apparatus for measuring location of terminal using a magnetic field
WO2017113675A1 (en) Method and system for measuring battery power of mobile communication terminal device
US20160282445A1 (en) Position information acquisition system, terminal, and method
CN108419067A (en) White balance parameter record, method of adjustment and device, storage medium, terminal, camera
CN105783900A (en) Sensor data calibrating method and device
CN113504005A (en) Calibration method, device and equipment of pressure sensor and storage medium
CN109059181B (en) Photoelectric sensor calibration method and device, air conditioner and readable storage medium
CN111427929A (en) Product detection and correction method, device, equipment and computer storage medium
CN107328401B (en) Mobile terminal, data correction processing method of geomagnetic sensor of mobile terminal, and storage medium
CN111189469A (en) Step counting method, terminal device and storage medium
CN109341836B (en) Method and device for calibrating symmetrical platform
US20180115874A1 (en) Method and apparatus for geomagnetic signal processing
CN112428277A (en) Position calibration method and device, computer equipment and storage medium
CN107607898B (en) Calibration method and mobile terminal
US11333678B2 (en) Method for offset calibration of a yaw rate sensor signal of a yaw rate sensor, system and computer program
CN110020445B (en) Method and device for distributing complementary weight parameters
CN105628010A (en) Terminal compass calibrating method and system
KR20160134994A (en) Interrupt processing method in modular plc system
CN107179992B (en) Method for detecting shutdown time length of mobile terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant