JP5263956B2 - Electronic device and program - Google Patents

Electronic device and program Download PDF

Info

Publication number
JP5263956B2
JP5263956B2 JP2009013179A JP2009013179A JP5263956B2 JP 5263956 B2 JP5263956 B2 JP 5263956B2 JP 2009013179 A JP2009013179 A JP 2009013179A JP 2009013179 A JP2009013179 A JP 2009013179A JP 5263956 B2 JP5263956 B2 JP 5263956B2
Authority
JP
Japan
Prior art keywords
vibration
detection
inclination
electronic device
function
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
JP2009013179A
Other languages
Japanese (ja)
Other versions
JP2010169574A (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.)
NEC Casio Mobile Communications Ltd
Original Assignee
NEC Casio Mobile Communications 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 NEC Casio Mobile Communications Ltd filed Critical NEC Casio Mobile Communications Ltd
Priority to JP2009013179A priority Critical patent/JP5263956B2/en
Publication of JP2010169574A publication Critical patent/JP2010169574A/en
Application granted granted Critical
Publication of JP5263956B2 publication Critical patent/JP5263956B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Telephone Function (AREA)

Description

本発明は、方位計測処理を実行する電子機器及びプログラムに関する。   The present invention relates to an electronic device and a program that execute azimuth measurement processing.

従来、携帯電話などの電子機器のおいては、携帯電話本来の機能である通信機能以外に付加機能を求めるユーザが増え、方位計測を備えたものが製品化されている。このような方位計測は、基本的には、地磁気センサを用いて方位を計測している。   2. Description of the Related Art Conventionally, in electronic devices such as mobile phones, there are an increasing number of users who require additional functions in addition to the communication function that is the original function of mobile phones, and products equipped with azimuth measurement have been commercialized. In such azimuth measurement, basically, azimuth is measured using a geomagnetic sensor.

しかし、携帯電話等の携帯機器では、水平に保持された状態で方位計測が行われるとは限らない。このため、地磁気センサとともに機器の傾きを補正するための傾斜センサを併用し、水平時以外にも正確な方位を計測できるようにする技術が知られている。(例えば、特許文献1)。   However, in mobile devices such as mobile phones, azimuth measurement is not always performed in a horizontally held state. For this reason, a technique is known in which an inclination sensor for correcting the inclination of the device is used together with a geomagnetic sensor so that an accurate azimuth can be measured even when it is not horizontal. (For example, patent document 1).

特開平08−278137号公報Japanese Patent Laid-Open No. 08-278137

しかしながら、携帯電話などの電子機器のおいては、電話の着信などがあった場合、スピーカによる報音或いはバイブレータによる機器自体の振動などによって着信を報知させることが行われており、例えば、方位計測中に報音或いは機器自体の振動がなされると、傾斜センサ(例えば、3軸の加速度センサ)が報音或いは機器自体の振動を検知してしまい、方位計測が正しく行われずに誤った方位を計測、表示してしまうという欠点があることが、出願人の検討でわかってきた。   However, in the case of an electronic device such as a mobile phone, when there is an incoming call, the incoming call is notified by sound from a speaker or vibration of the device itself by a vibrator. If the alarm sound or the device itself vibrates, the tilt sensor (for example, a triaxial acceleration sensor) detects the alarm sound or the vibration of the device itself. It has been found by the applicant's examination that there is a drawback of measuring and displaying.

更に、報音或いは機器自体の振動は、電話機能の着信時だけでなく、例えば予め設定されたアラーム時刻になったときやタイマーのタイムアップ時、或いは、ゲームの実行時などに於いても発生するものであり、このようなとき3軸の加速度センサが誤動作してしまい本来の機能を遂行できなくなるという問題があった。   In addition, the alarm sound or vibration of the device itself occurs not only when the telephone function is received, but also when, for example, a preset alarm time is reached, the timer expires, or the game is executed. In such a case, there is a problem that the triaxial acceleration sensor malfunctions and cannot perform its original function.

本発明は上記の課題を解決するためになされたもので、精度よく方位計測するための傾斜(姿勢)情報が、振動が加わってしまい本来の傾斜(姿勢)が正しく検出できなくなった場合でも、精度よく方位計測ができるようにしたものである。   The present invention has been made to solve the above-described problem, and even when the tilt (posture) information for accurately measuring the azimuth is subjected to vibration and the original tilt (posture) cannot be detected correctly, It enables to measure the direction with high accuracy.

上記の課題を解決するために、本発明の請求項1に記載の電子機器は、
地磁気を検出する地磁気検出手段と、水平からの傾斜を検出する傾斜検出手段と、前記地磁気検出手段による検出結果と前記傾斜検出手段による検出結果に基づいて方位計測を行う方位計測手段と、を有する電子機器であって、
当該電子機器に振動があるか否かを判別する振動判別手段と、
当該振動判別手段により振動があると判別された場合に、前記傾斜検出手段による検出結果を排除した前記方位計測手段による方位計測を行わせる制御手段と、
を備えることを特徴とする。
In order to solve the above-described problem, an electronic device according to claim 1 of the present invention provides:
A geomagnetism detecting means for detecting geomagnetism, an inclination detecting means for detecting an inclination from the horizontal, and an orientation measuring means for measuring an orientation based on a detection result by the geomagnetism detecting means and a detection result by the inclination detecting means. Electronic equipment,
Vibration discriminating means for discriminating whether or not the electronic device has vibration;
Control means for performing azimuth measurement by the azimuth measurement means that excludes the detection result by the inclination detection means when it is determined that there is vibration by the vibration determination means;
It is characterized by providing.

請求項2の発明は、請求項1に記載の電子機器において、
前記制御手段は、
前記振動判別手段により振動があると判別された場合に、前記傾斜検出手段による検出結果を除いた方位計測を行わせる、
ことを特徴とする。
The invention of claim 2 is the electronic device according to claim 1,
The control means includes
When it is determined that there is vibration by the vibration determination unit, the direction measurement excluding the detection result by the inclination detection unit is performed.
It is characterized by that.

請求項3の発明は、請求項1に記載の電子機器において、
前記制御手段は、
前記振動判別手段により振動があると判別された場合に、前記傾斜検出手段による検出自体を停止させる、
ことを特徴とする。
The invention of claim 3 is the electronic device according to claim 1,
The control means includes
When it is determined that there is vibration by the vibration determination means, the detection itself by the inclination detection means is stopped.
It is characterized by that.

請求項4の発明は、請求項1に記載の電子機器において、
前記制御手段は、
前記振動判別手段により振動がないと判別された場合に、前記地磁気検出手段による検出結果とともに、前記傾斜検出手段による検出結果に基づいた方位計測を行わせる、
ことを特徴とする。
The invention of claim 4 is the electronic device according to claim 1,
The control means includes
When it is determined that there is no vibration by the vibration determination means, together with the detection result by the geomagnetism detection means, the direction measurement based on the detection result by the inclination detection means is performed.
It is characterized by that.

請求項5の発明は、請求項1に記載の電子機器において、
前記振動判別手段は、
振動がなくなるか否かを判別する停止判別手段を含み、
前記制御手段は、
前記振動判別手段により振動がなくなると判別された場合に、前記地磁気検出手段による検出結果とともに、前記傾斜検出手段による検出結果に基づいた方位計測を再開させる、
ことを特徴とする。
The invention of claim 5 is the electronic device according to claim 1,
The vibration discriminating means includes
Including stop determination means for determining whether or not vibration is eliminated,
The control means includes
When it is determined by the vibration determination means that there is no vibration, the direction measurement based on the detection result by the inclination detection means is resumed together with the detection result by the geomagnetism detection means,
It is characterized by that.

請求項6の発明は、請求項1に記載の電子機器において、
当該電子機器に振動を発生させる振動発生手段を更に備え、
前記振動判別手段は、前記振動発生手段による振動方向を判別する方向判別手段を含み、
前記制御手段は、
当該振動判別手段により振動があると判別された場合に、前記傾斜検出手段に、前記振動発生手段による振動方向と一致する方向の振動を排除して傾斜を検出させ、前記方位計測手段による方位計測を行わせる、
ことを特徴とする。
The invention of claim 6 is the electronic device according to claim 1,
The apparatus further comprises vibration generating means for generating vibration in the electronic device,
The vibration determining means includes direction determining means for determining a vibration direction by the vibration generating means,
The control means includes
When the vibration discriminating means determines that there is vibration, the inclination detecting means excludes the vibration in the direction matching the vibration direction by the vibration generating means and detects the inclination, and the azimuth measurement by the azimuth measuring means To do,
It is characterized by that.

