JP2008298796A - Correction method of geomagnetic sensor, method of measuring offset of geomagnetic sensor, direction data arithmetic device, and portable information terminal - Google Patents

Correction method of geomagnetic sensor, method of measuring offset of geomagnetic sensor, direction data arithmetic device, and portable information terminal Download PDF

Info

Publication number
JP2008298796A
JP2008298796A JP2008222839A JP2008222839A JP2008298796A JP 2008298796 A JP2008298796 A JP 2008298796A JP 2008222839 A JP2008222839 A JP 2008222839A JP 2008222839 A JP2008222839 A JP 2008222839A JP 2008298796 A JP2008298796 A JP 2008298796A
Authority
JP
Japan
Prior art keywords
geomagnetic sensor
data
offset
value
sensor
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2008222839A
Other languages
Japanese (ja)
Other versions
JP4900348B2 (en
Inventor
Hideki Sato
秀樹 佐藤
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
Priority to JP2008222839A priority Critical patent/JP4900348B2/en
Publication of JP2008298796A publication Critical patent/JP2008298796A/en
Application granted granted Critical
Publication of JP4900348B2 publication Critical patent/JP4900348B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Measuring Magnetic Variables (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide a correction method of a geomagnetic sensor correcting an offset due to magnetization, for example, by only shaking the geomagnetic sensor on a horizontal plane, and to provide a portable information terminal capable of simplifying operation of the offset correction of the geomagnetic sensor by the use of a direction data arithmetic device which corrects the geomagnetic sensor. <P>SOLUTION: A user pushes a correction button (trigger ON) (Step Sa1). Geomagnetic field measurements are directed. (Step Sa2). Measurement data are read (Step Sa3), and stored in RAM (Step Sa4). It is decided whether a predetermined number of pieces of data are stored in the RAM (Step Sa5). When the storage of the data is completed (Step Sa7) after waiting every 0.1 sec (Step Sa6), offset estimation is performed. It is decided whether an estimated offset amount is effective (Step Sa8), and the offset amount is updated when effective (Step Sa9). <P>COPYRIGHT: (C)2009,JPO&INPIT

Description

本発明は、地磁気センサのオフセットを補正する地磁気センサの補正方法、地磁気センサのオフセットを測定する方法、方位データ演算装置およびそれを用いた携帯情報端末に関する。   The present invention relates to a correction method for a geomagnetic sensor for correcting an offset of a geomagnetic sensor, a method for measuring an offset of a geomagnetic sensor, an azimuth data calculation device, and a portable information terminal using the same.

従来の地磁気センサは、携帯電話機(携帯情報端末)内部に搭載された場合、共に搭載
されるスピーカや、着磁した電子部品の金属パッケージ等から漏れる磁場が存在するため
、これらが発生する磁場をも検出してしまう。この結果、地磁気センサを搭載して地磁気
を検出する携帯電話機においては、携帯電話機内部に存在する磁場に基づいて算出した方
位が正確な方位を示さないことがあった。
When a conventional geomagnetic sensor is mounted inside a mobile phone (portable information terminal), there is a magnetic field leaking from a speaker mounted on the mobile phone or a metal package of a magnetized electronic component. Will also be detected. As a result, in a mobile phone equipped with a geomagnetic sensor to detect geomagnetism, the orientation calculated based on the magnetic field existing inside the mobile phone may not show an accurate orientation.

例えば、互いに直交する二軸(X軸、Y軸方向)に感度方向をもち、さらにそれぞれの
方向での感度が互いに等しい地磁気センサを搭載した携帯電話機において、地磁気のベク
トルがX軸となす角度をθとすると、X軸方向の地磁気センサの検出値VxおよびY軸方
向の地磁気センサの検出値Vyは、携帯電話機内部に存在する磁場のために、(式1)およ
び(式2)に示されるように、X軸方向またはY軸方向の着磁量に相当するm、nがそれ
ぞれ加算された状態の出力となる。
Vx=R×cosθ+m ・・・(式1)
Vy=R×sinθ+n ・・・(式2)
(但し、Rは比例定数)
For example, in a mobile phone having a sensitivity direction in two orthogonal axes (X-axis and Y-axis directions) and a geomagnetic sensor having the same sensitivity in each direction, the angle between the geomagnetism vector and the X-axis Assuming that θ, the detection value Vx of the geomagnetic sensor in the X-axis direction and the detection value Vy of the geomagnetic sensor in the Y-axis direction are expressed by (Equation 1) and (Equation 2) because of the magnetic field existing inside the mobile phone. As described above, the output is a state in which m and n corresponding to the magnetization amount in the X-axis direction or the Y-axis direction are added.
Vx = R × cos θ + m (Formula 1)
Vy = R × sin θ + n (Formula 2)
(However, R is a proportional constant)

つまり、地磁気の変動がない、すなわち一定の外部磁場が付与された状況において、あ
る固定された場所に配置した、着磁していない地磁気センサが一回転すると、地磁気セン
サの検出値は中心座標を(0,0)とする真円を描く。以下、地磁気センサの検出値によ
って描かれる円を方位円という。これに対し、着磁した地磁気センサが一回転すると、図
21に示すように、地磁気センサの検出値は、中心座標を(m,n)とする真円を描く。
この、方位円の中心座標を求めることにより、地磁気センサに着磁した着磁量を等価的に
求め、地磁気センサの検出値から該中心座標値(補正値)を差し引く演算によって、該検
出値を補正して方位を求める方法が用いられている。
In other words, in a situation where there is no geomagnetism fluctuation, that is, when a constant external magnetic field is applied, if a non-magnetized geomagnetic sensor placed in a fixed location makes one revolution, the detection value of the geomagnetic sensor will change to the center coordinate. Draw a perfect circle with (0,0). Hereinafter, a circle drawn by the detection value of the geomagnetic sensor is referred to as an azimuth circle. On the other hand, when the magnetized geomagnetic sensor makes one rotation, as shown in FIG. 21, the detection value of the geomagnetic sensor draws a perfect circle having the center coordinates (m, n).
By obtaining the center coordinates of the azimuth circle, the amount of magnetization magnetized in the geomagnetic sensor is obtained equivalently, and the detected value is obtained by subtracting the center coordinate value (correction value) from the detected value of the geomagnetic sensor. A method of correcting and obtaining the direction is used.

具体的には、始めに中心座標値を求める。例えば、地磁気センサを水平に保ちつつ感度
方向を含む面内で一回転し、全方位についてX軸方向およびY軸方向の地磁気センサにお
いての検出値を求め、これらの検出値についての最大値および最小値を、それぞれ、Xma
x、YmaxおよびXmin、Yminとすると、中心座標(m,n)は以下のような式によって求
められる。
m=(Xmax+Xmin)/2 ・・・(式3)
n=(Ymax+Ymin)/2 ・・・(式4)
また、地磁気センサを所定の位置Aに移動させたときの検出値(X1,Y1)と、そこか
ら水平に保ちつつ180°反対の方向にある位置Dに移動させたときの出力値(X2,Y2
)とについて、これらの平均値として、中心座標(m,n)は以下のような式によって求
められる。
m=(X1+X2)/2 ・・・(式5)
n=(Y1+Y2)/2 ・・・(式6)
次に、演算により中心座標値を差し引き、補正を行う。上述のようにして求められた中
心座標(m,n)と、X軸方向の地磁気センサの検出値VxおよびY軸方向の地磁気セン
サの検出値Vyとにより、方位角度θを以下のような式によって求める。
|Vy−n|<|Vx−m|,Vx−m>0 のとき、
θ=tan−1((Vy−n)/(Vx−m)) ・・・(式7)
|Vy−n|>|Vx−m|,Vy−n>0 のとき、
θ=90[deg]−tan−1((Vx−m)/(Vy−n)) ・・・(式8)
|Vy−n|<|Vx−m|,Vx−m<0 のとき、
θ=180[deg]−tan−1((Vy−n)/(Vx−m)) ・・・(式9)
|Vy−n|>|Vx−m|,Vy−n<0 のとき、
θ=270[deg]−tan−1((Vx−m)/(Vy−n)) ・・・(式10)
Specifically, first, the center coordinate value is obtained. For example, while rotating the geomagnetic sensor horizontally in a plane including the sensitivity direction, the detected values in the X-axis direction and the Y-axis direction of the geomagnetic sensor are obtained for all directions, and the maximum and minimum values for these detected values are obtained. Set the values to Xma
Assuming x, Ymax, Xmin, and Ymin, the center coordinates (m, n) can be obtained by the following equation.
m = (Xmax + Xmin) / 2 (Formula 3)
n = (Ymax + Ymin) / 2 (Formula 4)
Further, the detected value (X1, Y1) when the geomagnetic sensor is moved to a predetermined position A and the output value (X2, Y1) when moved to a position D in the opposite direction of 180 ° while keeping horizontal from there. Y2
) And the average value thereof, the center coordinates (m, n) can be obtained by the following equation.
m = (X1 + X2) / 2 (Formula 5)
n = (Y1 + Y2) / 2 (Formula 6)
Next, the center coordinate value is subtracted by calculation to perform correction. Based on the center coordinates (m, n) obtained as described above, the detected value Vx of the geomagnetic sensor in the X-axis direction, and the detected value Vy of the geomagnetic sensor in the Y-axis direction, the azimuth angle θ is expressed as follows: Ask for.
When | Vy−n | <| Vx−m |, Vx−m> 0,
θ = tan−1 ((Vy−n) / (Vx−m)) (Expression 7)
When | Vy−n |> | Vx−m |, Vy−n> 0,
θ = 90 [deg] −tan−1 ((Vx−m) / (Vy−n)) (Expression 8)
When | Vy−n | <| Vx−m |, Vx−m <0,
θ = 180 [deg] −tan−1 ((Vy−n) / (Vx−m)) (Equation 9)
When | Vy−n |> | Vx−m |, Vy−n <0,
θ = 270 [deg] −tan−1 ((Vx−m) / (Vy−n)) (Equation 10)

しかしながら、上述した従来の地磁気センサの補正方法においては、地磁気センサの着
磁状態は常に変動するため、地磁気センサが着磁したと思われる度に、ユーザが、地磁気
センサの検出値の最大値、最小値を求めるために携帯電話機を1周以上回転させる必要が
ある。特に携帯電話機を水平に保ちながら1周以上回転させるのが難しく、時には落下さ
せる可能性もあり、また、落下させることがなくても、取得データに粗密が生じ、オフセ
ットが精度よく求められないという問題があった。そのため、上述した従来の地磁気セン
サの補正方法は、携帯機器には不向きであるという問題もあった。
However, in the above-described conventional correction method of the geomagnetic sensor, the magnetized state of the geomagnetic sensor always fluctuates. Therefore, whenever the geomagnetic sensor is considered to be magnetized, the user must detect the maximum value of the detected value of the geomagnetic sensor, In order to obtain the minimum value, it is necessary to rotate the mobile phone one or more times. In particular, it is difficult to rotate the mobile phone more than one turn while keeping it horizontal, and sometimes it may be dropped, and even if it is not dropped, the acquired data will be coarse and dense, and the offset will not be required accurately There was a problem. Therefore, the conventional geomagnetic sensor correction method described above has a problem that it is not suitable for portable devices.

こうしたことに対応して、例えば、特許文献1には、磁界判定手段が、磁気センサによ
って検出された磁界の強さが所定の範囲外であるか否かを判断し、範囲外であることをも
って、磁気センサが着磁したと判断し、測定時に磁気センサにバイアス磁界を印加するコ
イルを利用し、交番減衰磁界を与えることにより、該着磁した磁気センサを消磁する電子
式方位計が記載されている。しかし、該公報に係る発明は、該電子式方位計の内部におい
て、例えば、永久磁石のように、地磁気の方向に関係なく該電子式方位計の方向に対して
一定方向の磁界を発生するものによる磁界を消磁することはできるが、例えば電子部品の
リードといった、磁化や減磁が比較的容易にできる強磁性体である軟質磁性体が地磁気中
にて該電子式方位計が移動することにより発生する誘導磁界を消磁することができないた
め、前述した問題を解決することはできない。
Corresponding to this, for example, in Patent Document 1, the magnetic field determination means determines whether or not the strength of the magnetic field detected by the magnetic sensor is out of a predetermined range. An electronic azimuth meter that demagnetizes the magnetized magnetic sensor by determining that the magnetic sensor is magnetized and applying an alternating attenuation magnetic field using a coil that applies a bias magnetic field to the magnetic sensor during measurement is described. ing. However, the invention according to the publication generates a magnetic field in a certain direction with respect to the direction of the electronic compass regardless of the direction of the geomagnetism, such as a permanent magnet, inside the electronic compass. The magnetic compass can be demagnetized, but when the electronic compass moves in the geomagnetism, a soft magnetic material, such as a lead of an electronic component, which is a ferromagnetic material that can be magnetized and demagnetized relatively easily Since the generated induced magnetic field cannot be demagnetized, the above-described problem cannot be solved.

また、特許文献2には、地磁気センサより演算手段に入力される信号が所定の判定エリ
アから外れているか否かを判定することにより、回転させることなく、地磁気センサの着
磁量が大きいことを認識してそれについての警告を行う方位検出装置が記載されている。
しかし、該公報に係る発明は、磁気センサの着磁量が大きいことを検出して警告する発明
であり、出力の補正についての具体的な手法を開示していないため、前述した問題を解決
することはできない。
Patent Document 2 discloses that the amount of magnetization of the geomagnetic sensor is large without being rotated by determining whether or not a signal input to the calculation means from the geomagnetic sensor is out of a predetermined determination area. An azimuth detection device that recognizes and warns about it is described.
However, the invention according to this publication is an invention that detects and warns that the amount of magnetization of the magnetic sensor is large, and does not disclose a specific method for correcting the output, thus solving the above-described problem. It is not possible.

また、特許文献3には、予め、前述した軟質磁性体が付近にない状態にて、所定の均一
な磁界に対する磁気センサの検出値を一定値に調整し、次に、軟質磁性体が付近に存在す
る状況において、感度軸方向からの磁界があるときの検出値から補正係数を求めておき、
これに基づく所定の計算式によって軟質磁性体のまわりに発生する誘導磁界を打ち消すこ
とにより、前述した誘導磁界による出力を補正する磁気検出方法が記載されている。しか
し、該公報に係る発明は、どのような場合に補正が必要になり、どのようなタイミングに
て補正を行うかの具体的な手法を開示していないため、前述した問題を解決することはで
きない。
Further, in Patent Document 3, the detection value of the magnetic sensor for a predetermined uniform magnetic field is adjusted to a constant value in a state where the above-described soft magnetic body is not in the vicinity, and then the soft magnetic body is in the vicinity. In the existing situation, find the correction coefficient from the detection value when there is a magnetic field from the sensitivity axis direction,
There is described a magnetic detection method for correcting the output by the above-described induced magnetic field by canceling out the induced magnetic field generated around the soft magnetic material by a predetermined calculation formula based on this. However, since the invention according to the publication does not disclose a specific method for when correction is necessary and at what timing, the above-described problem cannot be solved. Can not.

また、特許文献4には、地磁気よりも強い磁場を発生することができる磁場発生装置に
よって、調整用磁場を所定のシーケンスによって強さを変化させながら発生し、該シーケ
ンスに応じて磁気センサのデータを取得するシーケンスによって調整データを取得して調
整を行う、電子方位計の調整方法が記載されている。しかし、該公報に係る発明は、電子
方位計とは別に、外部磁場を印加する磁場発生装置を必要とするという問題があった。
特開平6−174472号公報 特開平6−249663号公報 特開平7−151842号公報 特開2002−48551号公報
In Patent Document 4, a magnetic field generator that can generate a magnetic field stronger than the geomagnetism is used to generate a magnetic field for adjustment while changing the strength according to a predetermined sequence. An adjustment method for an electronic compass is described, in which adjustment data is acquired and adjusted by a sequence for acquiring. However, the invention according to the publication has a problem that a magnetic field generator for applying an external magnetic field is required separately from the electronic compass.
JP-A-6-174472 JP-A-6-249663 Japanese Patent Laid-Open No. 7-151842 JP 2002-48551 A

そこで、本発明は、上記事情を考慮してなされたもので、その目的は、例えば、地磁気
センサを水平面上にて振るだけで、着磁によるオフセットを補正する地磁気センサの補正
方法と、地磁気センサの補正を行う方位データ演算装置を使用して地磁気センサのオフセ
ットの補正の操作を簡略化することができる携帯情報端末とを提供することにある。
Accordingly, the present invention has been made in consideration of the above circumstances, and an object thereof is, for example, a correction method for a geomagnetic sensor that corrects an offset due to magnetization by simply shaking the geomagnetic sensor on a horizontal plane, and a geomagnetic sensor. It is an object of the present invention to provide a portable information terminal capable of simplifying an operation for correcting an offset of a geomagnetic sensor using an azimuth data calculation device that corrects the above.

上記目的を達成するために、この発明では、以下の手段を提案している。
本発明は、二軸又は三軸の感度方向を有する地磁気センサと、傾きセンサと、前記地磁気センサの測定データと前記傾きセンサの傾斜角データとを記憶する第1の記憶手段と、前記地磁気センサの着磁によるオフセットを補正する補正手段とを搭載した携帯情報端末における地磁気センサの補正方法であって、所定の時間間隔で前記地磁気センサの測定データと前記傾きセンサの傾斜角データとを読み出す第1のステップと、ある時刻における現在の前記傾斜角データと当該時刻の直前に前記第1の記憶手段で記憶された過去の前記傾斜角データとの差分値が所定値以上である場合に、前記現在の傾斜角データと当該傾斜角データと同時に読み出した前記地磁気センサの測定データとを前記第1の記憶手段に記憶する第2のステップと、前記第1および第2のステップを繰り返し、前記地磁気センサの測定データと前記傾きセンサの傾斜角データとを蓄積する測定データ蓄積ステップと、前記蓄積した地磁気センサの測定データに基づいて、オフセット計測値を推定するステップと、を備えることを特徴とする地磁気センサの補正方法である。
In order to achieve the above object, the present invention proposes the following means.
The present invention provides a geomagnetic sensor having a biaxial or triaxial sensitivity direction, an inclination sensor, first storage means for storing measurement data of the geomagnetic sensor and inclination angle data of the inclination sensor, and the geomagnetic sensor. A correction method for a geomagnetic sensor in a portable information terminal equipped with a correction means for correcting an offset due to magnetization of the magnetic field, wherein the measurement data of the geomagnetic sensor and the tilt angle data of the tilt sensor are read at predetermined time intervals. 1 and when the difference value between the current inclination angle data at a certain time and the past inclination angle data stored in the first storage means immediately before the time is a predetermined value or more, A second step of storing current tilt angle data and measurement data of the geomagnetic sensor read simultaneously with the tilt angle data in the first storage means; Repeating the first and second steps, the measurement data storage step for storing the measurement data of the geomagnetic sensor and the inclination angle data of the tilt sensor, and the offset measurement value is estimated based on the stored measurement data of the geomagnetic sensor And a step of correcting the geomagnetic sensor.

本発明は、上記の地磁気センサの補正方法において、前記蓄積した地磁気センサの測定データと前記推定されたオフセット計測値との座標上における距離をそれぞれ算出し、さらに、算出された各距離の平均値を算出する平均値算出ステップと、算出された前記各距離の個々の値と前記各距離の平均値に基づいて標準偏差を算出するステップと、算出された標準偏差によって前記オフセット計測値の有効性を判定する有効性判定ステップと、を備えることを特徴とする。   In the correction method for the geomagnetic sensor, the present invention calculates distances on the coordinates of the accumulated measurement data of the geomagnetic sensor and the estimated offset measurement value, and further calculates an average value of the calculated distances. Calculating the average value, calculating the standard deviation based on the calculated individual values of the distances and the average value of the distances, and the effectiveness of the offset measurement values based on the calculated standard deviations And an effectiveness determination step for determining.

本発明は、上記の地磁気センサの補正方法において、前記有効性判定ステップにおいて前記オフセット計測値が有効と判断された場合、該オフセット計測値を第2の記憶手段に格納するステップを備えることを特徴とする。   The present invention is characterized in that, in the correction method of the geomagnetic sensor, the offset measurement value is stored in a second storage means when the offset measurement value is determined to be valid in the validity determination step. And

本発明は、上記の地磁気センサの補正方法において、前記有効性判定ステップにおいて前記オフセット計測値が有効でないと判断された場合、ユーザにその旨を報知するステップを有することを特徴とする。   The present invention is characterized in that the method for correcting a geomagnetic sensor includes a step of notifying the user of the fact that the offset measurement value is determined to be invalid in the validity determination step.

本発明は、上記の地磁気センサの補正方法において、ユーザに前記オフセット計測値が有効でない旨の報知がなされた後にユーザが前記オフセット計測値の補正を希望するかを問うステップを有し、このステップを実施後に再びオフセット計測値の推定を行うことを特徴とする。   The present invention includes a step of asking whether the user wishes to correct the offset measurement value after notifying the user that the offset measurement value is not valid in the correction method for the geomagnetic sensor. The offset measurement value is estimated again after performing the above.

本発明は、二軸又は三軸の感度方向を有する地磁気センサと、傾きセンサと、前記地磁気センサの着磁によるオフセットを補正する補正手段と、を備えた方位データ演算装置であって、前記補正手段が、所定の時間間隔で前記地磁気センサの測定データと前記傾きセンサの傾斜角データとを読み出す手段と、ある時刻に読み出された現在の前記傾斜角データと当該時刻の直前に読み出された過去の前記傾斜角データとの差分値が所定値以上である場合に、前記現在の傾斜角データと当該傾斜角データと同時に読み出された前記地磁気センサの測定データとを記憶する第1の記憶手段と、前記第1の記憶手段に記憶された複数の前記地磁気センサの測定データに基づいて、オフセット計測値を推定するオフセット推定手段と、を備えることを特徴とする方位データ演算装置である。   The present invention is an azimuth data calculation device comprising a geomagnetic sensor having a biaxial or triaxial sensitivity direction, an inclination sensor, and a correction means for correcting an offset due to magnetization of the geomagnetic sensor, wherein the correction The means reads out the measurement data of the geomagnetic sensor and the inclination angle data of the inclination sensor at predetermined time intervals, and reads out the current inclination angle data read at a certain time and immediately before the time. A first value for storing the current inclination angle data and the measurement data of the geomagnetic sensor read simultaneously with the inclination angle data when a difference value from the previous inclination angle data is a predetermined value or more; Storage means, and offset estimation means for estimating an offset measurement value based on measurement data of the plurality of geomagnetic sensors stored in the first storage means. A direction data calculation unit to.

本発明は、二軸又は三軸の感度方向を有する地磁気センサと、傾きセンサと、前記地磁気センサの着磁によるオフセットを補正する補正手段と、を備えた方位データ演算装置であって、前記補正手段が、所定の時間間隔で前記地磁気センサの測定データと前記傾きセンサの傾斜角データとを読み出す手段と、ある時刻に読み出された現在の前記傾斜角データと当該時刻の直前に読み出された過去の前記傾斜角データとの差分値が所定値以上である場合に、前記現在の傾斜角データと当該傾斜角データと同時に読み出された前記地磁気センサの測定データとを記憶する第1の記憶手段と、前記第1の記憶手段に記憶された複数の前記地磁気センサの測定データに基づいて、オフセット計測値を推定するオフセット推定手段と、前記推定されたオフセット計測値の有効性を判定する有効性判定手段と、を備え、前記有効性判定手段が、前記第1の記憶手段に記憶された複数の前記地磁気センサの測定データと前記推定されたオフセット計測値との座標上における距離をそれぞれ算出し、さらに、算出された各距離の平均値を算出する平均値算出手段と、算出された前記各距離の個々の値と前記各距離の平均値に基づいて標準偏差を算出する標準偏差算出手段と、
前記標準偏差算出手段によって算出された標準偏差によって前記オフセット計測値の有効性を判定する判定手段と、を備えることを特徴とする方位データ演算装置である。
The present invention is an azimuth data calculation device comprising a geomagnetic sensor having a biaxial or triaxial sensitivity direction, an inclination sensor, and a correction means for correcting an offset due to magnetization of the geomagnetic sensor, wherein the correction The means reads out the measurement data of the geomagnetic sensor and the inclination angle data of the inclination sensor at predetermined time intervals, and reads out the current inclination angle data read at a certain time and immediately before the time. A first value for storing the current inclination angle data and the measurement data of the geomagnetic sensor read simultaneously with the inclination angle data when a difference value from the previous inclination angle data is a predetermined value or more; Storage means; offset estimation means for estimating an offset measurement value based on measurement data of the plurality of geomagnetic sensors stored in the first storage means; and Validity determination means for determining the validity of the set measurement value, wherein the validity determination means includes the measurement data of the plurality of geomagnetic sensors stored in the first storage means and the estimated offset measurement. A distance on a coordinate with each value, and further, an average value calculating means for calculating an average value of the calculated distances, an individual value of the calculated distances, and an average value of the distances A standard deviation calculating means for calculating the standard deviation
An azimuth data calculation device comprising: a determination unit that determines the validity of the offset measurement value based on the standard deviation calculated by the standard deviation calculation unit.

本発明は、上記の方位データ演算装置において、前記補正手段が、前記有効性判定手段によって前記オフセット計測値が有効と判断された場合、該オフセット計測値を格納するオフセット格納手段を備えることを特徴とする。   According to the present invention, in the above azimuth data calculation device, the correction unit includes an offset storage unit that stores the offset measurement value when the validity determination unit determines that the offset measurement value is valid. And

本発明は、上記の方位データ演算装置いずれかを備えたことを特徴とする携帯情報端末である。   The present invention is a portable information terminal including any one of the above-described azimuth data calculation devices.

この発明によれば、ユーザが、携帯情報端末を回転させることなく、地磁気センサの出
力のオフセットを補正することが可能となるので、携帯情報端末の説明書によって調べる
ことなく簡便な操作によって、地磁気センサの出力のオフセットを補正することができる
効果がある。
According to the present invention, since the user can correct the offset of the output of the geomagnetic sensor without rotating the portable information terminal, the geomagnetism can be performed by a simple operation without checking the manual of the portable information terminal. There is an effect that the offset of the output of the sensor can be corrected.

以下、図面を参照し、この発明の実施形態について説明する。
図1に示す構成の携帯電話機は、図2に示すように、操作キー類を有する筐体1と、液
晶表示部を有する筐体2とから構成される。図2(a)は、携帯電話機の筐体1と筐体2
とを開いた状態の斜視図であり、図2(b)は携帯電話機の筐体1と筐体2とを閉じた状
態において筐体2を見た正面図であり、図2(c)は同状態において筐体1および筐体2
を見た側面図であり、図2(d)は同状態において筐体1を見た裏面図である。尚、図2
(a)に示すように、筐体1の短手の辺に沿うX軸および筐体1の長手の辺に沿うY軸を
想定する。尚、X軸およびY軸は互いに直交する。
Embodiments of the present invention will be described below with reference to the drawings.
As shown in FIG. 2, the mobile phone having the configuration shown in FIG. 1 includes a casing 1 having operation keys and a casing 2 having a liquid crystal display unit. 2A shows a case 1 and a case 2 of the mobile phone.
FIG. 2B is a front view of the case 2 when the case 1 and case 2 of the mobile phone are closed, and FIG. In the same state, the housing 1 and the housing 2
FIG. 2D is a back view of the housing 1 in the same state. Note that FIG.
As shown to (a), the X-axis along the short side of the housing | casing 1 and the Y-axis along the long side of the housing | casing 1 are assumed. The X axis and the Y axis are orthogonal to each other.

ここで、携帯電話機の各筐体の各面を以下のように定義する。すなわち、筐体1の操作
キー類を有する面を操作面とし、操作面と反対の面を背面とする。また、筐体2の面のう
ち、液晶表示部18aが設けられている面を主表示面とし、主表示面と反対の面をおもて
面とする。
Here, each surface of each housing of the mobile phone is defined as follows. That is, the surface having the operation keys of the housing 1 is defined as the operation surface, and the surface opposite to the operation surface is defined as the back surface. Moreover, let the surface in which the liquid crystal display part 18a is provided among the surfaces of the housing | casing 2 be a main display surface, and let the surface opposite to a main display surface be a front surface.

図1に示すように、携帯電話機は、RF(Radio Frequency)アンテナ8と、制御部1
0(制御手段)と、ROM(Read Only Memory)12と、RAM(Random Access Memory
)14(第1の記憶手段)(第2の記憶手段)と、表示部18a、18bと、キー入力部
20と、切換スイッチ21と、変復調部22と、CDMA(Code Division Multiple
Access)部23と、RF部24と、マイク27と、着信用スピーカ28と、音声処理部2
9と、地磁気センサ30と、GPS(Global Positioning System)受信部71と、G
PSアンテナ72と、携帯電話機に掛かる加速度を検知する加速度センサ80と、バスラ
イン90とから構成される。
As shown in FIG. 1, the mobile phone includes an RF (Radio Frequency) antenna 8 and a control unit 1.
0 (control means), ROM (Read Only Memory) 12, RAM (Random Access Memory)
) 14 (first storage means) (second storage means), display units 18a and 18b, key input unit 20, changeover switch 21, modem unit 22, and CDMA (Code Division Multiplex)
Access) unit 23, RF unit 24, microphone 27, incoming call speaker 28, and voice processing unit 2
9, geomagnetic sensor 30, GPS (Global Positioning System) receiver 71, G
A PS antenna 72, an acceleration sensor 80 that detects acceleration applied to the mobile phone, and a bus line 90 are included.

