JP4586596B2 - Program for correcting portable information terminal and geomagnetic sensor - Google Patents

Program for correcting portable information terminal and geomagnetic sensor Download PDF

Info

Publication number
JP4586596B2
JP4586596B2 JP2005083750A JP2005083750A JP4586596B2 JP 4586596 B2 JP4586596 B2 JP 4586596B2 JP 2005083750 A JP2005083750 A JP 2005083750A JP 2005083750 A JP2005083750 A JP 2005083750A JP 4586596 B2 JP4586596 B2 JP 4586596B2
Authority
JP
Japan
Prior art keywords
map
geomagnetic sensor
mobile phone
offset
axis
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP2005083750A
Other languages
Japanese (ja)
Other versions
JP2006266800A (en
Inventor
善政 磯崎
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Yamaha Corp
Original Assignee
Yamaha Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Yamaha Corp filed Critical Yamaha Corp
Priority to JP2005083750A priority Critical patent/JP4586596B2/en
Publication of JP2006266800A publication Critical patent/JP2006266800A/en
Application granted granted Critical
Publication of JP4586596B2 publication Critical patent/JP4586596B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明は、現在地を表示するGPS(Global Positioning System)ナビゲーション機能を搭載した携帯情報端末に係り、特に、搭載される地磁気センサのオフセットの補正を行う携帯情報端末および地磁気センサの補正用プログラムに関する。   The present invention relates to a portable information terminal equipped with a GPS (Global Positioning System) navigation function for displaying a current location, and more particularly to a portable information terminal for correcting an offset of a mounted geomagnetic sensor and a correction program for the geomagnetic sensor.

近年、地磁気を検出する地磁気センサと、地図を表示するための表示画面と、地図のDB(Data Base)とを備え、この地磁気センサによって検出された地磁気に基づいて方位測定を行う、所謂、ナビゲーション機能を有する携帯電話機、モバイル機といった、携帯情報端末が知られている。測定された方位は、地図の表示に利用される。一例として挙げると、位置検出を行うGPSシステムによって得た現在位置情報に基づいた地図を、携帯電話機の向き(方位)に合わせて表示する機能を有する携帯電話機が登場している。   2. Description of the Related Art In recent years, a so-called navigation that includes a geomagnetic sensor for detecting geomagnetism, a display screen for displaying a map, and a map DB (Data Base), and performs orientation measurement based on the geomagnetism detected by the geomagnetic sensor. Mobile information terminals such as mobile phones and mobile devices having functions are known. The measured azimuth is used to display a map. As an example, mobile phones having a function of displaying a map based on current position information obtained by a GPS system that performs position detection in accordance with the direction (direction) of the mobile phone have appeared.

ところで、従来の地磁気センサは、スピーカ等や電子部品とともに携帯電話機内部に搭載される。かかるスピーカ等から漏れる磁場や、強い外部磁場により、電子部品のパッケージ等の金属が着磁され、これから漏れる磁場が存在するため、地磁気センサはこれらの携帯電話機内部に存在する磁場をも検出してしまう。これらの磁場の影響により、かかる方位円の中心は原点からシフトする。このシフトをオフセットという。このようなオフセットがあると、地磁気センサの測定値に基づいてオフセットがないことを前提として算出した方位は、実際の方位と異なってしまう。そのため地磁気センサの測定値から該オフセットを補正する必要がある。   By the way, the conventional geomagnetic sensor is mounted inside a mobile phone together with a speaker and electronic parts. Magnetic fields leaking from such speakers and strong external magnetic fields magnetize metal such as electronic component packages, and there are magnetic fields leaking from this, so the geomagnetic sensor also detects the magnetic fields present inside these mobile phones. End up. Due to the influence of these magnetic fields, the center of the azimuth circle is shifted from the origin. This shift is called offset. If there is such an offset, the azimuth calculated on the assumption that there is no offset based on the measured value of the geomagnetic sensor will be different from the actual azimuth. Therefore, it is necessary to correct the offset from the measured value of the geomagnetic sensor.

しかし、携帯電話機内部に存在する磁場は、温度変化や経時変化によって強度や方向が変化し、上述したオフセットが変化するため、従来の地磁気センサを内部に搭載した携帯電話機においては、例えば、使用前に地磁気センサのオフセットの補正を行う必要がある。オフセットの補正は、携帯電話機を1周以上回転させつつその間磁気センサの測定を行うキャリブレーションに基づいて行うことができる。   However, the strength and direction of the magnetic field present inside the mobile phone changes due to temperature changes and changes over time, and the above-described offset changes. Therefore, in a mobile phone equipped with a conventional geomagnetic sensor, for example, before use In addition, it is necessary to correct the offset of the geomagnetic sensor. The offset can be corrected based on calibration in which the mobile phone is rotated one or more times while the magnetic sensor is measured.

ここで、感度方向として水平面内の二軸(X軸、Y軸方向)をもつ地磁気センサを搭載した携帯電話機を一定の磁場の下、水平に保ったままゆっくりと等速度にて1周以上回転させて、地磁気センサの出力をモニタするとある円を描く。この円を方位円という。このような方位円は、理想的にはX軸、Y軸の交差する原点を中心とし、所定の半径を有するものとなる。   Here, a mobile phone equipped with a geomagnetic sensor having two axes in the horizontal plane (X-axis and Y-axis directions) as the sensitivity direction is slowly rotated at a constant speed for one round or more while keeping it horizontal under a certain magnetic field. When the output of the geomagnetic sensor is monitored, a circle is drawn. This circle is called a bearing circle. Such an azimuth circle ideally has a predetermined radius centered at the origin where the X and Y axes intersect.

この間における、X軸、Y軸方向のそれぞれの地磁気センサの検出値の最大値から最小値を減算して2で割った値をそれぞれの地磁気センサの感度情報とし、最大値と最小値とを加算して2で割った値をオフセット情報として、X軸、Y軸方向の地磁気センサの検出結果から該オフセットを除去することにより、地磁気センサの測定値を補正して、前述した方位測定に使用する測定値を得ている。   The value obtained by subtracting the minimum value from the maximum value of the detection value of each geomagnetic sensor in the X-axis and Y-axis directions and dividing by 2 is used as the sensitivity information of each geomagnetic sensor, and the maximum value and the minimum value are added. Then, the value divided by 2 is used as offset information, and the offset is removed from the detection result of the geomagnetic sensor in the X-axis and Y-axis directions, thereby correcting the measured value of the geomagnetic sensor and using it for the above-described azimuth measurement. The measured value is obtained.

しかしながら、上述した従来の地磁気センサの補正方法を用いる携帯電話機においては、地磁気センサの検出値の最大値、最小値を求めるため、携帯電話機を平面上において1周以上回転させる必要がある。しかも、携帯電話機の回転速度が速すぎると、真の最大値、最小値を検出できなくなる場合が発生し、逆に遅すぎると、読み取りデータ数が膨大になり、メモリがオーバフローする等、回転速度が一定の範囲から外れた場合に、補正の精度が劣化したり、補正ができなくなってしまい、該携帯電話機の回転速度を微調整しつつ回転させなくてはならないというという問題があった。また、上述した携帯電話機において、ユーザからみると、該携帯電話機を回転させることによって、キャリブレーションが本当にうまくいったかを確認し難いという問題もあった。   However, in the mobile phone using the above-described conventional correction method of the geomagnetic sensor, it is necessary to rotate the mobile phone one or more times on the plane in order to obtain the maximum value and the minimum value of the detection value of the geomagnetic sensor. Moreover, if the rotation speed of the mobile phone is too fast, the true maximum and minimum values may not be detected. Conversely, if the rotation speed is too slow, the number of read data becomes enormous and the memory overflows. When the value of the mobile phone is out of a certain range, there is a problem that the accuracy of correction deteriorates or cannot be corrected, and the mobile phone must be rotated while finely adjusting the rotation speed. Further, in the above-described mobile phone, there is a problem that it is difficult to confirm whether the calibration is really successful by rotating the mobile phone from the viewpoint of the user.

こうしたことに対応して、例えば、特許文献1には、3軸(X軸、Y軸、Z軸方向)の磁気センサを用いて、該磁気センサのX軸およびY軸方向についてのキャリブレーンョン動作中にZ軸周りの回転角を測定し、該回転角が90°から180°の間に分布したり、90°と180°との間を往復するような動作が起きた場合、該磁気センサによる測定を実行し、該測定値により補正されたオフセット計測値によって該磁気センサの測定値を補正する方位角計測装置が記載されている。該方位角計測装置は、上述したキャリブレーション動作の開始のときに自分が向いている方向を上にして(ヘディングアップ)地図情報を画面に表示し、表示された地図情報が実際の現地の状況と一致していない場合、該地図情報が実際の現地の状況と一致するまで、ユーザに上述した回転を行わせることによりキャリブレーションを数回行う。ここで、ユーザは該地図情報が実際の現地の状況と一致したことをもってキャリブレーションを停止する。   Corresponding to this, for example, Patent Document 1 uses a three-axis (X-axis, Y-axis, Z-axis direction) magnetic sensor, and calibrates the X-axis and Y-axis directions of the magnetic sensor. When the rotation angle around the Z-axis is measured during operation and the rotation angle is distributed between 90 ° and 180 ° or reciprocates between 90 ° and 180 °, An azimuth measuring device that performs measurement by a sensor and corrects the measured value of the magnetic sensor by an offset measured value corrected by the measured value is described. The azimuth measuring device displays the map information on the screen with the direction it is facing upward (heading up) at the start of the calibration operation described above, and the displayed map information is the actual local situation. If the map information does not match, the calibration is performed several times by causing the user to perform the rotation described above until the map information matches the actual local situation. Here, the user stops the calibration when the map information matches the actual local situation.

しかし、該公報に係る発明においても、キャリブレーションを行うためには、従来と同様に、該方位角計測装置を手に持って回転させるので、該方位角計測装置の回転速度を微調整することが困難であり、前述した問題を解決することはできない。
特開2004−12416号公報
However, even in the invention according to the publication, in order to perform calibration, the azimuth measuring device is rotated while being held in the hand, as in the past, so that the rotational speed of the azimuth measuring device can be finely adjusted. Cannot be solved.
JP 2004-12416 A

本発明は、上記事情を考慮してなされたもので、その目的は、本体を回転させることなく、搭載される地磁気センサのオフセットの補正を行うことができる携帯情報端末および携帯情報端末の制御装置に組み込まれる地磁気センサの補正用プログラムを提供することにある。   The present invention has been made in consideration of the above circumstances, and an object of the present invention is to provide a portable information terminal and a portable information terminal control device capable of correcting an offset of a mounted geomagnetic sensor without rotating the main body. It is intended to provide a correction program for a geomagnetic sensor incorporated in the system.

上記目的を達成するために、この発明では、以下の手段を提案している。
請求項1に係る発明は、地磁気センサと、位置情報を取得する位置情報取得手段と、地図情報を記憶する地図情報記憶手段と、前記地磁気センサの出力および前記位置情報ならびに前記地図情報に基づいて現在地における地図を表示する表示手段と、前記地図を任意の回転方向、角度に回転させる地図回転手段と、前記地図と前記現在地の景観とが一致した場合、前記地図の回転方向および角度に応じて前記地磁気センサのオフセット値を更新するキャリブレーション手段とを備えたことを特徴とする。
In order to achieve the above object, the present invention proposes the following means.
The invention according to claim 1 is based on a geomagnetic sensor, position information acquisition means for acquiring position information, map information storage means for storing map information, output of the geomagnetic sensor, the position information, and the map information. If the display means for displaying the map at the current location, the map rotation means for rotating the map to an arbitrary rotation direction and angle, and the map and the landscape of the current location match, according to the rotation direction and angle of the map And a calibration means for updating an offset value of the geomagnetic sensor.

請求項2に係る発明は、携帯情報端末の制御用コンピュータに、地磁気センサの出力および位置情報ならびに地図情報に基づいて現在地における地図を表示するステップと、前記地図を任意の回転方向、角度に回転させるステップと、前記地図と前記現在地の景観とが一致した場合、前記地図の回転方向および角度に応じて前記地磁気センサのオフセット値を更新するステップとを実行させるための地磁気センサの補正用プログラムを提供する。
これらの発明によれば、従来のように携帯情報端末自体を回転させる代わりに、携帯情報端末に表示された地図が回転した量に基づいて、オフセット値のキャリブレーションが行われる。
The invention according to claim 2 is a step of displaying a map at the current location on the control computer of the portable information terminal based on the output of the geomagnetic sensor, the position information, and the map information, and rotating the map in an arbitrary rotation direction and angle. And a program for correcting the geomagnetic sensor for executing the step of updating the offset value of the geomagnetic sensor in accordance with the rotation direction and angle of the map when the map and the landscape of the current location match. provide.
According to these inventions, the offset value is calibrated based on the amount of rotation of the map displayed on the portable information terminal instead of rotating the portable information terminal itself as in the prior art.

本発明によれば、地図を現在地の景観と一致するように、回転速度を微調整しつつ回転させることにより、従来のように携帯情報端末自体を回転させるのに比して、キャリブレーションを簡単な操作によって行うことができる効果がある。また、地図が現在地の景観と一致したことをもって、キャリブレーションが本当にうまくいったことを確認し易くなる効果がある。   According to the present invention, by rotating the map while finely adjusting the rotation speed so as to match the scenery of the current location, the calibration can be performed more easily than when the portable information terminal itself is rotated. There is an effect that can be performed by simple operation. In addition, there is an effect that it is easy to confirm that the calibration is really successful when the map matches the landscape of the current location.

以下、図面を参照し、この発明の一実施形態について説明する。
図2に示すように、携帯電話機MPは、操作キー類を有する筐体1と、両面に液晶表示部を有する筐体2とから構成される。尚、図2(a)に示すように、筐体1の短手の辺に沿うX軸および筐体1の長手の辺に沿うY軸ならびに筐体1の厚み方向の辺に沿い、鉛直上向きに伸びるZ軸を想定する。尚、X軸およびY軸ならびにZ軸は互いに直交する。
Hereinafter, an embodiment of the present invention will be described with reference to the drawings.
As shown in FIG. 2, the mobile phone MP includes a casing 1 having operation keys and a casing 2 having liquid crystal display portions on both sides. 2A, the X axis along the short side of the housing 1, the Y axis along the long side of the housing 1, and the thickness direction side of the housing 1 are vertically upward. Assuming a Z-axis extending to The X axis, the Y axis, and the Z axis are orthogonal to each other.

筐体1および筐体2は、各筐体の短辺において連結部を介して連結され、一方の筐体が他方の筐体に対して回動可能なように構成されており、2つの筐体が筐体の厚み方向に沿って重なった状態となるように折り畳むことができる。   The casing 1 and the casing 2 are connected to each other through a connecting portion on the short side of each casing, and are configured so that one casing can rotate with respect to the other casing. The body can be folded so as to be overlapped along the thickness direction of the housing.

ここで、携帯電話機MPの各筐体の各面を以下のように定義する。すなわち、筐体1の操作キー類を有する面を操作面とし、操作面と反対の面を背面とする。また、筐体2の面のうち、表示部18a(表示手段)が設けられている面を主表示面とし、主表示面と反対の面を表の面とする。   Here, each surface of each housing of the mobile phone MP 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. Of the surfaces of the housing 2, the surface on which the display unit 18a (display means) is provided is the main display surface, and the surface opposite to the main display surface is the front surface.

また、この携帯電話機MPは、GPSによる測位機能を有すると共に、CDMA(Code Division Multiple Access:符号分割多元接続)方式の通信機能を有している。   The mobile phone MP has a positioning function by GPS and a communication function of a CDMA (Code Division Multiple Access) system.

図1において、同実施形態による携帯電話機MPは、RFアンテナ8と、表示部18a、18bと、マイク27と、受話音用スピーカ28と、地磁気センサモジュール30(地磁気センサ)と、着信音用スピーカ41と、CPU(Central Processing Unit)101(表示手段)(キャリブレーション手段)と、ROM(Read Only Memory)102(地図情報記憶手段)と、RAM(Random Access Memory)103と、RF(Radio Frequency)送受信部104と、キー入力部105と、音声処理部107と、GPS受信部108(位置情報取得手段)と、音源部109と、GPSアンテナ110(位置情報取得手段)と、バスライン120とから構成される。尚、上述した携帯電話機MPの構成は、従来におけるGPSを搭載した携帯電話機と同様である。   In FIG. 1, a mobile phone MP according to the embodiment includes an RF antenna 8, display units 18a and 18b, a microphone 27, a reception sound speaker 28, a geomagnetic sensor module 30 (geomagnetic sensor), and a ring tone speaker. 41, CPU (Central Processing Unit) 101 (display means) (calibration means), ROM (Read Only Memory) 102 (map information storage means), RAM (Random Access Memory) 103, and RF (Radio Frequency) From the transmission / reception unit 104, the key input unit 105, the voice processing unit 107, the GPS reception unit 108 (position information acquisition unit), the sound source unit 109, the GPS antenna 110 (position information acquisition unit), and the bus line 120. Composed. The configuration of the mobile phone MP described above is the same as that of a conventional mobile phone equipped with GPS.

RFアンテナ8がRF送受信部104に接続される。マイク27および受話音用スピーカ28が音声処理部107に接続される。着信音用スピーカ41が音源部109に接続される。GPSアンテナ110がGPS受信部108に接続される。   The RF antenna 8 is connected to the RF transceiver unit 104. The microphone 27 and the reception sound speaker 28 are connected to the sound processing unit 107. A ring tone speaker 41 is connected to the sound source unit 109. The GPS antenna 110 is connected to the GPS receiving unit 108.

RFアンテナ8は図示しない無線基地局と電波の送受信を行う。RF送受信部104は信号の送受信に係る処理を行う。このRF送受信部104は、局部発振器等を備え、受信時にRFアンテナ8から出力された受信信号に対して予め定められた周波数の局部発信信号を混合することにより、受信信号を中間周波数(IF)の受信IF信号に変換し、内部の変復調部へ出力する。該変復調部は、受信IF信号を予め定められた周波数のベースバンド信号に変換すると共に、このベースバンド信号をデジタル信号に変換し、内部のCDMA部へ出力する。該CDMA部は、および受信された信号の復号化処理を行い、変復調部から出力されたベースバンド信号を復号化する。   The RF antenna 8 transmits and receives radio waves with a radio base station (not shown). The RF transmitter / receiver 104 performs processing related to signal transmission / reception. The RF transmitter / receiver 104 includes a local oscillator or the like, and mixes a received signal output from the RF antenna 8 at the time of reception with a locally transmitted signal having a predetermined frequency, thereby converting the received signal to an intermediate frequency (IF). The received IF signal is output to an internal modulation / demodulation unit. The modem unit converts the received IF signal into a baseband signal having a predetermined frequency, converts the baseband signal into a digital signal, and outputs the digital signal to the internal CDMA unit. The CDMA unit decodes the received signal and decodes the baseband signal output from the modem unit.

また、RF送受信部104内のCDMA部は、送信用の信号を符号化してベースバンド信号に変換し、変復調部へ出力し、変復調部は、CDMA部から出力された送信用のデジタルのベースバンド信号によってIF周波数の信号の変調を行うことにより、アナログ信号に変換して、さらにRF信号へ周波数変換し、該RF信号をRFアンテナ8へ出力する。   Also, the CDMA unit in the RF transceiver unit 104 encodes a transmission signal, converts it into a baseband signal, and outputs it to the modem unit. The modem unit transmits the digital baseband for transmission output from the CDMA unit. By modulating the signal of the IF frequency with the signal, the signal is converted into an analog signal, further converted into an RF signal, and the RF signal is output to the RF antenna 8.

音声処理部107は、通話時の音声に係る処理を行う。この音声処理部107は、通話時にマイク27から出力されたアナログの音声信号をデジタル信号に変換し、送信用の信号としてRF送受信部104内のCDMA部へ出力する。また、音声処理部107は、通話時にRF送受信部104内のCDMA部によって復号化された音声データを示す信号に基づいて、着信音用スピーカ28を駆動するためのアナログの駆動信号を生成し、着信音用スピーカ28へ出力する。マイク27は、ユーザによって入力された音声に基づいた音声信号を生成し、音声処理部107へ出力する。着信音用スピーカ28は、音声処理部107から出力された信号に基づいて、通話の相手の音声を発生する。   The voice processing unit 107 performs processing related to voice during a call. The audio processing unit 107 converts an analog audio signal output from the microphone 27 during a call into a digital signal, and outputs the digital signal to the CDMA unit in the RF transmission / reception unit 104 as a transmission signal. In addition, the voice processing unit 107 generates an analog drive signal for driving the ring tone speaker 28 based on a signal indicating the voice data decoded by the CDMA unit in the RF transmission / reception unit 104 during a call. Output to the ring tone speaker 28. The microphone 27 generates an audio signal based on the audio input by the user and outputs the audio signal to the audio processing unit 107. The ring tone speaker 28 generates the voice of the other party on the basis of the signal output from the voice processing unit 107.

GPSアンテナ110は、GPS衛星から送信された電波を受信し、この電波に基づいた受信信号をGPS受信部108へ出力する。GPS受信部108はこの受信信号を復調し、受信信号に基づいて、GPS衛星の正確な時刻情報や電波の伝播時間等の情報を取得する。GPS受信部108は取得した情報に基づいて、3以上のGPS衛星までの距離を算出し、三角測量の原理により、3次元空間上の位置(緯度・経度・高度等)(位置情報)を算出する。   The GPS antenna 110 receives a radio wave transmitted from a GPS satellite and outputs a reception signal based on the radio wave to the GPS receiving unit 108. The GPS receiver 108 demodulates the received signal, and acquires accurate time information of GPS satellites and information such as radio wave propagation time based on the received signal. The GPS receiving unit 108 calculates a distance to three or more GPS satellites based on the acquired information, and calculates a position (latitude, longitude, altitude, etc.) (position information) in a three-dimensional space based on the principle of triangulation. To do.

CPU101は携帯電話機MP内部の各部を制御する。このCPU101は、RF送受信部104、音声処理部107、GPS受信部108、地磁気センサモジュール30、ROM102、RAM103、キー入力部105および表示部18a、18bと、バスライン120を介して制御信号あるいはデータの入出力を行う。   The CPU 101 controls each part inside the mobile phone MP. The CPU 101 includes control signals or data via the RF transmission / reception unit 104, the audio processing unit 107, the GPS reception unit 108, the geomagnetic sensor module 30, the ROM 102, the RAM 103, the key input unit 105 and the display units 18 a and 18 b, and the bus line 120. I / O is performed.

ROM102は、CPU101が実行する各種のプログラムを記憶する。また、出荷検査時に測定された地磁気センサモジュール30の初期特性値等を記憶する。また、実使用時において、オフセットの補正が必要であるか否かの基準となるオフセット基準データを記憶する。オフセット基準データとは、出荷検査時に測定された地磁気センサモジュール30によって測定された出力の方位円の半径をさすものとし、初期オフセット値と地磁気強度とからなる。また、ROM102は地図データのDBとしての領域を有し、該領域において地図情報を記憶する。   The ROM 102 stores various programs executed by the CPU 101. In addition, the initial characteristic value of the geomagnetic sensor module 30 measured at the time of shipping inspection is stored. Further, offset reference data serving as a reference for whether or not offset correction is necessary in actual use is stored. The offset reference data refers to the radius of the output azimuth circle measured by the geomagnetic sensor module 30 measured at the time of shipping inspection, and includes an initial offset value and a geomagnetic intensity. The ROM 102 has an area as a map data DB, and stores map information in the area.

RAM103は、CPU101によって処理されるデータ等を一時的に記憶する。また、RAM103は、後述するように、地磁気センサモジュール30のオフセット計測値および測定データをも記憶する。   The RAM 103 temporarily stores data processed by the CPU 101. The RAM 103 also stores offset measurement values and measurement data of the geomagnetic sensor module 30 as will be described later.

音源部109は、着信音用スピーカ41を備え、着信やメール受信等を、音によってユーザに報知する。また、コンテンツサーバからダウンロードしたコンテンツデータによって生成された楽音を再生する。尚、着信音用スピーカ41は図2(d)に示すように、筐体1の背面に設けられる。   The sound source unit 109 includes a ring tone speaker 41 and notifies the user of an incoming call or mail reception by sound. Also, the musical sound generated from the content data downloaded from the content server is reproduced. Note that the ring tone speaker 41 is provided on the back surface of the housing 1 as shown in FIG.

キー入力部105は、図2(a)に示すように、電話を受けるときに使用する開始キー3、電話を終了するとき、または電源のオン/オフに使用する終了キー4と、数値キーおよびコードキーからなるテンキー5と、およびリダイアルキー7と、カーソル操作用のカーソルキー9a、9b(地図回転手段)、9c、9dと、各キー操作による動作指示の確定に使用される確認ボタン10と、漢字・数字等の変換用の変換キー11等を備え、ユーザによる操作結果を示す信号をCPU101へ出力する。   As shown in FIG. 2A, the key input unit 105 includes a start key 3 used when receiving a call, an end key 4 used when ending a call or turning on / off a power, a numeric key, A numeric keypad 5 including a code key, a redial key 7, cursor keys 9a and 9b (map rotating means), 9c and 9d for operating the cursor, and a confirmation button 10 used for confirming an operation instruction by operating each key A conversion key 11 for conversion of kanji and numbers, etc., and a signal indicating an operation result by the user is output to the CPU 101.

カーソルキー9a、9bは、それぞれ、表示部18aに表示される地図MAPaを左右に回転させる機能が割り当てられており、一回の押下により地図MAPaが一定の角度だけ回転するようにしており、結果的に、カーソルキー9aまたは9bを押下しているときのみ地図MAPaが回転し、カーソルキー9aまたは9bが開放される(押下されなくなる)と地図MAPaの回転が停止するようなっている。   Each of the cursor keys 9a and 9b is assigned a function of rotating the map MAPa displayed on the display unit 18a to the left and right, and the map MAPa is rotated by a certain angle when pressed once. Thus, the map MAPa rotates only when the cursor key 9a or 9b is pressed, and the map MAPa stops rotating when the cursor key 9a or 9b is released (no longer pressed).

表示部18a、18bは、液晶表示器によって構成され、電子メールを送信する際に作成された文章の文字情報、各種メニューの内容等を含む各種データ、さらにはその詳細な内容等が表示されるようになっている。表示部18aは筐体2の主表示面に設けられ、液晶表示部18bは筐体2の表の面に設けられる。   The display units 18a and 18b are configured by a liquid crystal display, and display text information of text created when an e-mail is transmitted, various data including contents of various menus, and detailed contents thereof. It is like that. The display unit 18 a is provided on the main display surface of the housing 2, and the liquid crystal display unit 18 b is provided on the front surface of the housing 2.

地磁気センサモジュール30は、図3に示すような構成であり、同一水平面上に設定されて、互いに直交するX軸、Y軸の各々の軸方向(感磁方向)の地磁気(磁界)を検出するGMR(Giant Magnetoresistive)素子からなる磁気センサ31、32と、磁気センサ31、32の検出出力信号SxもしくはSy(方位情報)を選択的に出力する切換器33と、切換器33の出力信号を増幅する増幅器34と、増幅器34の出力信号のA/D(Analog/Digital)変換を行うA/Dコンバータ35と、A/Dコンバータ35の出力信号を地磁気センサモジュール30の外部に出力するためのI/F(インターフェイス)部36とを備えている。尚、地磁気センサモジュール30は、磁気センサ31、32の感磁方向が、前述したX軸およびY軸とそれぞれ平行になるように、図2(a)に示すように、筐体1内の中央部に取り付けられている。これにより、地磁気センサモジュール30の感磁方向がX軸およびY軸となる。以上、2軸の地磁気センサモジュール30について説明したが、3軸の地磁気センサモジュールを必要とする場合、上述したX軸およびY軸に対して互いに垂直にZ軸を設定し、該Z軸方向を感磁方向とする磁気センサを追加する。   The geomagnetic sensor module 30 is configured as shown in FIG. 3 and is set on the same horizontal plane and detects the geomagnetism (magnetic field) in the axial direction (magnetic sensitive direction) of each of the X axis and Y axis orthogonal to each other. Magnetic sensors 31, 32 comprising GMR (Giant Magnetoresistive) elements, a switch 33 for selectively outputting the detection output signal Sx or Sy (direction information) of the magnetic sensors 31, 32, and an output signal of the switch 33 Amplifier 34, an A / D converter 35 that performs A / D (Analog / Digital) conversion of the output signal of the amplifier 34, and an I for outputting the output signal of the A / D converter 35 to the outside of the geomagnetic sensor module 30. / F (interface) unit 36. As shown in FIG. 2A, the geomagnetic sensor module 30 is arranged in the center of the housing 1 so that the magnetic sensing directions of the magnetic sensors 31 and 32 are parallel to the X axis and the Y axis, respectively. It is attached to the part. Thereby, the magnetic sensing direction of the geomagnetic sensor module 30 becomes the X axis and the Y axis. Although the two-axis geomagnetic sensor module 30 has been described above, when a three-axis geomagnetic sensor module is required, the Z axis is set perpendicular to the X axis and the Y axis, and the Z axis direction is Add a magnetic sensor for the direction of magnetic sensing.

磁気センサ31、32は、X軸方向、Y軸方向の地磁気の強さに応じた検出出力信号Sx、Syを出力する。切換器33は、磁気センサ31、32の検出出力信号Sx、Syを選択的に増幅器34の入力端へ出力する。増幅器34は切換器33から出力された磁気センサ31もしくは32の検出出力信号SxもしくはSyを増幅してA/Dコンバータ35に出力する。A/Dコンバータ35は、検出出力信号SxもしくはSyをディジタル化し、I/F(インターフェイス)部36を介して、バスライン120に出力する。   The magnetic sensors 31 and 32 output detection output signals Sx and Sy corresponding to the geomagnetism strength in the X-axis direction and the Y-axis direction. The switch 33 selectively outputs the detection output signals Sx and Sy of the magnetic sensors 31 and 32 to the input terminal of the amplifier 34. The amplifier 34 amplifies the detection output signal Sx or Sy of the magnetic sensor 31 or 32 output from the switch 33 and outputs it to the A / D converter 35. The A / D converter 35 digitizes the detection output signal Sx or Sy and outputs it to the bus line 120 via the I / F (interface) unit 36.

次に、携帯電話機MPの方位測定方法の原理について、説明する。尚、本実施形態においては、携帯電話機MPの操作面がほぼ水平な状態にて置かれ、地磁気センサモジュール30に加わる外部磁界が地磁気のみであるとして説明する。ここで、携帯電話機MPの方位angとは、携帯電話機MPの筐体1の操作面がほぼ水平である場合において、図2(a)に示す携帯電話機MPの操作面手前部(例えば、マイク27)から連結部の中央に向うベクトル、即ちY軸の正方向に向うベクトルの方位のこととする。また、上述した検出出力信号SxおよびSyをX軸、Y軸をそれぞれ横軸、縦軸にしたグラフにプロットすると、図4に示すような方位円を描く。   Next, the principle of the direction measuring method of the mobile phone MP will be described. In the present embodiment, description will be made assuming that the operation surface of the mobile phone MP is placed in a substantially horizontal state and the external magnetic field applied to the geomagnetic sensor module 30 is only geomagnetism. Here, the azimuth ang of the mobile phone MP refers to the front portion of the operation surface of the mobile phone MP shown in FIG. 2A (for example, the microphone 27) when the operation surface of the housing 1 of the mobile phone MP is substantially horizontal. ) To the center of the connecting portion, that is, the direction of the vector toward the positive direction of the Y axis. Further, when the detection output signals Sx and Sy described above are plotted on a graph in which the X axis, the Y axis are the horizontal axis, and the vertical axis, respectively, an azimuth circle as shown in FIG. 4 is drawn.