請求項7の発明は、請求項1に記載の電子機器において、
前記傾斜検出手段は、加速度を検出する加速度検出手段である、
ことを特徴とする。
The invention of claim 7 is the electronic device according to claim 1,
The tilt detection means is an acceleration detection means for detecting acceleration.
It is characterized by that.

請求項8の発明は、請求項1に記載の電子機器において、
通信のための通信手段と、
前記通信手段に対する着信があったことを報知するための着信報知手段と、
を更に備え、
前記振動発生手段は、前記着信報知手段としてのスピーカまたは、バイブレータである、
ことを特徴とする。
The invention of claim 8 is the electronic device according to claim 1,
Communication means for communication;
An incoming call notification means for notifying that there has been an incoming call to the communication means;
Further comprising
The vibration generating means is a speaker or vibrator as the incoming call notification means.
It is characterized by that.

請求項9の発明は、
コンピュータに、
地磁気を検出する地磁気検出機能と、
水平からの傾斜を検出する傾斜検出機能と、
前記地磁気検出機能による検出結果と前記傾斜検出機能による検出結果に基づいて方位計測を行う方位計測機能と、
当該コンピュータに振動があるか否かを判別する振動判別機能と、
当該振動判別機能により振動があると判別された場合に、前記傾斜検出機能による検出結果を排除した方位計測を行わせる制御機能と、
を実現させる。
The invention of claim 9
On the computer,
Geomagnetic detection function to detect geomagnetism,
Inclination detection function that detects the inclination from the horizontal,
An azimuth measurement function for performing azimuth measurement based on a detection result by the geomagnetic detection function and a detection result by the tilt detection function;
A vibration discriminating function for discriminating whether or not the computer has vibration;
When it is determined that there is vibration by the vibration determination function, a control function for performing azimuth measurement that excludes the detection result by the tilt detection function;
Is realized.

本発明によれば、振動発生中でも方位計測の精度を向上させることができる。   According to the present invention, it is possible to improve the accuracy of azimuth measurement even when vibration is generated.

本発明の携帯電話装置1の構成を示した回路ブロック図。The circuit block diagram which showed the structure of the mobile telephone apparatus 1 of this invention. 図1のアプリ情報記憶部11の詳細な構成図Detailed configuration diagram of the application information storage unit 11 of FIG. 図1のバイブレータ13、着信報知用スピーカ14及び6軸センサ15の配置関係を示した図。The figure which showed the arrangement | positioning relationship of the vibrator 13, the alerting | reporting speaker 14, and the 6-axis sensor 15 of FIG. 図1の携帯電話装置1の全体動作を示すフローチャート図。The flowchart figure which shows the whole operation | movement of the mobile telephone apparatus 1 of FIG. 同じく携帯電話装置1の全体動作を示すフローチャート図。The flowchart figure which similarly shows the whole operation | movement of the mobile telephone apparatus 1. FIG. 図4及び図5の方位計測処理の詳細なフローチャート図(第1実施形態)FIG. 4 and FIG. 5 are detailed flowcharts of the orientation measurement processing (first embodiment). 同じく図4及び図5の方位計測処理の詳細なフローチャート図(第1実施形態の変形例)FIG. 4 and FIG. 5 are detailed flowcharts of the azimuth measurement processing (modified example of the first embodiment). 同じく図4及び図5の方位計測処理の詳細なフローチャート図(第2実施形態)FIG. 4 and FIG. 5 are detailed flowcharts of the azimuth measurement processing (second embodiment).

以下、本発明の実施形態を、図面を参照して説明する。但し、以下に述べる実施形態には、本発明を実施するために技術的に好ましい種々の限定が付されているが、発明の範囲を以下の実施形態及び図示例に限定するものではない。   Embodiments of the present invention will be described below with reference to the drawings. However, although various technically preferable limitations for implementing the present invention are given to the embodiments described below, the scope of the invention is not limited to the following embodiments and illustrated examples.

<第1実施形態>
図1は、本発明の電子機器の一例である携帯電話装置1の回路ブロック図である。図において、中央制御部(CPU)2は、プログラム記憶部3に記憶されている各種のプログラムに応じてこの携帯電話装置1の全体の動作を制御する。即ち、プログラム記憶部3には、後述する図4乃至図6に示すフローチャートを実行させるためのプログラムや各種のアプリケーションを実行させるためのアプリケーションプログラムが格納されたROM(図示せず)が備えられており、中央制御部2は、上記ROMに記憶されたプログラムに基づいてこの携帯電話装置1の全体の動作を制御するものである。
<First Embodiment>
FIG. 1 is a circuit block diagram of a mobile phone device 1 which is an example of an electronic apparatus of the present invention. In the figure, a central control unit (CPU) 2 controls the overall operation of the cellular phone device 1 according to various programs stored in a program storage unit 3. That is, the program storage unit 3 is provided with a ROM (not shown) in which a program for executing flowcharts shown in FIGS. 4 to 6 to be described later and an application program for executing various applications are stored. The central control unit 2 controls the overall operation of the cellular phone device 1 based on the program stored in the ROM.

無線通信部(送受信部)4は、電話の通話機能としての動作時にはアンテナ5から取り込んだ音声の無線信号を受信ベースバンド信号に復調した後に、音声信号処理部6を介して受話スピーカ7から音声出力させる。また、送話マイク8から入力された音声信号を音声信号処理部6で処理させた後に無線通信部4に送り、無線通信部4では音声信号を送信ベースバンド信号に符号化したのちにアンテナ5から送信出力させる。   The radio communication unit (transmission / reception unit) 4 demodulates the radio signal of audio captured from the antenna 5 into a reception baseband signal when operating as a telephone call function, and then receives audio from the reception speaker 7 via the audio signal processing unit 6. Output. Also, the audio signal input from the transmission microphone 8 is processed by the audio signal processing unit 6 and then sent to the radio communication unit 4. The radio communication unit 4 encodes the audio signal into a transmission baseband signal, and then the antenna 5. To send out.

また、電子メール機能、インターネット接続機能等の動作時には、アンテナ5及び無線通信部4を介して電子メールの送受信およびWebサイトの閲覧が可能であり、電子メールの送受信情報及びWebサイトの閲覧情報は表示部9に送られて表示出力される。   Further, during the operation of the e-mail function, the Internet connection function, etc., it is possible to send / receive e-mails and browse websites via the antenna 5 and the wireless communication unit 4. It is sent to the display unit 9 and displayed.

表示部9は、例えば、ドットマトリクスタイプの液晶表示装置あるいはEL表示装置から構成され、電話装置として必要な情報(相手方の電話番号、電波受信状態、電池残量等の情報)を表示するとともに、上述した如く電子メールやWebサイトの内容表示を行う。また、後述する如く方位計測機能において計測された方位も表示部9に表示される。   The display unit 9 is composed of, for example, a dot matrix type liquid crystal display device or an EL display device, and displays information necessary for the telephone device (information such as the other party's telephone number, radio wave reception state, remaining battery level, etc.) As described above, the contents of the e-mail and website are displayed. As will be described later, the direction measured by the direction measuring function is also displayed on the display unit 9.

操作部10は、この携帯電話装置1に設けられた操作キーであり、詳細は図示していないが、電源のオン・オフキー、数値情報及び文字情報を入力する数値文字入力キー、各種機能(アプリケーション)の起動及び終了を選択する各種のアプリケーションキー(方位計機能の動作開始及び停止を指示する方位計キーを含む)、通常は報音によって行われる着信報知を後述するバイブレータの振動によって行わせるように設定するマナーモードキー及び通話のオンフックキー及びオフフックキー等を備えている。   The operation unit 10 is an operation key provided in the cellular phone device 1, and although not shown in detail, a power on / off key, a numerical character input key for inputting numerical information and character information, and various functions (applications) ) Various application keys for selecting start and end (including compass keys for instructing start and stop of the compass function), so that an incoming call notification that is normally performed by a report sound is performed by vibration of a vibrator described later. A manner mode key to be set in the phone, an on-hook key for calling, an off-hook key, and the like.