制御部10は、電話機能プログラム及びその他のプログラムを実行することにより携帯
電話機の各部を制御する。また、地磁気センサ30の測定データを入力して方位を演算す
る(方位データ演算装置)。ROM12は、制御部10が実行する送信時や着信時におけ
る各種電話機能プログラムや制御プログラム、その他の各種の固定データを格納している
。RAM14には、制御部10の動作中に使用するデータ等を一時的に記憶するワークエ
リア等が設定される。
The control unit 10 controls each unit of the mobile phone by executing a telephone function program and other programs. Further, the azimuth is calculated by inputting the measurement data of the geomagnetic sensor 30 (azimuth data calculation device). The ROM 12 stores various telephone function programs and control programs at the time of transmission and reception executed by the control unit 10 and other various fixed data. The RAM 14 is set with a work area for temporarily storing data and the like used during operation of the control unit 10.

RF部24は、RFアンテナ8によって受信された信号の周波数変換等を行う。変復調
部22は、該出力信号を復調してCDMA部23に出力する。CDMA部23は、以下の
ように、スペクトラム拡散(Spread Spectrum)または逆拡散を行う。すなわち、CDM
A部23は、変復調部22の出力信号を逆拡散して、拡散前の信号を抽出して、音声処理
部29に出力する。また、CDMA部23は、音声処理部29の出力信号を拡散して変復
調部22に出力する。変復調部22は、外部に送信する信号をCDMA部23から入力し
て変調を行い、変調後の信号をRF部24に出力する。そして、RF部24は、該信号を
周波数変換してRFアンテナ8から送信する。
The RF unit 24 performs frequency conversion of the signal received by the RF antenna 8. The modem unit 22 demodulates the output signal and outputs it to the CDMA unit 23. The CDMA unit 23 performs spread spectrum or despread as follows. That is, CDM
The A unit 23 despreads the output signal of the modulation / demodulation unit 22, extracts the signal before spreading, and outputs it to the audio processing unit 29. In addition, the CDMA unit 23 spreads the output signal of the audio processing unit 29 and outputs it to the modem unit 22. The modem unit 22 receives a signal to be transmitted to the outside from the CDMA unit 23, performs modulation, and outputs the modulated signal to the RF unit 24. The RF unit 24 converts the frequency of the signal and transmits it from the RF antenna 8.

