JP6330266B2 - Mobile terminal and program - Google Patents

Mobile terminal and program Download PDF

Info

Publication number
JP6330266B2
JP6330266B2 JP2013158414A JP2013158414A JP6330266B2 JP 6330266 B2 JP6330266 B2 JP 6330266B2 JP 2013158414 A JP2013158414 A JP 2013158414A JP 2013158414 A JP2013158414 A JP 2013158414A JP 6330266 B2 JP6330266 B2 JP 6330266B2
Authority
JP
Japan
Prior art keywords
detection data
geomagnetic sensor
data
detection
mobile terminal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
JP2013158414A
Other languages
Japanese (ja)
Other versions
JP2015029236A (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.)
Casio Computer Co Ltd
Original Assignee
Casio Computer Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Casio Computer Co Ltd filed Critical Casio Computer Co Ltd
Priority to JP2013158414A priority Critical patent/JP6330266B2/en
Publication of JP2015029236A publication Critical patent/JP2015029236A/en
Application granted granted Critical
Publication of JP6330266B2 publication Critical patent/JP6330266B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明は、磁場を検出する地磁気センサを有する携帯端末及びプログラムに関する。   The present invention relates to a portable terminal having a geomagnetic sensor for detecting a magnetic field and a program.

従来、携帯端末向けOS(Operating System)として、Android(登録商標) OS等が知られている。これらのOSの携帯端末には、様々なデバイスやセンサが標準で搭載されている。その中でも、地磁気センサは、電子コンパスやハイブリットGPS(Global Positioning System)等、用途が多岐にわたり、様々なソリューションへの搭載が期待されている。   Conventionally, an Android (registered trademark) OS or the like is known as an OS (Operating System) for portable terminals. Various devices and sensors are mounted as standard on these OS portable terminals. Among them, the geomagnetic sensor has a wide variety of uses such as an electronic compass and a hybrid GPS (Global Positioning System), and is expected to be installed in various solutions.

この地磁気センサの主な特徴としては、下記特徴(1)、(2)が挙げられる。
(1)地磁気程度の微弱な磁場を検出できる。
(2)3軸方向での検出が可能である。
The main features of the geomagnetic sensor include the following features (1) and (2).
(1) A weak magnetic field equivalent to geomagnetism can be detected.
(2) Detection in three axis directions is possible.

地磁気センサの問題点としては、下記問題点(1)が挙げられる。
(1)地磁気センサは、微弱な電気信号を扱うために、携帯電話通信等の電波の強度が大きいと検出データが正確な出力にならなくなる。
As a problem of the geomagnetic sensor, there is the following problem (1).
(1) Since the geomagnetic sensor handles weak electric signals, detection data cannot be output accurately when the intensity of radio waves for mobile phone communication or the like is large.

上記問題(1)を解決するため、電波強度が予め設定された基準電波強度を超えた場合に、地磁気センサ等の姿勢角度演算用センサの出力が誤っていると判断して、姿勢角度の演算を中止する携帯機器用の姿勢角度検出装置が知られている(例えば、特許文献1参照)。   To solve the above problem (1), when the radio field intensity exceeds a preset reference radio field intensity, it is determined that the output of the attitude angle calculation sensor such as a geomagnetic sensor is incorrect, and the attitude angle is calculated. There is known a posture angle detection device for a portable device that stops the operation (see, for example, Patent Document 1).

特許第3754289号公報Japanese Patent No. 3754289

地磁気センサを備える携帯端末がユーザにより動かされた場合に、検出される地磁気の検出データが一度大きくなり、その後正常値に落ち着く状態になる可能性が高い。   When a mobile terminal having a geomagnetic sensor is moved by a user, the detected geomagnetism detection data is likely to increase once and then settle down to a normal value.

これに対し、地磁気センサに対して環境磁場の変化が発生した場合に、地磁気の検出データは、一度変動してそのままの値を留める状態となる可能性が高い。また、磁力ノイズを持つ他のもの(スピーカ等を持つ精密機器など)が地磁気センサに近づいた場合に、地磁気の検出データは、大きな変化が常に起きる状態となる可能性が高い。   On the other hand, when the environmental magnetic field changes with respect to the geomagnetic sensor, the detection data of the geomagnetism is likely to be in a state in which it changes once and stays as it is. In addition, when another object having magnetic noise (such as a precision instrument having a speaker or the like) approaches the geomagnetic sensor, the geomagnetic detection data is likely to be in a state in which a large change always occurs.

しかし、地磁気センサの他の問題点として、下記問題点(2)があった。
(2)地磁気センサの検出データが変化した際に、その変化が、携帯端末が動いたことによる検出データの変化なのか、外部のノイズ(環境磁場の変化や、磁力ノイズが地磁気センサに近づいたこと)による検出データの変化なのかが判別できない。
However, there is the following problem (2) as another problem of the geomagnetic sensor.
(2) When the detection data of the geomagnetic sensor changes, whether the change is a change of the detection data due to the movement of the mobile terminal, external noise (change of the environmental magnetic field or magnetic noise approaches the geomagnetic sensor It is impossible to determine whether the detected data changes due to the above.

問題点(2)により、地磁気センサを携帯端末の電子コンパスに用いた場合に、外部のノイズにより検出データの変化が発生した場合に、当該電子コンパスが実際の方位とは全く別の方位を指し示すおそれがあった。同様に、地磁気センサを携帯端末の位置検出に用いた場合に、携帯端末が実際とは異なる位置を表示してしまうおそれがあった。   Due to the problem (2), when a geomagnetic sensor is used for an electronic compass of a portable terminal, when a change in detected data occurs due to external noise, the electronic compass points to a completely different direction from the actual direction. There was a fear. Similarly, when the geomagnetic sensor is used for detecting the position of the mobile terminal, the mobile terminal may display a position different from the actual position.

本発明の課題は、地磁気センサの検出データが変化した原因が、端末本体が動いたことによるものかを判別することである。 An object of the present invention is to determine whether the cause of change in detection data of a geomagnetic sensor is due to movement of a terminal body.

上記課題を解決するために、本発明の携帯端末は、磁場を検出する地磁気センサと、端末本体の動きを検出する動き検出手段と、前記地磁気センサの検出データと前記動き検出手段の検出データとに基づいて、前記地磁気センサの検出データが変化した原因が、前記端末本体が動いたことによるものか、あるいは外部のノイズによるものかを判別する判別手段と、前記判別手段の判別結果に応じて予め決められた処理を行う処理手段と、を備え、前記判別手段は、前記地磁気センサの検出データが予め設定された第1の閾値以上であり、前記動き検出手段の検出データが予め設定された第2の閾値以上である場合は、前記地磁気センサの検出データが変化した原因が、前記端末本体が動いたことによるものと判別し、前記地磁気センサの検出データが前記第1の閾値以上であり、前記動き検出手段の検出データが前記第2の閾値未満である場合は、前記地磁気センサの検出データが変化した原因が、前記外部のノイズによるものと判別する。   In order to solve the above problems, a mobile terminal of the present invention includes a geomagnetic sensor that detects a magnetic field, a motion detection unit that detects a motion of the terminal body, detection data of the geomagnetic sensor, and detection data of the motion detection unit. And determining means for determining whether the detection data of the geomagnetic sensor has changed due to movement of the terminal body or external noise, and depending on the determination result of the determining means Processing means for performing a predetermined process, wherein the determination means has detection data of the geomagnetic sensor equal to or higher than a preset first threshold value, and detection data of the motion detection means is preset. If it is greater than or equal to the second threshold, it is determined that the cause of the change in the detection data of the geomagnetic sensor is that the terminal body has moved, and the detection of the geomagnetic sensor Data is greater than or equal to the first threshold and the detection data of the motion detection means is less than the second threshold, the cause of the change in the detection data of the geomagnetic sensor is due to the external noise. Determine.

本発明によれば、地磁気センサの検出データが変化した原因が、端末本体が動いたことによるものかを判別することができる。 According to the present invention, it is possible to determine whether the cause of the change in the detection data of the geomagnetic sensor is due to the movement of the terminal body.

本発明の実施の形態の携帯端末の機能構成を示すブロック図である。It is a block diagram which shows the function structure of the portable terminal of embodiment of this invention. 第1の地磁気センサデータ処理を示すフローチャートである。It is a flowchart which shows a 1st geomagnetic sensor data process. 第2の地磁気センサデータ処理を示すフローチャートである。It is a flowchart which shows a 2nd geomagnetic sensor data process. 第3の地磁気センサデータ処理を示すフローチャートである。It is a flowchart which shows a 3rd geomagnetic sensor data process. 第4の地磁気センサデータ処理を示すフローチャートである。It is a flowchart which shows a 4th geomagnetic sensor data process. 第5の地磁気センサデータ処理を示すフローチャートである。It is a flowchart which shows a 5th geomagnetic sensor data process.

以下、添付図面を参照して本発明に係る第1〜第5の実施の形態を順に詳細に説明する。なお、本発明は、図示例に限定されるものではない。   Hereinafter, first to fifth embodiments of the present invention will be described in detail in order with reference to the accompanying drawings. The present invention is not limited to the illustrated example.

(第1の実施の形態)
図1〜図2を参照して、本発明に係る第1の実施の形態を説明する。先ず、図1を参照して、本実施の形態の装置構成を説明する。図1は、本実施の形態の携帯端末10の機能構成を示すブロック図である。
(First embodiment)
The first embodiment according to the present invention will be described with reference to FIGS. First, the apparatus configuration of the present embodiment will be described with reference to FIG. FIG. 1 is a block diagram illustrating a functional configuration of the mobile terminal 10 according to the present embodiment.

本実施の形態の携帯端末10は、Android(登録商標) OSがインストールされたハンディーターミナルであるものとするが、これに限定されるものではない。携帯端末10は、少なくとも地磁気センサと、携帯端末10の動きの検出部(動き検出部)と、を備える携帯端末であればよく、他のOSをインストールした携帯端末や、スマートフォン、PDA(Personal Digital Assistant)等、他の携帯端末としてもよい。   Although the portable terminal 10 of this Embodiment shall be a handy terminal in which Android (trademark) OS was installed, it is not limited to this. The mobile terminal 10 may be a mobile terminal provided with at least a geomagnetic sensor and a motion detection unit (motion detection unit) of the mobile terminal 10, and may be a mobile terminal installed with another OS, a smartphone, a PDA (Personal Digital). Other portable terminals such as Assistant) may be used.

図1に示すように、携帯端末10は、CPU(Central Processing Unit)11と、操作部12と、RAM(Random Access Memory)13と、表示部14と、ROM(Read Only Memory)15と、通信部16と、記憶部17と、地磁気センサ18と、動き検出部19と、電源部20と、を備える。携帯端末10の電源部20を除く各部は、バス21を介して互いに接続されている。   As shown in FIG. 1, the mobile terminal 10 includes a CPU (Central Processing Unit) 11, an operation unit 12, a RAM (Random Access Memory) 13, a display unit 14, a ROM (Read Only Memory) 15, and a communication. Unit 16, storage unit 17, geomagnetic sensor 18, motion detection unit 19, and power supply unit 20. Each part of the portable terminal 10 except for the power supply part 20 is connected to each other via a bus 21.