アプリ情報記憶部11は、各種のアプリケーションに関連する情報を記憶するもので、例えば、図2に示すように、アドレス帳機能のアドレス帳情報(多数の氏名、住所及び電話番号など)を記憶するアドレス帳情報記憶部11A、メール機能の送受信メール情報を記憶するメール情報記憶部11B、インターネット機能のWebサイトのURL
情報などを記憶するWeb情報記憶部11Cなどの記憶領域が設けられている。
The application information storage unit 11 stores information related to various applications. For example, as illustrated in FIG. 2, the application information storage unit 11 stores address book information (such as a number of names, addresses, and telephone numbers) of the address book function. Address book information storage section 11A, mail information storage section 11B for storing mail function transmission / reception mail information, Internet function website URL
A storage area such as a Web information storage unit 11C for storing information and the like is provided.

また、このアプリ情報記憶部11には、夫々のアプリケーションを制御する情報も記憶されているもので、図2に示すように、通常は「0」であり着信があってユーザに着信報知を行う際にフラグ情報「1」が設定される報知中フラグ記憶部11D、上記着信の報知等の報知をバイブレータの振動によって行わせる際に「1」が設定されるマナーモードフラグ記憶部11E、着信報知中にオフフックキー操作がなされて通話可能な状態になった際に「1」が設定される通話中フラグ記憶部11Fが設けられている。   The application information storage unit 11 also stores information for controlling each application. As shown in FIG. 2, the application information storage unit 11 is normally “0”, and there is an incoming call to notify the user of the incoming call. Notification flag storage unit 11D in which flag information “1” is set at the time, manner mode flag storage unit 11E in which “1” is set when notification such as notification of the incoming call is performed by vibration of the vibrator, incoming call notification An on-call flag storage unit 11F is provided in which “1” is set when an off-hook key operation is performed to enable a call.

更に、上記アプリ情報記憶部11には、方位計関連の記憶部として、方位計機能の動作中に「1」が設定される方位計動作フラグ記憶部11G及び計測された方位を記憶する方位記憶部11Hも設けられている。   Further, the application information storage unit 11 includes a direction meter operation flag storage unit 11G in which “1” is set during operation of the direction meter function and a direction storage that stores the measured direction as a direction unit related storage unit. Part 11H is also provided.

図1に戻り、計時部12は、基準信号を計数して現在の年、日付、曜日、時分等の現在日時情報を得る時計回路部(図示せず)や、アラーム時刻などが設定され現在時刻情報がアラーム時刻情報と一致するとアラーム音などによってアラーム時刻に到ったことを報知するアラーム時刻回路部(図示せず)等から構成されている。   Returning to FIG. 1, the time measuring unit 12 counts a reference signal and obtains current date and time information such as the current year, date, day of the week, hour and minute, and an alarm time and the like are set. When the time information matches the alarm time information, an alarm time circuit unit (not shown) for notifying that the alarm time has been reached by an alarm sound or the like is constituted.

バイブレータ13は、図3に示すように回転軸13Aに図示しない錘が取り付けられたモータ13Bであり、携帯電話装置1の機器ケース(図示せず)内部の回路基板16に取り付けられ、モータ13Bの回転によって回路基板16を介して携帯電話装置1の機器ケースを振動させるものである。   As shown in FIG. 3, the vibrator 13 is a motor 13 </ b> B in which a weight (not shown) is attached to the rotating shaft 13 </ b> A. The vibrator 13 is attached to a circuit board 16 inside a device case (not shown) of the mobile phone device 1. The device case of the mobile phone device 1 is vibrated through the circuit board 16 by the rotation.

図1の報知用スピーカ14は大音量の報知音によって着信をユーザに知らしめるものであり、また、着信時以外の、例えば音楽再生機能の動作時などにおいても大音量で音楽を再生報音するものである。なお、報知用スピーカ14も、図3に示すように回路基板16に取り付けられている。   The notification speaker 14 shown in FIG. 1 informs the user of an incoming call by a loud sound notification sound, and also reproduces and reports music at a high sound volume other than when the incoming call is received, for example, when the music playback function is operating. Is. The notification speaker 14 is also attached to the circuit board 16 as shown in FIG.

図1の6軸センサ15は、3軸の地磁気センサと、3軸(X軸(縦)、Y軸
(横)及びZ軸(上下))方向の加速度から携帯電話装置1の夫々の方向の振動の大きさを計測できる3軸加速度センサから成り、この3軸加速度センサは、ここでは携帯電話装置1の傾斜(姿勢)を検出する傾斜センサとして機能する。
The 6-axis sensor 15 shown in FIG. 1 includes a 3-axis geomagnetic sensor and accelerations in the 3-axis (X-axis (vertical), Y-axis (horizontal), and Z-axis (vertical)) directions. It consists of a triaxial acceleration sensor that can measure the magnitude of vibration, and this triaxial acceleration sensor functions as a tilt sensor that detects the tilt (posture) of the mobile phone device 1 here.

この6軸センサ15は、例えば、図3に示すように回路基板16の上記モータ13Bと報知用スピーカ14との間に近接して設けられている。即ち、図3に示すように、バイブレータ13(モータ13B)の回転軸13Aが矢印A方向に回転して振動が発生すると、その振動が回路基板16を介して6軸センサ15に伝わる位置に設けられている。   For example, as shown in FIG. 3, the six-axis sensor 15 is provided between the motor 13 </ b> B of the circuit board 16 and the notification speaker 14. That is, as shown in FIG. 3, when vibration is generated by rotating the rotating shaft 13 </ b> A of the vibrator 13 (motor 13 </ b> B) in the direction of arrow A, the vibration is transmitted to the 6-axis sensor 15 via the circuit board 16. It has been.

この場合、バイブレータ13(モータ13B)の回転により回路基板16は矢印Y軸方向(横方向)及び矢印Z軸方向(上下方向)に振動するので6軸センサ15はバイブレータ13(モータ13B)によるY軸(横)方向及びZ軸(上下)方向の振動を検知してしまい、携帯電話装置1の傾斜の計測に悪影響を及ぼす。   In this case, the circuit board 16 vibrates in the arrow Y-axis direction (lateral direction) and arrow Z-axis direction (vertical direction) by the rotation of the vibrator 13 (motor 13B), so the 6-axis sensor 15 is driven by the vibrator 13 (motor 13B). Vibrations in the axial (lateral) direction and the Z-axis (vertical) direction are detected, which adversely affects the measurement of the inclination of the mobile phone device 1.

同様に、回路基板16に取り付けられた報知用スピーカ14もその報音振動が6軸センサ15に伝わる位置に設けられている。したがって、報知用スピーカ14から報音がなされると、その報音による上下方向の振動が6軸センサ15に伝わり、6軸センサ15は報知用スピーカ14によるZ軸(上下)方向の振動を検知してしまい、携帯電話装置1の傾斜の計測に悪影響を及ぼす。   Similarly, the alarm speaker 14 attached to the circuit board 16 is also provided at a position where the alarm vibration is transmitted to the six-axis sensor 15. Therefore, when a notification sound is generated from the notification speaker 14, the vertical vibration due to the notification sound is transmitted to the six-axis sensor 15, and the six-axis sensor 15 detects the vibration in the Z-axis (vertical) direction by the notification speaker 14. Therefore, the measurement of the inclination of the mobile phone device 1 is adversely affected.

図1に戻り、電源部17は図示していない充電可能な二次電池と、この二次電池の電池電圧が低下した際に各回路部をバックアップするバックアップ電池とからなり、上述した各回路部に駆動電圧を供給するものである。   Returning to FIG. 1, the power supply unit 17 includes a rechargeable secondary battery (not shown) and a backup battery that backs up each circuit unit when the battery voltage of the secondary battery decreases. A driving voltage is supplied to the.

上記のごとく構成された携帯電話装置1の動作について、図4乃至図6のフローチャートを参照して説明する。   The operation of the mobile phone device 1 configured as described above will be described with reference to the flowcharts of FIGS.

図4において、ステップS1では、電源オフ状態において操作部10の電源オンキーが操作されたか否かが判断され、電源オンキーが操作されたことが検出されるとステップS2に進み、各種初期化処理が行われる。そして、ステップS3に進み、待ち受け処理を行って携帯電話装置1を電話の着信が可能な状態に設定する。   4, in step S1, it is determined whether or not the power on key of the operation unit 10 has been operated in the power off state. If it is detected that the power on key has been operated, the process proceeds to step S2, and various initialization processes are performed. Done. In step S3, a standby process is performed to set the mobile phone device 1 in a state in which a call can be received.