キー入力部20は、図2(a)に示すように、電話を受けるときに使用する開始キー3
、電話を終了するときに使用する終了キー4と、数値キー及びコードキーからなるテンキ
ー5と、リダイアルキー7と、切換スイッチ21とを有している。
As shown in FIG. 2A, the key input unit 20 has a start key 3 used when receiving a call.
, An end key 4 used for ending the telephone call, a numeric keypad 5 composed of numerical keys and code keys, a redial key 7 and a changeover switch 21.

表示部18a、18bは、電子メールを送信する際に作成された文章の文字情報、各種
メニューの内容等を含む各種データ、さらにはその詳細な内容等が表示されるようになっ
ている。表示部18aは筐体1の操作面に設けられ、表示部18bは筐体2のおもて面に
設けられる。
音声処理部29は、符号化手段としての符号化部(CODER)と、復号化手段として
の復号化部(DECODER)とを含んで構成され、CDMA部23から出力された音声
信号を復号し、受話用スピーカに出力する。また、マイク27から入力された送話用の音
声信号を圧縮符号化し、CDMA部23に出力する。
The display units 18a and 18b are configured to display text information of text created when an e-mail is transmitted, various data including contents of various menus, and detailed contents thereof. The display unit 18 a is provided on the operation surface of the housing 1, and the display unit 18 b is provided on the front surface of the housing 2.
The audio processing unit 29 includes an encoding unit (CODER) as an encoding unit and a decoding unit (DECODER) as a decoding unit, and decodes the audio signal output from the CDMA unit 23, Output to the receiving speaker. Further, the audio signal for transmission input from the microphone 27 is compression-coded and output to the CDMA unit 23.

GPS受信部71は、接続されるGPSアンテナ72によって、GPSを構成する複数
のGPS衛星から送信される信号を受け、このGPS衛星から受けた信号を復調し、復調
した信号をもとに当該ナビゲーション装置の現在位置を算出してその位置情報(緯度・経
度)を求め、制御部10に出力する。この現在位置を算出する処理は、従来のカーナビゲ
ーションシステム等において行われる処理と同様のものである。
The GPS receiver 71 receives signals transmitted from a plurality of GPS satellites constituting the GPS by the connected GPS antenna 72, demodulates the signals received from the GPS satellites, and performs the navigation based on the demodulated signals. The current position of the apparatus is calculated, and the position information (latitude / longitude) is obtained and output to the control unit 10. The process for calculating the current position is the same as the process performed in a conventional car navigation system or the like.

図3に示すように、地磁気センサ30は、互いに直交するX軸およびY軸に沿った辺を
有する正方形状であり、X軸およびY軸に直交するZ軸方向に小さな厚みを有するLSI
(Large Scale Integration)が作り込まれたSi(シリコン)基板30aと、基板3
0aの上に形成された合計8個のGMR(Giant Magnetoresistive)素子31〜38と
、GMR素子31〜38に、それぞれ、初期化用磁界を印加する初期化用のコイル41〜
48と、コイル41〜48にそれぞれ接続され、コイル41〜48の各々の両端に所定の
電圧を印加する駆動回路51〜58とを備えている。尚、基板30a上には、地磁気セン
サ30の温度を監視する温度センサ60が設けられている。
As shown in FIG. 3, the geomagnetic sensor 30 is an LSI having a square shape having sides along the X axis and the Y axis orthogonal to each other and having a small thickness in the Z axis direction orthogonal to the X axis and the Y axis.
(Large Scale Integration) Si substrate 30a and substrate 3
A total of eight GMR (Giant Magnetoresistive) elements 31 to 38 formed on 0a, and coils 31 to 38 for initialization that apply an initialization magnetic field to GMR elements 31 to 38, respectively.
48 and drive circuits 51 to 58 that are connected to the coils 41 to 48 and apply a predetermined voltage to both ends of the coils 41 to 48, respectively. A temperature sensor 60 for monitoring the temperature of the geomagnetic sensor 30 is provided on the substrate 30a.

第1のX軸方向のGMR素子31は、基板30aのY軸方向について中央部より下方に
てX軸の負方向の端部近傍に形成され、磁化の向きが固定(ピン)された固着層(ピンド
層)において、ピンされた磁化の向きはX軸の負方向となっている。第2のX軸方向のG
MR素子32は、基板30aのY軸方向について中央部より上方にてX軸の負方向の端部
近傍に形成され、ピンされた磁化の向きはX軸の負方向となっている。第3のX軸方向の
GMR素子33は、基板30aのY軸方向について中央部より上方にてX軸の正方向の端
部近傍に形成され、ピンド層においてピンされた磁化の向きはX軸の正方向となっている
。第4のX軸方向のGMR素子34は、基板30aのY軸方向について中央部より下方に
てX軸の正方向の端部近傍に形成され、ピンド層においてピンされた磁化の向きはX軸の
正方向となっている。
The first GMR element 31 in the X-axis direction is formed in the vicinity of the end in the negative direction of the X-axis below the center in the Y-axis direction of the substrate 30a, and the pinned layer in which the magnetization direction is fixed (pinned). In the (pinned layer), the direction of pinned magnetization is the negative direction of the X axis. G in the second X-axis direction
The MR element 32 is formed near the end of the negative direction of the X axis above the center in the Y axis direction of the substrate 30a, and the pinned magnetization direction is the negative direction of the X axis. The third XMR direction GMR element 33 is formed in the vicinity of the positive end of the X axis above the center in the Y axis direction of the substrate 30a, and the direction of magnetization pinned in the pinned layer is the X axis. It is the positive direction. The fourth GMR element 34 in the X-axis direction is formed in the vicinity of the positive end of the X-axis below the center in the Y-axis direction of the substrate 30a, and the direction of magnetization pinned in the pinned layer is the X-axis. It is the positive direction.

また、第1のY軸方向のGMR素子35は、基板30aのX軸方向について中央部より
左方にてY軸の正方向の端部近傍に形成され、ピンド層においてピンされた磁化の向きは
Y軸の正方向となっている。第2のY軸方向のGMR素子36は、基板30aのX軸方向
について中央部より右方にてY軸の正方向の端部近傍に形成され、ピンド層においてピン
された磁化の向きはY軸の正方向となっている。第3のY軸方向のGMR素子37は、基
板30aのX軸方向について中央部より右方にてY軸の負方向の端部近傍に形成され、ピ
ンド層においてピンされた磁化の向きはY軸の負方向となっている。第4のY軸方向のG
MR素子38は、基板30aのX軸方向について中央部より左方にてY軸の負方向の端部
近傍に形成され、ピンド層においてピンされた磁化の向きはY軸の負方向となっている。
Also, the first Y-axis direction GMR element 35 is formed in the vicinity of the positive end of the Y-axis to the left of the central portion in the X-axis direction of the substrate 30a and pinned in the pinned layer. Is the positive direction of the Y axis. The second GMR element 36 in the Y-axis direction is formed near the end of the positive direction of the Y-axis to the right of the center in the X-axis direction of the substrate 30a, and the magnetization direction pinned in the pinned layer is Y The axis is in the positive direction. The third GMR element 37 in the Y-axis direction is formed near the end in the negative direction of the Y-axis to the right of the center in the X-axis direction of the substrate 30a, and the magnetization direction pinned in the pinned layer is Y The axis is in the negative direction. G in the fourth Y-axis direction
The MR element 38 is formed near the end of the negative direction of the Y axis to the left of the central portion in the X axis direction of the substrate 30a, and the direction of magnetization pinned in the pinned layer is the negative direction of the Y axis. Yes.

GMR素子31〜38は、基板30aに配置された位置および向きを除き、同一構造を
有している。従って、以下においては、第1のX軸方向のGMR素子31を代表例として
説明する。
The GMR elements 31 to 38 have the same structure except for the position and orientation arranged on the substrate 30a. Therefore, in the following, the GMR element 31 in the first X-axis direction will be described as a representative example.

