JP5176537B2 - Motion sensing device, motion sensing method, and motion sensing circuit - Google Patents

Motion sensing device, motion sensing method, and motion sensing circuit Download PDF

Info

Publication number
JP5176537B2
JP5176537B2 JP2007337312A JP2007337312A JP5176537B2 JP 5176537 B2 JP5176537 B2 JP 5176537B2 JP 2007337312 A JP2007337312 A JP 2007337312A JP 2007337312 A JP2007337312 A JP 2007337312A JP 5176537 B2 JP5176537 B2 JP 5176537B2
Authority
JP
Japan
Prior art keywords
information
difference
geomagnetic
calculated
stored
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP2007337312A
Other languages
Japanese (ja)
Other versions
JP2009156779A (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.)
Fujitsu Ltd
Original Assignee
Fujitsu 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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP2007337312A priority Critical patent/JP5176537B2/en
Publication of JP2009156779A publication Critical patent/JP2009156779A/en
Application granted granted Critical
Publication of JP5176537B2 publication Critical patent/JP5176537B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Indicating Or Recording The Presence, Absence, Or Direction Of Movement (AREA)
  • Measuring Magnetic Variables (AREA)
  • Position Input By Displaying (AREA)

Description

本発明は、携帯電話機等の携帯端末において物体の運動を検出する技術に関する。   The present invention relates to a technique for detecting motion of an object in a portable terminal such as a cellular phone.

近年、携帯電話機等の携帯端末においては、例えば、加速度センサ(又は、ジャイロスコープ;以下、加速度センサという)や地磁気センサが搭載されているものがある。
加速度センサは、物体の加速度を検知するためのものであって、例えば、カメラ撮影時の画像補正や方位検出を行なうために携帯端末の重力方向を検知したり、携帯端末の姿勢(傾き)を検知したり、歩数計としての歩数算出,ゲームへの応用およびモーションコントロール等を行なうために携帯端末の運動(動き)を検出(モーションセンシング)したりする場合に用いられる。ここで、モーションコントロールとは、携帯端末の「動き」や「振れ」に応じて「マナーモード切替」等の処理や制御を行なうことを意味する。
In recent years, some mobile terminals such as mobile phones are equipped with, for example, an acceleration sensor (or gyroscope; hereinafter referred to as an acceleration sensor) and a geomagnetic sensor.
The acceleration sensor is for detecting the acceleration of an object. For example, it detects the gravitational direction of the mobile terminal in order to perform image correction or azimuth detection at the time of shooting with the camera, or the attitude (tilt) of the mobile terminal. It is used when detecting or detecting (motion sensing) the movement (motion) of a portable terminal in order to perform step count calculation as a pedometer, application to a game, motion control, or the like. Here, the motion control means performing processing and control such as “manner mode switching” in accordance with “movement” and “shake” of the mobile terminal.

地磁気センサは、地磁気ベクトルやその大きさ等の地磁気成分を検出するものであって、例えば、電子コンパス機能を実現するために物体の方位を検知する(方位角をセンシングする)場合に用いられる(例えば、下記特許文献1参照)。
従って、上述した従来の携帯端末においては、その携帯端末の重力方向,姿勢および運動を検知する場合には加速度センサが用いられ、地図連携を目的として携帯端末の方位を検知する場合には地磁気センサが用いられることが一般的である。
The geomagnetic sensor detects a geomagnetic component such as a geomagnetic vector and its magnitude, and is used, for example, when detecting the azimuth of an object (sensing the azimuth angle) in order to realize an electronic compass function ( For example, see Patent Document 1 below).
Therefore, in the conventional portable terminal described above, an acceleration sensor is used when detecting the gravity direction, posture and motion of the portable terminal, and a geomagnetic sensor is used when detecting the orientation of the portable terminal for the purpose of map cooperation. Is generally used.

また、例えば、下記特許文献2には、3軸の地磁気センサと3軸の加速度センサとを併用することにより物体の姿勢や運動を検出する技術が開示されている。
特開2006−78474号公報 特開2004−264892号公報
For example, Patent Document 2 below discloses a technique for detecting the posture and motion of an object by using a triaxial geomagnetic sensor and a triaxial acceleration sensor in combination.
JP 2006-78474 A JP 2004-264892 A

しかしながら、上述した従来の携帯端末において歩数算出やモーションコントロールを行なう場合には、その機能の性質上、加速度センサを用いて常時処理を行なう必要がある。
そのため、加速度センサをマイコンにて制御している際には、歩数算出やモーションコントロールで使用中の加速度センサを用いて他の機能を並行して利用することは困難である。
However, when calculating the number of steps or performing motion control in the above-described conventional portable terminal, it is necessary to always perform processing using an acceleration sensor due to the nature of the function.
For this reason, when the acceleration sensor is controlled by a microcomputer, it is difficult to use other functions in parallel by using the acceleration sensor being used for step count calculation or motion control.

また、上記特許文献2の技術においても、物体の姿勢や運動を検出する際に加速度センサを必要とすることから、上記同様、歩数算出やモーションコントロールで使用中の加速度センサを用いて他の機能を並行して利用することは困難である。
従って、上述した従来の携帯端末においては、常時処理を行なう必要がある機能が加速度センサを使用中の場合には、使用中の機能以外のモーションコントロールを伴う多様な機能を同時に利用できないといった問題が生じ易い。
In the technique of Patent Document 2 described above, since an acceleration sensor is required to detect the posture and motion of an object, as described above, other functions can be used by using an acceleration sensor that is being used for step count calculation or motion control. Are difficult to use in parallel.
Therefore, in the conventional portable terminal described above, when the function that needs to be constantly processed is using the acceleration sensor, there is a problem that various functions with motion control other than the function being used cannot be used at the same time. It is likely to occur.

なお、地磁気センサは、地図アプリ等の起動時以外ではアイドル状態であることが多い。
本発明は、このような課題に鑑み創案されたもので、加速度センサやジャイロスコープを用いることなく物体の運動を検知することを目的とする。
In many cases, the geomagnetic sensor is in an idle state except when the map application or the like is activated.
The present invention has been made in view of such a problem, and an object of the present invention is to detect the motion of an object without using an acceleration sensor or a gyroscope.

上記目的を達成するために、開示のモーションセンシング装置は、軸以上の地磁気成分を検出する地磁気センサと、該地磁気センサによって検出された該地磁気成分の情報を地磁気成分情報として格納する地磁気成分情報格納部と、該地磁気成分情報格納部に格納された2つの該地磁気成分情報の差分に基づいて、方向情報と符号情報とをそなえる差分情報を生成し、該差分が閾値を超えた場合に、物体が移動状態であると判断する差分算出部と、該移動状態であると判断された場合に、該差分算出部によって算出された該差分の各成分のうち絶対値が最も大きい成分を方向情報として格納し、該成分の符号を符号情報として格納する該差分情報格納部と、該差分算出部によって算出された方向情報と差分情報格納部に格納された方向情報とが同一であり、且つ、該差分算出部によって算出された符号情報と該差分情報格納部に格納された符号情報とが同一である回数をカウントする連続移動カウンタと、該差分算出部によって算出された方向情報と該差分情報格納部に格納された方向情報とが同一であり、且つ、該差分算出部によって算出された符号情報と該差分情報格納部に格納された符号情報とが異なる回数をカウントする方向転換カウンタとをそなえ、該移動状態であると判断され、且つ、該連続移動カウンタでカウントされた回数が閾値を超えた場合に、該物体が同一方向に向かって移動し続けている状態であると判定し、該移動状態であると判断され、且つ、該方向転換カウンタでカウントされた回数が閾値を超えた場合に、該物体が反復運動している状態であると判定する判定部とをそなえている。
また、開示のモーションセンシング方法は、軸以上の地磁気成分を検出する地磁気センサによって検出された該地磁気成分の情報を地磁気成分情報として取得する地磁気成分情報取得ステップと、該地磁気成分情報取得ステップにおいて取得された2つの該地磁気成分情報の差分に基づいて、方向情報と符号情報とをそなえる差分情報を生成し、該差分が閾値を超えた場合に、物体が移動状態であると判断する差分算出ステップと、該移動状態であると判断された場合に、該差分算出ステップにおいて算出された該差分の各成分のうち絶対値が最も大きい成分を方向情報として格納し、該成分の符号を符号情報として格納する差分情報格納ステップと、該差分算出ステップにおいて算出された方向情報と該差分情報格納ステップにおいて格納された方向情報とが同一であり、且つ、該差分算出ステップにおいて算出された符号情報と該差分情報格納ステップにおいて格納された符号情報とが同一である回数をカウントする連続移動カウントステップと、該差分算出ステップにおいて算出された方向情報と該差分情報格納ステップにおいて格納された方向情報とが同一であり、且つ、該差分算出ステップにおいて算出された符号情報と該差分情報格納ステップにおいて格納された符号情報とが異なる回数をカウントする方向転換カウントステップとをそなえ、該移動状態であると判断され、且つ、該連続移動カウントステップでカウントされた回数が閾値を超えた場合に、該物体が同一方向に向かって移動し続けている状態であると判定し、該移動状態であると判断され、且つ、該方向転換カウントステップでカウントされた回数が閾値を超えた場合に、該物体が反復運動している状態であると判定する判定ステップとをそなえている。
In order to achieve the above object, a disclosed motion sensing device includes a geomagnetic sensor that detects geomagnetic components of two or more axes, and geomagnetic component information that stores information on the geomagnetic components detected by the geomagnetic sensor as geomagnetic component information. a storage unit, based on the difference between the two該地magnetic component information stored in the該地magnetic component information storage unit, and generates difference information and a direction information and the code information, when said difference exceeds a threshold value, A difference calculation unit that determines that an object is in a moving state, and a component having the largest absolute value among the components of the difference that are calculated by the difference calculation unit when it is determined that the object is in a moving state. The difference information storage unit that stores the code of the component as code information, the direction information calculated by the difference calculation unit, and the direction information stored in the difference information storage unit And a continuous movement counter that counts the number of times the code information calculated by the difference calculation unit and the code information stored in the difference information storage unit are the same, and calculated by the difference calculation unit The number of times that the direction information stored in the difference information storage unit is the same and the code information calculated by the difference calculation unit and the code information stored in the difference information storage unit are different. And a direction change counter that counts the object, and when the number of times counted by the continuous movement counter exceeds a threshold value, the object continues to move in the same direction. determines that the state in which there is determined to be the moving state, and, when the number counted by the direction change counter exceeds a threshold, if it is a state in which said object is repetitive motion And a determination unit constant to.
The disclosed motion sensing method includes a geomagnetic component information acquisition step of acquiring information on the geomagnetic component detected by a geomagnetic sensor that detects two or more axes of geomagnetic components as geomagnetic component information, and the geomagnetic component information acquisition step. Based on the difference between the two acquired geomagnetic component information, difference information is generated that includes direction information and code information, and when the difference exceeds a threshold value, a difference calculation that determines that the object is in a moving state And when the movement state is determined, the component having the largest absolute value among the components of the difference calculated in the difference calculation step is stored as direction information, and the code of the component is encoded information As a difference information storage step, stored as directional information calculated in the difference calculation step, and stored in the difference information storage step. A continuous movement counting step for counting the number of times that the stored direction information is the same, and the code information calculated in the difference calculation step and the code information stored in the difference information storage step are the same; The direction information calculated in the difference calculation step and the direction information stored in the difference information storage step are the same, and the code information calculated in the difference calculation step and stored in the difference information storage step A direction change counting step that counts the number of times that the code information is different, and the object is the same when it is determined that the moving state is detected and the number of times counted in the continuous movement counting step exceeds a threshold value. It is determined that the vehicle is continuously moving in the direction, is determined to be in the moving state, and the If the number of times counted by the counter conversion counting step exceeds a threshold value, said object is provided with a determining step of determining that the state in which the repetitive motion.