このとき、携帯電話機MPの上方向(Y軸方向)の方位を求めると、方位angの基準(0°)は北であり、同方位angは東、南、および、西の順に回転するにつれて、それぞれ90°、180°および270°となる。尚、中間の方位もそれぞれの出力値により求まる。   At this time, when the upward direction (Y-axis direction) of the mobile phone MP is obtained, the reference (0 °) of the direction ang is north, and the same direction ang rotates in the order of east, south, and west. They are 90 °, 180 ° and 270 °, respectively. The intermediate direction is also obtained from each output value.

ところで、地磁気は南から北に向う磁界である。従って、携帯電話機MPの筐体1の操作面がほぼ水平である場合、地磁気センサモジュール30のX軸方向の磁気センサ31およびY軸方向の磁気センサ32の出力は、余弦波状、および正弦波状にそれぞれ変化する。   By the way, geomagnetism is a magnetic field from south to north. Therefore, when the operation surface of the casing 1 of the mobile phone MP is substantially horizontal, the outputs of the magnetic sensor 31 in the X-axis direction and the magnetic sensor 32 in the Y-axis direction of the geomagnetic sensor module 30 are cosine and sine waves. Each changes.

以上のことから、携帯電話機MPの方位angは以下の(a)〜(d)に場合分けして求めることができる。
(a)Sx、Syについて、Sx>0、且つ、|Sx|>|Sy|が成立すると、方位ang=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°以上であれば、同方位aから360°を減じた値を方位angとする。
From the above, the azimuth ang of the mobile phone MP can be obtained in the following cases (a) to (d).
(A) For Sx and Sy, when Sx> 0 and | Sx |> | Sy | are satisfied, the azimuth ang = tan −1 (Sy / Sx).
(B) When Sx <0 and | Sx |> | Sy | are satisfied, ang = 180 ° + tan −1 (Sy / Sx).
(C) When Sy> 0 and | Sx | <| Sy | are satisfied, ang = 90 ° -tan −1 (Sx / Sy).
(D) When Sy <0 and | Sx | <| Sy | are 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, when the obtained azimuth ang is 360 ° or more, a value obtained by subtracting 360 ° from the same azimuth a is set as the azimuth ang.