CPU11は、携帯端末10の各部を制御する。CPU11は、各種プログラムのうち指定されたプログラムをROM15から読み出してRAM13に展開し、展開されたプログラムとの協働で各種処理を実行する。   The CPU 11 controls each unit of the mobile terminal 10. The CPU 11 reads a designated program out of various programs from the ROM 15 and expands it in the RAM 13 and executes various processes in cooperation with the expanded program.

CPU11は、第1の地磁気センサデータ処理プログラム151に従い、地磁気センサ18の検出データが、予め設定された閾値T1以上であるか否かを判別し、地磁気センサ18の検出データが閾値T1以上であると判別された場合に、動き検出部19の検出データが、予め設定された閾値(閾値T2又はT3)以上であり携帯端末10の動きを示すか否かを判別する。そして、CPU11は、携帯端末10の動きを示さないと判別された場合に、地磁気センサ18の検出データを異常データとして処理し、携帯端末10の動きを示すと判別された場合に、地磁気センサ18の検出データを正常データとして処理する。   In accordance with the first geomagnetic sensor data processing program 151, the CPU 11 determines whether the detection data of the geomagnetic sensor 18 is equal to or greater than a preset threshold value T1, and the detection data of the geomagnetic sensor 18 is equal to or greater than the threshold value T1. Is determined, it is determined whether or not the detection data of the motion detection unit 19 is equal to or greater than a preset threshold value (threshold value T2 or T3) and indicates the motion of the mobile terminal 10. When the CPU 11 determines that the movement of the mobile terminal 10 is not indicated, the CPU 11 processes the detection data of the geomagnetic sensor 18 as abnormal data. When the CPU 11 determines that the movement of the mobile terminal 10 is indicated, the geomagnetic sensor 18 The detected data is processed as normal data.

操作部12は、文字入力キー、機能キー等の各種キーを有し、各キーの入力を受け付けて、その操作情報をCPU11に出力する。また、操作部12は、表示部14の表示パネル上に設けられたタッチパネルを有し、そのタッチ入力に応じた操作情報をCPU11に出力することとしてもよい。   The operation unit 12 has various keys such as a character input key and a function key, receives input of each key, and outputs the operation information to the CPU 11. The operation unit 12 may include a touch panel provided on the display panel of the display unit 14 and output operation information corresponding to the touch input to the CPU 11.

RAM13は、揮発性の半導体メモリ等の記憶部であり、各種データ及び各種プログラムを格納するワークエリアを有する。   The RAM 13 is a storage unit such as a volatile semiconductor memory, and has a work area for storing various data and various programs.

表示部14は、LCD(Liquid Crystal Display)、EL(ElectroLuminescent)ディスプレイ等の表示パネルを備える表示部であり、CPU11から入力される表示情報に応じて表示パネルに各種表示を行う。   The display unit 14 includes a display panel such as an LCD (Liquid Crystal Display) or an EL (ElectroLuminescent) display, and performs various displays on the display panel according to display information input from the CPU 11.

ROM15は、読み出し専用の半導体メモリである。ROM15には、地磁気センサデータ処理プログラム151が記憶されている。   The ROM 15 is a read-only semiconductor memory. The ROM 15 stores a geomagnetic sensor data processing program 151.

通信部16は、携帯電話通信方式の無線通信を行う。通信部16は、アンテナ、変復調回路、信号処理回路等を備え、外部機器から基地局を介して電波を受信し復調等して受信信号を得るとともに、送信用の信号を変調等してアンテナから電波を出力し基地局を介して外部機器に送信信号を送信する。しかし、通信部16は、無線LAN(Local Area Network)通信部とし、アクセスポイントを介してLAN内の他の機器と通信を行うものとしてもよい。   The communication unit 16 performs wireless communication using a mobile phone communication method. The communication unit 16 includes an antenna, a modulation / demodulation circuit, a signal processing circuit, and the like, receives a radio wave from an external device via a base station, obtains a received signal by performing demodulation, and modulates a transmission signal from the antenna. Outputs radio waves and transmits transmission signals to external devices via the base station. However, the communication unit 16 may be a wireless local area network (LAN) communication unit that communicates with other devices in the LAN via an access point.

記憶部17は、EEPROM(Electrically Erasable Programmable ROM)、フラッシュメモリ等、情報の読み出し及び書き込みが可能な半導体メモリである。   The storage unit 17 is a semiconductor memory capable of reading and writing information, such as an EEPROM (Electrically Erasable Programmable ROM) and a flash memory.

地磁気センサ18は、地磁気等の磁場を検出するセンサである。地磁気センサ18は、3次元で互いに直交する3軸方向の磁場(磁束密度)を検出し、検出した磁場の検出データをCPU11に出力する。また、地磁気センサ18は、磁場の検出データを、その検出時刻の情報とともに出力する。   The geomagnetic sensor 18 is a sensor that detects a magnetic field such as geomagnetism. The geomagnetic sensor 18 detects a magnetic field (magnetic flux density) in three dimensions orthogonal to each other in three dimensions, and outputs detected data of the detected magnetic field to the CPU 11. The geomagnetic sensor 18 outputs magnetic field detection data together with information on the detection time.

動き検出部19は、加速度センサ19Aと、ジャイロスコープ19Bと、を有する。加速度センサ19Aは、重力加速度や、携帯端末10移動時の加速度の携帯端末10に働く加速度を検出するセンサである。加速度センサ19Aは、3次元で互いに直交する3軸方向の加速度を検出し、検出した加速度の検出データをCPU11に出力する。また、加速度センサ19Aは、加速度の検出データを、その検出時刻の情報とともに出力する。   The motion detection unit 19 includes an acceleration sensor 19A and a gyroscope 19B. The acceleration sensor 19 </ b> A is a sensor that detects acceleration acting on the mobile terminal 10, such as gravitational acceleration or acceleration when the mobile terminal 10 moves. The acceleration sensor 19 </ b> A detects three-dimensional accelerations that are orthogonal to each other in three dimensions, and outputs detected acceleration detection data to the CPU 11. The acceleration sensor 19A outputs acceleration detection data together with information on the detection time.

ジャイロスコープ19Bは、携帯端末10回転時の角速度を検出するセンサである。ジャイロスコープ19Bは、3次元で互いに直交する3軸方向の角速度を検出し、検出した角速度の検出データをCPU11に出力する。また、ジャイロスコープ19Bは、角加速度の検出データを、その検出時刻の情報とともに出力する。   The gyroscope 19B is a sensor that detects an angular velocity when the mobile terminal 10 rotates. The gyroscope 19B detects three-dimensional angular velocities that are orthogonal to each other in three dimensions, and outputs detected angular velocity detection data to the CPU 11. The gyroscope 19B outputs angular acceleration detection data together with information on the detection time.

電源部20は、携帯端末10の各部に電源供給を行うリチウム電池等の二次電池、又は一次電池の電源部である。   The power supply unit 20 is a secondary battery such as a lithium battery that supplies power to each unit of the mobile terminal 10 or a power supply unit of a primary battery.

次に、図2を参照して、携帯端末10の動作を説明する。図2は、第1の地磁気センサデータ処理を示すフローチャートである。   Next, the operation of the mobile terminal 10 will be described with reference to FIG. FIG. 2 is a flowchart showing the first geomagnetic sensor data processing.

第1の地磁気センサデータ処理は、地磁気センサ18の検出データが通常よりも大きい場合に、動き検出部19の検出データにより携帯端末10に動きが発生しているか否かを判別し、その判別結果に応じて正常又は異常のデータ処理を行う処理である。携帯端末10において、例えば、ユーザ操作により電源オンがなされたことをトリガとして、CPU11が、ROM15から読み出され適宜RAM13に展開された第1の地磁気センサデータ処理プログラム151との協働で、第1の地磁気センサデータ処理を実行する。   In the first geomagnetic sensor data processing, when the detection data of the geomagnetic sensor 18 is larger than normal, it is determined whether or not the mobile terminal 10 is moving based on the detection data of the motion detection unit 19, and the determination result Is a process of performing normal or abnormal data processing according to the above. In the mobile terminal 10, for example, when the power is turned on by a user operation, the CPU 11 is operated in cooperation with the first geomagnetic sensor data processing program 151 read from the ROM 15 and appropriately expanded in the RAM 13. 1 geomagnetic sensor data processing is executed.

なお、地磁気センサ18、加速度センサ19A及びジャイロスコープ19Bは、電源オン中に、検出したデータをリアルタイムで出力し続けるものとする。   It is assumed that the geomagnetic sensor 18, the acceleration sensor 19A, and the gyroscope 19B continue to output the detected data in real time while the power is on.

図2に示すように、先ず、CPU11は、地磁気センサ18、加速度センサ19A及びジャイロスコープ19Bから出力された最新(現在時刻)の検出データを取得する(ステップS11)。ステップS11において、磁場、加速度、角速度それぞれ、3軸の検出データの絶対値(3軸の合成ベクトルの長さ)が算出されて取得され、RAM13に記憶されるものとする。   As shown in FIG. 2, first, the CPU 11 acquires the latest (current time) detection data output from the geomagnetic sensor 18, the acceleration sensor 19A, and the gyroscope 19B (step S11). In step S11, it is assumed that the absolute value (the length of the three-axis combined vector) of the three-axis detection data is calculated and acquired for each of the magnetic field, acceleration, and angular velocity, and stored in the RAM 13.

そして、CPU11は、ステップS11で取得した地磁気センサ18の検出データが、予め設定された閾値T1以上であるか否かを判別する(ステップS12)。ステップS12では、地磁気センサ18の検出データの絶対値と、閾値T1と、が比較される。   And CPU11 discriminate | determines whether the detection data of the geomagnetic sensor 18 acquired by step S11 is more than preset threshold value T1 (step S12). In step S12, the absolute value of the detection data of the geomagnetic sensor 18 is compared with the threshold value T1.

地磁気センサ18の3軸の検出データの絶対値を用いる理由は、3軸(3次元)のそのままの検出データを用いる場合に比べて、次の利点がある。
・向きに依存しないので、どの向きにでも対応可能である
・モニタリングすべき出力値が1個となるのでアルゴリズムが簡単である。このため、消費電力を抑えられる。
The reason why the absolute value of the detection data of the three axes of the geomagnetic sensor 18 is used is as follows compared to the case of using the detection data of the three axes (three dimensions) as they are.
・ Because it does not depend on the direction, it can be used in any direction. ・ The algorithm is simple because there is only one output value to be monitored. For this reason, power consumption can be suppressed.

閾値T1は、通常の地磁気における磁場の大きさ(日本では、約50[μT])よりも大きく、携帯端末10が動いたことと、外部のノイズ(環境磁場の変化又は磁力ノイズの接近)と、の少なくとも一つによる磁場の変化が発生したか否かを判別するための磁場の絶対値の閾値である。   The threshold value T1 is larger than the magnitude of the magnetic field in normal geomagnetism (in Japan, about 50 [μT]), the mobile terminal 10 has moved, and external noise (change in environmental magnetic field or magnetic noise approach). This is a threshold value of the absolute value of the magnetic field for determining whether or not a change in the magnetic field due to at least one of has occurred.