図4に示す第1のX軸方向のGMR素子31は、図5および図6に示すように、スピン
バルブ膜SVからなりY軸方向に長手方向を有する複数の幅狭帯状部31a・・・31a
と、各幅狭帯状部31aのY軸方向両端部の下方に形成されたコバルト(Co)クロム(
Cr)白金(Pt)等の硬質強磁性体であり、高保磁力、高角型比を有する材質からなる
バイアス磁石膜(硬質強磁性体薄膜層)31b・・・31bとを備えている。各幅狭帯状
部31aは、各バイアス磁石膜31bの上面にてX軸方向に伸び、隣接する幅狭帯状部3
1aと接合している。
As shown in FIGS. 5 and 6, the first XMR direction GMR element 31 shown in FIG. 4 includes a plurality of narrow strips 31a made of a spin valve film SV and having a longitudinal direction in the Y-axis direction. 31a
And cobalt (Co) chromium (below the both ends in the Y-axis direction of each narrow strip portion 31a (
Cr) is a hard ferromagnetic material such as platinum (Pt), and includes bias magnet films (hard ferromagnetic thin film layers) 31b... 31b made of a material having a high coercive force and a high squareness ratio. Each narrow strip portion 31a extends in the X-axis direction on the upper surface of each bias magnet film 31b and is adjacent to the narrow strip portion 3a.
It is joined to 1a.

第1のX軸方向のGMR素子31のスピンバルブ膜SVは、図7に膜構成を示したよう
に、基板30aの上に順に積層されたフリー層(自由層、自由磁化層)F、膜厚が2.4
nm(24Å)の銅(Cu)からなる導電性のスペーサ層S、ピンド層Pおよび膜厚が2
.5nm(25Å)のチタン(Ti)又はタンタル(Ta)からなるキャッピング層Cを
含んで構成されている。
As shown in FIG. 7, the spin valve film SV of the GMR element 31 in the first X-axis direction includes a free layer (free layer, free magnetic layer) F, a film stacked in order on the substrate 30a. The thickness is 2.4
Conductive spacer layer S, pinned layer P and film thickness of 2 nm (24 cm) copper (Cu)
. A capping layer C made of 5 nm (25 cm) titanium (Ti) or tantalum (Ta) is included.

フリー層Fは、外部磁界の向きに応じて磁化の向きが変化する層であり、基板30aの
直上に形成された膜厚が8nm(80Å)のコバルト(Co)ジルコニウム(Zr)ニオ
ブ(Nb)アモルファス磁性層31−1と、CoZrNbアモルファス磁性層31−1の
上に形成された膜厚が3.3nm(33Å)のニッケル(Ni)鉄(Fe)磁性層31−
2と、NiFe磁性層31−2の上に形成された1〜3nm(10〜30Å)程度の膜厚
のCoFe層31−3とからなっている。CoZrNbアモルファス磁性層31−1とN
iFe磁性層31−2は、前述した軟質強磁性体薄膜層を構成している。CoFe層31
−3はNiFe層31−2のNiおよびスペーサ層SのCu31−4の拡散を防止するも
のである。尚、バイアス磁石膜31b・・・31bは、フリー層Fの一軸異方性を維持す
るため、フリー層Fに対してY軸方向(図4および図5の幅広矢印にて示したY軸負方向
)にバイアス磁界を与えている。
The free layer F is a layer whose magnetization direction changes according to the direction of the external magnetic field. The free layer F is formed on the substrate 30a and has a film thickness of 8 nm (80 cm), cobalt (Co) zirconium (Zr) niobium (Nb). The amorphous magnetic layer 31-1 and the nickel (Ni) iron (Fe) magnetic layer 31- having a thickness of 3.3 nm (33Å) formed on the CoZrNb amorphous magnetic layer 31-1.
2 and a CoFe layer 31-3 having a thickness of about 1 to 3 nm (10 to 30 mm) formed on the NiFe magnetic layer 31-2. CoZrNb amorphous magnetic layer 31-1 and N
The iFe magnetic layer 31-2 constitutes the soft ferromagnetic thin film layer described above. CoFe layer 31
-3 prevents diffusion of Ni in the NiFe layer 31-2 and Cu31-4 in the spacer layer S. In order to maintain the uniaxial anisotropy of the free layer F, the bias magnet film 31b... 31b is in the Y-axis direction (the Y-axis negative direction indicated by the wide arrow in FIGS. 4 and 5). Direction).

ピンド層Pは、膜厚が2.2nm(22Å)のCoFe磁性層31−5と、Ptを45
〜55mol%含むPtマンガン(Mn)合金から形成した膜厚が24nm(240Å)
の反強磁性膜31〜36とを重ね合わせたものである。CoFe磁性層31〜35は、着
磁(磁化)された反強磁性膜31〜36に交換結合的に裏打されることにより、前述した
ように、磁化の向きがX軸の負方向にピンされている。
The pinned layer P includes a CoFe magnetic layer 31-5 with a film thickness of 2.2 nm (22 mm), and 45 Pt.
A film thickness of 24 nm (240 mm) formed from a Pt manganese (Mn) alloy containing ˜55 mol%
The antiferromagnetic films 31 to 36 are superposed. The CoFe magnetic layers 31 to 35 are back-coupled to the magnetized (magnetized) antiferromagnetic films 31 to 36 in an exchange coupling manner, so that the magnetization direction is pinned in the negative direction of the X axis as described above. ing.

このように構成された第1のX軸方向のGMR素子31は、図8において実線にて示し
たように、X軸に沿って変化する外部磁界に対し、−Hc〜+Hcの範囲において、外部
磁界にほぼ比例して変化する抵抗値を呈し、図8において破線にて示したように、Y軸に
沿って変化する外部磁界に対して、ほぼ一定の抵抗値を呈する。
As shown by the solid line in FIG. 8, the first XMR direction GMR element 31 configured in this way is external in the range of −Hc to + Hc with respect to the external magnetic field changing along the X axis. It exhibits a resistance value that varies substantially in proportion to the magnetic field, and exhibits a substantially constant resistance value with respect to an external magnetic field that varies along the Y axis, as indicated by a broken line in FIG.

この地磁気センサ30においては、図9に示したように、第1〜第4のX軸方向のGM
R素子31〜34をフルブリッジ接続することにより、X軸方向の磁界を検出するX軸方
向の地磁気センサが構成される。図9において、各GMR素子31〜34の中に付した矢
印はGMR素子31〜34のピンド層がピンされた磁化の向きを示している。このような
構成において、第2のX軸方向のGMR素子32と第3のX軸方向のGMR素子33との
結合点Vaと、第1のX軸方向のGMR素子31と第4のX軸方向のGMR素子34との
結合点Vbの間に一定の電位差が印加され、第1のX軸方向のGMR素子31と第3のX
軸方向のGMR素子33との結合点Vcと、第2のX軸方向のGMR素子32と第4のX
軸方向のGMR素子34との結合点Vdとの間の電位差(Vc−Vd)がセンサ出力Voutとして取り出される。
In this geomagnetic sensor 30, as shown in FIG. 9, GM in the first to fourth X-axis directions.
By connecting the R elements 31 to 34 with a full bridge, a geomagnetic sensor in the X-axis direction that detects a magnetic field in the X-axis direction is configured. In FIG. 9, arrows attached to the GMR elements 31 to 34 indicate the magnetization directions in which the pinned layers of the GMR elements 31 to 34 are pinned. In such a configuration, the coupling point Va between the GMR element 32 in the second X-axis direction and the GMR element 33 in the third X-axis direction, the GMR element 31 in the first X-axis direction, and the fourth X-axis A constant potential difference is applied between the coupling point Vb with the GMR element 34 in the direction, and the GMR element 31 in the first X-axis direction and the third X
The coupling point Vc with the GMR element 33 in the axial direction, the GMR element 32 in the second X-axis direction, and the fourth X
A potential difference (Vc−Vd) between the coupling point Vd and the axial GMR element 34 is taken out as a sensor output Vout.

この結果、X軸方向の地磁気センサは、図10において実線にて示したように、X軸に
沿って変化する外部磁界に対し、−Hc〜+Hcの範囲において、外部磁界にほぼ比例して
変化する出力電圧Vxoutを示し、図10において破線にて示したように、Y軸に沿って変
化する外部磁界に対しては、ほぼ「0」の出力電圧を示す。
As a result, the geomagnetic sensor in the X-axis direction changes substantially in proportion to the external magnetic field in the range of −Hc to + Hc with respect to the external magnetic field changing along the X-axis, as shown by the solid line in FIG. As shown by the broken line in FIG. 10, the output voltage Vxout is substantially “0” for the external magnetic field changing along the Y axis.

Y軸方向の地磁気センサは、X軸方向の地磁気センサと同様に、第1〜第4のY軸方向
のGMR素子35〜39がフルブリッジ接続されることにより構成され、Y軸に沿って変
化する外部磁界に対し、−Hc〜+Hcの範囲において、外部磁界にほぼ比例して変化す
る出力電圧Vyoutを示すとともに、X軸に沿って変化する外部磁界に対しては、ほぼ「0
」の出力電圧を示す。以上説明したように、地磁気センサ30は外部磁界を検出する。尚
、地磁気センサ30は、図示しない温度補償回路によって、温度センサ60によって得ら
れた温度の情報に基づいて磁気特性の温度補償を行う。
The geomagnetic sensor in the Y-axis direction is configured by full-bridge connection of the GMR elements 35 to 39 in the first to fourth Y-axis directions, and changes along the Y-axis, like the geomagnetic sensor in the X-axis direction. In the range of −Hc to + Hc, an output voltage Vyout that changes substantially in proportion to the external magnetic field is shown, and an external magnetic field that changes along the X axis is substantially “0”.
"Indicates the output voltage. As described above, the geomagnetic sensor 30 detects an external magnetic field. The geomagnetic sensor 30 performs temperature compensation of magnetic characteristics based on temperature information obtained by the temperature sensor 60 using a temperature compensation circuit (not shown).

次に、携帯電話機の方位データ演算装置の方位測定方法の原理について、携帯電話機の
操作面がほぼ水平な状態にて置かれ、地磁気センサ30に加わる外部磁界が地磁気のみで
あるとして説明する。ここで、携帯電話機の方位angとは、携帯電話機の筐体1の操作
面がほぼ水平である場合において、携帯電話機の操作面手前部(例えば、マイク27)か
ら連結部の中央に向うベクトル、即ちY軸の正方向に向うベクトルの方位のこととする。
なお、本明細書において、方位angの基準(0°)は西であり、同方位angは、北、
東、及び南の順に回転するにつれて、それぞれ90°、180°および270°となるも
のとして定義する。
Next, the principle of the azimuth measuring method of the azimuth data calculation device of the mobile phone will be described on the assumption that the operation surface of the mobile phone is placed in a substantially horizontal state and the external magnetic field applied to the geomagnetic sensor 30 is only geomagnetism. Here, the orientation ang of the mobile phone is a vector from the front portion of the mobile phone operation surface (for example, the microphone 27) toward the center of the connection portion when the operation surface of the case 1 of the mobile phone is substantially horizontal. That is, the direction of the vector directed in the positive direction of the Y axis.
In the present specification, the reference (0 °) of the azimuth ang is west, and the azimuth ang is north,
It is defined as 90 °, 180 ° and 270 °, respectively, as it rotates in the order of East and South.

ところで、地磁気は南から北に向う磁界である。したがって、携帯電話機の筐体1の操
作面がほぼ水平である場合、地磁気センサ30のX軸方向の地磁気センサおよびY軸方向
の地磁気センサの出力は、図11に示したように、同携帯電話機10の方位angに対し
て余弦波状、及び正弦波状にそれぞれ変化する。尚、図11のセンサ出力Sx、Syは規
格化されているとする。規格化とは、X軸方向の地磁気センサの実際の出力を、携帯電話
機の筐体1の操作面がほぼ水平である状態で360°回転した場合における出力の最大値
と最小値の差の半分で除した値を規格化後出力Sxとすることである。また、規格化とは
、同様に、Y軸方向の地磁気センサの実際の出力を、携帯電話機の筐体1の操作面がほぼ
水平である状態で360°回転した場合における出力の最大値と最小値の差の半分で除し
た値を規格化後出力Syとすることである。
By the way, geomagnetism is a magnetic field from south to north. Therefore, when the operation surface of the casing 1 of the cellular phone is substantially horizontal, the outputs of the geomagnetic sensor 30 in the X-axis direction and the geomagnetic sensor in the Y-axis direction of the geomagnetic sensor 30 are as shown in FIG. It changes in a cosine wave shape and a sine wave shape with respect to 10 directions ang. It is assumed that the sensor outputs Sx and Sy in FIG. 11 are standardized. Normalization means that the actual output of the geomagnetic sensor in the X-axis direction is half of the difference between the maximum value and the minimum value when rotated 360 ° with the operation surface of the casing 1 of the mobile phone being almost horizontal. The value divided by is used as the normalized output Sx. Similarly, normalization refers to the maximum and minimum outputs when the actual output of the geomagnetic sensor in the Y-axis direction is rotated 360 ° with the operation surface of the casing 1 of the mobile phone being substantially horizontal. The value divided by half of the value difference is used as the normalized output Sy.

以上のことから、携帯電話機の方位angは以下の(a)〜(d)に場合分けして求め
ることができる。
(a)Sx、Syについて、Sx>0、且つ、|Sx|>|Sy|が成立すると、方位an
g=tan−1(Sy/Sx)となる。
(b)Sx<0、且つ、|Sx|>|Sy|が成立すると、ang=180°+tan−
1(Sy/Sx)となる。
(c)Sy>0、且つ、|Sx|<|Sy|が成立すると、ang= 90°−tan−1
(Sx/Sy)となる。
(d)Sy<0、且つ、|Sx|<|Sy|が成立すると、ang=270°−tan−
1(Sx/Sy)となる。
但し、上記(a)〜(d)の何れかにより求められた方位angが負の場合は、同方位
angに360°を加えた値を方位angとする。また、求められた方位angが360
°以上であれば、同方位angから360°を減じた値を方位angとする。
From the above, the azimuth ang of the mobile phone can be obtained in the following cases (a) to (d).
(A) For Sx and Sy, if Sx> 0 and | Sx |> | Sy |
g = tan-1 (Sy / Sx).
(B) When Sx <0 and | Sx |> | Sy | are satisfied, ang = 180 ° + tan−
1 (Sy / Sx).
(C) If Sy> 0 and | Sx | <| Sy | is satisfied, ang = 90 ° −tan−1
(Sx / Sy).
(D) When Sy <0 and | Sx | <| Sy | is satisfied, ang = 270 ° −tan−
1 (Sx / Sy).
However, when the azimuth ang obtained by any one of the above (a) to (d) is negative, a value obtained by adding 360 ° to the same azimuth ang is defined as the azimuth ang. Further, the obtained bearing ang is 360.
If the angle is greater than or equal to °, the value obtained by subtracting 360 ° from the same direction ang is defined as the direction ang.