ステップS3において待ち受け処理が完了した後はステップS4に進み、図2の報知フラグ記憶部11Dの報知フラグが「1」に設定されているか否かが判断される。   After the standby process is completed in step S3, the process proceeds to step S4, and it is determined whether or not the notification flag of the notification flag storage unit 11D in FIG. 2 is set to “1”.

この時点では、ステップS2において行われる初期設定により、報知フラグは「1」に設定されていないのでステップS5に進み、図2の通話中フラグ記憶部11Gの通話中フラグが「1」に設定されているか否かが判断される。この時点においては、ステップS2において行われる初期設定により、通話中フラグも「1」には設定されていないので図5のステップS6に進み、着信の有無が判別(検出)される。   At this time, because the notification flag is not set to “1” by the initial setting performed in step S2, the process proceeds to step S5, and the busy flag storage unit 11G in FIG. 2 is set to “1”. It is determined whether or not. At this time, since the in-call flag is not set to “1” by the initial setting performed in step S2, the process proceeds to step S6 in FIG. 5 to determine (detect) the presence or absence of an incoming call.

着信が検出された場合にはステップS7に進むが、着信が検出されなかった場合にはステップS8に進み、ユーザによる操作部10への操作が有ったか否かがを検出する。
ユーザによる操作が有ったと検出された場合、ステップS9に進み、操作部10への操作が方位計キーへの操作であったか否かが判別される。方位計キーは、その最初のキー操作で方位計(方位計測)機能を開始させ2回目の操作で方位計機能を停止させるキー(トグル操作仕様のキー)である。
If an incoming call is detected, the process proceeds to step S7. If no incoming call is detected, the process proceeds to step S8 to detect whether the user has operated the operation unit 10.
When it is detected that there is an operation by the user, the process proceeds to step S9, and it is determined whether or not the operation on the operation unit 10 is an operation on the direction meter key. The compass key is a key (toggle operation specification key) that starts the compass (azimuth measurement) function by the first key operation and stops the compass function by the second operation.

上記ステップS9で方位計キーの操作が検出された場合にはステップS10に進み、図2の方位計フラグ記憶部11Hの方位計フラグが「0」か否かが判別される。   When the operation of the compass key is detected in step S9, the process proceeds to step S10, and it is determined whether or not the compass flag in the compass flag storage unit 11H of FIG. 2 is “0”.

方位計フラグは、前述した如く方位計機能の動作中に「1」が設定されるフラグであり、電源がオンされた状態においては、ステップS2において行われる初期設定により、方位計フラグは「0」なので、ステップS11に進み方位計フラグが「1」に設定され、次のステップS12で方位計の動作を開始させるための初期設定がなされる。   As described above, the compass flag is a flag that is set to “1” during the operation of the compass function. When the power is turned on, the compass flag is set to “0” by the initial setting performed in step S2. In step S11, the compass flag is set to "1", and initial setting for starting the compass operation is performed in the next step S12.

これにより、後述するフローチャートで説明する如く、6軸センサ15が備える3軸地磁気センサの検出結果に基づいて、適宜、3軸加速度センサの検出結果を参照し、中央制御部2が方位を計算し、その計測された方位が図2の方位記憶部11Hで記憶され、その方位が表示部9に表示される。   As a result, as will be described later in the flowchart, based on the detection result of the triaxial geomagnetic sensor included in the six axis sensor 15, the detection result of the triaxial acceleration sensor is appropriately referred to, and the central control unit 2 calculates the azimuth. The measured azimuth is stored in the azimuth storage unit 11H in FIG. 2 and the azimuth is displayed on the display unit 9.

一方、上記ステップS10において方位計フラグが「0」でない場合には、既に方位計フラグが「1」の方位計動作状態において方位計キーが操作されたものとしてステップS13に進み、方位計フラグが「0」に設定され、次のステップS14で方位計測の停止処理がなされる。   On the other hand, if the compass flag is not “0” in step S10, it is determined that the compass key has already been operated in the compass operation state in which the compass flag is “1”, and the process proceeds to step S13. It is set to “0”, and the direction measurement stop processing is performed in the next step S14.

また、上記ステップS9において、方位計キーの操作が検出されなかった時にはステップS15に進み、電源オフキーの操作であったか否かを検出する。
ここで、電源オフキーの操作であったあると検出されると、次のS16に進み、電源OFF処理が行われて、動作フローは終了する。
In step S9, if the operation of the compass key is not detected, the process proceeds to step S15, and it is detected whether or not the operation is the power-off key.
Here, if it is detected that the operation is the power-off key, the process proceeds to the next S16, power-off processing is performed, and the operation flow ends.

また、ステップS15において、電源オフキーの操作でないと検出された場合、その他のキーの操作であったとして、ステップS17に進み、その他のキーに対応する処理が行われる。   If it is detected in step S15 that the power-off key is not operated, it is determined that the other key is operated, and the process proceeds to step S17, and processing corresponding to the other key is performed.

その他のキーに対応する処理とは、例えば、電源オン時には、ステップS2において行われる初期設定により、着信の報知を報知用スピーカ14による報音で行わせるように設定されるが、上記ステップS15:NOで、マナーモードキーが操作されたことが検出されると、ステップS17では、アプリ情報記憶部11の図示しないマナーモードフラグを「1」に設定する処理を行う。これにより、着信時には、後述する如くバイブレータ13による着信報知がなされる。   For example, when the power is turned on, the processing corresponding to the other keys is set so that the notification of the incoming call is performed by the notification sound by the notification speaker 14 by the initial setting performed in step S2, but the above step S15: If it is determined that the manner mode key has been operated in NO, in step S17, a manner mode flag (not shown) in the application information storage unit 11 is set to “1”. Thereby, at the time of an incoming call, the incoming call notification by the vibrator 13 is made as will be described later.

また、発呼のための電話番号入力や、アドレス帳のデータ入力、メール機能におけるメール文作成のためのキー入力の検出などはすべて上記ステップS15:NOでなされ、そのキー入力に応じた処理がステップS17で行われる。   Further, the input of the telephone number for making a call, the data entry of the address book, the detection of the key input for creating the mail text in the mail function, etc. are all made in the above step S15: NO, and the processing according to the key input is performed. This is performed in step S17.

一方、上記ステップS8で、ユーザによる操作部10への操作がなかったと検出された時は、ステップS18に進み方位計フラグ記憶部11Hの方位計フラグが「1」か否かの判断がなされ、方位計フラグが「1」であった場合にはステップS19に進んで方位計測処理がなされ、方位計フラグが「0」の場合は図4のステップS3の待ち受け処理に戻る。   On the other hand, when it is detected in step S8 that the user has not operated the operation unit 10, the process proceeds to step S18 to determine whether or not the direction meter flag in the direction meter flag storage unit 11H is “1”. If the compass flag is “1”, the process proceeds to step S19 to perform a compass measurement process. If the compass flag is “0”, the process returns to the standby process in step S3 of FIG.

即ち、ステップS9で方位計キーが操作されたと検出され、ステップS11で方位計フラグが「1」に設定されると、それ以降は上記ステップS19で方位計測処理がなされ、表示部9に計測された方位が表示されるものである。尚、ステップS19の方位計測処理の詳細については後述する。   That is, when it is detected that the compass key is operated in step S9, and the compass flag is set to “1” in step S11, the compass measurement process is performed in step S19 and the measurement is performed on the display unit 9 thereafter. The direction is displayed. The details of the azimuth measurement process in step S19 will be described later.

上記ステップS6において、着信が検出されるとステップS7に進んで図2の報知中フラグ記憶部11Dの報知中フラグが「1」に設定されると共に、次のステップS20において、その時の報知モードがマナーモードか否かが判断される。マナーモードが設定されていた場合(マナーモードフラグ=1の場合)には、ステップS21に進み、バイブレータ13による振動処理を開始させ、その後、図4のステップS4に戻る。   When an incoming call is detected in step S6, the process proceeds to step S7 where the notification flag in the notification flag storage unit 11D of FIG. 2 is set to “1”, and in the next step S20, the notification mode at that time is set. It is determined whether or not the manner mode is set. When the manner mode is set (when the manner mode flag = 1), the process proceeds to step S21 to start vibration processing by the vibrator 13, and then returns to step S4 in FIG.

一方、ステップS20において、マナーモードが設定されていない(マナーモードフラグ=0)と判断された場合にはステップS22において、着信報知用スピーカ14による報音が開始され、その後、図4のステップS4に戻る。   On the other hand, if it is determined in step S20 that the manner mode is not set (manner mode flag = 0), in step S22, the sound notification by the incoming notification speaker 14 is started, and thereafter, step S4 in FIG. Return to.