地磁気センサ18の検出データが閾値T1以上でない場合(ステップS12;NO)、CPU11は、地磁気センサ18の検出データの正常データ処理を行い(ステップS13)、ステップS11に移行する。正常データ処理とは、地磁気センサ18の検出データを正常データとしてそのまま出力させる処理である。携帯端末10のドライバは、地磁気センサ18の検出データをそのまま使用できる。   When the detection data of the geomagnetic sensor 18 is not equal to or greater than the threshold value T1 (step S12; NO), the CPU 11 performs normal data processing of the detection data of the geomagnetic sensor 18 (step S13), and proceeds to step S11. The normal data processing is processing for outputting the detection data of the geomagnetic sensor 18 as normal data as it is. The driver of the portable terminal 10 can use the detection data of the geomagnetic sensor 18 as it is.

地磁気センサ18の検出データが閾値T1以上である場合(ステップS12;YES)、CPU11は、ステップS11で取得した加速度センサ19Aの検出データが、予め設定された閾値T2以上であるか否かを判別する(ステップS14)。ステップS14では、加速度センサ19Aの3軸の検出データの絶対値と、閾値T2と、が比較される。   When the detection data of the geomagnetic sensor 18 is greater than or equal to the threshold T1 (step S12; YES), the CPU 11 determines whether or not the detection data of the acceleration sensor 19A acquired in step S11 is greater than or equal to a preset threshold T2. (Step S14). In step S14, the absolute value of the triaxial detection data of the acceleration sensor 19A is compared with the threshold value T2.

閾値T2は、携帯端末10に所定の加速度が発生し、携帯端末10が動いたか否かを判別するための加速度の絶対値の閾値である。加速度センサ19Aの検出データが閾値T2以上である場合(ステップS14;YES)、ステップS13に移行される。   The threshold value T2 is a threshold value of an absolute value of acceleration for determining whether or not a predetermined acceleration has occurred in the mobile terminal 10 and the mobile terminal 10 has moved. When the detection data of the acceleration sensor 19A is equal to or greater than the threshold value T2 (step S14; YES), the process proceeds to step S13.

加速度センサ19Aの検出データが閾値T2以上でない場合(ステップS14;NO)、CPU11は、ステップS11で取得したジャイロスコープ19Bの検出データの変化量が、予め設定された閾値T3以上であるか否かを判別する(ステップS15)。ステップS15では、ジャイロスコープ19Bの3軸の検出データの絶対値と、閾値T3と、が比較される。   When the detection data of the acceleration sensor 19A is not equal to or greater than the threshold value T2 (step S14; NO), the CPU 11 determines whether or not the change amount of the detection data of the gyroscope 19B acquired in step S11 is equal to or greater than a preset threshold value T3. Is determined (step S15). In step S15, the absolute value of the triaxial detection data of the gyroscope 19B is compared with the threshold value T3.

閾値T3は、携帯端末10に所定の角速度が発生し、携帯端末10が動いたか否かを判別するための角速度の絶対値の閾値である。ジャイロスコープ19Bの検出データが閾値T3以上である場合(ステップS15;YES)、ステップS13に移行される。   The threshold value T3 is a threshold value of an absolute value of the angular velocity for determining whether or not a predetermined angular velocity is generated in the mobile terminal 10 and the mobile terminal 10 has moved. When the detection data of the gyroscope 19B is equal to or greater than the threshold T3 (step S15; YES), the process proceeds to step S13.

ジャイロスコープ19Bの検出データが閾値T3以上でない場合(ステップS15;NO)、CPU11は、地磁気センサ18の検出データの異常データ処理を行い(ステップS16)、ステップS11に移行する。異常データ処理とは、地磁気センサ18の検出データが異常データであるものとし、当該検出データを、異常である旨の情報とともに出力させる処理である。なお、異常データ処理は、上記のものに限定されるものではなく、例えば、地磁気センサ18の検出データを出力させない処理としてもよい。   When the detection data of the gyroscope 19B is not equal to or greater than the threshold T3 (step S15; NO), the CPU 11 performs abnormal data processing of the detection data of the geomagnetic sensor 18 (step S16), and proceeds to step S11. The abnormal data processing is processing in which the detection data of the geomagnetic sensor 18 is abnormal data, and the detection data is output together with information indicating that it is abnormal. Note that the abnormal data processing is not limited to the above-described one, and for example, the abnormal data processing may be processing that does not output the detection data of the geomagnetic sensor 18.

地磁気センサ18の検出データを異常である旨の情報とともに出力させる場合に、携帯端末10のドライバは、異常である旨の情報に応じて、当該検出データを使用するか否かを決定する。なお、地磁気センサ18の検出データを出力させない場合に、携帯端末10のドライバは、当該検出データを使用できない。   When the detection data of the geomagnetic sensor 18 is output together with information indicating an abnormality, the driver of the portable terminal 10 determines whether to use the detection data according to the information indicating an abnormality. Note that when the detection data of the geomagnetic sensor 18 is not output, the driver of the mobile terminal 10 cannot use the detection data.

ステップS14,S15では、携帯端末10に物理的な動きがあるか否かを判別している。つまり、携帯端末10に物理的な動きがある場合に、地磁気センサ18の検出データが変化した原因が携帯端末10本体が動いたことによるものと判別されてステップS13に移行され、携帯端末10に物理的な動きがない場合に、地磁気センサ18の検出データが変化した原因が外部のノイズによるものと判別されてステップS16に移行される。   In steps S14 and S15, it is determined whether or not the mobile terminal 10 has a physical movement. That is, when the mobile terminal 10 has a physical movement, it is determined that the detection data of the geomagnetic sensor 18 has changed due to the movement of the mobile terminal 10 body, and the process proceeds to step S13. When there is no physical movement, the cause of the change in the detection data of the geomagnetic sensor 18 is determined to be due to external noise, and the process proceeds to step S16.

以上、本実施の形態によれば、携帯端末10は、地磁気センサ18の検出データと動き検出部19(加速度センサ19A又はジャイロスコープ19B)の検出データとに基づいて、地磁気センサ18の検出データが変化した原因が、端末本体が動いたことによるものか、あるいは外部のノイズによるものかを判別し、この判別結果に応じて予め決められた処理を行う。   As described above, according to the present embodiment, the mobile terminal 10 detects the detection data of the geomagnetic sensor 18 based on the detection data of the geomagnetic sensor 18 and the detection data of the motion detection unit 19 (acceleration sensor 19A or gyroscope 19B). It is determined whether the cause of the change is due to the movement of the terminal body or external noise, and a predetermined process is performed according to the determination result.

また、携帯端末10は、地磁気センサ18の検出データが、閾値T1以上であり、動き検出部19の検出データが、所定の閾値(閾値T2又はT3)以上である場合は、地磁気センサ18の検出データが変化した原因が、端末本体が動いたことによるものと判別し、地磁気センサ18の検出データが、閾値T1以上であり、動き検出部19の検出データが、所定の閾値(閾値T2又はT3)未満である場合は、地磁気センサ18の検出データが変化した原因が、外部のノイズによるものと判別する。   The mobile terminal 10 detects the geomagnetic sensor 18 when the detection data of the geomagnetic sensor 18 is equal to or greater than the threshold T1 and the detection data of the motion detection unit 19 is equal to or greater than a predetermined threshold (threshold T2 or T3). It is determined that the data change is caused by the movement of the terminal body, the detection data of the geomagnetic sensor 18 is equal to or greater than the threshold T1, and the detection data of the motion detection unit 19 is a predetermined threshold (threshold T2 or T3). ), It is determined that the cause of the change in the detection data of the geomagnetic sensor 18 is due to external noise.

このため、地磁気センサの検出データが変化した原因が、携帯端末10本体が動いたことによるものか、あるいは外部のノイズによるものかを判別することができる。   For this reason, it is possible to determine whether the change in the detection data of the geomagnetic sensor is due to the movement of the main body of the mobile terminal 10 or due to external noise.

また、携帯端末10は、地磁気センサ18の検出データが変化した原因が、外部のノイズによるもの判別された場合に、地磁気センサ18の検出データを異常データとして処理する。このため、地磁気センサ18の検出データに変化が発生した場合に、その原因として外部のノイズを判別でき、この原因の場合の当該検出データを異常データとすることができる。特に、携帯端末10のドライバは、地磁気センサ18の検出データが異常であるとして認識できる。   The portable terminal 10 processes the detection data of the geomagnetic sensor 18 as abnormal data when it is determined that the detection data of the geomagnetic sensor 18 has changed due to external noise. For this reason, when a change occurs in the detection data of the geomagnetic sensor 18, external noise can be determined as the cause, and the detection data in the case of this cause can be used as abnormal data. In particular, the driver of the mobile terminal 10 can recognize that the detection data of the geomagnetic sensor 18 is abnormal.

また、携帯端末10は、地磁気センサ18の検出データが閾値T1以上でないと判別された場合、又は動き検出部19の検出データが閾値T2以上であると判別された場合に、地磁気センサ18の検出データを正常データとして処理する。このため、地磁気センサ18の検出データに大きな変化がなく通常である場合、又は地磁気センサ18の検出データが変化した原因が、携帯端末10本体が動いたことによるものである場合に、地磁気センサ18の検出データを正常データとして処理することができる。特に、携帯端末10のドライバは、地磁気センサ18の検出データを正常データであるとして使用できる。   The mobile terminal 10 detects the geomagnetic sensor 18 when it is determined that the detection data of the geomagnetic sensor 18 is not equal to or greater than the threshold T1, or when the detection data of the motion detection unit 19 is determined to be equal to or greater than the threshold T2. Process the data as normal data. For this reason, when the detection data of the geomagnetic sensor 18 is normal without significant change, or when the cause of the change of the detection data of the geomagnetic sensor 18 is that the main body of the mobile terminal 10 has moved, the geomagnetic sensor 18 The detected data can be processed as normal data. In particular, the driver of the mobile terminal 10 can use the detection data of the geomagnetic sensor 18 as normal data.

また、動き検出部19は、加速度センサ19A及びジャイロスコープ19Bを有し、加速度センサ19Aの検出データが閾値T2以上、又はジャイロスコープ19Bの検出データが閾値T3以上であるか否かにより、携帯端末10の動きを示すか否かを判別する。このため、加速度と角速度との検出データから、携帯端末10の動きの発生を正確に判別できる。   The motion detection unit 19 includes an acceleration sensor 19A and a gyroscope 19B. Depending on whether the detection data of the acceleration sensor 19A is equal to or higher than the threshold T2 or the detection data of the gyroscope 19B is equal to or higher than the threshold T3, the mobile terminal It is determined whether or not 10 movements are indicated. For this reason, it is possible to accurately determine the movement of the mobile terminal 10 from the detection data of the acceleration and the angular velocity.

(第2の実施の形態)
図3を参照して、本発明に係る第2の実施の形態を説明する。図3は、第2の地磁気センサデータ処理を示すフローチャートである。
(Second Embodiment)
A second embodiment according to the present invention will be described with reference to FIG. FIG. 3 is a flowchart showing the second geomagnetic sensor data processing.

本実施の形態の装置構成は、第1の実施の形態の携帯端末10と同様の構成である。但し、ROM15には、第1の地磁気センサデータ処理プログラム151に代えて、第2の地磁気センサデータ処理プログラムが記憶されているものとする。   The apparatus configuration of the present embodiment is the same as that of the mobile terminal 10 of the first embodiment. However, it is assumed that the ROM 15 stores a second geomagnetic sensor data processing program instead of the first geomagnetic sensor data processing program 151.