しかし、携帯電話機MP内には、前述したように、着信用スピーカ28に代表されるように多くの永久磁石部品が含まれ、これらの部品から磁場が漏洩している。そのため、携帯電話機MP内の予め定められた箇所に配置された地磁気センサモジュール30には、これらの永久磁石部品による漏洩磁界(地磁気以外による外部磁界)が加わっている。この結果、X軸方向の磁気センサ31の出力は、漏洩磁界のX軸成分に応じた出力だけシフト(平行移動)し、同様に、Y軸方向の磁気センサ32の出力は、漏洩磁界のY軸成分に応じたオフセットだけシフトし(オフセット)、それぞれのシフトした出力を「オフセット計測値」という。そのため、携帯電話機MPにおいて正確な方位を測定するためには、上述したオフセット計測値を測定値から差し引くといった、演算により、オフセットを除去して測定値の補正を行う必要がある。   However, as described above, the mobile phone MP includes many permanent magnet parts as represented by the incoming speaker 28, and a magnetic field leaks from these parts. Therefore, a leakage magnetic field (external magnetic field other than geomagnetism) due to these permanent magnet components is applied to the geomagnetic sensor module 30 disposed at a predetermined location in the mobile phone MP. As a result, the output of the magnetic sensor 31 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 magnetic sensor 32 in the Y-axis direction is Y of the leakage magnetic field. An offset corresponding to the axis component is shifted (offset), and each shifted output is referred to as an “offset measurement value”. Therefore, in order to measure an accurate azimuth in the mobile phone MP, it is necessary to correct the measurement value by removing the offset by calculation such as subtracting the offset measurement value described above from the measurement value.