即ち、ステップS6で着信が検出された場合には、報知中フラグが「1」に設定されると共に、その時にマナーモードが設定されているか否かにより、バイブレータ13もしくは着信報知用スピーカ14のいずれか一方による着信報知が開始されて、図4のステップS4に戻るのである。   That is, when an incoming call is detected in step S6, the in-report flag is set to “1”, and depending on whether the manner mode is set at that time, either the vibrator 13 or the incoming call notification speaker 14 is set. The incoming call notification by either one is started, and the process returns to step S4 in FIG.

このようにして、着信検出後にステップS4に戻った場合、ステップS4においては、報知中フラグが「1」に設定されていてバイブレータ13もしくは着信報知用スピーカ14のいずれか一方による着信報知が行われていること(報知中フラグ=1)が検出されるので次のステップS23に進む。   In this way, when the process returns to step S4 after the incoming call is detected, in step S4, the in-call flag is set to “1” and the incoming call notification is performed by either the vibrator 13 or the incoming call notification speaker 14. (Notifying flag = 1) is detected, and the process proceeds to the next step S23.

ステップS23では、方位計フラグが「1」に設定されているか否か、すなわち方位計機能が動作中か否かが判断され、方位計機能が動作中の場合にはステップS24に進み、動作中でない場合にはそのままステップS25に進む。   In step S23, it is determined whether or not the compass flag is set to “1”, that is, whether or not the compass function is in operation. If the compass function is in operation, the process proceeds to step S24 and is in operation. If not, the process proceeds directly to step S25.

上記ステップS24は、図5のステップS19の方位計測処理と同一の処理であり、その詳細については後述する。そして、次のステップS25に進む。   The above step S24 is the same process as the azimuth measurement process of step S19 of FIG. 5, and details thereof will be described later. Then, the process proceeds to next Step S25.

ステップS25は、操作部10のオフフックキーが操作されたか否かを判断する処理であり、オフフックキーが操作されたことが検出された場合にはステップS26以降の処理に進むが、オフフックキーの操作が検出されない場合にはステップS27に進み着信終了の処理がなされたか否かが判断される。   Step S25 is a process for determining whether or not the off-hook key of the operation unit 10 has been operated. If it is detected that the off-hook key has been operated, the process proceeds to step S26 and subsequent steps. If NO is detected, the process proceeds to step S27 to determine whether or not the incoming call termination process has been performed.

着信終了の処理とは、例えば、ユーザが着信を拒否するために着信拒否キーの操作を行ったこと、あるいは、着信があってから予め定められた時間が経過したことを検出する処理であり、着信拒否キーの操作や予め定められた時間の経過が検出された時にはステップS28に進みが、そうでないときにはステップS27からステップS4に戻る。   The process of terminating the incoming call is, for example, a process of detecting that the user has operated the incoming call rejection key to reject the incoming call or that a predetermined time has elapsed since the incoming call. When the operation of the incoming call rejection key or the elapse of a predetermined time is detected, the process proceeds to step S28. Otherwise, the process returns from step S27 to step S4.

即ち、着信の報知中においては、方位計機能が動作中の場合、ステップS25のオフフックキーの操作検出あるいはステップS27の着信終了の検出がなされない限り、上記ステップS4、S23、S24、S25およびS27の処理が繰り返されることとなり、着信報知中の方位はステップS24で計測されることとなる。   That is, during the incoming call notification, when the compass function is in operation, the above steps S4, S23, S24, S25 and S27 are performed unless the off-hook key operation detection in step S25 or the incoming call end detection in step S27 is performed. This process is repeated, and the direction during incoming call notification is measured in step S24.

ステップS25においてオフフックキーの操作が検出されると、次のステップS26では報知中フラグを「0」に設定し、次のステップS29では、バイブレータ13あるいは着信報知用スピーカ14による着信の報知を停止する処理を行う。   When the operation of the off-hook key is detected in step S25, the notification flag is set to “0” in the next step S26, and the notification of the incoming call by the vibrator 13 or the incoming notification speaker 14 is stopped in the next step S29. Process.

次のステップS30では、図2の通話中フラグ記憶部11Fの通話中フラグを「1」に設定すると共に、次のステップS31で電話をかけてきた相手との通話を開始させる処理を行ってステップS4に戻る。   In the next step S30, the process sets the busy flag in the busy flag storage unit 11F of FIG. 2 to “1” and performs a process of starting a call with the other party who has called in the next step S31. Return to S4.

一方、ステップS27で着信終了の検出がなされた場合には、ステップS28に進んでステップS26同様に報知中フラグを「0」に設定し、次のステップS32でステップS29同様に着信の報知を停止する処理を行った後、ステップS4に戻る。   On the other hand, if the end of the incoming call is detected in step S27, the process proceeds to step S28, the notification flag is set to “0” as in step S26, and the incoming call notification is stopped in the next step S32 as in step S29. After performing the process to return to step S4.

上記ステップS25においてオフフックキーの操作が検出されてステップS26以降に進み、ステップS30において通話中フラグが「1」に設定されてステップS31で通話が開始されると、これ以降は、ステップS5で通話中フラグが「1」であることが検出されるのでステップS33に進んで通話処理がなされ、次のステップS34で方位計フラグが「1」であるか否か、すなわち方位計機能の動作中であるか否かが判断される。   In step S25, the operation of the off-hook key is detected, and the process proceeds to step S26 and subsequent steps. In step S30, the busy flag is set to "1" and the call is started in step S31. Thereafter, the call is performed in step S5. Since it is detected that the middle flag is “1”, the process proceeds to step S33 to perform call processing. In the next step S34, it is determined whether or not the compass flag is “1”, that is, the compass function is operating. It is determined whether or not there is.

ステップS34で方位計機能の動作中でない場合にはステップS36に進んでオンフックキーの操作がなされたか否かの検出がなされるが、方位計機能の動作中(方位計フラグ=1)の場合にはステップS34からステップS35に進み、方位を計測する処理を行い、ステップS36に進む。   If it is determined in step S34 that the compass function is not operating, the process proceeds to step S36 to detect whether or not the on-hook key has been operated. However, if the compass function is operating (compass flag = 1). Advances from step S34 to step S35, performs a process of measuring the azimuth, and advances to step S36.

即ち、着信後オフフックキーの操作がなされて通話が開始すると、オンフックキーの操作がステップS36で検出されるまでは、ステップS4、S5、S33、S34、S35及びS36の処理が繰り返し実行される。そのため、通話中であっても方位はステップS35で計測されるのである。   That is, when an off-hook key operation is performed after an incoming call and a call is started, steps S4, S5, S33, S34, S35 and S36 are repeatedly executed until an on-hook key operation is detected in step S36. Therefore, the direction is measured in step S35 even during a call.

そして、ステップS36でオンフックキーの操作が検出されると、ステップS37で通話中フラグが「0」に戻され、次のステップS38で通話停止処理がなされてステップS3の待ち受け処理に戻る。   When an on-hook key operation is detected in step S36, the busy flag is returned to "0" in step S37, a call stop process is performed in the next step S38, and the process returns to the standby process in step S3.

図6は、ステップS19、S24及びS35の方位計測処理の詳細を示している。図において、まずステップB1では、携帯電話装置1が振動しているか否かが判別される。
具体的には、ステップB1において、報知中フラグ記憶部11Dの報知中フラグが1か否かを判別すれば、容易に判別できる。
FIG. 6 shows details of the azimuth measurement processing in steps S19, S24 and S35. In the figure, first, in step B1, it is determined whether or not the mobile phone device 1 is vibrating.
Specifically, it can be easily determined by determining whether or not the reporting flag in the reporting flag storage unit 11D is 1 in step B1.

ステップB1で振動有りと判別された場合には、ステップB2に進む。
振動有りと判別された場合は、6軸センサが備える加速度センサ(傾斜センサ)機能の傾斜検出値が安定しないので、ステップB2においては、3軸地磁気センサのみを用いた方位計測を行い、計測された方位を方位記憶部11Hに格納するとともに、ステップB3で、計測された方位表示を行う。
If it is determined in step B1 that there is vibration, the process proceeds to step B2.
If it is determined that there is vibration, the tilt detection value of the acceleration sensor (tilt sensor) function provided in the 6-axis sensor is not stable. Therefore, in step B2, azimuth measurement is performed using only the 3-axis geomagnetic sensor. The stored azimuth is stored in the azimuth storage unit 11H, and the measured azimuth is displayed in step B3.