次に、図3を参照して、携帯端末10の動作を説明する。第2の地磁気センサデータ処理は、地磁気センサ18の検出データが通常よりも大きい場合に、動き検出部19の検出データの変化により携帯端末10に動きが発生しているか否かを判別し、その判別結果に応じて正常又は異常のデータ処理を行う処理である。   Next, the operation of the mobile terminal 10 will be described with reference to FIG. In the second geomagnetic sensor data processing, when the detection data of the geomagnetic sensor 18 is larger than normal, it is determined whether or not the mobile terminal 10 is moving due to a change in the detection data of the motion detection unit 19. This is a process for performing normal or abnormal data processing according to the determination result.

携帯端末10において、例えば、ユーザ操作により電源オンがなされたことをトリガとして、CPU11が、ROM15から読み出され適宜RAM13に展開された第2の地磁気センサデータ処理プログラムとの協働で、第2の地磁気センサデータ処理を実行する。   In the portable terminal 10, for example, triggered by the power-on by a user operation, the CPU 11 cooperates with the second geomagnetic sensor data processing program read from the ROM 15 and appropriately expanded in the RAM 13. The geomagnetic sensor data processing is executed.

図3に示すように、ステップS21〜S23,S26は、第1の実施の形態の第1の地磁気センサデータ処理のステップS11〜S13,S16と同様である。但し、加速度センサ19A及びジャイロスコープ19Bから出力された検出データは、少なくとも現在時刻から予め設定された第1の所定時間の履歴分がRAM13に記憶されるものとする。ステップS21において、CPU11は、地磁気センサ18の検出データを取得するとともに、RAM13を参照し、加速度センサ19A及びジャイロスコープ19Bの第1の所定時間の検出データを取得するものとする。   As shown in FIG. 3, steps S21 to S23 and S26 are the same as steps S11 to S13 and S16 of the first geomagnetic sensor data processing according to the first embodiment. However, as for the detection data output from the acceleration sensor 19A and the gyroscope 19B, a history for at least a first predetermined time set in advance from the current time is stored in the RAM 13. In step S21, the CPU 11 acquires the detection data of the geomagnetic sensor 18, and refers to the RAM 13, and acquires the detection data of the acceleration sensor 19A and the gyroscope 19B for the first predetermined time.

地磁気センサ18の検出データが閾値T1以上である場合(ステップS22;YES)、CPU11は、ステップS21で取得した加速度センサ19Aの検出データの第1の所定時間の変化量が、予め設定された閾値T4以上であるか否かを判別する(ステップS24)。ステップS24では、加速度センサ19Aの3軸の検出データの絶対値の第1の所定時間における変化量と、閾値T4と、が比較される。   When the detection data of the geomagnetic sensor 18 is equal to or greater than the threshold value T1 (step S22; YES), the CPU 11 sets a predetermined threshold value for the amount of change in the detection data of the acceleration sensor 19A acquired in step S21 for the first predetermined time. It is determined whether or not it is T4 or more (step S24). In step S24, the change amount in the first predetermined time of the absolute value of the triaxial detection data of the acceleration sensor 19A is compared with the threshold value T4.

閾値T4は、携帯端末10に所定の加速度が発生し、携帯端末10が動いたか否かを判別するための加速度の絶対値の第1の所定時間における変化量の閾値である。加速度センサ19Aの検出データの変化量が閾値T4以上である場合(ステップS24;YES)、ステップS23に移行される。   The threshold value T4 is a threshold value of a change amount in the first predetermined time of the absolute value of the acceleration for determining whether or not the mobile terminal 10 has moved and the mobile terminal 10 has moved. When the change amount of the detection data of the acceleration sensor 19A is equal to or greater than the threshold value T4 (step S24; YES), the process proceeds to step S23.

加速度センサ19Aの検出データの変化量が閾値T4以上でない場合(ステップS24;NO)、CPU11は、ステップS21で取得したジャイロスコープ19Bの検出データの第1の所定時間の変化量が、予め設定された閾値T5以上であるか否かを判別する(ステップS25)。ステップS25では、ジャイロスコープ19Bの3軸の検出データの合成ベクトルの絶対値(長さ)の第1の所定時間における変化量と、閾値T5と、が比較される。また、ステップS25の第1の所定時間は、ステップS24の第1の所定時間と異なることとしてもよい。   When the change amount of the detection data of the acceleration sensor 19A is not equal to or greater than the threshold value T4 (step S24; NO), the CPU 11 presets the change amount of the detection data of the gyroscope 19B acquired in step S21 for the first predetermined time. It is determined whether or not the threshold value T5 is greater than or equal to (step S25). In step S25, the amount of change in the first predetermined time of the absolute value (length) of the combined vector of the three-axis detection data of the gyroscope 19B is compared with the threshold value T5. Further, the first predetermined time in step S25 may be different from the first predetermined time in step S24.

閾値T5は、携帯端末10に所定の角速度が発生し、携帯端末10が動いたか否かを判別するための角速度の絶対値の第1の所定時間における変化量の閾値である。ジャイロスコープ19Bの検出データの変化量が閾値T5以上である場合(ステップS25;YES)、ステップS23に移行される。ジャイロスコープ19Bの検出データの変化量が閾値T5以上でない場合(ステップS25;NO)、ステップS26に移行される。   The threshold value T5 is a threshold value of a change amount in the first predetermined time of the absolute value of the angular velocity for determining whether or not the mobile terminal 10 has moved and the mobile terminal 10 has moved. When the amount of change in the detection data of the gyroscope 19B is equal to or greater than the threshold T5 (step S25; YES), the process proceeds to step S23. When the change amount of the detection data of the gyroscope 19B is not equal to or greater than the threshold T5 (step S25; NO), the process proceeds to step S26.

以上、本実施の形態によれば、携帯端末10は、動き検出部19(加速度センサ19A又はジャイロスコープ19B)の検出データの変化量が、所定の閾値(閾値T4又はT5)以上であるか否かを判別する。このため、加速度と角速度との検出データの変化から、携帯端末10の動きの発生を正確に判別できる。   As described above, according to the present embodiment, mobile terminal 10 determines whether or not the amount of change in detection data of motion detector 19 (acceleration sensor 19A or gyroscope 19B) is equal to or greater than a predetermined threshold (threshold T4 or T5). Is determined. For this reason, it is possible to accurately determine the occurrence of the movement of the mobile terminal 10 from the change in the detection data of the acceleration and the angular velocity.

(第3の実施の形態)
図4を参照して、本発明に係る第3の実施の形態を説明する。図4は、第3の地磁気センサデータ処理を示すフローチャートである。
(Third embodiment)
A third embodiment according to the present invention will be described with reference to FIG. FIG. 4 is a flowchart showing the third geomagnetic sensor data processing.

本実施の形態の装置構成は、第1の実施の形態の携帯端末10と同様の構成である。但し、ROM15には、第1の地磁気センサデータ処理プログラム151に代えて、第3の地磁気センサデータ処理プログラムが記憶されているものとする。   The apparatus configuration of the present embodiment is the same as that of the mobile terminal 10 of the first embodiment. However, it is assumed that the ROM 15 stores a third geomagnetic sensor data processing program in place of the first geomagnetic sensor data processing program 151.

次に、図4を参照して、携帯端末10の動作を説明する。第3の地磁気センサデータ処理は、地磁気センサ18の検出データの変化が通常よりも大きい場合に、動き検出部19の検出データの変化により携帯端末10に動きが発生しているか否かを判別し、その判別結果に応じて正常又は異常のデータ処理を行う処理である。   Next, the operation of the mobile terminal 10 will be described with reference to FIG. In the third geomagnetic sensor data processing, when the change in the detection data of the geomagnetic sensor 18 is larger than usual, it is determined whether or not the mobile terminal 10 is moving due to the change in the detection data of the motion detection unit 19. In this process, normal or abnormal data processing is performed according to the determination result.

携帯端末10において、例えば、ユーザ操作により電源オンがなされたことをトリガとして、CPU11が、ROM15から読み出され適宜RAM13に展開された第3の地磁気センサデータ処理プログラムとの協働で、第3の地磁気センサデータ処理を実行する。   In the mobile terminal 10, for example, when the power is turned on by user operation as a trigger, the CPU 11 cooperates with the third geomagnetic sensor data processing program read from the ROM 15 and appropriately expanded in the RAM 13. The geomagnetic sensor data processing is executed.

図4に示すように、ステップS31,S33〜S36は、第2の実施の形態の第2の地磁気センサデータ処理のステップS21,S23〜S26と同様である。但し、地磁気センサ18から出力された検出データは、少なくとも現在時刻から第1の所定時間の履歴分がRAM13に記憶されるものとする。ステップS31において、CPU11は、RAM13を参照し、地磁気センサ18の第1の所定時間の検出データを取得するとともに、地磁気センサ18、加速度センサ19A及びジャイロスコープ19Bの第1の所定時間の検出データを取得するものとする。   As shown in FIG. 4, steps S31 and S33 to S36 are the same as steps S21 and S23 to S26 of the second geomagnetic sensor data processing according to the second embodiment. However, as for the detection data output from the geomagnetic sensor 18, it is assumed that the history of at least the first predetermined time from the current time is stored in the RAM 13. In step S31, the CPU 11 refers to the RAM 13, obtains detection data for the first predetermined time of the geomagnetic sensor 18, and obtains detection data for the first predetermined time of the geomagnetic sensor 18, the acceleration sensor 19A, and the gyroscope 19B. Shall be acquired.

ステップS31の後、CPU11は、ステップS31で取得した地磁気センサ18の第1の所定時間の検出データの変化量が、予め設定された閾値T6以上であるか否かを判別する(ステップS32)。ステップS32では、地磁気センサ18の3軸の検出データの絶対値の第1の所定時間における変化量と、閾値T6と、が比較される。また、ステップS32の第1の所定時間は、ステップS34やステップS35の第1の所定時間と異なることとしてもよい。   After step S31, the CPU 11 determines whether or not the change amount of the detection data for the first predetermined time of the geomagnetic sensor 18 acquired in step S31 is equal to or greater than a preset threshold value T6 (step S32). In step S32, the amount of change in the absolute value of the triaxial detection data of the geomagnetic sensor 18 in the first predetermined time is compared with the threshold value T6. The first predetermined time in step S32 may be different from the first predetermined time in step S34 or step S35.

閾値T6は、携帯端末10が動いたこと、外部のノイズ(環境磁場の変化又は磁力ノイズの接近)と、の少なくとも一つによる磁場の変化が発生したか否かを判別するための磁気の絶対値の第1の所定時間における変化量の閾値である。地磁気センサ18の検出データの変化量が閾値T6以上でない場合(ステップS32;NO)、ステップS33に移行される。地磁気センサ18の検出データの変化量が閾値T6以上である場合(ステップS32;YES)、ステップS34に移行される。   The threshold T6 is an absolute value of magnetism for determining whether or not a change in the magnetic field has occurred due to at least one of the movement of the mobile terminal 10 and external noise (change in environmental magnetic field or magnetic noise). It is a threshold value of the amount of change in the first predetermined time of the value. If the amount of change in the detection data of the geomagnetic sensor 18 is not equal to or greater than the threshold T6 (step S32; NO), the process proceeds to step S33. When the change amount of the detection data of the geomagnetic sensor 18 is equal to or greater than the threshold T6 (step S32; YES), the process proceeds to step S34.