次に、本実施形態による携帯電話機MPの地磁気センサモジュール30のオフセットのキャリブレーションの動作を説明する。オフセットのキャリブレーションとは、オフセット計測値を求めるための外部磁気を測定することをいう。   Next, the offset calibration operation of the geomagnetic sensor module 30 of the mobile phone MP according to the present embodiment will be described. Offset calibration refers to measuring external magnetism for obtaining an offset measurement value.

ここで、図5に示すように、ユーザHuが、通りSTRの方向を向き、且つ、本発明の実施形態における携帯電話機MPを、筐体1を水平に保って、通りSTRの方向に真っ直ぐに向けて携帯して立っている状態を想定する。   Here, as shown in FIG. 5, the user Hu faces in the direction of the street STR, and holds the mobile phone MP in the embodiment of the present invention straight in the direction of the street STR while keeping the casing 1 horizontal. Assume that you are standing with you.

先ず、携帯電話機MPの電源が投入され、携帯電話機MPの動作が開始する。以下、図5、図6〜図7に示すフローチャートおよび図8〜9を参照して、携帯電話機MPの地磁気センサモジュール30のオフセットのキャリブレーションの動作を説明する。   First, the power of the mobile phone MP is turned on, and the operation of the mobile phone MP is started. Hereinafter, the offset calibration operation of the geomagnetic sensor module 30 of the mobile phone MP will be described with reference to the flowcharts shown in FIGS. 5 and 6 to 7 and FIGS.