一方、ステップB1で振動なしと判別された場合には、ステップB4に進む。
この場合、加速度センサ(傾斜センサ)による傾斜検出値が安定しているので、ステップB4では、地磁気センサ及び加速度センサ(傾斜センサ)を用いた方位計測処理(傾斜を考慮した方位計測)を行い、計測された方位を方位記憶部11Hに格納するとともに、同様に、ステップB3で、計測された方位表示を行う。
On the other hand, if it is determined in step B1 that there is no vibration, the process proceeds to step B4.
In this case, since the inclination detection value by the acceleration sensor (inclination sensor) is stable, in step B4, the direction measurement processing (direction measurement in consideration of the inclination) using the geomagnetic sensor and the acceleration sensor (inclination sensor) is performed. The measured azimuth is stored in the azimuth storage unit 11H, and similarly, the measured azimuth is displayed in step B3.

なお、ステップS35及びステップS19においても、ステップB1の処理ステップを設けてあるのは、例えば、着信報知中ではない状態において、方位計測中に現在時刻がアラーム時刻に至ってバイブレータ13もしくは着信報知用スピーカ14による報知がなされた場合、方位が振動により正確に計測できないので、着信報知中と同様にして方位を正しく計測するためである。   In step S35 and step S19, the processing step of step B1 is provided, for example, when the incoming time is not being notified and the current time reaches the alarm time during azimuth measurement and the vibrator 13 or the incoming notification speaker. This is because the direction cannot be accurately measured due to vibration when the notification by 14 is made, and thus the direction is correctly measured in the same manner as during the incoming call notification.

このように、上記の実施形態によれば、6軸センサ15で検出して方位計測を行う際に、着信報知のためにバイブレータ13或いは着信報知用スピーカ14といった他の要因による振動が6軸センサ15に加わっても、バイブレータ13或いは着信報知用スピーカ14による振動による影響を受ける傾斜(姿勢)情報を排除(無視)して方位計測を行っているので、振動が発生する場合でも発生しない場合でも誤った計測が発生せず、精度の高い方位計測を行うことができる。   Thus, according to the above-described embodiment, when the azimuth is detected by the 6-axis sensor 15, vibration due to other factors such as the vibrator 13 or the incoming call notification speaker 14 is used to notify the incoming call. 15, since the direction measurement is performed by eliminating (ignoring) the tilt (posture) information affected by the vibration by the vibrator 13 or the incoming call notification speaker 14, the vibration is generated or not generated. Accurate azimuth measurement can be performed without erroneous measurement.

<第1の実施形態の変形例>
図7は、第1の実施形態の変形例を説明するための図であり、第1の実施形態とは、図7の方位計測処理の一部分が異なるので、その部分のみ説明する。
<Modification of First Embodiment>
FIG. 7 is a diagram for explaining a modification of the first embodiment. Since the azimuth measurement process of FIG. 7 is different from the first embodiment, only that part will be described.

図7において、第1の実施形態と同様に、まずステップC1では、携帯電話装置1が振動しているか否かが判別される。
具体的には、ステップC1において、報知中フラグ記憶部11Dの報知中フラグが1か否かを判別すれば、容易に判別できる。
In FIG. 7, as in the first embodiment, first, in step C1, it is determined whether or not the mobile phone device 1 is vibrating.
Specifically, it can be easily determined by determining whether or not the reporting flag in the reporting flag storage unit 11D is 1 in step C1.

ステップC1で振動有りと判別された場合には、ステップC2に進み、マナーモードであるか否かを判別する。
具体的には、ステップC2において、マナーモードフラグ記憶部11Eのマナーモードフラグが1か否かを判別すれば、容易に判別できる。
If it is determined in step C1 that there is vibration, the process proceeds to step C2 to determine whether or not the manner mode is set.
Specifically, it can be easily determined by determining whether or not the manner mode flag in the manner mode flag storage unit 11E is 1 in step C2.

ステップC2でマナーモードであると判別された場合には、ステップC3に進む。
この場合、振動はバイブレータ13によって発生することになるので、バイブレータ13の振動方向であるY軸方向とZ軸方向に関して、6軸センサが備える加速度センサ(傾斜センサ)機能による傾斜検出値が悪影響を受ける。(図2参照。)
If it is determined in step C2 that the manner mode is selected, the process proceeds to step C3.
In this case, since vibration is generated by the vibrator 13, the detected tilt value by the acceleration sensor (tilt sensor) function of the six-axis sensor has an adverse effect on the Y-axis direction and the Z-axis direction, which are the vibration directions of the vibrator 13. receive. (See Figure 2.)

したがって、ステップC3では、地磁気センサの検出値を基に、加速度センサ(傾斜センサ)の検出値のうち2軸(Y軸とZ軸)を排除(無視)した検出値を用いて方位計測処理を行い、計測された方位を方位記憶部11Hに格納するとともに、ステップC4で、計測された方位表示を行う。   Therefore, in step C3, based on the detection value of the geomagnetic sensor, the azimuth measurement process is performed using the detection value in which two axes (Y axis and Z axis) are excluded (ignored) from the detection value of the acceleration sensor (tilt sensor). The measured azimuth is stored in the azimuth storage unit 11H, and the measured azimuth is displayed in step C4.

一方、ステップC2でマナーモードでないと判別された場合には、ステップC5に進む。
この場合、振動は着信報知用スピーカ14によって発生することになるので、バイブレータの振動方向であるZ軸方向関して、6軸センサが備える加速度センサ(傾斜センサ)機能の傾斜検出値が悪影響を受ける。(図2参照。)
On the other hand, if it is determined in step C2 that the manner mode is not set, the process proceeds to step C5.
In this case, since vibration is generated by the incoming notification speaker 14, the tilt detection value of the acceleration sensor (tilt sensor) function of the six-axis sensor is adversely affected with respect to the Z-axis direction that is the vibration direction of the vibrator. . (See Figure 2.)

したがって、ステップC5では、地磁気センサの検出値を基に、加速度センサ(傾斜センサ)の検出値のうち1軸(Z軸)を排除(無視)した検出値を用いて方位計測処理を行い、計測された方位を方位記憶部11Hに格納するとともに、同様に、ステップC4で、計測された方位表示を行う。   Therefore, in step C5, based on the detection value of the geomagnetic sensor, the azimuth measurement process is performed using the detection value in which one axis (Z axis) is excluded (ignored) among the detection values of the acceleration sensor (tilt sensor). The measured azimuth is stored in the azimuth storage unit 11H, and similarly, the measured azimuth is displayed in step C4.

また、ステップC1で振動なしと判別された場合には、ステップC6に進む。
この場合、振動は発生しないことになるので、6軸センサが備える加速度センサ(傾斜センサ)機能の傾斜検出値が悪影響を受けることはない。
If it is determined in step C1 that there is no vibration, the process proceeds to step C6.
In this case, since vibration does not occur, the detected tilt value of the acceleration sensor (tilt sensor) function included in the six-axis sensor is not adversely affected.

したがって、ステップC6では、地磁気センサの検出値、及び傾斜センサの検出値を用いて方位計測処理を行い、計測された方位を方位記憶部11Hに格納するとともに、同様に、ステップC4で、計測された方位表示を行う。   Therefore, in step C6, the azimuth measurement process is performed using the detection value of the geomagnetic sensor and the detection value of the tilt sensor, and the measured azimuth is stored in the azimuth storage unit 11H, and is similarly measured in step C4. Display the direction.

ここでは、図2の配置の場合について説明したが、排除する方向は、6軸センサ15、着信報知用スピーカ14及びバイブレータ13の夫々の配置状態によって適宜決定されることは言うまでもない。   Here, although the case of the arrangement of FIG. 2 has been described, it is needless to say that the direction to be excluded is appropriately determined depending on the arrangement state of the 6-axis sensor 15, the incoming call notification speaker 14, and the vibrator 13.