以上、本実施の形態によれば、携帯端末10は、地磁気センサ18の検出データの変化量が、閾値T6以上であるか否かを判別する。このため、地磁気の検出データの変化から、携帯端末10の動き、又は外部のノイズによる地磁気の検出データの変化の発生を正確に判別できる。   As mentioned above, according to this Embodiment, the portable terminal 10 discriminate | determines whether the variation | change_quantity of the detection data of the geomagnetic sensor 18 is more than threshold value T6. For this reason, it is possible to accurately determine the occurrence of a change in the geomagnetic detection data due to the movement of the mobile terminal 10 or external noise from the change in the geomagnetic detection data.

(第4の実施の形態)
図5を参照して、本発明に係る第4の実施の形態を説明する。図5は、第4の地磁気センサデータ処理を示すフローチャートである。
(Fourth embodiment)
A fourth embodiment according to the present invention will be described with reference to FIG. FIG. 5 is a flowchart showing the fourth geomagnetic sensor data processing.

本実施の形態の装置構成は、第1の実施の形態の携帯端末10と同様の構成である。但し、ROM15には、第1の地磁気センサデータ処理プログラム151に代えて、第4の地磁気センサデータ処理プログラムが記憶されているものとする。   The apparatus configuration of the present embodiment is the same as that of the mobile terminal 10 of the first embodiment. However, it is assumed that the ROM 15 stores a fourth geomagnetic sensor data processing program instead of the first geomagnetic sensor data processing program 151.

次に、図5を参照して、携帯端末10の動作を説明する。第4の地磁気センサデータ処理は、地磁気センサ18の検出データの変化が通常よりも大きい場合に、動き検出部19の検出データの変化により携帯端末10に動きが発生しているか否かを判別し、その判別結果と地磁気センサ18の検出データのパターンとに応じて正常又は異常のデータ処理を行う処理である。   Next, the operation of the mobile terminal 10 will be described with reference to FIG. In the fourth geomagnetic sensor data processing, when the change in the detection data of the geomagnetic sensor 18 is larger than usual, it is determined whether or not the mobile terminal 10 is moving due to the change in the detection data of the motion detection unit 19. In this process, normal or abnormal data processing is performed in accordance with the determination result and the pattern of the detection data of the geomagnetic sensor 18.

携帯端末10において、例えば、ユーザ操作により電源オンがなされたことをトリガとして、CPU11が、ROM15から読み出され適宜RAM13に展開された第4の地磁気センサデータ処理プログラムとの協働で、第4の地磁気センサデータ処理を実行する。   In the mobile terminal 10, for example, triggered by the power-on by user operation, the CPU 11 cooperates with the fourth geomagnetic sensor data processing program read from the ROM 15 and appropriately expanded in the RAM 13. The geomagnetic sensor data processing is executed.

図5に示すように、ステップS41〜S46は、上記第3の実施の形態の第3の地磁気センサデータ処理のステップS31〜S36と同様である。但し、加速度センサ19Aの検出データの変化量が閾値T4以上である場合(ステップS44;YES)、又はジャイロスコープ19Bの検出データの変化量が閾値T5以上である場合(ステップS45;YES)、ステップS47に移行される。   As shown in FIG. 5, steps S41 to S46 are the same as steps S31 to S36 of the third geomagnetic sensor data process of the third embodiment. However, when the change amount of the detection data of the acceleration sensor 19A is equal to or greater than the threshold value T4 (step S44; YES), or when the change amount of the detection data of the gyroscope 19B is equal to or greater than the threshold value T5 (step S45; YES), step The process proceeds to S47.

そして、CPU11は、ステップS41で取得した地磁気センサ18の現在時刻前後の第2の所定時間の検出データのパターンを参照(モニタ)し、当該検出データのパターンが携帯端末10のどの状態に対応するかと、その検出データの有効性と、を判定する(ステップS47)。   Then, the CPU 11 refers to (monitors) the detection data pattern of the second predetermined time before and after the current time of the geomagnetic sensor 18 acquired in step S <b> 41, and the detection data pattern corresponds to which state of the mobile terminal 10. The validity of the detected data is determined (step S47).

ステップS47では、CPU11は、例えば、参照した地磁気センサ18の検出データのパターンと、携帯端末10が動いたときの検出データのモデルパターン、環境磁場の変化がある場合の検出データのモデルパターン、及び磁力ノイズの接近の場合の検出データのパターンと、を比較する。   In step S47, the CPU 11, for example, the detected data pattern of the referenced geomagnetic sensor 18, the model pattern of the detected data when the mobile terminal 10 moves, the model pattern of the detected data when there is a change in the environmental magnetic field, and The detection data pattern in the case of approaching magnetic noise is compared.

その比較結果に応じて、CPU11は、地磁気センサ18の検出データのパターンが、携帯端末10が動いたときのパターンに近い場合には、携帯端末10が動いた状態に対応し、正常データと見なせるため検出データが有効であると判定する。また、CPU11は、地磁気センサ18の検出データのパターンが、環境磁場の変化、又は磁力ノイズの接近の場合のパターンに近い場合には、環境磁場の変化、又は磁力ノイズの接近の場合の状態に対応し、異常データと見なせるため検出データが有効でないと判定する。   In accordance with the comparison result, when the pattern of the detection data of the geomagnetic sensor 18 is close to the pattern when the mobile terminal 10 moves, the CPU 11 corresponds to the state where the mobile terminal 10 moves and can be regarded as normal data. Therefore, it is determined that the detected data is valid. Further, when the pattern of the detection data of the geomagnetic sensor 18 is close to the pattern in the case of the change of the environmental magnetic field or the approach of the magnetic noise, the CPU 11 enters the state in the case of the change of the environmental magnetic field or the approach of the magnetic noise. Correspondingly, the detected data is determined to be invalid because it can be regarded as abnormal data.

なお、ステップS47において、地磁気センサ18の検出データのパターンが、各種閾値等を用いて参照されることにより各種状態が判定されることとしてもよい。例えば、地磁気センサ18の検出データのパターンが、一旦上がった後、下がる(正常値に戻る)場合には、携帯端末10が動いた状態であると判定される。地磁気センサ18の検出データのパターンが、一旦上がった後、そのままの値を留める場合には、環境磁場の変化の状態であると判定される。地磁気センサ18の検出データのパターンが、大きな変化が常に続く場合には、磁力ノイズの接近の状態であると判定される。   In step S47, various states may be determined by referring to the pattern of detection data of the geomagnetic sensor 18 using various threshold values. For example, when the pattern of the detection data of the geomagnetic sensor 18 once rises and then falls (returns to a normal value), it is determined that the mobile terminal 10 is in a moving state. If the pattern of the detection data of the geomagnetic sensor 18 temporarily rises and then remains unchanged, it is determined that the environmental magnetic field has changed. When the pattern of the detection data of the geomagnetic sensor 18 constantly changes greatly, it is determined that the magnetic noise is approaching.

そして、CPU11は、ステップS47で判定した地磁気センサ18の検出データの有効性が有効であるか否かを判別する(ステップS48)。地磁気センサ18の検出データのパターンが有効である場合(ステップS48;YES)、ステップS43に移行される。   And CPU11 discriminate | determines whether the validity of the detection data of the geomagnetic sensor 18 determined by step S47 is effective (step S48). If the pattern of the detection data of the geomagnetic sensor 18 is valid (step S48; YES), the process proceeds to step S43.

