CN101608917B - Method and apparatus for measuring magnetic offset of geomagnetic sensor and portable electronic apparatus - Google Patents

Method and apparatus for measuring magnetic offset of geomagnetic sensor and portable electronic apparatus Download PDF

Info

Publication number
CN101608917B
CN101608917B CN2009101520479A CN200910152047A CN101608917B CN 101608917 B CN101608917 B CN 101608917B CN 2009101520479 A CN2009101520479 A CN 2009101520479A CN 200910152047 A CN200910152047 A CN 200910152047A CN 101608917 B CN101608917 B CN 101608917B
Authority
CN
China
Prior art keywords
data
measurement data
set value
geomagnetic sensor
magnetic
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.)
Expired - Fee Related
Application number
CN2009101520479A
Other languages
Chinese (zh)
Other versions
CN101608917A (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.)
Yamaha Corp
Original Assignee
Yamaha Corp
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 Yamaha Corp filed Critical Yamaha Corp
Publication of CN101608917A publication Critical patent/CN101608917A/en
Application granted granted Critical
Publication of CN101608917B publication Critical patent/CN101608917B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

A method is designed for measuring a magnetic offset of a geomagnetic sensor equipped in a portable information terminal apparatus having a storage. The geomagnetic sensor has a magnetic sensitivity to a geomagnetic field and is affected by magnetization to cause the magnetic offset. In the method, an output of the geomagnetic sensor is measured to successively provide measurement data of the geomagnetic field from the output of the geomagnetic sensor. The measurement data is stored in the storage. The measurement data is read out from the storage when a number of the measurement data stored in the storage reaches a predetermined number, and an offset value of the magnetic offset is estimated based on the predetermined number of the measurement data read out from the storage.

Description