さらに、開示のモーションセンシング回路は、軸以上の地磁気成分を検出する地磁気センサによって検出された該地磁気成分の情報を地磁気成分情報として取得する地磁気成分情報取得部と、地磁気成分情報取得部によって取得された2つの該地磁気成分情報の差分に基づいて、方向情報と符号情報とをそなえる差分情報を生成し、該差分が閾値を超えた場合に、物体が移動状態であると判断する差分算出部と、該移動状態であると判断された場合に、該差分算出部によって算出された該差分の各成分のうち絶対値が最も大きい成分を方向情報として格納し、該成分の符号を符号情報として格納する差分情報格納部と、該移動状態であると判断された場合、且つ、該差分算出部によって算出された方向情報と該差分情報格納部に格納された方向情報とが同一であり、且つ、該差分算出部によって算出された符号情報と該差分情報格納部に格納された符号情報とが同一である回数をカウントする連続移動カウンタと、該差分算出部によって算出された方向情報と該差分情報格納部に格納された方向情報とが同一であり、且つ、該差分算出部によって算出された符号情報と該差分情報格納部に格納された符号情報とが異なる回数をカウントする方向転換カウンタとをそなえ、該移動状態であると判断され、且つ、該連続移動カウンタでカウントされた回数が閾値を超えた場合に、該物体が同一方向に向かって移動し続けている状態であると判定し、該移動状態であると判断され、且つ、該方向転換カウンタでカウントされた回数が閾値を超えた場合に、該物体が反復運動している状態であると判定する判定部とをそなえている。 Furthermore, the disclosed motion sensing circuit is acquired by a geomagnetic component information acquisition unit that acquires information on the geomagnetic component detected by a geomagnetic sensor that detects two or more axes of geomagnetic components, and a geomagnetic component information acquisition unit. A difference calculation unit that generates difference information that includes direction information and code information based on a difference between the two geomagnetic component information that has been determined, and determines that the object is in a moving state when the difference exceeds a threshold value When the movement state is determined, the component having the largest absolute value among the components of the difference calculated by the difference calculation unit is stored as direction information, and the code of the component is used as code information. The difference information storage unit to be stored, and the direction information calculated by the difference calculation unit and the difference information storage unit stored in the difference information storage unit when determined to be in the moving state A continuous movement counter that counts the number of times that the direction information is the same and the code information calculated by the difference calculation unit and the code information stored in the difference information storage unit are the same, and the difference calculation unit And the direction information stored in the difference information storage unit are the same, and the code information calculated by the difference calculation unit and the code information stored in the difference information storage unit are A direction change counter that counts different times, and when the movement state is determined and the number of times counted by the continuous movement counter exceeds a threshold value, the object moves in the same direction. determines that the state continues, it is determined that the moving state, and a state in which the number of times counted by said turning counter when the threshold is exceeded, it said object is repetitive motion And a certain and determination unit.

開示の技術によれば、以下の少なくともいずれか1つの効果ないし利点がある。
(1)地磁気センサのみで物体の運動を検知することができる。
(2)加速度センサやジャイロスコープを用いることなく、物体の運動を検知することができる。
(3)物体の相対的な運動を検知することができる。
The disclosed technique has at least one of the following effects or advantages.
(1) The motion of an object can be detected only with a geomagnetic sensor.
(2) The motion of the object can be detected without using an acceleration sensor or a gyroscope.
(3) The relative movement of the object can be detected.

(4)加速を伴わない運動や加速度が微小な運動のような加速度センサでは検知が困難な運動であっても検知することができる。
(5)地磁気センサによる方位検知時に必要となるキャリブレーションのような煩雑な処理を行なう必要がない。
(6)センサ搭載端末の振られている運動(縦に振られているか、横に振られているか)の判定を容易に行なうことができる。
(4) It is possible to detect even a motion that is difficult to detect with an acceleration sensor such as a motion without acceleration or a motion with a small acceleration.
(5) It is not necessary to perform a complicated process such as calibration that is required at the time of orientation detection by a geomagnetic sensor.
(6) It is possible to easily determine the motion of the sensor-equipped terminal (whether it is swung vertically or horizontally).

(7)加速度センサが使用不可であっても物体の運動を検知することができる。   (7) The motion of the object can be detected even if the acceleration sensor cannot be used.

以下、図面を参照しながら本発明の実施の形態について説明する。
〔1〕本発明の第1実施形態の説明
図1は本発明の第1実施形態としての携帯端末の運動について説明するための図、図2はその携帯端末の構成例を模式的に示す図である。
本実施形態に係る携帯端末(モーションセンシング装置)10は、図1に示すように、携帯端末(物体)10の3次元(x軸方向,y軸方向およびz軸方向)の運動(動き、モーション、位置もしくは姿勢の変化)を判定(検出)する機能をそなえるものであって、本実施形態においては、携帯電話機により実現されている。
Hereinafter, embodiments of the present invention will be described with reference to the drawings.
[1] Description of the First Embodiment of the Present Invention FIG. 1 is a diagram for explaining the movement of a mobile terminal as the first embodiment of the present invention, and FIG. 2 is a diagram schematically showing a configuration example of the mobile terminal. It is.
As shown in FIG. 1, the mobile terminal (motion sensing device) 10 according to the present embodiment has a three-dimensional (x-axis direction, y-axis direction, and z-axis direction) motion (motion, motion) of the mobile terminal (object) 10. , A change in position or orientation), and a function of determining (detecting), and in the present embodiment, is realized by a mobile phone.

この携帯端末10は、例えば、図2に示すように、3軸地磁気センサ(地磁気センサ)11,地磁気成分情報格納部12,差分情報格納部13,CPU(Central Processing Unit;モーションセンシング回路)14および機能処理部15をそなえて構成されている。
3軸地磁気センサ11は、3次元の地磁気成分Hgを検出(検知)するものであって、例えば、予め設定(指定)されたサンプリング周期で、携帯端末10の3次元座標(x,y,z)を示す地磁気成分Hgを検出するようになっている。
For example, as shown in FIG. 2, the mobile terminal 10 includes a three-axis geomagnetic sensor (geomagnetic sensor) 11, a geomagnetic component information storage unit 12, a difference information storage unit 13, a CPU (Central Processing Unit; motion sensing circuit) 14, and A function processing unit 15 is provided.
The three-axis geomagnetic sensor 11 detects (detects) a three-dimensional geomagnetic component Hg. For example, the three-axis geomagnetic sensor 11 has three-dimensional coordinates (x, y, z) of the mobile terminal 10 at a preset (designated) sampling period. ) Is detected.

図3は本発明の第1実施形態としての携帯端末における地磁気成分情報格納部の構成例を模式的に示す図、図4はその地磁気成分情報格納部に格納された地磁気成分情報を説明するための図である。
地磁気成分情報格納部12は、3軸地磁気センサ11によって検出された地磁気成分Hgの情報を地磁気成分情報Aとして格納(蓄積)するものであって、例えば、3軸地磁気センサ11によって上記サンプリング周期で検出された複数(例えば、2サンプル以上)の地磁気成分情報Aを時系列的に順次格納するようになっている。
FIG. 3 is a diagram schematically showing a configuration example of the geomagnetic component information storage unit in the mobile terminal as the first embodiment of the present invention, and FIG. 4 is a diagram for explaining the geomagnetic component information stored in the geomagnetic component information storage unit. FIG.
The geomagnetic component information storage unit 12 stores (accumulates) the information of the geomagnetic component Hg detected by the triaxial geomagnetic sensor 11 as the geomagnetic component information A. For example, the geomagnetic component information storage unit 12 performs the sampling period by the triaxial geomagnetic sensor 11. A plurality of (for example, two or more samples) detected geomagnetic component information A is sequentially stored in time series.

例えば、図3および図4に示すように、地磁気成分情報格納部12は、或る時刻t1における携帯端末10の3次元座標(x1,y1,z1)を示す第1地磁気成分Hg1を第1地磁気成分情報A−1として格納し、時刻t1から一定時間Δが経過した時刻t2における携帯端末10の3次元座標(x2,y2,z2)を示す第1地磁気成分Hg2を第2地磁気成分情報A−2として格納するようになっている。なお、Δは地磁気センサ11のサンプリング周期以上であるものとする。 For example, as shown in FIGS. 3 and 4, the geomagnetic component information storage unit 12 includes a first geomagnetic component Hg indicating the three-dimensional coordinates (x 1 , y 1 , z 1 ) of the mobile terminal 10 at a certain time t 1 . 1 is stored first as geomagnetic component information a-1, the first geomagnetism showing the three-dimensional coordinates of the mobile terminal 10 (x 2, y 2, z 2) at time t 2 when a predetermined time Δ has elapsed from time t 1 The component Hg 2 is stored as the second geomagnetic component information A-2. Note that Δ is equal to or greater than the sampling period of the geomagnetic sensor 11.

以下同様に、地磁気成分情報格納部12は、携帯端末10の3次元座標(x,y,z)を示す地磁気成分Hgを一定時間Δ毎に順次格納するようになっており、例えば、図3に示すように、時刻t1以降の或る時刻tn-1(nは自然数)における携帯端末10の3次元座標を示す第n−1地磁気成分Hgn-1を第n−1地磁気成分情報A−n−1として格納し、時刻tn-1から一定時間Δが経過した時刻tnにおける携帯端末10の3次元座標を示す第n地磁気成分Hgnを第n地磁気成分情報A−nとして格納するようになっている。 Similarly, the geomagnetic component information storage unit 12 sequentially stores the geomagnetic component Hg indicating the three-dimensional coordinates (x, y, z) of the mobile terminal 10 every predetermined time Δ. For example, FIG. as shown in the time t 1 after a certain time t n-1 (n is a natural number) the n-1 geomagnetic components Hg to n-1 (n-1) th geomagnetic component information indicating the three-dimensional coordinates of the mobile terminal 10 in stored as a-n-1, the n-th terrestrial magnetism component Hg n indicating the 3-dimensional coordinates of the mobile terminal 10 at time t n to a predetermined time Δ has elapsed from time t n-1 as the n geomagnetic component information a-n It comes to store.

なお、以下、地磁気成分を示す符号としては、複数の地磁気成分のうち1つを特定する必要があるときは、符号Hg1〜Hgnを用いるが、任意の地磁気成分を指すときには符号Hgを用いる。
また、以下、地磁気成分情報を示す符号としては、複数の地磁気成分情報のうち1つを特定する必要があるときは、地磁気成分情報の前に“第1”〜“第n”を付すとともに、符号A−1〜A−nを用いるが、任意の地磁気成分情報を指すときには符号Aを用いる。
Hereinafter, as the reference character designating the geomagnetic components, when it is necessary to specify one of a plurality of geomagnetic component is used code Hg 1 ~Hg n, using a code Hg but an arbitrary geomagnetic components .
In addition, hereinafter, as a code indicating the geomagnetic component information, when one of a plurality of pieces of geomagnetic component information needs to be specified, “first” to “nth” is attached before the geomagnetic component information, The symbols A-1 to An are used, but the symbol A is used to indicate arbitrary geomagnetic component information.