しかし、携帯電話機内には、前述したように、スピーカ28に代表されるように多くの
永久磁石部品が含まれ、これらの部品から磁場が漏洩している。そのため、携帯電話機内
の所定箇所に配置された地磁気センサ30には、これらの永久磁石部品による漏洩磁界(
地磁気以外による外部磁界)が加わっている。この結果、X軸方向の地磁気センサの出力
は、漏洩磁界のX軸成分に応じた出力だけシフト(平行移動)し、同様に、Y軸方向の地
磁気センサの出力は、漏洩磁界のY軸成分に応じた出力だけシフトする。この出力のシフ
トをオフセットと言い、このX軸方向、Y軸方向それぞれのシフトの量をオフセット計測
値とする。そのため、携帯電話機において正確な方位を測定するためには、上述したオフ
セット計測値をX軸、Y軸それぞれの出力値から差し引くといった、出力の補正を行う必
要がある。ここで、オフセット計測値は前述したように、携帯電話機内部にある軟質強磁
性体による影響のため、実際に各ポイントにて測定し、その有効性を判定する必要がある
However, as described above, many permanent magnet parts are included in the mobile phone as represented by the speaker 28, and a magnetic field leaks from these parts. For this reason, the geomagnetic sensor 30 disposed at a predetermined location in the mobile phone has a leakage magnetic field (
An external magnetic field other than geomagnetism is added. As a result, the output of the geomagnetic sensor in the X-axis direction is shifted (translated) by an output corresponding to the X-axis component of the leakage magnetic field. Similarly, the output of the geomagnetic sensor in the Y-axis direction is the Y-axis component of the leakage magnetic field. The output is shifted according to. This output shift is called an offset, and the amount of shift in each of the X-axis direction and the Y-axis direction is used as an offset measurement value. Therefore, in order to measure an accurate azimuth in a cellular phone, it is necessary to perform output correction such as subtracting the offset measurement value described above from the output values of the X axis and the Y axis. Here, as described above, the offset measurement value is actually measured at each point because of the influence of the soft ferromagnet inside the mobile phone, and it is necessary to determine its effectiveness.

次に、地磁気センサ30に地磁気および漏洩磁界が外部磁界として加わる場合に、方位
データ演算装置において、上述したようにオフセット計測値を推定し、有効性を判定する
方法の原理について説明する。
携帯電話機を、予め定められた時間間隔にて外部磁気を測定するように構成する。そし
て、図12に示すように、携帯電話機をX軸、Y軸の感度方向を含む面、例えば、水平面
のような、単一面上にて振り、その間に、複数の測定ポイントにおける外部磁気の測定を
行い、推定されたオフセット計測値の有効性を、該測定データから判定する。
Next, the principle of the method for estimating the offset measurement value and determining the effectiveness as described above in the azimuth data calculation apparatus when the geomagnetism and the leakage magnetic field are applied to the geomagnetic sensor 30 as the external magnetic field will be described.
The mobile phone is configured to measure external magnetism at predetermined time intervals. Then, as shown in FIG. 12, the mobile phone is shaken on a single plane such as a horizontal plane including the X-axis and Y-axis sensitivity directions, and during that time, the external magnetism is measured at a plurality of measurement points. The effectiveness of the estimated offset measurement value is determined from the measurement data.

ここで、求めるべきオフセット計測値をXo、Yo、地磁気センサ30が出力する値をプ
ロットすることにより描かれる方位円の半径をRとすると、以下の関係が成立する。
(X−Xo)2 +(Y−Yo)2 = R2
∴R2 −Xo2 −Yo2 +2XXo +2YYo = X2 +Y2 ・・・・・(式11

また、測定ポイントにおいて測定された外部磁気を、座標値(Xi,Yi)(i=1,2
,3,・・・,N)として、最小二乗誤差εを以下のように定義する。そして、該最小二
乗誤差εが最小になる座標値を算出する、最小二乗法によって、地磁気センサ30の方位
円の原点を求めることにより、オフセット計測値を推定する(オフセット推定ステップ)
(オフセット推定手段)。
Here, if the offset measurement values to be obtained are Xo, Yo, and the radius of the azimuth circle drawn by plotting the values output by the geomagnetic sensor 30 is R, the following relationship is established.
(X-Xo) 2 + (Y-Yo) 2 = R2
∴R2 -Xo2 -Yo2 + 2XXo + 2YYo = X2 + Y2 (Formula 11)
)
In addition, the external magnetism measured at the measurement point is expressed by coordinate values (Xi, Yi) (i = 1, 2).
, 3,..., N), the least square error ε is defined as follows. Then, the offset measurement value is estimated by obtaining the origin of the azimuth circle of the geomagnetic sensor 30 by the least square method for calculating the coordinate value that minimizes the least square error ε (offset estimation step).
(Offset estimation means).

Figure 2008298796
Figure 2008298796

ここで、ai=(Xi2 +Yi2 )、bi=−2Xi 、ci=−2Yi 、D=(Xo2
+Yo2 )− R2 とおくと、[数2]となる。
Here, ai = (Xi2 + Yi2), bi = -2Xi, ci = -2Yi, D = (Xo2)
If + Yo2) -R2, then [Equation 2] is obtained.

Figure 2008298796
Figure 2008298796

このとき、最小二乗誤差εを最小とする条件は、Xo、Yo、ZoおよびDをεの独立変
数とし、εをXo、Yo、ZoおよびDで微分することにより[数3]となる。
At this time, the condition for minimizing the least square error ε is expressed as [Equation 3] by making Xo, Yo, Zo and D independent variables of ε and differentiating ε with Xo, Yo, Zo and D.

Figure 2008298796
Figure 2008298796

また、(式14)〜(式16)から、以下の方程式を解くことによってオフセット計測値X
o、Yoが求められる。このXo、Yo から得られる座標(Xo,Yo)が方位円の原点(中
心点)となる。
Further, the offset measurement value X can be obtained by solving the following equation from (Expression 14) to (Expression 16).
o, Yo are required. The coordinates (Xo, Yo) obtained from Xo, Yo are the origin (center point) of the azimuth circle.

Figure 2008298796
但し、[数4]において、[数5]に示した表記を用いている。
Figure 2008298796
However, in [Formula 4], the notation shown in [Formula 5] is used.

Figure 2008298796
Figure 2008298796

次に、標準偏差σを、求める方法について説明する。オフセット測定データである各測
定値miおよび各測定点データとオフセット計測値により得られる方位円の原点との距離
である各測定値miについての平均値Aから算出する(平均値算出ステップ)(平均値算
出手段)(標準偏差算出手段)。まず、各測定値miは、測定ポイントにおいて測定され
た外部磁気を示す測定データ(Xi、Yi)と、オフセット計測値である方位円の原点(
中心)(Xo、Yo)との座標上の距離により求められる。
Next, a method for obtaining the standard deviation σ will be described. Each measurement value mi that is offset measurement data and each measurement point data and the average value A for each measurement value mi that is the distance between the origin of the azimuth circle obtained from the offset measurement value are calculated (average value calculation step) (average Value calculation means) (standard deviation calculation means). First, each measurement value mi includes measurement data (Xi, Yi) indicating external magnetism measured at a measurement point, and an origin of an azimuth circle that is an offset measurement value (
(Center) (Xo, Yo).

Figure 2008298796
Figure 2008298796

次に、この測定値miの平均値を算出する。   Next, an average value of the measured values mi is calculated.

Figure 2008298796
Figure 2008298796

これらに基づき、標準偏差はmiおよびAにより、以下の式により表される。

Figure 2008298796
Based on these, the standard deviation is expressed by the following formula by mi and A.
Figure 2008298796

さらに、標準偏差は   In addition, the standard deviation is

Figure 2008298796
Figure 2008298796

で表されるので、これに[数6]を適用し、標準偏差は、推定されたオフセット計測値
(Xo、Yo)と測定データ(Xi、Yi)を用いて求められる方位円の半径を用いて、
[数10]で表される。
Therefore, [Expression 6] is applied to this, and the standard deviation uses the radius of the azimuth circle obtained by using the estimated offset measurement value (Xo, Yo) and the measurement data (Xi, Yi). And
[Expression 10]

Figure 2008298796
Figure 2008298796

そして次に、推定されたオフセット計測値(Xo、Yo)の有効性を判定する(判定手
段)(有効性判断ステップ)。
Next, the effectiveness of the estimated offset measurement values (Xo, Yo) is determined (determination means) (effectiveness determination step).

地磁気センサ30が出力する方位円を構成する各測定データの分布から、平均半径に対
して大きくなるものが多く存在すると、該測定データが無効であるものとし、下記の式に
より、標準偏差が所定値より小さいことを条件として、該オフセット計測値の有効性を判
断する。
σ<F ・・・・・(式22)
If many distributions of the measurement data constituting the azimuth circle output from the geomagnetic sensor 30 are large with respect to the average radius, the measurement data is invalid, and the standard deviation is determined by the following formula. The effectiveness of the offset measurement value is determined on condition that the value is smaller than the value.
σ <F (Formula 22)

このとき、地磁気センサにおいては、16方位を判別できることが通常の要求仕様であ
るため、オフセット計測値の誤差が地磁気の1/5に相当する量以下に収まっている必要
がある。そのため、方位円半径が2σにおいて、地磁気の1/5に収まっていればよいと
判断されることより、上述したFは地磁気の1/10の磁気量である0.03Oe(エル
ステッド)に相当する量が好ましいことになる。
At this time, in the geomagnetic sensor, since it is a normal requirement specification that 16 orientations can be discriminated, the error of the offset measurement value needs to be within an amount corresponding to 1/5 of the geomagnetism. Therefore, it is determined that the azimuth circle radius should be within 1/5 of the terrestrial magnetism when the azimuth radius is 2σ, and thus F corresponds to 0.03 Oe (Oersted), which is 1/10 of the terrestrial magnetism. The amount will be preferred.

次に、本実施形態による携帯電話機の方位データ演算装置による地磁気センサ30のオ
フセットのキャリブレーションの動作を説明する。オフセットのキャリブレーションとは
、外部磁気を測定し、得られた測定データを基にオフセット値を算出し、算出されたオフ
セット値を地磁気センサのオフセットとして更新(設定)することをいう。
先ず、携帯電話機の電源が投入され、携帯電話機の動作が開始する。以下、図13に示
すフローチャートを参照して、携帯電話機の地磁気センサ30のオフセットのキャリブレ
ーションの動作を説明する。尚、RAM14には、先回の動作時に得られたオフセット計
測値が格納されているとする。
Next, the offset calibration operation of the geomagnetic sensor 30 by the mobile phone orientation data calculation device according to the present embodiment will be described. Offset calibration refers to measuring external magnetism, calculating an offset value based on the obtained measurement data, and updating (setting) the calculated offset value as an offset of the geomagnetic sensor.
First, the power of the mobile phone is turned on, and the operation of the mobile phone starts. Hereinafter, the offset calibration operation of the geomagnetic sensor 30 of the mobile phone will be described with reference to the flowchart shown in FIG. Note that it is assumed that the offset measurement value obtained in the previous operation is stored in the RAM 14.

先ず、携帯電話機においてオフセットのキャリブレーションを指示するキャリブレーシ
ョン開始ボタン(トリガーキー)がONされて(ステップSa1)、制御部10が、地磁
気センサ30に外部の磁気を測定する指示をする(ステップSa2)。次に、制御部10
は地磁気センサ30から測定データを読み出し(ステップSa3)、該データをRAM1
4に格納する(ステップSa4)。次に、RAM14に格納されたデータの数が、予め定
められた数に達したか否かが制御部10により判断される。判断が「NO」であった場合
、まだ、RAM14に格納されたデータの数が予め定められた数に達していないので、0
.1sec.だけ待った(ステップSa6)後に、ステップSa2に戻り、以下のステッ
プSa2〜Sa5の動作を制御部10が繰り返す(データ格納手段)。
First, a calibration start button (trigger key) for instructing offset calibration is turned on in the mobile phone (step Sa1), and the control unit 10 instructs the geomagnetic sensor 30 to measure external magnetism (step Sa2). ). Next, the control unit 10
Reads the measurement data from the geomagnetic sensor 30 (step Sa3) and stores the data in the RAM1.
4 (step Sa4). Next, the control unit 10 determines whether or not the number of data stored in the RAM 14 has reached a predetermined number. If the determination is “NO”, the number of data stored in the RAM 14 has not yet reached the predetermined number.
. 1 sec. After waiting only (step Sa6), the process returns to step Sa2, and the control unit 10 repeats the operations of the following steps Sa2 to Sa5 (data storage means).

一方、ステップSa5における判断が「YES」であった場合、ステップSa7に移行
し、制御部10において、オフセット計測値の推定が行われる。次に、制御部10におい
て前述した標準偏差σの算出を行い、推定されたオフセット計測値が有効であるか否かが
判断される(ステップSa8)(有効性判定ステップ)(有効性判定手段)。判断が「Y
ES」であった場合、制御部10の制御の下、RAM14にオフセット計測値が格納され
る(ステップSa9)(オフセット格納手段)。尚、先にRAM14に格納されていたオ
フセット計測値は、制御部10の制御の下、ステップSa9において算出されたオフセッ
ト計測値に更新される。
そして、携帯電話機の地磁気センサ30のオフセットのキャリブレーションの動作が終了
する。一方、ステップSa8における判断が「NO」であった場合、RAM14において
格納されているオフセット計測値が更新されることなく、携帯電話機の地磁気センサ30
のオフセットのキャリブレーションの動作が終了する。このとき、オフセット計測値とし
ては、前回のキャリブレーション動作において更新され、RAM14に保存されていたオ
フセット計測値をそのまま用いる。
On the other hand, when the determination in step Sa5 is “YES”, the process proceeds to step Sa7, and the control unit 10 estimates the offset measurement value. Next, the control unit 10 calculates the standard deviation σ described above, and determines whether or not the estimated offset measurement value is valid (step Sa8) (validity determination step) (validity determination means). . Judgment is “Y
If it is “ES”, the offset measurement value is stored in the RAM 14 under the control of the control unit 10 (step Sa9) (offset storage means). The offset measurement value previously stored in the RAM 14 is updated to the offset measurement value calculated in step Sa9 under the control of the control unit 10.
Then, the offset calibration operation of the geomagnetic sensor 30 of the mobile phone ends. On the other hand, if the determination in step Sa8 is “NO”, the offset measurement value stored in the RAM 14 is not updated, and the geomagnetic sensor 30 of the cellular phone is updated.
This completes the offset calibration operation. At this time, the offset measurement value updated in the previous calibration operation and stored in the RAM 14 is used as the offset measurement value.

