JP3772895B2 - Portable information terminal and control method using game software executed in portable information terminal - Google Patents

Portable information terminal and control method using game software executed in portable information terminal Download PDF

Info

Publication number
JP3772895B2
JP3772895B2 JP2004175673A JP2004175673A JP3772895B2 JP 3772895 B2 JP3772895 B2 JP 3772895B2 JP 2004175673 A JP2004175673 A JP 2004175673A JP 2004175673 A JP2004175673 A JP 2004175673A JP 3772895 B2 JP3772895 B2 JP 3772895B2
Authority
JP
Japan
Prior art keywords
information terminal
portable information
azimuth
game software
inclination
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
JP2004175673A
Other languages
Japanese (ja)
Other versions
JP2004337619A (en
Inventor
道彦 後藤
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Yamaha Corp
Original Assignee
Yamaha Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Yamaha Corp filed Critical Yamaha Corp
Priority to JP2004175673A priority Critical patent/JP3772895B2/en
Publication of JP2004337619A publication Critical patent/JP2004337619A/en
Application granted granted Critical
Publication of JP3772895B2 publication Critical patent/JP3772895B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Description

本発明は、GPSを利用して位置情報を取得し、さらに磁気センサを利用して方位及び傾き等の情報を求め、これらの情報(特には、位置情報と方位情報)に基づきゲームソフトの進行を制御させる携帯情報端末に関する。   The present invention acquires position information using GPS, further obtains information such as azimuth and inclination using a magnetic sensor, and progress of game software based on such information (particularly position information and azimuth information). The present invention relates to a portable information terminal that controls the device.

現在、携帯用ゲーム機では、ゲームソフトのカートリッジ内に加速度センサ(自動車のエアバッグ部分やPCゲームのジョイスティック等に使用されているもの)を内蔵して、ゲーム機本体の傾きや加速度を検出できるようにし、ピンボール等の盤面上でボールを転がすゲーム内で、ゲーム機本体そのものを傾けることによって、その盤面やボールの操作をすることが実現されている。
http://www.nintendo.co.jp/n02/dmg/kkkj/
Currently, portable game machines have built-in acceleration sensors (used in automobile airbags, PC game joysticks, etc.) in the game software cartridge, and can detect the tilt and acceleration of the game console itself. Thus, in a game in which a ball is rolled on a board surface such as a pinball, it is realized that the game machine body itself is tilted to operate the board surface or the ball.
http://www.nintendo.co.jp/n02/dmg/kkkj/

しかし、加速度センサでは、ゲームソフトの進行等の処理において、使用者の環境の変化、すなわち、使用者の位置や向き(方位)等の変化に応じた処理を実現するのは困難である。   However, with an acceleration sensor, it is difficult to realize processing according to changes in the user's environment, that is, changes in the user's position, orientation (orientation), etc., in processing such as progress of game software.

本発明は、上記の点に鑑みてなされたもので、ゲームソフトを実行可能な携帯情報端末において、使用者の位置や向き(方位)等の変化に応じた処理を実現できる技術を提供するものである。   The present invention has been made in view of the above points, and provides a technique capable of realizing processing according to changes in the position and orientation (orientation) of a user in a portable information terminal capable of executing game software. It is.

請求項1に記載の本発明の携帯情報端末は、ゲームソフトを実行可能な携帯情報端末において、GPS信号を受信する受信手段と、受信したGPS信号から現在位置を求める測位手段と、地磁気センサと、前記地磁気センサの出力と方位との関係が規定されたテーブルと、前記地磁気センサの出力と前記テーブルとから該携帯情報端末が向く方位を求める方位算出手段と、該携帯情報端末の傾きを求める傾き算出手段と、ゲームソフトを記憶する記憶手段と、前記ゲームソフトを実行するゲーム処理手段と、を具備し、前記ゲームソフトには、前記測位手段、方位算出手段、傾き算出手段より求められる現在位置と該携帯情報端末が向く方位と該携帯情報端末の傾きのうちの何れかの情報が、前記ゲームソフトによる動作を決定する条件として予め設定されており、前記ゲーム処理手段は、前記ゲームソフトを実行すると、前記求められた現在位置と該携帯情報端末が向く方位と該携帯情報端末の傾きのうちの何れかの情報を受け取り、受け取った情報と前記条件として設定されている情報とが合致しているかを判断する処理を行い、該判断に従って前記ゲームソフトによる動作を決定することを特徴とする。 The portable information terminal of the present invention according to claim 1 is a portable information terminal capable of executing game software, wherein the receiving means receives GPS signals, the positioning means obtains the current position from the received GPS signals, the geomagnetic sensor, , A table in which the relationship between the output of the geomagnetic sensor and the orientation is defined, orientation calculation means for obtaining an orientation in which the portable information terminal faces from the output of the geomagnetic sensor and the table, and an inclination of the portable information terminal Inclination calculating means, storage means for storing game software, and game processing means for executing the game software, wherein the game software is currently obtained from the positioning means, azimuth calculating means, and inclination calculating means. Any one of the position, the direction in which the portable information terminal faces and the inclination of the portable information terminal is a condition for determining the operation by the game software. Preset, and when the game processing means executes the game software, the game processing means receives any information of the obtained current position, the direction in which the portable information terminal faces, and the inclination of the portable information terminal, A process for determining whether the received information matches the information set as the condition is performed, and an operation by the game software is determined according to the determination.

また、請求項2に記載の本発明は、請求項1に記載の携帯情報端末において、前記地磁気センサは、前記携帯情報端末の任意の方向の外部磁界の成分に応じた値を出力する複数の地磁気センサからなり、前記方位算出手段は、前記複数の外部磁界成分に応じた値から方位を算出し、前記傾き算出手段は、前記複数の外部磁界成分に応じた値から傾きを算出することを特徴とする。 Moreover, the present invention according to claim 2 is the portable information terminal according to claim 1, wherein the geomagnetic sensor outputs a plurality of values corresponding to components of an external magnetic field in an arbitrary direction of the portable information terminal. The azimuth calculating means calculates a azimuth from values corresponding to the plurality of external magnetic field components, and the inclination calculating means calculates an inclination from values corresponding to the plurality of external magnetic field components. Features.

また、請求項3に記載の本発明は、請求項1に記載の携帯情報端末において実行されるゲームソフトによる制御方法であって、前記ゲームソフトには、前記携帯情報端末において求められる現在位置と該携帯情報端末が向く方位と該携帯情報端末の傾きのうちの何れかの情報が、前記ゲームソフトによる動作を決定する条件として予め設定されており、前記携帯情報端末において求められた現在位置と該携帯情報端末が向く方位と該携帯情報端末の傾きのうちの何れかの情報を受け取る手順と、前記受け取った情報と前記条件として設定されている情報とが合致しているかを判断する手順と、前記判断に従って前記ゲームソフトによる動作を決定する手順と、を含むことを特徴とする。
また、請求項4に記載の本発明は、請求項1または2の何れか1項に記載の携帯情報端末において、前記方位算出手段は、前記方位の情報として方位(α)または方位角変化(Δα)を算出し、前記傾き算出手段は、前記傾きの情報として傾斜角(β)または傾斜角変化(Δβ)を算出することを特徴とする。
また、請求項5に記載の本発明は、請求項4に記載の制御方法において、前記方位の情報として方位(α)または方位角変化(Δα)を算出し、前記傾きの情報として傾斜角(β)または傾斜角変化(Δβ)を算出することを特徴とする。
The present invention described in claim 3 is a control method by game software executed in the portable information terminal according to claim 1, wherein the game software includes a current position required in the portable information terminal and Information on any one of the orientation of the portable information terminal and the inclination of the portable information terminal is preset as a condition for determining the operation by the game software, and the current position obtained in the portable information terminal A procedure for receiving any information of the orientation of the portable information terminal and the inclination of the portable information terminal; and a procedure for determining whether the received information matches the information set as the condition; And a procedure for determining an operation by the game software in accordance with the determination.
According to a fourth aspect of the present invention, in the portable information terminal according to the first or second aspect, the azimuth calculating means uses the azimuth (α) or azimuth angle change ( (Δα) is calculated, and the inclination calculating means calculates an inclination angle (β) or an inclination angle change (Δβ) as the inclination information.
According to a fifth aspect of the present invention, in the control method according to the fourth aspect, an azimuth (α) or azimuth angle change (Δα) is calculated as the azimuth information, and an inclination angle ( β) or change in tilt angle (Δβ) is calculated.

本発明によれば、受信したGPS信号から現在位置を求め、さらに地磁気センサの出力から該携帯情報端末が向く方位及び該携帯情報端末の傾きを求めて、求められた現在位置、該携帯情報端末が向く方位、該携帯情報端末の傾きの情報のうちの何れかが、ゲームソフトによる動作を決定する条件として設定されている情報と合致しているかを判断する処理を行い、該判断に従って前記ゲームソフトによる動作を決定するので、当該ゲームソフトは、使用者の環境の変化、すなわち、使用者の位置や向き(方位)等の変化に応じた処理を実現することができる。すなわち、本発明の携帯情報端末は、今までにない操作感を味わえるゲームソフトのプラットホームとなり、ゲームソフトの開発者に、こうしたゲームソフトの開発機会を新たに提供するものとなる。   According to the present invention, the current position is obtained from the received GPS signal, and the azimuth of the portable information terminal and the inclination of the portable information terminal are obtained from the output of the geomagnetic sensor, and the obtained current position, the portable information terminal Is performed to determine whether any of the orientation of the mobile information terminal and the tilt information of the portable information terminal matches information set as a condition for determining operation by the game software, and the game is performed according to the determination. Since the operation by the software is determined, the game software can realize a process according to a change in the user's environment, that is, a change in the position and orientation (orientation) of the user. That is, the portable information terminal of the present invention becomes a platform for game software that can experience an unprecedented feeling of operation, and newly provides such game software development opportunities to game software developers.

以下、本発明の実施の形態を、図面を参照して説明する。
図1に、本発明の携帯情報端末の一実施の形態である携帯電話機の構成を示し、図2にその概略正面図を示している。
Hereinafter, embodiments of the present invention will be described with reference to the drawings.
FIG. 1 shows a configuration of a mobile phone as an embodiment of the portable information terminal of the present invention, and FIG. 2 shows a schematic front view thereof.

図1に示すように、本実施の形態の携帯電話機1は、GPS(GlobalPositioning System)部20及び磁気センサ(地磁気センサ)30を備え、これらを利用して、当該携帯電話機1の位置情報ならびに方位及び傾斜角等の情報を取得する機能を有する点等を除けば、従来の一般的な携帯電話機と同様に構成される。   As shown in FIG. 1, the mobile phone 1 according to the present embodiment includes a GPS (Global Positioning System) unit 20 and a magnetic sensor (geomagnetic sensor) 30, and uses these to obtain positional information and orientation of the mobile phone 1. Except for the point of having the function of acquiring information such as the tilt angle, etc., it is configured in the same way as a conventional general mobile phone.

また、携帯電話機1は、図2に示すように、互いに直交するX軸、Y軸、及びZ軸に沿って延びる辺を有するほぼ直方体の本体10を備えている。この図に示す例では、本体10の使用状態において、X軸が本体10の第1所定軸としての左右軸と一致し、Y軸が同本体10の第2所定軸としての上下軸に一致している。さらに、後述する方位α及び傾斜角βを検出するための基準となる本体10の第3所定軸は、この場合、Y軸(Y軸正方向)となる。   As shown in FIG. 2, the mobile phone 1 includes a substantially rectangular parallelepiped main body 10 having sides extending along the X axis, the Y axis, and the Z axis that are orthogonal to each other. In the example shown in this figure, when the main body 10 is in use, the X axis coincides with the left and right axes as the first predetermined axis of the main body 10, and the Y axis coincides with the vertical axis as the second predetermined axis of the main body 10. ing. Further, in this case, the third predetermined axis of the main body 10 serving as a reference for detecting an orientation α and an inclination angle β, which will be described later, is the Y axis (Y axis positive direction).

次に、携帯電話機1の構成を具体的に説明する。
図1において、符号11は、CPU(中央処理装置)であり、各種制御プログラム(ゲームプログラム(以下、ゲームソフトと称す)等のアプリケーションプログラムを含む)を実行することにより携帯電話機1の各部の動作を制御する。
符号12は、RAM(Random Access Memory)であり、CPU11のワークエリアや、ダウンロードされた楽曲データや伴奏データの格納エリア、及び、受信した電子メールのデータが格納されるメールデータ格納エリア等が設定される。なお、本実施の形態の携帯電話機1を特徴づける機能に係るCPU11の処理は、後述する携帯電話機1の動作説明において詳述する。
Next, the configuration of the mobile phone 1 will be specifically described.
In FIG. 1, reference numeral 11 denotes a CPU (central processing unit), and the operation of each unit of the mobile phone 1 by executing various control programs (including application programs such as game programs (hereinafter referred to as game software)). To control.
Reference numeral 12 denotes a RAM (Random Access Memory) in which a work area of the CPU 11, a storage area for downloaded music data and accompaniment data, a mail data storage area for storing received e-mail data, and the like are set. Is done. The processing of the CPU 11 relating to the function that characterizes the mobile phone 1 of the present embodiment will be described in detail in the operation description of the mobile phone 1 described later.

符号13は、ROM(Read Only Memory)である。このROM13は、CPU11が実行する送信・着信等の制御をする各種電話機能プログラムや電子メールの送受信を制御するメール送受信機能プログラムや、楽曲再生処理を補助するプログラム、ゲームソフト等のアプリケーションプログラム、及び、下記のGPS部20における当該携帯電話機1の位置算出の処理を補助するプログラムや、磁気センサ30における当該携帯電話機1が向く方位及び傾斜角等の算出処理をするプログラムや、予め記録された楽曲データや伴奏データ等の各種データが格納されている。   Reference numeral 13 denotes a ROM (Read Only Memory). The ROM 13 includes various telephone function programs for controlling transmission and reception executed by the CPU 11, mail transmission / reception function programs for controlling transmission / reception of e-mails, programs for assisting music reproduction processing, application programs such as game software, and the like. A program for assisting the position calculation processing of the mobile phone 1 in the GPS unit 20 described below, a program for calculating the azimuth and inclination angle of the mobile phone 1 facing the magnetic sensor 30, and a pre-recorded music piece Various data such as data and accompaniment data are stored.

また、符号14は、通信部であり、この通信部14に備わるアンテナで受信された信号の復調を行うとともに、送信する信号を変調してアンテナに供給している。通信部14で復調された着信信号は、音声CODEC(コーダ/デコーダ)15において復号され、マイクから入力された音声信号はデジタル化され音声CODEC15において圧縮符号化される。音声CODEC15は、例えばCELP(Code Excited LPC)系やADPCM(適応差分PCM符号化)方式により、音声データを高能率圧縮符号化/復号化している。   Reference numeral 14 denotes a communication unit which demodulates a signal received by an antenna provided in the communication unit 14 and modulates a signal to be transmitted to supply the antenna. The incoming signal demodulated by the communication unit 14 is decoded by an audio CODEC (coder / decoder) 15, and the audio signal input from the microphone is digitized and compressed and encoded by the audio CODEC 15. The voice CODEC 15 performs high-efficiency compression coding / decoding of voice data by using, for example, a CELP (Code Excited LPC) system or an ADPCM (Adaptive Differential PCM Coding) system.

また、符号16は、楽曲再生部であり、音声CODEC15からの音声信号(着信信号)をイヤスピーカから出力したり、選択された楽曲データを再生して着信音あるいは保留音として出力する。なお、着信音は背面拡声スピーカから出力され、保留音は着信信号とミキシングされてイヤスピーカから出力される。   Reference numeral 16 denotes a music reproducing unit which outputs an audio signal (incoming signal) from the audio CODEC 15 from an ear speaker or reproduces selected music data and outputs it as a ring tone or a holding tone. Note that the ring tone is output from the back loudspeaker, and the hold tone is mixed with the incoming signal and output from the ear speaker.

また、符号17は、LCD(Liquid Crystal Display)であり、電話機能や電子メール送受信機能のメニューや、ダイヤルボタン等の各種ボタンの操作に応じた表示がされる表示器である。
また、符号18は、入出力用のI/F(インターフェース)であり、各種外部機器と接続するために用いられる。
また、符号19は、操作入力部であり、携帯電話機1の本体10に設けられた「0」〜「9」のダイヤルボタンを含む各種ボタン(図示せず)からの入力を検知する入力手段である。
Reference numeral 17 denotes an LCD (Liquid Crystal Display), which is a display that displays a menu corresponding to a telephone function, an e-mail transmission / reception function, or various buttons such as dial buttons.
Reference numeral 18 denotes an input / output I / F (interface), which is used to connect to various external devices.
Reference numeral 19 denotes an operation input unit, which is input means for detecting input from various buttons (not shown) including dial buttons “0” to “9” provided on the main body 10 of the mobile phone 1. is there.

また、符号20は、GPS部であり、このGPS部20に備わるアンテナで、GPS(Global Positioning System)を構成するGPS衛星(複数)から送信される信号を受け、このGPS衛星から受けた信号を復調し、復調した信号をもとに当該携帯電話機1の現在地の位置を算出してその位置情報(緯度・経度)を求める。この現在地の位置を算出する処理は、従来のナビゲーションシステム等において行われる処理と同様のものである。なお、このGPS部20にジャイロやコンパスをさらに内蔵させ、GPS衛星からの電波の届かない場所でも位置情報を取得できるようにしてもよい。   Reference numeral 20 denotes a GPS unit. An antenna provided in the GPS unit 20 receives signals transmitted from GPS satellites (multiple positioning systems) constituting the GPS (Global Positioning System), and receives signals received from the GPS satellites. Based on the demodulated signal, the position of the current location of the mobile phone 1 is calculated, and the position information (latitude / longitude) is obtained. The processing for calculating the position of the current location is the same as the processing performed in a conventional navigation system or the like. The GPS unit 20 may further include a gyroscope or a compass so that position information can be acquired even in a place where radio waves from GPS satellites do not reach.

また、符号21は、ADコンバータであり、下記の磁気センサ30のX軸磁気センサ31、及びY軸磁気センサ32と接続されていて、同X軸磁気センサ31、及びY軸磁気センサ32の各出力値をAD変換して、CPU11に供給するようになっている。
磁気センサ30は、図2に示したように、携帯電話機1の前面(X−Y平面と平行な平面)とほぼ平行となるように、同携帯電話機1の内部に保持されていて、図1に示すように、X軸(本体10の左右軸)方向の外部磁界(地磁気)の成分に応じた値を示すX軸磁気センサ31と、Y軸(本体10の上下軸)方向の外部磁界の成分に応じた値を示すY軸磁気センサ32とを備えている(詳細は、後述する)。
携帯電話機1は、以上の機能ブロックを備え、各機能ブロックはバス40を介してデータや命令の授受を行っている。
Reference numeral 21 denotes an AD converter, which is connected to an X-axis magnetic sensor 31 and a Y-axis magnetic sensor 32 of the magnetic sensor 30 described below, and each of the X-axis magnetic sensor 31 and the Y-axis magnetic sensor 32 is connected. The output value is AD converted and supplied to the CPU 11.
As shown in FIG. 2, the magnetic sensor 30 is held inside the mobile phone 1 so as to be substantially parallel to the front surface of the mobile phone 1 (a plane parallel to the XY plane). As shown, the X-axis magnetic sensor 31 indicating a value corresponding to the external magnetic field (geomagnetic) component in the X-axis (left and right axis of the main body 10) direction, and the external magnetic field in the Y-axis (up-and-down axis of the main body 10) direction. And a Y-axis magnetic sensor 32 indicating a value corresponding to the component (details will be described later).
The cellular phone 1 includes the functional blocks described above, and each functional block exchanges data and commands via the bus 40.

なお、本実施の形態において携帯電話機1とは、いわゆるCDMA(符合分割多重接続)方式やPDC(Personal Digital Cellular System)方式などの携帯電話機やPHS(登録商標)(Personal Handyphone System)端末を代表して称すものとする。また、本実施の形態では、本発明の一実施の形態として携帯電話機を例示しているが、本発明の携帯情報端末は、この携帯電話機に限るものではなく、PDA(Personal Digital Assistants:個人用情報機器)と称される携帯型の端末を含むモバイルコンピュータや、携帯型のゲーム機等も含むものである。また、これらの場合、通信手段を有する場合、この通信手段は内蔵していてもよく、外部から通信手段を接続するものであってもよい。   In the present embodiment, the mobile phone 1 represents a mobile phone such as a so-called CDMA (Code Division Multiple Access) method or a PDC (Personal Digital Cellular System) method or a PHS (registered trademark) (Personal Handyphone System) terminal. Shall be referred to as In the present embodiment, a mobile phone is illustrated as an embodiment of the present invention. However, the portable information terminal of the present invention is not limited to this mobile phone, and a PDA (Personal Digital Assistant): It also includes a mobile computer including a portable terminal called “information equipment”, a portable game machine, and the like. Further, in these cases, when the communication means is provided, the communication means may be built in, or the communication means may be connected from the outside.

ここで、上記磁気センサ30について詳述する。この磁気センサ30は、その平面図である図3に示したように、基板30a、基板30a上に形成された4つのGMR素子(巨大磁気抵抗効果素子)31a〜31d、基板30aの上に形成された4つのGMR素子32a〜32d、及び制御回路33を備えている。各GMR素子31a〜31d,32a〜32dは、外部磁界に応じて磁化の向きが変化する自由層、導電性のスペーサ層、及び磁化の向きが固定(ピン)された固着層を備える周知の膜構造を有し、図4に示したように、固着層の磁化の向きと白由層の磁化の向きがなす角度θに応じて抵抗値Rが変化するようになっている。
各GMR素子31a〜31d,32a〜32dの固着層の固定された磁化の向きは、図3において矢印に示す通りになっている。
Here, the magnetic sensor 30 will be described in detail. The magnetic sensor 30 is formed on a substrate 30a, four GMR elements (giant magnetoresistive effect elements) 31a to 31d formed on the substrate 30a, and the substrate 30a, as shown in FIG. 3 which is a plan view thereof. The four GMR elements 32 a to 32 d and the control circuit 33 are provided. Each of the GMR elements 31a to 31d and 32a to 32d is a known film including a free layer whose magnetization direction changes according to an external magnetic field, a conductive spacer layer, and a pinned layer whose magnetization direction is fixed (pinned). As shown in FIG. 4, the resistance value R changes according to the angle θ formed by the magnetization direction of the pinned layer and the magnetization direction of the white layer.
The directions of the fixed magnetizations of the pinned layers of the GMR elements 31a to 31d and 32a to 32d are as shown by arrows in FIG.

図5は、かかる磁気センサ30の等価回路を示している。図5においても、GMR素子31a〜31d,32a〜32dの各固着層の固定された磁化の向きが各素子を表すブロック内に矢印にて示されている。図5に示したように、前記制御回路33は、出力処理回路33a,33b、及び定電圧回路33c,33dを備えている。   FIG. 5 shows an equivalent circuit of the magnetic sensor 30. Also in FIG. 5, the fixed magnetization directions of the fixed layers of the GMR elements 31 a to 31 d and 32 a to 32 d are indicated by arrows in blocks representing the elements. As shown in FIG. 5, the control circuit 33 includes output processing circuits 33a and 33b and constant voltage circuits 33c and 33d.

X軸磁気センサ31においては、GMR素子31a〜31dがフルブリッヂ接続されていて、GMR素子31dとGMR素子31bとの結合点P1、及びGMR素子31aとGMR素子31cとの結合点P2が、それぞれ定電圧回路33cの正極、及び負極に接続され、これらの結合点P1,P2の間に一定の電圧Vが付与されるようになっている。また、GMR素子31aとGMR素子31dとの結合点P3、及びGMR素子31bとGMR素子31cとの結合点P4が、出力処理回路33aに接続されている。   In the X-axis magnetic sensor 31, the GMR elements 31a to 31d are full-bridge connected, and the coupling point P1 between the GMR element 31d and the GMR element 31b and the coupling point P2 between the GMR element 31a and the GMR element 31c are respectively The constant voltage circuit 33c is connected to a positive electrode and a negative electrode, and a constant voltage V is applied between the coupling points P1 and P2. Further, the coupling point P3 between the GMR element 31a and the GMR element 31d and the coupling point P4 between the GMR element 31b and the GMR element 31c are connected to the output processing circuit 33a.

出力処理回路33aは、結合点P3,P4の間の電位差Vxを入力し、電位差Vxを規格化し、規格化した値をADコンバータ21にX軸磁気センサ31の出力Sxとして出力するようになっている。なお、規格化とは、携帯電話機1の前面(X−Y平面)が地表面に平行(水平)であるときのX軸磁気センサ31(又はY軸磁気センサ32)の実際の出力Sx(又は出力Sy)を、同出力Sx(又は出力Sy)の最大値と最小値の差で除することである。このように構成される結果、X軸磁気センサ31の出力Sxは、図6(A)に示したように、X軸方向の外部磁界(磁場)の成分に応じた値(ほぼ比例した値)を示すようになっている。   The output processing circuit 33a receives the potential difference Vx between the coupling points P3 and P4, normalizes the potential difference Vx, and outputs the normalized value to the AD converter 21 as the output Sx of the X-axis magnetic sensor 31. Yes. Note that normalization is the actual output Sx (or Y-axis magnetic sensor 32) of the X-axis magnetic sensor 31 (or Y-axis magnetic sensor 32) when the front surface (XY plane) of the mobile phone 1 is parallel (horizontal) to the ground surface. The output Sy) is divided by the difference between the maximum value and the minimum value of the output Sx (or output Sy). As a result of such a configuration, the output Sx of the X-axis magnetic sensor 31 has a value (substantially proportional value) corresponding to the component of the external magnetic field (magnetic field) in the X-axis direction, as shown in FIG. It has come to show.

Y軸磁気センサ32においては、X軸磁気センサ31と同様に、GMR素子32a〜32dがフルブリッヂ接続されている。GMR素子32aとGMR素子32cとの結合点P5、及びGMR素子32bとGMR素子32dとの結合点P6が、それぞれ定電圧回路33dの正極、及び負極に接続され、これらの結合点P5,P6の間に一定の電圧Vが付与されるようになっている。また、GMR素子32aとGMR素子32dとの結合点P7、及びGMR素子32cとGMR素子32bとの結合点P8が、出力処理回路33bに接続されている。出力処理回路33bは、結合点P7,P8の間の電位差Vyを入力し、電位差Vyを規格化し、規格化した値をADコンバータ21にY軸磁気センサ32の出力Syとして出力するようになっている。このように構成される結果、Y軸磁気センサ32の出力Syは、図6(B)に示したように、Y軸方向の外部磁界(磁場)の成分に応じた値(ほぼ比例した値)を示すようになっている。   In the Y-axis magnetic sensor 32, like the X-axis magnetic sensor 31, GMR elements 32 a to 32 d are connected by full bridge connection. A coupling point P5 between the GMR element 32a and the GMR element 32c and a coupling point P6 between the GMR element 32b and the GMR element 32d are connected to the positive electrode and the negative electrode of the constant voltage circuit 33d, respectively. A constant voltage V is applied between them. Further, a coupling point P7 between the GMR element 32a and the GMR element 32d and a coupling point P8 between the GMR element 32c and the GMR element 32b are connected to the output processing circuit 33b. The output processing circuit 33b receives the potential difference Vy between the coupling points P7 and P8, normalizes the potential difference Vy, and outputs the normalized value to the AD converter 21 as the output Sy of the Y-axis magnetic sensor 32. Yes. As a result of such a configuration, the output Sy of the Y-axis magnetic sensor 32 is a value (substantially proportional value) corresponding to the component of the external magnetic field (magnetic field) in the Y-axis direction, as shown in FIG. It has come to show.

次に、上記のように構成された携帯電話機1が、同携帯電話機1の上下軸(Y軸)の方位α(deg)、及び同上下軸の水平面からの傾斜角β(deg)を求める際の動作について説明する。なお方位αは、例えば携帯電話機1の上下軸の向き(Y軸正方向)が南を向いているとき「0又は360(deg)」とし、西を向いているとき「90(deg)」、北を向いているとき「180(deg)」、東を向いているとき「270(deg)」となるように定義されている。   Next, when the mobile phone 1 configured as described above obtains the orientation α (deg) of the vertical axis (Y axis) of the mobile phone 1 and the inclination angle β (deg) of the vertical axis from the horizontal plane. Will be described. The azimuth α is, for example, “0 or 360 (deg)” when the vertical axis direction (Y-axis positive direction) of the mobile phone 1 is facing south, and “90 (deg)” when facing the west. It is defined to be “180 (deg)” when facing north and “270 (deg)” when facing east.

携帯電話機1が水平面内で回転すると、上記X軸磁気センサ31の出力Sxは正弦波状に変化し、Y軸磁気センサ32の出力Syは出力Sxと位相が90°だけ異なる正弦波状に変化する。従って、出力Sxと出力Syの軌跡は、図7の実線で示すように、原点を中心としたほぼ楕円状の軌跡となる。ところが、地磁気は水平ではなく、地球上の場所に応じた角度だけ水平面に対し傾斜しているために、携帯電話機1が水平面から傾斜角βだけ傾けられると、地磁気の向きと携帯電話機1のY軸正方向のなす角度が変化し、その影響が出力Syに現われる。   When the mobile phone 1 rotates in a horizontal plane, the output Sx of the X-axis magnetic sensor 31 changes in a sine wave shape, and the output Sy of the Y-axis magnetic sensor 32 changes in a sine wave shape whose phase differs from the output Sx by 90 °. Accordingly, the trajectories of the output Sx and the output Sy are substantially elliptical trajectories centered on the origin, as shown by the solid line in FIG. However, since the geomagnetism is not horizontal and is inclined with respect to the horizontal plane by an angle corresponding to the location on the earth, if the mobile phone 1 is tilted from the horizontal plane by an inclination angle β, the direction of the geomagnetism and the Y of the mobile phone 1 are determined. The angle formed by the positive axis direction changes, and the effect appears in the output Sy.

すなわち、図8に示すように、携帯電話機1が、水平面から傾斜角β1だけ傾けられた状態で、鉛直上下方向の軸Jの周りに回転されると、出力Sxと出力Syの軌跡は図7の破線で示すような楕円形の軌跡となり、その中心が出力Syの正方向に移動する。さらに、携帯電話機1が傾斜角β1より大きい傾斜角β2だけ傾けられた状態で軸Jの周りに回転されると、図8の一点鎖線で示すように、出力Sxと出力Syの軌跡は、短軸がより短い楕円形となるとともに、その中心が出力Syの正方向にさらに移動する。   That is, as shown in FIG. 8, when the mobile phone 1 is rotated about the axis J in the vertical vertical direction while being inclined from the horizontal plane by the inclination angle β1, the locus of the output Sx and the output Sy is as shown in FIG. And the center of the locus moves in the positive direction of the output Sy. Further, when the mobile phone 1 is rotated about the axis J in a state where the mobile phone 1 is tilted by the tilt angle β2 larger than the tilt angle β1, the traces of the output Sx and the output Sy are short as shown by a one-dot chain line in FIG. The axis becomes a shorter ellipse and the center further moves in the positive direction of the output Sy.

換言すると、地磁気の水平面に対する角度が一定であれば、すなわち、その携帯電話機1の存在する位置(緯度、経度)が一定であれば、出力Sxと出力Syの値(Sx,Sy)は一定の軌跡を描くので、この値(Sx,Sy)から方位αと傾斜角βを特定することができる。そこで、本実施の形態では、携帯電話機1が地磁気の傾きがほぼ一定である範囲内に存在すると仮定した場合の出力値(Sx,Sy)と、方位α及び傾斜角βとの関係を予め測定し、これらの関係を変換テーブルとして用意し、ROM13に格納しておく。そして、実際の方位α、及び傾斜角βを求める際に、実際の出力値(Sx,Sy)とROM13内に格納された変換テーブルとから、方位αと傾斜角βを決定する。   In other words, if the angle of the geomagnetism with respect to the horizontal plane is constant, that is, if the position (latitude, longitude) where the mobile phone 1 exists is constant, the values of the output Sx and the output Sy (Sx, Sy) are constant. Since the locus is drawn, the azimuth α and the inclination angle β can be specified from the values (Sx, Sy). Therefore, in the present embodiment, the relationship between the output value (Sx, Sy) and the azimuth α and the inclination angle β when the mobile phone 1 is assumed to be within a range in which the geomagnetic inclination is substantially constant is measured in advance. These relationships are prepared as a conversion table and stored in the ROM 13. Then, when obtaining the actual azimuth α and the inclination angle β, the azimuth α and the inclination angle β are determined from the actual output values (Sx, Sy) and the conversion table stored in the ROM 13.

以上のようにして、方位αと傾斜角βを決定するが、図7の点Kのように、同一の出力値(Sx、Sy)に対し、二組以上の方位αと傾斜角βの組(α,β)が存在する場合がある,この場合、その値(Sx,Sy)が生じうる方位αと傾斜角βの組(α、β)を、携帯電話機1の想定し得る使用状態の範囲で複数個求め、この複数個の組(α,β)の平均値を前記変換テーブルの値として採用する。携帯電話機1の想定し得る使用状態の範囲とは、例えば、方位αについては0〜360(deg)、及び傾斜角βについては0〜45(deg)とする。このようにして得られる変換テーブルの例を以下の表に示す。なお、この例では、携帯電話機1の上下軸(Y軸)周りの回転角γは0(deg)としたが、同回転角γについても所定の角度範囲内で変化させ、そのときの出力値(Sx,Sy)と方位αと傾斜角βの組(α、β)との関係を複数求め、これらを平均して変換テーブルの値を得てもよい。以下に、この変換テーブルの一例を示す。   As described above, the azimuth α and the inclination angle β are determined. As indicated by a point K in FIG. 7, two or more sets of the azimuth α and the inclination angle β are set for the same output value (Sx, Sy). (Α, β) may exist. In this case, the set (α, β) of the azimuth α and the inclination angle β in which the value (Sx, Sy) may occur is used in the assumed usage state of the mobile phone 1. A plurality of ranges are obtained, and the average value of the plurality of sets (α, β) is adopted as the value of the conversion table. The range of the usage state that can be assumed by the mobile phone 1 is, for example, 0 to 360 (deg) for the direction α and 0 to 45 (deg) for the inclination angle β. An example of the conversion table obtained in this way is shown in the following table. In this example, the rotation angle γ around the vertical axis (Y axis) of the mobile phone 1 is 0 (deg), but the rotation angle γ is also changed within a predetermined angle range, and the output value at that time It is also possible to obtain a plurality of relationships between (Sx, Sy), azimuth α, and inclination angle β (α, β) and average them to obtain a value in the conversion table. An example of this conversion table is shown below.

Figure 0003772895
Figure 0003772895

次に、方位αと傾斜角βまたは方位角変化△α及び傾斜角変化△βを算出する際のCPU11の処理について説明する。
本実施の形態では、方位と傾斜角を算出する方位・傾斜角算出モードと、角度変化を算出する角度変化算出モードとを設けている。これらのモードは、ゲームソフトからの要求に応じていずれかに設定され、算出された値は、要求をしたゲームソフトに与えられる。以下では、方位・傾斜角算出モードにおける処理と、角度変化算出モードにおける処理を順に説明する。
Next, the processing of the CPU 11 when calculating the azimuth α and the inclination angle β or the azimuth angle change Δα and the inclination angle change Δβ will be described.
In the present embodiment, an azimuth / tilt angle calculation mode for calculating an azimuth and an inclination angle and an angle change calculation mode for calculating an angle change are provided. These modes are set to any one according to a request from the game software, and the calculated value is given to the requested game software. Hereinafter, processing in the azimuth / tilt angle calculation mode and processing in the angle change calculation mode will be described in order.

携帯電話機1のCPU11は所定時間の経過毎に図9に示したルーチン(プログラム)を繰り返し実行する。はじめに、ステップS901において、所定のタイミングとなると、CPU11はX軸磁気センサ31の出力SxとY軸磁気センサ32の出力Syを読み込む。   The CPU 11 of the mobile phone 1 repeatedly executes the routine (program) shown in FIG. 9 every elapse of a predetermined time. First, in step S901, when the predetermined timing comes, the CPU 11 reads the output Sx of the X-axis magnetic sensor 31 and the output Sy of the Y-axis magnetic sensor 32.

次いで、CPU11はステップS902に進み、前述した表1に示した変換テーブルをROM13から読み出し、ステップS901で読み込んだ出力値Sx,Syと、この変換テーブルとに基づいて実際の方位αと実際の傾斜角βとを求める。例えば、(Sx,Sy)が(−0.35,+0.08)であれば、方位αは256(deg)、及び傾斜角βは1(deg)であるとして求められる。   Next, the CPU 11 proceeds to step S902, reads out the conversion table shown in Table 1 from the ROM 13, and based on the output values Sx, Sy read in step S901 and the conversion table, the actual orientation α and the actual inclination are obtained. Find the angle β. For example, when (Sx, Sy) is (−0.35, +0.08), the azimuth α is obtained as 256 (deg), and the inclination angle β is obtained as 1 (deg).

次いで、CPU11はステップS903に進み、現在のモードが角度変化算出モードであるか否かを判定する。今、方位・傾斜角算出モードであるので、ここでは、CPU11は「No」と判定してステップS904に進み、ステップS902で求めた方位αと傾斜角βをゲームソフトに渡し(例えば、サブルーチンの戻り値として渡し)、本ルーチンを一旦終了する。   Next, the CPU 11 proceeds to step S903, and determines whether or not the current mode is the angle change calculation mode. Since it is now the azimuth / tilt angle calculation mode, the CPU 11 makes a “No” determination here and proceeds to step S904 to pass the azimuth α and the inclination angle β obtained in step S902 to the game software (for example, in a subroutine) This routine is terminated once.

次に、角度変化算出モードの場合を説明する。この場合も、CPU11は所定のタイミングで処理を開始し、ステップS901及びステップS902を実行して方位・傾斜角算出モードの場合と同様に現時点の方位αと傾斜角βとを求め、ステップS903に進む。   Next, the case of the angle change calculation mode will be described. Also in this case, the CPU 11 starts processing at a predetermined timing, executes step S901 and step S902, obtains the current azimuth α and inclination angle β as in the azimuth / inclination angle calculation mode, and returns to step S903. move on.

今、角度変化算出モードであるので、CPU11はステップS903の判断で、「Yes」と判定してステップS905に進む。ステップS905では、今回が角度変化算出モードに移行してから本ルーチンを初めて実行する場合であるか否かを判定する。今、角度変化算出モードに移行してから本ルーチンを初めて実行するので、CPU11はステップS905の判断で「Yes」と判定し、ステップS906に進む。このステップS906では、先のステップS902で求めた、現時点の方位αを基準方位α0 として、また、現時点の傾斜角βを基準傾斜角β0 としてRAM12に一時格納する。   Since it is now the angle change calculation mode, the CPU 11 makes a “Yes” determination in step S903 to proceed to step S905. In step S905, it is determined whether or not this routine is executed for the first time after shifting to the angle change calculation mode. Since this routine is executed for the first time after shifting to the angle change calculation mode, the CPU 11 determines “Yes” in the determination in step S905, and proceeds to step S906. In this step S906, the current azimuth α obtained in the previous step S902 is temporarily stored in the RAM 12 as the reference azimuth α0 and the current inclination angle β as the reference inclination angle β0.

この状態が継続すると、CPU11は再び本ルーチンの処理を開始し、ステップS901,S902を実行して現時点の方位α、及び現時点の傾斜角βを求める。そして、ステップS903の判断で「Yes」と判定され、ステップS905に進む。この段階は、角度変化算出モードに移行してから本ルーチンを初めて実行する段階ではないので、CPU11はステップS905の判断で「No」と判定しステップS907に進む。このステップS907では、現時点の方位αからステップS906でRAM12に一時格納している基準方位α0 を減じた値を方位角変化(横方向回転変化角)△αとして、また、同様に、現時点の傾斜角βからステップS906でRAM12に一時格納した基準傾斜角β0 を減じた値を傾斜角変化(縦方向回転変化角)△βとして算出する。次いで、CPU11はステップS908に進み、ステップS907で算出された方位角変化△αと傾斜角変化△βを、ゲームソフトに渡し(例えば、サブルーチンの戻り値として渡し)、本ルーチンを一旦終了する。   If this state continues, the CPU 11 starts the processing of this routine again, and executes steps S901 and S902 to obtain the current direction α and the current inclination angle β. Then, “Yes” is determined in the determination in step S903, and the process proceeds to step S905. Since this stage is not the stage at which this routine is executed for the first time after shifting to the angle change calculation mode, the CPU 11 makes a “No” determination in step S905 to proceed to step S907. In this step S907, a value obtained by subtracting the reference azimuth α0 temporarily stored in the RAM 12 in step S906 from the current azimuth α is set as an azimuth change (lateral rotation change angle) Δα, and similarly, the current inclination A value obtained by subtracting the reference inclination angle β0 temporarily stored in the RAM 12 in step S906 from the angle β is calculated as an inclination angle change (vertical rotation change angle) Δβ. Next, the CPU 11 proceeds to step S908, and transfers the azimuth angle change Δα and the tilt angle change Δβ calculated in step S907 to the game software (for example, as a return value of a subroutine), and once ends this routine.

以上のルーチンにより、方位α及び傾斜角βまたは方位角変化Δα及び傾斜角変化Δβが求められ、ゲームソフトに与えられる。ゲームソフトは、これらの値に基づき、ゲームの進行やゲームに登場するキャラクタの動きを制御する。例えば、LCD17に表示されているキャラクタを、方位α及び傾斜角βあるいはさらに方位角変化△α及び傾斜角変化△βに応じた量または速度でそれぞれX軸及びY軸方向に移動させたり、同様に同LCD17に表示されている背景等のスクロールをさせたりする。   Through the above routine, the azimuth α and the inclination angle β or the azimuth angle change Δα and the inclination angle change Δβ are obtained and given to the game software. Based on these values, the game software controls the progress of the game and the movement of characters appearing in the game. For example, the character displayed on the LCD 17 may be moved in the X-axis and Y-axis directions by an amount or speed corresponding to the azimuth α and the tilt angle β or further the azimuth angle change Δα and the tilt angle change Δβ, respectively. The background displayed on the LCD 17 is scrolled.

次に、本実施の形態におけるゲームソフトの動作フローの一例を、図10を参照して説明する。   Next, an example of the operation flow of the game software in the present embodiment will be described with reference to FIG.

ゲームソフトが実行されると、はじめに、ステップS101で、各種初期設定がなされ、ステップS102に進む。ここでは、前述した角度変化算出モードまたは方位・傾斜角算出モードの初期設定もなされる。
ステップS102では、使用者により操作入力部19を用いて入力される操作情報を取得し、ステップS103に進む。
ステップS103では、GPS部20より現在位置の緯度・経度を算出し、ステップS104に進む。なお、この現在位置の緯度・経度の算出は、ゲームソフト側で処理せず、携帯電話機1側の制御プログラムにより求められる位置情報がゲームソフトに与えられるものとする。
When the game software is executed, first, various initial settings are made in step S101, and the process proceeds to step S102. Here, the above-described angle change calculation mode or azimuth / tilt angle calculation mode is also initially set.
In step S102, operation information input by the user using the operation input unit 19 is acquired, and the process proceeds to step S103.
In step S103, the latitude / longitude of the current position is calculated from the GPS unit 20, and the process proceeds to step S104. The latitude / longitude calculation of the current position is not processed on the game software side, and the position information obtained by the control program on the mobile phone 1 side is given to the game software.

そして、ステップS104では、前述した方位αと傾斜角βまたは方位角変化△α及び傾斜角変化△βを算出するルーチンが実行され、ステップS105に進む。
ステップS105では、算出された現在位置及び方位αと、さらに傾斜角βまたは方位角変化△α及び傾斜角変化△βや、使用者により入力された操作情報が、初期設定(ステップS101)として設定された条件あるいは別途定められた条件と合致するか判断する。
In step S104, the routine for calculating the azimuth α and the inclination angle β or the azimuth angle change Δα and the inclination angle change Δβ described above is executed, and the process proceeds to step S105.
In step S105, the calculated current position and azimuth α, inclination angle β or azimuth angle change Δα and inclination angle change Δβ, and operation information input by the user are set as initial settings (step S101). Judgment is made whether the specified conditions or conditions set separately are met.

次に、ステップS105の判断で、条件が合致すると判定された場合(Yの判定)、次のステップS106で、ゲーム進行の処理を実行する。ここでは、表示画面の制御や、BGM・効果音の制御や、条件の変更や、得点計算等、ゲーム毎にプログラムされた処理を実行するが、このステップS106においても、先に求められた現在位置及び方位αと、さらに傾斜角βまたは方位角変化△α及び傾斜角変化△βや、使用者により入力された操作情報に応じて、ゲームを進行させる処理をする。そして、ステップS107に進む。一方、ステップS105の判断で、条件が合致しないと判定された場合は(Nの判定)、ステップS107に進む。   Next, when it is determined in step S105 that the conditions are met (Y determination), a game progress process is executed in the next step S106. Here, the processes programmed for each game, such as display screen control, BGM / sound effect control, condition change, score calculation, etc., are executed. A process of advancing the game is performed in accordance with the position and orientation α, and further the tilt angle β or the azimuth angle change Δα and the tilt angle change Δβ, and the operation information input by the user. Then, the process proceeds to step S107. On the other hand, if it is determined in step S105 that the conditions do not match (determination of N), the process proceeds to step S107.

次に、ステップS107では、計時等、その他の処理を実行し、ステップS108に進む。
ステップS108の判断では、ゲーム終了か否かの判断をする。ここで、タイムオーバーか否か等、所定の終了条件を満たすか否かの判断をし、ゲーム終了と判定された場合、当該ゲームソフトを終了する。一方、ゲーム終了ではないと判定された場合、ステップS102に戻り、このステップS102からの処理を再実行する。
なお、ステップS103は測位手段、ステップS104は方位算出手段及び傾き算出手段の機能を達成するステップである。
Next, in step S107, other processing such as timing is executed, and the process proceeds to step S108.
In the determination in step S108, it is determined whether or not the game is over. Here, it is determined whether or not a predetermined end condition is satisfied, such as whether the time is over, and when it is determined that the game is ended, the game software is ended. On the other hand, if it is determined that the game has not ended, the process returns to step S102, and the processing from step S102 is executed again.
Step S103 is a step for achieving the functions of the positioning means, and step S104 is a step for achieving the functions of the direction calculation means and the inclination calculation means.

以上に説明したように、本実施の形態では、位置情報(緯度・経度)と方位情報(方位α、方位角変化△α)さらには傾きの情報(傾斜角β、傾斜角変化△β)をゲームソフトに与えることができるので、上記実施形態の携帯電話機1上で実行されるゲームソフトは、これらの情報を、ゲーム進行を制御する際の条件として用いることで、例えば、特定の位置、特定の方位を満たさなければゲームが進行しないRPG(ロール・プレイング・ゲーム)や、地域限定のストーリをもつゲームや、使用者の移動(移動量)に応じてキャラクタが成長するようなゲームや、地域によって言葉づかい(方言)が変わるような、今までにないゲームを作成することができるようになる。   As described above, in the present embodiment, position information (latitude / longitude), azimuth information (azimuth α, azimuth angle change Δα), and tilt information (tilt angle β, tilt angle change Δβ) are stored. Since it can be given to the game software, the game software executed on the mobile phone 1 according to the above embodiment uses these pieces of information as conditions for controlling the progress of the game. RPG (role-playing game) where the game doesn't progress if it doesn't meet the direction of the game, a game with a story that is limited to the region, a game where the character grows according to the movement (movement amount) of the user, Makes it possible to create an unprecedented game in which the language (dialect) changes.

また、本実施の形態では、磁気センサ30の出力値(Sx,Sy)、方位α、及び傾斜角βの関係を予め規定した変換テーブルを用意し、この変換テーブルと実際に得られた値(Sx,Sy)とから、実際の方位α、及び傾斜角βを得るようにしている。従って、携帯電話機1の上下軸が水平面に対して傾けられた状態にあっても、同携帯電話機1は精度良く方位αを取得することができるとともに、傾斜角βを取得することができる。また、磁気センサ30を3軸構成として、より精度高く方位αおよび傾斜角βを算出してもよい。   In the present embodiment, a conversion table in which the relationship between the output value (Sx, Sy), the azimuth α, and the inclination angle β of the magnetic sensor 30 is prepared in advance, and this conversion table and the actually obtained value ( Sx, Sy) are used to obtain the actual azimuth α and the inclination angle β. Therefore, even when the vertical axis of the mobile phone 1 is tilted with respect to the horizontal plane, the mobile phone 1 can acquire the azimuth α with high accuracy and the inclination angle β. Further, the azimuth α and the inclination angle β may be calculated with higher accuracy by using the magnetic sensor 30 as a three-axis configuration.

また、角度変化算出モードにおいては、方位α、及び傾斜角βの変化量を取得することができるので、携帯電話機1を鉛直上下軸(上記軸J)周りに回転させたり、水平方向に沿った軸周りに回転させることにより、その回転変化量が検出され、同回転変化量△α,△βに基づく多彩な機能を同携帯電話機1上で実行されるゲームソフトに与えることが可能となる。   In the angle change calculation mode, the change amount of the azimuth α and the inclination angle β can be acquired, so that the mobile phone 1 is rotated around the vertical vertical axis (the axis J) or along the horizontal direction. By rotating around the axis, the amount of change in rotation can be detected, and various functions based on the amounts of change in rotation Δα and Δβ can be given to game software executed on the mobile phone 1.

以上、この発明の実施形態を、図面を参照して詳述してきたが、具体的な構成はこの実施形態に限られるものではなく、この発明の要旨を逸脱しない範囲の構成等も含まれる。例えば、上記実施形態においては、一つの変換テーブルを予めROM13内に格納しているが、携帯電話機1が異なる位置に存在する場合(地磁気の傾きが異なる場合)についても、位置に対応した同様の変換テーブルをROM13内に格納しておき、GPS部20で得た携帯電話機1の位置に応じ、適切な変換テーブルを読み出すようにしてもよい。また、携帯電話機1は、通信部14を介して、遠隔地にある情報センター等から同変換テーブル(の値)を取得するように構成することもできる。このようにすれば、ROM13の記憶容量を低減することも可能となる。   The embodiment of the present invention has been described in detail with reference to the drawings. However, the specific configuration is not limited to this embodiment, and includes a configuration that does not depart from the gist of the present invention. For example, in the above-described embodiment, one conversion table is stored in the ROM 13 in advance. However, when the mobile phone 1 is present at a different position (when the geomagnetic gradient is different), the same corresponding to the position is used. A conversion table may be stored in the ROM 13 and an appropriate conversion table may be read according to the position of the mobile phone 1 obtained by the GPS unit 20. In addition, the mobile phone 1 can be configured to acquire the conversion table (value) from an information center or the like at a remote location via the communication unit 14. In this way, the storage capacity of the ROM 13 can be reduced.

さらに、この場合、GPS部20により特定した現在位置に関する情報を情報センター等に送信することで、情報センターから特定した位置に応じた変換テーブル(の値)を取得するように構成してもよい。このようにすれば、携帯電話機1が広範囲で使用されることにより地磁気の向きの水平面に対する傾きが変化した場合であっても、携帯電話機1の方位α及び傾斜角βを精度良く求めることができる。   Further, in this case, the information regarding the current position specified by the GPS unit 20 may be transmitted to an information center or the like to obtain a conversion table (value) corresponding to the specified position from the information center. . In this way, even when the mobile phone 1 is used in a wide range and the inclination of the geomagnetic direction with respect to the horizontal plane changes, the orientation α and the inclination angle β of the mobile phone 1 can be accurately obtained. .

なお、上記実施形態において磁気センサ30は、GMR素子により構成されていたが、これに限定されることなく、例えば、磁気トンネル効果素子等の他の磁気抵抗効果素子を用いて構成することもできる。   In the above-described embodiment, the magnetic sensor 30 is configured by a GMR element. However, the present invention is not limited to this. For example, the magnetic sensor 30 may be configured by using another magnetoresistive element such as a magnetic tunnel effect element. .

さらに、上記実施形態においては、X軸磁気センサ31の出力Sx及びY軸磁気センサ32の出力Syをそれぞれ規格化していたが、同規格化を行う前に、これらの出力Sx,Syが有するオフセット量OFx,OFyをそれぞれの出力Sx,Syから減じ、同オフセット量OFx,OFyを減じた値を各磁気センサ31,32の正規の出力Sx,Syとするように構成してもよい。このようなオフセット量OFx,OFyは、X軸磁気センサ31及びY軸磁気センサ32の近傍に存在する永久磁石部品や、各GMR素子3la〜31b,32a〜32dの抵抗値のばらつきにより生じるものであり、所定の条件が成立したときに携帯電話機1を水平面内で180度回転させて、その際の出力Sx,Syの各平均値からそれぞれ求めることができる。   Further, in the above embodiment, the output Sx of the X-axis magnetic sensor 31 and the output Sy of the Y-axis magnetic sensor 32 are standardized, but before the standardization, the offsets of these outputs Sx and Sy have The values OFx and OFy may be subtracted from the respective outputs Sx and Sy, and the values obtained by subtracting the offset amounts OFx and OFy may be configured as the normal outputs Sx and Sy of the magnetic sensors 31 and 32, respectively. Such offset amounts OFx and OFy are caused by variations in the resistance values of the permanent magnet parts existing in the vicinity of the X-axis magnetic sensor 31 and the Y-axis magnetic sensor 32 and the GMR elements 3la to 31b and 32a to 32d. Yes, the mobile phone 1 can be rotated 180 degrees in the horizontal plane when a predetermined condition is satisfied, and the average values of the outputs Sx and Sy at that time can be obtained.

また、上記実施形態においては、X軸が本体10の第1所定軸としての左右軸となり、Y軸が同本体10の第2所定軸、及び第3所定軸としての上下軸になっていたが、これに限定されない。即ち、前記本体10の第1〜第3所定軸は、第1所定軸と第2所定軸とが所定の角度θ(上記実施形態では90°)を持って交差する点を除き、任意に定めることができる。   In the above embodiment, the X axis is the left and right axis as the first predetermined axis of the main body 10, and the Y axis is the second predetermined axis and the vertical axis as the third predetermined axis of the main body 10. However, the present invention is not limited to this. That is, the first to third predetermined axes of the main body 10 are arbitrarily determined except that the first predetermined axis and the second predetermined axis intersect with each other with a predetermined angle θ (90 ° in the above embodiment). be able to.

本発明に一実施の形態である携帯電話機の構成を示すブロック図である。It is a block diagram which shows the structure of the mobile telephone which is one embodiment of this invention. 同実施の形態の携帯電話機の正面図である。It is a front view of the mobile phone of the same embodiment. 同実施の形態の磁気センサの概略平面図である。It is a schematic plan view of the magnetic sensor of the same embodiment. 同実施の形態の磁気センサを構成する各GMR素子の特性を示す図である。It is a figure which shows the characteristic of each GMR element which comprises the magnetic sensor of the embodiment. 同実施の形態の磁気センサの等価回路図である。It is an equivalent circuit diagram of the magnetic sensor of the same embodiment. (A)X軸磁気センサの出力特性図、(B)Y軸磁気センサの出力特性図である。(A) Output characteristic diagram of X-axis magnetic sensor, (B) Output characteristic diagram of Y-axis magnetic sensor. 同実施の形態の携帯電話機が回転された場合における磁気センサの出力値の軌跡図である。It is a locus diagram of the output value of a magnetic sensor when the mobile phone of the embodiment is rotated. 図7の軌跡図を得る際の携帯電話機の動きを示した図である。It is the figure which showed the motion of the mobile telephone at the time of obtaining the locus map of FIG. 同実施の形態のCPUが実行するプログラム(ルーチン)のフローチャートである。It is a flowchart of the program (routine) which CPU of the same embodiment performs. 同実施の形態の携帯電話機上で実行されるゲームソフトの動作フローの一例である。It is an example of an operation flow of game software executed on the mobile phone of the embodiment.

符号の説明Explanation of symbols

1…携帯電話機(携帯情報端末)、10…本体、11…CPU、12…RAM、13…ROM、14…通信部、15…音声CODEC、16…楽曲再生部、17…LCD、18…I/F、19…操作入力部、20…GPS部、21…ADコンバータ(ADC)、30…磁気センサ(地磁気センサ)、31…X軸磁気センサ、32…Y軸磁気センサ、33…制御回路,40…バス

DESCRIPTION OF SYMBOLS 1 ... Mobile phone (portable information terminal), 10 ... Main body, 11 ... CPU, 12 ... RAM, 13 ... ROM, 14 ... Communication part, 15 ... Audio | voice CODEC, 16 ... Music reproduction part, 17 ... LCD, 18 ... I / F, 19 ... Operation input unit, 20 ... GPS unit, 21 ... AD converter (ADC), 30 ... Magnetic sensor (geomagnetic sensor), 31 ... X-axis magnetic sensor, 32 ... Y-axis magnetic sensor, 33 ... Control circuit, 40 …bus

Claims (5)

ゲームソフトを実行可能な携帯情報端末において、
GPS信号を受信する受信手段と、
受信したGPS信号から現在位置を求める測位手段と、
地磁気センサと、
前記地磁気センサの出力と方位との関係が規定されたテーブルと、
前記地磁気センサの出力と前記テーブルとから該携帯情報端末が向く方位を求める方位算出手段と、
該携帯情報端末の傾きを求める傾き算出手段と、
ゲームソフトを記憶する記憶手段と、
前記ゲームソフトを実行するゲーム処理手段と、を具備し、
前記ゲームソフトには、前記測位手段、方位算出手段、傾き算出手段より求められる現在位置と該携帯情報端末が向く方位と該携帯情報端末の傾きのうちの何れかの情報が、前記ゲームソフトによる動作を決定する条件として予め設定されており、
前記ゲーム処理手段は、前記ゲームソフトを実行すると、前記求められた現在位置と該携帯情報端末が向く方位と該携帯情報端末の傾きのうちの何れかの情報を受け取り、受け取った情報と前記条件として設定されている情報とが合致しているかを判断する処理を行い、該判断に従って前記ゲームソフトによる動作を決定する
ことを特徴とする携帯情報端末。
In a portable information terminal that can execute game software,
Receiving means for receiving GPS signals;
Positioning means for obtaining the current position from the received GPS signal;
A geomagnetic sensor,
A table in which the relationship between the output and orientation of the geomagnetic sensor is defined;
An azimuth calculating means for obtaining an azimuth facing the portable information terminal from the output of the geomagnetic sensor and the table ;
An inclination calculating means for obtaining an inclination of the portable information terminal;
Storage means for storing game software;
Game processing means for executing the game software,
In the game software, any one of the current position obtained from the positioning means, the azimuth calculating means, the inclination calculating means, the azimuth to which the portable information terminal is directed, and the inclination of the portable information terminal is determined by the game software. It is set in advance as a condition for determining the operation,
When the game processing unit executes the game software, the game processing unit receives information on any one of the obtained current position, an orientation that the portable information terminal faces, and an inclination of the portable information terminal, and the received information and the condition A portable information terminal that performs a process of determining whether or not the information set as is matched, and determines an operation by the game software according to the determination.
前記地磁気センサは、前記携帯情報端末の任意の方向の外部磁界の成分に応じた値を出力する複数の地磁気センサからなり、
前記方位算出手段は、前記複数の外部磁界成分に応じた値から方位を算出し、
前記傾き算出手段は、前記複数の外部磁界成分に応じた値から傾きを算出する
ことを特徴とする請求項1に記載の携帯情報端末。
The geomagnetic sensor is composed of a plurality of geomagnetic sensors that output a value corresponding to an external magnetic field component in an arbitrary direction of the portable information terminal,
The azimuth calculating means calculates a azimuth from values according to the plurality of external magnetic field components,
The portable information terminal according to claim 1, wherein the inclination calculating unit calculates an inclination from a value corresponding to the plurality of external magnetic field components.
請求項1に記載の携帯情報端末において実行されるゲームソフトによる制御方法であって、
前記ゲームソフトには、前記携帯情報端末において求められる現在位置と該携帯情報端末が向く方位と該携帯情報端末の傾きのうちの何れかの情報が、前記ゲームソフトによる動作を決定する条件として予め設定されており、
前記携帯情報端末において求められた現在位置と該携帯情報端末が向く方位と該携帯情報端末の傾きのうちの何れかの情報を受け取る手順と、
前記受け取った情報と前記条件として設定されている情報とが合致しているかを判断する手順と、
前記判断に従って前記ゲームソフトによる動作を決定する手順と、を含む
ことを特徴とする携帯情報端末において実行されるゲームソフトによる制御方法。
A control method by game software executed in the portable information terminal according to claim 1,
In the game software, any one of the current position required in the portable information terminal, the direction in which the portable information terminal faces, and the inclination of the portable information terminal is preliminarily set as a condition for determining the operation by the game software. Is set,
A procedure for receiving information on any of the current position obtained in the portable information terminal, the direction in which the portable information terminal faces, and the inclination of the portable information terminal;
A procedure for determining whether the received information matches the information set as the condition;
And a procedure for determining an operation by the game software in accordance with the determination. A control method by game software executed in a portable information terminal.
前記方位算出手段は、前記方位の情報として方位(α)または方位角変化(Δα)を算出し、  The azimuth calculating means calculates azimuth (α) or azimuth angle change (Δα) as the azimuth information,
前記傾き算出手段は、前記傾きの情報として傾斜角(β)または傾斜角変化(Δβ)を算出することを特徴とする請求項1または2の何れか1項に記載の携帯情報端末。  The portable information terminal according to claim 1, wherein the tilt calculating unit calculates a tilt angle (β) or a tilt angle change (Δβ) as the tilt information.
前記方位の情報として方位(α)または方位角変化(Δα)を算出し、前記傾きの情報として傾斜角(β)または傾斜角変化(Δβ)を算出することを特徴とする請求項3に記載の制御方法。  The azimuth (α) or azimuth angle change (Δα) is calculated as the azimuth information, and the tilt angle (β) or tilt angle change (Δβ) is calculated as the tilt information. Control method.
JP2004175673A 2004-06-14 2004-06-14 Portable information terminal and control method using game software executed in portable information terminal Expired - Fee Related JP3772895B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2004175673A JP3772895B2 (en) 2004-06-14 2004-06-14 Portable information terminal and control method using game software executed in portable information terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2004175673A JP3772895B2 (en) 2004-06-14 2004-06-14 Portable information terminal and control method using game software executed in portable information terminal

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP2002000773A Division JP3584927B2 (en) 2001-11-22 2002-01-07 Portable information terminal and control method using game software executed in portable information terminal

Publications (2)

Publication Number Publication Date
JP2004337619A JP2004337619A (en) 2004-12-02
JP3772895B2 true JP3772895B2 (en) 2006-05-10

Family

ID=33535820

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2004175673A Expired - Fee Related JP3772895B2 (en) 2004-06-14 2004-06-14 Portable information terminal and control method using game software executed in portable information terminal

Country Status (1)

Country Link
JP (1) JP3772895B2 (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100677411B1 (en) 2004-12-13 2007-02-02 엘지전자 주식회사 Apparatus and method for controlling stereo speaker of mobile communication system
JP4729917B2 (en) * 2004-12-16 2011-07-20 ヤマハ株式会社 Portable information processing device
JP4525332B2 (en) * 2004-12-20 2010-08-18 ヤマハ株式会社 Portable information processing device
JP4609151B2 (en) * 2005-03-29 2011-01-12 ヤマハ株式会社 Portable terminal device and method for controlling portable terminal device
JP4645263B2 (en) * 2005-03-29 2011-03-09 ヤマハ株式会社 Game system and portable device

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH10176928A (en) * 1996-12-18 1998-06-30 Hitachi Ltd Viewpoint position measuring method and device, head-up display, and mirror adjustment device
JPH11271420A (en) * 1998-03-19 1999-10-08 Gurabisu:Kk Gps measuring instrument for potable game machine
JP2002157584A (en) * 2000-11-17 2002-05-31 Casio Comput Co Ltd Electronic fortune-telling system and device, electronic fortune-telling game machine and recording medium
JP2002177650A (en) * 2000-12-12 2002-06-25 Casio Comput Co Ltd System and device for electronic game and recording medium
JP3584927B2 (en) * 2002-01-07 2004-11-04 ヤマハ株式会社 Portable information terminal and control method using game software executed in portable information terminal

Also Published As

Publication number Publication date
JP2004337619A (en) 2004-12-02

Similar Documents

Publication Publication Date Title
EP1314961B1 (en) Electronic apparatus
KR100876030B1 (en) Azimuth processing device, azimuth processing method, computer readable recording medium recording azimuth processing program, azimuth measuring device, a method of correcting a tilt offset, azimuth measuring method, azimuth sensor unit and portable electronic device
US8065083B2 (en) Azimuth processing device, azimuth processing method, azimuth processing program, direction finding device, tilt offset correcting method, azimuth measuring method, compass sensor unit, and portable electronic device
JP5934296B2 (en) Calibrating sensor readings on mobile devices
JP3584927B2 (en) Portable information terminal and control method using game software executed in portable information terminal
JP4311447B2 (en) Azimuth processing device, azimuth processing method, azimuth processing program, azimuth measurement device, tilt offset correction method, azimuth measurement method, azimuth sensor unit, and portable electronic device
KR101220600B1 (en) Mobile electronic device and method for calibrating terrestrial magnetism sensor
JP2001289646A (en) Position information display system
JP4552658B2 (en) Attitude detection method using two-axis magnetic sensor and program thereof
US7024782B1 (en) Electronic device compass operable irrespective of localized magnetic field
KR20140117120A (en) Method of compensating azimuth and electronic device thereof
JP2003156549A (en) Electronic apparatus
JP3772895B2 (en) Portable information terminal and control method using game software executed in portable information terminal
JP3975781B2 (en) Mobile terminal device
JP3675393B2 (en) Electronic equipment
JP2008070884A (en) Mobile communication terminal
JP4609151B2 (en) Portable terminal device and method for controlling portable terminal device
JP2009229062A (en) Portable electronic apparatus
JP4525332B2 (en) Portable information processing device
JP2005242283A (en) Mobile communication terminal
JP2006226952A (en) Geomagnetic latitude sensor
JP4586596B2 (en) Program for correcting portable information terminal and geomagnetic sensor
JP4669751B2 (en) Direction measuring apparatus with wireless communication function, direction measuring method, and program
JP2003179685A (en) Portable telephone set and method for controlling the same

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20041206

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20051018

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20051219

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20060206

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313532

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

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

Free format text: PAYMENT UNTIL: 20090224

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20100224

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20110224

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20120224

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20130224

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20140224

Year of fee payment: 8

LAPS Cancellation because of no payment of annual fees