このように、上記の第1の実施形態の変形例によれば、6軸センサ15で検出して方位計測を行う際に、着信報知のためにバイブレータ13或いは着信報知用スピーカ14といった他の要因による振動が6軸センサ15に加わっても、バイブレータ13或いは着信報知用スピーカ14による振動による影響のうち影響を受ける方向の振動のみを排除(無視)して、方位計測を行うようにしたので、振動方向に一致しない軸の検出値を用いて傾斜情報を考慮した方位計測が行えるので、方位計測の精度を高めることができる。   As described above, according to the modification of the first embodiment described above, other factors such as the vibrator 13 or the incoming call notification speaker 14 are used to notify the incoming call when the azimuth is detected by the 6-axis sensor 15. Even if the vibration due to is applied to the 6-axis sensor 15, only the vibration in the affected direction is excluded (ignored) from the vibration caused by the vibrator 13 or the incoming notification speaker 14, and the direction measurement is performed. Since azimuth | direction measurement which considered inclination information can be performed using the detected value of the axis | shaft which does not correspond to a vibration direction, the precision of azimuth | direction measurement can be improved.

<第2の実施形態>
図8は、第2の実施形態を説明するための図であり、第1の実施形態とは、図6の方位計測処理の一部分が異なるので、その部分のみ説明する。
<Second Embodiment>
FIG. 8 is a diagram for explaining the second embodiment. Since the portion of the azimuth measurement processing of FIG. 6 is different from that of the first embodiment, only that portion will be described.

図8において、まずステップD1では、携帯電話装置1が振動する予定があるか否かが判別される。
具体的には、ステップD1において、報知中フラグ記憶部11Dの報知中フラグが1か否かを判別すれば、容易に判別できる。
In FIG. 8, first, in step D1, it is determined whether or not the mobile phone device 1 is scheduled to vibrate.
Specifically, it can be easily determined by determining whether or not the reporting flag in the reporting flag storage unit 11D is 1 in step D1.

ステップD1で振動有りと判別された場合には、ステップD2に進み、加速度センサ(傾斜センサ)の動作を停止させる。
そして、次のステップD3において、3軸地磁気センサのみを用いた方位計測を行い、計測された方位を方位記憶部11Hに格納するとともに、ステップD4で、計測された方位表示を行う。
If it is determined in step D1 that there is vibration, the process proceeds to step D2, and the operation of the acceleration sensor (tilt sensor) is stopped.
Then, in the next step D3, azimuth measurement using only the three-axis geomagnetic sensor is performed, the measured azimuth is stored in the azimuth storage unit 11H, and the measured azimuth display is performed in step D4.

即ち、携帯電話装置1が発生させる振動は、振動が発生する以前に検知することができるので、方位計測時に加速度センサ(傾斜センサ)が検出する検出値を無視するのではなく、傾斜情報の検出自体を停止させ、方位計測には、地磁気センサによる地磁気の検出値のみを用いた計測を行うようにする。   That is, since the vibration generated by the mobile phone device 1 can be detected before the vibration is generated, the detection value detected by the acceleration sensor (inclination sensor) at the time of azimuth measurement is not ignored, but the detection of the inclination information is detected. The device itself is stopped, and the azimuth measurement is performed using only the detection value of the geomagnetism by the geomagnetic sensor.

一方、ステップD1で振動予定なしと判別された場合には、ステップD5に進む。
この場合、加速度センサ(傾斜センサ)による傾斜検出値が安定しているので、ステップD5では、地磁気センサ及び加速度センサを用いた方位計測処理(加速度センサで検出された傾斜を考慮した方位計測)を行い、計測された方位を方位記憶部11Hに格納するとともに、同様に、ステップD4で、計測された方位表示を行う。
On the other hand, if it is determined in step D1 that there is no planned vibration, the process proceeds to step D5.
In this case, since the inclination detection value by the acceleration sensor (inclination sensor) is stable, in step D5, an azimuth measurement process using the geomagnetic sensor and the acceleration sensor (azimuth measurement in consideration of the inclination detected by the acceleration sensor) is performed. The measured azimuth is stored in the azimuth storage unit 11H, and similarly, the measured azimuth is displayed in step D4.

このように、上記第2実施形態では、6軸センサ15の機能のうち、振動により影響を受ける3軸加速度センサ(傾斜センサ)の機能を計測しない(計測自体を停止する)ようにしており、消費電力の浪費を防止することができる。   As described above, in the second embodiment, among the functions of the six-axis sensor 15, the function of the three-axis acceleration sensor (tilt sensor) affected by vibration is not measured (measurement itself is stopped), It is possible to prevent waste of power consumption.

また、上記各実施形態では、振動がない状態になれば、各種フラグを参照することで、振動の発生、停止を判別することができるので、振動が停止する、または、停止したと判別された場合に、直ちに、地磁気センサによる検出結果とともに、加速度センサ(傾斜センサ)による傾斜情報に基づいて方位計測を再開することができる。   Further, in each of the above embodiments, when there is no vibration, it is possible to determine whether the vibration is generated or stopped by referring to various flags. Therefore, it is determined that the vibration is stopped or stopped. In such a case, the azimuth measurement can be resumed immediately based on the detection result by the geomagnetic sensor and the inclination information by the acceleration sensor (inclination sensor).

なお、上記各実施形態では、地磁気センサと加速度センサ(傾斜センサ)が一体となっている6軸センサの例で説明したが、地磁気センサと加速度センサが別々に設けられている構成であってもよいことは明らかである。   In each of the above embodiments, an example of a six-axis sensor in which a geomagnetic sensor and an acceleration sensor (tilt sensor) are integrated has been described. However, even in a configuration in which the geomagnetic sensor and the acceleration sensor are provided separately. It is clear that it is good.

また、傾斜情報(姿勢情報)を判定できるものであれば、加速度センサでなくてもよい。例えば、静的な状態を判定することのできる、重り(ボール)を用いた傾斜センサであってもよい。   Moreover, as long as it can determine inclination information (attitude information), it may not be an acceleration sensor. For example, an inclination sensor using a weight (ball) that can determine a static state may be used.

傾斜センサとして、加速度センサを用いると、加速度センサは、方位計測の精度向上のため以外に、歩数計測といって別アプリケーションに用いることができ、好都合である。
また、その場合、加速度センサにより、方位計測時の振動判別を行わせるようにしてもよい。
When an acceleration sensor is used as the tilt sensor, the acceleration sensor can be used for another application called step count measurement, in addition to improving the accuracy of azimuth measurement.
In that case, vibration determination at the time of azimuth measurement may be performed by an acceleration sensor.

また、上記各実施形態では、同じ回路基板16上に6軸センサ15、着信報知用スピーカ14及びバイブレータ13を配置した例について述べたが、同一基板上でなくそれぞれ異なった位置に配置されている場合であっても、着信報知用スピーカ14或いはバイブレータ13の振動が6軸センサ15に影響を及ぼす場合であれば本発明を適用できる。   In each of the above embodiments, the example in which the 6-axis sensor 15, the incoming call notification speaker 14 and the vibrator 13 are arranged on the same circuit board 16 has been described, but they are arranged on different positions rather than on the same board. Even in this case, the present invention can be applied if the vibration of the incoming call notification speaker 14 or the vibrator 13 affects the six-axis sensor 15.

また、上記各実施形態では、本発明を携帯電話装置1に適用した例について述べたが、本発明はデジタルカメラ、パーソナルコンピュータ、音楽プレーヤ、PDAなど、どのような電子機器であっても適用可能である。   In each of the above embodiments, the example in which the present invention is applied to the mobile phone device 1 has been described. However, the present invention can be applied to any electronic device such as a digital camera, a personal computer, a music player, and a PDA. It is.

1 携帯電話装置
2 中央制御部
3 プログラム記憶部
4 無線通信部
5 アンテナ
6 音声信号処理部
7 受話スピーカ
8 送話マイク
9 表示部
10 操作部
11 アプリ情報記憶部
12 計時部
13 バイブレータ
14 着信報知用スピーカ
15 6軸センサ(3軸地磁気センサ+3軸加速度(傾斜)センサ)
DESCRIPTION OF SYMBOLS 1 Mobile telephone apparatus 2 Central control part 3 Program memory | storage part 4 Radio | wireless communication part 5 Antenna 6 Audio | voice signal processing part 7 Earpiece speaker 8 Transmission microphone 9 Display part 10 Operation part 11 Application information storage part 12 Timekeeping part 13 Vibrator 14 For notification of incoming calls Speaker 15 6-axis sensor (3-axis geomagnetic sensor + 3-axis acceleration (tilt) sensor)

Claims (9)