地磁気センサ18の検出データのパターンが有効でない場合(ステップS48;NO)、CPU11は、ステップS46に移行される。このとき、ステップS46において、CPU11は、異常データ処理として、地磁気センサ18の検出データが異常データであるものとし、当該検出データを、そのパターンに対応する携帯端末10の状態(環境磁場の変化又は磁力ノイズの接近)の識別情報及びその状態とともに出力させる処理を行うものとする。   When the pattern of the detection data of the geomagnetic sensor 18 is not valid (step S48; NO), the CPU 11 proceeds to step S46. At this time, in step S46, the CPU 11 assumes that the detected data of the geomagnetic sensor 18 is abnormal data as abnormal data processing, and uses the detected data as the state of the mobile terminal 10 corresponding to the pattern (change in environmental magnetic field or It is assumed that a process of outputting together with identification information of the magnetic noise approach and its state is performed.

環境磁場の変化が発生した場合、地磁気センサ18の検出データのオフセット補正により、環境磁場の変化による検出データへの影響が低減できる。このため、ステップS46において、携帯端末10の状態の識別情報が環境磁場の変化を示す場合に、当該識別情報は、オフセット補正又はキャリブレーションのアラーム情報として機能する。携帯端末10のドライバは、環境磁場の変化の状態の識別情報に応じて、地磁気センサ18の検出データのオフセット補正や、キャリブレーションを行う。   When a change in the environmental magnetic field occurs, the influence of the change in the environmental magnetic field on the detection data can be reduced by offset correction of the detection data of the geomagnetic sensor 18. For this reason, when the identification information on the state of the portable terminal 10 indicates a change in the environmental magnetic field in step S46, the identification information functions as alarm information for offset correction or calibration. The driver of the portable terminal 10 performs offset correction and calibration of the detection data of the geomagnetic sensor 18 according to the identification information of the change state of the environmental magnetic field.

また、磁力ノイズの接近が発生した場合、検出データへの影響を低減させることは難しい。このため、ステップS46において、携帯端末10の状態の識別情報が磁力ノイズの接近を示す場合に、当該識別情報は、異常磁場のアラーム情報として機能する。携帯端末10のドライバは、磁力ノイズの接近の状態の識別情報に応じて、地磁気センサ18の検出データを使用しない等の処理を行う。   In addition, when magnetic noise approaches, it is difficult to reduce the influence on detection data. For this reason, when the identification information of the state of the mobile terminal 10 indicates the approach of magnetic noise in step S46, the identification information functions as alarm information of an abnormal magnetic field. The driver of the mobile terminal 10 performs processing such as not using the detection data of the geomagnetic sensor 18 according to the identification information of the approaching state of magnetic noise.

また、ステップS47,S48は、加速度センサ19A及びジャイロスコープ19Bが動作していない間に、CPU11により行われるものとする。   Steps S47 and S48 are performed by the CPU 11 while the acceleration sensor 19A and the gyroscope 19B are not operating.

以上、本実施の形態によれば、携帯端末10は、動き検出部19(加速度センサ19A又はジャイロスコープ19B)の検出データの変化量が所定の閾値(閾値T4又はT5)以上であると判別された場合に、地磁気センサ18の検出データのパターンを参照して携帯端末10の状態を判定する。そして、携帯端末10は、当該判定した状態が外部のノイズ(環境磁場の変化又は磁力ノイズの接近)の状態である場合に、地磁気センサ18の検出データを異常データとして前記判定した状態の情報とともに出力させる。このため、携帯端末10のドライバ等は、判定された環境磁場の変化又は磁力ノイズの接近の状態の情報に応じて、地磁気センサ18の検出データを適切に使用できる。   As described above, according to the present embodiment, the mobile terminal 10 is determined that the amount of change in the detection data of the motion detection unit 19 (the acceleration sensor 19A or the gyroscope 19B) is equal to or greater than the predetermined threshold (threshold T4 or T5). The state of the portable terminal 10 is determined with reference to the detection data pattern of the geomagnetic sensor 18. Then, when the determined state is an external noise (change in environmental magnetic field or magnetic noise approach), the mobile terminal 10 uses the detection data of the geomagnetic sensor 18 as abnormal data together with the information on the determined state. Output. For this reason, the driver of the portable terminal 10 can appropriately use the detection data of the geomagnetic sensor 18 according to the determined information on the change of the environmental magnetic field or the approach state of the magnetic noise.

なお、第4の地磁気センサデータ処理において、CPU11は、ステップS47で携帯端末10の状態が携帯端末10に動きが発生した状態であると判定された場合に、ステップS63で、地磁気センサ18の検出データを正常データとして前記判定した状態の識別情報とともに出力させることとしてもよい。   In the fourth geomagnetic sensor data processing, the CPU 11 detects the geomagnetic sensor 18 in step S63 when it is determined in step S47 that the state of the mobile terminal 10 is a state in which movement has occurred in the mobile terminal 10. The data may be output as normal data together with the identification information in the determined state.

(第5の実施の形態)
図6を参照して、本発明に係る第5の実施の形態を説明する。図6は、第5の地磁気センサデータ処理を示すフローチャートである。
(Fifth embodiment)
A fifth embodiment according to the present invention will be described with reference to FIG. FIG. 6 is a flowchart showing fifth geomagnetic sensor data processing.

本実施の形態の装置構成は、第1の実施の形態の携帯端末10と同様の構成である。但し、ROM15には、第1の地磁気センサデータ処理プログラム151に代えて、第5の地磁気センサデータ処理プログラムが記憶されているものとする。   The apparatus configuration of the present embodiment is the same as that of the mobile terminal 10 of the first embodiment. However, it is assumed that the ROM 15 stores a fifth geomagnetic sensor data processing program instead of the first geomagnetic sensor data processing program 151.

次に、図6を参照して、携帯端末10の動作を説明する。第5の地磁気センサデータ処理は、地磁気センサ18の検出データの変化から、正常か異常かを断定しきれないグレーゾーンの場合に、動き検出部19の検出データの変化により携帯端末10に動きが発生しているか否かを判別し、その判別結果に応じて正常又は異常のデータ処理を行う処理である。   Next, the operation of the mobile terminal 10 will be described with reference to FIG. In the fifth geomagnetic sensor data processing, in the case of a gray zone in which it is not possible to determine whether the detection is normal or abnormal from the change in the detection data of the geomagnetic sensor 18, the movement of the mobile terminal 10 is caused by the change in the detection data of the movement detection unit 19. In this process, it is determined whether or not it has occurred, and normal or abnormal data processing is performed according to the determination result.

携帯端末10において、例えば、ユーザ操作により電源オンがなされたことをトリガとして、CPU11が、ROM15から読み出され適宜RAM13に展開された第5の地磁気センサデータ処理プログラムとの協働で、第5の地磁気センサデータ処理を実行する。   In the mobile terminal 10, for example, in response to a power-on by a user operation, the CPU 11 reads out from the ROM 15 and cooperates with a fifth geomagnetic sensor data processing program appropriately expanded in the RAM 13 to obtain the fifth The geomagnetic sensor data processing is executed.

図6に示すように、ステップS61,S63,S65〜S67は、上記第3の実施の形態の第3の地磁気センサデータ処理のステップS31,S33〜S36と同様である。ステップS61の後、CPU11は、ステップS61で取得した地磁気センサ18の第1の所定時間の検出データの変化量が、予め設定された閾値T7以上であるか否かを判別する(ステップS62)。ステップS62では、地磁気センサ18の3軸の検出データの絶対値の第1の所定時間における変化量と、閾値T7と、が比較される。   As shown in FIG. 6, steps S61, S63, S65 to S67 are the same as steps S31 and S33 to S36 of the third geomagnetic sensor data processing of the third embodiment. After step S61, the CPU 11 determines whether or not the change amount of the detection data for the first predetermined time of the geomagnetic sensor 18 acquired in step S61 is equal to or greater than a preset threshold value T7 (step S62). In step S62, the change amount of the absolute value of the triaxial detection data of the geomagnetic sensor 18 in the first predetermined time is compared with the threshold value T7.

閾値T7は、地磁気センサ18の検出データの変化が小さく、当該検出データが明らかに正常であるか否かを判別するための磁気の絶対値の第1の所定時間における変化量の閾値である。地磁気センサ18の検出データの変化量が閾値T7以上でない場合(ステップS62;NO)、ステップS63に移行される。   The threshold value T7 is a threshold value of the amount of change in the first predetermined time of the absolute value of magnetism for determining whether or not the change in detection data of the geomagnetic sensor 18 is small and the detection data is clearly normal. When the change amount of the detection data of the geomagnetic sensor 18 is not equal to or greater than the threshold value T7 (step S62; NO), the process proceeds to step S63.

地磁気センサ18の検出データの変化量が閾値T7以上である場合(ステップS62;YES)、CPU11は、ステップS61で取得した地磁気センサ18の第1の所定時間の検出データの変化量が、予め設定された閾値T8以上であるか否かを判別する(ステップS64)。ステップS64では、地磁気センサ18の3軸の検出データの絶対値の第1の所定時間における変化量と、閾値T8と、が比較される。   When the change amount of the detection data of the geomagnetic sensor 18 is equal to or greater than the threshold T7 (step S62; YES), the CPU 11 sets in advance the change amount of the detection data of the geomagnetic sensor 18 acquired in step S61 for the first predetermined time. It is determined whether or not the threshold value T8 is exceeded (step S64). In step S64, the amount of change in the absolute value of the triaxial detection data of the geomagnetic sensor 18 in the first predetermined time is compared with the threshold value T8.

閾値T8は、地磁気センサ18の検出データの変化が比較的大きく、当該検出データが明らかに異常(環境磁場の変化又は磁力ノイズの接近)であるか否かを判別するための磁気の絶対値の第1の所定時間における変化量の閾値である。閾値T8は、閾値T7よりも大きい値である。地磁気センサ18の検出データの変化量が閾値T8以上でない場合(ステップS64;NO)、ステップS65に移行される。地磁気センサ18の検出データの変化量が閾値T8以上である場合(ステップS64;YES)、ステップS67に移行される。   The threshold T8 is an absolute value of magnetism for determining whether or not the change in the detection data of the geomagnetic sensor 18 is relatively large and the detection data is clearly abnormal (change in environmental magnetic field or magnetic noise approach). It is the threshold value of the change amount in the first predetermined time. The threshold value T8 is a value larger than the threshold value T7. When the amount of change in the detection data of the geomagnetic sensor 18 is not equal to or greater than the threshold value T8 (step S64; NO), the process proceeds to step S65. When the amount of change in the detection data of the geomagnetic sensor 18 is equal to or greater than the threshold value T8 (step S64; YES), the process proceeds to step S67.

以上、本実施の形態によれば、携帯端末10は、地磁気センサ18の検出データの変化量が、閾値T7よりも大きく予め設定された閾値T8以上であるか否かを判別する。携帯端末10は、地磁気センサ18の検出データが閾値T7以上であり且つ閾値T8未満であると判別された場合に、動き検出部19(加速度センサ19A又はジャイロスコープ19B)の検出データの変化量が所定の閾値(閾値T4又はT5)以上であるか否かを判別する。携帯端末10は、地磁気センサ18の検出データが閾値T8以上であると判別された場合に、地磁気センサ18の検出データを異常データとして処理する。   As described above, according to the present embodiment, the mobile terminal 10 determines whether or not the amount of change in the detection data of the geomagnetic sensor 18 is greater than the threshold T7 and equal to or greater than the preset threshold T8. When it is determined that the detection data of the geomagnetic sensor 18 is greater than or equal to the threshold value T7 and less than the threshold value T8, the mobile terminal 10 determines the amount of change in the detection data of the motion detection unit 19 (the acceleration sensor 19A or the gyroscope 19B). It is discriminated whether or not it is a predetermined threshold value (threshold value T4 or T5). When it is determined that the detection data of the geomagnetic sensor 18 is equal to or greater than the threshold T8, the mobile terminal 10 processes the detection data of the geomagnetic sensor 18 as abnormal data.

このため、地磁気センサ18の検出データが閾値T8以上である明らかに異常な場合に、地磁気センサ18の検出データを異常データとして処理でき、同じく閾値T7以上であり且つ閾値T8未満であるグレーゾーンの場合に、携帯端末10の動きの検出を行い、CPU11の処理負担を低減できる。   For this reason, when the detection data of the geomagnetic sensor 18 is clearly abnormal with the threshold T8 or higher, the detection data of the geomagnetic sensor 18 can be processed as abnormal data, and the gray zone of the gray zone that is also the threshold T7 or higher and lower than the threshold T8 In this case, the movement of the mobile terminal 10 can be detected, and the processing load on the CPU 11 can be reduced.

以上の説明では、本発明に係るプログラムのコンピュータ読み取り可能な媒体としてROM15を使用した例を開示したが、この例に限定されない。
その他のコンピュータ読み取り可能な媒体として、フラッシュメモリ等の不揮発性メモリ、CD−ROM等の可搬型記録媒体を適用することが可能である。
また、本発明に係るプログラムのデータを通信回線を介して提供する媒体として、キャリアウエーブ(搬送波)も本発明に適用される。
In the above description, the example in which the ROM 15 is used as the computer-readable medium of the program according to the present invention is disclosed, but the present invention is not limited to this example.
As other computer-readable media, a non-volatile memory such as a flash memory and a portable recording medium such as a CD-ROM can be applied.
A carrier wave is also applied to the present invention as a medium for providing program data according to the present invention via a communication line.

なお、上記実施の形態における記述は、本発明に係る携帯端末及びプログラムの一例であり、これに限定されるものではない。   The description in the above embodiment is an example of the mobile terminal and the program according to the present invention, and the present invention is not limited to this.

例えば、上記複数の実施の形態の少なくとも2つを組み合わせる構成としてもよい。例えば、第1の実施の形態の第1の地磁気センサデータ処理の地磁気センサ18の検出データと閾値との比較を、第4、第5の実施の形態の第4、第5の地磁気センサデータ処理に適用する構成としてもよい。   For example, it is good also as a structure which combines at least 2 of the said several embodiment. For example, the detection data of the geomagnetic sensor 18 in the first geomagnetic sensor data processing of the first embodiment and the threshold value are compared with the fourth and fifth geomagnetic sensor data processing of the fourth and fifth embodiments. It is good also as a structure applied to.

また、上記各実施の形態の携帯端末10で、加速度センサ19A及びジャイロスコープ19Bが3軸のものとする構成としたが、これに限定されるものではない。例えば、携帯端末10の1軸を鉛直方向の軸に固定するような姿勢で携帯端末10を使用する場合に、加速度センサ19A及びジャイロスコープ19Bが水平面の2軸のデータを検出するセンサとしてもよい。   Moreover, although the acceleration sensor 19A and the gyroscope 19B are configured to have three axes in the mobile terminal 10 of each of the above embodiments, the present invention is not limited to this. For example, when the mobile terminal 10 is used in such a posture that one axis of the mobile terminal 10 is fixed to an axis in the vertical direction, the acceleration sensor 19A and the gyroscope 19B may be sensors that detect biaxial data on the horizontal plane. .

また、上記各実施の形態の携帯端末10で、動き検出部19が動き検出センサとして、加速度センサ19A及びジャイロスコープ19Bを有する構成としたが、これに限定されるものではない。動き検出部19の動き検出センサとしては、振り子式の振動計等、他の動き検出センサを用いることとしてもよい。   In the mobile terminal 10 of each of the above embodiments, the motion detection unit 19 includes the acceleration sensor 19A and the gyroscope 19B as the motion detection sensors. However, the present invention is not limited to this. As the motion detection sensor of the motion detector 19, another motion detection sensor such as a pendulum vibrometer may be used.

また、上記各実施の形態では、携帯端末10に動きが検出された場合に、正常データ処理が行われることとしたが、これに限定されるものではない。地磁気センサ18の検出データに変化が発生した場合に、携帯端末10に動きがあると、正常値に落ち着く可能性が高いものの、磁力ノイズ源近くに移動した場合等、地磁気センサ18の検出データが高いまま正常値に落ち着かない可能性もある。このため、地磁気センサ18の検出データに変化が発生した場合に、携帯端末10に動きがあると判別されると、CPU11は、地磁気センサ18の検出データを携帯端末10に動きがある旨の情報とともに出力させる処理を行うこととしてもよい。   Further, in each of the above embodiments, normal data processing is performed when motion is detected in the mobile terminal 10, but the present invention is not limited to this. If there is a change in the detection data of the geomagnetic sensor 18 and the mobile terminal 10 moves, there is a high possibility that the mobile terminal 10 will settle down to a normal value. There is a possibility that it will not settle down to a normal value while remaining high. For this reason, when it is determined that there is a movement in the mobile terminal 10 when a change occurs in the detection data of the geomagnetic sensor 18, the CPU 11 uses the detection data of the geomagnetic sensor 18 as information indicating that the mobile terminal 10 has a movement. It is good also as performing the process made to output with it.

また、上記各実施の形態では、地磁気センサ18の検出データを携帯端末10のドライバが使用する構成としたが、これに限定されるものではない。例えば、記憶部17に各種アプリケーションプログラムが記憶され、当該アプリケーションプログラムが地磁気センサ18の検出データを直接使用する構成としてもよい。   Moreover, in each said embodiment, although the driver of the portable terminal 10 used the detection data of the geomagnetic sensor 18, it was not limited to this. For example, various application programs may be stored in the storage unit 17 and the application program may directly use the detection data of the geomagnetic sensor 18.

また、上記実施の形態における携帯端末10の各構成要素の細部構成及び細部動作に関しては、本発明の趣旨を逸脱することのない範囲で適宜変更可能であることは勿論である。   Moreover, it is needless to say that the detailed configuration and detailed operation of each component of the mobile terminal 10 in the above embodiment can be changed as appropriate without departing from the spirit of the present invention.

本発明の実施の形態を説明したが、本発明の範囲は、上述の実施の形態に限定するものではなく、特許請求の範囲に記載された発明の範囲とその均等の範囲を含む。
以下に、この出願の願書に最初に添付した特許請求の範囲に記載した発明を付記する。付記に記載した請求項の項番は、この出願の願書に最初に添付した特許請求の範囲の通りである。
〔付記〕
<請求項1>
磁場を検出する地磁気センサと、
端末本体の動きを検出する動き検出手段と、
前記地磁気センサの検出データと前記動き検出手段の検出データとに基づいて、前記地磁気センサの検出データが変化した原因が、前記端末本体が動いたことによるものか、あるいは外部のノイズによるものかを判別する判別手段と、
前記判別手段の判別結果に応じて予め決められた処理を行う処理手段と、
を備える携帯端末。
<請求項2>
前記判別手段は、前記地磁気センサの検出データが予め設定された第1の閾値以上であり、前記動き検出手段の検出データが予め設定された第2の閾値以上である場合は、前記地磁気センサの検出データが変化した原因が、前記端末本体が動いたことによるものと判別し、前記地磁気センサの検出データが前記第1の閾値以上であり、前記動き検出手段の検出データが前記第2の閾値未満である場合は、前記地磁気センサの検出データが変化した原因が、前記外部のノイズによるものと判別する請求項1に記載の携帯端末。
<請求項3>
前記処理手段は、前記判別手段により前記地磁気センサの検出データが変化した原因が前記外部のノイズによるものと判別された場合は、前記地磁気センサの検出データを異常データとして処理する請求項1または2に記載の携帯端末。
<請求項4>
前記処理手段は、前記判別手段により前記地磁気センサの検出データが前記第1の閾値以上でないと判別された場合、又は前記判別手段により前記動き検出手段の検出データが前記第2の閾値以上であり前記原因が前記携帯端末が動いたことによるものと判別された場合に、前記地磁気センサの検出データを正常データとして処理する請求項2または3に記載の携帯端末。
<請求項5>
前記判別手段は、前記地磁気センサの検出データの変化量が、前記第1の閾値以上であるか否かを判別する請求項2〜4のいずれか一項に記載の携帯端末。
<請求項6>
前記判別手段は、前記動き検出手段の検出データの変化量が、前記第2の閾値以上であるか否かを判別する請求項2〜5のいずれか一項に記載の携帯端末。
<請求項7>
前記判別手段により前記動き検出手段の検出データが前記携帯端末の動きを示すと判別された場合に、前記地磁気センサの検出データのパターンを参照し、当該検出データのパターンに対応する前記携帯端末の状態を判定する判定手段を備え、
前記処理手段は、前記判定された状態が外部のノイズの状態である場合に、前記地磁気センサの検出データを異常データとして当該状態の識別情報とともに出力させる処理を行う請求項1〜6のいずれか一項に記載の携帯端末。
<請求項8>
前記判別手段は、前記地磁気センサの検出データが、前記第1の閾値よりも大きく予め設定された第3の閾値以上であるか否かを判別すると共に、前記地磁気センサの検出データが前記第1の閾値以上であり且つ前記第3の閾値以上でないと判別された場合に、前記動き検出手段の検出データが、前記第2の閾値以上であり前記原因が前記携帯端末が動いたことによるものか否かを判別し、
前記処理手段は、前記地磁気センサの検出データが前記第3の閾値以上であると判別された場合に、前記地磁気センサの検出データを異常データとして処理する請求項2〜7のいずれか一項に記載の携帯端末。
<請求項9>
前記動き検出手段は、複数種類の動き検出センサを有し、
前記判別手段は、前記動き検出センサの検出データの少なくとも一つが、前記第2の閾値以上であるか否かにより、前記携帯端末の動きを示すか否かを判別する請求項2〜8のいずれか一項に記載の携帯端末。
<請求項10>
前記動き検出手段は、前記動き検出センサとして、加速度センサと、ジャイロスコープと、を有する請求項9に記載の携帯端末。
<請求項11>
磁場を検出する地磁気センサと、端末本体の動きを検出する動き検出手段とを備える携帯端末のコンピュータを制御するためのプログラムであって、
前記コンピュータを、
前記地磁気センサの検出データと前記動き検出手段の検出データとに基づいて、前記地磁気センサの検出データが変化した原因が、前記端末本体が動いたことによるものか、あるいは外部のノイズによるものかを判別する判別手段、
前記判別手段の判別結果に応じて予め決められた処理を行う処理手段、
として機能させるようにしたコンピュータ読み取り可能なプログラム。
Although the embodiments of the present invention have been described, the scope of the present invention is not limited to the above-described embodiments, but includes the scope of the invention described in the claims and the equivalents thereof.
The invention described in the scope of claims attached to the application of this application will be added below. The item numbers of the claims described in the appendix are as set forth in the claims attached to the application of this application.
[Appendix]
<Claim 1>
A geomagnetic sensor for detecting a magnetic field;
Movement detection means for detecting movement of the terminal body;
Based on the detection data of the geomagnetic sensor and the detection data of the motion detection means, whether the detection data of the geomagnetic sensor has changed is due to movement of the terminal body or external noise. Discriminating means for discriminating;
Processing means for performing predetermined processing according to the determination result of the determination means;
A mobile terminal comprising:
<Claim 2>
When the detection data of the geomagnetic sensor is greater than or equal to a preset first threshold value and the detection data of the motion detection means is greater than or equal to a preset second threshold value, It is determined that the cause of the change in the detection data is that the terminal main body has moved, the detection data of the geomagnetic sensor is greater than or equal to the first threshold value, and the detection data of the motion detection means is the second threshold value. 2. The mobile terminal according to claim 1, wherein if it is less than 1, the cause of the change in the detection data of the geomagnetic sensor is determined to be due to the external noise.
<Claim 3>
The processing means processes the detection data of the geomagnetic sensor as abnormal data when the determination means determines that the cause of the change in the detection data of the geomagnetic sensor is due to the external noise. The portable terminal as described in.
<Claim 4>
In the processing unit, when the determination unit determines that the detection data of the geomagnetic sensor is not equal to or greater than the first threshold value, or the detection unit detects that the detection data of the motion detection unit is equal to or greater than the second threshold value. The portable terminal according to claim 2 or 3, wherein when the cause is determined to be caused by movement of the portable terminal, the detection data of the geomagnetic sensor is processed as normal data.
<Claim 5>
The portable terminal according to any one of claims 2 to 4, wherein the determination unit determines whether or not a change amount of detection data of the geomagnetic sensor is equal to or greater than the first threshold value.
<Claim 6>
The mobile terminal according to any one of claims 2 to 5, wherein the determination unit determines whether or not a change amount of detection data of the motion detection unit is equal to or greater than the second threshold value.
<Claim 7>
When the determination means determines that the detection data of the movement detection means indicates the movement of the mobile terminal, the detection data pattern of the geomagnetic sensor is referred to and the mobile terminal corresponding to the detection data pattern is referred to. A determination means for determining the state;
The said processing means performs the process which outputs the detection data of the said geomagnetic sensor with the identification information of the said state as abnormal data, when the determined state is an external noise state. The mobile terminal according to one item.
<Claim 8>
The discriminating unit discriminates whether or not the detection data of the geomagnetic sensor is greater than the first threshold and is equal to or greater than a preset third threshold, and the detection data of the geomagnetic sensor is the first If it is determined that the detected data of the motion detection means is greater than or equal to the second threshold and the cause is that the mobile terminal has moved. Determine whether or not
The said processing means processes the detection data of the said geomagnetic sensor as abnormal data, when it determines with the detection data of the said geomagnetic sensor being more than the said 3rd threshold value. The portable terminal described.
<Claim 9>
The motion detection means has a plurality of types of motion detection sensors,
The determination unit according to any one of claims 2 to 8, wherein the determination unit determines whether or not the movement of the mobile terminal is indicated based on whether or not at least one of detection data of the movement detection sensor is equal to or greater than the second threshold value. A portable terminal according to claim 1.
<Claim 10>
The mobile terminal according to claim 9, wherein the motion detection unit includes an acceleration sensor and a gyroscope as the motion detection sensor.
<Claim 11>
A program for controlling a computer of a mobile terminal comprising a geomagnetic sensor for detecting a magnetic field and a motion detecting means for detecting the motion of the terminal body,
The computer,
Based on the detection data of the geomagnetic sensor and the detection data of the motion detection means, whether the detection data of the geomagnetic sensor has changed is due to movement of the terminal body or external noise. Discriminating means for discriminating,
Processing means for performing a predetermined process according to the determination result of the determination means;
A computer-readable program designed to function as a computer.

10 携帯端末
11 CPU
12 操作部
13 RAM
14 表示部
15 ROM
16 通信部
17 記憶部
18 地磁気センサ
19 動き検出部
19A 加速度センサ
19B ジャイロスコープ
20 電源部
21 バス
10 Mobile terminal 11 CPU
12 Operation unit 13 RAM
14 Display 15 ROM
16 Communication Unit 17 Storage Unit 18 Geomagnetic Sensor 19 Motion Detection Unit 19A Acceleration Sensor 19B Gyroscope 20 Power Supply Unit 21 Bus

Claims (6)

磁場を検出する地磁気センサと、
端末本体の動きを検出する動き検出手段と、
前記地磁気センサの検出データと前記動き検出手段の検出データとに基づいて、前記地磁気センサの検出データが変化した原因が、前記端末本体が動いたことによるものか、あるいは外部のノイズによるものかを判別する判別手段と、
前記判別手段の判別結果に応じて予め決められた処理を行う処理手段と、
を備え、
前記判別手段は、前記地磁気センサの検出データが予め設定された第1の閾値以上であり、前記動き検出手段の検出データが予め設定された第2の閾値以上である場合は、前記地磁気センサの検出データが変化した原因が、前記端末本体が動いたことによるものと判別し、前記地磁気センサの検出データが前記第1の閾値以上であり、前記動き検出手段の検出データが前記第2の閾値未満である場合は、前記地磁気センサの検出データが変化した原因が、前記外部のノイズによるものと判別する携帯端末。
A geomagnetic sensor for detecting a magnetic field;
Movement detection means for detecting movement of the terminal body;
Based on the detection data of the geomagnetic sensor and the detection data of the motion detection means, whether the detection data of the geomagnetic sensor has changed is due to movement of the terminal body or external noise. Discriminating means for discriminating;
Processing means for performing predetermined processing according to the determination result of the determination means;
With
When the detection data of the geomagnetic sensor is greater than or equal to a preset first threshold value and the detection data of the motion detection means is greater than or equal to a preset second threshold value, It is determined that the cause of the change in the detection data is that the terminal main body has moved, the detection data of the geomagnetic sensor is greater than or equal to the first threshold value, and the detection data of the motion detection means is the second threshold value. If not, the portable terminal determines that the cause of the change in the detection data of the geomagnetic sensor is due to the external noise.
前記処理手段は、前記判別手段により前記地磁気センサの検出データが変化した原因が前記外部のノイズによるものと判別された場合は、前記地磁気センサの検出データを異常データとして処理する請求項1に記載の携帯端末。   2. The processing unit processes the detection data of the geomagnetic sensor as abnormal data when the determination unit determines that the cause of the change in detection data of the geomagnetic sensor is due to the external noise. Mobile devices. 前記処理手段は、前記判別手段により前記地磁気センサの検出データが前記第1の閾値以上でないと判別された場合、又は前記判別手段により前記動き検出手段の検出データが前記第2の閾値以上であり前記原因が前記携帯端末が動いたことによるものと判別された場合に、前記地磁気センサの検出データを正常データとして処理する請求項1または2に記載の携帯端末。   In the processing unit, when the determination unit determines that the detection data of the geomagnetic sensor is not equal to or greater than the first threshold value, or the detection unit detects that the detection data of the motion detection unit is equal to or greater than the second threshold value. The mobile terminal according to claim 1 or 2, wherein when the cause is determined to be due to movement of the mobile terminal, the detection data of the geomagnetic sensor is processed as normal data. 前記判別手段により前記動き検出手段の検出データが前記携帯端末の動きを示すと判別された場合に、前記地磁気センサの検出データのパターンを参照し、当該検出データのパターンに対応する前記携帯端末の状態を判定する判定手段を備え、
前記処理手段は、前記判定された状態が外部のノイズの状態である場合に、前記地磁気センサの検出データを異常データとして当該状態の識別情報とともに出力させる処理を行う請求項1〜3のいずれか一項に記載の携帯端末。
When the determination means determines that the detection data of the movement detection means indicates the movement of the mobile terminal, the detection data pattern of the geomagnetic sensor is referred to and the mobile terminal corresponding to the detection data pattern is referred to. A determination means for determining the state;
The said processing means performs the process which outputs the detection data of the said geomagnetic sensor with the identification information of the said state as abnormal data, when the determined state is an external noise state. The mobile terminal according to one item.
前記判別手段は、前記地磁気センサの検出データが、前記第1の閾値よりも大きく予め設定された第3の閾値以上であるか否かを判別すると共に、前記地磁気センサの検出データが前記第1の閾値以上であり且つ前記第3の閾値以上でないと判別された場合に、前記動き検出手段の検出データが、前記第2の閾値以上であり前記原因が前記携帯端末が動いたことによるものか否かを判別し、
前記処理手段は、前記地磁気センサの検出データが前記第3の閾値以上であると判別された場合に、前記地磁気センサの検出データを異常データとして処理する請求項1〜4のいずれか一項に記載の携帯端末。
The discriminating unit discriminates whether or not the detection data of the geomagnetic sensor is greater than the first threshold and is equal to or greater than a preset third threshold, and the detection data of the geomagnetic sensor is the first If it is determined that the detected data of the motion detection means is greater than or equal to the second threshold and the cause is that the mobile terminal has moved. Determine whether or not
The said processing means processes the detection data of the said geomagnetic sensor as abnormal data, when it determines with the detection data of the said geomagnetic sensor being more than the said 3rd threshold value. The portable terminal described.
磁場を検出する地磁気センサと、端末本体の動きを検出する動き検出手段とを備える携帯端末のコンピュータを制御するためのプログラムであって、
前記コンピュータを、
前記地磁気センサの検出データと前記動き検出手段の検出データとに基づいて、前記地磁気センサの検出データが変化した原因が、前記端末本体が動いたことによるものか、あるいは外部のノイズによるものかを判別する判別手段、
前記判別手段の判別結果に応じて予め決められた処理を行う処理手段、
として機能させ、
前記判別手段は、前記地磁気センサの検出データが予め設定された第1の閾値以上であり、前記動き検出手段の検出データが予め設定された第2の閾値以上である場合は、前記地磁気センサの検出データが変化した原因が、前記端末本体が動いたことによるものと判別し、前記地磁気センサの検出データが前記第1の閾値以上であり、前記動き検出手段の検出データが前記第2の閾値未満である場合は、前記地磁気センサの検出データが変化した原因が、前記外部のノイズによるものと判別するようにしたコンピュータ読み取り可能なプログラム。
A program for controlling a computer of a mobile terminal comprising a geomagnetic sensor for detecting a magnetic field and a motion detecting means for detecting the motion of the terminal body,
The computer,
Based on the detection data of the geomagnetic sensor and the detection data of the motion detection means, whether the detection data of the geomagnetic sensor has changed is due to movement of the terminal body or external noise. Discriminating means for discriminating,
Processing means for performing a predetermined process according to the determination result of the determination means;
Function as
When the detection data of the geomagnetic sensor is greater than or equal to a preset first threshold value and the detection data of the motion detection means is greater than or equal to a preset second threshold value, It is determined that the cause of the change in the detection data is that the terminal main body has moved, the detection data of the geomagnetic sensor is greater than or equal to the first threshold value, and the detection data of the motion detection means is the second threshold value. A computer-readable program that determines that the cause of the change in the detection data of the geomagnetic sensor is due to the external noise.
JP2013158414A 2013-07-31 2013-07-31 Mobile terminal and program Active JP6330266B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2013158414A JP6330266B2 (en) 2013-07-31 2013-07-31 Mobile terminal and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2013158414A JP6330266B2 (en) 2013-07-31 2013-07-31 Mobile terminal and program

Publications (2)

Publication Number Publication Date
JP2015029236A JP2015029236A (en) 2015-02-12
JP6330266B2 true JP6330266B2 (en) 2018-05-30

Family

ID=52492671

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2013158414A Active JP6330266B2 (en) 2013-07-31 2013-07-31 Mobile terminal and program

Country Status (1)

Country Link
JP (1) JP6330266B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2017195448A (en) * 2016-04-18 2017-10-26 京セラ株式会社 Portable device, control method and control program

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5560413B2 (en) * 2010-10-26 2014-07-30 アイチ・マイクロ・インテリジェント株式会社 Magnetic gyro
JP5873867B2 (en) * 2011-06-13 2016-03-01 パナソニック インテレクチュアル プロパティ コーポレーション オブアメリカPanasonic Intellectual Property Corporation of America Noise pattern acquisition device and position detection device including the same

Also Published As

Publication number Publication date
JP2015029236A (en) 2015-02-12

Similar Documents

Publication Publication Date Title
KR101370138B1 (en) Method and apparatus for movement detection by evaluating elementary movement patterns
US8494799B2 (en) Dynamic compass calibration in a portable device
KR101477442B1 (en) Methods and apparatuses for gesture-based user input detection in a mobile device
US7921572B2 (en) Accuracy indications for an electronic compass in a portable device
US9151622B2 (en) Method and apparatus for estimating moving direction of user and computer-readable storage medium having recorded thereon the method
US20080108329A1 (en) Mobile terminal and method and medium for controlling the same
JP5012252B2 (en) Magnetic data processing apparatus, method and program
JP2008170309A (en) Portable navigation system, portable navigation method, and program for portable navigation, and portable terminal
JP2007329599A (en) Communicating system
JP6441470B2 (en) Electronic device, control method of electronic device, and program
JP6753942B2 (en) Information processing equipment, electronic devices, control methods and control programs for information processing equipment
JP2015122609A (en) Electronic apparatus
JP5933498B2 (en) Terminal, control method and control program
KR101714628B1 (en) Apparatus and method for user authentication using a movement information
KR20120056696A (en) Method for estimating displacement of user terminal and apparatus for the same
JP6330266B2 (en) Mobile terminal and program
KR101472960B1 (en) Apparatus and method for esimating orientation using pattern recogniion
JP6149661B2 (en) Portable electronic device, state determination program, and state determination method
US20140067306A1 (en) Controlling sensor use on an electronic device
US9693309B2 (en) Mobile electronic device
JP2013250707A (en) Spatial position coordinate input device
EP2703778B1 (en) Controlling sensor operation in an electronic device
CN115267868B (en) Positioning point processing method and device and computer readable storage medium
JP2013200124A (en) Position information providing device and method therefor, computer program for providing position information, and recording medium recording computer program
EP2703779B1 (en) Stabilizing Orientation Values Of An Electronic Device

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20160629

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20170414

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20170425

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20170626

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20171010

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20171204

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20180409

R150 Certificate of patent or registration of utility model

Ref document number: 6330266

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150