図5は本発明の第1実施形態としての携帯端末における差分情報格納部の構成例を模式的に示す図である。
差分情報格納部13は、後述する差分算出部17によって算出された差分Hdを差分情報Dとして格納するものであって、例えば、図5に示すように、第1地磁気成分情報A−1と第2地磁気成分情報A−2との差分Hd12を示す[2:1]差分情報D−1や、第n地磁気成分情報A−nと第n−1地磁気成分情報A−n−1との差分Hdn-1nを示す[n:n−1]差分情報D−k(kは自然数)を格納するようになっている。差分情報Dの詳細および差分情報Dを差分情報格納部13に格納する条件については後述する。
FIG. 5 is a diagram schematically showing a configuration example of the difference information storage unit in the portable terminal as the first embodiment of the present invention.
The difference information storage unit 13 stores the difference Hd calculated by the difference calculation unit 17 described later as difference information D. For example, as shown in FIG. 2 geomagnetic component information indicating the difference Hd 12 of the a-2 [2: 1] and difference information D-1, the n geomagnetic component information a-n and the n-1 difference between the geomagnetic component information a-n-1 [N: n-1] difference information Dk (k is a natural number) indicating Hd n-1n is stored. Details of the difference information D and conditions for storing the difference information D in the difference information storage unit 13 will be described later.

なお、以下、差分を示す符号としては、複数の差分のうち1つを特定する必要があるときは、符号Hd12〜Hdn-1nを用いるが、任意の差分情報を指すときには符号Hdを用いる。
また、以下、差分情報を示す符号としては、複数の差分情報のうち1つを特定する必要があるときは、差分情報の前に“[2:1]”〜“[n:n−1]”を付すとともに、符号D−1〜D−kを用いるが、任意の差分情報を指すときには符号Dを用いる。
Hereinafter, as a code indicating a difference, the codes Hd 12 to Hd n-1n are used when one of a plurality of differences needs to be specified, but the code Hd is used to indicate arbitrary difference information. .
Further, hereinafter, as a code indicating the difference information, when one of a plurality of pieces of difference information needs to be specified, “[2: 1]” to “[n: n−1]” before the difference information. ", And the codes D-1 to Dk are used, but the code D is used to indicate arbitrary difference information.

CPU14は、携帯端末10において各種の数値計算,情報処理および機器制御等を行なうものであって、地磁気成分情報取得部16,差分算出部17,判定部18および出力部19をそなえて構成されている。
地磁気成分情報取得部16は、地磁気成分情報格納部12に格納された2つの地磁気成分情報A(2サンプル)を取得するものであって、例えば、地磁気成分情報格納部12に格納された複数の地磁気成分情報Aの中から、時系列的に連続した2つの地磁気成分情報A(例えば、第1地磁気成分情報A−1と第2地磁気成分情報A−2)を取得するようになっている。
The CPU 14 performs various numerical calculations, information processing, device control, and the like in the mobile terminal 10, and includes a geomagnetic component information acquisition unit 16, a difference calculation unit 17, a determination unit 18, and an output unit 19. Yes.
The geomagnetic component information acquisition unit 16 acquires two geomagnetic component information A (two samples) stored in the geomagnetic component information storage unit 12. For example, the geomagnetic component information acquisition unit 16 includes a plurality of geomagnetic component information storage units 12. From the geomagnetic component information A, two pieces of geomagnetic component information A (for example, first geomagnetic component information A-1 and second geomagnetic component information A-2) that are continuous in time series are acquired.

差分算出部17は、地磁気成分情報取得部16によって取得された2つの地磁気成分情報Aの差分Hdを算出するものであって、例えば、地磁気成分情報取得部16によって取得された2つの地磁気成分情報Aの差分ベクトルHvおよびその絶対値Haを差分Hdとして算出するようになっている。従って、差分算出部17は、地磁気成分情報格納部12に格納された2つの地磁気成分情報Aの差分Hdを算出するといえる。   The difference calculation unit 17 calculates a difference Hd between the two geomagnetic component information A acquired by the geomagnetic component information acquisition unit 16. For example, the difference calculation unit 17 acquires the two geomagnetic component information acquired by the geomagnetic component information acquisition unit 16. The difference vector Hv of A and its absolute value Ha are calculated as the difference Hd. Therefore, it can be said that the difference calculation unit 17 calculates the difference Hd between the two geomagnetic component information A stored in the geomagnetic component information storage unit 12.