先ず、オフセットのキャリブレーションを指示するキャリブレーション開始ボタン(トリガーキー、図示しない)が押される。次に、CPU101がGPS受信部108からGPSデータを受信し、該GPSデータから現在の位置情報を取得し、前述した携帯電話機MPの方位測定の原理より、地磁気センサモジュール30から現在の方位情報を取得し、取得した位置情報および方位情報に基づいて、図8(a)に示すように、表示部18aに地図MAPaを表示する(ステップSp1)。このとき、表示部18aにおいて、携帯電話機MPを携帯しているユーザHuの存在位置である現在位置PPと、携帯電話機MPの方位angの基準である方向を示す矢印ARとが、地図MAPaの上に表示される。   First, a calibration start button (trigger key, not shown) for instructing offset calibration is pressed. Next, the CPU 101 receives GPS data from the GPS receiving unit 108, acquires current position information from the GPS data, and obtains the current direction information from the geomagnetic sensor module 30 based on the above-described principle of direction measurement of the mobile phone MP. Based on the acquired position information and orientation information, the map MAPa is displayed on the display unit 18a as shown in FIG. 8A (step Sp1). At this time, in the display unit 18a, the current position PP that is the position of the user Hu carrying the mobile phone MP and the arrow AR indicating the direction that is the reference of the azimuth ang of the mobile phone MP are on the map MAPa. Is displayed.

次に、左右回転ボタンであるカーソルキー9a、または9bのいずれかが押下されたか否かが判断される(ステップSp2)。判断が「NO」であった場合、地図MAPaは回転せず、ステップSp1に戻り、以下のステップSp1〜Sp2の動作が繰り返される。   Next, it is determined whether or not any of the cursor keys 9a or 9b which is a left / right rotation button has been pressed (step Sp2). If the determination is “NO”, the map MAPa does not rotate, the process returns to step Sp1, and the following steps Sp1 to Sp2 are repeated.

一方、ステップSp2における判断が「YES」であった場合、ステップSp3に移行し、例えば、カーソルキー9aが押された場合、地図MAPa全体が現在位置PPを中心に左方向に回転する。
尚、カーソルキー9bにはカーソルキー9aとは逆に、地図MAPaを右方向に回転させる機能を持たせる。これにより、矢印ARを通りSTRの道路と平行にする動作を容易にしている。また、カーソルキー9aまたは9bを押下したときの地図MAPaの回転速度を選択できるようにしてもよい。例えば、矢印ARと通りSTR道路とが平行に近づいたところでユーザが遅い回転速度を選択することにより、正確に合わせることができる。
On the other hand, if the determination in step Sp2 is “YES”, the process proceeds to step Sp3. For example, when the cursor key 9a is pressed, the entire map MAPa rotates leftward about the current position PP.
The cursor key 9b has a function of rotating the map MAPa in the right direction, contrary to the cursor key 9a. This facilitates the operation of passing through the arrow AR and parallel to the STR road. Further, the rotation speed of the map MAPa when the cursor key 9a or 9b is pressed may be selected. For example, when the user selects a slow rotation speed when the arrow AR and the STR road approach in parallel, the user can accurately adjust the speed.

そして、ユーザによって、図8(b)に示すように、矢印ARと、通りSTRの道路とが平行になり、地図MAPaと現在地の景観とが一致したことが確認され、カーソルキー9aが開放され、確認ボタン10が押下されたか否かが判断される(ステップSp4)。判断が「NO」であった場合、ステップSp3に戻り、以下のステップSp3〜Sp4の動作が繰り返される。   Then, as shown in FIG. 8 (b), the user confirms that the arrow AR and the street STR road are parallel, the map MAPa and the current landscape match, and the cursor key 9a is released. Then, it is determined whether or not the confirmation button 10 has been pressed (step Sp4). If the determination is “NO”, the process returns to step Sp3, and the following operations in steps Sp3 to Sp4 are repeated.

一方、ステップSp4における判断が「YES」であった場合、ステップSp5に移行し、地図を回転させた方向および角度から仮のオフセット値が算出される。以上の動作により、地図MAPaが回転した量より、仮のオフセット値が算出される。   On the other hand, if the determination in step Sp4 is “YES”, the process proceeds to step Sp5, and a temporary offset value is calculated from the direction and angle in which the map is rotated. With the above operation, a temporary offset value is calculated from the amount of rotation of the map MAPa.

ここで、ステップSp5における、携帯電話機MPの地磁気センサモジュール30のオフセットのキャリブレーションの動作の詳細を図9(a)〜(b)を参照して説明する。 このとき、地図MAPaが現在地の景観と比較して角度α°だけ傾いており、角度α°だけ地図MAPaを回転させて、地図MAPbに移行させることを想定する。   Here, details of the offset calibration operation of the geomagnetic sensor module 30 of the mobile phone MP in Step Sp5 will be described with reference to FIGS. At this time, it is assumed that the map MAPa is inclined by an angle α ° as compared to the landscape of the current location, and the map MAPa is rotated by the angle α ° and transferred to the map MAPb.