以上のように、本実施形態によれば、詳細な説明書を参照することなく、簡単な操作に
よって地磁気センサのオフセットのキャリブレーションを実施でき、携帯電話機がオフセ
ットのキャリブレーションの成否を判定して、適正なキャリブレーションが行われたとき
のみ、オフセット計測値を更新することが可能になる。そのため、簡単な操作にて、しか
も、確実に測定データの補正を行うことができる。
As described above, according to the present embodiment, the offset calibration of the geomagnetic sensor can be performed by a simple operation without referring to a detailed manual, and the mobile phone determines the success or failure of the offset calibration. Only when proper calibration is performed, the offset measurement value can be updated. For this reason, the measurement data can be reliably corrected by a simple operation.

尚、本実施形態においては、地磁気センサとして二軸の地磁気センサを想定したが、3
軸の地磁気センサを用いても同様な動作を実現することが可能である。この場合、二軸の
地磁気センサでは二つの感度方向を含む面内で左右に振ることによりオフセットのキャリ
ブレーションが行えるのに対し、三軸では、図14に示すように、三つの感度方向のうち
、二つの感度方向を含む面内で(例えば左右に)、および上記とは異なる感度方向を含む
別の面内で(例えば上下に)、振ることによりオフセットのキャリブレーションが行える

尚、図15に示すように、紙面上に携帯電話機を配置したときに、地磁気が紙面の横方
向に走っているような特殊な位置関係にある場合では、紙面に対して垂直な方向となる上
下(前後)に携帯電話機を振っても、地磁気センサと地磁気との相対関係が変化しないた
め、このようなときは他の方向に振ることにより、オフセットのキャリブレーションを行
えるようにすることができる。
In this embodiment, a biaxial geomagnetic sensor is assumed as the geomagnetic sensor.
A similar operation can be realized using an axial geomagnetic sensor. In this case, in the biaxial geomagnetic sensor, offset calibration can be performed by swinging left and right in a plane including two sensitivity directions, whereas in the three axes, as shown in FIG. The offset calibration can be performed by shaking in a plane including two sensitivity directions (for example, left and right) and in another plane including a sensitivity direction different from the above (for example, up and down).
As shown in FIG. 15, when the mobile phone is arranged on the paper surface, the direction is perpendicular to the paper surface when the geomagnetism is in a special positional relationship such as running in the lateral direction of the paper surface. Even if the mobile phone is shaken up and down (front and back), the relative relationship between the geomagnetic sensor and the geomagnetism does not change. In such a case, the offset can be calibrated by shaking in another direction. .

また、二軸の地磁気センサにおいて、前述したオフセットのキャリブレーションが行わ
れる場合においても、図16に示すように紙面と垂直方向に地磁気が走っている場合は、
地磁気センサと地磁気との相対位置関係は、センサを図示するように振っても変化しない
。しかし、この場合も、地磁気センサが半径0の方位円を出力しているとして、オフセッ
トは演算処理され、正しく求められる。
Further, even when the offset calibration described above is performed in the biaxial geomagnetic sensor, as shown in FIG. 16, when the geomagnetism runs in the direction perpendicular to the paper surface,
The relative positional relationship between the geomagnetic sensor and the geomagnetism does not change even if the sensor is shaken as illustrated. However, in this case as well, the offset is calculated and correctly obtained assuming that the geomagnetic sensor outputs an azimuth circle having a radius of zero.

また、本実施形態においては、地磁気センサとして、GMR素子を想定したが、地磁気
センサの種類はこれに限定されず、TMR(Tunneling Magnetoresistive)素子、MR
(Magnetoresistive)素子等の磁気抵抗効果素子や、ホール素子、MI(Magneto Impeda
nce)素子、フラックスゲートセンサ等、どんなものでもよい。
特に、ホール素子のような特性の温度変化の激しい素子では、温度によるオフセット変
化を補正するために使用できる。またMI素子のような着磁しやすいものでは、素子自身
の着磁による影響の除去手段として有効である。
In this embodiment, a GMR element is assumed as the geomagnetic sensor. However, the type of the geomagnetic sensor is not limited to this, but a TMR (Tunneling Magnetoresistive) element, MR
Magnetoresistive elements such as (Magnetoresistive) elements, Hall elements, MI (Magneto Impeda)
nce) Any element, flux gate sensor, etc. may be used.
In particular, an element such as a Hall element that has a severe temperature change can be used to correct an offset change due to temperature. An element that is easily magnetized, such as an MI element, is effective as means for removing the influence of the element itself.

次に、本発明の第2の実施形態について説明する。
この第2の実施形態における携帯電話機のブロック構成は第1の実施形態と同一である
が、制御部10のオフセットのキャリブレーションの処理が第1の実施形態と異なってい
る。以下、図面を参照して、本実施形態について説明する。
Next, a second embodiment of the present invention will be described.
The block configuration of the mobile phone in the second embodiment is the same as that of the first embodiment, but the offset calibration process of the control unit 10 is different from that of the first embodiment. Hereinafter, this embodiment will be described with reference to the drawings.

図17に示すように、先ず、ステップSb1〜Sb2の処置が行われる。この処理は、
図13に示すステップSa1〜Sa2の処理と同じである。次に、制御部10は地磁気セ
ンサ30から測定データを読み込む(ステップSb3)(データ読み出し手段)。(ステ
ップSb3)(データ読み出し手段)。次に、ステップSb3において地磁気センサ30
から読み出された現在の測定データと、既に読み込まれている一つ前の測定データとの座
標上における距離が所定値以上であるかどうかを判定することにより、RAM14に格納
すべきデータであるか否かが判断される(ステップSb4)(データ格納判定手段)。判
断の方法については後述する。判断が「YES」であった場合、ステップSb5に移行し
、現在のデータをRAM14に格納する(ステップSb6)(データ格納手段)。に、R
AM14に格納されたデータの数が、予め定められた数に達したか否かが判断される。判
断が「NO」であった場合、まだ、RAM14に格納されたデータの数が予め定められた
数に達していないので、0.1sec.だけ待った(ステップSb7)後に、ステップS
b2に戻り、以下のステップSb2〜Sb6の動作を繰り返す。
As shown in FIG. 17, first, steps Sb1 and Sb2 are performed. This process is
This is the same as the processing of steps Sa1 to Sa2 shown in FIG. Next, the control part 10 reads measurement data from the geomagnetic sensor 30 (step Sb3) (data reading means). (Step Sb3) (data reading means). Next, in Step Sb3, the geomagnetic sensor 30
The data to be stored in the RAM 14 by determining whether the distance on the coordinates between the current measurement data read from the previous measurement data and the previous measurement data already read is greater than or equal to a predetermined value. Is determined (step Sb4) (data storage determination means). The determination method will be described later. If the determination is “YES”, the process proceeds to step Sb5, and the current data is stored in the RAM 14 (step Sb6) (data storage means). And R
It is determined whether the number of data stored in the AM 14 has reached a predetermined number. If the determination is “NO”, since the number of data stored in the RAM 14 has not yet reached a predetermined number, 0.1 sec. After waiting (step Sb7)
Returning to b2, the operations of the following steps Sb2 to Sb6 are repeated.

一方、ステップSb4における判断が、「NO」であった場合、ステップSb7に移行
し、0.1sec.だけ待った後に、ステップSb2に戻り、以下のステップSb2〜S
b6の動作を繰り返す。
On the other hand, if the determination in step Sb4 is “NO”, the process proceeds to step Sb7, and 0.1 sec. After waiting for only step Sb2, the following steps Sb2 to Sb are performed.
Repeat the operation of b6.

一方、ステップSb6における判断が「YES」であった場合、ステップSb8に移行
し、ステップSb8〜Sb10の処置が行われる。この処理は、図13に示すステップS
a7〜Sa9の処理と同じである。以上の処理にて、携帯電話機の地磁気センサ30のオ
フセットのキャリブレーションの動作が終了する。
On the other hand, if the determination in step Sb6 is “YES”, the process proceeds to step Sb8, and steps Sb8 to Sb10 are performed. This process is performed in step S shown in FIG.
This is the same as the processing of a7 to Sa9. With the above processing, the offset calibration operation of the geomagnetic sensor 30 of the mobile phone is completed.

次に、ステップSb3において地磁気センサ30から読み出されたデータがRAM14
に格納すべきデータであるか否かを、ステップSb4において判断する方法について説明
する。ここで、格納判定するデータをX、Y、データX、Yを採取する直前にRAM14
に格納されたデータをXp、Ypとして、以下の条件を満たした場合のみ、データX、Yを
RAM14に格納する。
Next, the data read from the geomagnetic sensor 30 in step Sb3 is stored in the RAM 14.
A method for determining whether or not the data is to be stored in step Sb4 will be described. Here, the RAM 14 immediately before collecting the data to be stored as X, Y and data X, Y.
The data X and Y are stored in the RAM 14 only when the following conditions are satisfied, with the data stored in X being Xp and Yp.

Figure 2008298796
Figure 2008298796

以上のように、本実施形態によれば、次の様な問題を回避することができる。すなわち
、第1の実施形態において、ユーザが携帯電話機を殆ど動かしていない場合にデータを取
り込んである一点の近傍にデータが集中したり、ユーザが携帯電話機を動かすスピードが
均一でなく、データの密度にむらができる問題を回避することができる。
As described above, according to the present embodiment, the following problems can be avoided. That is, in the first embodiment, when the user hardly moves the mobile phone, the data is concentrated near one point where the data is taken in, the speed at which the user moves the mobile phone is not uniform, and the data density The problem of unevenness can be avoided.

ここで、測定ポイントの数は、測定範囲(地磁気センサの回転角度)が90°のときに
おいて、20ポイント以上あることが望ましく、それ故に、座標上における測定ポイント
間の距離は、方位円半径の1/10より小さいことが必要となる。以上のことより、地磁
気センサ30からデータを読み出す処理を、ある時間間隔毎に行わずに、測定ポイント間
の距離を方位円半径の1/10より小さくするような回転角度にて地磁気センサ30を回
すことによって行ってもよい。
Here, the number of measurement points is desirably 20 points or more when the measurement range (rotation angle of the geomagnetic sensor) is 90 °. Therefore, the distance between the measurement points on the coordinates is the azimuth radius. It is necessary to be smaller than 1/10. As described above, the process of reading data from the geomagnetic sensor 30 is not performed every certain time interval, and the geomagnetic sensor 30 is rotated at such a rotation angle that the distance between measurement points is made smaller than 1/10 of the azimuth radius. It may be done by turning.

次に、本発明の第3の実施形態について説明する。
この第2の実施形態における携帯電話機のブロック構成は第1〜第2の実施形態と同一
であるが、制御部10のオフセットのキャリブレーションの処理が第1〜第2の実施形態
を組み合わせたものとなっている。以下、本実施形態について説明する。尚、フローチャ
ートについては、図13および図17を組み合わせたものとし、図示を省略する。
Next, a third embodiment of the present invention will be described.
The block configuration of the mobile phone in the second embodiment is the same as that in the first to second embodiments, but the offset calibration processing of the control unit 10 is a combination of the first and second embodiments. It has become. Hereinafter, this embodiment will be described. In addition, about a flowchart, FIG. 13 and FIG. 17 shall be combined and illustration is abbreviate | omitted.

このとき、図13におけるステップSa2〜Sa6の処理と図17におけるステップS
b2からSb7の処理を並行して行い、いずれか一方の処理によってRAM14に格納さ
れるデータ数が予め定められた数を超えたときに、ステップSa7もしくステップSb8
におけるオフセット推定を行う。ただし、所定の数は図13の処理によるデータ数を図1
7の処理によるデータ数をより大きく採る必要がある。例えば、前者を後者の10倍採る
ことが望ましい。
At this time, steps Sa2 to Sa6 in FIG. 13 and step S in FIG.
When the process from b2 to Sb7 is performed in parallel and the number of data stored in the RAM 14 by any one process exceeds a predetermined number, step Sa7 or step Sb8 is performed.
Perform offset estimation at. However, the predetermined number is the number of data obtained by the processing of FIG.
It is necessary to increase the number of data by the processing of No. 7. For example, it is desirable to take the former 10 times the latter.

以上のように、本実施形態によれば、次の様な問題を回避することができる。すなわち
、第2の実施形態において、図16に示すように、二軸の地磁気センサを備えた携帯電話
機を、地磁気に対して垂直に振る場合に、地磁気センサの測定値が一定値以上変化しない
ために、携帯電話機が振られていることを捕捉できず、いつまで経ってもRAM14にデ
ータが格納されないという問題を回避することができる。
As described above, according to the present embodiment, the following problems can be avoided. That is, in the second embodiment, as shown in FIG. 16, when a mobile phone having a biaxial geomagnetic sensor is shaken perpendicular to the geomagnetism, the measured value of the geomagnetic sensor does not change more than a certain value. In addition, it is not possible to capture that the mobile phone is being shaken, and the problem that data is not stored in the RAM 14 can be avoided.

次に、本発明の第4の実施形態について説明する。
この第4の実施形態における携帯電話機のブロック構成(図18)および動作は、第1
〜第3の実施形態と類似しているが、構成要素として、傾きセンサ81が追加されている
。また、制御部10のオフセットのキャリブレーションの処理が第2の実施形態と一部異
なっている。以下、図面を参照して、本実施形態について説明する。
Next, a fourth embodiment of the present invention will be described.
The block configuration (FIG. 18) and operation of the mobile phone according to the fourth embodiment are as follows.
Although similar to the third embodiment, a tilt sensor 81 is added as a component. Further, the offset calibration process of the control unit 10 is partially different from that of the second embodiment. Hereinafter, this embodiment will be described with reference to the drawings.