Be used to measure the method and apparatus and the portable electronic equipment of magnetic offset of geomagnetic sensor
The application is based on dividing an application of No. 200510078958.3 applications (being used to measure the method and apparatus and the portable electronic equipment of magnetic offset of geomagnetic sensor) that proposed on June 13rd, 2005, below quotes its content.
Technical field
The present invention relates to a kind of method and apparatus that is used for measuring the magnetic offset of geomagnetic sensor that is equipped in mobile information terminal apparatus.
Background technology
Under the situation of Magnetic Sensor traditionally; When it being installed in the inside of portable phone (portable information terminal); Owing to there is the magnetic field of coming out, so geomagnetic sensor is detected or even by those noise magnetic fields of their generations from leakage such as Metal Packaging of the loudspeaker that is installed together, magnetization electronic component.Therefore, have such instance, that is, through be installed in geomagnetic sensor in the portable phone detect earth magnetism example, the orientation that the orientation that calculate in the magnetic field that exists according to portable phone inside can not indicating correct.
For example; Have sensitive direction along mutually perpendicular two axles (X and Y direction) and on direction separately, have in the portable phone of geomagnetic sensor of the sensitivity that is equal to each other being equipped with, suppose that the angle that between ground magnetic vector and X axle, forms is θ, distinguish under the state of corresponding X and Y direction amount of magnetization at skew m and n; With obtaining geomagnetic sensor at detected value Vx on the X-direction and the detected value Vy of geomagnetic sensor on Y direction; Detected value Vx and detected value Vy are as output, because the inner noise magnetic field that exists of portable phone, so; Detected value Vx and detected value Vy obtain through additional calculation respectively, represent like (formula 1) and (formula 2).
Vx=R * cos θ+m ... (formula 1)
Vy=R * sin θ+n ... (formula 2)
(wherein R is a proportionality constant)
In other words, when (that is, applying constant outer magnetic field) under the situation that does not have at earth magnetism to change was arranged in the unmagnetized geomagnetic sensor rotation on a certain fixed position, the detected value of geomagnetic sensor can be drawn the real circle with centre coordinate (0,0).Hereinafter, the circle of drawing through the detected value of geomagnetic sensor is called compass circle.On the other hand, shown in figure 21 when the rotation of magnetized geomagnetic sensor, the detected value of geomagnetic sensor can be drawn have centre coordinate (m, real circle n).Method through following formation is used: wherein; Derive the centre coordinate of compass circle; Thereby derive the magnetized amount of magnetization of geomagnetic sensor of equal valuely; And, come detected value is proofreaied and correct to derive correct orientation thus through from the detected value of geomagnetic sensor, deducting the calculating of centre coordinate value (corrected value).
Particularly, at first derive the skew of centre coordinate value.For example; When making geomagnetic sensor, comprising in the plane of sensitive direction and turning around in the maintenance level; Thereby derive geomagnetic sensor with respect to the detected value of all directions on X axle and Y direction, and the maximal value of these detected values and minimum value remembered respectively make X Max, Y MaxAnd X Min, Y Min, (m n) is derived by following formula the off center coordinate.
M=(X Max+ X Min)/2 ... (formula 3)
N=(Y Max+ Y Min)/2 ... (formula 4)
In addition; When keeping level; The detected value that obtains when moving to precalculated position A at geomagnetic sensor (X1, Y1) and geomagnetic sensor from position A move to the output valve that obtains when being located at 180 ° of position D on the reverse direction (X2, Y2); (m is n) as its mean value to derive centre coordinate through following formula.
M=(X1+X2)/2 ... (formula 5)
N=(Y1+Y2)/2 ... (formula 6)
Then, deduct the off center coordinate figure to proofread and correct through calculating.According to the centre coordinate of such derivation (m, n) and geomagnetic sensor at detected value Vx on the X-direction and the detected value Vy of geomagnetic sensor on Y direction, derive azimuth angle theta by following formula.
When | Vy-n|<| when Vx-m| and Vx-m>0,
θ=tan -1((Vy-n)/(Vx-m)) ... (formula 7)
When | Vy-n|>| when Vx-m| and Vy-n>0,
θ=90 [degree]-tan -1((Vx-m)/(Vy-n)) ... (formula 8)
When | Vy-n|<| when Vx-m| and Vx-m<0,
θ=180 [degree]-tan -1((Vy-n)/(Vx-m)) ... (formula 9)
When | Vy-n|>| when Vx-m| and Vy-n<0,
θ=270 [degree]-tan -1((Vx-m)/(Vy-n)) ... (formula 10)
Yet; In above-mentioned traditional method for calibrating terrestrial magnetism sensor; Because the magnetized state of geomagnetic sensor is changing always; So when thinking that at every turn geomagnetic sensor has been magnetized, for maximal value and the minimum value that derives the geomagnetic sensor detected value, the user is necessary to make portable phone to turn around or more circles.But the problem of this existence is: especially be difficult to when keeping the portable phone level, it to be turned around or more circles; The result is the possibility that exists portable phone to descend once in a while; Even and to descend do not appear in portable phone, the data of acquisition also have deviation, therefore can not derive skew exactly.So, also there is such problem, that is, above-mentioned traditional method for calibrating terrestrial magnetism sensor is not suitable for portable equipment.
In view of these problems that exist; For example, patent documentation 1 has been described a kind of electronic bearing detection instrument, and wherein whether the magnetic field judgment means is judged by the detected magnetic field intensity of Magnetic Sensor outside preset range; And when its outside this scope the time; Judge that this Magnetic Sensor is magnetized, and when measuring, damping magnetic field makes its demagnetization to utilize the coil that applies bias voltage magnetic field to Magnetic Sensor to apply alternately to magnetized Magnetic Sensor.Yet; Though it is the technology according to disclosure document can be demagnetized, when the electronic bearing detection instrument moves in earth magnetism, inner at the electronic bearing detection instrument; By for example permanent magnet etc. (regardless of the direction of earth magnetism; It can both produce the magnetic field on the constant direction with respect to the direction of electronic bearing detection instrument) magnetic field that produces can not demagnetize the ferromagnet (for example, the lead-in wire of electronic component) of this soft magnetic bodies for relatively easily being magnetized or being demagnetized to the induced field that soft magnetic bodies produces.Therefore, can not address the above problem.
On the other hand; Patent documentation 2 is described a kind of azimuth detecting apparatus; This device judges whether the signal that is input to the arithmetic unit from geomagnetic sensor departs from the preset judgment district, thereby it is bigger to need not to rotate the amount of magnetization that just can identify geomagnetic sensor, and this is provided warning.Yet though it is big and provide warning to detect the amount of magnetization of Magnetic Sensor according to the technology of disclosure document, therefore the concrete technology that it does not disclose about output is proofreaied and correct can not address the above problem.
On the other hand; Patent documentation 3 is described a kind of magnetic detection method, wherein, does not exist under the situation of above-mentioned soft magnetic bodies nearby; To be adjusted to certain value with respect to the detected value of the Magnetic Sensor of being scheduled to uniform magnetic field in advance; Then from detected value (this detected value be exist under the state of soft magnetic bodies the direction from the magnetic sensitive axes obtains when the magnetic field) derivation correction coefficient, and, eliminate the induced field that produces around the soft magnetic bodies nearby through using predetermined computing formula according to correction coefficient.Yet, do not disclose about which type of situation needs according to the technology of disclosure document and to proofread and correct or carve the concrete technology of proofreading and correct when, therefore can not address the above problem.
On the other hand; Patent documentation 4 is described a kind of control method that is used for the electronic bearing detection instrument; Wherein through use magnetic field generator (it can produce the magnetic field that intensity is higher than earth magnetism), when changing magnetic field intensity according to predetermined sequence; The magnetic field that generation is used to regulate, and utilize the sequence that obtains the data of Magnetic Sensor according to predetermined sequence to obtain to regulate data, thus regulate.Yet, have a problem, promptly except that the electronic bearing detection instrument, according to the technology of disclosure document also needs apply the magnetic field generator of external magnetic field.
In addition, patent documentation 5 has been described a kind of calibration steps that is installed in the Magnetic Sensor in the portable terminal device.In this technology, portable terminal device rotates with each predetermined angular, and based on estimating skew through Magnetic Sensor in all angles data measured, thereby the speed that need not to rely on rotation just can be carried out calibration.Yet,, also be necessary to let the user be rotatably installed with the portable unit of Magnetic Sensor consciously, thereby it calibrated even in patent documentation 5 described methods.Therefore, improve to some extent although should technology compare with conventional art owing to force the user to carry out calibration operation, so concerning the user existing problems still.And if the user ignores or forgets calibration, geomagnetic sensor just can not be operated with optimum condition so.
[patent documentation 1]
Uncensored patent publication No. Hei 6-174472
[patent documentation 2]
Uncensored patent publication No. Hei 6-249663
[patent documentation 3]
Uncensored patent publication No. Hei 7-151842
[patent documentation 4]
Uncensored patent publication No. 2002-48551
[patent documentation 5]
Uncensored patent publication No. 2004-12416
Summary of the invention
Therefore; Consider above-mentioned situation and propose the present invention; (for example the purpose of this invention is to provide skew that a kind of correction causes by magnetization; Only through Magnetic Sensor swingingly on surface level) method for calibrating terrestrial magnetism sensor, and a kind of through user's bit data treatment facility portable information terminal of the correct operation that squints of Magnetic Sensor simplifiedly, this bearing data treatment facility carries out the correction of geomagnetic sensor.
Consider above-mentioned variety of issue equally and propose the present invention; And a kind of portable electronic equipment and calibration steps thereof with direction detection function be provided, can be easily proofread and correct and do not increase burden to the user to being installed in orientation detection element (with the form of geomagnetic sensor) in the folding portable electronic installation.
In order to realize above-mentioned purpose, the present invention proposes following device.
In first scheme of the present invention, the method that provides a kind of measurement to be equipped in the magnetic offset of geomagnetic sensor in the mobile information terminal apparatus, this geomagnetic sensor has the magnetic sensitivity to the terrestrial magnetic field on a plurality of axle of coordinate system, and influenced by magnetization and cause magnetic biasing.Method of the present invention comprises: the DATA REASONING step, and a plurality of measurement data that it is measured the output of said geomagnetic sensor and obtains said terrestrial magnetic field, each measurement data is represented by data point in coordinate system; The offset estimation step, it estimates the off-set value of said magnetic offset of geomagnetic sensor according to a plurality of measurement data of said terrestrial magnetic field, said off-set value is represented by offset point in coordinate system; The mean value calculation step; It calculates corresponding to the offset point of said off-set value with corresponding to the distance between a plurality of data points of a plurality of measurement data that are used to estimate off-set value, and further calculates the mean value of the distance that has calculated between offset point and a plurality of data point; The standard deviation calculation step, it calculates the standard deviation of the distance that has calculated according to the range averaging value that has calculated; And the validity determining step, it judges the validity of the off-set value of estimation according to the standard deviation that calculates.
Preferably, this mobile information terminal apparatus has first memory and second memory, and the DATA REASONING step obtains measurement data from geomagnetic sensor continuously.Method of the present invention further comprises: the data storage step; It will store in the said first memory through the said measurement data that said DATA REASONING step obtains continuously; So that said offset estimation step reads a plurality of measurement data from said first memory, and estimate the off-set value of said magnetic biasing according to the said a plurality of measurement data that from said first memory, read; And the offset storage step, when its validity of off-set value when estimation is identified through said validity determining step, the offset data of said estimation is stored in the said second memory.
Preferably; This mobile information terminal apparatus has the first memory that is used to store said measurement data and is used to store the second memory of said off-set value, and said DATA REASONING step obtains to comprise the measurement data of previous measurement data and current measurement data continuously.Method of the present invention further comprises the distance calculation step; It calculates corresponding to the current data point of said current measurement data and corresponding to the distance between the prior data point of said previous measurement data, and said previous measurement data has been stored in the said first memory; Determining step, it judges that whether computed range between said current data point and the said prior data point is greater than preset distance; The data storage step; It is when the distance of confirming to calculate during greater than preset distance; Said current measurement data is stored in the said first memory; Thereby through repeating the process of said distance calculation step, said determining step and said data storage step, measurement data is accumulated in the said first memory, is stored in measurement data number in the said first memory when reaching predetermined number with box lunch; Said offset estimation step reads a plurality of said measurement data from said first memory, and estimates the off-set value of said magnetic biasing according to a plurality of said measurement data that from said first memory, reads; And the offset storage step, when its validity of off-set value when estimation is identified through said validity determining step, the offset data of said estimation is stored in the said second memory.
Preferably, method of the present invention further comprises circular user's when judging that through said validity determining step the off-set value of said estimation is invalid circular step.
Preferably; Method of the present invention further comprises: the comparison step that a plurality of measurement data compare mutually; In said a plurality of measurement data each all be used for estimating off-set value and said a plurality of measurement data each represent by one group of coordinate components corresponding to one group of axle of coordinate system; So that compare poor with between the maximal value of the coordinate components that obtains each and the minimum value at each coordinate components to said measurement data; Wherein, Said validity determining step is except according to the said standard deviation that calculates, also according to each maximal value and the validity that the difference between the minimum value is judged the off-set value of said estimation of coordinate components that obtains.
Preferably; In the method for the invention; The DATA REASONING step is measured the output of geomagnetic sensor, and this geomagnetic sensor is from comprise giant magnetoresistance device, tunnel magnetoresistance device, permanent magnetism resistance device, Hall device, magnetoimpedance device and fluxgate sensor, to select.
Preferably; The DATA REASONING step is measured the output of said geomagnetic sensor; Said geomagnetic sensor is having magnetic sensitivity on two axles of two-dimensional coordinate system or on three axles of three-dimensional system of coordinate, so that each measurement data is represented by the data point in two-dimensional coordinate system or the three-dimensional system of coordinate.
At this another kind of method that is equipped in the magnetic offset of geomagnetic sensor in the mobile information terminal apparatus with storer of measuring is provided, has the magnetic sensitivity of terrestrial magnetic field on a plurality of axles of said geomagnetic sensor in coordinate system and influenced by magnetization and cause magnetic biasing.This method comprises: the DATA REASONING step; It measures the output of said geomagnetic sensor; And a plurality of measurement data of the said terrestrial magnetic field that comprises previous measurement data and current measurement data are provided continuously, each measurement data is represented by data point in coordinate system; Apart from determining step; It calculates corresponding to the current data point of said current measurement data and corresponding to the distance between the prior data point that is stored in the said previous measurement data in the said storer, and whether the said current data point that calculated of judgement and the distance between the said prior data point be greater than preset distance; The data storage step; It is when the distance of confirming to have calculated during greater than preset distance; Said current measurement data is stored in the said storer, thereby said measurement data is accumulated in the said storer, and the offset estimation step; It reads said a plurality of measurement data from said storer, and estimates the off-set value of said magnetic biasing according to the said a plurality of measurement data that from said storer, read.
Also provide a kind of measurement to be equipped in the method for the magnetic offset of geomagnetic sensor in the mobile information terminal apparatus with storer and inclination sensor at this; Said geomagnetic sensor has the magnetic sensitivity of terrestrial magnetic field on two axles of two-dimensional coordinate system and receives magnetization to influence and cause magnetic biasing, and said inclination sensor detects the inclination angle of said mobile information terminal apparatus.Method of the present invention comprises: the DATA REASONING step, and it measures the output of said geomagnetic sensor, and a plurality of measurement data of the said terrestrial magnetic field that comprises previous measurement data and follow-up measurement data are provided continuously; The inclination measurement step; Its measure output of said inclination sensor and provide continuously a plurality of angle-datas, said a plurality of angle-datas represent the inclination angle of mobile information terminal apparatus and comprise with the previous simultaneously-measured previous angle-data of measurement data and with the simultaneously-measured follow-up angle-data of follow-up measurement data; The data storage step; It is when the difference between another inclination angle of the inclination angle of the mobile information terminal apparatus of representing through said follow-up angle-data and the mobile information terminal apparatus represented through said previous angle-data during greater than predetermined difference; Said follow-up measurement data is stored in the said storer; Thereby, said measurement data is accumulated in the said storer through repeating the process of said DATA REASONING step, said inclination measurement step and said data storage step; And the offset estimation step, it reads the measurement data of a plurality of accumulations from said storer, and estimates the off-set value of said magnetic biasing according to the measurement data of said a plurality of accumulations of from said storer, reading.
Preferably, when the measurement data number of in said storer, accumulating reached predetermined number, said offset estimation step read the measurement data of said a plurality of accumulations from said storer.Method of the present invention further comprises the mean value calculation step; Its calculate in two-dimensional coordinate system, define, corresponding to the offset point of the off-set value of estimation with in two-dimensional coordinate system, define, corresponding to the distance between a plurality of data points of a plurality of measurement data that are used to estimate said off-set value, and the said offset point that calculated of further calculating and the mean value of the distance between said a plurality of data point; The standard deviation calculation step, it calculates the standard deviation of the distance that has calculated according to the range averaging value that has calculated; The validity determining step, it judges the validity of the off-set value of estimation according to the standard deviation that calculates; And the offset storage step, when its validity when the off-set value of estimation is identified through said validity determining step, store the offset data of said estimation.
In this method that also provides a kind of measurement to be equipped in the magnetic offset of geomagnetic sensor in the mobile information terminal apparatus with storer, said geomagnetic sensor has the magnetic sensitivity of terrestrial magnetic field and influenced by magnetization and cause magnetic biasing.The present invention includes: the DATA REASONING step, it measures the output of said geomagnetic sensor, and according to the output of said geomagnetic sensor the measurement data of said terrestrial magnetic field is provided continuously; The data storage step, it is stored in said measurement data in the said storer; And offset estimation step; When the number of its measurement data in being stored in said storer reaches predetermined number; From said storer, read said measurement data, and estimate the off-set value of said magnetic biasing based on the said measurement data of the predetermined number that from said storer, reads.
According to first scheme of the present invention, judge by the validity determining step by the validity of the off-set value of offset estimation step estimation.Therefore, can constantly obtain suitable off-set value.Should be noted that in the distance between any measurement point (detected value) on the compass circle and be defined as " distance ".According to the present invention, judge by the validity determining step by the validity of the off-set value of offset estimation step estimation, and when validity was identified, the off-set value that is stored in first memory storage was updated.Therefore, can constantly suitable off-set value be stored in first memory storage.According to the present invention, only be positioned at one of distance formerly during position or near a plurality of position the compass circle that forms by the measurement data of geomagnetic sensor of measurement point certain value, ability input measurement data when current measurement point.Therefore, even the swing of portable information terminal is inhomogeneous, also can make the distributing equilibrium of measurement data.According to the present invention, only when the detection output of the detection output of the geomagnetic sensor of current measurement point or inclination sensor with one formerly measurement point compare when having changed scheduled volume input measurement data.Therefore, can avoid, no matter through problem that how long measurement data is not also imported except earth magnetism directly the situation perpendicular to ground.According to the present invention, when off-set value is invalid, the user will obtain the sort of result's circular.Therefore, the user can identify the also completion of estimation of off-set value.According to the present invention, when off-set value is invalid, after confirming whether the user hopes so, with the correction of carrying out this skew once more.Therefore, can carry out correction, become effectively until off-set value, and can conveniently select according to the user to skew.According to the present invention, in the portable information terminal that the geomagnetic sensor with diaxon magnetic sensitive direction is installed, proofread and correct easily because the influence that output offset caused that the magnetization of geomagnetic sensor causes to measured data values.
Further in first scheme of the present invention; A kind of device that is used for measuring the magnetic offset of geomagnetic sensor that is equipped in portable information terminal is provided, has the magnetic sensitivity of terrestrial magnetic field on a plurality of axle of said geomagnetic sensor in coordinate system and influenced by magnetization and cause magnetic biasing.The inventive system comprises: the DATA REASONING part, a plurality of measurement data that it is measured the output of said geomagnetic sensor and obtains said terrestrial magnetic field, each measurement data is represented by data point in coordinate system; The offset estimation part, it estimates the off-set value of said magnetic offset of geomagnetic sensor according to a plurality of measurement data of said terrestrial magnetic field, said off-set value is represented by offset point in coordinate system; The mean value calculation part; It calculates corresponding to the offset point of said off-set value with corresponding to the distance between a plurality of data points of a plurality of measurement data that are used to estimate off-set value, and further calculates the mean value of the distance that has calculated between offset point and a plurality of data point; The standard deviation calculation part, it calculates the standard deviation of the distance that has calculated according to the range averaging value that has calculated; And the validity judgment part, it judges the validity of the off-set value of estimation according to the standard deviation that calculates.
At this device that provides another kind to be used for measuring the magnetic offset of geomagnetic sensor that is equipped in portable information terminal, said geomagnetic sensor has the magnetic sensitivity of terrestrial magnetic field on a plurality of axle of coordinate system and influenced by magnetization and cause magnetic biasing.The inventive system comprises: the DATA REASONING part; It measures the output of said geomagnetic sensor; And a plurality of measurement data of the said terrestrial magnetic field that comprises previous measurement data and current measurement data are provided continuously, each measurement data is represented by data point in coordinate system; Apart from the judgment part; It calculates corresponding to the current data point of said current measurement data and corresponding to the distance between the prior data point that is stored in the said previous measurement data in the said storer, and whether the said current data point that calculated of judgement and the distance between the said prior data point be greater than preset distance; Data-carrier store, it is stored said current measurement data, thereby accumulates said measurement data when the distance of confirming to have calculated during greater than preset distance; And the offset estimation part, it reads said a plurality of measurement data from said data-carrier store, and estimates the off-set value of said magnetic biasing according to the said a plurality of measurement data that from said data-carrier store, read.
At this a kind of device that is used for measuring the magnetic offset of geomagnetic sensor that is equipped in the portable information terminal with inclination sensor is provided further; Said geomagnetic sensor has the magnetic sensitivity of terrestrial magnetic field on two axles of two-dimensional coordinate system and receives magnetization to influence and cause magnetic biasing, and said inclination sensor detects the inclination angle of said portable information terminal.The inventive system comprises: the DATA REASONING part, it measures the output of said geomagnetic sensor, and a plurality of measurement data of the said terrestrial magnetic field that comprises previous measurement data and follow-up measurement data are provided continuously; The inclination measurement part; It measures the output of said inclination sensor; And provide continuously a plurality of angle-datas, said a plurality of angle-datas represent the inclination angle of said portable information terminal and comprise and the previous simultaneously-measured previous angle-data of measurement data and with the simultaneously-measured follow-up angle-data of follow-up measurement data; Data-carrier store; It is when the difference between another inclination angle of the inclination angle of the portable information terminal of representing through said follow-up angle-data and the portable information terminal represented through said previous angle-data during greater than predetermined difference; Store said follow-up measurement data, thereby partly accumulate said measurement data with said inclination measurement through repeatedly operating said DATA REASONING part; And the offset estimation part, it reads the measurement data of a plurality of accumulations from said data-carrier store, and estimates the off-set value of said magnetic biasing according to the said a plurality of cumulative measurement data that from said data-carrier store, read.
At this a kind of device that is used for measuring the magnetic offset of geomagnetic sensor that is equipped in portable information terminal is provided further, said geomagnetic sensor has the magnetic sensitivity of terrestrial magnetic field and influenced by magnetization and cause magnetic biasing.The inventive system comprises: the DATA REASONING part, it measures the output of said geomagnetic sensor, and according to the output of said geomagnetic sensor the measurement data of said terrestrial magnetic field is provided continuously; Data-carrier store, it stores said measurement data; And offset estimation part; When its measurement data number in being stored in said data-carrier store reaches predetermined number; From said data-carrier store, read said measurement data, and estimate the off-set value of said magnetic biasing based on the measurement data of the predetermined number that from said data-carrier store, reads.
In addition; In first scheme of the present invention; The machine readable media that is used in the mobile information terminal apparatus with CPU and geomagnetic sensor is provided, and said geomagnetic sensor has the magnetic sensitivity of terrestrial magnetic field on a plurality of axle of coordinate system and influenced by magnetization and cause that magnetic biasing, said medium comprise the programmed instruction of carrying out through CPU; So that mobile information terminal apparatus is carried out the method for measuring magnetic offset of geomagnetic sensor; Wherein this method comprises: the DATA REASONING step, and a plurality of measurement data that it is measured the output of said geomagnetic sensor and obtains said terrestrial magnetic field, each measurement data is represented by data point in coordinate system; The offset estimation step, it estimates the off-set value of said magnetic offset of geomagnetic sensor according to a plurality of measurement data of said terrestrial magnetic field, said off-set value is represented by offset point in coordinate system; The mean value calculation step; It calculates corresponding to the offset point of said off-set value with corresponding to the distance between a plurality of data points of a plurality of measurement data that are used to estimate off-set value, and further calculates the mean value of the distance that has calculated between offset point and a plurality of data point; The standard deviation calculation step, it calculates the standard deviation of the distance that has calculated according to the range averaging value that has calculated; And the validity determining step, it judges the validity of the off-set value of estimation according to the standard deviation that calculates.
Provide another kind to be used in to have the machine readable media in the mobile information terminal apparatus of CPU, storer and geomagnetic sensor at this; Said geomagnetic sensor has the magnetic sensitivity of terrestrial magnetic field on a plurality of axle of coordinate system and influenced by magnetization and cause magnetic biasing; Said medium comprises the programmed instruction of carrying out through CPU; So that mobile information terminal apparatus is carried out the method for measuring magnetic offset of geomagnetic sensor; Wherein said method comprises: the DATA REASONING step; It measures the output of said geomagnetic sensor, and a plurality of measurement data of the said terrestrial magnetic field that comprises previous measurement data and current measurement data are provided continuously, and each measurement data is represented by data point in coordinate system; Apart from determining step; It calculates corresponding to the current data point of said current measurement data and corresponding to the distance between the prior data point that is stored in the said previous measurement data in the said storer, and whether the said current data point that calculated of judgement and the distance between the said prior data point be greater than preset distance; The data storage step, it is stored in said current measurement data in the said storer, thereby said measurement data is accumulated in the said storer when the distance of confirming to have calculated during greater than preset distance; And the offset estimation step, it reads a plurality of said measurement data from said storer, and estimates the off-set value of said magnetic biasing according to the said a plurality of measurement data that from said storer, read.
This further provide a kind of be used in have CPU, machine readable media in the mobile information terminal apparatus of storer, geomagnetic sensor and inclination sensor; Said geomagnetic sensor has the magnetic sensitivity of terrestrial magnetic field on two axles of two-dimensional coordinate system and receives magnetization to influence and cause magnetic biasing, and said inclination sensor detects the inclination angle of said mobile information terminal apparatus.Medium of the present invention comprises the programmed instruction of being carried out by CPU; So that mobile information terminal apparatus is carried out the method for measuring magnetic offset of geomagnetic sensor; Wherein said method comprises: the DATA REASONING step; It measures the output of said geomagnetic sensor, and a plurality of measurement data of the said terrestrial magnetic field that comprises previous measurement data and follow-up measurement data are provided continuously; The inclination measurement step; Its measure output of said inclination sensor and provide continuously a plurality of angle-datas, said a plurality of angle-datas represent the inclination angle of mobile information terminal apparatus and comprise with the previous simultaneously-measured previous angle-data of measurement data and with the simultaneously-measured follow-up angle-data of follow-up measurement data; The data storage step; It is when the difference between another inclination angle of the inclination angle of the mobile information terminal apparatus of representing through said follow-up angle-data and the mobile information terminal apparatus represented through said previous angle-data during greater than predetermined difference; Said follow-up measurement data is stored in the said storer; Thereby, said measurement data is accumulated in the said storer through repeating the process of said DATA REASONING step, said inclination measurement step and said data storage step; And the offset estimation step, it reads the measurement data of a plurality of accumulations from said storer, and estimates the off-set value of said magnetic biasing according to the measurement data of said a plurality of accumulations of from said storer, reading.
This further provide a kind of be used in have CPU, machine readable media in the mobile information terminal apparatus of storer and geomagnetic sensor, said geomagnetic sensor has the magnetic sensitivity of terrestrial magnetic field and influenced by magnetization and cause magnetic biasing.Medium of the present invention comprises the programmed instruction of being carried out by CPU; So that mobile information terminal apparatus is carried out the method for measuring magnetic offset of geomagnetic sensor; Wherein said method comprises: the DATA REASONING step; It measures the output of said geomagnetic sensor, and according to the output of said geomagnetic sensor the measurement data of said terrestrial magnetic field is provided continuously; The data storage step, it stores said measurement data in the said storer into; And offset estimation step; When the number of its measurement data in being stored in said storer reaches predetermined number; From said storer, read said measurement data, and based on the said measurement data of the predetermined number that from said storer, reads to estimate the off-set value of said magnetic biasing.
In alternative plan of the present invention; A kind of portable electronic equipment with folded formation of handling through opening operation and closed procedure is provided; Comprise: the orientation detection part; It has the geomagnetic sensor that is used to measure the earth magnetism of skew and exports the measurement data of said earth magnetism, makes said measurement data possibly comprise the error that causes owing to said skew like this, and based on coming the detection orientation direction from the measurement data of said geomagnetic sensor; The opened/closed test section, it detects the opening operation and the closed procedure of said folded formation; And control section; Its any one in detecting opening operation or closed procedure responds when operating; In order to begin obtaining a series of measurement data from said geomagnetic sensor; Estimate off-set value according to the measurement data series that obtains then, and set the estimated value of said skew, the estimated value of said skew is used for proofreading and correct the error that during the detection orientation direction, is included in said measurement data.
Preferably; Said folded formation comprises that a pair of unit that links together also passes through opening operation and closed procedure open and close each other; And opening with closed, in order to detect said opening operation and said closed procedure of said a pair of unit physically detected in wherein said opened/closed test section.
Preferably; Said a pair of unit comprises fixed cell and mobile unit; It is fixing that said fixed cell keeps in said opening operation usually; Said mobile unit responds said opening operation and moves with respect to said fixed cell, and wherein said geomagnetic sensor is installed in the said mobile unit.
Preferably, portable electronic equipment of the present invention further comprises display device, further comprises display device, and said display device shows the information relevant with the operation of said portable electronic equipment and is installed in the said mobile unit.
Preferably; Said folded formation comprises the magnetic source that generation possibly cause the magnetic force of said geomagnetic sensor skew; And wherein said geomagnetic sensor is arranged in the said folded formation away from the position of said magnetic source, and such set-up mode is in order that reduce the magnetic influence of said magnetic source.
Preferably, portable electronic equipment of the present invention further comprises the validity judgment part, and it judges the validity of the estimated value of skew; The circular part, it is operated when invalid when the estimated value of said skew is judged as through said validity judgment part, carries out said opening operation or said closed procedure once more in order to point out the user.
Preferably, portable electronic equipment of the present invention further comprises the validity judgment part, and it judges the validity of the estimated value of said skew; The circular part, it is operated when invalid when the estimated value of said skew is judged as through the validity judgment part, in order to prompting the user further said opening operation of execution and said closed procedure when said folded formation is placed with different directions.
Preferably, wherein said folded formation is rotary-type, and it has the part of in opening operation or closed procedure, rotating.
Preferably; Said geomagnetic sensor is measured earth magnetism on three orthogonal axles; And wherein said rotary-type folded formation comprises and linking together with through opening operation and the closed procedure a pair of fixed cell and the mobile unit of open and close each other; It is fixing that said fixed cell keeps in said opening operation usually, and respond said opening operation, and said mobile unit rotation is with displacement on the direction of three axles.
At this device that provides another kind to be used to measure magnetic offset of geomagnetic sensor, have the magnetic sensitivity of earth magnetism on X, Y and the Z axle of said geomagnetic sensor in coordinate system XYZ and influenced by magnetization and cause magnetic biasing, said device comprises:
The DATA REASONING part, it measures the output of said geomagnetic sensor, and obtains a plurality of measurement data (x of said earth magnetism i, y i, z i) (i=1 ..., N); And
The offset estimation part, it is according to a plurality of measurement data (x of said earth magnetism i, y i, z i) (i=1 ..., N), estimate said magnetic offset of geomagnetic sensor off-set value (X0, Y0, Z0),
Wherein said off-set value (X0, Y0 Z0) estimate to (6) through following algorithm (1):
(1) supposition is in said coordinate system XYZ, and the compass ball of said geomagnetic sensor has radius R, and is each measurement data (x i, y i, z i) (i=1 ..., N) constitutive equations (x i-X0) 2+ (y i-Y0) 2+ (z i-Z0)=R 2
(2) be above-mentioned equality definition square error ε;
ε=∑{(x i-X0) 2+(y i-Y0) 2+(z i-Z0) 2-R 2} 2
=∑{(x i 2+y i 2+z i 2)-2x iX0-2y iY0-2z iZ0+(X0 2+Y0 2+Z0 2)-R 2} 2
(3) form following square error ε;
ε=∑(a i+b iX0+c iY0+d iZ0+D) 2
Wherein, a=x i 2+ y i 2+ z i 2, b=-2x i, c=-2y i, d=-2z iAnd D=(X0 2+ Y0 2+ Z0 2)-R 2
(4) as follows, ε to variable X 0, Y0, Z0 and D differentiate, is used for square error ε is set to minimum;
∂ ϵ ∂ X 0 = 2 Σ ( a i + b i X 0 + c i Y 0 + d i Z 0 + D ) b i = 0 ∂ ϵ ∂ Y 0 = 2 Σ ( a i + b i X 0 + c i Y 0 + d i Z 0 + D ) c i = 0 ∂ ϵ ∂ Z 0 = 2 Σ ( a i + b i X 0 + c i Y 0 + d i Z 0 + D ) d i = 0 ∂ ϵ ∂ D = 2 Σ ( a i + b i X 0 + c i Y 0 + d i Z 0 + D ) = 0
(5) calculate the following simultaneous equality of acquisition through carrying out above-mentioned differentiate, wherein,, variable X 0, Y0, Z0 and D are regarded as the independent variable of ε in order to simplify this calculating;
[ bb ] [ bc ] [ bd ] [ b ] [ bc ] [ cc ] [ cd ] [ c ] [ bd ] [ cd ] [ dd ] [ d ] [ b ] [ c ] [ d ] N X 0 Y 0 Z 0 D = - [ ab ] - [ ac ] - [ ad ] - [ a ]
Wherein, the operational character [] expression of in above-mentioned equality, using:
[ m ] = Σ i = 1 N m i , [ mn ] = Σ i = 1 N m i n i
(6) to these simultaneous equalities find the solution with derive said estimation skew (X0, Y0, Z0).
At this bearing data calculation element that provides another kind to have geomagnetic sensor; Comprise: data obtain part; It is used to import the signal from geomagnetic sensor; Possibly cause the magnetic field that the magnetic field of skew mixes by terrestrial magnetic field and other to measure, thereby the measurement data in this magnetic field is provided that it is represented through one group of coordinate components of a different set of corresponding to given coordinate system; The calculations of offset part, it calculates the off-set value of said skew based on a plurality of measurement data from measuring continuously from the input signal of geomagnetic sensor; Rating unit, it is according to the coordinate components of each, a plurality of measurement data that are used to calculate off-set value is compared each other poor with between the maximal value of the coordinate components that obtains each and the minimum value; The judgment part, it judges that when each the difference that obtains during greater than predetermined difference the off-set value of calculating is effective; Updated portion, it is judged as effective off-set value based on current, upgrades previous off-set value; And correction portion, it is proofreaied and correct measurement data according to the off-set value of upgrading, and comes the computer azimuth data according to the measurement data of proofreading and correct.
Further in alternative plan of the present invention, a kind of bearing measuring method of in the portable electronic equipment with geomagnetic sensor and folded formation, carrying out is provided, this folded formation is handled through opening operation and closed procedure.Method of the present invention may further comprise the steps: use said geomagnetic sensor measurement to have the earth magnetism of certain deviation, and export the measurement data of said earth magnetism, make said measurement data possibly comprise the error that causes owing to said skew like this; Based on coming the detection orientation direction from the measurement data of said geomagnetic sensor; Detect the opening operation and the closed procedure of said folded formation; When any one operation in opening operation that detects said folded formation or the closed procedure, begin to obtain a series of measurement data from said geomagnetic sensor; According to the measurement data series estimation off-set value that obtains; And the estimated value of setting said skew, the estimated value of said skew is used for proofreading and correct the error that during the detection orientation direction, is included in said measurement data.
At this a kind of method that is used to measure magnetic offset of geomagnetic sensor is provided, this geomagnetic sensor has the magnetic sensitivity of earth magnetism on X, Y and the Z axle of coordinate system XYZ and influenced by magnetization and cause magnetic biasing.Method of the present invention comprises: the DATA REASONING step, it measures the output of said geomagnetic sensor, and obtains a plurality of measurement data (x of said earth magnetism i, y i, z i) (i=1 ..., N); And
The offset estimation step, it is according to said a plurality of measurement data (x of said earth magnetism i, y i, z i) (i=1 ..., N), estimate said magnetic offset of geomagnetic sensor off-set value (X0, Y0, Z0),
Wherein, said off-set value (X0, Y0 Z0) estimate to (6) through step (1):
(1) supposition is in said coordinate system XYZ, and the compass ball of said geomagnetic sensor has radius R, and is each measurement data (x i, y i, z i) (i=1 ..., N) constitutive equations (x i-X0) 2+ (y i-Y0) 2+ (z i-Z0)=R 2
(2) be above-mentioned equality definition square error ε;
ε=∑{(x i-X0) 2+(y i-Y0) 2+(z i-Z0) 2-R 2} 2
=∑{(x i 2+y i 2+z i 2)-2x iX0-2y iY0-2z iZ0+(X0 2+Y0 2+Z0 2)-R 2} 2
(3) form following square error ε;
ε=∑(a i+b iX0+c iY0+d iZ0+D) 2
Wherein, a i=x i 2+ y i 2+ z i 2, b i=-2x i, c i=-2y i, d i=-2z iAnd D=(X0 2+ Y0 2+ Z0 2)-R 2
(4) as follows, ε to variable X 0, Y0, Z0 and D differentiate, is used for square error ε is set to minimum;
∂ ϵ ∂ X 0 = 2 Σ ( a i + b i X 0 + c i Y 0 + d i Z 0 + D ) b i = 0 ∂ ϵ ∂ Y 0 = 2 Σ ( a i + b i X 0 + c i Y 0 + d i Z 0 + D ) c i = 0 ∂ ϵ ∂ Z 0 = 2 Σ ( a i + b i X 0 + c i Y 0 + d i Z 0 + D ) d i = 0 ∂ ϵ ∂ D = 2 Σ ( a i + b i X 0 + c i Y 0 + d i Z 0 + D ) = 0
(5) calculate the following simultaneous equality of acquisition through carrying out above-mentioned differentiate, wherein,, variable X 0, Y0, Z0 and D are regarded as the independent variable of ε in order to simplify calculating;
[ bb ] [ bc ] [ bd ] [ b ] [ bc ] [ cc ] [ cd ] [ c ] [ bd ] [ cd ] [ dd ] [ d ] [ b ] [ c ] [ d ] N X 0 Y 0 Z 0 D = - [ ab ] - [ ac ] - [ ad ] - [ a ]
Wherein, the operational character [] expression of in above-mentioned equality, using:
[ m ] = Σ i = 1 N m i , [ mn ] = Σ i = 1 N m i n i
(6) find the solution these simultaneous equalities with the skew of deriving estimation (X0, Y0, Z0).
At this a kind of azimuth data calculation method is provided; Comprise the steps: to import signal from geomagnetic sensor; Possibly cause the magnetic field that the magnetic field of skew mixes by terrestrial magnetic field and other to measure; Thereby the measurement data in this magnetic field is provided, and it is represented through one group of coordinate components of a different set of corresponding to given coordinate system; Based on a plurality of measurement data, calculate the off-set value of said skew from measuring continuously from the input signal of geomagnetic sensor; According to the coordinate components of each, a plurality of measurements that are used to calculate off-set value are compared each other poor with between the maximal value of the coordinate components that obtains each and the minimum value; When each the difference that obtains during, judge that the off-set value of calculating is effective greater than predetermined difference; Based on the current previous off-set value of effective off-set value renewal that is judged as; And measurement data is proofreaied and correct, and come the computer azimuth data according to the measurement data of proofreading and correct according to the off-set value of upgrading.
Further in alternative plan of the present invention, a kind of bearing data calculation procedure that can be carried out by computing machine is provided, to carry out the processing of computer azimuth data.This processing comprises the steps: to obtain the signal from geomagnetic sensor, possibly cause the magnetic field that the magnetic field of skew mixes by terrestrial magnetic field and other to measure; The measurement data in this magnetic field is provided, and it is by representing corresponding to one group of coordinate components of a different set of axle in the given coordinate system; Based on a plurality of measurement data, calculate the off-set value of this skew from measuring continuously from the signal of geomagnetic sensor input; Coordinate components according to each compares a plurality of measurements that are used to calculate off-set value each other, poor with between the maximal value of the coordinate components that obtains each and the minimum value; When each the difference that obtains during, judge that the off-set value of calculating is effective greater than predetermined difference; Be judged as effective off-set value based on current, upgrade previous off-set value; And measurement data is proofreaied and correct, and come the computer azimuth data according to the measurement data of proofreading and correct according to the off-set value of upgrading.
In third party's case of the present invention, a kind of folded formation of handling through opening operation and closed procedure that has is provided, and produces the portable electronic equipment of leakage field.The inventive system comprises: the orientation detection part; It has the geomagnetic sensor that is used to measure the terrestrial magnetic field of skew and exports the measurement data of said terrestrial magnetic field; Make said measurement data possibly comprise the error that causes owing to said skew like this, and said orientation detection part is based on coming the detection orientation direction from the measurement data of said geomagnetic sensor; The offset estimation part, it obtains a plurality of measurement data from said geomagnetic sensor, and estimates the value of said skew according to the measurement data that obtains, and said off-set value is used for proofreading and correct the error that during the detection orientation direction, is included in said measurement data; The operation detection part, it detects the opening operation of said folded formation; And leakage field is removed part; It is operated when detecting the opening operation of said folded formation; In order to calculate the value of the said leakage field that in said folded formation, produces; And from the estimated value of said skew, deduct the calculated value of said leakage field, thereby from the estimated value of said skew, remove the influence of said leakage field.
Preferably, said folded formation comprises a pair of unit that links together with through opening operation and closed procedure open and close each other, and wherein operation detection partly physically detects opening of said a pair of unit, in order to detect said opening operation.
Preferably, when detecting the opening operation of said folded formation, said leakage field is removed part and is operated, and is used for obtaining a series of measurement data from said geomagnetic sensor, and calculates the value of said leakage field based on the measurement data that obtains.
Preferably; Said operation detection part further detects the closed procedure of said folded formation; And wherein said offset estimation is partly operated when detecting said closed procedure; Be used to begin obtain a series of measurement data, and estimate the value of said skew according to the measurement data series that obtains from said geomagnetic sensor.
A kind of magnetic sensor device that is equipped in the portable electronic equipment is provided; Said portable electronic equipment has the folded formation of handling through opening operation and closed procedure and produces leakage field; Said magnetic sensor device comprises: the orientation detection part; It has the geomagnetic sensor that is used to measure the terrestrial magnetic field of skew and exports the measurement data of said terrestrial magnetic field; Make said measurement data possibly comprise the error that causes owing to said skew like this, and said orientation detection part is based on coming the detection orientation direction from the measurement data of said geomagnetic sensor; The offset estimation part, it obtains a plurality of measurement data from said geomagnetic sensor, and estimates the value of said skew according to the measurement data that obtains, and said off-set value is used for proofreading and correct the error that during the detection orientation direction, is included in said measurement data; And leakage field is removed part; Its opening operation to said folded formation responds; Be used for calculating the value of the said leakage field that produces at said folded formation; And from the off-set value of estimation, deduct the calculated value of said leakage field, thereby from the estimated value of said skew, remove the influence of said leakage field.
Further in third party's case of the present invention; A kind of orientation detecting method of in portable electronic equipment, carrying out is provided; The folded formation that this portable electronic equipment has Magnetic Sensor and handles through opening operation and closed procedure, and this portable electronic equipment produces leakage field.Method of the present invention comprises the steps: to use the geomagnetic sensor measurement to have the terrestrial magnetic field of skew, and the measurement data of output terrestrial magnetic field, makes measurement data possibly comprise the error that causes owing to skew like this; Based on measurement data from geomagnetic sensor, the detection orientation direction; Obtain a plurality of measurement data from said geomagnetic sensor, and estimate the value of said skew according to the measurement data that obtains, said off-set value is used for proofreading and correct the error that during the detection orientation direction, is included in said measurement data; Detect the opening operation of said folded formation; When detecting the opening operation of said folded formation, calculate the value of the leakage field that produces by said portable electronic equipment; And the calculated value that from the estimated value of said skew, deducts said leakage field, thereby the influence of from the estimated value of said skew, removing said leakage field.
In this external third party's case of the present invention; Provide a kind of be used in have CPU, the machine readable media in the portable electronic equipment of geomagnetic sensor and folded formation; Leakage field is handled and produced to said folded formation through opening operation and closed procedure; Said machine readable media comprises the measurement of bearing program of carrying out through CPU; So that carrying out the measurement of bearing that comprises the steps, handles portable electronic equipment: operate said geomagnetic sensor, be used to measure terrestrial magnetic field with certain deviation and the measurement data of exporting said terrestrial magnetic field, make said measurement data possibly comprise the error that causes owing to said skew like this; Based on coming the detection orientation direction from the measurement data of said geomagnetic sensor; Obtain a plurality of measurement data from said geomagnetic sensor, and estimate the value of said skew according to the measurement data of said acquisition, said off-set value is used for proofreading and correct the error that during the detection orientation direction, is included in said measurement data; Detect the opening operation of said folded formation; When detecting the opening operation of said folded formation, calculate from the value of the leakage field of said folded formation generation; From the estimated value of said skew, deduct the calculated value of said leakage field, thereby from the estimated value of said skew, remove the influence of said leakage field.
According to first scheme of the present invention; Because need not to rotate portable information terminal by the user just can proofread and correct the output offset of geomagnetic sensor, can enough shirtsleeve operations proofread and correct the output offset of geomagnetic sensor and need not effect with reference to the service manual of portable information terminal so reached.
According to alternative plan of the present invention,,, make calibration comparatively convenient like this so can not force the user to carry out calibration operation because the calibration of azimuth detecting apparatus is in the opened/closed operation of folding portable electronic installation, to carry out automatically.Traditionally, when the user ignored or forgets calibration operation, geomagnetic sensor can not be operated with optimum condition.Yet, in the present invention, because when portable electronic equipment during normal the use, calibration is when opened/closed is operated, to automatically perform, so there is not such problem.
According to third party's case of the present invention,,, make calibration comparatively convenient like this so can not force the user to carry out calibration operation because the calibration of azimuth detecting apparatus is in the opened/closed operation of folding portable electronic installation, to carry out automatically.Traditionally, when the user ignored or forgets calibration operation, geomagnetic sensor can not be operated with optimum condition.Yet, in the present invention, because when portable electronic equipment during normal the use, calibration is when opened/closed is operated, to automatically perform, so there is not such problem.
Description of drawings
Fig. 1 illustrates the structured flowchart of the portable phone in the first embodiment of the invention.
Fig. 2 (a) illustrates the outside drawing of portable phone among the present invention first to the 3rd embodiment to Fig. 2 (d).
Fig. 3 is the floor map of the geomagnetic sensor 30 among the present invention first to the 4th embodiment.
Fig. 4 is the GMR element 31 of geomagnetic sensor 30 among Fig. 3 and the local amplification view of coil 41.
Fig. 5 is the planimetric map of GMR element 31 among Fig. 3.
Fig. 6 is for dissecing the diagrammatic cross-section of GMR element 31 and coil 41 along Fig. 4 center line 3-3.
Fig. 7 illustrates the stopcock membrane structure figure of GMR element 31 among Fig. 4.
Fig. 8 illustrates according to the external magnetic field, the change curve of GMR element 31 resistance values among Fig. 4.
Fig. 9 is GMR element 31 and the equivalent circuit diagram of the X-direction geomagnetic sensor of the GMR element 32 to 34 with same structure that comprises among Fig. 4.
Figure 10 illustrates with respect at external magnetic field that changes on the X-direction and the magnetic field that on Y direction, changes, the output voltage change curve of the X-direction geomagnetic sensor among Fig. 9.
Figure 11 illustrates with respect to the orientation in same embodiment, the curve map of the output of X-direction geomagnetic sensor and Y direction geomagnetic sensor.
Figure 12 is illustrated in the constitutional diagram that portable phone is swung among the same embodiment in the single plane of for example surface level.
Figure 13 is illustrated in the process flow diagram of offset calibration operation of the geomagnetic sensor 30 of portable phone among the same embodiment.
Figure 14 be illustrated in have three betwixt mountains Magnetic Sensors among the same embodiment portable phone forward with backward the swing constitutional diagram.
Figure 15 is illustrated in the constitutional diagram perpendicular to the earth magnetism swing of the portable phone that has three betwixt mountains Magnetic Sensors among the same embodiment.
Figure 16 is illustrated in the constitutional diagram perpendicular to the earth magnetism swing of the portable phone that has two betwixt mountains Magnetic Sensors among the same embodiment.
Figure 17 illustrates the process flow diagram of offset calibration operation of the geomagnetic sensor 30 of portable phone in the second embodiment of the invention.
Figure 18 illustrates the structured flowchart of portable phone in the fourth embodiment of the invention.
Figure 19 (a) is illustrated in the outside drawing of portable phone among the same embodiment to 19 (d).
Figure 20 illustrates the process flow diagram of offset calibration operation of the geomagnetic sensor 30 of portable phone among the same embodiment.
Figure 21 illustrates the compass loop graph of drawing through the detected value of Magnetic Sensor traditionally.
Figure 22 illustrates the electronic structure block diagram of portable mobile terminal (portable terminal device), and this portable mobile terminal is an embodiment with portable electronic equipment of direction detection function of the present invention.
Figure 23 is the functional block diagram of same embodiment.
Figure 24 (a) illustrates the figure of portable terminal device coordinate system and earth axes to 24 (b).
Figure 25 is used to explain and the process flow diagram of calibrating relevant operation.
Figure 26 (a) to (b) illustrates the outside drawing of rotary-type portable terminal device (closure state and open mode).
Figure 27 illustrates the calibration steps according to rotary-type portable terminal device, the figure of portable terminal device swaying direction.
The figure (example) of Figure 28 on the XY plane, marking and drawing according to the measurement data of calibration steps sampling.
The figure (a example that θ less) of Figure 29 on the XY plane, marking and drawing according to the measurement data of calibration steps sampling
Figure 30 (a) to (b) illustrates the outside drawing of common Foldable portable terminal (closure state and open mode).
Figure 31 illustrates the calibration steps according to common Foldable portable terminal, the figure of portable terminal device swaying direction.
During illustrating according to another embodiment of the invention, Figure 32 is in the outside drawing of the portable terminal device of open mode.
Figure 33 is the curve map of the analog variation of expression Hy and Hz value.
Embodiment
Below, embodiments of the invention will be described with reference to the drawings.
As shown in Figure 2, the portable phone with structure shown in Fig. 1 comprises the lid 1 with operating key etc., and the lid 2 with LCDs part.Fig. 2 (a) is illustrated in the lid 1 of portable phone and the skeleton view that lid 2 is under the open mode; Fig. 2 (b) covers 2 o'clock front elevation for the lid 1 at portable phone is in to watch under the closure state with lid 2; Fig. 2 (c) under equal state, watch cover 1 with the side view that covers at 2 o'clock, and Fig. 2 (d) covers 1 o'clock rear view under equal state, watching.Shown in Fig. 2 (a), suppose to exist along lid 1 than the X axle of minor face with along the Y axle that covers 1 longer sides.Should be noted that the X axle is perpendicular to one another with the Y axle.
At this, with each surperficial definition as follows of each lid of portable phone.Particularly, the surface with lid 1 of operating key etc. is defined as operating surface, is defined as the back side with the operating surface opposite surfaces.On the other hand, the surface that is provided with LCDs part 18a in the surface of lid 2 is defined as main display surface, is defined as the front with main display surface opposite surfaces.
As shown in Figure 1; Portable phone comprises RF (radio frequency) antenna 8, control section 10 (control device), ROM (ROM (read-only memory)) 12, RAM (RAS) 14 (data storage; Memory storage), display part 18a and 18b, key input part 20, switch 21, modem portion 22, CDMA (CDMA) part 23, RF part 24, microphone 27, receive loudspeaker 28, acoustic processing part 29, geomagnetic sensor 30, GPS (GPS) receiving unit 71, gps antenna 72, be used to detect the acceleration transducer 80 of the acceleration that is applied to portable phone, and bus 90.
Control section 10 is controlled the various piece of portable phone with other program through carrying out the telephony feature program.In addition, control section 10 receives the measurement data of geomagnetic sensor 30, and computer azimuth (bearing data treating apparatus).Various telephony feature programs and the control program carried out by control section 10 when in ROM 12, being stored in emission or reception, and other various fixed datas.In RAM 14, set the workspace be used for temporarily being stored in control section employed data of 10 operating period etc. or similar zone.
The machine readable media of ROM 12 in mobile information terminal apparatus, using; This mobile information terminal apparatus has: be included in CPU and geomagnetic sensor 31-38 in the control section 10, this geomagnetic sensor 31-38 has the magnetic sensitivity of terrestrial magnetic field on a plurality of axle of coordinate system and influenced by magnetization and cause magnetic biasing.The medium of ROM 12 forms comprises can be by the programmed instruction of CPU execution, and this programmed instruction makes this mobile information terminal apparatus carry out the method for measuring magnetic offset of geomagnetic sensor.Be described in detail in the face of this method down.
24 pairs of signals that receive through RF antenna 8 or the like of RF part are carried out frequency conversion.The output signal of 22 pairs of RF parts 24 of modem portion carries out demodulation, and this restituted signal is outputed in the CDMA part 23.CDMA part 23 is carried out spread spectrum (spread-spectrum) or despreading as follows.Particularly, CDMA part 23 output signal to modem portion 22 before spread spectrum carries out despreading with the extraction signal, and this signal is outputed in the acoustic processing part 29.On the other hand, the output signal of 23 pairs of acoustic processing parts 29 of CDMA part carries out spread spectrum, and spread-spectrum signal is outputed in the modem portion 22.Modem portion 22 receives from CDMA part 23 and will send to outside signal and modulate, and the signal after will modulating then outputs in the RF part 24.Then, 24 pairs of these signals of RF part are carried out frequency conversion, and the signal after the 8 emission frequency conversions of RF antenna.
Shown in Fig. 2 (a), key input part 20 has the initiating key 3 that when receipt of call, uses, the end key 4 that when terminated call, uses, comprise ten keys 5 of numerical key and code key, heavily pull out key 7 and switch 21.
The character information of the mail of being write when display part 18a and 18b are designed to show send Email, comprise the various data of various menu contents etc., and their further detailed contents or the like.Display part 18a is arranged on and covers on 1 the operating surface, and display part 18b is arranged on and covers on 2 the front.
Acoustic processing part 29 is by comprising the coded portion (CODER scrambler) as code device and forming as the decoding of code translator part (DECODER code translator); It is deciphered the voice signal of exporting from CDMA part 23, and decoded signal is outputed on the reception loudspeaker.On the other hand, 29 pairs of voice signals that are used to transmit from microphone 27 inputs of acoustic processing part compress and encode, and the signal that will be compressed and be encoded outputs on the CDMA part 23.
GPS receiving unit 71 receives from constituting the next signal of a plurality of gps satellite emissions of GPS through connected gps antenna 72; The signal from gps satellite to receiving carries out demodulation; Calculate by the current location of navigator deriving its positional information (latitude and longitude) according to this restituted signal, and this information is outputed in the control section 10.The processing of this calculating current location and orthodox car navigational system or the computing of similarly carrying out in the system are identical.
As shown in Figure 3; Geomagnetic sensor 30 comprises: Si (silicon) substrate 30a; It is formed with LSI (large scale integrated circuit), and this substrate 30a has each edge X axle and the mutually perpendicular square shape of Y axle, and perpendicular to the less thickness that has on the Z-direction of X axle and Y axle; Eight GMR (giant magnetoresistance) element 31 to 38 altogether, and it is formed on the substrate 30a; Initialization coil 41 to 48 is used for respectively GMR element 31 to 38 being applied initialization magnetic field; And driving circuit 51 to 58, it is connected respectively on the coil 41 to 48, and in the driving circuit 51 to 58 each is used to apply predetermined voltage to one of them two ends of corresponding coil 41 to 48.The temperature sensor 60 that should be noted that the temperature that is used to monitor geomagnetic sensor 30 also is set at substrate 30a.
Forming the first X-direction GMR element 31 with respect to the downside of the center section of the Y direction of substrate 30a and the position of contiguous X axle negative direction end; This element 31 has the be fixed fixed bed (bolt layer) of (anchoring) of DOM, wherein is the negative direction of X axle by the DOM of anchoring.Forming the second X-direction GMR element 32, wherein be the negative direction of X axle by the DOM of anchoring with respect to the upside of the center section of the Y direction of substrate 30a and the position of contiguous X axle negative direction end.Forming the 3rd X-direction GMR element 33 with respect to the upside of the center section of the Y direction of substrate 30a and the position of contiguous X axle positive dirction end, is the positive dirction of X axle by the DOM of anchoring on the bolt layer wherein.Forming the 4th X-direction GMR element 34 with respect to the downside of the center section of the Y direction of substrate 30a and the position of contiguous X axle positive dirction end, is the positive dirction of X axle by the DOM of anchoring on the bolt layer wherein.
On the other hand, forming the first Y direction GMR element 35 with respect to the left side of the center section of the X-direction of substrate 30a and the position of contiguous Y axle positive dirction end, is the positive dirction of Y axle by the DOM of anchoring on the bolt layer wherein.Forming the second Y direction GMR element 36 with respect to the right side of the center section of the X-direction of substrate 30a and the position of contiguous Y axle positive dirction end, is the positive dirction of Y axle by the DOM of anchoring on the bolt layer wherein.Forming the 3rd Y direction GMR element 37 with respect to the right side of the center section of the X-direction of substrate 30a and the position of contiguous Y axle negative direction end, is the negative direction of Y axle by the DOM of anchoring on the bolt layer wherein.Forming the 4th Y direction GMR element 38 with respect to the left side of the center section of the X-direction of substrate 30a and the position of contiguous Y axle negative direction end, is the negative direction of Y axle by the DOM of anchoring on the bolt layer wherein.
Except in the arranged direction on the substrate 30a with the position is different, GMR element 31 to 38 all has identical structure.Therefore, will describe as representational example with the first X-direction GMR element 31 below.
As illustrated in Figures 5 and 6; First directions X GMR element 31 shown in Figure 4 comprises: a plurality of shaped like narrow part 31a ... (each 31a forms by stopcock film SV 31a; And on Y direction, has a length direction); And magnetic bias film (rigid ferromagnet thin layer) 31b ... 31b (forms 31b below two ends on the Y direction of each shaped like narrow part 31a; This magnetic bias film 31b is processed by such material: for rigid ferromagnetic material and have high-coercive force and high squareness ratio, such as cobalt (Co), chromium (Cr), platinum (Pt) etc.).Each shaped like narrow part 31a extends on the X-direction of the upper surface of magnetic bias film 31b, to engage with contiguous shaped like narrow part 31a.
The stopcock film SV (its membrane structure is shown among Fig. 7) of the first X-direction GMR element 31 is formed by following each layer; Promptly comprise: free layer (free layer; The free magnetization layer) F, process and have conduction interval layer S, the bolt layer P of 2.4nm
Figure G2009101520479D00261
film thickness by copper (Cu); And process and have the overlayer C of 2.5nm
Figure G2009101520479D00262
film thickness by titanium (Ti) or tantalum (Ta), each layer is layered on the substrate 30a by specified order.
Free layer F is the layer that the direction of external magnetic field is depended in the change of DOM; And it is made up of following each layer: the unbodied magnetosphere 31-1 of cobalt (Co) zirconium (Zr) niobium (Nb), and it has 8nm
Figure G2009101520479D00263
film thickness and is formed directly on the substrate 30a; Nickel (Ni) iron (Fe) magnetosphere 31-2, it has 3.3nm
Figure G2009101520479D00264
film thickness and is formed on the unbodied magnetosphere 31-1 of CoZrNb; And CoFe layer 31-3, it has about 1 to 3nm (10 to
Figure G2009101520479D00265
) film thickness and is formed on the NiFe magnetosphere 31-2.Unbodied magnetosphere 31-1 of CoZrNb and NiFe magnetosphere 31-2 form above-mentioned soft ferromagnetic thin layer.CoFe layer 31-3 is in order to the diffusion of the Cu 31-4 of the Ni that prevents NiFe layer 31-2 and wall S.Should be noted that in order to keep the uniaxial anisotropy of free layer F, magnetic bias film 31b ... 31b goes up in Y direction (representing Y axle negative direction by the width arrow in the Figure 4 and 5) free layer F is applied bias magnetic field.
Bolt layer P constitutes by the CoFe magnetosphere 31-5 with 2.2nm
Figure G2009101520479D00266
film thickness with by the antiferromagnetism film 31-6 that Pt manganese (Mn) alloy of the Pt that comprises 45 to 55 moles of % is processed film thickness that has 24nm, and they are laminated in together.CoFe magnetosphere 31-5 is reverse with the exchange mode through magnetized antiferromagnetism film 31-6, so that its DOM is by the negative direction of anchoring at the X axle.
The first X-direction GMR element 31 with this spline structure; Represent like solid line among Fig. 8; Show at-Hc and be proportional to the resistance value that changes along external magnetic field that the X axle changes in the scope of+Hc basically; Represent like dotted line among Fig. 8 simultaneously, show the resistance value of substantial constant with respect to the external magnetic field that changes along the Y axle.
As shown in Figure 9, in geomagnetic sensor 30, through the X-direction geomagnetic sensor that first to the 4th X-direction GMR element, 31 to 34 full-bridges are linked together and are formed for detecting magnetic field on the X-direction.In Fig. 9, the arrow of GMR element 31 to 34 marked represent respectively on the bolt layer of GMR element 31 to 34 by the anchoring DOM.In this structure; Node Vb through between the node Va between the second X-direction GMR element 32 and the 3rd X-direction GMR element 33 and the first X-direction GMR element 31 and the 4th X-direction GMR element 34 applies constant potential difference (PD), so that the potential difference (PD) (Vc-Vd) between the node Vd between the node Vc between the first X-direction GMR element 31 and the 3rd X-direction GMR element 33 and the second X-direction GMR element 31 and the 4th X-direction GMR element 34 is taken out as sensor output Vout.
Therefore, the X-direction geomagnetic sensor demonstrates: represent that like solid line among Figure 10 output voltage V xout is proportional to the external magnetic field that changes along the X axle at-Hc to the variation in the scope of+Hc basically; Demonstrate simultaneously: represent that like dotted line among Figure 10 with respect to the external magnetic field that changes along the Y axle, output voltage is essentially " 0 ".
As the X-direction geomagnetic sensor; Through being linked together, first to the 4th Y direction GMR element, 35 to 39 full-bridges form the Y direction geomagnetic sensor; It demonstrates: in the scope of+Hc, output voltage V yout is proportional to the external magnetic field that changes along the Y axle basically at-Hc; Demonstrate simultaneously: with respect to the external magnetic field that changes along the X axle, output voltage is essentially " 0 ".As stated, geomagnetic sensor 30 detection external magnetic fields.Should be noted that the temperature information that obtains according to temperature sensor 60, geomagnetic sensor 30 is carried out the temperature compensation of magnetic characteristic through using not shown temperature-compensation circuit.
Next; With the description that provides about the bearing measuring method principle; The bearing data treating apparatus of this method through portable phone carries out, and the operating surface of supposing this portable phone is placed on the substantial horizontal state and the external magnetic field that is applied on the geomagnetic sensor 30 only is an earth magnetism.At this; Under the situation of the operating surface basic horizontal of the lid 1 of this portable phone; The vectorial orientation at center, coupling part is represented to point to from this end parts (for example microphone 27) of the operating surface of this portable phone in the position angle of supposing this portable phone, for example points to the vector of Y axle positive dirction.In this manual, azimuthal benchmark (0 °) is defined as the west, and when rotating to north, east, and during south, the position angle becomes 90 °, 180 ° and 270 ° respectively by named order.
Incidentally, earth magnetism is the magnetic field from southern energized north.Therefore; When the operating surface of the lid 1 of portable phone is level basically; With respect to the position angle of as shown in Figure 11 portable phone 10, the X-direction geomagnetic sensor of geomagnetic sensor 30 and the output of Y direction geomagnetic sensor change with cosine wave (CW) mode and sinusoidal wave mode respectively.Suppose that sensor output Sx and Sy among Figure 11 is by standardization.This be standardized as through with the actual output of X-direction geomagnetic sensor divided by the maximal value of X-direction geomagnetic sensor output and 1/2 acquisition result of calculation of the difference of minimum value; After standardization, this result of calculation is set at output Sx; Wherein, the maximal value of X-direction geomagnetic sensor output and minimum value are acquisitions during with 360 ° of its rotations when the operating surface of the lid 1 of portable phone is in horizontality basically.Likewise; This is standardized as through the actual output of Y direction geomagnetic sensor is obtained result of calculation divided by 1/2 of difference between the maximal value of Y direction geomagnetic sensor output and the minimum value; After standardization, this result of calculation is set at output Sy; The maximal value of Y direction geomagnetic sensor output and minimum value are when the operating surface of the lid 1 of portable phone is in horizontality basically, obtain when it is rotated 360 °.
Know from above-mentioned,, can derive the position angle of portable phone based on the classification of scenario (a) to (d).
(a) when confirm corresponding to Sx and Sy Sx>0 and | Sx|>| during Sy|, position angle=tan -1(Sy/Sx).
(b) when definite Sx<0 and | Sx|>| during Sy|, position angle=180 °+tan -1(Sy/Sx).
(c) when definite Sy>0 and | Sx|<| during Sy|, position angle=90 °-tan -1(Sx/Sy).
(d) when definite Sy<0 and | Sx|<| during Sy|, position angle=270 °-tan -1(Sx/Sy).
Should be noted that when the position angle of deriving through above-mentioned (a) any situation in (d) when negative, will be through adding that 360 ° of values that obtained are set at the position angle to a position angle of deriving.On the other hand, when the position angle of deriving is 360 ° or when bigger, will be set at the position angle through from the position angle of deriving, deducting 360 ° of values that obtained.
Yet, as stated, in portable phone, comprise with loudspeaker 28 being many permanent magnet elements of representative, and from these elements, leak out magnetic field.Therefore, the leakage field (external magnetic field except earth magnetism) that is produced by these permanent magnet elements can be applied on the geomagnetic sensor 30 that is arranged on precalculated position in the portable phone.As a result, (parallel motion) output corresponding to leakage field X axle component is moved in the output of X-direction geomagnetic sensor, and the output corresponding to leakage field Y axle component is moved in the output of same Y direction geomagnetic sensor.This output is moved and is called skew, and will be on X-direction and Y direction separately amount of movement be set at off-set value.Therefore,, be necessary these output is proofreaied and correct, for example from the output valve of X axle and Y axle, deduct above-mentioned off-set value respectively in order in portable phone, to measure correct orientation.At this, as stated,, off-set value is arranged on the inner caused influence of soft ferromagnetic of portable phone because being based on, so, be necessary truly each point to be measured and judged its validity at this.
Next, be given in the bearing data treating apparatus when earth magnetism and leakage field as the external magnetic field be applied to 30 last times of geomagnetic sensor, about the description of the method principle that is used to as stated estimate off-set value and judge its validity.
The design portable phone makes and can measure external magnetic with predetermined time interval like this.Then, shown in figure 12, portable phone is (as the plane that comprises X axle and Y axle magnetic sensitive direction) swing on single plane, for example surface level; And between shaking peroid, carry out the measurement of external magnetic field, thereby judge the validity of the off-set value of estimation according to measurement data at a plurality of measurement points.
At this, suppose that the off-set value that will derive is X 0And Y 0, and be R through the radius of the compass circle drawn from the value of geomagnetic sensor 30 output, then confirm following relation.
(X-X 0) 2+(Y-Y 0) 2=R 2
∴R 2-X 0 2-Y 0 2+2XX 0+2YY 0=X 2+Y 2
(formula 11)
And the external magnetic field of measuring at measurement point is designated as coordinate figure (Xi, Yi) (i=1,2,3 ..., N), and least squares error ε definition as follows.Then, derive the initial point of the compass circle of geomagnetic sensor 30 through the least square method (making least squares error ε minimum) of utilizing the coordinates computed value, thereby estimate off-set value (offset estimation step) (offset estimation device).
[expression formula 1]
ϵ = Σ { ( X i - X 0 ) 2 + ( Y i - Y 0 ) 2 - R 2 } 2
= Σ { ( X i 2 + Y i 2 ) - 2 X i X 0 - 2 Y i Y 0 + ( X 0 2 + Y 0 2 ) - R 2 } 2 (formula 12)
At this, provide a i=(X i 2+ Y i 2), b i=-2X i, c i=-2Y i, and D=(X 0 2+ Y 0 2)-R 2, obtain [expression formula 2].
[expression formula 2]
ε=∑ (a i+ b iX 0+ c iY 0+ D) 2(formula 13)
Making the minimum condition of least squares error ε is through using variable X 0, Y 0, D differentiates to ε and obtains, and represented by [expression formula 3].At this, calculate for simplifying, with variable X 0, Y0 and D are regarded as the independent variable of ε.
[expression formula 3]
Figure G2009101520479D00303
Through finding the solution following equality to (formula 16), derive off-set value X0 and Y0 according to (formula 14).(X0 Y0) becomes the initial point (center) of compass circle from the coordinate of value X0 and Y0 acquisition.
[expression formula 4]
[ Bb ] [ Bc ] [ b ] [ Bc ] [ Cc ] [ c ] [ b ] [ c ] N X 0 Y 0 D = - [ Ab ] - [ Ac ] - [ a ] (formula 17)
Wherein provide [expression formula 5]
[ k ] = Σ i = 1 N k i , [ Kl ] = Σ i = 1 N k i l i (formula 18)
Next, will provide about from each measured value m iWith each measured value m iMean value A derive the method for standard deviation.Value m iEach coordinate figure (Xi, Yi) (i=1,2,3 in the representative coordinates system ..., N) with the initial point (X of compass circle 0, Y 0) between distance, (Xi Yi) is illustrated in the external magnetic field data that each measurement point is measured to this each coordinate figure.This method comprises the following steps: mean value calculation step and standard deviation calculation step.This standard deviation is by following formulate.
[expression formula 6]
O ` = 1 N Σ i = 1 N ( m i - A ) 2
= 1 N Σ i = 1 N ( m i 2 - 2 A m i + A 2 )
= 1 N Σ i = 1 N m i 2 - 2 A N Σ i = 1 N m i + A 2
[expression formula 7]
A = 1 N Σ i = 1 N m i
At this, final owing to [expression formula 7] obtains [expression formula 8].
[expression formula 8]
O ` = 1 N Σ i = 1 N m i 2 - A 2
= 1 N Σ i = 1 N m i 2 - ( 1 N Σ i = 1 N m i ) 2
= N Σ i = 1 N m i 2 - ( Σ i = 1 N m i ) 2 N 2 (formula 19)
Estimate in the method for off-set value validity in the judgement of present embodiment, because each measured value m iProvide through [expressing 9], so the validity of estimation off-set value is to judge through radius (deriving through using the estimation off-set value) and the measurement data of utilizing compass circle, shown in (formula 21) of following note (judgment means).
[expression formula 9]
m i = ( X i - X 0 ) 2 + ( Y i - Y 0 ) 2 (formula 20)
[expression formula 10]
O ` = N Σ i = 1 N [ ( X i - X 0 ) 2 + ( Y i - Y 0 ) 2 ] - ( Σ i = 1 N ( X i - X 0 ) 2 + ( Y i - Y 0 ) 2 ) 2 N 2 (formula 21)
Next, with the method (validity determining step) (validity judgment means) that provides about the validity of judging the off-set value of estimating through said method.
As stated, if most measurement data is different to a great extent with respect to the mean radius that distributes according to each measurement data that forms compass circle by geomagnetic sensor 30 output, so measurement data be judged as invalid.Therefore, the validity of measurement data is judged based on following formula.
σ<F ... (formula 22)
In this case, because the normal specification that requires of geomagnetic sensor is to distinguish 16 orientation, so be necessary to make the error of off-set value to be not more than amount corresponding to earth magnetism 1/5.Therefore, if because be under the situation of 2 σ within 1/5 scope of error at earth magnetism at the radius of compass circle, this error judgment is acceptable so, so the F that as above points out is preferably the amount corresponding to 0.03Oe (Austria), promptly equals the quantity of magnetism of 1/10 earth magnetism.
Next, with providing about description according to the offset calibration operation of the performed geomagnetic sensor 30 of the bearing data treating apparatus of the portable phone of present embodiment.This calibration steps comprises the steps; Promptly; Measurement possibly cause the magnetic field that mix in the external magnetic field of change skew by pure land magnetic field and other; Based on the measurement data in magnetic field, calculate the off-set value of this change skew, and through sampling and measuring data repeatedly and calculate off-set value and upgrade previous off-set value based on new off-set value.
At first, open the power supply of portable phone so that start the operation of portable phone.Below, will be with reference to the operation of the offset calibration of the geomagnetic sensor 30 of the flow chart description portable phone shown in Figure 13.Suppose that the off-set value that previous operation obtains is stored among the RAM 14.
At first, the calibration start button (triggering key) of the calibration that in portable phone, is used to the to specify Offsets turn on (step Sa1) that is opened is so that control section 10 order geomagnetic sensors 30 are measured external magnetic (step Sa2).Then, control section 10 reads measurement data (step Sa3) and with data storage (step Sa4) to RAM 14 from geomagnetic sensor 30.Then, judge through control section 10 whether the data number that is stored among the RAM 14 has reached predetermined number.If judged result is " NO "; Because the data number that is stored among the RAM 14 does not also reach predetermined number; So wait for 0.1 second (step Sa6) afterwards control section 10 make flow process turn back to step Sa2, to repeat the operation (data storage device) of later step Sa2 to Sa5.
On the other hand, when the judged result in step Sa5 was " YES ", flow process proceeded to step Sa7, control section 10 estimation off-set values in step Sa7.Whether effectively then, control section 10 calculates above-mentioned standard deviation, and judge and should estimate off-set value (step Sa8) (validity determining step) (validity judgment means).If judged result is " YES ", under the control of control section 10, this off-set value is stored in (step Sa9) among the RAM 14 (offset storage device) so.Should be noted that under the control of control section 10, the off-set value that before was stored among the RAM 14 is updated to the off-set value that in step Sa9, calculates.Then, finish the offset calibration operation of the geomagnetic sensor 30 of portable phone.On the other hand, when judged result is " NO " in step Sa8, finishes the offset calibration operation of the geomagnetic sensor 30 of portable phone, and need not to update stored in the off-set value among the RAM 14.In this case, formerly upgrade in the calibration operation and the off-set value that is kept among the RAM 14 is used directly as off-set value according to present appearance.
As stated; According to present embodiment, need not just can be through the offset calibration of shirtsleeve operation place of execution Magnetic Sensor with reference to detailed service manual, and wherein whether portable phone judges offset calibration success; So that only when carrying out suitable calibration, can upgrade off-set value.Therefore, can utilize simple operations and still carry out the correction of measurement data reliably.
In the present embodiment, adopt the diaxon geomagnetic sensor, even but through using three betwixt mountains Magnetic Sensors also can realize similar operation as geomagnetic sensor.Since it is so; Under the situation of diaxon; Can realize calibration through portable phone is swung left and to the right in the plane that comprises two sensitive direction, simultaneously, under three situation; Shown in figure 14, also can be through portable phone swing left and to the right and (forward and backward) swing further upwards and downwards in the plane that comprises three both directions in the sensitive direction are realized calibration.
Shown in figure 15; Under the situation of this specific position relation when portable phone is placed on paper; Earth magnetism points to the horizontal direction of paper; Even through with portable phone upwards with downwards during (forward and backward) (just on direction) swing perpendicular to paper, the relativeness between geomagnetic sensor and the earth magnetism does not change yet.In this case, can calibrate through portable phone is swung on other direction.
On the other hand, shown in figure 16, under the situation of diaxon geomagnetic sensor; Even when carrying out above-mentioned calibration; If earth magnetism vertically points to paper, even so through ground oscillation gauge as diagram, the relativeness between geomagnetic sensor and the earth magnetism does not change yet.Yet equally in this case, when Magnetic Sensor output radius was zero compass circle potentially, skew can be passed through arithmetic processing and correctly derive.
In addition, in the present embodiment, adopt the GMR element as geomagnetic sensor.Yet; The type of geomagnetic sensor is not limited thereto; And can be for such as any kinds such as magneto-resistance effect elements, this magneto-resistance effect element is such as being TMR (tunnel magnetoresistive) element or MR (permanent magnetism resistance) element, Hall element, MI (magnetoimpedance) element, or magnetic flux transducer etc.
Especially, under the element situation as Hall element (showing marked change on the characteristic owing to temperature), it can be used in the offset variation that correction is caused by temperature.On the other hand, under the element situation as the MI element that is magnetized easily, it is effective as the method for eliminating because of the caused influence of magnetization of this element itself.
Next, second embodiment of the present invention will be described.
Identical among the modular construction of the portable phone in this second embodiment and first embodiment, but the offset calibration of control section 10 is handled and is different among first embodiment.Below, present embodiment is described with reference to the drawings.
Shown in figure 17, carry out the processing of step Sb1 and Sb2.This processing is identical with the processing of step Sa1 shown in Figure 13 and Sa2.Then, control section 10 reads measurement data from geomagnetic sensor 30, after this, after with predetermined anglec of rotation motion, further reads measurement data (step Sb3) (data fetch device).Then; Through judging in step Sb3 whether the distance between the current data and past data surpasses preset distance in coordinate system; Judge whether current data should be stored (step Sb4) among the RAM 14 (data storage judgment means), this past data for from geomagnetic sensor 30 be stored among the RAM 14 in previous sampling.Will be described later the method that is used for this judgement.When judged result was " YES ", flow process entered into step Sb5, in step Sb5, stored current data among the RAM 14 (step Sb6) (data storage device).Then, judge whether the data number that is stored among the RAM 14 has reached predetermined number.If judged result is " NO ", because the data number that is stored among the RAM 14 does not also reach predetermined number, so waiting for 0.1 second (step Sb7) afterwards, flow process turns back to step Sb2, to repeat subsequently step Sb2 to the operation of Sb6.
On the other hand, when judged result was " NO " in step Sb4, flow process entered into step Sb7, and after waiting for 0.1 second, turned back to step Sb2, to repeat subsequently step Sb2 to the operation of Sb6.
On the other hand, when judged result was " YES " in step Sb6, flow process entered into step Sb8, and execution in step Sb8 is to the processing of Sb10.This processing is identical to the processing of Sa9 with step Sa7 shown in Figure 13.Through above-mentioned processing, finish the offset calibration operation of the geomagnetic sensor 30 of portable phone.
Next, with providing about judging among the step Sb4 whether the data that in step Sb3, read from geomagnetic sensor 30 are the descriptions that store the method for the data the RAM 14 into.At this, suppose that the data that will store through judgement are X, Y, and the data that before being right after acquisition data X, Y, store among the RAM 14 are X p, Y p, only when satisfying following condition, just data X, Y are stored among the RAM 14.
[expression formula 11]
d < ( X p - X ) 2 + ( Y p - Y ) 2 (formula 23)
As stated, according to present embodiment, can avoid following problem.Particularly; Can avoid such problem: in first embodiment; When the user moves portable phone hardly, obtaining data data be concentrated in certain a bit near, perhaps the user to move the speed of portable phone be not at the uniform velocity so that density data become inhomogeneous.
At this, when measurement range was 90 ° (anglec of rotation of geomagnetic sensor), the measurement point number was preferably 20 or more, and therefore, the required distance in coordinate system between the measurement point is less than 1/10 of the compass circle radius.In view of the foregoing; Can be provided with: do not carry out from the processing of geomagnetic sensor 30 reading of data with each specified time interval, but through so that the distance between the measurement point less than 1/10 of the compass circle radius such anglec of rotation rotatably Magnetic Sensor 30 carry out.
Next, the third embodiment of the present invention will be described.
The modular construction of the portable phone in the 3rd embodiment is identical with modular construction among first or second embodiment, but the offset calibration of control section 10 to handle be the combination of first and second embodiment.Below, this embodiment will be described.Should be noted that process flow diagram is Figure 13 and 17 combines, and omit its explanation.
In this case; Step Sa2 among Figure 13 handles to the processing of Sb7 is parallel to processing and the step Sb2 among Figure 17 of Sa6; And, carry out the offset estimation in step Sa7 or Sb8 when one of them is stored in data among the RAM 14 when outnumbering predetermined number through above-mentioned processing.With regard to predetermined number, be necessary being set at greater than data number through handling among Figure 17 through the data number of handling among Figure 13.For example, preferably the former is set at 10 times of the latter.
As stated, according to present embodiment, can avoid following problem.Particularly, can avoid such problem: promptly, in a second embodiment; Shown in figure 16; When the portable phone with diaxon geomagnetic sensor is swung perpendicular to earth magnetism, because the variation of the measured value of geomagnetic sensor can't surpass certain value, so can not detect the swing of this portable phone; Consequently no matter through the time how long, data are not stored among the RAM 14 yet.
Next, the fourth embodiment of the present invention will be described.
Similar among the structure of block diagram of the portable phone among the 4th embodiment (Figure 18) and the operation and first to the 3rd embodiment but increased the inclination sensor 81 as parts.In addition, the offset calibration of control section 10 handle with second embodiment in have part different.Below, will describe present embodiment with reference to accompanying drawing.
Shown in figure 19, according to the portable phone of present embodiment inclination sensor 81 is installed.An example as inclination sensor 81; For example can be; It is fixing and have with a certain interval fixed electorde respect to one another and movable electrode that the variable displacement type sensor closes on geomagnetic sensor 30; Wherein when inclination sensor 81 tilted, the interval variation between movable electrode and the fixed electorde was so that form the capacitance that therefore changes.
Next, with reference to process flow diagram shown in Figure 20 calibration operation according to geomagnetic sensor 30 magnetic biasing of the portable phone of present embodiment is described.Because the step in the offset calibration of the geomagnetic sensor 30 of the portable phone operation in the present embodiment except step Sc3 (promptly; Step Sc1 and Sc2 and step Sc4 are to Sc10); All with second embodiment in step Sb1 and Sb2 and step Sb4 identical to Sb10, so only difference is described.
Particularly, in step Sc3, control section 10 not only read through the testing result of geomagnetic sensor 30 for earth magnetism with the constant time interval, and read through inclination sensor 81 for the testing result that tilts.Calculate current angle of inclination data and poor through between the previous previous angle of inclination data that detect of inclination sensor 31.If the difference that calculates surpasses predetermined poor, the current measurement data with earth magnetism is input among the RAM 14 so.
As stated, according to present embodiment, can avoid following problem.Particularly; Except the situation of the vertical directed towards ground of earth magnetism, can avoid such problem through the swing that utilizes inclination sensor 81 identification portable phones: promptly, in a second embodiment; When the portable phone with diaxon geomagnetic sensor is swung perpendicular to earth magnetism; Because the variation of the measured value of geomagnetic sensor does not surpass a certain value,, no matter make through how long data can not store among the RAM 14 yet like this so can not detect the swing of this portable phone.In addition, can make packing density in the user swings the scope of portable phone evenly, and need not to depend on the speed that the user swings portable phone.Moreover the testing result of inclination sensor 81 can be used in the correction at inclination angle in the orientation demonstration.
In the present embodiment, the variable displacement type sensor is as inclination sensor 81.Yet the type of inclination sensor is not limited thereto, and it can be any kind.
In addition, when judging that the skew of estimating is invalid, display part 18a or 18b can be set show such result.
In addition, can be arranged on the skew that shows estimation be judged as invalid after, just can carry out offset calibration once more through the special key operation.
When carrying out offset calibration once more, it is desirable to new measurement data and compare each other, and only appropriate data is stored among the RAM 14 with the measurement data that is stored among the RAM14.For example, it is desirable to derive distance and the off-set value between off-set value and the new measurement data and be stored in the distance between the measurement data among the RAM 14, and will have data storage near the distance of compass circle mean radius in RAM 14.
Though be described in detail with reference to the attached drawings first to the 4th embodiment of the present invention above, concrete structure is not limited to these embodiment, and is also included within the design variation within the scope that does not break away from main idea of the present invention.
Below, referring to figs. 22 to 31 additional embodiments of the present invention is described.Figure 22 illustrates the electronic structure block diagram according to the portable mobile terminal of CDMA (CDMA) communication system (below be called portable terminal device), and it is an embodiment with portable electronic equipment of direction detection function of the present invention.Hereinafter, specified same numeral for those shared parts of each reference diagram.
The portable terminal device 1 of present embodiment has the so-called accordion structure that comprises two casings (terminal unit-1 and terminal unit-2).Particularly, these two casings are connected to each other through unshowned coupling part, so that can open and close terminal unit-1 and terminal unit-2 with respect to the turning axle of this coupling part.Folding mobile terminal comprises that common folded form is with so-called rotary-type: in common folded form; Be to begin from the state that these two unit overlap each other; These two unit are opened perpendicular to the principal plane (plane that terminal unit under closure state-1 and terminal unit-2 overlap each other) of portable terminal device, and be further rotated with respect to turning axle by this way; In rotary-type, terminal unit-1 and terminal unit-2 is parallel to the principal plane rotation of portable terminal device so that with they open and closes.In the present embodiment, although when special distinguish common can distinguish when collapsible and rotary-type they two,, stipulate that here rotary-type portable terminal device is also included within the Foldable portable terminal.
Next, with the electronic structure of the portable terminal device 1 of describing present embodiment.
Antenna 101 shown in Figure 22 is carried out and is transmitted and received the radiowave corresponding to unshowned radio base station.RF part 102 is carried out the processing relevant with reception with the emission of signal.RF part 102 has local oscillator or the like.When receiving, RF part 102 is mixed the local oscillation signal of preset frequency with the reception signal of exporting from antenna 101, thereby will receive the reception IF signal that conversion of signals is an intermediate frequency (IF), and this signal is outputed in the modem portion 103.On the other hand, in when emission, RF part 102 is mixed the local oscillation signal of preset frequency with the emission IF signal of intermediate frequency, be transmitting of transmission frequency thereby will launch the IF conversion of signals, and this is transmitted outputs to antenna 101.
Modem portion 103 is carried out demodulation process to received signal and the signal that will launch is carried out modulation treatment.Modem portion 103 has local oscillator etc., and it will be the baseband signal of preset frequency from the reception IF conversion of signals of RF part 102 outputs, convert this baseband signal into digital signal again, and it is outputed in the CDMA part 104.On the other hand, modem portion 103 will convert simulating signal into from the emission digital baseband signal of CDMA part 104 outputs, be the emission IF signal of preset frequency with this analog signal conversion again, and it is outputed in the RF part 102.
The signal that 104 pairs of CDMA parts will be launched is carried out encoding process and is carried out decoding to received signal and handle.104 pairs of baseband signals from modem portion 103 outputs of CDMA part are deciphered.On the other hand, 104 pairs of CDMA parts transmit encode and with the coding baseband signal output in the modem portion 103.
Acoustic processing part 105 is carried out the processing relevant with sound when conversation.When conversation, acoustic processing part 105 will convert digital signal into from the analoging sound signal of microphone (MIC) output, and it is outputed in the CDMA part 104 as transmitting.On the other hand, when conversation, according to the indicator signal of the voice data of deciphering through CDMA part 104, acoustic processing part 105 produces and is used for driving the analog drive signal of loudspeaker (SP) and it is outputed to loudspeaker (SP).Based on the sound of user's input, microphone (MIC) produces voice signal and it is outputed in the acoustic processing part 105.Based on the signal from 105 outputs of acoustic processing part, loudspeaker (SP) sends the sound of partner.
Gps antenna 106 receives from the radiowave of each unshowned gps satellite emission, and will receive signal based on this radiowave and output in the GPS receiving unit 107.107 pairs of these reception signals of GPS receiving unit carry out demodulation, and receive that signal obtains the correct time information of gps satellite and such as the information such as travel-time of radiowave based on this.According to the information that obtains, GPS receiving unit 107 calculates three perhaps distances of more a plurality of gps satellites, and according to principle of triangulation, calculates the position (longitude, latitude, height etc.) in three dimensions.
Main control part 108 is formed by CPU (central processing unit) or the like, and the various piece of control portable terminal device 1 inside.Main control part 108 is carried out with respect to RF part 102, modem portion 103, CDMA part 104, acoustic processing part 105, GPS receiving unit 107, sensing data through bus and is obtained part 201 (being described below), ROM 109, and the I/O of the control signal of RAM 110 or data.ROM 109 wherein stores the various programs of being carried out by main control part 108, the temperature sensor that when the shipment check, records and the initial performance values of inclination sensor.The data that RAM 110 interim storage main control parts 108 are handled etc.
ROM 109 is a kind of machine readable media that in the portable electronic equipment with CPU, geomagnetic sensor and collapsible body 1, uses, and leakage field is handled and produced to this folded formation through opening operation and closed procedure.This machine readable media is made up of ROM 109, and this ROM 109 comprises the usefulness of CPU execution so that portable electronic equipment 1 is carried out the measurement of bearing program that measurement of bearing is handled, and it will be described in detail later.
For example, aviso device 111 comprises loudspeaker, Vib., light emitting diode etc., and through using sound, vibration, light or similar method circular user to receive calling, receives mail or the like.Timer section 112 has clocking capability and produces the clocking information such as year, the moon, day, week, time etc.The shift key that main operation part 113 comprises the enter key that is used for input character, be used between Chinese character, numeral etc., changing, be used for operational light target cursor key, electric power on/off key, assignment key, heavily pull out key etc., and the signal of output expression user operating result is to main control part 108.Opened/closed switch (SW) the 114th is used to detect the switch of opening (opening operation) beginning and closed (closed procedure) end of Foldable portable terminal.
Sensing data obtains part 201 and comprises: the Magnetic Sensor (1) that is used on the X axle that is perpendicular to one another, Y axle and Z-direction, detecting magnetic force (magnetic field) respectively is to (3); The temperature sensor that is used for detected temperatures; Be used to detect the angle physical quantity sensor of portable terminal device 1; And the sensor control section that is used for the testing result of above-mentioned each sensor is handled (A/D conversion etc.).
Electro-photographic part 202 comprises optical lens and such as CCD imaging apparatuss such as (charge-coupled image sensors).Electro-photographic part 202 will convert simulating signal into through the object images that optical lens forms through imaging apparatus on the shooting surface of imaging apparatus, be digital signal with this analog signal conversion, and this digital signal is outputed to main control part 108.Display part 203 has LCDs etc., and based on coming display image, character etc. from the shows signal of main control part 108 outputs.Touch pad 204 is an one with the surface combination that is arranged on the LCDs in the display part 203.Non-productive operation part 205 has the button that in showing switching, uses, or the like.
At this, with describing the functional block diagram shown in Figure 23.
Should be noted that at the bearing data calculating section 307 shown in the same figure corresponding to the main control part 108 shown in Figure 22, and display device 316 is corresponding to the display part shown in Figure 22 203.
Magnetic Sensor part 301 comprises Magnetic Sensor (1) to (3) and is used for after opening power, each Magnetic Sensor being carried out initialized sensor initializing device (1) to (3).Because when applying high-intensity magnetic field, the DOM of Magnetic Sensor (1) to the magnet of (3) can be made mistakes, so sensor initializing device (1) is set to (3), is used for Magnetic Sensor (1) to (3) is reset to original state.
Inclination sensor part 302 comprises physical quantity transducer (inclination sensor), inclination sensor initial value memory storage and inclination sensor means for correcting.The skew of storage representation physical quantity transducer output valve in advance during fabrication of this inclination sensor initial value memory storage, the equivalent initial value of sensitivity; The initial value that the inclination sensor means for correcting is stored based on inclination sensor initial value memory storage when measuring is proofreaied and correct the output of physical quantity transducer.
Temperature sensor section 303 comprises temperature sensor, temperature sensor initial value memory storage and temperature sensor means for correcting.This temperature sensor initial value memory storage is used for during fabrication the skew of storage representation temperature sensor output valve in advance, the equivalent initial value of sensitivity; The initial value that the temperature sensor means for correcting is stored based on temperature sensor initial value memory storage when measuring is proofreaied and correct the output of temperature sensor.
Switching device shifter 304 switches between the output of Magnetic Sensor part 301, inclination sensor part 302 and temperature sensor section 303, and will be input to from the simulating signal of these one of them outputs of Sensor section the A/D change-over circuit 305.A/D change-over circuit 305 is a digital signal with this analog signal conversion.Sweep limit setting device 306 for each sensor setting when the output voltage to each sensor quantizes change with combine digital, as the voltage range of conversion unit and quantifying unit (for example, to every 0.1mV execution quantification, or the like).
Whether in bearing data calculating section 307, data storage judgment means 308 is carried out the processing relevant with data storage, for example, in when calibration, judge by the represented measurement data of digital signal corresponding to the output of Magnetic Sensor and should store in the memory storage.Offset estimation device 310 is estimated skew (will be described in detail later) based on the measurement data that obtains when calibration.Validity judgment means 311 is judged the validity (will be described in detail later) through the skew of offset estimation device 310 estimations.Memory storage 309 storage of measurement data etc.
When orientation calculation element 312 calculates in the orientation based on the measurement data computer azimuth that obtains.When calculating in the orientation, from the measurement data that obtains, removes skew removal device 313 skew.When being necessary to carry out the temperature correction of measurement data, the temperature correction that temperature correction device 314 is carried out with respect to measurement data.When being necessary to carry out dip correction, the dip correction that dip correction device 315 is carried out with respect to measurement data.Display device 316 will show as image through the orientation that orientation calculation element 312 calculates.
At this, with the operation of describing bearing data calculating section 307 in detail.
In when calibration, will be input to the data storage judgment means 308 from the measurement data that sensing data obtains part 201 outputs.Data storage judgment means 308 judges based on the data storage evaluation algorithm whether measurement data should be stored in the memory storage 309.As the result who judges, if judge that measurement data should be stored in the memory storage 309, data storage judgment means 308 stores measurement data in the memory storage 309 into so.In addition; 308 pairs of numbers that are stored in the measurement data in the memory storage 309 of data storage judgment means are counted; And when the number of measurement data reaches predetermined number, stop measurement data being stored in the memory storage 309, and order offset estimation device 310 estimation skews.
When the 308 order estimation skews of data storage judgment means, offset estimation device 310 reads measurement data from memory storage 309, and based on the offset estimation algorithm this skew is estimated.In addition, the offset estimation device 310 estimation result that will squint circulates a notice of validity judgment means 311.Whether when the estimation through these skews of offset estimation device 310 circular as a result the time, validity judgment means 311 reads measurement data from memory storage 309, judge should the estimation skew effective based on the validity evaluation algorithm.When this estimation skew is effective, validity judgment means 311 with this offset storage in memory storage 309.
When calculating in the orientation, the measurement data that obtains part 201 outputs from sensing data is input to the orientation calculation element 312.This measurement data is magnetic data, temperature data and tilt data.Orientation calculation element 312 outputs to magnetic data and temperature data in the skew removal device 313.When these measurement data of input, skew removal device 313 reads skew from memory storage 309, proofread and correct through from magnetic data, removing Offset portion, and the magnetic data after will proofreading and correct outputs in the orientation calculation element 312.
In addition, as required, 313 pairs of magnetic data of orientation calculation element 312 order skew removal devices are carried out temperature correction.Respond this instruction, skew removal device 313 outputs to temperature data in the temperature correction device 314.In when calibration, temperature correction device 314 is reading temperature data from memory storage 309, and based on Current Temperatures the temperature during with calibration, current magnetic data is proofreaied and correct and with correcting result circular skew removal device 313.According to this correcting result, the magnetic data of skew removal device 313 excess temperature correction after removing skew outputs in the orientation calculation element 312.
Particularly; Suppose when calibration temperature be that the skew of TO, estimation is that OF, temperature system are A (this in the shipment check time measured and be stored among the ROM 109), temperature when measuring is T; And the measured value of Magnetic Sensor is S0, and the magnetic data S1 (excess temperature correction) that removes after the skew is given through following formula:
S1=S0-{OF+A(T-TO)}
In addition, as required, orientation calculation element 312 is carried out slant correction.
At this, will describe slant correction in detail.
Here, the coordinate system of portable terminal device 1 is defined as shown in Figure 24 (a).Particularly, the deflection of supposing the antenna 101 of portable terminal device 1 is that α, its elevation angle are β, and torsion angle (with respect to the rotation angle of antenna axis) is γ.The symbol of the direction of arrow shown in the figure is for just.In addition; Suppose that the vector of unit length on antenna direction is Vy; Be Vz perpendicular to the vector of unit length on plane (the for example plane of label 99 parts among Figure 24) direction that forms through terminal unit 2 (be provided with antenna 101 with Magnetic Sensor part 301 sides), and be Vx perpendicular to the vector of unit length of Vy and Vz.The direction of arrow shown in the figure is positive dirction.Shown in Figure 24 (b), earth axes represented by X, Y and Z, and the Y axle be defined as the north to.
At this, suppose gravity in earth axes be G=(0,0, Gz).In addition, suppose gravity at portable coordinate system be g=(gx, gy, gz).Suppose through inclination sensor and can detect the gravity in the portable coordinate system.Certainly, the gravity in earth axes is known.
Then, express the gravity G among the gravity g and earth axes in the portable coordinate system through following formula.
(Gx,Gy,Gz)BC=(gx,gy,gz)
Wherein
[expression formula 12]
B = 1 0 0 0 cos &beta; sin &beta; 0 - sin &beta; cos &beta;
[expression formula 13]
C = cos &gamma; 0 - sin &gamma; 0 1 0 sin &gamma; 0 cos &gamma;
Therefore, BC is by following equation expression.
[expression formula 14]
BC = cos &gamma; 0 - sin &gamma; sin &beta; sin &gamma; cos &beta; sin &beta; cos &gamma; cos &beta; sin &gamma; - sin &beta; cos &beta; cos &gamma;
Therefore, the gravity g in portable coordinate system is by following equation expression.
[expression formula 15]
( gx , gy , gz ) = ( 0,0 , Gz ) cos &gamma; 0 - sin &gamma; sin &beta; sin &gamma; cos &beta; sin &beta; cos &gamma; cos &beta; sin &gamma; - sin &beta; cos &beta; cos &gamma;
= Gz ( cos &beta; sin &gamma; , - sin &beta; , cos &beta; cos &gamma; )
Derive elevation angle β and torsion angle γ by this formula.
[expression formula 16]
&beta; = arctan ( - gy gx 2 + gz 2 )
[expression formula 17]
&gamma; = arctan ( gx gz ) gz &GreaterEqual; 0 180 ( deg ) + arctan ( gx gz ) gz < 0
Elevation angle β and torsion angle γ according to such derivation can derive the elevation angle theta of direction angle alpha and earth magnetism.At this, suppose earth magnetism in portable coordinate system be h=(hx, hy, hz), and the earth magnetism in earth axes be H=(0, Hy, Hz), then
(0,Hy,Hz)ABC=(hx,hy,hz)
Set up, wherein
[expression formula 18]
A = cos &alpha; - sin &alpha; 0 sin &alpha; cos &alpha; 0 0 0 1
[expression formula 19]
B = 1 0 0 0 cos &beta; sin &beta; 0 - sin &beta; cos &beta;
[expression formula 20]
C = cos &gamma; 0 - sin &gamma; 0 1 0 sin &gamma; 0 cos &gamma;
Therefore, obtain following formula.
[expression formula 21]
(0,Hy,Hz)A=(hx,hy,hz)C -1B -1≡(hx′,hy′,hz′)
Therefore, (hx ', hy ', hz ')=(Hysin α, Hycos α, Hz).Because derive elevation angle β and torsion angle γ in advance and record the earth magnetism h in portable coordinate system, so confirmed (hx ', hy ', hz ').At this, suppose that the earth magnetism H in earth axes is known, then derive direction angle alpha.In addition, also derive elevation angle theta through following formula.
[expression formula 22]
&theta; = arctan hz &prime; hx &prime; 2 + hy &prime; 2
Based on the magnetic data after proofreading and correct as stated, 312 computer azimuths of orientation calculation element, and with the orientation circular display device of calculating 316.For example, the information of display device 316 data representing map upper positions.
Next, data of description is stored evaluation algorithm.
Make measurement data concentrate near when azimuth circle or compass ball (describing below) are gone up the same point input data, perhaps not be that at the uniform velocity the packing density that makes becomes under the uneven situation owing to user's operating speed that the data storage evaluation algorithm is used to prevent to store the measurement data that can not be used to calibrate moving portable terminal device 1 hardly as the user.When obtaining such measurement data, can prevent to be stored in the memory storage 309.
When portable terminal device 1 at surface level (at this; Suppose that the XY plane parallel that forms through Magnetic Sensor (1) and Magnetic Sensor (2) axle separately is in this surface level) when rotating; The output X that converts the Magnetic Sensor (1) of magnetic field value into changes with sinusoidal wave mode, and the output Y that converts the Magnetic Sensor (2) of magnetic field value simultaneously into changes with the cosine wave (CW) mode that has phase quadrature with respect to output X.Suppose that skew is for (X0 Y0), sets up following relational expression, is referred to as azimuth circle.
(X-X0) 2+(Y-Y0) 2=R 2
Under three-dimensional situation, also set up similar relational expression, be referred to as the compass ball.
(X-X0) 2+(Y-Y0) 2+(Z-Z0) 2=R 2
Particularly, the data of supposing just to store among the RAM110 are (X p, Y p, Z p), and will to pass through the data that storage judges be that (Z), only when satisfying following condition, (X, Y Z) store among the RAM110 data storage evaluation algorithm with data for X, Y.The value of should be noted that d is preferably about 1/10 of azimuth circle radius.
[formula 23]
d < ( X P - X ) 2 + ( Y P - Y ) 2 + ( Z P - Z ) 2
Next, the offset estimation algorithm will be described.
Suppose that measurement data is (x i, y i, z i) (i=1 ..., N), squint to (Z0), the radius of compass ball is R, sets up following relational expression for X0, Y0.
(x i-X0) 2+(y i-Y0) 2+(z i-Z0)=R 2
In this case, least squares error ε definition is following.
[expression formula 24]
ε=∑{(x i-X0) 2+(y i-Y0) 2+(z i-Z0) 2-R 2} 2
=∑{(x i 2+y i 2+z i 2)-2x iX0-2y iY0-2z iZ0+(X0 2+Y0 2+Z0 2)-R 2} 2
At this, suppose
a i=x i 2+y i 2+z i 2
b i=-2x i
c i=-2y i
d i=-2z i
D=(X0 2+Y0 2+Z0 2)-R 2…(24),
ε is provided by following formula.
[expression formula 25]
ε=∑(a i+b iX0+c iY0+d iZ0+D) 2
The minimum condition of least squares error ε is passed through ε variable X 0, Y 0, Z0 and D obtain differentiate, and expressed by [expression formula 26].Here, calculate, variables D is regarded as independent variable for simplifying.
[expression formula 26]
&PartialD; &epsiv; &PartialD; X 0 = 2 &Sigma; ( a i + b i X 0 + c i Y 0 + d i Z 0 + D ) b i = 0 &PartialD; &epsiv; &PartialD; Y 0 = 2 &Sigma; ( a i + b i X 0 + c i Y 0 + d i Z 0 + D ) c i = 0 &PartialD; &epsiv; &PartialD; Z 0 = 2 &Sigma; ( a i + b i X 0 + c i Y 0 + d i Z 0 + D ) d i = 0 &PartialD; &epsiv; &PartialD; D = 2 &Sigma; ( a i + b i X 0 + c i Y 0 + d i Z 0 + D ) = 0
Therefore, set up following formula.
[expression formula 27]
[ bb ] [ bc ] [ bd ] [ b ] [ bc ] [ cc ] [ cd ] [ c ] [ bd ] [ cd ] [ dd ] [ d ] [ b ] [ c ] [ d ] N X 0 Y 0 Z 0 D = - [ ab ] - [ ac ] - [ ad ] - [ a ]
Wherein, the operational character [] expression of in above-mentioned equality, using:
[expression formula 28]
[ m ] = &Sigma; i = 1 N m i , [ mn ] = &Sigma; i = 1 N m i n i
These simultaneous equalities are found the solution, derive the X0, Y0, Z0 and the D that make least squares error ε minimum.And, also can from formula (24), derive R.
Next, the validity evaluation algorithm will be described.
In the processing according to this algorithm, according to the radius of estimation skew, compass ball (or azimuth circle) and be stored in the measurement data among the RAM110, calculate following value.
[expression formula 29]
&sigma; = 1 R N &Sigma; i = 1 N { ( x i - x 0 ) 2 + ( y i - Y 0 ) 2 + ( z i - Z 0 ) 2 } - ( &Sigma; i = 1 N ( x i - x 0 ) 2 + ( y i - Y 0 ) 2 + ( z i - Z 0 ) 2 ) 2 N 2
[expression formula 30]
W x = Max ( x i ) - Min ( x i ) R
[expressing 31]
W y = Max ( y i ) - Min ( y i ) R
[expressing 32]
W z = Max ( z i ) - Min ( z i ) R
Max (x wherein i) expression measurement data x 1..., x NAmong maximal value, and Min (x i) expression measurement data x 1..., x NAmong minimum value.In addition, σ representes standard deviation.Judge whether to satisfy following criterion according to above-mentioned value, and when satisfying criterion, the skew of estimation is judged as effectively.
σ<F
w x>G
w y>G
w z>G
At this, F be preferably about 0.1 and G be preferably about 1.
Next, describe in further detail with reference to figure 2 and calibrate relevant operation.
[situation of rotary-type portable terminal device]
In structure example shown in Figure 22, each Magnetic Sensor is disposed in terminal unit-2 side, and terminal unit-2 side is along opening the side that direction moves when portable terminal device 1 is opened or is closed.On the other hand, when opening or during closed portable terminal device 1, terminal unit-1 keeps fixing by user's hand usually.Under portable terminal device 1 was rotary-type situation, Magnetic Sensor was installed on the side of opening rotation when closed (referring to Figure 26).Preferably the position of Magnetic Sensor layout is near terminal unit-1 and terminal unit-2 position connected to one another (also can be arranged in terminal unit-1 side) certainly.This be since this position usually away from microphone that produces magnetic or the position that loudspeaker is arranged.Portable terminal device 1 is provided with opened/closed switch (SW) 114, so that can discern the opened/closed operation in the stage of opening beginning and closed end.Magnetic Sensor part 301 can be formed by two axial magnetic sensors or magnetic sensor.
(1) calibration steps 1
At first, when detecting through opened/closed switch (SW) 114 when beginning to open a terminal unit-2, start (step S101) in this time trigger.In this case, the terminal unit-2 that Magnetic Sensor part 301 is installed has begun rotation (opening operation), so that the last angle θ (shown in figure 26) that forms with respect to terminal unit-1.
Main control part 108 command sensor control sections are measured (step S102) through using each sensor to carry out.From each sensor readings, and beginning data sampling (step S103).At this, the output of each Magnetic Sensor is taken a sample the schedule time continuously.
Then, according to above-mentioned data storage evaluation algorithm, judge whether to store measurement data among the RAM 110 (step S104).
When in step S104, being judged as No, waiting for 0.1 second (step S105) afterwards, flow process turns back to step S102.
When step S104 is judged as Yes, stores measurement data among the RAM 110 (step S106), and judge further whether the number that is stored in the measurement data among the RAM 110 has reached predetermined number (step S107).
When in step S107, being judged as No, flow process enters into step S105.On the other hand, when in step S107, being judged as Yes, stop sampling, read storage measurement data above that, and estimate skew (step S108) according to the offset estimation algorithm from RAM 110 to measurement data.
Subsequently, based on above-mentioned validity evaluation algorithm, judge whether the off-set value of estimation is effective value (step S109).When being judged as Yes based on this judged result, the offset storage that will in step S108, estimate is in RAM 110, with terminates update processing (step S110).On the other hand, when in step S109, being judged as No, finishing a series of processing and do not upgrade skew (step S111).
When step S109 is judged as No; The skew of for example in step S108, estimating is judged as when invalid; Can design like this with order further open and close portable terminal device 1 of user or order user and on a plurality of directions, portable terminal device 1 opened or closure, thereby further obtain measurement data from each Magnetic Sensor.Utilize this structure, increase the data measured number so that improve the precision of offset estimation.Order is passed to the user to be carried out through the command context of utilizing aviso device 111 to give a warning sound and on display part 203, to be shown to the user.
When Magnetic Sensor part 301 is formed by two axial magnetic sensors, carry out aforesaid calibration (according to calibration steps 1).When Magnetic Sensor part 301 is formed by magnetic sensor, in the step S107 of above-mentioned calibration steps 1, be judged as Yes after, further carry out calibration according to following calibration steps 2.
(2) calibration steps 2
Begin sampling along with the predetermined button of pressing main operation part 113 (calibration knob).In this calibration steps 2, require the user with the direction of arrow among Figure 27 swing portable terminal device 1 (this operation that the supposition user carries out is indicated to the user through service manual etc. in advance).
Then, the output of each Magnetic Sensor is taken a sample the schedule time continuously.In rotary-type, when terminal unit-2 was consequently opened with respect to terminal unit-1 rotation fully, mobile terminal unit-2 was with the angle θ of last formation with respect to the principal plane (front is described) of portable terminal device 1.In other words, the response opening operation, mobile unit-2 is rotated and displacement on X, Y and three direction of principal axis of Z.Thereby the Magnetic Sensor part 301 in the terminal unit-2 moves so that changes with respect to these three axles respectively.As accidental hour of θ, require the user to swing portable terminal device 1, so that obtain the little variation that measurement data is used for replenishing θ.
When aforesaid data acquisition is accomplished, according to the data estimation skew that obtains.Then, the skew renewal with this estimation is kept at the skew among the RAM 110.
According to the offset data of this acquisition and the comparison between the offset data before the renewal, only when judgement is necessary to carry out offset correction, just possibly carry out the skew update processing (confirming this criterion respectively) in above-mentioned calibration steps 1 and 2.
Replacedly, can be configured to:, make the selection of whether when portable terminal device 1 opened/closed, carrying out data acquisition based on whether skew has reached the judgement that is necessary the level (critical field) of its renewal according to preassigned.
At this, with the description that provides about the offset estimation method in rotary-type portable terminal device 1 (another example).
Though can derive the estimation of skew according to above-mentioned offset estimation algorithm, when considering the angle θ that forms by terminal unit shown in Figure 27-1 and terminal unit-2, also can be as follows with its derivation.
Situation about (a) forming by two axial magnetic sensors in Magnetic Sensor part 301
When the measurement data of sampling in calibration steps 1 use with respect to X sensor (being used to detect the Magnetic Sensor) value of abscissa axis at earth magnetism magnetic force on the X-direction and with respect to the Y sensor (being used to detect the Magnetic Sensor of earth magnetism magnetic force on perpendicular to the Y direction of X axle) of axis of ordinates when value is marked and drawed (for example; Subscript plots right X sensor output value and Y sensor output value on the XY plane), the result is shown in figure 28.This track is an oval part, and its aspect ratio depends on θ among Figure 27 and the angle that between earth magnetism and Plane of rotation (formed plane when moving Magnetic Sensor through rotation), forms.Owing to is known, so, can obtain the angle that forms between skew and earth magnetism and the Plane of rotation of X, Y through deriving oval aspect ratio and centre coordinate at this θ.
Situation about (b) forming by magnetic sensor in Magnetic Sensor part 301
Can derive skew as the diaxon situation of above-mentioned (a) on the XY plane.Same with respect to skew in Z-direction, when θ big relatively (θ>30 °),,, can derive the off-set value of Z through using the track of measurement data when the XZ plane calibration as the situation of diaxon.Yet, when θ hour, low precision.This be because: shown in figure 29, track is so flat so that be essentially straight line.
Under these circumstances, the skew of Z can be derived from the sampled data the calibration steps 2.In calibration steps 2, require the user to swing portable terminal device 1.Yet, also can be designed as: when the user has changed the inclination at terminal when in measurement of bearing the time, thereby the output of Magnetic Sensor is taken a sample to use those measurement data.
[situation of common Foldable portable terminal]
In said structure instance as shown in Figure 22, each Magnetic Sensor is arranged in terminal unit-2 side, and this terminal unit-2 side is for opening the side that direction moves when opening with closed portable terminal device 1.On the other hand, when opening or during closed portable terminal device 1, unit-1 keeps fixing by user's hand usually.In other words, suppose terminal unit-2 is called lid that then Magnetic Sensor is installed in the lid side (referring to Figure 30) of wanting open and close.Preferably as rotary-type, the position that Magnetic Sensor is arranged is near terminal unit-1 and terminal unit 2 positions connected to one another.Portable terminal device 1 is provided with opened/closed switch (SW) 114, so that opening beginning (terminal unit-2 is opened predetermined angular or stage of wide-angle more with respect to terminal unit-1) and the closed stage that finishes, can recognize the opened/closed operation.At this, suppose that Magnetic Sensor part 301 is formed by magnetic sensor.
Equally, under the situation of common Foldable portable terminal, can utilize the processing procedure of calibration steps 1 with the calibration steps 2 of above-mentioned rotary-type situation.Yet, in this calibration steps 2, when the output of each Magnetic Sensor is taken a sample, require user's swing portable terminal device 1 shown in figure 31.Under portable terminal device 1 is common folding situation shown in figure 30; When opening terminal unit-2,, upward change little in direction (directions X) perpendicular to this track though itself there is variation to a great extent on the plane that is formed by track with Magnetic Sensor part 301 from terminal unit-1; Therefore; In order sizable variation on this direction, to occur, require the user with the swing of the direction of arrow shown in Figure 31 portable terminal device 1, thereby obtain measurement data.
As stated, when portable terminal device 1 is common Foldable portable terminal,, can estimate the skew of Y axle and Z-direction according to the measurement data that calibration steps 1 obtains.According to the measurement data that obtains through above-mentioned calibration steps 2, can estimate the skew on the X-direction.Through using those measurement data that obtained when the user changes direction in measurement of bearing, also can estimate skew.
It should be noted that above-mentioned flow operations is an instance, so the present invention is not limited to above-mentioned treatment scheme.
Provide description with reference to accompanying drawing above about embodiments of the invention.Yet much less, concrete structure is not limited to these embodiment, but also comprises the structure in the scope that does not break away from essence of the present invention.
In above-mentioned instance, be to carry out calibration, but also can after the portable terminal device closure, carry out calibration in the moment that the user opens portable terminal device.This be because: follow hard on after the closed portable terminal device, the user makes such as putting into portable terminal device in the bag or placing it in the first-class action of table, causes the portable terminal device closure after soon its direction variation.Therefore, can within during this section, take a sample to the output of Magnetic Sensor, and according to those measurement data estimation skews.
In addition,, calibration can be carried out always, maybe calibration can be when the user confirms in open and close, whether begun in the moment of user's open and close portable terminal device.
The method and apparatus that is used for compensating the leakage field that mobile communication terminal produces is pointed in ensuing description.
In the structure example shown in Figure 22, each Magnetic Sensor is disposed in opens terminal unit-2 side that moves on the direction.On the other hand, opening or during closed portable terminal device 1, unit-1 keeps fixing by user's hand usually.Suppose terminal unit-2 is called lid that Magnetic Sensor is installed in the lid side (referring to Figure 32) of wanting open and close.Though the optimum seeking site that Magnetic Sensor is arranged is near terminal unit-1 and terminal unit-2 part connected to one another (certainly, also can be arranged in terminal unit-1 side), also can be positioned at other any parts.Portable terminal device 1 is provided with opened/closed switch (SW) 114, so that can discern the opened/closed operation in the stage of opening beginning and closed end.At this, suppose that Magnetic Sensor part 301 is formed by magnetic sensor.
(1) calibration steps
In conjunction with Figure 25 basic calibration steps is described.At first, when detecting the closed end of terminal unit-2 through opened/closed switch (SW) 114, start (step S101) in this time trigger.After this, the user makes such as portable terminal device 1 being put into bag or being placed on the first-class action of table.Therefore, after portable terminal device 1 is closed soon, itself direction variation.
Main control part 108 command sensor control sections are measured (step S102) through using each sensor to carry out, from each sensor readings, and beginning data sampling (step S103).At this, the output of each Magnetic Sensor is taken a sample the schedule time continuously.When XYZ space is marked and drawed the measurement data of sampling like this, data point is dispersed on certain sphere.
Then, according to above-mentioned data storage evaluation algorithm, judge whether to store measurement data among the RAM 110 (step S104).
When step S104 is judged as No, waiting for 0.1 second (step S105) afterwards, flow process turns back to step S102.
When step S104 is judged as Yes, stores measurement data among the RAM 110 (step S106), and judge further whether the measurement data number that is stored among the RAM 110 has reached predetermined number (step S107).
When step S107 is judged as No, flow process enters into step S105.On the other hand,, stop sampling, from RAM 110, read storage measurement data above that, and estimate skew (step S108) according to above-mentioned offset estimation algorithm to measurement data when when step S107 is judged as Yes.
Subsequently, based on above-mentioned validity evaluation algorithm, judge whether the skew of estimation is effective value (step S109).When being judged as Yes based on this judged result, with the offset storage of estimating among the step S108 in RAM110, with the interim update processing of terminates (step S110).On the other hand, when in step S109, being judged as No, finishing a series of processing and do not upgrade skew (step S111).
According to the offset data of this acquisition and the comparison between the offset data before the renewal, only when judgement is necessary to carry out offset correction, just possibly carry out skew (temporarily) update processing (confirming this criterion respectively) in the above-mentioned calibration steps.
Replacedly, can be configured to:, make the selection of whether when the opened/closed of portable terminal device 1, carrying out data acquisition based on judging according to preassigned whether skew has reached the level (or critical field) that is necessary its renewal.
At this, with another instance of describing calibration steps.
Generally speaking, because after portable terminal device 1 closure, and uncertain user's action, if mark and draw the measurement data of in step S103, taking a sample at XYZ space as stated, exist data point to concentrate on the situation on the specific plane so.For example, when data centralization is on the XY plane, even, can not derive the value of Z exactly according to those data through deriving the center of orientation ball.
In this case, according to above-mentioned data storage evaluation algorithm, can prevent that the measurement data that can not be used for calibrating from storing memory storage 309 into.Yet, equally in this case, measurement data is stored in the memory storage 309, and estimates skew according to above-mentioned offset estimation algorithm.Then,, derive the least squares error of the orientation radius of a ball, move when a certain amount of in Z-direction when squinting then, further derive least squares error as the validity evaluation algorithm.When the difference between these two least squares error in this case during less than predetermined value, be invalid with respect to the skew of Z axle, and the only interim skew of upgrading with respect to X axle and Y axle.
Next, with the correction of describing leakage field.
The skew of deriving as stated is the skew of under the state that portable terminal device 1 is closed, deriving.Generally speaking, loudspeaker, microphone etc. is installed in such as in the portable terminal devices such as portable phone, and uses permanent magnet therein.Have a kind of situation, the influence that promptly is applied in the Magnetic Sensor skew by the leakage field from permanent magnet is being different between the closed state of portable terminal device 1 and the state that it is opened.In this case, be necessary to proofread and correct the skew of deriving corresponding to before such difference.
Usually, when opening portable terminal device 1, confirm this operation.In addition, known permanent magnet of incorporating into and the position between Magnetic Sensor relation.When opening portable end 1 (for example; From beginning to open portable terminal device 1) to the output sampling of Magnetic Sensor and when XYZ space is marked and drawed measurement data; The curve of describing at XYZ space through measurement data is limitary; And when the intensity of relative angle between the magnetization, earth magnetism and the portable terminal device 1 of permanent magnet and earth magnetism is determined, confirm it is unique.
In this supposition DOM is the Z direction, through permanent magnet form around the geomagnetic sensor have magnetization M magnetic field by following formulate.Should be noted that when the position of permanent magnet givenly during as initial point, x, y and z are the coordinates of geomagnetic sensor.In addition, H xThe X component in expression magnetic field, H yThe Y component in expression magnetic field, and H zThe Z component in expression magnetic field.
[expression formula 33]
H x = 1 4 &pi; &mu; 0 3 M &CenterDot; x &CenterDot; z ( x 2 + y 2 + z 2 ) 5 2
[expression formula 34]
H y = 1 4 &pi; &mu; 0 3 M &CenterDot; y &CenterDot; z ( x 2 + y 2 + z 2 ) 5 2
[expression formula 35]
H z = 1 4 &pi; &mu; 0 ( 3 M &CenterDot; z 2 ( x 2 + y 2 + z 2 ) 5 2 - M ( x 2 + y 2 + z 2 ) 3 2 )
Now, known x, y and z are the function of the opened/closed angle θ (referring to Figure 32) of portable terminal device 1.And the geomagnetic sensor that is installed in the terminal unit-2 is also derived as the function of θ with respect to the relative direction of terminal unit-1 part.In addition, earth magnetism also is known with respect to the relative direction and the intensity of terminal unit-1 part.Therefore, the earth magnetism during based on opened/closed portable terminal device 1, it also is known that the output of geomagnetic sensor changes.
At this, for portable terminal device 1 between the moving period from the closure state to the full open position variation in magnetic field make simulation.The formulate that this simulation is used is produced around geomagnetic sensor by permanent magnet has magnetized magnetic field.When simulation from the Hy1 in the magnetic field of permanent magnet and the relation between the Hz1, from the Hy2 in earth magnetism magnetic field and the relation between the Hz2; And each is, and (during=concerning Hy1+Hy2) and between the Hz3 (Hz1+Hz2), this analog result for example can become as shown in Figure 33 from magnetic field of permanent magnet with from the Hy3 of earth magnetism magnetic field sum.In the figure; First curve representation is from the Hy2 in earth magnetism magnetic field and the relation between the Hz2; Second curve representation is from concerning between the Hy1 of magnetic field of permanent magnet and the Hz1, and the 3rd curve representation each be from magnetic field of permanent magnet with from the Hy3 of earth magnetism magnetic field sum and the relation between the Hz3.Figure 33 representes the analog variation of Hy and Hz value.Also can comprise the expansion simulation of Hx and Hy and Hz.
In Figure 33, curve 2 and 3 changes along with the variation of magnetization M.Here, use magnetization M that curve 3 is carried out match as parameter so that curve 3 along intensive measurement data by match, this measurement data obtains from geomagnetic sensor during portable terminal device 1 opening operation process continuously, thereby obtains magnetization M.
Next, the magnetization M based on obtaining, calculate as follows: promptly, the magnetic field value under the state of calculating portable terminal device 1 closure, and another value of calculating magnetic field under portable terminal device 1 open mode.,, closure state also changing when changing to full open position at portable terminal device 1 from the magnetic field of permanent magnet.The variation in magnetic field is by curve 2 expressions of the magnetization M with acquisition.Here, the relative end points of curve 2 comes the comfortable portable terminal device 1 closure state magnetic field of the magnet of observation down corresponding to the magnetic field of the magnet that observes under comfortable portable terminal device 1 full open position.Therefore, the relative end points that calculates at curve 2 has the magnetic field value that obtains magnetization M, with the magnetic field value of acquisition under portable terminal device 1 closure state, and the magnetic field value under portable terminal device 1 full open position.
In addition, calculate magnetic field value under portable terminal device 1 closure state and poor between the magnetic field value under portable terminal device 1 full open position.This difference is corresponding to the magnetic field value that geomagnetic sensor is influenced from the magnet with magnetization M.
At last, it is poor from the off-set value of previous estimation under portable terminal device 1 closure state, to deduct this calculating, thus leakages magnetic field and renewal skew formally.
As stated,, further carry out the leakage field calibration of squinting, so that realize more accurate calibration and need not to force the user to carry out special operational when the calibration of under the state of portable terminal device 1 closure, carrying out Magnetic Sensor, when then the user opens portable terminal device 1.
In above-mentioned, the main control part 108 of portable terminal device 1 is carried out the processing of estimation skew and leakage field correction.Yet; Can be configured to: the processing section that in sensing data acquisition part (magnet sensor arrangement) 115, is provided for carrying out this processing; The closure signal that indication portable terminal device 1 has been closed is transported to sensing data acquisition part 115 from main control part 108, and responds this closure signal, and sensing data obtains part 115 and carries out above-mentioned offset estimation processing; Simultaneously; The opening signal that indication portable terminal device 1 has been opened is transported to sensing data acquisition part 115 from main control part 108, and responds this opening signal, and sensing data obtains part 115 and carries out above-mentioned leakage field treatment for correcting.

Claims (8)

1. a measurement is equipped in the method for the magnetic offset of geomagnetic sensor in the mobile information terminal apparatus with storer and inclination sensor; Said geomagnetic sensor has the magnetic sensitivity of terrestrial magnetic field on the axle of two dimension or three-dimensional system of coordinate and influenced by magnetization and cause magnetic biasing; Said inclination sensor detects the inclination angle of said mobile information terminal apparatus, and said method comprises:
The DATA REASONING step, it measures the output of said geomagnetic sensor, and a plurality of measurement data of the said terrestrial magnetic field that comprises past data and follow-up data are provided continuously;
The inclination measurement step; Its measure said inclination sensor output and provide continuously a plurality of angle-datas, said a plurality of angle-datas represent the inclination angle of mobile information terminal apparatus and comprise with said measurement data in the simultaneously-measured previous angle-data of said past data and with said measurement data in the simultaneously-measured follow-up angle-data of said follow-up data;
The data storage step; It is when the difference between another inclination angle of the inclination angle of the mobile information terminal apparatus of representing through said follow-up angle-data and the mobile information terminal apparatus represented through said previous angle-data during greater than predetermined difference; Said follow-up data in the said measurement data is stored in the said storer; Thereby, said measurement data is accumulated in the said storer through repeating the process of said DATA REASONING step, said inclination measurement step and said data storage step; And
The offset estimation step, it reads the measurement data of a plurality of accumulations from said storer, and estimates the off-set value of said magnetic biasing according to the measurement data of said a plurality of accumulations of from said storer, reading.
2. method according to claim 1; Wherein, When the measurement data number in being stored in said storer reaches predetermined number; Said offset estimation step reads the said measurement data of said a plurality of accumulations from said storer, and estimates the off-set value of said magnetic biasing according to the said measurement data of the predetermined number that from said storer, reads.
3. method according to claim 1; Wherein, When the measurement data number of in said storer, accumulating reached predetermined number, said offset estimation step read the measurement data of said a plurality of accumulations and estimates off-set value from said storer, and said method further comprises:
The mean value calculation step; Its calculate in said coordinate system, define, corresponding to the offset point of the off-set value of estimation with in said coordinate system, define, corresponding to the distance between a plurality of data points of a plurality of measurement data that are used to estimate said off-set value, and the said offset point that calculated of further calculating and the mean value of the distance between said a plurality of data point;
The standard deviation calculation step, it calculates the standard deviation of the distance that has calculated according to the range averaging value that has calculated;
The validity determining step, it judges the validity of the off-set value of estimation according to the standard deviation that calculates; And
The offset storage step when its validity when the off-set value of estimation is identified through said validity determining step, is stored the off-set value of said estimation.
4. method according to claim 2 further comprises:
The mean value calculation step; Its calculate in said coordinate system, define, corresponding to the offset point of the off-set value of estimation with in said coordinate system, define, corresponding to the distance between a plurality of data points of a plurality of measurement data that are used to estimate said off-set value, and the said offset point that calculated of further calculating and the mean value of the distance between said a plurality of data point;
The standard deviation calculation step, it calculates the standard deviation of the distance that has calculated according to the range averaging value that has calculated;
The validity determining step, it judges the validity of the off-set value of estimation according to the standard deviation that calculates; And
The offset storage step when its validity when the off-set value of estimation is identified through said validity determining step, is stored the off-set value of said estimation.
5. method according to claim 1 further comprises:
The mean value calculation step; Its calculate in said coordinate system, define, corresponding to the offset point of the off-set value of estimation with in said coordinate system, define, corresponding to the distance between a plurality of data points of a plurality of measurement data that are used to estimate said off-set value, and the said offset point that calculated of further calculating and the mean value of the distance between said a plurality of data point;
The standard deviation calculation step, it calculates the standard deviation of the distance that has calculated according to the range averaging value that has calculated;
The validity determining step, it judges the validity of the off-set value of estimation according to the standard deviation that calculates; And
The offset storage step when its validity when the off-set value of estimation is identified through said validity determining step, is stored the off-set value of said estimation.
6. method according to claim 3 further comprises the circular step of when judging that through said validity determining step the off-set value of said estimation is invalid, circulating a notice of the user.
7. method according to claim 3; Further comprise: the comparison step that a plurality of measurement data compare mutually; In said a plurality of measurement data each all be used for estimating off-set value and said a plurality of measurement data each represent by one group of coordinate components corresponding to one group of axle of coordinate system; So that compare poor with between the maximal value of the coordinate components that obtains each and the minimum value at each coordinate components to said measurement data; Wherein, Said validity determining step is except according to the said standard deviation that calculates, also according to each maximal value and the validity that the difference between the minimum value is judged the off-set value of said estimation of coordinate components that obtains.
8. device that is used for measuring the magnetic offset of geomagnetic sensor that is equipped in portable information terminal with inclination sensor; Said geomagnetic sensor has the magnetic sensitivity of terrestrial magnetic field on the axle of two dimension or three-dimensional system of coordinate and influenced by magnetization and cause magnetic biasing; Said inclination sensor detects the inclination angle of said portable information terminal, and said device comprises:
The DATA REASONING part, it measures the output of said geomagnetic sensor, and a plurality of measurement data of the said terrestrial magnetic field that comprises past data and follow-up data are provided continuously;
The inclination measurement part; It measures the output of said inclination sensor; And provide continuously a plurality of angle-datas, said a plurality of angle-datas represent the inclination angle of said portable information terminal and comprise with said measurement data in the simultaneously-measured previous angle-data of said past data and with said measurement data in the simultaneously-measured follow-up angle-data of said follow-up data;
Data-carrier store; It is when the difference between another inclination angle of the inclination angle of the portable information terminal of representing through said follow-up angle-data and the portable information terminal represented through said previous angle-data during greater than predetermined difference; Store the said follow-up data in the said measurement data, thereby partly accumulate said measurement data with said inclination measurement through repeatedly operating said DATA REASONING part; And
The offset estimation part, it reads the measurement data of a plurality of accumulations from said data-carrier store, and estimates the off-set value of said magnetic biasing according to the said a plurality of cumulative measurement data that from said data-carrier store, read.
CN2009101520479A 2004-06-11 2005-06-13 Method and apparatus for measuring magnetic offset of geomagnetic sensor and portable electronic apparatus Expired - Fee Related CN101608917B (en)

Applications Claiming Priority (9)

Application Number Priority Date Filing Date Title
JP2004174108 2004-06-11
JP2004-174108 2004-06-11
JP2004174108 2004-06-11
JP2004175672 2004-06-14
JP2004-175672 2004-06-14
JP2004175672 2004-06-14
JP2004194846 2004-06-30
JP2004-194846 2004-06-30
JP2004194846 2004-06-30

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
CNB2005100789583A Division CN100538268C (en) 2004-06-11 2005-06-13 Be used to measure the method and apparatus and the portable electronic equipment of magnetic offset of geomagnetic sensor

Publications (2)

Publication Number Publication Date
CN101608917A CN101608917A (en) 2009-12-23
CN101608917B true CN101608917B (en) 2012-06-20

Family

ID=35821865

Family Applications (2)

Application Number Title Priority Date Filing Date
CN2009101520479A Expired - Fee Related CN101608917B (en) 2004-06-11 2005-06-13 Method and apparatus for measuring magnetic offset of geomagnetic sensor and portable electronic apparatus
CNB2005100789583A Expired - Fee Related CN100538268C (en) 2004-06-11 2005-06-13 Be used to measure the method and apparatus and the portable electronic equipment of magnetic offset of geomagnetic sensor

Family Applications After (1)

Application Number Title Priority Date Filing Date
CNB2005100789583A Expired - Fee Related CN100538268C (en) 2004-06-11 2005-06-13 Be used to measure the method and apparatus and the portable electronic equipment of magnetic offset of geomagnetic sensor

Country Status (1)

Country Link
CN (2) CN101608917B (en)

Families Citing this family (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101487707B (en) * 2008-01-16 2011-03-16 宏达国际电子股份有限公司 Portable electronic device with correctable azimuth angle and its correction method
KR20120008494A (en) * 2009-05-14 2012-01-30 닛본 덴끼 가부시끼가이샤 Method for correcting a geomagnetic sensor for a mobile device, as well as a mobile device and a program
CN102798832B (en) * 2011-05-27 2014-12-31 美新半导体(无锡)有限公司 Magnetic sensor test method and system
CN102866374B (en) * 2011-07-05 2016-02-24 美新半导体(无锡)有限公司 Based on the magnetic sensor test method of probe
CN103090900B (en) * 2011-11-08 2015-07-01 美新半导体(无锡)有限公司 Test method and test system for integrated sensor
CN102937446A (en) * 2012-11-19 2013-02-20 深圳市航盛电子股份有限公司 Two-dimension electronic compass data acquisition method and device for implanting same
CN103308039B (en) * 2013-05-14 2015-08-19 深圳市通创通信有限公司 A kind of Digital Magnetic Compass and compensation for calibrating errors method, system
CN104698415B (en) * 2013-12-05 2019-08-20 感知技术无锡有限公司 Magnetosensitive wagon detector quality inspection method, apparatus and system
CN104834021B (en) * 2015-05-11 2018-06-22 上海集成电路研发中心有限公司 A kind of computational methods of geomagnetic sensor sensitivity
CN106940670A (en) * 2016-01-05 2017-07-11 中兴通讯股份有限公司 Access state checking method, device and terminal
BE1023739B1 (en) * 2016-05-04 2017-07-06 Institut Royal Meteorologique De Belgique AUTONOMOUS AND SELF-CALIBRATED MAGNETIC OBSERVATORY
CN106556877B (en) * 2016-10-11 2019-04-30 航天恒星科技有限公司 A kind of earth magnetism Tonghua method and device
CN108344963B (en) * 2018-01-05 2021-03-02 和芯星通(上海)科技有限公司 Method and apparatus for determining magnetic sensor data, electronic device, and storage medium
CN110426057B (en) * 2019-06-27 2021-08-20 华为技术有限公司 Magnetometer data calibration method and magnetometer data calibration device
CN110879059B (en) * 2019-12-30 2022-05-27 中北大学 Tunnel magnetoresistance effect micro-gyroscope device and method based on piezoelectric ceramic out-of-plane driving
KR20220060105A (en) * 2020-11-04 2022-05-11 주식회사 해치텍 Contactless magnetic sensing system and sensing method thereof
CN112762915B (en) * 2020-12-21 2023-05-09 深圳酷派技术有限公司 Compass precision optimization method and device, storage medium and electronic equipment
CN113640726B (en) * 2021-10-19 2021-12-21 青岛杰瑞自动化有限公司 Multi-azimuth ellipse fitting calibration method and system for double-shaft magnetometer

Also Published As

Publication number Publication date
CN101608917A (en) 2009-12-23
CN1715834A (en) 2006-01-04
CN100538268C (en) 2009-09-09

Similar Documents

Publication Publication Date Title
CN101608917B (en) Method and apparatus for measuring magnetic offset of geomagnetic sensor and portable electronic apparatus
KR101013288B1 (en) Method and apparatus for measuring magnetic offset of geomagnetic sensor
US6014610A (en) Navigation system and method
US6836971B1 (en) System for using a 2-axis magnetic sensor for a 3-axis compass solution
CN101587132B (en) Field weakening direction sensor calibration method
CN101943758B (en) Position calculation method and position calculation apparatus
KR20010096464A (en) Positional information display system
US20110106477A1 (en) Calibrating multi-dimensional sensor for offset, sensitivity, and non-orthogonality
CN102252689A (en) Electronic compass calibration method based on magnetic sensor
JPH02290508A (en) Method of automatically and continuously correcting flux gate compass of vehicle and flux gate compass instrument
US20140200841A1 (en) Geomagnetic sensor calibration apparatus and method thereof
CN107024673B (en) Three axis magnetometer total error scaling method based on gyroscope auxiliary
CN104913777A (en) Error compensation algorithm of geomagnetic sensor application system
US20190041209A1 (en) System and method for calibrating magnetic sensors in real and finite time
US20170292840A1 (en) Gyromagnetic geopositioning system
JP4207929B2 (en) Method for correcting geomagnetic sensor, method for measuring offset of geomagnetic sensor, azimuth data calculation device, and portable information terminal
CN101256219A (en) Magnetic data processing device and method, and magnetic processing system
CN101652630B (en) Low cost electronic compass with 2D magnetometer
CN108871301A (en) Magnetic field orientation measurement method
WO2011129288A1 (en) Terrestrial magnetism detection device
Langley The magnetic compass and GPS
JP4900348B2 (en) Geomagnetic sensor correction method, azimuth data calculation device, and portable information terminal
Moafipoor et al. Adaptive calibration of a magnetometer compass for a personal navigation system
RU2365877C1 (en) Method for definition of magnet deviation on movable object
Olson Nongimbaled Solid-State Compass

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20120620

Termination date: 20170613

CF01 Termination of patent right due to non-payment of annual fee