このとき、図9(a)に、原点である点Oに置かれた携帯電話機MPから、矢印によって示された点P1を計測したときに実際に計測される点P1’を示す。上述したように、携帯電話機MPの表示部18aに、地図MAPaが現在地の景観と比較して角度α°だけ傾いていたのを修正したために、図中の矢印の延長線である、直線OP1と角度α°をなす直線(点線)OP1’と方位円との交点の近傍の磁気データが計測されることによって、実際には点P1’が計測されるということになる。そのため、図9(b)に示すように、直線OP1と平行であり、且つ、点P1’を通る直線P1’P1’’(一点鎖線)の上のどこかに実際の原点であるO’があることになる。これにより、Y軸成分は確定しないが、X軸成分が確定した実際の原点O’が得られることになる。ここで、原点Oから実際の原点O’までのベクトルが、仮のオフセット値となり、該オフセット値によって、RAM103に格納されているオフセット値が更新される。   At this time, FIG. 9A shows a point P1 'actually measured when the point P1 indicated by the arrow is measured from the mobile phone MP placed at the point O which is the origin. As described above, since the map MAPa is tilted by the angle α ° compared to the current location on the display unit 18a of the mobile phone MP, the straight line OP1 that is an extension of the arrow in the figure is By measuring the magnetic data near the intersection of the straight line (dotted line) OP1 ′ forming the angle α ° and the azimuth circle, the point P1 ′ is actually measured. Therefore, as shown in FIG. 9B, the actual origin O 'is somewhere on the straight line P1'P1' '(dashed line) parallel to the straight line OP1 and passing through the point P1'. There will be. As a result, although the Y-axis component is not fixed, the actual origin O ′ where the X-axis component is fixed is obtained. Here, the vector from the origin O to the actual origin O ′ becomes a temporary offset value, and the offset value stored in the RAM 103 is updated by the offset value.

上述したように、実際の原点O’はY軸成分が確定していないため、以下の手順によって、実際の原点O’のY軸成分を確定する。   As described above, since the Y axis component of the actual origin O ′ has not been determined, the Y axis component of the actual origin O ′ is determined by the following procedure.

すなわち、図9(c)に示すように、現在の原点Oから直線P1’P1’’に引いた垂線との交点を新しい原点である原点O’とする。そして、携帯電話機MPの位置を原点Oから新しい原点O’に移動し、上述した方向と同一、または、180°の方位差以外の角度により示される方位に携帯電話機MPを向ける。このとき、原点O’はY軸成分が確定していない仮の原点であるため、地図MAPbが現在地の景観と比較して傾いている。そこで、角度β°だけ地図MAPbを回転させて、地図MAPbを現在地の景観と一致させることを想定する。   That is, as shown in FIG. 9C, the intersection point of the perpendicular line drawn from the current origin O to the straight line P1'P1 '' is set as the new origin O '. Then, the position of the cellular phone MP is moved from the origin O to the new origin O ′, and the cellular phone MP is directed in the direction indicated by the same angle as described above or by an angle other than the azimuth difference of 180 °. At this time, since the origin O ′ is a provisional origin where the Y-axis component is not determined, the map MAPb is tilted compared to the landscape of the current location. Therefore, it is assumed that the map MAPb is rotated by an angle β ° so that the map MAPb matches the landscape of the current location.

次に、ステップSp1と同様に、CPU101がGPS受信部108からGPSデータを受信し、該GPSデータから現在の位置情報を取得し、地磁気センサモジュール30から現在の方位情報を取得し、取得した位置情報および方位情報に基づいて、表示部18aに地図を表示する(ステップSp6)。このとき、表示部18aにおいて、携帯電話機MPを携帯しているユーザHuの存在位置である現在位置PPと、携帯電話機MPの方位angの基準である方向を示す矢印ARとが、地図の上に表示される。   Next, as in step Sp1, the CPU 101 receives GPS data from the GPS receiving unit 108, acquires current position information from the GPS data, acquires current direction information from the geomagnetic sensor module 30, and acquires the acquired position. Based on the information and the orientation information, a map is displayed on the display unit 18a (step Sp6). At this time, on the display unit 18a, the current position PP, which is the position where the user Hu carrying the mobile phone MP is present, and an arrow AR indicating the direction that is the reference for the azimuth ang of the mobile phone MP are displayed on the map. Is displayed.

次に、ステップSp2と同様に、左右回転ボタンであるカーソルキー9a、または9bのいずれかが押下されたか否かが判断される(ステップSp7)。判断が「NO」であった場合、地図は回転せず、ステップSp6に戻り、以下のステップSp6〜Sp7の動作が繰り返される。   Next, as in step Sp2, it is determined whether or not any of the cursor keys 9a or 9b, which are left and right rotation buttons, has been pressed (step Sp7). If the determination is “NO”, the map does not rotate, the process returns to Step Sp6, and the following Steps Sp6 to Sp7 are repeated.

一方、ステップSp7における判断が「YES」であった場合、ステップSp8に移行し、地図全体が回転する。そして、ステップSp4と同様に、ユーザによって、矢印ARと、通りSTRの道路とが平行になり、地図と現在地の景観とが一致したことが確認され、カーソルキー9aまたは9bが開放され、確認ボタン10が押下されたか否かが判断される(ステップSp9)。判断が「NO」であった場合、ステップSp8に戻り、以下のステップSp8〜Sp9の動作が繰り返される。   On the other hand, if the determination in step Sp7 is “YES”, the process proceeds to step Sp8 and the entire map rotates. Then, as in step Sp4, the user confirms that the arrow AR and the street STR road are parallel, the map and the current landscape match, the cursor key 9a or 9b is released, and the confirmation button It is determined whether or not 10 has been pressed (step Sp9). If the determination is “NO”, the process returns to step Sp8, and the following operations in steps Sp8 to Sp9 are repeated.

一方、ステップSp9における判断が「YES」であった場合、ステップSp10に移行し、地図を回転させた方向および角度から正式なオフセット値が算出される。以上の動作により、地図MAPaが回転した量より、正式なオフセット値が算出される。   On the other hand, if the determination in step Sp9 is “YES”, the process proceeds to step Sp10, and a formal offset value is calculated from the direction and angle in which the map is rotated. With the above operation, a formal offset value is calculated from the amount of rotation of the map MAPa.

ここで、ステップSp10における、携帯電話機MPの地磁気センサモジュール30のオフセットのキャリブレーションの動作の詳細を図9(d)を参照して説明する。 このとき、地図が現在地の景観と比較して角度β°だけ傾いており、角度β°だけ地図を回転させることを想定する。   Here, details of the offset calibration operation of the geomagnetic sensor module 30 of the mobile phone MP in step Sp10 will be described with reference to FIG. At this time, it is assumed that the map is inclined by an angle β ° compared to the landscape of the current location, and the map is rotated by an angle β °.

このとき、図9(d)に、原点である点O’に置かれた携帯電話機MPから、矢印によって示された点P2を計測したときに実際に計測される点P2’を示す。上述したように、携帯電話機MPの表示部18aに、地図MAPaが現在地の景観と比較して角度β°だけ傾いていたのを修正したために、図中の矢印の延長線である、直線O’P2と角度β°をなす直線(点線)O’P2’と方位円との交点の近傍の磁気データが計測されるということになる。そして、図9(b)に示す事項と同様に、図9(d)に示すように、直線O’P2と平行であり、且つ、点P2’を通る直線P2’P2’’ (一点鎖線) に対して原点O’から垂線を引き、該垂線と直線P2’P2’’との交点を最終的な原点である原点O’’とする。これにより、Y軸成分も確定し、実際の原点O’’が得られることになる。そして、原点Oから最終的な原点O’’までのベクトルが正式なオフセット値となり、該オフセット値によって、RAM103に格納されている、前述した仮のオフセット値が更新される。   At this time, FIG. 9D shows a point P2 'that is actually measured when the point P2 indicated by the arrow is measured from the mobile phone MP placed at the point O' that is the origin. As described above, since the map MAPa is tilted by an angle β ° as compared with the scenery of the current location on the display unit 18a of the mobile phone MP, the straight line O ′, which is an extension of the arrow in the figure. This means that magnetic data in the vicinity of the intersection of the straight line (dotted line) O′P2 ′ that forms an angle β ° with P2 and the azimuth circle is measured. Similarly to the matter shown in FIG. 9B, as shown in FIG. 9D, a straight line P2′P2 ″ (dotted line) parallel to the straight line O′P2 and passing through the point P2 ′. A perpendicular line is drawn from the origin O ′, and the intersection of the perpendicular line and the straight line P2′P2 ″ is the final origin origin O ″. As a result, the Y-axis component is also determined, and the actual origin O ″ is obtained. Then, the vector from the origin O to the final origin O ″ becomes a formal offset value, and the temporary offset value stored in the RAM 103 is updated by the offset value.