図19に示すように、本実施形態に係る携帯電話機は、傾きセンサ81が取り付けられ
ている。傾きセンサ81の例として、例えば、地磁気センサ30に隣接して取り付けられ
て、固定電極と可動電極が一定の間隔を置いて対向し、傾きセンサ81が傾くことにより
可動電極と固定電極との間隔が変化して、それらにより形成される容量値が変化する、容
量変化型のセンサがある。
As shown in FIG. 19, a tilt sensor 81 is attached to the mobile phone according to the present embodiment. As an example of the tilt sensor 81, for example, it is attached adjacent to the geomagnetic sensor 30, the fixed electrode and the movable electrode face each other with a certain interval, and the tilt sensor 81 is tilted so that the distance between the movable electrode and the fixed electrode is increased. There is a capacitance change type sensor in which the capacitance value formed by these changes.

次に、本実施形態による携帯電話機の地磁気センサ30のオフセットのキャリブレーシ
ョンの動作を図20に示すフローチャートを参照して説明する。尚、本実施形態における
携帯電話機の地磁気センサ30のオフセットのキャリブレーションの動作は、ステップS
c3以外(ステップSc1〜Sc2、ステップSc4〜Sc10)が、第2の実施形態に
おける、ステップSb1〜Sb2、ステップSb4〜Sb10と同一であるので、相違点
のみ説明する。
Next, the offset calibration operation of the geomagnetic sensor 30 of the mobile phone according to the present embodiment will be described with reference to the flowchart shown in FIG. Note that the offset calibration operation of the geomagnetic sensor 30 of the mobile phone in this embodiment is performed in step S
Since steps other than c3 (steps Sc1 to Sc2, steps Sc4 to Sc10) are the same as steps Sb1 to Sb2 and steps Sb4 to Sb10 in the second embodiment, only the differences will be described.

すなわち、ステップSc3において、制御部10は、地磁気センサ30による地磁気の
検出結果のみならず、傾きセンサ81による傾きの検出結果をも一定の時間をおいて入力
し、傾きセンサ81によって検出された傾きデータと前回検出された傾きデータとの差分
値を算出し、算出された差分値が所定値以上である場合に現在の測定データをRAM14
に取り込む。
That is, in step Sc3, the control unit 10 inputs not only the geomagnetism detection result by the geomagnetic sensor 30 but also the tilt detection result by the tilt sensor 81 at a certain time, and the tilt detected by the tilt sensor 81 is input. A difference value between the data and the previously detected inclination data is calculated, and if the calculated difference value is equal to or greater than a predetermined value, the current measurement data is stored in the RAM 14.
Into.

以上のように、本実施形態によれば、次の様な問題を回避することができる。すなわち
、地磁気が地面に対して垂直に走っている場合以外は、第2の実施形態において、二軸の
地磁気センサを備えた携帯電話機を、地磁気に対して垂直に振る場合に、地磁気センサの
測定値が一定値以上変化しないために、携帯電話機が振られていることを認識できず、い
つまで経ってもRAM14にデータが格納されないという問題を、傾きセンサ81によっ
て携帯電話機が振られていることを認識することによって回避することができる。また、
データ密度もユーザが振るスピードに依存することなく、ユーザに振られた範囲にて均一
なものとすることができる。また、傾きセンサ81の検出結果は、方位表示における傾き
補正にも活用することができる。
As described above, according to the present embodiment, the following problems can be avoided. In other words, except when the geomagnetism runs perpendicular to the ground, in the second embodiment, when the mobile phone equipped with the biaxial geomagnetic sensor is shaken perpendicular to the geomagnetism, the measurement of the geomagnetic sensor is performed. Since the value does not change more than a certain value, it cannot be recognized that the mobile phone is being shaken, and the problem that the data is not stored in the RAM 14 indefinitely is that the mobile phone is being shaken by the tilt sensor 81. It can be avoided by recognizing. Also,
The data density can also be made uniform in the range swung by the user without depending on the speed swung by the user. The detection result of the tilt sensor 81 can also be used for tilt correction in the azimuth display.

尚、本実施形態においては、傾きセンサ81として、容量変化型センサを想定したが、
傾きセンサの種類はこれに限定されず、どんなものでもよい。
In the present embodiment, a capacitance change type sensor is assumed as the tilt sensor 81.
The type of tilt sensor is not limited to this, and any type may be used.

また、推定されたオフセットが有効でないと判断された場合、表示部18a、または1
8bにその旨を表示させるようにしてもよい。
When it is determined that the estimated offset is not valid, the display unit 18a or 1
You may make it display that in 8b.

また、推定されたオフセットが有効でないと判断されたことが表示された後に、特定の
キー操作によって、オフセットのキャリブレーションを再び行えるようにしてもよい。
Further, after displaying that it is determined that the estimated offset is not valid, the offset calibration may be performed again by a specific key operation.

また、オフセットのキャリブレーションを再び行う場合、新たに測定された測定データ
とRAM14に格納されている測定データとを比較して、適正なデータのみをRAM14
に格納するようにするのが望ましい。例えば、新たに測定された測定データとRAM14
に格納されている測定データとを、それぞれ、オフセット計測値との距離を求めて、該距
離が方位円の平均半径に近い方のデータをRAM14に格納するのが望ましい。
Further, when the offset calibration is performed again, the newly measured measurement data is compared with the measurement data stored in the RAM 14, and only proper data is stored in the RAM 14.
It is desirable to store in. For example, the newly measured measurement data and the RAM 14
It is desirable to obtain the distance between the measured data stored in each of the measured data and the offset measurement value, and store the data having the distance closer to the average radius of the azimuth circle in the RAM 14.

以上、本発明の実施形態について図面を参照して詳述したが、具体的な構成はこの実施
形態に限られるものではなく、本発明の要旨を逸脱しない範囲での設計変更も含まれる。
As mentioned above, although embodiment of this invention was explained in full detail with reference to drawings, the concrete structure is not restricted to this embodiment, The design change in the range which does not deviate from the summary of this invention is also included.

本発明の第1の実施形態における携帯電話機の構成を示すブロック図である。It is a block diagram which shows the structure of the mobile telephone in the 1st Embodiment of this invention. 本発明の第1〜第3の実施形態における携帯電話機の外観を示す図である。It is a figure which shows the external appearance of the mobile telephone in the 1st-3rd embodiment of this invention. 本発明の第1〜第4の実施形態における地磁気センサ30の概略平面図である。It is a schematic plan view of the geomagnetic sensor 30 in the 1st-4th embodiment of this invention. 図3における地磁気センサ30のGMR素子31およびコイル41の部分拡大平面図である。FIG. 4 is a partially enlarged plan view of a GMR element 31 and a coil 41 of the geomagnetic sensor 30 in FIG. 3. 図3におけるGMR素子31の平面図である。FIG. 4 is a plan view of the GMR element 31 in FIG. 3. 図4の3−3線に沿った平面にてGMR素子31およびコイル41を切断した概略断面図である。It is the schematic sectional drawing which cut | disconnected the GMR element 31 and the coil 41 in the plane along the 3-3 line of FIG. 図4におけるGMR素子31のスピンバルブ膜構成を示す図である。FIG. 5 is a diagram showing a spin valve film configuration of the GMR element 31 in FIG. 4. 図4におけるGMR素子31の外部磁界に対する抵抗値の変化を示したグラフである。It is the graph which showed the change of the resistance value with respect to the external magnetic field of the GMR element 31 in FIG. 図4におけるGMR素子31および同構造のGMR素子32〜34を備えるX軸方向の地磁気センサの等価回路図である。FIG. 5 is an equivalent circuit diagram of a geomagnetic sensor in the X-axis direction including the GMR element 31 in FIG. 4 and GMR elements 32 to 34 having the same structure. 図9におけるX軸方向の地磁気センサのX軸方向に変化する外部磁界およびY軸方向に変化する磁界に対する出力電圧の変化を示したグラフである。10 is a graph showing changes in output voltage with respect to an external magnetic field changing in the X axis direction and a magnetic field changing in the Y axis direction of the geomagnetic sensor in the X axis direction in FIG. 9. 同実施形態におけるX軸方向の地磁気センサおよびY軸方向の地磁気センサの方位に対する出力を示したグラフである。It is the graph which showed the output with respect to the direction of the geomagnetic sensor of the X-axis direction in the same embodiment, and the geomagnetic sensor of the Y-axis direction. 同実施形態における携帯電話機を、例えば、水平面のような、単一面上にて振る様子を示した図である。It is the figure which showed a mode that the mobile telephone in the embodiment was shaken on a single surface like a horizontal surface, for example. 同実施形態における携帯電話機内の地磁気センサ30のオフセットのキャリブレーションの動作を示すフローチャートである。6 is a flowchart showing an offset calibration operation of the geomagnetic sensor 30 in the mobile phone according to the embodiment. 同実施形態における3軸の地磁気センサを備えた携帯電話機を、前後に振る様子を示した図である。It is the figure which showed a mode that the mobile telephone provided with the triaxial geomagnetic sensor in the same embodiment was shaken back and forth. 同実施形態における3軸の地磁気センサを備えた携帯電話機を、地磁気と垂直に振る様子を示した図である。It is the figure which showed a mode that the mobile telephone provided with the triaxial geomagnetic sensor in the same embodiment was shaken perpendicularly to geomagnetism. 同実施形態における二軸の地磁気センサを備えた携帯電話機を、地磁気と垂直に振る様子を示した図である。It is the figure which showed a mode that the mobile telephone provided with the biaxial geomagnetic sensor in the same embodiment was shaken perpendicularly to geomagnetism. 本発明の第2の実施形態における携帯電話機内の地磁気センサ30のオフセットのキャリブレーションの動作を示すフローチャートである。It is a flowchart which shows the operation | movement of the calibration of the offset of the geomagnetic sensor 30 in the mobile telephone in the 2nd Embodiment of this invention. 本発明の第4の実施形態における携帯電話機の構成を示すブロック図である。It is a block diagram which shows the structure of the mobile telephone in the 4th Embodiment of this invention. 同実施形態における携帯電話機の外観を示す図である。It is a figure which shows the external appearance of the mobile telephone in the same embodiment. 同実施形態における携帯電話機内の地磁気センサ30のオフセットのキャリブレーションの動作を示すフローチャートである。6 is a flowchart showing an offset calibration operation of the geomagnetic sensor 30 in the mobile phone according to the embodiment. 従来における地磁気センサの検出値によって描かれる方位円を示す図である。It is a figure which shows the azimuth | direction circle drawn by the detection value of the conventional geomagnetic sensor.

符号の説明Explanation of symbols

1、2・・・筐体、3・・・開始キー、4・・・終了キー、5・・・テンキー、7・・・
リダイアルキー、8・・・RF(Radio Frequency)アンテナ、10・・・制御部(方位
データ演算装置)、12・・・ROM(Read Only Memory)、14・・・RAM(Random
Access Memory)(第1の記憶手段)(第2の記憶手段)、18a、18b・・・表示部
、20・・・キー入力部、21・・・切換スイッチ、22・・・変復調部、23・・・C
DMA(Code Division Multiple Access)部、24・・・RF部、27・・・マイク
、28・・・着信用スピーカ、29・・・音声処理部、30・・・地磁気センサ、30a
・・・基板、31〜38・・・GMR(Giant Magneto Resistive)素子、31a・・
・幅狭帯状部、31b・・・バイアス磁石膜(硬質強磁性体薄膜層)、31−1・・・コ
バルト(Co)ジルコニウム(Zr)ニオブ(Nb)アモルファス磁性層、31−2・・
・ニッケル(Ni)鉄(Fe)磁性層、31−3、5・・・CoFe磁性層、31−4・
・・銅(Cu)層、31−6・・・反強磁性膜((Pt)マンガン(Mn)層)、31−
7・・・チタン(Ti)層、41〜48・・・コイル、51〜58・・・駆動回路、60
・・・温度センサ、71・・・GPS(Global Positioning System)受信部、72・
・・GPSアンテナ、80・・・加速度センサ、81・・・傾きセンサ、90・・・バス
ライン、C・・・キャッピング層、F・・・フリー層(自由層、自由磁化層)、P・・・
ピンド層(固着層)、S・・・スペーサ層、SV・・・スピンバルブ膜
1, 2 ... casing, 3 ... start key, 4 ... end key, 5 ... numeric keypad, 7 ...
Redial key, 8 ... RF (Radio Frequency) antenna, 10 ... Control unit (azimuth data calculation device), 12 ... ROM (Read Only Memory), 14 ... RAM (Random)
(Access Memory) (first storage means) (second storage means), 18a, 18b ... display section, 20 ... key input section, 21 ... changeover switch, 22 ... modulation / demodulation section, 23 ... C
DMA (Code Division Multiple Access) section, 24... RF section, 27... Microphone, 28... Incoming call speaker, 29.
... Substrate, 31-38 ... GMR (Giant Magneto Resistive) element, 31a
Narrow strip portion 31b Bias magnet film (hard ferromagnetic thin film layer) 31-1 Cobalt (Co) zirconium (Zr) niobium (Nb) amorphous magnetic layer 31-2
Nickel (Ni) iron (Fe) magnetic layer, 31-3, 5 ... CoFe magnetic layer, 31-4
..Copper (Cu) layer, 31-6... Antiferromagnetic film ((Pt) manganese (Mn) layer), 31-
7 ... Titanium (Ti) layer, 41-48 ... coil, 51-58 ... drive circuit, 60
... Temperature sensor, 71 ... GPS (Global Positioning System) receiver, 72
..GPS antenna, 80 ... acceleration sensor, 81 ... tilt sensor, 90 ... bus line, C ... capping layer, F ... free layer (free layer, free magnetic layer), P・ ・
Pinned layer (fixed layer), S ... spacer layer, SV ... spin valve film

Claims (9)

