[go: up one dir, main page]

JP2005345389A - Portable terminal apparatus - Google Patents

Portable terminal apparatus Download PDF

Info

Publication number
JP2005345389A
JP2005345389A JP2004167702A JP2004167702A JP2005345389A JP 2005345389 A JP2005345389 A JP 2005345389A JP 2004167702 A JP2004167702 A JP 2004167702A JP 2004167702 A JP2004167702 A JP 2004167702A JP 2005345389 A JP2005345389 A JP 2005345389A
Authority
JP
Japan
Prior art keywords
unit
offset
data
magnetic sensor
terminal device
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.)
Pending
Application number
JP2004167702A
Other languages
Japanese (ja)
Inventor
Kiyoshi Yamaki
清志 山木
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 JP2004167702A priority Critical patent/JP2005345389A/en
Publication of JP2005345389A publication Critical patent/JP2005345389A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Mobile Radio Communication Systems (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To automatically calibrate a magnetic sensor without users' awareness by eliminating the need for a special operation for calibrating the magnetic sensor by the users. <P>SOLUTION: A main controller unit 20 (control means) automatically calibrates the magnetic sensor, which detects geomagnetism, through the use of the rotation of this portable terminal apparatus in a state placed on a plane of a desk or the like with the vibration of a vibrator when the reception of communication or the reproduction of a ringtone is detected. The calibration is performed by storing measurement data captured from the magnetic sensor in a storage device, reading the measurement data stored in the storage device, estimating an offset according to a prescribed offset estimating algorithm, and determining whether an estimated offset value is valid or not. <P>COPYRIGHT: (C)2006,JPO&NCIPI

Description

本発明は、磁気センサにより地磁気を検出して方位測定を行い、現在位置に基づく地図を画面に表示する用途に用いて好適な携帯端末装置に関する。   The present invention relates to a portable terminal device suitable for use in applications in which a geomagnetic field is detected by a magnetic sensor, direction measurement is performed, and a map based on a current position is displayed on a screen.

地磁気を検出する磁気センサを備え、この磁気センサによって検出された地磁気に基づいて方位測定を行う携帯電話等の携帯端末装置が知られている。ここで測定された方位は、例えば地図の表示に利用される。一例として挙げると、位置検出を行うGPS(Global Positioning System)センサを備え、現在位置に基づいた地図を、携帯端末の向き(方位)に合わせて表示する機能を有する携帯端末装置が登場している。   There is known a portable terminal device such as a mobile phone that includes a magnetic sensor that detects geomagnetism and performs azimuth measurement based on the geomagnetism detected by the magnetic sensor. The azimuth | direction measured here is utilized for the display of a map, for example. As an example, a mobile terminal device that has a GPS (Global Positioning System) sensor that performs position detection and has a function of displaying a map based on the current position in accordance with the orientation (azimuth) of the mobile terminal has appeared. .

ところで、上記した携帯端末装置には、搭載されるスピーカ、マイク、あるいは着磁した電子部品の金属パッケージ等から漏れる磁気が存在する。従って、携帯端末装置が持つ磁気センサは、携帯端末装置内部の電子部品等から発生する磁界(オフセット)と地磁気とが合成された磁界を検出することになる。このため、オフセットを推定するためのキャリブレーションが必要となる。
従来、上記したキャリブレーションを行うために、ユーザが携帯端末装置を例えば180度回転させ、携帯端末装置は、この動作の間に磁気センサから測定データを収集し、その測定データに基づいてオフセットを推定していた。また、携帯端末装置を所定の角度ずつ回転させ、各角度において磁気センサによって測定されたデータに基づいてオフセットを推定し、回転速度に依存せずにキャリブレーションを行う技術も知られている(例えば、特許文献1参照)。
特開2004−12416号公報
By the way, in the above-described portable terminal device, there is magnetism that leaks from a speaker, a microphone, or a metal package of a magnetized electronic component. Therefore, the magnetic sensor of the mobile terminal device detects a magnetic field in which a magnetic field (offset) generated from an electronic component or the like inside the mobile terminal device is combined with the geomagnetism. For this reason, calibration for estimating the offset is required.
Conventionally, in order to perform the above-described calibration, the user rotates the mobile terminal device by, for example, 180 degrees, and the mobile terminal device collects measurement data from the magnetic sensor during this operation, and sets an offset based on the measurement data. I was estimating. Also known is a technique for rotating a mobile terminal device by a predetermined angle, estimating an offset based on data measured by a magnetic sensor at each angle, and performing calibration without depending on the rotation speed (for example, , See Patent Document 1).
JP 2004-12416 A

しかしながら、上記した特許文献1を含む従来技術によれば、ユーザが意識して携帯端末装置を回転操作させる必要があり、キャリブレーションが正確に行われるための要求に従う操作が困難であった。また、このために携帯端末を落とし破損してしまう等の恐れがあった。
本発明は上記事情に鑑みてなされたものであり、キャリブレーションのための特別なユーザ操作を不要とし、ユーザに意識させることなく自動的にキャリブレーションを実行可能な携帯端末装置を提供することを目的とする。
However, according to the prior art including the above-described Patent Document 1, it is necessary for the user to rotate the mobile terminal device with consciousness, and it is difficult to perform an operation in accordance with a request for performing calibration accurately. In addition, the mobile terminal may be dropped and damaged due to this.
The present invention has been made in view of the above circumstances, and provides a portable terminal device that does not require a special user operation for calibration and can automatically perform calibration without making the user aware of it. Objective.

上記した課題を解決するために本発明は、着信時、平面に載置した状態でバイブレータの振動により回転運動を行う携帯端末装置であって、地磁気を検出する磁気センサと、前記磁気センサによって検出された地磁気に基づき方位測定を行うとともに、前記着信、もしくは着信音の再生を契機に前記バイブレータの振動に合わせて回転する前記磁気センサのキャリブレーションを行う制御手段と、を具備することを特徴とする。   In order to solve the above-described problems, the present invention is a portable terminal device that performs a rotational motion by vibration of a vibrator while being placed on a plane when receiving a call, and detects a magnetic sensor that detects geomagnetism and the magnetic sensor. Control means for calibrating the magnetic sensor that rotates in accordance with vibration of the vibrator triggered by reproduction of the incoming call or ringing tone while performing azimuth measurement based on the geomagnetism performed. To do.

また、本発明において、前記制御手段は、前記着信、もしくは着信音の再生を検出して前記バイブレータの振動に合わせて回転する前記磁気センサに対する計測開始を指示し、取り込まれた計測データを所定のデータ格納判定アルゴリズムに従い記憶装置に格納するか否かを判定するデータ格納判定手段と、前記記憶装置に格納された計測データを読み出し、所定のオフセット推定アルゴリズムに従いオフセットを推定するオフセット推定手段と、前記推定したオフセット値が有効か否かを所定の有効性判定アルゴリズムに従い判定し、有効と判定されたオフセット値を前記記憶装置に格納する有効性判定手段と、を具備することを特徴とする。   Also, in the present invention, the control means detects the incoming call or the reproduction of the ring tone, instructs the magnetic sensor to rotate in accordance with the vibration of the vibrator, and starts the measurement data taken in a predetermined manner. A data storage determination means for determining whether to store in a storage device according to a data storage determination algorithm; an offset estimation means for reading measurement data stored in the storage device; and estimating an offset according to a predetermined offset estimation algorithm; A validity determining unit that determines whether or not the estimated offset value is valid according to a predetermined validity determination algorithm, and stores the offset value determined to be valid in the storage device.

本発明によれば、着信、もしくは着信音の再生を契機に磁気センサのキャリブレーションが自動的に実行されるため、キャリブレーションのための特別なユーザ操作を不要とし、ユーザに意識させることなくキャリブレーションを実行することができる。   According to the present invention, since the calibration of the magnetic sensor is automatically executed when an incoming call or ringtone is played back, a special user operation for calibration is unnecessary, and the calibration is performed without making the user aware of it. Can be executed.

図1は、本発明に係わる携帯端末装置の一実施形態を示すブロック図である。本実施形態による携帯端末装置は、2つの筐体(端末ユニット(1)および端末ユニット(2))を備えた、いわゆる折り畳み式の携帯端末装置である。すなわち、この2つの筐体は、各筐体の短辺が対向するように連結部を介して連結され、この連結部を通り、筐体の主面に平行な軸を中心にして、一方の筐体が他方の筐体に対して回動可能なように構成されており、2つの筐体が筐体の厚み方向に沿って重なった状態となるように折り畳むことができる。また、この携帯端末装置は、GPSによる測位機能を有すると共に、CDMA(Code Division Multiple Access:符号分割多元接続)方式の通信機能を有している。以下、図中の各構成について説明する。   FIG. 1 is a block diagram showing an embodiment of a portable terminal device according to the present invention. The mobile terminal device according to the present embodiment is a so-called foldable mobile terminal device including two housings (terminal unit (1) and terminal unit (2)). That is, the two casings are connected via a connecting portion so that the short sides of the respective housings face each other, and pass through the connecting portion and center on an axis parallel to the main surface of the casing. The casing is configured to be rotatable with respect to the other casing, and the two casings can be folded so as to overlap each other in the thickness direction of the casing. In addition, the portable terminal device has a GPS positioning function and a CDMA (Code Division Multiple Access) communication function. Hereinafter, each component in the figure will be described.

アンテナ11は、図示せぬ無線基地局と電波の送受信を行う。RF部12は、信号の送受信に係る処理を行う。このRF部12は局部発振器等を備え、受信時にアンテナ11から出力された受信信号に対して所定周波数の局部発信信号を混合することにより、受信信号を中間周波数(IF)の受信IF信号に変換し、変復調部13へ出力する。また、RF部12は、送信時に中間周波数の送信IF信号に対して所定周波数の局部発信信号を混合することにより、送信IF信号を送信周波数の送信信号に変換し、アンテナ11へ出力する。
変復調部13は、受信された信号の復調処理、および送信される信号の変調処理を行う。この変復調部13は局部発振器等を備え、RF部12から出力された受信IF信号を所定周波数のベースバンド信号に変換すると共に、このベースバンド信号をデジタル信号に変換し、CDMA部14へ出力する。また、変復調部13は、CDMA部14から出力された送信用のデジタルのベースバンド信号をアナログ信号に変換すると共に、所定周波数の送信IF信号に変換してRF部12へ出力する。
CDMA部14は、送信される信号の符号化処理、および受信された信号の複号化処理を行う。このCDMA部14は、変復調部から出力されたベースバンド信号を復号化する。また、CDMA部14は、送信用の信号を符号化してベースバンド信号に変換し、変復調部13へ出力する。
The antenna 11 transmits and receives radio waves with a radio base station (not shown). The RF unit 12 performs processing related to signal transmission / reception. The RF unit 12 includes a local oscillator and the like, and converts a received signal into a received IF signal of an intermediate frequency (IF) by mixing a locally transmitted signal of a predetermined frequency with a received signal output from the antenna 11 during reception. And output to the modem unit 13. In addition, the RF unit 12 converts a transmission IF signal into a transmission signal having a transmission frequency by mixing a local transmission signal having a predetermined frequency with a transmission IF signal having an intermediate frequency during transmission, and outputs the transmission signal to the antenna 11.
The modem unit 13 performs demodulation processing on received signals and modulation processing on transmitted signals. The modulation / demodulation unit 13 includes a local oscillator and the like, converts the received IF signal output from the RF unit 12 into a baseband signal having a predetermined frequency, converts the baseband signal into a digital signal, and outputs the digital signal to the CDMA unit 14. . Further, the modem unit 13 converts the digital baseband signal for transmission output from the CDMA unit 14 into an analog signal, converts it into a transmission IF signal of a predetermined frequency, and outputs it to the RF unit 12.
The CDMA unit 14 performs an encoding process on a transmitted signal and a decoding process on a received signal. The CDMA unit 14 decodes the baseband signal output from the modem unit. Also, the CDMA unit 14 encodes a transmission signal, converts it into a baseband signal, and outputs it to the modem unit 13.

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

GPSアンテナ17は、図示せぬGPS衛星から送信された電波を受信し、この電波に基づいた受信信号をGPS受信部18へ出力する。GPS受信部18はこの受信信号を復調し、受信信号に基づいて、GPS衛星の正確な時刻情報や電波の伝播時間等の情報を取得する。GPS受信部18は、取得した情報に基づいて、3以上のGPS衛星までの距離を算出し、三角測量の原理により、3次元空間上の位置(緯度・経度・高度等)を算出する。
センサデータ取得部19は、互いに直交するX軸・Y軸・Z軸における各々の軸方向の磁気(磁界)を検出する磁気センサ、温度を検出する温度センサ、携帯端末の傾きを検出する物理量センサ、および上記の各センサによる検出結果を処理(A/D変換)するセンサ制御部とを備えている。これら各センサについては後述する。
The GPS antenna 17 receives a radio wave transmitted from a GPS satellite (not shown), and outputs a reception signal based on this radio wave to the GPS receiver 18. The GPS receiver 18 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 receiver 18 calculates a distance to three or more GPS satellites based on the acquired information, and calculates a position (latitude, longitude, altitude, etc.) in a three-dimensional space based on the principle of triangulation.
The sensor data acquisition unit 19 includes a magnetic sensor that detects magnetism (magnetic field) in each of the X-axis, Y-axis, and Z-axis orthogonal to each other, a temperature sensor that detects temperature, and a physical quantity sensor that detects the tilt of the mobile terminal And a sensor control unit that processes (A / D conversion) the detection results of the sensors. Each of these sensors will be described later.

主制御部20は、携帯端末装置内部の各部を制御する。この主制御部20は、RF部12、変復調部13、CDMA部14、音声処理部15、GPS受信部18、センサデータ取得部19、ROM31、およびRAM32とバスを介して制御信号あるいはデータの入出力を行う。ROM31は、主制御部20が実行する各種のプログラムや、出荷検査時に測定された温度センサおよび傾きセンサの初期特性値等を記憶する。RAM32は、主制御部20によって処理されるデータ等を一時的に記憶する。
報知手段33は、例えばスピーカ、バイブレータ、または発光ダイオード等を備え、予め設定されている着信モードに基づいて着信やメール受信等を、音、振動、または光等によってユーザに報知する。時計部34は計時機能を有し、年、月、日、曜日、時刻等の計時情報を生成する。主操作部35は、ユーザによって操作される文字入力用の入力キー、漢字・数字等の変換用の変換キー、カーソル操作用のカーソルキー、電源のオン/オフキー、通話キー、およびリダイアルキー等を備え、ユーザによる操作結果を示す信号を主制御部20へ出力する。
The main control unit 20 controls each unit inside the mobile terminal device. The main control unit 20 includes an RF unit 12, a modulation / demodulation unit 13, a CDMA unit 14, an audio processing unit 15, a GPS reception unit 18, a sensor data acquisition unit 19, a ROM 31, and a RAM 32 and a control signal or data input via a bus. Output. The ROM 31 stores various programs executed by the main control unit 20, initial characteristic values of the temperature sensor and the tilt sensor measured at the time of shipping inspection, and the like. The RAM 32 temporarily stores data processed by the main control unit 20.
The notification unit 33 includes, for example, a speaker, a vibrator, a light emitting diode, or the like, and notifies the user of an incoming call or mail reception based on a preset incoming mode by sound, vibration, light, or the like. The clock unit 34 has a clocking function, and generates clocking information such as year, month, date, day of the week, and time. The main operation unit 35 includes an input key for character input operated by the user, a conversion key for conversion of kanji and numbers, a cursor key for cursor operation, a power on / off key, a call key, a redial key, and the like. And a signal indicating an operation result by the user is output to the main control unit 20.

電子撮像部22は、光学レンズおよびCCD(Charge Coupled Device)等の撮像素子を備え、光学レンズにより撮像素子の撮像面上に結像した被写体の像を撮像素子によりアナログ信号に変換し、このアナログ信号をデジタル信号に変換して主制御部20へ出力する。表示部23は液晶ディスプレイ等を備え、主制御部20から出力された表示用の信号に基づいて画像や文字等を表示する。タッチパネル24は、表示部23が備える液晶ディスプレイの表面に組み込まれ、ユーザの押下による操作内容に基づいた信号を主制御部20へ出力する。副操作部25は、表示切替に用いられるプッシュスイッチ等を備えている。   The electronic image pickup unit 22 includes an optical lens and an image pickup device such as a CCD (Charge Coupled Device), converts an image of a subject formed on the image pickup surface of the image pickup device by the optical lens into an analog signal, and outputs the analog signal. The signal is converted into a digital signal and output to the main control unit 20. The display unit 23 includes a liquid crystal display and the like, and displays images, characters, and the like based on display signals output from the main control unit 20. The touch panel 24 is incorporated in the surface of the liquid crystal display included in the display unit 23, and outputs a signal based on the operation content by the user's pressing to the main control unit 20. The sub operation unit 25 includes a push switch used for display switching.

図2、図3は、本発明実施形態に係わる携帯端末装置の内部構成を機能展開して示したブロック図である。
本発明の携帯端末装置の制御中枢となる主制御部20を機能的に大別すれば、センサデータ取得部19(図2)と、方位データ演算部200(図3)とに分けられる。
図2に示すセンサデータ取得部19において、磁気センサ部191は磁気センサ41〜43と、電源投入後、各磁気センサ41〜43を初期化するセンサ初期化手段44〜46とを備えている。センサ初期化手段44〜46は、強磁界が印加されると磁気センサ41〜43における磁性体の磁化の向きが狂ってしまうので、初期状態にリセットするために用いられる。傾きセンサ部192は、物理量センサ51(傾きセンサ)と、物理量センサ51の出力値のオフセット、感度等の値を示す初期値を予め製造時に記憶する傾きセンサ初期値記憶手段52と、測定時に、傾きセンサ初期値記憶手段52によって記憶されている初期値に基づいて物理量センサ51の出力を補正する傾きセンサ補正手段53とを備えている。温度センサ部193は、温度センサ61と、温度センサ61の出力値のオフセット、感度等の値を示す初期値を予め製造時に記憶する温度センサ初期値記憶手段62と、測定時に、温度センサ初期値記憶手段62によって記憶されている初期値に基づいて温度センサの出力を補正する温度センサ補正手段63とを備えている。
FIG. 2 and FIG. 3 are block diagrams showing functional expansion of the internal configuration of the mobile terminal device according to the embodiment of the present invention.
The main control unit 20 serving as a control center of the mobile terminal device of the present invention is roughly divided into two parts: a sensor data acquisition unit 19 (FIG. 2) and an orientation data calculation unit 200 (FIG. 3).
In the sensor data acquisition unit 19 illustrated in FIG. 2, the magnetic sensor unit 191 includes magnetic sensors 41 to 43 and sensor initialization units 44 to 46 that initialize the magnetic sensors 41 to 43 after the power is turned on. The sensor initialization means 44 to 46 are used for resetting the magnetization direction of the magnetic material in the magnetic sensors 41 to 43 when a strong magnetic field is applied. The inclination sensor unit 192 includes a physical quantity sensor 51 (inclination sensor), an inclination sensor initial value storage means 52 that stores in advance initial values indicating values such as offset and sensitivity of the output value of the physical quantity sensor 51, and at the time of measurement. Inclination sensor correction means 53 for correcting the output of the physical quantity sensor 51 based on the initial value stored in the inclination sensor initial value storage means 52 is provided. The temperature sensor unit 193 includes a temperature sensor 61, a temperature sensor initial value storage means 62 that stores initial values indicating values such as offset and sensitivity of the output value of the temperature sensor 61 in advance, and a temperature sensor initial value at the time of measurement. Temperature sensor correction means 63 for correcting the output of the temperature sensor based on the initial value stored in the storage means 62 is provided.

切り替え手段194は、磁気センサ部191、傾きセンサ部192、および温度センサ部193からの出力を切り替え、いずれかのセンサ部191〜193から出力されたアナログ信号をA/D変換回路195に入力する。A/D変換回路195はこのアナログ信号をデジタル信号に変換する。スキャン範囲設定手段196は、各センサ191〜193の出力電圧を量子化してデジタル変換する際の変換単位となる電圧レンジ、量子化単位(例えば0.1mV刻みで量子化する等)をセンサ191〜193ごとに設定する。   The switching unit 194 switches outputs from the magnetic sensor unit 191, the tilt sensor unit 192, and the temperature sensor unit 193, and inputs an analog signal output from any one of the sensor units 191 to 193 to the A / D conversion circuit 195. . The A / D conversion circuit 195 converts this analog signal into a digital signal. The scan range setting unit 196 quantizes the output voltage of each of the sensors 191 to 193 and converts the voltage range and the quantization unit (for example, quantizing in increments of 0.1 mV) as a conversion unit when the digital conversion is performed. Set every 193.

図3に示す方位データ演算部200において、データ格納判定手段201は、キャリブレーション時に、磁気センサ41〜43の出力に対応したデジタル信号によって示される測定データを記憶手段204に格納すべきかどうかの判定等の、データ格納に関する処理を行う。オフセット推定手段202は、測定データに基づいてオフセットを推定する。有効性判定手段203は、オフセット推定手段202によって推定されたオフセットの有効性を判定する。記憶手段204は、測定データ等を記憶する。
方位演算手段205は、方位演算時に、測定データに基づいて方位を算出する。オフセット除去手段206は、測定データからオフセットを除去する。温度補正手段207は、測定データの温度補正が必要な場合に、測定データに対する温度補正を行う。傾き補正手段208は、傾き補正が必要な場合に、測定データに対する傾き補正を行う。なお、表示部23は、方位演算手段205によって算出された方位を画像として表示する。
In the azimuth data calculation unit 200 shown in FIG. 3, the data storage determination unit 201 determines whether or not the measurement data indicated by the digital signals corresponding to the outputs of the magnetic sensors 41 to 43 should be stored in the storage unit 204 during calibration. Processes related to data storage, such as The offset estimation unit 202 estimates an offset based on the measurement data. The validity determination unit 203 determines the validity of the offset estimated by the offset estimation unit 202. The storage unit 204 stores measurement data and the like.
The azimuth calculating means 205 calculates the azimuth based on the measurement data during the azimuth calculation. The offset removing unit 206 removes the offset from the measurement data. The temperature correction unit 207 performs temperature correction on the measurement data when temperature correction of the measurement data is necessary. The tilt correction unit 208 performs tilt correction on the measurement data when tilt correction is necessary. The display unit 23 displays the azimuth calculated by the azimuth calculation means 205 as an image.

以下、方位データ演算部200の動作について説明する。キャリブレーション時には、データ格納判定手段201に測定データが入力される。データ格納判定手段201は、データ格納判定アルゴリズムに基づいて、測定データを記憶手段204に格納すべきかどうか判定する。判定の結果、測定データを記憶手段204に格納すべきと判定した場合には、データ格納判定手段201は測定データを記憶手段204に格納する。また、データ格納判定手段201は、記憶手段204に格納された測定データの数をカウントし、測定データの数が所定の数に達した場合に、記憶手段204への測定データの格納を中止し、オフセット推定手段202に対してオフセットの推定を指示する。
オフセット推定手段202は、データ格納判定手段201によってオフセットの推定を指示された場合に、記憶手段204から測定データを読み出し、オフセット推定アルゴリズムに基づいてオフセットを推定する。また、オフセット推定手段202は、オフセットの推定結果を有効性判定手段203に通知する。有効性判定手段203は、オフセット推定手段202によってオフセットの推定結果が通知された場合に、記憶手段204から推定データを読み出し、有効性判定アルゴリズムに基づいて、推定されたオフセットが有効であるかどうか判定する。推定されたオフセットが有効であった場合、有効性判定手段203はこのオフセットを記憶手段に格納する。
Hereinafter, the operation of the azimuth data calculation unit 200 will be described. At the time of calibration, measurement data is input to the data storage determination unit 201. The data storage determination unit 201 determines whether or not the measurement data should be stored in the storage unit 204 based on the data storage determination algorithm. As a result of the determination, if it is determined that the measurement data should be stored in the storage unit 204, the data storage determination unit 201 stores the measurement data in the storage unit 204. The data storage determining unit 201 counts the number of measurement data stored in the storage unit 204, and stops storing the measurement data in the storage unit 204 when the number of measurement data reaches a predetermined number. The offset estimation means 202 is instructed to estimate the offset.
When the data storage determination unit 201 is instructed to estimate the offset, the offset estimation unit 202 reads the measurement data from the storage unit 204 and estimates the offset based on the offset estimation algorithm. The offset estimation unit 202 notifies the validity determination unit 203 of the offset estimation result. When the offset estimation unit 202 is notified of the offset estimation result, the validity determination unit 203 reads the estimation data from the storage unit 204 and determines whether the estimated offset is valid based on the validity determination algorithm. judge. If the estimated offset is valid, the validity determination unit 203 stores this offset in the storage unit.

方位演算時には、測定データが方位演算手段205に入力される。この測定データは、磁気データ、温度データ、および傾きデータである。方位演算手段205は、オフセット除去手段206へ磁気データおよび温度データを出力する。オフセット除去手段206は、これらの測定データが入力された場合に、記憶手段204からオフセットを読み出し、磁気データからオフセット分を除去することにより補正を行い、補正後の磁気データを方位演算手段205へ出力する。
また、方位演算手段205は、必要に応じてオフセット除去手段206に対して、磁気データの温度補正を指示する。この指示を受けたオフセット除去手段206は、温度補正手段207に対して温度データを出力する。温度補正手段207は、キャリブレーション時の温度データを記憶手段204から読み出し、現在の温度とキャリブレーション時の温度とに基づいて、現在の磁気データを補正し、オフセット除去手段206へ補正結果を通知する。オフセット除去手段206は、この補正結果に基づいて、補正後の磁気データを方位演算手段205へ出力する。
At the time of azimuth calculation, measurement data is input to the azimuth calculation means 205. This measurement data is magnetic data, temperature data, and inclination data. The azimuth calculating means 205 outputs magnetic data and temperature data to the offset removing means 206. When these measurement data are input, the offset removing unit 206 reads the offset from the storage unit 204, corrects the offset by removing the offset from the magnetic data, and sends the corrected magnetic data to the azimuth calculating unit 205. Output.
Further, the azimuth calculation means 205 instructs the offset removal means 206 to correct the temperature of the magnetic data as necessary. Upon receiving this instruction, the offset removing unit 206 outputs temperature data to the temperature correcting unit 207. The temperature correction unit 207 reads the temperature data at the time of calibration from the storage unit 204, corrects the current magnetic data based on the current temperature and the temperature at the time of calibration, and notifies the offset removal unit 206 of the correction result. To do. The offset removing unit 206 outputs the corrected magnetic data to the azimuth calculating unit 205 based on the correction result.

また、方位演算手段205は、必要に応じて傾き補正手段208に対して、磁気データおよび傾きデータを出力すると共に、磁気データの傾き補正を指示する。この指示を受けた傾き補正手段208は、傾き補正に必要なデータを記憶手段204から読み出し、そのデータに基づいて磁気データの傾き補正を行い、補正後の磁気データを方位演算手段205へ出力する。具体的には、磁気データと方位角と傾斜角とが関係付けられた変換テーブルを予め用意しておき、その変換テーブルに基づいて磁気データの傾き補正を行う。
方位演算手段205は、補正後の磁気データに基づいて方位を算出し、算出した方位を表示部23に通知する。表示部23は、例えば方位を示す情報を地図上に表示する。なお、方位の演算については、特開2003−90725号公報に記載されている方法を用いてもよい。
In addition, the azimuth calculation unit 205 outputs magnetic data and tilt data to the tilt correction unit 208 as necessary, and instructs the tilt correction of the magnetic data. In response to this instruction, the tilt correction unit 208 reads data necessary for tilt correction from the storage unit 204, performs tilt correction of the magnetic data based on the data, and outputs the corrected magnetic data to the azimuth calculation unit 205. . Specifically, a conversion table in which magnetic data, an azimuth angle, and an inclination angle are associated with each other is prepared in advance, and the inclination correction of the magnetic data is performed based on the conversion table.
The azimuth calculation means 205 calculates the azimuth based on the corrected magnetic data and notifies the display unit 23 of the calculated azimuth. The display unit 23 displays, for example, information indicating the direction on the map. For the calculation of the azimuth, a method described in Japanese Patent Application Laid-Open No. 2003-90725 may be used.

図4は、本発明実施形態に係わる携帯端末装置のキャリブレーション動作を説明するために引用したフローチャートである。以下、図4に示すフローチャートを参照しながら本発明実施形態の動作について詳細に説明する。
まず、主制御装置20の方位データ演算部200は、オフセット推定の開始を示すトリガーを検出する。ここでは、着信時のバイブレータ動作がトリガーとなる(S31)。具体的には、主制御部20は、着信を検出すると、着信モードがバイブレータを振動させるモードである場合、報知手段33のバイブレータを振動させる。図5に示されるように、携帯端末装置の中には、平面に載置した状態でバイブレータの振動により回転運動を行うタイプのものが存在する。図5(a)は、端末ユニット(1)と(2)を閉じた状態で机等の平面上に縦置きした状態であり、図5(b)に示すように、着信時のバイブレータ動作によって携帯端末装置が回転する構造になっている。回転動作は上記した縦置きに限らず、図5(c)に示されるように、横置きにしても同様に回転が行われるものであってもよい。
続いて方位データ演算部200は、上記した着信時のバイブレータの振動開始をトリガーに磁気センサ41〜43に対して計測を指示する(S32)。そして、磁気センサ41〜43からデータX、Y、Zを読み出し(S33)、データ格納判定アルゴリズムに基づいて、測定データをRAM32に格納するか否かを判定する(S34)。このデータ格納判定アルゴリズムは、ユーザが携帯端末装置をほとんど動かしていない場合にのみデータの取り込みが行われるために、方位円(または方位球)上の同一点近傍に測定データが集中したり、ユーザの動作スピードが均一でないためにデータ密度にまだらができたりするのを防止するためのものである。このとき、上記した様に、携帯端末装置は平面に載置した状態であれば回転しているので、必要なデータが取得できる。
FIG. 4 is a flowchart cited for explaining the calibration operation of the portable terminal device according to the embodiment of the present invention. Hereinafter, the operation of the embodiment of the present invention will be described in detail with reference to the flowchart shown in FIG.
First, the azimuth data calculation unit 200 of the main controller 20 detects a trigger indicating the start of offset estimation. Here, the vibrator operation at the time of incoming call is a trigger (S31). Specifically, when detecting the incoming call, the main control unit 20 vibrates the vibrator of the notification means 33 when the incoming call mode is a mode for vibrating the vibrator. As shown in FIG. 5, some types of portable terminal devices perform a rotational motion by vibration of a vibrator while being placed on a plane. FIG. 5A shows a state in which the terminal units (1) and (2) are closed and placed vertically on a plane such as a desk, and as shown in FIG. The mobile terminal device is structured to rotate. The rotation operation is not limited to the above-described vertical placement, and as shown in FIG.
Subsequently, the azimuth data calculation unit 200 instructs the magnetic sensors 41 to 43 to perform measurement using the vibration start of the vibrator at the time of the incoming call as a trigger (S32). Then, the data X, Y, and Z are read from the magnetic sensors 41 to 43 (S33), and it is determined whether to store the measurement data in the RAM 32 based on the data storage determination algorithm (S34). Since this data storage determination algorithm captures data only when the user hardly moves the mobile terminal device, the measurement data is concentrated near the same point on the azimuth circle (or azimuth sphere) This is to prevent the data density from being mottled because the operation speed is not uniform. At this time, as described above, since the mobile terminal device is rotated as long as it is placed on a flat surface, necessary data can be acquired.

ここで、Noと判定された場合には、0.1秒だけ待機し(S40)、ステップS32の処理に戻る。Yesと判定された場合には、RAM32に測定データを格納し(S35)、RAM32に格納された測定データの数が所定の数に達したかどうか判定する(S36)。ここで、Noと判定された場合には、上記したステップS40の処理へ進む。Yesと判定された場合には、測定データのサンプリングを中止すると共に、RAM32から測定データを読み出し、オフセット推定アルゴリズムに基づいて、オフセットを推定する(S37)。続いて、方位データ演算部200は、有効性判定アルゴリズムに基づいて、推定したオフセットが有効な値であるかどうか判定する(S38)。ここで、Yesと判定された場合には、推定したオフセットをRAM32に格納し(S39)、処理が終了する。Noと判定された場合には、処理が終了する。   Here, when it determines with No, it waits for 0.1 second (S40), and returns to the process of step S32. If it is determined Yes, the measurement data is stored in the RAM 32 (S35), and it is determined whether or not the number of measurement data stored in the RAM 32 has reached a predetermined number (S36). Here, when it determines with No, it progresses to the process of above-mentioned step S40. If the determination is Yes, the sampling of the measurement data is stopped, the measurement data is read from the RAM 32, and the offset is estimated based on the offset estimation algorithm (S37). Subsequently, the azimuth data calculation unit 200 determines whether the estimated offset is a valid value based on the validity determination algorithm (S38). Here, when it determines with Yes, the estimated offset is stored in RAM32 (S39), and a process is complete | finished. If it is determined No, the process ends.

ここで、方位円について補足する。携帯端末装置が水平面内で回転した場合、磁界値に変換された磁気センサ41の出力Xは正弦波状に変化し、磁界値に変換された磁気センサ42の出力Yは、出力Xと位相が90度だけ異なる正弦波状に変化する。オフセットを(X0,Y0)とすると、以下の関係式(1)が成り立つ(これを方位円と定義する)。
(X−X0)+(Y−Y0)=R …(1)
以上は2次元の場合であるが、3次元の場合も同様に以下の関係式(2)が成り立つ。
(X−X0)+(Y−Y0)+(Z−Z0)=R …(2)
Here, it supplements about an azimuth | direction circle. When the mobile terminal device rotates in a horizontal plane, the output X of the magnetic sensor 41 converted into the magnetic field value changes in a sine wave shape, and the output Y of the magnetic sensor 42 converted into the magnetic field value has a phase 90 with respect to the output X. It changes in a sinusoidal shape that differs by a degree. When the offset is (X0, Y0), the following relational expression (1) is established (this is defined as an azimuth circle).
(X−X0) 2 + (Y−Y0) 2 = R 2 (1)
The above is a two-dimensional case, but the following relational expression (2) is similarly established in the three-dimensional case.
(X−X0) 2 + (Y−Y0) 2 + (Z−Z0) 2 = R 2 (2)

続いて、データ格納判定アルゴリズムについて補足する。直前にRAM32に格納されたデータを(X0,Y0,Z0)とし、格納判定の対象となるデータを(X,Y,Z)とし、以下の条件式が満たされた場合にのみ、データ(X,Y,Z)をRAM32に格納する。dの値としては、方位円半径の1/10程度が好ましく、以下の演算式(3)で示される。   Subsequently, the data storage determination algorithm will be supplemented. The data stored in the RAM 32 immediately before is (X0, Y0, Z0), the data to be subjected to storage determination is (X, Y, Z), and the data (X , Y, Z) are stored in the RAM 32. The value of d is preferably about 1/10 of the azimuth radius, and is expressed by the following arithmetic expression (3).

Figure 2005345389
Figure 2005345389

次にもオフセット推定アルゴリズムについて補足する。測定データを(x,y,z)(i=1,・・・,N)、オフセットを(X0,Y0,Z0)、方位円半径をRとすると、以下の関係式(4)が成り立つ。
(x−X0)+(y−Y0)+(z−Z0)=R …(4)
ここで、最小二乗誤差εを次式(5)のように定義する。
Next, the offset estimation algorithm will be supplemented. When the measurement data is (x i , y i , z i ) (i = 1,..., N), the offset is (X0, Y0, Z0), and the azimuth circle radius is R, the following relational expression (4) Holds.
(x i -X0) 2 + (y i -Y0) 2 + (z i -Z0) 2 = R 2 (4)
Here, the least square error ε is defined as the following equation (5).

Figure 2005345389
Figure 2005345389

ここで、a=x +y +z 、b=−2x、c=−2y、d=−2z
D=(X0+Y0+Z0)−R ・・・(6)
とすれば、εは以下の演算式(7)で示される。
Here, a = x i 2 + y i 2 + z i 2 , b = −2x i , c = −2y i , d = −2z i
D = (X0 2 + Y0 2 + Z0 2 ) −R 2 (6)
Then, ε is expressed by the following arithmetic expression (7).

Figure 2005345389
Figure 2005345389

最小二乗誤差εを最小とする条件は、以下の演算式(8)となる。 The condition for minimizing the least square error ε is the following equation (8).

Figure 2005345389
Figure 2005345389

したがって、以下の演算式(9)式が成り立つ。 Therefore, the following arithmetic expression (9) is established.

Figure 2005345389
Figure 2005345389

ただし、mは、以下の演算式(10)で定義される。 However, m is defined by the following arithmetic expression (10).

Figure 2005345389
Figure 2005345389

この連立方程式(演算式9)を解くことにより、最小二乗誤差εを最小とするX0,Y0,Z0,Dが求まる。また、演算式(6)により、Rも求まる。   By solving this simultaneous equation (Equation 9), X0, Y0, Z0, and D that minimize the minimum square error ε are obtained. Further, R is also obtained from the arithmetic expression (6).

次に、有効性判定アルゴリズムについて説明する。ここでは、推定されたオフセットおよび方位円半径と、RAM32に格納された測定データから以下の演算式(11)〜(14)で示される値を算出する。   Next, the effectiveness determination algorithm will be described. Here, values represented by the following arithmetic expressions (11) to (14) are calculated from the estimated offset and azimuth circle radius and the measurement data stored in the RAM 32.

Figure 2005345389
Figure 2005345389

Figure 2005345389
Figure 2005345389

Figure 2005345389
Figure 2005345389

Figure 2005345389
Figure 2005345389

但し、Max(x)は、測定データx,・・・,xの中の最大値を表し、Min(x)は、測定データx,・・・,xの中の最小値を表す。また、σは標準偏差である。上記の値に対して、以下の判定基準が満たされるかどうか判定し、判定基準が満たされた場合に、推定したオフセットが有効であると判定する。
σ<F
>G
>G
>G
ここで、Fは0.1程度が好ましい。また、Gは1程度が好ましい。
However, Max (x i) is the minimum in the measurement data x 1, · · ·, represents the maximum value among the x N, Min (x i), the measurement data x 1, ···, x N Represents a value. Σ is a standard deviation. It is determined whether or not the following determination criterion is satisfied with respect to the above value, and when the determination criterion is satisfied, it is determined that the estimated offset is valid.
σ <F
w x > G
w y > G
w z > G
Here, F is preferably about 0.1. G is preferably about 1.

以上説明のように本発明によれば、携帯端末装置が机等の平面に載置された状態で、着信、もしくは着信音の再生を契機にバイブレータの振動に合わせて回転することを利用して自動的にキャリブレーションを実行することにより、キャリブレーションのための特別なユーザ操作を不要とし、ユーザに意識させることなくキャリブレーションを実行することができる。   As described above, according to the present invention, with the mobile terminal device placed on a flat surface such as a desk, the ringing or the reproduction of the ringtone is used to rotate according to the vibration of the vibrator. By executing calibration automatically, a special user operation for calibration is unnecessary, and calibration can be executed without making the user aware of it.

本発明に係わる携帯端末装置の一実施形態を示すブロック図である。It is a block diagram which shows one Embodiment of the portable terminal device concerning this invention. 本発明実施形態に係わる携帯端末装置の機能ブロック図である。It is a functional block diagram of the portable terminal device concerning an embodiment of the present invention. 本発明実施形態に係わる携帯端末装置の機能ブロック図である。It is a functional block diagram of the portable terminal device concerning an embodiment of the present invention. 本発明実施形態の動作を説明するために引用したフローチャートである。It is the flowchart quoted in order to demonstrate operation | movement of this invention embodiment. 本発明実施形態に係わる携帯端末の着信時における回転動作を説明するために引用した図である。It is the figure quoted in order to demonstrate rotation operation | movement at the time of the incoming call of the portable terminal concerning embodiment of this invention.

符号の説明Explanation of symbols

19…センサデータ取得部、20…主制御部、41〜43…磁気センサ、200…方位データ演算部、201…データ格納判定手段、202…オフセット推定手段、203…有効性判定手段、204…記憶手段

DESCRIPTION OF SYMBOLS 19 ... Sensor data acquisition part, 20 ... Main control part, 41-43 ... Magnetic sensor, 200 ... Direction data calculation part, 201 ... Data storage determination means, 202 ... Offset estimation means, 203 ... Effectiveness determination means, 204 ... Memory means

Claims (2)

着信時、平面に載置した状態でバイブレータの振動により回転運動を行う携帯端末装置であって、
地磁気を検出する磁気センサと、
前記磁気センサによって検出された地磁気に基づき方位測定を行うとともに、前記着信、もしくは着信音の再生を契機に前記バイブレータの振動に合わせて回転する前記磁気センサのキャリブレーションを行う制御手段と、
を具備することを特徴とする携帯端末装置。
A portable terminal device that performs rotational movement by vibration of a vibrator while being placed on a flat surface when receiving an incoming call,
A magnetic sensor for detecting geomagnetism,
Control means for performing azimuth measurement based on the geomagnetism detected by the magnetic sensor, and for calibrating the magnetic sensor that rotates in accordance with the vibration of the vibrator triggered by reproduction of the incoming call or ringtone,
A portable terminal device comprising:
前記制御手段は、
前記着信、もしくは着信音の再生を検出し、前記バイブレータの振動に合わせて回転する前記磁気センサに対する計測開始を指示し、取り込まれた計測データを所定のデータ格納判定アルゴリズムに従い記憶装置に格納するか否かを判定するデータ格納判定手段と、
前記記憶装置に格納された計測データを読み出し、所定のオフセット推定アルゴリズムに従いオフセットを推定するオフセット推定手段と、
前記推定したオフセット値が有効か否かを所定の有効性判定アルゴリズムに従い判定し、有効と判定されたオフセット値を前記記憶装置に格納する有効性判定手段と、
を具備することを特徴とする請求項1に記載の携帯端末装置。

The control means includes
Whether the incoming call or the reproduction of the ringtone is detected, the measurement start for the magnetic sensor rotating in accordance with the vibration of the vibrator is instructed, and the acquired measurement data is stored in the storage device according to a predetermined data storage determination algorithm Data storage determining means for determining whether or not,
An offset estimation means for reading measurement data stored in the storage device and estimating an offset according to a predetermined offset estimation algorithm;
Whether the estimated offset value is valid is determined according to a predetermined validity determination algorithm, and the validity determination means for storing the offset value determined to be valid in the storage device;
The mobile terminal device according to claim 1, further comprising:

JP2004167702A 2004-06-04 2004-06-04 Portable terminal apparatus Pending JP2005345389A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2004167702A JP2005345389A (en) 2004-06-04 2004-06-04 Portable terminal apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2004167702A JP2005345389A (en) 2004-06-04 2004-06-04 Portable terminal apparatus

Publications (1)

Publication Number Publication Date
JP2005345389A true JP2005345389A (en) 2005-12-15

Family

ID=35497902

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2004167702A Pending JP2005345389A (en) 2004-06-04 2004-06-04 Portable terminal apparatus

Country Status (1)

Country Link
JP (1) JP2005345389A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP3712741A1 (en) 2019-03-20 2020-09-23 Casio Computer Co., Ltd. Wearable device, electronic watch, magnetic sensor calibration method, and program

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP3712741A1 (en) 2019-03-20 2020-09-23 Casio Computer Co., Ltd. Wearable device, electronic watch, magnetic sensor calibration method, and program
US11959980B2 (en) 2019-03-20 2024-04-16 Casio Computer Co., Ltd. Wearable device, electronic watch, magnetic sensor calibration method, and recording medium

Similar Documents

Publication Publication Date Title
JP4539653B2 (en) Direction data calculation method, direction sensor unit, and portable electronic device
CN1957227B (en) Mobile bearing calculation device and bearing correction method
KR100847382B1 (en) Azimuth data producing method, azimuth sensor unit and portable electronic device
US8266808B2 (en) Portable electronic apparatus and geomagnetism sensor calibration method
KR20070030286A (en) Azimuth processing device, azimuth processing method, azimuth processing program, azimuth measuring device, a tilt offset correction method, azimuth measuring method, azimuth sensor unit and portable electronic device
JP4120648B2 (en) Portable terminal, portable terminal control method, program, and recording medium
JP2006005540A (en) Mobile terminal
JP2006047038A (en) Correction method for geomagnetic sensor
JP4229093B2 (en) Portable electronic device with azimuth detection function, magnetic sensor device, and calibration method thereof
JP2006098200A (en) Portable terminal
JP4433919B2 (en) Mobile terminal and tilt angle calculation method
JP4111211B2 (en) Direction data generation method, direction sensor unit, storage medium, and portable electronic device
JP4161985B2 (en) Portable electronic device with orientation detection function and calibration method thereof
JP2005345388A (en) Portable terminal apparatus
JP4312566B2 (en) Imaging device
JP2005345387A (en) Portable terminal apparatus
JP2005345389A (en) Portable terminal apparatus
JP5158433B2 (en) Information display device
JP2007271454A (en) Personal digital assistant, and fetching method of magnetic sensor data in the personal digital assistant
JP4462886B2 (en) Information display device
JP4839975B2 (en) Azimuth and tilt angle detection device, azimuth and tilt angle detection method, program, and portable terminal device
KR100725727B1 (en) Geographic information construction device using satellite picture and GPS
JP4609151B2 (en) Portable terminal device and method for controlling portable terminal device
JP2013038493A (en) Communication terminal device
JP4639672B2 (en) Geomagnetic sensor correction method