次に、更新されたオフセット値に基づいて、ステップSp1、6と同様に、CPU101がGPS受信部108からGPSデータを受信し、該GPSデータから現在の位置情報を取得し、地磁気センサモジュール30から現在の方位情報を取得し、取得した位置情報および方位情報に基づいて、表示部18aに地図を表示する(ステップSp11)。そして、携帯電話機MPの地磁気センサモジュール30のオフセットのキャリブレーションの動作が終了する。   Next, based on the updated offset value, the CPU 101 receives GPS data from the GPS receiving unit 108 and acquires current position information from the GPS data, as in Steps Sp1 and Sp6, and from the geomagnetic sensor module 30. Current azimuth information is acquired, and a map is displayed on the display unit 18a based on the acquired position information and azimuth information (step Sp11). Then, the offset calibration operation of the geomagnetic sensor module 30 of the mobile phone MP ends.

以上のように、本実施形態によれば、携帯電話機MPを手中に固定したまま、カーソルキー9aまたは9bを押下することにより、オフセットの影響により現在地の景観に比して一定の角度だけ傾斜している地図MAPaを、回転速度を微調整しつつ回転させて現在地の景観と一致させ、該回転量から該オフセット値を算出し、該オフセット値によって、RAM103に格納されているオフセット値を更新することが可能になる。そのため、従来のように携帯電話機MP自体を回転させてオフセットのキャリブレーションを行うのに比して、キャリブレーションを簡単な操作によって行うことができる。   As described above, according to the present embodiment, by pressing the cursor key 9a or 9b while the mobile phone MP is fixed in the hand, the mobile phone MP is tilted by a certain angle as compared to the landscape of the current location due to the influence of the offset. The map MAPa is rotated while finely adjusting the rotation speed so as to match the landscape of the current location, the offset value is calculated from the rotation amount, and the offset value stored in the RAM 103 is updated with the offset value. It becomes possible. Therefore, the calibration can be performed by a simple operation as compared with the conventional calibration of offset by rotating the mobile phone MP itself.

また、本実施形態においては、キャリブレーションの終了後、携帯電話機MPの表示部18aにおいて、現在地の景観と一致した地図MAPbが表示されるため、ユーザは、該地図の向きが現在地の景観と一致していることをもって、該キャリブレーションが本当にうまくいったかを視覚的に確認することができる。   Further, in the present embodiment, after the calibration is completed, the map MAPb that matches the landscape of the current location is displayed on the display unit 18a of the mobile phone MP. By doing so, it is possible to visually confirm whether the calibration is really successful.

ここで、ナビゲーションを使用する場合においても、目安となる建物等の位置関係によって、その場所における方位を認識することが多いと思われるが、例えば、携帯電話機MPを道路と平行なもの(例、適当な建造物)に当てて、現在地の景観と携帯電話機MPの筐体1および2との方位をきっちり合わせることにより、建造物等の正確な方位の情報を利用して、地磁気センサモジュール30のキャリブレーションを行うこともできるので、本発明は有効である。   Here, even in the case of using navigation, it seems that the orientation at the place is often recognized depending on the positional relationship of the building or the like as a guide. For example, the mobile phone MP is parallel to the road (for example, The appropriate position of the geomagnetic sensor module 30 is obtained by using the information on the accurate direction of the building and the like by aligning the landscape of the current location with the casings 1 and 2 of the mobile phone MP. Since the calibration can be performed, the present invention is effective.

尚、本実施形態においては、地磁気センサとして、GMR素子を想定したが、地磁気センサの種類はこれに限定されず、TMR(Tunneling Magnetoresistive)素子、MR(Magnetoresistive)素子等の磁気抵抗効果素子や、ホール素子、MI(Magneto Impedance)素子、フラックスゲートセンサ等、どんなものでもよい。
特に、ホール素子のような特性の温度変化の激しい素子では、温度によるオフセット変化を補正するために使用できる。またMI素子のような着磁しやすいものでは、素子自身の着磁による影響の除去手段として有効である。
In the present embodiment, the GMR element is assumed as the geomagnetic sensor, but the type of the geomagnetic sensor is not limited to this, and a magnetoresistive effect element such as a TMR (Tunneling Magnetoresistive) element, MR (Magnetoresistive) element, Any element such as a Hall element, an MI (Magneto Impedance) element, or a fluxgate sensor 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.

また、本実施形態においては、カーソルキー9aまたは9bの一回の押下により地図MAPaが一定の角度だけ回転するようして、結果的に、カーソルキー9aまたは9bを押下しているときのみ地図MAPaが回転し、カーソルキー9aまたは9bを押下しなくなると地図MAPaの回転が停止するようにしたが、以下のようにして、地図MAPaを自動的に回転させて地図MAPaと現在地の景観とを一致させてもよい。すなわち、CPU101の制御プログラムにおいて、調整モードをサポートし、特定のキー操作によって該調整モードに移行するようにし、カーソルキー9aまたは9bの押下により、地図MAPaが自動回転して、地図MAPaが現在地の景観と一致したときに確認ボタン10を押下することにより、地図MAPaを停止させてもよい。結果的に、地図MAPaと現在地の景観とを一致させることができれば、どんな方法でもよい。   In the present embodiment, the map MAPa is rotated by a certain angle by one press of the cursor key 9a or 9b. As a result, the map MAPa is only pressed when the cursor key 9a or 9b is pressed. Rotate the map and stop the MAPA rotation when the cursor key 9a or 9b is not pressed. However, the map MAPa is automatically rotated to match the map MAPa and the current landscape as follows. You may let them. That is, in the control program of the CPU 101, the adjustment mode is supported, and the mode is shifted to the adjustment mode by a specific key operation. When the cursor key 9a or 9b is pressed, the map MAPa is automatically rotated, and the map MAPa becomes the current location. The map MAPa may be stopped by pressing the confirmation button 10 when it matches the landscape. As a result, any method may be used as long as the map MAPa and the scenery of the current location can be matched.

また、本実施形態においては、図6〜図7に示すフローチャートのステップSp1〜Sp5の処理と、ステップSp6〜Sp10の処理とにより、2回の地図補正によってオフセット値を決定しているが、例えば、携帯電話機MPの表示部18aに表示される地図の縮尺によっては、オフセット値の精度の要求が高くならない場合もあり、ステップSp1〜Sp5の処理によって求められる仮のオフセット値をそのまま使用してもよい。また、ステップSp6〜Sp10の処理を繰り返すことにより、地図補正を3回以上行うようにして、オフセット値の精度をさらに高めるようにしてもよい。   Further, in the present embodiment, the offset value is determined by two map corrections by the processing of steps Sp1 to Sp5 and the processing of steps Sp6 to Sp10 in the flowcharts shown in FIGS. Depending on the scale of the map displayed on the display unit 18a of the mobile phone MP, the request for the accuracy of the offset value may not be high. Even if the temporary offset value obtained by the processing of Steps Sp1 to Sp5 is used as it is. Good. Further, by repeating the processing of steps Sp6 to Sp10, the map correction may be performed three times or more to further increase the accuracy of the offset value.

以上、本発明の実施形態について図面を参照して詳述したが、具体的な構成はこの実施形態に限られるものではなく、本発明の要旨を逸脱しない範囲での設計変更も含まれる。   As mentioned above, although embodiment of this invention was explained in full detail with reference to drawings, the specific 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.

本発明の一実施形態における携帯電話機MPの構成を示すブロック図である。It is a block diagram which shows the structure of mobile telephone MP in one Embodiment of this invention. 同実施形態における携帯電話機MPの外観を示す図である。2 is a diagram illustrating an appearance of a mobile phone MP in the same embodiment. FIG. 同実施形態における地磁気センサモジュール30の構成を示すブロック図である。It is a block diagram which shows the structure of the geomagnetic sensor module 30 in the embodiment. 地磁気センサモジュール30における検出出力信号SxおよびSyによって描かれる方位円を示す図である。It is a figure which shows the azimuth | direction circle drawn by the detection output signals Sx and Sy in the geomagnetic sensor module 30. FIG. 同実施形態における携帯電話機MPのキャリブレーションを行う際のシチュエーションを示す図である。It is a figure which shows the situation at the time of calibrating mobile telephone MP in the embodiment. 同実施形態における携帯電話機MPにおける、キャリブレーションの動作を示すフローチャートである。7 is a flowchart showing a calibration operation in the mobile phone MP in the same embodiment. 同実施形態における携帯電話機MPにおける、キャリブレーションの動作を示すフローチャートである。7 is a flowchart showing a calibration operation in the mobile phone MP in the same embodiment. 同実施形態における携帯電話機MPの表示部18aにおいて表示される地図MAPaおよび矢印ARによって、オフセットを測定する様子を示す図である。It is a figure which shows a mode that an offset is measured by map MAPa and arrow AR which are displayed on the display part 18a of the mobile telephone MP in the embodiment. 同実施形態における携帯電話機MPの地磁気センサモジュール30のオフセットのキャリブレーションの動作の詳細を示す図である。It is a figure which shows the detail of the operation | movement of offset calibration of the geomagnetic sensor module 30 of the mobile telephone MP in the embodiment.

符号の説明Explanation of symbols

1、2・・・筐体、3・・・開始キー、4・・・終了キー、5・・・テンキー、7・・・リダイアルキー、8・・・RF(Radio Frequency)アンテナ、9a、9b・・・カーソルキー(地図回転手段)、9c、9d・・・カーソルキー、10・・・確認ボタン、11・・・変換キー、18a・・・表示部(表示手段)、18b・・・表示部、27・・・マイク、28・・・受話音用スピーカ、30・・・地磁気センサモジュール(地磁気センサ)、31、32・・・磁気センサ、33・・・切換器、34・・・増幅器、35・・・、A/D(Analog/Digital)コンバータ、36・・・I/F(インターフェイス)部、41・・・着信音用スピーカ、101・・・CPU(Central Processing Unit)(表示手段)(キャリブレーション手段)、102・・・ROM(Read Only Memory)(地図情報記憶手段)、103・・RAM(Random Access Memory)、104・・・RF(Radio Frequency)送受信部、105・・・キー入力部、107・・・音声処理部、108・・・GPS(Global Positioning System)受信部(位置情報取得手段)、109・・・音源部、110・・・GPSアンテナ(位置情報取得手段)、120・・・バスライン、AR・・・矢印、Hu・・・ユーザ、MAPa、MAPb・・・地図、MP・・・携帯電話機、PP・・・現在位置、STR・・・通り
DESCRIPTION OF SYMBOLS 1, 2 ... Case, 3 ... Start key, 4 ... End key, 5 ... Numeric keypad, 7 ... Redial key, 8 ... RF (Radio Frequency) antenna, 9a, 9b ... Cursor keys (map rotation means), 9c, 9d ... Cursor keys, 10 ... Confirm button, 11 ... Conversion key, 18a ... Display section (display means), 18b ... Display 27, microphone, 28 reception speaker, 30 ... geomagnetic sensor module (geomagnetic sensor), 31, 32 ... magnetic sensor, 33 ... switch, 34 ... amplifier , 35..., A / D (Analog / Digital) converter, 36... I / F (interface) section, 41 .. ring tone speaker, 101... CPU (Central Processing Unit) (display means) ) (Calibration means), 102... R M (Read Only Memory) (map information storage means), 103... RAM (Random Access Memory), 104... RF (Radio Frequency) transmission / reception unit, 105... Key input unit, 107. , 108 ... GPS (Global Positioning System) receiving part (position information acquisition means), 109 ... sound source part, 110 ... GPS antenna (position information acquisition means), 120 ... bus line, AR ...・ Arrow, Hu ... User, MAPa, MAPb ... Map, MP ... Mobile phone, PP ... Current position, STR ... Street