二軸又は三軸の感度方向を有する地磁気センサと、傾きセンサと、前記地磁気センサの測定データと前記傾きセンサの傾斜角データとを記憶する第1の記憶手段と、前記地磁気センサの着磁によるオフセットを補正する補正手段とを搭載した携帯情報端末における地磁気センサの補正方法であって、
所定の時間間隔で前記地磁気センサの測定データと前記傾きセンサの傾斜角データとを読み出す第1のステップと、
ある時刻における現在の前記傾斜角データと当該時刻の直前に前記第1の記憶手段で記憶された過去の前記傾斜角データとの差分値が所定値以上である場合に、前記現在の傾斜角データと当該傾斜角データと同時に読み出した前記地磁気センサの測定データとを前記第1の記憶手段に記憶する第2のステップと、
前記第1および第2のステップを繰り返し、前記地磁気センサの測定データと前記傾きセンサの傾斜角データとを蓄積する測定データ蓄積ステップと、
前記蓄積した地磁気センサの測定データに基づいて、オフセット計測値を推定するステップと、
を備えることを特徴とする地磁気センサの補正方法。
By a geomagnetic sensor having a biaxial or triaxial sensitivity direction, an inclination sensor, first storage means for storing measurement data of the geomagnetic sensor and inclination angle data of the inclination sensor, and magnetization of the geomagnetic sensor A correction method for a geomagnetic sensor in a portable information terminal equipped with a correction means for correcting an offset,
A first step of reading measurement data of the geomagnetic sensor and tilt angle data of the tilt sensor at predetermined time intervals;
When the difference value between the current inclination angle data at a certain time and the previous inclination angle data stored in the first storage means immediately before the time is a predetermined value or more, the current inclination angle data And a second step of storing the measurement data of the geomagnetic sensor read simultaneously with the tilt angle data in the first storage means,
A measurement data storage step of repeating the first and second steps to store the measurement data of the geomagnetic sensor and the tilt angle data of the tilt sensor;
Estimating an offset measurement value based on the accumulated measurement data of the geomagnetic sensor;
A correction method for a geomagnetic sensor, comprising:
前記蓄積した地磁気センサの測定データと前記推定されたオフセット計測値との座標上における距離をそれぞれ算出し、さらに、算出された各距離の平均値を算出する平均値算出ステップと、
算出された前記各距離の個々の値と前記各距離の平均値に基づいて標準偏差を算出するステップと、
算出された標準偏差によって前記オフセット計測値の有効性を判定する有効性判定ステップと、
を備えることを特徴とする請求項1に記載の地磁気センサの補正方法。
Calculating a distance on the coordinates of the accumulated measurement data of the geomagnetic sensor and the estimated offset measurement value, and further calculating an average value calculating an average value of each calculated distance;
Calculating a standard deviation based on the calculated individual value of each distance and the average value of each distance;
An effectiveness determination step of determining the effectiveness of the offset measurement value based on the calculated standard deviation;
The correction method of the geomagnetic sensor of Claim 1 characterized by the above-mentioned.
前記有効性判定ステップにおいて前記オフセット計測値が有効と判断された場合、該オフセット計測値を第2の記憶手段に格納するステップを備えることを特徴とする請求項2に記載の地磁気センサの補正方法。   3. The method of correcting a geomagnetic sensor according to claim 2, further comprising a step of storing the offset measurement value in a second storage means when the offset measurement value is determined to be valid in the validity determination step. . 前記有効性判定ステップにおいて前記オフセット計測値が有効でないと判断された場合、ユーザにその旨を報知するステップを有することを特徴とする請求項2または請求項3に記載の地磁気センサの補正方法。   4. The method of correcting a geomagnetic sensor according to claim 2, further comprising a step of notifying a user of the fact that the offset measurement value is determined to be invalid in the validity determination step. ユーザに前記オフセット計測値が有効でない旨の報知がなされた後にユーザが前記オフセット計測値の補正を希望するかを問うステップを有し、
このステップを実施後に再びオフセット計測値の推定を行う
ことを特徴とする請求項4に記載の地磁気センサの補正方法。
After the user is notified that the offset measurement value is not valid, the user asks whether the user wishes to correct the offset measurement value;
The method for correcting a geomagnetic sensor according to claim 4, wherein the offset measurement value is estimated again after performing this step.
二軸又は三軸の感度方向を有する地磁気センサと、傾きセンサと、前記地磁気センサの着磁によるオフセットを補正する補正手段と、を備えた方位データ演算装置であって、
前記補正手段が、
所定の時間間隔で前記地磁気センサの測定データと前記傾きセンサの傾斜角データとを読み出す手段と、
ある時刻に読み出された現在の前記傾斜角データと当該時刻の直前に読み出された過去の前記傾斜角データとの差分値が所定値以上である場合に、前記現在の傾斜角データと当該傾斜角データと同時に読み出された前記地磁気センサの測定データとを記憶する第1の記憶手段と、
前記第1の記憶手段に記憶された複数の前記地磁気センサの測定データに基づいて、オフセット計測値を推定するオフセット推定手段と、
を備えることを特徴とする方位データ演算装置。
A azimuth data calculation device comprising a geomagnetic sensor having a biaxial or triaxial sensitivity direction, an inclination sensor, and a correction means for correcting an offset due to magnetization of the geomagnetic sensor,
The correction means is
Means for reading measurement data of the geomagnetic sensor and inclination angle data of the inclination sensor at predetermined time intervals;
When the difference value between the current inclination angle data read at a certain time and the past inclination angle data read immediately before the time is a predetermined value or more, the current inclination angle data and the First storage means for storing measurement data of the geomagnetic sensor read simultaneously with the tilt angle data;
Offset estimation means for estimating an offset measurement value based on measurement data of the plurality of geomagnetic sensors stored in the first storage means;
An azimuth data calculation device comprising:
二軸又は三軸の感度方向を有する地磁気センサと、傾きセンサと、前記地磁気センサの着磁によるオフセットを補正する補正手段と、を備えた方位データ演算装置であって、
前記補正手段が、
所定の時間間隔で前記地磁気センサの測定データと前記傾きセンサの傾斜角データとを読み出す手段と、
ある時刻に読み出された現在の前記傾斜角データと当該時刻の直前に読み出された過去の前記傾斜角データとの差分値が所定値以上である場合に、前記現在の傾斜角データと当該傾斜角データと同時に読み出された前記地磁気センサの測定データとを記憶する第1の記憶手段と、
前記第1の記憶手段に記憶された複数の前記地磁気センサの測定データに基づいて、オフセット計測値を推定するオフセット推定手段と、
前記推定されたオフセット計測値の有効性を判定する有効性判定手段と、
を備え、
前記有効性判定手段が、
前記第1の記憶手段に記憶された複数の前記地磁気センサの測定データと前記推定されたオフセット計測値との座標上における距離をそれぞれ算出し、さらに、算出された各距離の平均値を算出する平均値算出手段と、
算出された前記各距離の個々の値と前記各距離の平均値に基づいて標準偏差を算出する標準偏差算出手段と、
前記標準偏差算出手段によって算出された標準偏差によって前記オフセット計測値の有効性を判定する判定手段と、
を備えることを特徴とする方位データ演算装置。
A azimuth data calculation device comprising a geomagnetic sensor having a biaxial or triaxial sensitivity direction, an inclination sensor, and a correction means for correcting an offset due to magnetization of the geomagnetic sensor,
The correction means is
Means for reading measurement data of the geomagnetic sensor and inclination angle data of the inclination sensor at predetermined time intervals;
When the difference value between the current inclination angle data read at a certain time and the past inclination angle data read immediately before the time is a predetermined value or more, the current inclination angle data and the First storage means for storing measurement data of the geomagnetic sensor read simultaneously with the tilt angle data;
Offset estimation means for estimating an offset measurement value based on measurement data of the plurality of geomagnetic sensors stored in the first storage means;
Effectiveness determining means for determining the effectiveness of the estimated offset measurement value;
With
The effectiveness determining means is
A distance on the coordinates between the measurement data of the plurality of geomagnetic sensors stored in the first storage means and the estimated offset measurement value is calculated, and an average value of the calculated distances is calculated. An average value calculating means;
A standard deviation calculating means for calculating a standard deviation based on the calculated individual value of each distance and the average value of each distance;
Determining means for determining the effectiveness of the offset measurement value based on the standard deviation calculated by the standard deviation calculating means;
An azimuth data calculation device comprising:
前記補正手段が、前記有効性判定手段によって前記オフセット計測値が有効と判断された場合、該オフセット計測値を格納するオフセット格納手段を備えることを特徴とする請求項7に記載の方位データ演算装置。   8. The azimuth data calculation apparatus according to claim 7, wherein the correction unit includes an offset storage unit that stores the offset measurement value when the validity determination unit determines that the offset measurement value is valid. . 請求項6から8いずれか1の項に記載の方位データ演算装置を備えたことを特徴とする携帯情報端末。   A portable information terminal comprising the azimuth data calculation device according to any one of claims 6 to 8.
JP2008222839A 2004-06-30 2008-08-29 Geomagnetic sensor correction method, azimuth data calculation device, and portable information terminal Expired - Fee Related JP4900348B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2008222839A JP4900348B2 (en) 2004-06-30 2008-08-29 Geomagnetic sensor correction method, azimuth data calculation device, and portable information terminal

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
JP2004194846 2004-06-30
JP2004194846 2004-06-30
JP2008222839A JP4900348B2 (en) 2004-06-30 2008-08-29 Geomagnetic sensor correction method, azimuth data calculation device, and portable information terminal

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP2005190749A Division JP4207929B2 (en) 2004-06-30 2005-06-29 Method for correcting geomagnetic sensor, method for measuring offset of geomagnetic sensor, azimuth data calculation device, and portable information terminal

Publications (2)

Publication Number Publication Date
JP2008298796A true JP2008298796A (en) 2008-12-11
JP4900348B2 JP4900348B2 (en) 2012-03-21

Family

ID=40172413

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2008222839A Expired - Fee Related JP4900348B2 (en) 2004-06-30 2008-08-29 Geomagnetic sensor correction method, azimuth data calculation device, and portable information terminal

Country Status (1)

Country Link
JP (1) JP4900348B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012194066A (en) * 2011-03-16 2012-10-11 Fujitsu Ltd Terminal device and geomagnetic environment determination program
KR101852189B1 (en) 2010-06-02 2018-04-25 로베르트 보쉬 게엠베하 Method for compensating a measured value offset

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH08278138A (en) * 1995-04-07 1996-10-22 Sony Corp Bearing output device
JPH08278137A (en) * 1995-04-07 1996-10-22 Sony Corp Bearing output device
JP2005207799A (en) * 2004-01-21 2005-08-04 Nec Tokin Corp Stereoscopic image display system and stereoscopic navigation system
JP2006023318A (en) * 2000-10-16 2006-01-26 Dentsu Kiko Kk Three-axis magnetic sensor, omnidirectional magnetic sensor, and azimuth measuring method using the same

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH08278138A (en) * 1995-04-07 1996-10-22 Sony Corp Bearing output device
JPH08278137A (en) * 1995-04-07 1996-10-22 Sony Corp Bearing output device
JP2006023318A (en) * 2000-10-16 2006-01-26 Dentsu Kiko Kk Three-axis magnetic sensor, omnidirectional magnetic sensor, and azimuth measuring method using the same
JP2005207799A (en) * 2004-01-21 2005-08-04 Nec Tokin Corp Stereoscopic image display system and stereoscopic navigation system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101852189B1 (en) 2010-06-02 2018-04-25 로베르트 보쉬 게엠베하 Method for compensating a measured value offset
JP2012194066A (en) * 2011-03-16 2012-10-11 Fujitsu Ltd Terminal device and geomagnetic environment determination program

Also Published As

Publication number Publication date
JP4900348B2 (en) 2012-03-21

Similar Documents

Publication Publication Date Title
KR101013288B1 (en) Method and apparatus for measuring magnetic offset of geomagnetic sensor
CN101608917B (en) Method and apparatus for measuring magnetic offset of geomagnetic sensor and portable electronic apparatus
JP4244561B2 (en) Portable electronic device with orientation measurement function
JP4034039B2 (en) mobile phone
TW503324B (en) Position data display system
EP3006896B1 (en) Three-axis digital compass
JP4207929B2 (en) Method for correcting geomagnetic sensor, method for measuring offset of geomagnetic sensor, azimuth data calculation device, and portable information terminal
US20060066295A1 (en) Control method of controlling magnetic-field sensor, control device, and mobile terminal device
CN107024673B (en) Three axis magnetometer total error scaling method based on gyroscope auxiliary
JP4900348B2 (en) Geomagnetic sensor correction method, azimuth data calculation device, and portable information terminal
JP5073252B2 (en) Calibration method for portable electronic device and geomagnetic sensor
JP2006023318A (en) Three-axis magnetic sensor, omnidirectional magnetic sensor, and azimuth measuring method using the same
JPWO2011129288A1 (en) Geomagnetic detector
JP4084036B2 (en) Magnetic sensor and orientation detection system using the magnetic sensor
JP2005221383A (en) Magnetic sensor, azimuth sensing system, portable communication terminal, magnetic encoder and magnetic sensing device
JP4316836B2 (en) Magnetic sensor
JP2004184150A (en) Magnetic detecting device, direction detection system, and portable communication terminal
JP4586596B2 (en) Program for correcting portable information terminal and geomagnetic sensor
JP4928875B2 (en) Sensor module
JP4611178B2 (en) Magnetic azimuth detection device and azimuth calculation method thereof
JP2006253411A (en) Magnetic sensor
JP4639672B2 (en) Geomagnetic sensor correction method
JP2015190900A (en) Magnetic field detection element and magnetic field detection method
JP2000131069A (en) Electronic declinometer and its azimuth angle display method
JPH09318357A (en) Three-dimensional bearing sensor

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20080829

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20110308

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20110524

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20110725

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20110816

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20111006

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20111025

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20111116

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20111206

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20111219

R150 Certificate of patent or registration of utility model

Ref document number: 4900348

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20150113

Year of fee payment: 3

LAPS Cancellation because of no payment of annual fees