例えば、図4に示すように、差分算出部17は、地磁気成分情報取得部16によって取得された第1地磁気成分情報A−1と第2地磁気成分情報A−2との差分ベクトルHv12 (x2−x1,y2−y1,z2−z1)およびその絶対値Ha12(|Ha12|=√{(x2−x1)2+(y2−y12+(z2−z1)2})を差分Hd12として算出するようになっている。又、同様に、差分算出部17は、例えば、地磁気成分情報取得部16によって取得された第n−1地磁気成分情報A−n−1と第2地磁気成分情報A−nとの差分ベクトルHvn-1n (xn−xn-1,yn−yn-1,zn−zn-1)およびその絶対値Han-1n(|Han-1n|=√{(xn−xn-1)2+(yn−yn-12+(zn−zn-1)2})を差分Hdn-1nとして算出するようになっている。 For example, as shown in FIG. 4, the difference calculation unit 17 calculates the difference vector Hv 12 (x between the first geomagnetic component information A-1 and the second geomagnetic component information A-2 acquired by the geomagnetic component information acquisition unit 16. 2− x 1 , y 2 −y 1 , z 2 −z 1 ) and its absolute value Ha 12 (| Ha 12 | = √ {(x 2 −x 1 ) 2 + (y 2 −y 1 ) 2 + ( z 2 −z 1 ) 2 }) is calculated as the difference Hd 12 . Similarly, the difference calculation unit 17, for example, a difference vector Hv n between the (n−1) th geomagnetic component information An−1 and the second geomagnetic component information An acquired by the geomagnetic component information acquisition unit 16. −1n (x n −x n−1 , y n −y n−1 , z n −z n−1 ) and its absolute value Han n−1n (| Ha n−1n | = √ {(x n −x n-1) has 2 + a (y n -y n-1) 2 + (z n -z n-1) 2}) calculated as the difference Hd n-1n.

なお、以下、差分ベクトルを示す符号としては、複数の差分ベクトルのうち1つを特定する必要があるときは、符号Hv12〜Hvn-1nを用いるとともに、この符号の後に座標“(x2−x1,y2−y1,z2−z1)”〜“(xn−xn-1,yn−yn-1,zn−zn-1)”を付すが、任意の差分ベクトルを指すときには符号Hvを用いる。
また、以下、絶対値を示す符号としては、複数の絶対値のうち1つを特定する必要があるときは、符号Ha12〜Han-1nを用いるが、任意の絶対値を指すときには符号Haを用いる。
Hereinafter, as a code indicating a difference vector, when one of a plurality of difference vectors needs to be specified, the codes Hv 12 to Hv n-1n are used, and the coordinates “(x 2 −x 1 , y 2 −y 1 , z 2 −z 1 ) ”to“ (x n −x n−1 , y n −y n−1 , z n −z n−1 ) ”, but optional The symbol Hv is used to indicate the difference vector.
In addition, hereinafter, as a code indicating an absolute value, the code Ha 12 to Han -1n is used when one of a plurality of absolute values needs to be specified, but the code Ha is used when indicating an arbitrary absolute value. Is used.

そして、差分算出部17は、絶対値Haが予め設定された閾値以上であるか否かを判断することにより、携帯端末10が移動状態であるか静止状態であるかを判断し、携帯端末10が移動状態であると判断した場合には、上記算出された差分ベクトルHvに基づいて方向情報aおよび符号情報bを生成し、これらの生成した方向情報aおよび符号情報bを差分情報Dとして差分情報格納部13に格納するとともに後述する判定部18に出力するようになっている。   Then, the difference calculation unit 17 determines whether the mobile terminal 10 is in a moving state or a stationary state by determining whether or not the absolute value Ha is equal to or greater than a preset threshold value. Is determined to be in a moving state, direction information a and code information b are generated based on the calculated difference vector Hv, and the generated direction information a and code information b are set as difference information D to obtain a difference. The information is stored in the information storage unit 13 and output to the determination unit 18 described later.

具体的には、差分算出部17は、絶対値Haが閾値以上である場合には、携帯端末10が移動状態であると判断し、方向情報aおよび符号情報bを差分情報Dとして、差分情報格納部13に格納するとともに後述する判定部18に動作状態を示す戻り値(例えば、値“1”)と併せて出力する一方で、絶対値Haが閾値未満である場合には、携帯端末10が静止状態であると判断し、方向情報aおよび符号情報bを生成せずに、静止状態を示す戻り値(例えば、値“0”)を後述する判定部18に出力するようになっている。   Specifically, the difference calculation unit 17 determines that the mobile terminal 10 is in a moving state when the absolute value Ha is greater than or equal to the threshold, and uses the direction information a and the code information b as the difference information D as the difference information. When the absolute value Ha is less than the threshold value while being stored in the storage unit 13 and output together with a return value (for example, the value “1”) indicating the operation state to the determination unit 18 described later, the mobile terminal 10 Is determined to be in a stationary state, and a return value (for example, a value “0”) indicating the stationary state is output to the determination unit 18 described later without generating the direction information a and the code information b. .

ここで、方向情報aは、差分ベクトルHvの3成分(x,yおよびz)の中で各絶対値(例えば、“|x2−x1|”,“|y2−y1|”および“|z2−z1|”)が最も大きい成分を示す情報であり、例えば、“x”,“y”および“z”のいずれかで示される。具体的には、例えば、方向情報aは、max(|x2−x1|,|y2−y1|,|z2−z1|)が、|x2−x1|の場合には“x”を、|y2−y1|の場合には“y”を、|z2−z1|の場合には“z”を示すようになっている。又、符号情報bは、方向情報aに該当する方向(x,yおよびzのいずれかの成分)の符号を示す情報であり、例えば、“+”または“−”で示される。 Here, the direction information a is an absolute value (for example, “| x 2 −x 1 |”, “| y 2 −y 1 |”, and the like among the three components (x, y, and z) of the difference vector Hv. “| Z 2 −z 1 |”) is information indicating the largest component, and is indicated by any one of “x”, “y”, and “z”, for example. Specifically, for example, the direction information a is obtained when max (| x 2 −x 1 |, | y 2 −y 1 |, | z 2 −z 1 |) is | x 2 −x 1 |. Indicates “x”, “y” in the case of | y 2 −y 1 |, and “z” in the case of | z 2 −z 1 |. The sign information b is information indicating the sign of the direction (any component of x, y, and z) corresponding to the direction information a, and is represented by “+” or “−”, for example.

即ち、差分情報Dは、+x,−x,+y,−y,+z,−zの6パターンのうちいずれかの情報をそなえているのである。
そして、例えば、図5に示すように、差分算出部17は、絶対値Ha12が予め設定された閾値以上である場合には、[2:1]差分情報D−1を構成する[2:1]方向情報a−1および[2:1]符号情報b−1を、差分情報格納部13に格納するとともに後述する判定部18に出力し、絶対値Han-1nが予め設定された閾値以上である場合には、[n:n−1]差分情報D−kを構成する[n:n−1]方向情報a−kおよび[n:n−1]符号情報b−kを、差分情報格納部13に格納するとともに後述する判定部18に出力するようになっている。
That is, the difference information D includes any one of six patterns of + x, −x, + y, −y, + z, and −z.
For example, as illustrated in FIG. 5, the difference calculation unit 17 configures [2: 1] difference information D-1 when the absolute value Ha 12 is equal to or greater than a preset threshold [2: 1] Direction information a-1 and [2: 1] code information b-1 are stored in the difference information storage unit 13 and output to the determination unit 18 described later, and the absolute value Han -1n is a preset threshold value. When it is above, [n: n-1] direction information ak and [n: n-1] code information bk constituting [n: n-1] difference information Dk The information is stored in the information storage unit 13 and output to the determination unit 18 described later.

なお、以下、方向情報を示す符号としては、複数の方向情報のうち1つを特定する必要があるときは、方向情報の前に“[2:1]”〜“[n:n−1]”を付すとともに、符号a−1〜a−kを用いるが、任意の方向情報を指すときには符号aを用いる。
また、以下、符号情報を示す符号としては、複数の符号情報のうち1つを特定する必要があるときは、符号情報の前に“[2:1]”〜“[n:n−1]”を付すとともに、符号b−1〜b−kを用いるが、任意の符号情報を指すときには符号bを用いる。
Hereinafter, as a code indicating direction information, when it is necessary to specify one of the plurality of direction information, “[2: 1]” to “[n: n−1] before the direction information are used. "And the symbols a-1 to a-k are used, but the symbol a is used to indicate arbitrary direction information.
In addition, hereinafter, as a code indicating code information, when one of a plurality of code information needs to be specified, “[2: 1]” to “[n: n−1]” before the code information. "And the symbols b-1 to b-k are used, but the symbol b is used to indicate arbitrary code information.

判定部18は、差分算出部17によって算出された2つの差分情報Dに基づいて、携帯端末10の運動を判定(検出)するものであって、例えば、差分算出部17によって前回算出された差分情報D−k−1と差分算出部17によって今回算出された差分情報D−kとを比較した結果に基づいて、携帯端末10の運動を判定するようになっている。
なお、本実施形態においては、判定部18には、差分算出部17によって前回算出された差分情報D−k−1が差分情報格納部13から入力されるとともに、差分算出部17によって今回算出された差分情報D−kが差分算出部17から入力されるようになっている。
The determination unit 18 determines (detects) the movement of the mobile terminal 10 based on the two difference information D calculated by the difference calculation unit 17. For example, the determination unit 18 calculates the difference calculated last time by the difference calculation unit 17. The movement of the mobile terminal 10 is determined based on the result of comparing the information D-k-1 and the difference information D-k calculated this time by the difference calculation unit 17.
In the present embodiment, the determination unit 18 is input with the difference information Dk−1 previously calculated by the difference calculation unit 17 from the difference information storage unit 13 and is calculated by the difference calculation unit 17 this time. The difference information Dk is input from the difference calculation unit 17.

また、この判定部18は、連続移動カウンタ20および方向転換カウンタ21をそなえて構成されている。
連続移動カウンタ20は、差分算出部17によって算出された複数の差分Hdについて、時系列的に連続する2つの差分Hdにおいて方向情報a(方向)が同一であり且つ符号情報b(符号)が同一である回数をカウントするものであって、例えば、差分算出部17によって今回算出された方向情報a−kと差分算出部17によって前回算出された方向情報a−k−1とが同一であり、且つ、差分算出部17によって今回算出された符号情報b−kと差分算出部17によって前回算出された符号情報b−k−1とが同一である場合に(例えば、“+x”と“+x”)、値“1”を加算(インクリメント)し、それ以外の場合にはリセットするようになっている。即ち、連続移動カウンタ20は、携帯端末10が同方向へ連続的に移動したサンプル数を示すのである。
The determination unit 18 includes a continuous movement counter 20 and a direction change counter 21.
The continuous movement counter 20 has the same direction information a (direction) and the same code information b (code) for two differences Hd that are consecutive in time series for a plurality of differences Hd calculated by the difference calculation unit 17. For example, the direction information ak calculated this time by the difference calculation unit 17 and the direction information ak-1 previously calculated by the difference calculation unit 17 are the same. When the code information b-k calculated this time by the difference calculation unit 17 and the code information b-k-1 calculated last time by the difference calculation unit 17 are the same (for example, “+ x” and “+ x”) ), The value “1” is added (incremented), otherwise it is reset. That is, the continuous movement counter 20 indicates the number of samples that the mobile terminal 10 has continuously moved in the same direction.

方向転換カウンタ21は、差分算出部17によって算出された複数の差分Hdについて、時系列的に連続する2つの差分Hdにおいて方向情報aが同一であり且つ符号情報bが異なる回数をカウントするものであって、例えば、差分算出部17によって今回算出された方向情報a−kと差分算出部17によって前回算出された方向情報a−k−1とが同一であり、且つ、差分算出部17によって今回算出された符号情報b−kと差分算出部17によって前回算出された符号情報b−k−1とが異なる場合に(例えば、“−x”と“+x”)、値“1”を加算(インクリメント)し、今回の方向情報a−kと前回の方向情報a−k−1とが同一である場合以外にはリセットするようになっている。即ち、方向転換カウンタ21は、携帯端末10が「振られている」際の方向転換回数を示すのである。   The direction change counter 21 counts the number of times that the direction information a is the same and the code information b is different in two differences Hd that are consecutive in time series for the plurality of differences Hd calculated by the difference calculation unit 17. For example, the direction information ak calculated this time by the difference calculation unit 17 and the direction information ak-1 previously calculated by the difference calculation unit 17 are the same, and the difference calculation unit 17 When the calculated code information b−k is different from the code information b−k−1 previously calculated by the difference calculation unit 17 (for example, “−x” and “+ x”), the value “1” is added ( In this case, the current direction information ak and the previous direction information ak-1 are reset except when they are the same. That is, the direction change counter 21 indicates the number of direction changes when the mobile terminal 10 is “swinged”.

そして、判定部18は、例えば、差分算出部17から差分情報D−kが入力される都度、上述した比較を行ない、連続移動カウンタ20でカウントされた回数(カウント値)が予め設定された閾値を超えた場合に、携帯端末10が同一方向に向かって連続的に移動し続けている状態であると判断し、その旨を示す戻り値を生成する。又、判定部18は、例えば、方向転換カウンタ21でカウントされた回数(カウント値)が予め設定された閾値を超えた場合に、携帯端末10が振り子運動(反復運動)している状態であると判断し、その旨を示す戻り値を生成する。更に、判定部18は、上記以外の場合には、センサ値取得を示す戻り値を生成する。なお、これらの戻り値は、例えば、携帯端末10内のメモリ(図示省略)に所定のビットを記録することにより生成される。   For example, the determination unit 18 performs the above-described comparison every time the difference information D-k is input from the difference calculation unit 17, and a threshold value in which the number of times (count value) counted by the continuous movement counter 20 is set in advance. Is exceeded, it is determined that the mobile terminal 10 is continuously moving in the same direction, and a return value indicating that is generated. The determination unit 18 is in a state where the mobile terminal 10 is performing a pendulum motion (repetitive motion) when the number of times (count value) counted by the direction change counter 21 exceeds a preset threshold value, for example. And a return value indicating that is generated. Further, the determination unit 18 generates a return value indicating sensor value acquisition in cases other than the above. These return values are generated, for example, by recording predetermined bits in a memory (not shown) in the mobile terminal 10.

従って、判定部18は、上記生成された戻り値を生成し、携帯端末10の運動を判定するのである。
また、判定部18は、地磁気成分情報取得部15によって取得された地磁気成分情報Aに基づいて携帯端末10の運動を判定するものであり、又、地磁気成分情報格納部12に格納された地磁気成分情報に基づいて携帯端末10の運動を判定するものであるといえる。
Therefore, the determination unit 18 generates the generated return value and determines the movement of the mobile terminal 10.
The determination unit 18 determines the movement of the mobile terminal 10 based on the geomagnetic component information A acquired by the geomagnetic component information acquisition unit 15, and the geomagnetic component stored in the geomagnetic component information storage unit 12. It can be said that the movement of the mobile terminal 10 is determined based on the information.

出力部19は、判定部18によって生成された戻り値を後述する機能処理部15に出力するものである。
機能処理部15は、出力部19から出力された戻り値に基づいて、歩数計としての歩数算出,ゲームへの応用およびモーションコントロール等の種々の機能を実行するものである。ここで、モーションコントロールとは、物体の「動き」や「振れ」に応じて「マナーモード切替」等の処理や制御を行なうことを意味する。
The output unit 19 outputs the return value generated by the determination unit 18 to the function processing unit 15 described later.
The function processing unit 15 executes various functions such as step count calculation as a pedometer, application to a game, and motion control based on the return value output from the output unit 19. Here, the motion control means performing processing and control such as “manner mode switching” in accordance with “movement” and “shake” of an object.

上述の如く構成された本発明の第1実施形態に係る携帯端末10において当該携帯端末10の運動を判定する手法の一例を、図6に示すフローチャート(ステップA1〜A9)に従って説明する。
先ず、判定部18は、連続移動カウンタ20および方向転換カウンタ21をリセットする(ステップA1)。
An example of a method for determining the movement of the mobile terminal 10 in the mobile terminal 10 according to the first embodiment of the present invention configured as described above will be described with reference to a flowchart (steps A1 to A9) shown in FIG.
First, the determination unit 18 resets the continuous movement counter 20 and the direction change counter 21 (step A1).

次に、3軸地磁気センサ11は、サンプリング周期で地磁気成分Hgを検知し(ステップA2)、地磁気成分情報格納部12は、3軸地磁気センサ11によって検出された地磁気成分Hgの情報を地磁気成分情報Aとして格納(蓄積)する(ステップA3)。
地磁気成分情報取得部16は、地磁気成分情報格納部12に格納された複数の地磁気成分情報Aの中から、時系列的に連続した2つの地磁気成分情報Aを取得し、差分算出部17は、地磁気成分情報取得部16によって取得されたこれら2つの地磁気成分情報Aの差分ベクトルHvおよびその絶対値Haを差分Hdとして算出する(ステップA4)。
Next, the triaxial geomagnetic sensor 11 detects the geomagnetic component Hg at the sampling period (step A2), and the geomagnetic component information storage unit 12 uses the geomagnetic component information detected by the triaxial geomagnetic sensor 11 as the geomagnetic component information. Store (accumulate) as A (step A3).
The geomagnetic component information acquisition unit 16 acquires two pieces of geomagnetic component information A continuous in time series from the plurality of geomagnetic component information A stored in the geomagnetic component information storage unit 12, and the difference calculation unit 17 The difference vector Hv of the two pieces of geomagnetic component information A acquired by the geomagnetic component information acquisition unit 16 and the absolute value Ha thereof are calculated as the difference Hd (step A4).

そして、差分算出部17は、算出された絶対値Haに基づいて携帯端末10が移動状態であるか静止状態であるかを判断し(ステップA5)、携帯端末10が移動状態であると判断した場合には(ステップA5の“移動状態”ルート参照)、方向情報aおよび符号情報bを差分情報Dとして差分情報格納部13に格納するとともに判定部18に動作状態を示す戻り値と併せて出力する。 Then, the difference calculation unit 17 determines whether the mobile terminal 10 is in a moving state or a stationary state based on the calculated absolute value Ha (step A5), and determines that the mobile terminal 10 is in a moving state. In this case (see the “ movement state” route in step A5), the direction information a and the code information b are stored in the difference information storage unit 13 as difference information D and output together with a return value indicating the operation state to the determination unit 18. To do.

一方、差分算出部17は、携帯端末10が静止状態であると判断した場合には(ステップA5の“静止状態”ルート参照)、静止状態を示す戻り値を判定部18に出力し、ステップA1に戻る。
判定部18は、差分算出部17から動作状態を示す戻り値が入力されると、差分算出部17によって前回算出された差分情報D−k−1と差分算出部17によって今回算出された差分情報D−kとを比較した結果に基づいて戻り値を生成する(ステップA6)。なお、判定部18において戻り値を生成する具体的な手法については後述する。
On the other hand, if the difference calculating unit 17 determines that the mobile terminal 10 is in a stationary state (see the “stationary state” route in step A5), the difference calculating unit 17 outputs a return value indicating the stationary state to the determining unit 18, and step A1. Return to.
When the return value indicating the operation state is input from the difference calculation unit 17, the determination unit 18 receives the difference information Dk−1 previously calculated by the difference calculation unit 17 and the difference information calculated this time by the difference calculation unit 17. A return value is generated based on the result of comparing D−k (step A6). A specific method for generating a return value in the determination unit 18 will be described later.

そして、出力部19は、判定部18によって生成された戻り値を機能処理部15に出力する(ステップA7)。
具体的には、戻り値が連続的に移動し続けている状態を示している場合には(ステップA7の“移動している”ルート参照)、出力部19は、この戻り値を機能処理部15に出力し(ステップA8)、処理を終了する。
Then, the output unit 19 outputs the return value generated by the determination unit 18 to the function processing unit 15 (Step A7).
Specifically, when the return value indicates a state of continuously moving (see the “moving” route in step A7), the output unit 19 uses this return value as a function processing unit. 15 (step A8), and the process is terminated.

また、戻り値が振り子運動している状態を示している場合には(ステップA7の“振られている”ルート参照)、出力部19は、この戻り値を機能処理部15に出力し(ステップA9)、処理を終了する。
なお、戻り値がセンサ値取得を示している場合には(ステップA7の“センサ値取得”ルート参照)、出力部19が戻り値を出力することなく、ステップA2に戻る。
When the return value indicates a state of pendulum movement (see the “wasted” route in step A7), the output unit 19 outputs the return value to the function processing unit 15 (step A9), the process ends.
If the return value indicates sensor value acquisition (see the “sensor value acquisition” route in step A7), the output unit 19 returns to step A2 without outputting the return value.

上述したステップA1〜A9の処理を繰り返し行なうことにより、携帯端末10が振られている状態であるのか移動している状態であるのかを判定し、更に、携帯端末10が端末自身に対し、どの方向に振られているかを判定するのである。
次に、上述の如く構成された本発明の第1実施形態に係る携帯端末10の判定部18において戻り値を生成する具体的な手法の一例を、図7に示すフローチャート(ステップB1〜B10)に従って説明する。
By repeatedly performing the processes of steps A1 to A9 described above, it is determined whether the mobile terminal 10 is being shaken or moved, and further, the mobile terminal 10 It is determined whether it is swung in the direction.
Next, an example of a specific method for generating a return value in the determination unit 18 of the mobile terminal 10 according to the first embodiment of the present invention configured as described above is shown in the flowchart (steps B1 to B10) shown in FIG. It explains according to.

判定部18は、差分算出部17から動作状態を示す戻り値が入力されると、差分算出部17によって今回算出された最新の方向情報a−kと差分算出部17によって前回算出された方向情報a−k−1とを比較するとともに、差分算出部17によって今回算出された符号情報b−kと差分算出部17によって前回算出された符号情報b−k−1とを比較する(ステップB1)。   When the return value indicating the operation state is input from the difference calculation unit 17, the determination unit 18 receives the latest direction information ak calculated this time by the difference calculation unit 17 and the direction information previously calculated by the difference calculation unit 17. a−k−1 and the code information b−k calculated this time by the difference calculation unit 17 and the code information b−k−1 calculated last time by the difference calculation unit 17 are compared (step B1). .

判定部18は、今回算出された方向情報a−kと前回算出された方向情報a−k−1とが同一であり、且つ、今回算出された符号情報b−kと前回算出された符号情報b−k−1とが同一である場合には(ステップB1の“前回の戻り値(方向情報)と同一”ルート参照)、連続移動カウンタ20に値“1”を加算する(ステップB2)。
そして、判定部18は、連続移動カウンタ20でカウントされた回数が閾値以上であるか否かを判断し(ステップB3)、連続移動カウンタ20でカウントされた回数が閾値以上である場合には(ステップB3の“閾値以上”ルート参照)、携帯端末10が同一方向に向かって連続的に移動し続けている状態を示す戻り値を生成し(ステップB4)、処理を終了する。
The determination unit 18 has the same direction information ak calculated this time and the direction information ak-1 calculated last time, and the code information bk calculated this time and the code information calculated last time. If b−k−1 is the same (refer to the “same as previous return value (direction information)” route in step B1), the value “1” is added to the continuous movement counter 20 (step B2).
Then, the determination unit 18 determines whether or not the number of times counted by the continuous movement counter 20 is equal to or greater than a threshold (step B3). If the number of times counted by the continuous movement counter 20 is equal to or greater than the threshold ( A return value indicating a state in which the mobile terminal 10 continues to move continuously in the same direction is generated (step B4), and the process ends.

一方、判定部18は、連続移動カウンタ20でカウントされた回数が閾値未満である場合には(ステップB3の“閾値未満”ルート参照)、センサ値取得を示す戻り値を生成し(ステップB5)、処理を終了する。
また、判定部18は、今回算出された方向情報a−kと前回算出された方向情報a−k−1とが同一であり、且つ、今回算出された符号情報b−kと前回算出された符号情報b−k−1とが異なる場合には(ステップB1の“前回の戻り値(方向情報)と成分が同一かつ符号が逆”ルート参照)、方向転換カウンタ21に値“1”を加算するとともに(ステップB6)、連続移動カウンタ20をリセットする(ステップB7)。
On the other hand, when the number of times counted by the continuous movement counter 20 is less than the threshold (see the “less than threshold” route in step B3), the determination unit 18 generates a return value indicating sensor value acquisition (step B5). The process is terminated.
Further, the determination unit 18 has the same direction information ak calculated this time and the direction information ak-1 calculated last time, and the code information bk calculated last time and the last time calculated. When the sign information b-k-1 is different (refer to the route of “the previous return value (direction information) has the same component and the sign is opposite” in step B1), the value “1” is added to the direction change counter 21. At the same time (step B6), the continuous movement counter 20 is reset (step B7).

そして、判定部18は、方向転換カウンタ21でカウントされた回数が閾値以上であるか否かを判断し(ステップB8)、方向転換カウンタ21でカウントされた回数が閾値以上である場合には(ステップB8の“閾値以上”ルート参照)、携帯端末10が振り子運動している状態であることを示す戻り値を生成し(ステップB9)、処理を終了する。
一方、判定部18は、方向転換カウンタ21でカウントされた回数が閾値未満である場合には(ステップB8の“閾値未満”ルート参照)、センサ値取得を示す戻り値を生成し(ステップB5)、処理を終了する。
And the determination part 18 judges whether the frequency | count counted by the direction change counter 21 is more than a threshold value (step B8), and when the frequency | count counted by the direction change counter 21 is more than a threshold value ( A return value indicating that the mobile terminal 10 is in a pendulum motion is generated (step B9), and the process ends.
On the other hand, when the number of times counted by the direction change counter 21 is less than the threshold (see the “less than threshold” route in step B8), the determination unit 18 generates a return value indicating sensor value acquisition (step B5). The process is terminated.

また、判定部18は、上述したステップB1での比較の結果、上記以外、即ち、今回算出された方向情報a−kと前回算出された方向情報a−k−1とが同一であり、且つ、今回算出された符号情報b−kと前回算出された符号情報b−k−1とが異なる場合や、今回算出された方向情報a−kと前回算出された方向情報a−k−1とが同一であり、且つ、今回算出された符号情報b−kと前回算出された符号情報b−k−1とが同一である場合以外であると判定した場合には(ステップB1の“その他”ルート参照)、連続移動カウンタ20および方向転換カウンタ21をリセットし(ステップB10)、センサ値取得を示す戻り値を生成し(ステップB5)、処理を終了する。   In addition, as a result of the comparison in step B1 described above, the determination unit 18 is other than the above, that is, the direction information ak calculated this time and the direction information ak-1 calculated last time are the same, and When the code information b-k calculated this time is different from the code information b-k-1 calculated last time, the direction information ak calculated this time and the direction information ak-1 calculated last time Are the same and the code information b-k calculated this time and the code information b-k-1 calculated last time are the same ("other" in step B1). The route is referred to), the continuous movement counter 20 and the direction change counter 21 are reset (step B10), a return value indicating sensor value acquisition is generated (step B5), and the process ends.

これにより、判定部18は、携帯端末10が同一方向に向かって連続的に移動し続けている状態を示す戻り値、携帯端末10が振り子運動している状態であることを示す戻り値、及び、センサ値取得を示す戻り値のいずれかを生成するのである。
そして、このように生成された戻り値は、その戻り値がセンサ値取得を示すもの以外の場合には、出力部19により機能処理部15に出力され、機能処理部15が、出力部19から出力された戻り値に基づいて、歩数計としての歩数算出,ゲームへの応用およびモーションコントロール等の種々の機能を実行する。
Thereby, the determination unit 18 returns a value indicating that the mobile terminal 10 is continuously moving in the same direction, a return value indicating that the mobile terminal 10 is in a pendulum motion, and One of the return values indicating the sensor value acquisition is generated.
The return value generated in this way is output to the function processing unit 15 by the output unit 19 when the return value is other than that indicating sensor value acquisition. Based on the output return value, various functions such as step count calculation as a pedometer, application to a game, and motion control are executed.

このように、本発明の第1実施形態としての携帯端末10によれば、3軸地磁気センサ11によって検出された地磁気成分Hvの情報である地磁気成分情報Aに基づいて物体の運動を判定することにより、3軸地磁気センサ11のみで携帯端末10の運動を検知できるので、加速度センサやジャイロスコープを用いることなく、物体の運動を検知することができる。   Thus, according to the mobile terminal 10 as the first embodiment of the present invention, the motion of the object is determined based on the geomagnetic component information A that is the information of the geomagnetic component Hv detected by the three-axis geomagnetic sensor 11. Thus, since the movement of the mobile terminal 10 can be detected only by the triaxial geomagnetic sensor 11, the movement of the object can be detected without using an acceleration sensor or a gyroscope.

また、2つの地磁気成分情報Aの差分Hdを複数用いて携帯端末10の運動を判定することにより、携帯端末10の相対的な運動を検知することができ、更に、加速を伴わない運動や加速度が微小な運動のような加速度センサでは検知が困難な運動であっても検知することができる。
さらに、地磁気以外の磁場影響を考慮した高精度な地磁気ベクトルを抽出する必要がなく、2つの地磁気成分情報Aの差分Hdが判別されればよいので、3軸地磁気センサ11による方位検知時に必要となるキャリブレーションのような煩雑な処理を行なう必要がない。
Further, by determining the motion of the mobile terminal 10 using a plurality of differences Hd between the two geomagnetic component information A, the relative motion of the mobile terminal 10 can be detected, and further, the motion and acceleration without acceleration. However, it is possible to detect even a motion that is difficult to detect with an acceleration sensor such as a minute motion.
Furthermore, it is not necessary to extract a highly accurate geomagnetic vector in consideration of magnetic field effects other than geomagnetism, and the difference Hd between the two geomagnetic component information A may be determined. There is no need to perform complicated processing such as calibration.

また、差分算出部17によって算出された2つの差分Hdの符号情報aが異なる回数が閾値を超えた場合に、携帯端末10が振り子運動している状態であると判定することにより、センサ搭載端末の振られている運動(縦に振られているか、横に振られているか)の判定を容易に行なうことができる。
〔2〕本発明の第2実施形態の説明
図8は本発明の第2実施形態としての携帯端末の構成例を模式的に示す図である。
In addition, when the number of times the difference between the sign information a of the two differences Hd calculated by the difference calculation unit 17 exceeds a threshold, it is determined that the mobile terminal 10 is in a pendulum motion state, whereby the sensor-equipped terminal It is possible to easily determine whether the movement is being swung (whether it is swung vertically or horizontally).
[2] Description of Second Embodiment of the Present Invention FIG. 8 is a diagram schematically showing a configuration example of a mobile terminal as a second embodiment of the present invention.

この図8に示すように、本発明の第2実施形態の携帯端末30は、上述した第1実施形態の携帯端末10と同様の機能構成をそなえる他、更に、加速度センサ31および監視制御部32をそなえて構成されている。
なお、図中、既述の符号と同一の符号は同一もしくは略同一の部分を示しているので、その詳細な説明は省略する。
As shown in FIG. 8, the mobile terminal 30 according to the second embodiment of the present invention has the same functional configuration as the mobile terminal 10 according to the first embodiment described above, and further includes an acceleration sensor 31 and a monitoring control unit 32. Is configured.
In the figure, the same reference numerals as those described above indicate the same or substantially the same parts, and detailed description thereof will be omitted.

加速度センサ31は、携帯端末30の加速度を計測する機器であって、携帯端末30のモーションセンシングに用いられるものである。この加速度センサ31は、携帯端末30において加速度の計測が必要な機能を実行する機器に出力するための加速度情報を生成するようになっている。なお、加速度センサ31は既知の技術であり、その詳細な説明を省略する。   The acceleration sensor 31 is a device that measures the acceleration of the mobile terminal 30 and is used for motion sensing of the mobile terminal 30. The acceleration sensor 31 generates acceleration information to be output to a device that executes a function that requires measurement of acceleration in the mobile terminal 30. The acceleration sensor 31 is a known technique, and a detailed description thereof is omitted.

監視制御部32は、加速度センサ31が使用中であるか否かを監視するものであって、例えば、加速度センサ31が使用中の状態においてモーションセンシングを実行しようとする場合、即ち、携帯端末30内のプロセッサ(図示省略)からモーションセンシングの処理命令が出力された場合には、その機能を3軸地磁気センサ11を用いて実行させるための制御信号を地磁気成分情報取得部16に出力するようになっている。   The monitoring control unit 32 monitors whether or not the acceleration sensor 31 is in use. For example, when the motion sensor is to be executed in a state where the acceleration sensor 31 is in use, that is, the mobile terminal 30. When a motion sensing processing command is output from an internal processor (not shown), a control signal for executing the function using the three-axis geomagnetic sensor 11 is output to the geomagnetic component information acquisition unit 16. It has become.

そして、地磁気成分情報取得部16は、監視制御部32から制御信号が入力されると、3軸地磁気センサ11がアイドル状態であるか否かを判断し、3軸地磁気センサ11がアイドル状態である場合には、上記第1実施形態と同様に、3軸地磁気センサ11のみを用いて携帯端末30の運動を判定するようになっている。
このように、本発明の第2実施形態としての携帯端末30によれば、上述した第1実施形態の携帯端末10と同様の作用効果を得ることができる他、歩数計起動時等のように加速度センサ31が使用不可の場合であっても、アイドル状態である3軸地磁気センサ11のみを用いてモーションコントロールを実現することが可能となる。
Then, when a control signal is input from the monitoring control unit 32, the geomagnetic component information acquisition unit 16 determines whether or not the triaxial geomagnetic sensor 11 is in an idle state, and the triaxial geomagnetic sensor 11 is in an idle state. In such a case, the movement of the mobile terminal 30 is determined using only the triaxial geomagnetic sensor 11 as in the first embodiment.
Thus, according to the mobile terminal 30 as the second embodiment of the present invention, the same operational effects as those of the mobile terminal 10 of the first embodiment described above can be obtained, and at the time of pedometer activation or the like. Even when the acceleration sensor 31 cannot be used, it is possible to realize motion control using only the triaxial geomagnetic sensor 11 in the idle state.

〔3〕その他
なお、本発明は上述した実施形態に限定されるものではなく、本発明の趣旨を逸脱しない範囲で種々変形して実施することができる。
例えば、上記実施形態では、携帯端末10として携帯電話機を用いた例について説明しているが、それに限定されるものではなく、地磁気センサをそなえた種々の端末に適用してもよい。
[3] Others The present invention is not limited to the above-described embodiments, and various modifications can be made without departing from the spirit of the present invention.
For example, in the above-described embodiment, an example in which a mobile phone is used as the mobile terminal 10 has been described. However, the present invention is not limited to this and may be applied to various terminals having a geomagnetic sensor.

また、上記実施形態では、3軸地磁気センサを用いた例について説明しているが、それに限定されるものではなく、例えば、1次元(x軸方向)の地磁気成分を検出する1軸地磁気センサや、2次元(x軸方向およびy軸方向)の地磁気成分を検出する2軸地磁気センサを用いてもよい。
さらに、上記実施形態では、3軸地磁気センサ11が携帯端末10,30にそなえられ、携帯端末10,30の座標を検出する場合について説明しているが、それに限定されるものではなく、例えば、3軸地磁気センサ11が携帯端末10,30から離れた外部の物体にそなえられ、その物体の座標を検出してもよい。
Moreover, although the said embodiment demonstrated the example using a triaxial geomagnetic sensor, it is not limited to it, For example, the uniaxial geomagnetic sensor which detects a one-dimensional (x-axis direction) geomagnetic component, A two-axis geomagnetic sensor that detects a two-dimensional (x-axis direction and y-axis direction) geomagnetic component may be used.
Furthermore, in the above embodiment, the case where the triaxial geomagnetic sensor 11 is provided in the mobile terminals 10 and 30 and the coordinates of the mobile terminals 10 and 30 are detected is described. However, the present invention is not limited thereto. The triaxial geomagnetic sensor 11 may be provided on an external object remote from the mobile terminals 10 and 30, and the coordinates of the object may be detected.

また、上記実施形態では、地磁気成分情報格納部12に複数の地磁気成分情報Aを時系列的に順次格納する場合について説明しているが、それに限定されるものではなく、地磁気成分情報格納部12に2つの地磁気成分情報Aを常時格納していればよい。
さらに、上記実施形態では、差分算出部17によって前回算出された差分情報D−k−1が差分情報格納部13から判定部18に入力されるとともに、差分算出部17によって今回算出された差分情報D−kが差分算出部17から判定部18に入力される場合について説明しているが、それに限定されるものではなく、差分算出部17によって前回算出された差分情報D−k−1が差分情報格納部13または差分算出部17から判定部18に入力されるとともに、差分算出部17によって今回算出された差分情報D−kが差分情報格納部13または差分算出部17から判定部18に入力されていればよい。
Moreover, although the said embodiment demonstrated the case where several geomagnetic component information A was sequentially stored in the geomagnetic component information storage part 12 in time series, it is not limited to it, The geomagnetic component information storage part 12 It is sufficient that two pieces of geomagnetic component information A are always stored.
Furthermore, in the above embodiment, the difference information Dk−1 previously calculated by the difference calculation unit 17 is input from the difference information storage unit 13 to the determination unit 18, and the difference information calculated this time by the difference calculation unit 17. Although the case where Dk is input from the difference calculation unit 17 to the determination unit 18 is described, the present invention is not limited to this, and the difference information Dk−1 previously calculated by the difference calculation unit 17 is the difference. While being input from the information storage unit 13 or the difference calculation unit 17 to the determination unit 18, the difference information Dk calculated this time by the difference calculation unit 17 is input from the difference information storage unit 13 or the difference calculation unit 17 to the determination unit 18. It only has to be done.

〔4〕付記
〔付記1〕 1軸以上の地磁気成分を検出する地磁気センサと、
該地磁気センサによって検出された該地磁気成分の情報を地磁気成分情報として格納する地磁気成分情報格納部と、
該地磁気成分情報格納部に格納された該地磁気成分情報に基づいて、物体の運動を判定する判定部とをそなえることを特徴とする、モーションセンシング装置。
[4] Appendix [Appendix 1] A geomagnetic sensor that detects one or more geomagnetic components;
A geomagnetic component information storage unit that stores information on the geomagnetic component detected by the geomagnetic sensor as geomagnetic component information;
A motion sensing device comprising: a determination unit that determines a motion of an object based on the geomagnetic component information stored in the geomagnetic component information storage unit.

〔付記2〕 該地磁気成分情報格納部に格納された2つの該地磁気成分情報の差分を算出する差分算出部をそなえ、
該判定部は、該差分算出部によって算出された該差分に基づいて、該物体の運動を判定することを特徴とする、付記1に記載のモーションセンシング装置。
〔付記3〕 該差分算出部は、該差分が閾値を超えた場合に、該物体が移動状態であると判断することを特徴とする、付記2に記載のモーションセンシング装置。
[Supplementary Note 2] A difference calculation unit that calculates a difference between two pieces of geomagnetic component information stored in the geomagnetic component information storage unit is provided.
The motion sensing device according to appendix 1, wherein the determination unit determines the motion of the object based on the difference calculated by the difference calculation unit.
[Supplementary Note 3] The motion sensing device according to Supplementary Note 2, wherein the difference calculation unit determines that the object is in a moving state when the difference exceeds a threshold value.

〔付記4〕 該判定部は、
該差分算出部によって算出された2つの該差分の符号が同一である回数をカウントする連続移動カウンタをそなえ、
当該連続移動カウンタでカウントされた回数が閾値を超えた場合に、該物体が同一方向に向かって移動し続けている状態であると判定することを特徴とする、付記2または付記3のいずれか1項に記載のモーションセンシング装置。
[Supplementary Note 4]
A continuous movement counter that counts the number of times the two difference codes calculated by the difference calculation unit are the same;
Either the supplementary note 2 or the supplementary note 3, wherein when the number of times counted by the continuous movement counter exceeds a threshold value, it is determined that the object is continuously moving in the same direction. The motion sensing device according to item 1.

〔付記5〕 該判定部は、
該差分算出部によって算出された2つの該差分の符号が異なる回数をカウントする方向転換カウンタをそなえ、
当該方向転換カウンタでカウントされた回数が閾値を超えた場合に、該物体が反復運動している状態であると判定することを特徴とする、付記2〜4のいずれか1項に記載のモーションセンシング装置。
[Supplementary Note 5]
A turn-over counter that counts the number of times the two difference codes calculated by the difference calculation unit are different;
The motion according to any one of appendices 2 to 4, wherein when the number of times counted by the direction change counter exceeds a threshold value, it is determined that the object is in a repetitive motion state. Sensing device.

〔付記6〕 該地磁気センサは、3軸の地磁気成分を検出する3軸地磁気センサであり、
該判定部は、該差分算出部によって算出された2つの該差分における方向情報と符号情報とに基づいて、該物体の運動を判定することを特徴とする、付記2〜5のいずれか1項に記載のモーションセンシング装置。
[Appendix 6] The geomagnetic sensor is a triaxial geomagnetic sensor that detects a triaxial geomagnetic component,
Any one of appendices 2 to 5, wherein the determination unit determines the motion of the object based on the direction information and the sign information in the two differences calculated by the difference calculation unit. The motion sensing device described in 1.

〔付記7〕 1軸以上の地磁気成分を検出する地磁気センサによって検出された該地磁気成分の情報を地磁気成分情報として取得する地磁気成分情報取得ステップと、
該地磁気成分情報取得ステップにおいて取得された該地磁気成分情報に基づいて、物体の運動を判定する判定ステップとをそなえることを特徴とする、モーションセンシング方法。
[Supplementary Note 7] A geomagnetic component information acquisition step of acquiring, as geomagnetic component information, information on the geomagnetic component detected by a geomagnetic sensor that detects one or more geomagnetic components;
A motion sensing method comprising: a determination step of determining a motion of an object based on the geomagnetic component information acquired in the geomagnetic component information acquisition step.

〔付記8〕 該地磁気成分情報取得ステップにおいて取得された2つの該地磁気成分情報の差分を算出する差分算出ステップをそなえ、
該判定ステップにおいて、該差分算出ステップにおいて算出された該差分に基づいて、該物体の運動を判定することを特徴とする、付記7に記載のモーションセンシング方法。
〔付記9〕 該差分算出ステップにおいて、該差分が閾値を超えた場合に、該物体が移動状態であると判定することを特徴とする、付記8に記載のモーションセンシング方法。
[Supplementary Note 8] A difference calculating step for calculating a difference between the two geomagnetic component information acquired in the geomagnetic component information acquiring step is provided.
The motion sensing method according to appendix 7, wherein in the determination step, the motion of the object is determined based on the difference calculated in the difference calculation step.
[Supplementary Note 9] The motion sensing method according to Supplementary Note 8, wherein, in the difference calculation step, when the difference exceeds a threshold value, the object is determined to be in a moving state.

〔付記10〕 該判定ステップにおいて、該差分算出ステップにおいて算出された2つの該差分の符号が同一である回数が閾値を超えた場合に、該物体が同一方向に向かって移動し続けている状態であると判定することを特徴とする、付記8または付記9のいずれか1項に記載のモーションセンシング方法。
〔付記11〕 該判定ステップにおいて、該差分算出ステップにおいて算出された2つの該差分の符号が異なる回数が閾値を超えた場合に、該物体が反復運動している状態であると判定することを特徴とする、付記8〜10のいずれか1項に記載のモーションセンシング方法。
[Supplementary Note 10] In the determination step, when the number of times the two difference codes calculated in the difference calculation step are the same exceeds a threshold, the object continues to move in the same direction The motion sensing method according to any one of appendix 8 or appendix 9, wherein the motion sensing method is characterized in that:
[Supplementary Note 11] In the determination step, it is determined that the object is in a state of repetitive movement when the number of times the two difference codes calculated in the difference calculation step exceed a threshold. The motion sensing method according to any one of appendices 8 to 10, which is characterized by the following.

〔付記12〕 該地磁気成分情報取得ステップにおいて、3軸の地磁気成分を検出する3軸地磁気センサによって検出された該地磁気成分の情報を該地磁気成分情報として取得し、
該判定ステップにおいて、該差分算出ステップにおいて算出された2つの該差分における方向情報と符号情報とに基づいて、該物体の運動を判定することを特徴とする、付記8〜11のいずれか1項に記載のモーションセンシング方法。
[Supplementary Note 12] In the geomagnetic component information acquisition step, information on the geomagnetic component detected by a triaxial geomagnetic sensor that detects a triaxial geomagnetic component is acquired as the geomagnetic component information.
Any one of appendices 8 to 11, wherein in the determining step, the motion of the object is determined based on the direction information and the sign information in the two differences calculated in the difference calculating step. The motion sensing method described in 1.

〔付記13〕 1軸以上の地磁気成分を検出する地磁気センサによって検出された該地磁気成分の情報を地磁気成分情報として取得する地磁気成分情報取得部と、
該地磁気成分情報取得部によって取得された該地磁気成分情報に基づいて、物体の運動を判定する判定部とをそなえることを特徴とする、モーションセンシング回路。
〔付記14〕 該地磁気成分情報取得部によって取得された2つの該地磁気成分情報の差分を算出する差分算出部をそなえ、
該判定部は、該差分算出部によって算出された該差分に基づいて、該物体の運動を判定することを特徴とする、付記13に記載のモーションセンシング回路。
[Supplementary Note 13] A geomagnetic component information acquisition unit that acquires, as geomagnetic component information, information on the geomagnetic component detected by a geomagnetic sensor that detects one or more geomagnetic components;
A motion sensing circuit comprising: a determination unit that determines a motion of an object based on the geomagnetic component information acquired by the geomagnetic component information acquisition unit.
[Supplementary Note 14] A difference calculating unit that calculates a difference between two pieces of geomagnetic component information acquired by the geomagnetic component information acquiring unit is provided.
14. The motion sensing circuit according to appendix 13, wherein the determination unit determines the motion of the object based on the difference calculated by the difference calculation unit.

〔付記15〕 該差分算出部は、該差分が閾値を超えた場合に、該物体が移動状態であると判定することを特徴とする、付記14に記載のモーションセンシング回路。
〔付記16〕 該判定部は、
該差分算出部によって算出された2つの該差分の符号が同一である回数をカウントする連続移動カウンタをそなえ、
当該連続移動カウンタでカウントされた回数が閾値を超えた場合に、該物体が同一方向に向かって移動し続けている状態であると判定することを特徴とする、付記14または付記15のいずれか1項に記載のモーションセンシング回路。
[Supplementary Note 15] The motion sensing circuit according to Supplementary Note 14, wherein the difference calculation unit determines that the object is in a moving state when the difference exceeds a threshold value.
[Supplementary Note 16] The determination unit
A continuous movement counter that counts the number of times the two difference codes calculated by the difference calculation unit are the same;
Any one of Supplementary Note 14 and Supplementary Note 15, wherein when the number of times counted by the continuous movement counter exceeds a threshold value, it is determined that the object is continuously moving in the same direction. The motion sensing circuit according to item 1.

〔付記17〕 該判定部は、
該差分算出部によって算出された2つの該差分の符号が異なる回数をカウントする方向転換カウンタをそなえ、
当該方向転換カウンタでカウントされた回数が閾値を超えた場合に、該物体が反復運動している状態であると判定することを特徴とする、付記14〜16のいずれか1項に記載のモーションセンシング回路。
[Supplementary Note 17]
A turn-over counter that counts the number of times the two difference codes calculated by the difference calculation unit are different;
The motion according to any one of appendices 14 to 16, wherein when the number of times counted by the direction change counter exceeds a threshold value, it is determined that the object is in a repetitive motion state. Sensing circuit.

〔付記18〕 該地磁気成分情報取得部は、3軸の地磁気成分を検出する3軸地磁気センサによって検出された該地磁気成分の情報を該地磁気成分情報として取得し、
該判定部は、該差分算出部によって算出された2つの該差分における方向情報と符号情報とに基づいて、該物体の運動を判定することを特徴とする、付記14〜17のいずれか1項に記載のモーションセンシング回路。
[Supplementary Note 18] The geomagnetic component information acquisition unit acquires information on the geomagnetic component detected by a triaxial geomagnetic sensor that detects a triaxial geomagnetic component as the geomagnetic component information.
Any one of appendixes 14 to 17, wherein the determination unit determines the motion of the object based on the direction information and the sign information in the two differences calculated by the difference calculation unit. The motion sensing circuit described in 1.

本発明の第1実施形態としての携帯端末の運動について説明するための図である。It is a figure for demonstrating the exercise | movement of the portable terminal as 1st Embodiment of this invention. 本発明の第1実施形態としての携帯端末の構成例を模式的に示す図である。It is a figure which shows typically the structural example of the portable terminal as 1st Embodiment of this invention. 本発明の第1実施形態としての携帯端末における地磁気成分情報格納部の構成例を模式的に示す図である。It is a figure which shows typically the structural example of the geomagnetic component information storage part in the portable terminal as 1st Embodiment of this invention. 本発明の第1実施形態としての携帯端末における地磁気成分情報格納部に格納された地磁気成分情報を説明するための図である。It is a figure for demonstrating the geomagnetic component information stored in the geomagnetic component information storage part in the portable terminal as 1st Embodiment of this invention. 本発明の第1実施形態としての携帯端末における差分情報格納部の構成例を模式的に示す図である。It is a figure which shows typically the structural example of the difference information storage part in the portable terminal as 1st Embodiment of this invention. 本発明の第1実施形態としての携帯端末において当該携帯端末の運動を判定する手法の一例を示すフローチャートである。It is a flowchart which shows an example of the method of determining the exercise | movement of the said portable terminal in the portable terminal as 1st Embodiment of this invention. 本発明の第1実施形態としての携帯端末の判定部において戻り値を生成する具体的な手法の一例を示すフローチャートである。It is a flowchart which shows an example of the specific method which produces | generates a return value in the determination part of the portable terminal as 1st Embodiment of this invention. 本発明の第2実施形態としての携帯端末の構成例を模式的に示す図である。It is a figure which shows typically the structural example of the portable terminal as 2nd Embodiment of this invention.

符号の説明Explanation of symbols

10,30 携帯端末(モーションセンシング装置)
11 3軸地磁気センサ(地磁気センサ)
12 地磁気成分情報格納部
13 差分情報格納部
14 CPU(モーションセンシング回路)
15 機能処理部
16 地磁気成分情報取得部
17 差分算出部
18 判定部
19 出力部
20 連続移動カウンタ
21 方向転換カウンタ
31 加速度センサ
32 監視制御部
A,A−1,A−2,A−n−1,A−n 地磁気成分情報
D,D−1,D−k 差分情報
Hg1,Hg2 地磁気成分
Hv12 差分ベクトル
a,a−1,a−k 方向情報
b,b−1,b−k 符号情報
10, 30 Mobile terminal (motion sensing device)
11 3-axis geomagnetic sensor (geomagnetic sensor)
12 Geomagnetic component information storage unit 13 Difference information storage unit 14 CPU (motion sensing circuit)
DESCRIPTION OF SYMBOLS 15 Function processing part 16 Geomagnetic component information acquisition part 17 Difference calculation part 18 Determination part 19 Output part 20 Continuous movement counter 21 Direction change counter 31 Acceleration sensor 32 Monitoring control part A, A-1, A-2, An-1 , A-n geomagnetic component information D, D-1, D- k difference information Hg 1, Hg 2 geomagnetic components Hv 12 difference vector a, a-1, a- k direction information b, b-1, b- k code information

Claims (6)

軸以上の地磁気成分を検出する地磁気センサと、
該地磁気センサによって検出された該地磁気成分の情報を地磁気成分情報として格納する地磁気成分情報格納部と、
該地磁気成分情報格納部に格納された2つの該地磁気成分情報の差分に基づいて、方向情報と符号情報とをそなえる差分情報を生成し、該差分が閾値を超えた場合に、物体が移動状態であると判断する差分算出部と、
該移動状態であると判断された場合に、該差分算出部によって算出された該差分の各成分のうち絶対値が最も大きい成分を方向情報として格納し、該成分の符号を符号情報として格納する差分情報格納部と、
該差分算出部によって算出された方向情報と該差分情報格納部に格納された方向情報とが同一であり、且つ、該差分算出部によって算出された符号情報と該差分情報格納部に格納された符号情報とが同一である回数をカウントする連続移動カウンタと、該差分算出部によって算出された方向情報と該差分情報格納部に格納された方向情報とが同一であり、且つ、該差分算出部によって算出された符号情報と該差分情報格納部に格納された符号情報とが異なる回数をカウントする方向転換カウンタとをそなえ、該移動状態であると判断され、且つ、該連続移動カウンタでカウントされた回数が閾値を超えた場合に、該物体が同一方向に向かって移動し続けている状態であると判定し、該移動状態であると判断され、且つ、該方向転換カウンタでカウントされた回数が閾値を超えた場合に、該物体が反復運動している状態であると判定する判定部とをそなえることを特徴とする、モーションセンシング装置
A geomagnetic sensor that detects geomagnetic components of two or more axes;
A geomagnetic component information storage unit that stores information on the geomagnetic component detected by the geomagnetic sensor as geomagnetic component information;
Based on the difference between the two geomagnetic component information stored in the geomagnetic component information storage unit, difference information including direction information and code information is generated, and when the difference exceeds a threshold, the object is in a moving state A difference calculation unit that determines that
When it is determined that it is in the moving state, the component having the largest absolute value among the components of the difference calculated by the difference calculation unit is stored as direction information, and the code of the component is stored as code information A difference information storage unit;
The direction information calculated by the difference calculation unit and the direction information stored in the difference information storage unit are the same, and the code information calculated by the difference calculation unit and stored in the difference information storage unit The continuous movement counter that counts the number of times the code information is the same, the direction information calculated by the difference calculation unit, and the direction information stored in the difference information storage unit are the same, and the difference calculation unit And a direction change counter that counts the number of times that the code information stored in the difference information storage unit is different from the code information calculated by the difference information storage unit, and is determined to be in the moving state, and is counted by the continuous movement counter. When the number of times exceeds the threshold, it is determined that the object continues to move in the same direction, is determined to be in the moving state, and the direction change counter If the number of the count exceeds a threshold value, we characterized in that it comprises a a determination unit said object is a state in which the repetitive motion, the motion sensing device.
該地磁気センサは、3軸の地磁気成分を検出する3軸地磁気センサであることを特徴とする、請求項に記載のモーションセンシング装置。 The motion sensing apparatus according to claim 1 , wherein the geomagnetic sensor is a triaxial geomagnetic sensor that detects a triaxial geomagnetic component. 軸以上の地磁気成分を検出する地磁気センサによって検出された該地磁気成分の情報を地磁気成分情報として取得する地磁気成分情報取得ステップと、
該地磁気成分情報取得ステップにおいて取得された2つの該地磁気成分情報の差分に基づいて、方向情報と符号情報とをそなえる差分情報を生成し、該差分が閾値を超えた場合に、物体が移動状態であると判断する差分算出ステップと、
該移動状態であると判断された場合に、該差分算出ステップにおいて算出された該差分の各成分のうち絶対値が最も大きい成分を方向情報として格納し、該成分の符号を符号情報として格納する差分情報格納ステップと、
該差分算出ステップにおいて算出された方向情報と該差分情報格納ステップにおいて格納された方向情報とが同一であり、且つ、該差分算出ステップにおいて算出された符号情報と該差分情報格納ステップにおいて格納された符号情報とが同一である回数をカウントする連続移動カウントステップと、該差分算出ステップにおいて算出された方向情報と該差分情報格納ステップにおいて格納された方向情報とが同一であり、且つ、該差分算出ステップにおいて算出された符号情報と該差分情報格納ステップにおいて格納された符号情報とが異なる回数をカウントする方向転換カウントステップとをそなえ、該移動状態であると判断され、且つ、該連続移動カウントステップでカウントされた回数が閾値を超えた場合に、該物体が同一方向に向かって移動し続けている状態であると判定し、該移動状態であると判断され、且つ、該方向転換カウントステップでカウントされた回数が閾値を超えた場合に、該物体が反復運動している状態であると判定する判定ステップとをそなえることを特徴とする、モーションセンシング方法
A geomagnetic component information acquisition step for acquiring, as geomagnetic component information, information on the geomagnetic component detected by a geomagnetic sensor that detects geomagnetic components of two or more axes;
Based on the difference between the two pieces of geomagnetic component information acquired in the geomagnetic component information acquisition step, difference information including direction information and code information is generated, and the object is in a moving state when the difference exceeds a threshold value. A difference calculating step for determining that
When it is determined that it is in the moving state, the component having the largest absolute value among the components of the difference calculated in the difference calculating step is stored as direction information, and the code of the component is stored as code information. Difference information storage step;
The direction information calculated in the difference calculation step and the direction information stored in the difference information storage step are the same, and the code information calculated in the difference calculation step and stored in the difference information storage step The continuous movement counting step that counts the number of times the code information is the same, the direction information calculated in the difference calculation step, and the direction information stored in the difference information storage step are the same, and the difference calculation A direction change counting step that counts the number of times the code information calculated in the step and the code information stored in the difference information storage step are different, and is determined to be in the moving state, and the continuous movement counting step If the number counted in step exceeds the threshold, the object is directed in the same direction. Determines that the state continues to move and I, is determined to be the moving state, and, when the number counted by said turnaround counting step exceeds a threshold value, said object is to repetitive motion A motion sensing method comprising: a determination step of determining that the current state is present .
該地磁気センサは、3軸の地磁気成分を検出する3軸地磁気センサであることを特徴とする、請求項3に記載のモーションセンシング方法。  The motion sensing method according to claim 3, wherein the geomagnetic sensor is a triaxial geomagnetic sensor that detects a triaxial geomagnetic component. 軸以上の地磁気成分を検出する地磁気センサによって検出された該地磁気成分の情報を地磁気成分情報として取得する地磁気成分情報取得部と、
地磁気成分情報取得部によって取得された2つの該地磁気成分情報の差分に基づいて、方向情報と符号情報とをそなえる差分情報を生成し、該差分が閾値を超えた場合に、物体が移動状態であると判断する差分算出部と、
該移動状態であると判断された場合に、該差分算出部によって算出された該差分の各成分のうち絶対値が最も大きい成分を方向情報として格納し、該成分の符号を符号情報として格納する差分情報格納部と、
該差分算出部によって算出された方向情報と該差分情報格納部に格納された方向情報とが同一であり、且つ、該差分算出部によって算出された符号情報と該差分情報格納部に格納された符号情報とが同一である回数をカウントする連続移動カウンタと、該差分算出部によって算出された方向情報と該差分情報格納部に格納された方向情報とが同一であり、且つ、該差分算出部によって算出された符号情報と該差分情報格納部に格納された符号情報とが異なる回数をカウントする方向転換カウンタとをそなえ、該移動状態であると判断され、且つ、該連続移動カウンタでカウントされた回数が閾値を超えた場合に、該物体が同一方向に向かって移動し続けている状態であると判定し、該移動状態であると判断され、且つ、該方向転換カウンタでカウントされた回数が閾値を超えた場合に、該物体が反復運動している状態であると判定する判定部とをそなえることを特徴とする、モーションセンシング回路
A geomagnetic component information acquisition unit that acquires, as geomagnetic component information, information on the geomagnetic component detected by a geomagnetic sensor that detects geomagnetic components of two or more axes;
Based on the difference between the two pieces of geomagnetic component information acquired by the geomagnetic component information acquisition unit, difference information including direction information and code information is generated, and when the difference exceeds a threshold, the object is in a moving state. A difference calculation unit that determines that there is,
When it is determined that it is in the moving state, the component having the largest absolute value among the components of the difference calculated by the difference calculation unit is stored as direction information, and the code of the component is stored as code information A difference information storage unit;
The direction information calculated by the difference calculation unit and the direction information stored in the difference information storage unit are the same, and the code information calculated by the difference calculation unit and stored in the difference information storage unit The continuous movement counter that counts the number of times the code information is the same, the direction information calculated by the difference calculation unit, and the direction information stored in the difference information storage unit are the same, and the difference calculation unit And a direction change counter that counts the number of times that the code information stored in the difference information storage unit is different from the code information calculated by the difference information storage unit, and is determined to be in the moving state, and is counted by the continuous movement counter. When the number of times exceeds the threshold, it is determined that the object continues to move in the same direction, is determined to be in the moving state, and the direction change counter If the number of the count exceeds a threshold value, characterized in that it comprises a a determination unit said object is a state in which the repetitive motion, the motion sensing circuitry.
該地磁気センサは、3軸の地磁気成分を検出する3軸地磁気センサであることを特徴とする、請求項5に記載のモーションセンシング回路。  The motion sensing circuit according to claim 5, wherein the geomagnetic sensor is a triaxial geomagnetic sensor that detects a triaxial geomagnetic component.
JP2007337312A 2007-12-27 2007-12-27 Motion sensing device, motion sensing method, and motion sensing circuit Expired - Fee Related JP5176537B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2007337312A JP5176537B2 (en) 2007-12-27 2007-12-27 Motion sensing device, motion sensing method, and motion sensing circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2007337312A JP5176537B2 (en) 2007-12-27 2007-12-27 Motion sensing device, motion sensing method, and motion sensing circuit

Publications (2)

Publication Number Publication Date
JP2009156779A JP2009156779A (en) 2009-07-16
JP5176537B2 true JP5176537B2 (en) 2013-04-03

Family

ID=40960945

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2007337312A Expired - Fee Related JP5176537B2 (en) 2007-12-27 2007-12-27 Motion sensing device, motion sensing method, and motion sensing circuit

Country Status (1)

Country Link
JP (1) JP5176537B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6356529B2 (en) * 2014-08-08 2018-07-11 株式会社東海理化電機製作所 Electronic key and electronic key system
JP6537554B2 (en) * 2017-04-21 2019-07-03 ラピスセミコンダクタ株式会社 Semiconductor device and electronic terminal

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0441388Y2 (en) * 1986-04-28 1992-09-29
JP3010095B2 (en) * 1992-03-31 2000-02-14 アルパイン株式会社 How to read rotary encoder with click
JPH06332618A (en) * 1993-05-25 1994-12-02 Hitachi Ltd Cursor control method
JP3848269B2 (en) * 2003-02-20 2006-11-22 有限会社 未来夢 Information processing apparatus, information processing method, and computer program
EP1591873A3 (en) * 2004-04-29 2006-12-06 Samsung Electronics Co., Ltd. Method and apparatus for entering information into an portable electronic device
JP2007093448A (en) * 2005-09-29 2007-04-12 Aichi Steel Works Ltd Motion sensor and portable telephone using the same
WO2007099599A1 (en) * 2006-02-28 2007-09-07 Aichi Micro Intelligent Corporation Magnetic gyroscope

Also Published As

Publication number Publication date
JP2009156779A (en) 2009-07-16

Similar Documents

Publication Publication Date Title
JP4615287B2 (en) Azimuth and orientation detection device
JP4167263B2 (en) Mobile terminal device
US8239153B2 (en) Dynamic compass calibration in a portable device
JP2005292893A (en) Portable information terminal device
US7921572B2 (en) Accuracy indications for an electronic compass in a portable device
US20090248352A1 (en) Motion sensing program and electronic compass with motion sensing program
KR101210394B1 (en) geomagnetism detection device
JP2008224642A (en) Magnetic gyro
JP2019078560A (en) Gyro sensor offset correcting device, offset correction program, and pedestrian autonomous navigation device
JP2006194725A (en) Attitude detection method using biaxial magnetometric sensor, and its program
US20130110451A1 (en) State estimation apparatus
JP6474128B2 (en) Electronic equipment with geomagnetic and acceleration sensors
JP5678748B2 (en) Terminal device and geomagnetic environment determination program
JP5176537B2 (en) Motion sensing device, motion sensing method, and motion sensing circuit
JPWO2014115848A1 (en) Rotation information calculation method, rotation information calculation program, magnetic gyroscope and moving body
KR101472960B1 (en) Apparatus and method for esimating orientation using pattern recogniion
JP5144701B2 (en) Magnetic field detector
JP2011185868A (en) Azimuth detector
JP5498209B2 (en) Magnetic field detector
JP2008541041A (en) Device comprising sensor device and estimator
JP2013217793A (en) Off-set calculation device, off-set calculation method, program, and information processing device
JP2006275524A (en) Electronic azimuth meter and recording medium
JP2010271209A (en) Portable information apparatus, method and program for correcting offset error of acceleration sensor
JP5490576B2 (en) Magnetic field detector
JP5498196B2 (en) Magnetic field detector

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20100820

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20120515

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20120712

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20121224

R150 Certificate of patent or registration of utility model

Ref document number: 5176537

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

LAPS Cancellation because of no payment of annual fees