地磁気を検出する地磁気検出手段と、水平からの傾斜を検出する傾斜検出手段と、前記地磁気検出手段による検出結果と前記傾斜検出手段による検出結果に基づいて方位計測を行う方位計測手段と、を有する電子機器であって、
当該電子機器に振動があるか否かを判別する振動判別手段と、
当該振動判別手段により振動があると判別された場合に、前記傾斜検出手段による検出結果を排除した前記方位計測手段による方位計測を行わせる制御手段と、
を備えることを特徴とする電子機器。
A geomagnetism detecting means for detecting geomagnetism, an inclination detecting means for detecting an inclination from the horizontal, and an orientation measuring means for measuring an orientation based on a detection result by the geomagnetism detecting means and a detection result by the inclination detecting means. Electronic equipment,
Vibration discriminating means for discriminating whether or not the electronic device has vibration;
Control means for performing azimuth measurement by the azimuth measurement means that excludes the detection result by the inclination detection means when it is determined that there is vibration by the vibration determination means;
An electronic device comprising:
前記制御手段は、
前記振動判別手段により振動があると判別された場合に、前記傾斜検出手段による検出結果を除いた方位計測を行わせる、
ことを特徴とする請求項1に記載の電子機器。
The control means includes
When it is determined that there is vibration by the vibration determination unit, the direction measurement excluding the detection result by the inclination detection unit is performed.
The electronic device according to claim 1.
前記制御手段は、
前記振動判別手段により振動があると判別された場合に、前記傾斜検出手段による検出自体を停止させる、
ことを特徴とする請求項1に記載の電子機器。
The control means includes
When it is determined that there is vibration by the vibration determination means, the detection itself by the inclination detection means is stopped.
The electronic device according to claim 1.
前記制御手段は、
前記振動判別手段により振動がないと判別された場合に、前記地磁気検出手段による検出結果とともに、前記傾斜検出手段による検出結果に基づいた方位計測を行わせる、
ことを特徴とする請求項1に記載の電子機器。
The control means includes
When it is determined that there is no vibration by the vibration determination means, together with the detection result by the geomagnetism detection means, the direction measurement based on the detection result by the inclination detection means is performed.
The electronic device according to claim 1.
前記振動判別手段は、
振動がなくなるか否かを判別する停止判別手段を含み、
前記制御手段は、
前記振動判別手段により振動がなくなると判別された場合に、前記地磁気検出手段による検出結果とともに、前記傾斜検出手段による検出結果に基づいた方位計測を再開させる、
ことを特徴とする請求項1に記載の電子機器。
The vibration discriminating means includes
Including stop determination means for determining whether or not vibration is eliminated,
The control means includes
When it is determined by the vibration determination means that there is no vibration, the direction measurement based on the detection result by the inclination detection means is resumed together with the detection result by the geomagnetism detection means,
The electronic device according to claim 1.
当該電子機器に振動を発生させる振動発生手段を更に備え、
前記振動判別手段は、前記振動発生手段による振動方向を判別する方向判別手段を含み、
前記制御手段は、
当該振動判別手段により振動があると判別された場合に、前記傾斜検出手段に、前記振動発生手段による振動方向と一致する方向の振動を排除して傾斜を検出させ、前記方位計測手段による方位計測を行わせる、
ことを特徴とする請求項1に記載の電子機器。
The apparatus further comprises vibration generating means for generating vibration in the electronic device,
The vibration determining means includes direction determining means for determining a vibration direction by the vibration generating means,
The control means includes
When the vibration discriminating means determines that there is vibration, the inclination detecting means excludes the vibration in the direction matching the vibration direction by the vibration generating means and detects the inclination, and the azimuth measurement by the azimuth measuring means To do,
The electronic device according to claim 1.
前記傾斜検出手段は、加速度を検出する加速度検出手段である、
ことを特徴とする請求項1に記載の電子機器。
The tilt detection means is an acceleration detection means for detecting acceleration.
The electronic device according to claim 1.
通信のための通信手段と、
前記通信手段に対する着信があったことを報知するための着信報知手段と、
を更に備え、
前記振動発生手段は、前記着信報知手段としてのスピーカまたは、バイブレータである、
ことを特徴とする請求項1に記載の電子機器。
Communication means for communication;
An incoming call notification means for notifying that there has been an incoming call to the communication means;
Further comprising
The vibration generating means is a speaker or vibrator as the incoming call notification means.
The electronic device according to claim 1.
コンピュータに、
地磁気を検出する地磁気検出機能と、
水平からの傾斜を検出する傾斜検出機能と、
前記地磁気検出機能による検出結果と前記傾斜検出機能による検出結果に基づいて方位計測を行う方位計測機能と、
当該コンピュータに振動があるか否かを判別する振動判別機能と、
当該振動判別機能により振動があると判別された場合に、前記傾斜検出機能による検出結果を排除した方位計測を行わせる制御機能と、
を実現させるためのプログラム。
On the computer,
Geomagnetic detection function to detect geomagnetism,
Inclination detection function that detects the inclination from the horizontal,
An azimuth measurement function for performing azimuth measurement based on a detection result by the geomagnetic detection function and a detection result by the tilt detection function;
A vibration discriminating function for discriminating whether or not the computer has vibration;
When it is determined that there is vibration by the vibration determination function, a control function for performing azimuth measurement that excludes the detection result by the tilt detection function;
A program to realize
JP2009013179A 2009-01-23 2009-01-23 Electronic device and program Expired - Fee Related JP5263956B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2009013179A JP5263956B2 (en) 2009-01-23 2009-01-23 Electronic device and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2009013179A JP5263956B2 (en) 2009-01-23 2009-01-23 Electronic device and program

Publications (2)

Publication Number Publication Date
JP2010169574A JP2010169574A (en) 2010-08-05
JP5263956B2 true JP5263956B2 (en) 2013-08-14

Family

ID=42701858

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2009013179A Expired - Fee Related JP5263956B2 (en) 2009-01-23 2009-01-23 Electronic device and program

Country Status (1)

Country Link
JP (1) JP5263956B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103210277B (en) * 2010-11-18 2016-03-23 日本电气株式会社 Electronic equipment
CN107328401B (en) * 2017-07-26 2021-02-19 Tcl移动通信科技(宁波)有限公司 Mobile terminal, data correction processing method of geomagnetic sensor of mobile terminal, and storage medium

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006005540A (en) * 2004-06-16 2006-01-05 Yamaha Corp Mobile terminal
JP2006098200A (en) * 2004-09-29 2006-04-13 Yamaha Corp Portable terminal
JP2007271454A (en) * 2006-03-31 2007-10-18 Yamaha Corp Personal digital assistant, and fetching method of magnetic sensor data in the personal digital assistant

Also Published As

Publication number Publication date
JP2010169574A (en) 2010-08-05

Similar Documents

Publication Publication Date Title
JP4483993B2 (en) Electronic device and program
KR101399034B1 (en) Mobile electronic device
EP2056174A1 (en) Mobile terminal device, time control method, and timer control program
JP2009278294A (en) Information processing apparatus, information processing method, information processing program, and mobile terminal device
JP5023594B2 (en) Portable terminal device, data transmission method, and data transmission control program
JP2008227639A (en) Terminal device and incoming call notifying method
US20050146620A1 (en) Electronic device with image capturing and method therefor
JP5263956B2 (en) Electronic device and program
JP5543077B2 (en) Portable electronic devices
KR101056134B1 (en) Recording media recording electronic devices and their control programs
JP5543556B2 (en) Portable electronic devices
JP4805892B2 (en) Portable electronic devices
JP2012004715A (en) Mobile terminal device and program
JP5042183B2 (en) Mobile device
JP2009229062A (en) Portable electronic apparatus
JP4669751B2 (en) Direction measuring apparatus with wireless communication function, direction measuring method, and program
JP5414303B2 (en) Portable electronic device and control method thereof
JP5310595B2 (en) Electronic device, control method thereof, and control program
JP4805891B2 (en) Portable electronic devices
JP2003198670A (en) Portable telephone system and its control method
JP4593440B2 (en) Direction measuring device and direction measuring method
JP2009077035A (en) Communication terminal equipment and program
JP2012023776A (en) Communication terminal apparatus and program
JP2010130250A (en) Mobile electronic equipment
JP2007003465A (en) Device, method and program for azimuth measurement

Legal Events

Date Code Title Description
A711 Notification of change in applicant

Free format text: JAPANESE INTERMEDIATE CODE: A712

Effective date: 20100731

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20111206

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20130426

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

S533 Written request for registration of change of name

Free format text: JAPANESE INTERMEDIATE CODE: R313533

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313113

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

LAPS Cancellation because of no payment of annual fees