Claims (2)

地磁気センサと、
位置情報を取得する位置情報取得手段と、
地図情報を記憶する地図情報記憶手段と、
前記地磁気センサの出力および前記位置情報ならびに前記地図情報に基づいて現在地における地図を表示する表示手段と、
前記地図を任意の回転方向、角度に回転させる地図回転手段と、
前記地図と前記現在地の景観とが一致した場合、前記地図の回転方向および角度に応じて前記地磁気センサのオフセット値を更新するキャリブレーション手段と、
を備えたことを特徴とする携帯情報端末。
A geomagnetic sensor,
Position information acquisition means for acquiring position information;
Map information storage means for storing map information;
Display means for displaying a map of the current location based on the output of the geomagnetic sensor and the position information and the map information;
Map rotation means for rotating the map in an arbitrary rotation direction and angle;
When the map and the landscape of the current location match, calibration means for updating the offset value of the geomagnetic sensor according to the rotation direction and angle of the map;
A portable information terminal comprising:
携帯情報端末の制御用コンピュータに、
地磁気センサの出力および位置情報ならびに地図情報に基づいて現在地における地図を表示するステップと、
前記地図を任意の回転方向、角度に回転させるステップと、
前記地図と前記現在地の景観とが一致した場合、前記地図の回転方向および角度に応じて前記地磁気センサのオフセット値を更新するステップと、
を実行させるための地磁気センサの補正用プログラム。

To the control computer of the portable information terminal,
Displaying a map of the current location based on the output and position information of the geomagnetic sensor and map information;
Rotating the map in an arbitrary rotation direction and angle;
When the landscape of the map and the current location match, updating the offset value of the geomagnetic sensor according to the rotation direction and angle of the map;
Program for correcting the geomagnetic sensor to execute

JP2005083750A 2005-03-23 2005-03-23 Program for correcting portable information terminal and geomagnetic sensor Expired - Fee Related JP4586596B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2005083750A JP4586596B2 (en) 2005-03-23 2005-03-23 Program for correcting portable information terminal and geomagnetic sensor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2005083750A JP4586596B2 (en) 2005-03-23 2005-03-23 Program for correcting portable information terminal and geomagnetic sensor

Publications (2)

Publication Number Publication Date
JP2006266800A JP2006266800A (en) 2006-10-05
JP4586596B2 true JP4586596B2 (en) 2010-11-24

Family

ID=37202948

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2005083750A Expired - Fee Related JP4586596B2 (en) 2005-03-23 2005-03-23 Program for correcting portable information terminal and geomagnetic sensor

Country Status (1)

Country Link
JP (1) JP4586596B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080140314A1 (en) * 2006-12-06 2008-06-12 Park Kenneth J Device orientation navigation system for mobile electronic device

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004012416A (en) * 2002-06-11 2004-01-15 Asahi Kasei Corp Azimuth measuring apparatus, calibration method, and calibration program

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004012416A (en) * 2002-06-11 2004-01-15 Asahi Kasei Corp Azimuth measuring apparatus, calibration method, and calibration program

Also Published As

Publication number Publication date
JP2006266800A (en) 2006-10-05

Similar Documents

Publication Publication Date Title
US8645093B2 (en) Calibrating multi-dimensional sensor for offset, sensitivity, and non-orthogonality
US10641625B2 (en) Method and apparatus for calibrating a magnetic sensor
JP3721141B2 (en) Mobile terminal device
JP4828640B2 (en) Portable electronic device and geomagnetic sensor calibration method
KR20070079345A (en) Method and apparatus for measuring magnetic offset of geomagnetic sensor
JP2001289646A (en) Position information display system
JP3155170U (en) Mobile terminal device for displaying azimuth angle, elevation angle, polarization angle, and geostationary satellite direction of geostationary satellite antenna
US7024782B1 (en) Electronic device compass operable irrespective of localized magnetic field
JP4161985B2 (en) Portable electronic device with orientation detection function and calibration method thereof
JP4229093B2 (en) Portable electronic device with azimuth detection function, magnetic sensor device, and calibration method thereof
JP4207929B2 (en) Method for correcting geomagnetic sensor, method for measuring offset of geomagnetic sensor, azimuth data calculation device, and portable information terminal
JP2003199973A (en) Portable information terminal, and control method for game software executed in the same
JP4586596B2 (en) Program for correcting portable information terminal and geomagnetic sensor
US7949485B2 (en) Portable terminal device
JP5073252B2 (en) Calibration method for portable electronic device and geomagnetic sensor
JP4242744B2 (en) Information display device
JP3675393B2 (en) Electronic equipment
JP4548102B2 (en) Portable terminal
JP2005345387A (en) Portable terminal apparatus
JP2005345388A (en) Portable terminal apparatus
JP3754289B2 (en) Attitude angle detection device for portable terminal device and magnetic direction detection device for portable terminal device
JP4639672B2 (en) Geomagnetic sensor correction method
JP4462886B2 (en) Information display device
JP2008005430A (en) Portable telephone, subtended angle specification method, and subtended angle specification program
JP5158434B2 (en) Information display device

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20080122

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: 20100810

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: 20100823

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20130917

Year of fee payment: 3

LAPS Cancellation because of no payment of annual fees