JP2009101035A - Game apparatus - Google Patents

Game apparatus Download PDF

Info

Publication number
JP2009101035A
JP2009101035A JP2007277124A JP2007277124A JP2009101035A JP 2009101035 A JP2009101035 A JP 2009101035A JP 2007277124 A JP2007277124 A JP 2007277124A JP 2007277124 A JP2007277124 A JP 2007277124A JP 2009101035 A JP2009101035 A JP 2009101035A
Authority
JP
Japan
Prior art keywords
controller
sound signal
main body
distance measurement
received
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.)
Withdrawn
Application number
JP2007277124A
Other languages
Japanese (ja)
Inventor
Hideki Sato
秀樹 佐藤
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 JP2007277124A priority Critical patent/JP2009101035A/en
Publication of JP2009101035A publication Critical patent/JP2009101035A/en
Withdrawn legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To provide a technical means for preventing the calculation result of the direction of a controller from getting inaccurate with a time lapse in a game apparatus obtaining the direction of the controller by integrating an output signal of a sensor provided in the controller. <P>SOLUTION: A body part 1 and the controller 2 each include a speaker or a microphone, which perform a directive sound transmission for allowing one to receive sound emitted by the other, only when the controller 2 faces the direction of a body part 1. When the directive sound transmission is satisfied between the body part 1 and the controller 2, the controller 2 controls to correct a direction angle θ obtained by a gyroscope sensor 22 to a reference angle O corresponding to the direction of the body part 1. <P>COPYRIGHT: (C)2009,JPO&INPIT

Description

この発明は、ゲームを進行させる本体部と、本体部に制御情報を送信するコントローラからなるゲーム装置に関する。   The present invention relates to a game apparatus comprising a main body for playing a game and a controller for transmitting control information to the main body.

この種のゲーム装置として、加速度センサ等のセンサをコントローラに設け、このセンサによって検出されるコントローラの動きを示す情報を本体部に送り、ゲームの進行の制御に利用するものが提案されている。例えば、特許文献1は、ドライブゲームを楽しむためのゲームコントローラに関するものであるが、この特許文献1に開示のゲームコントローラは、ゲーム装置本体と別体をなし、ユーザが自由に操舵するハンドル型のゲームコントローラである。このゲームコントローラには、加速度センサが設けられており、この加速度センサが検出する加速度に基づいて、ハンドルであるゲームコントローラの操舵角が求められ、ゲームの進行の制御に用いられるようになっている。
特開2002−224444号公報
As this type of game apparatus, there has been proposed one in which a sensor such as an acceleration sensor is provided in a controller, information indicating the movement of the controller detected by this sensor is sent to the main body, and used for controlling the progress of the game. For example, Patent Document 1 relates to a game controller for enjoying a drive game. However, the game controller disclosed in Patent Document 1 is a handle type that is separated from the main body of the game apparatus and is freely steered by a user. It is a game controller. This game controller is provided with an acceleration sensor. Based on the acceleration detected by the acceleration sensor, the steering angle of the game controller, which is a steering wheel, is obtained and used to control the progress of the game. .
JP 2002-224444 A

ところで、上述した加速度センサ等のセンサを用いたコントローラでは、センサの出力信号を積分することによりコントローラの方向を示す情報(特許文献1の場合は操舵角)を得ている。従って、コントローラの方向を示す情報を正確に得るためには、コントローラが基準となる方向を向いている状態において、センサの出力信号の積分値を初期化する必要がある。しかし、このような初期化を行ったとしても、加速度センサ等のセンサにはドリフトがあるため、初期化後の時間経過に伴ってセンサの出力信号の積分値にドリフトに基づく誤差が累積し、方向を示す情報が次第に不正確なものになってゆくという問題があった。   By the way, in a controller using a sensor such as the acceleration sensor described above, information indicating the direction of the controller (steering angle in the case of Patent Document 1) is obtained by integrating the output signal of the sensor. Therefore, in order to accurately obtain information indicating the direction of the controller, it is necessary to initialize the integrated value of the output signal of the sensor in a state where the controller is facing the reference direction. However, even if such initialization is performed, there is a drift in a sensor such as an acceleration sensor, so that an error based on drift accumulates in the integrated value of the output signal of the sensor with the lapse of time after initialization, There was a problem that the information indicating the direction gradually became inaccurate.

この発明は、以上説明した事情に鑑みてなされたものであり、コントローラに設けられたセンサの出力信号を積分してコントローラの方向を求めるゲーム装置において、コントローラの方向の算出結果が時間経過に伴って不正確になるのを防止する技術的手段を提供することを目的としている。   The present invention has been made in view of the circumstances described above, and in a game device that determines the direction of a controller by integrating the output signals of sensors provided in the controller, the calculation result of the direction of the controller increases with time. It aims to provide technical means to prevent inaccuracies.

この発明は、ゲームを進行させる本体部と、前記本体部に制御情報を送信するコントローラとを具備するゲーム装置において、前記コントローラは、角速度を検出する角速度検出手段と、前記角速度検出手段によって検出される角速度を積分することにより前記本体部の方向に対する前記コントローラの方向の傾きを示す方向角度を算出する積分器とを有する方向検出部を具備し、前記本体部および前記コントローラは、前記コントローラが前記本体部の方向を向いているときに一方が放射した音を他方が受音する音の指向性伝送を成立させるスピーカまたはマイクを各々具備し、前記本体部および前記コントローラ間において前記音の指向性伝送が成立したときに、前記コントローラの方向検出部により得られる方向角度を、前記本体部の方向に対応した基準角度に補正する制御を行う方向補正制御手段を前記本体部または前記コントローラが具備することを特徴とするゲーム装置を提供する。
かかるゲーム装置によれば、方向補正制御手段は、コントローラが本体部の方向を向いており、本体部およびコントローラ間において音の指向性伝送が行われたときに、コントローラの方向検出部が出力する方向角度を、本体部の方向に対応した基準角度に補正する制御を行う。従って、コントローラが本体部の方向を向く度に、方向角度の補正が行われ、時間経過に伴って方向角度が不正確になるのを防止することができる。
The present invention provides a game apparatus comprising a main body for proceeding with a game and a controller for transmitting control information to the main body, wherein the controller is detected by an angular velocity detecting means for detecting an angular velocity and the angular velocity detecting means. A direction detector having an integrator that calculates a directional angle indicating the inclination of the direction of the controller with respect to the direction of the main body by integrating the angular velocity of the main body, and the controller includes the controller. A speaker or a microphone that establishes directional transmission of a sound that is received by one of the sounds emitted by the other when facing the direction of the main body, and the directivity of the sound between the main body and the controller; When transmission is established, the direction angle obtained by the direction detection unit of the controller is To provide a game apparatus, wherein said main body portion or the controllers direction correction control means for performing control for correcting the reference angle corresponding to the direction is provided.
According to such a game apparatus, the direction correction control means outputs the direction detection unit of the controller when the controller faces the direction of the main body and sound directivity transmission is performed between the main body and the controller. Control is performed to correct the direction angle to a reference angle corresponding to the direction of the main body. Therefore, every time the controller faces the direction of the main body, the direction angle is corrected, and it is possible to prevent the direction angle from becoming inaccurate with time.

以下、図面を参照し、この発明の実施の形態を説明する。
図1および図2は、この発明の一実施形態であるゲーム装置の構成を示すブロック図であり、図1は特に同ゲーム装置の本体部1の構成の詳細を示すブロック図、図2は特に同ゲーム装置のコントローラ2の構成の詳細を示すブロック図である。ここで、本体部1は、ゲームを進行させる装置であり、コントローラ2は、ゲームの進行に関する制御情報を本体部1に送信する装置である。
Embodiments of the present invention will be described below with reference to the drawings.
1 and 2 are block diagrams showing the configuration of a game apparatus according to an embodiment of the present invention. FIG. 1 is a block diagram showing the detailed configuration of the main body 1 of the game apparatus, and FIG. It is a block diagram which shows the detail of a structure of the controller 2 of the game device. Here, the main body 1 is a device that progresses the game, and the controller 2 is a device that transmits control information related to the progress of the game to the main body 1.

本実施形態によるゲーム装置の主要な特徴は次の点にある。
a.本体部1の方向に対するコントローラ2の方向の傾きを示す方向角度をジャイロセンサ22に測定させ、ゲームの進行の制御に利用するとともに、コントローラ2が本体部1の方向を向き、本体部1およびコントローラ2間の音の指向性伝送が成立したときに、ジャイロセンサ22により測定されるコントローラ2の方向角度を補正するようにした点
b.本体部1およびコントローラ2間において音信号の授受を行わせ、音信号の往復時間の測定結果に基づいて、本体部1およびコントローラ2間の距離を求め、ゲームの進行の制御に利用するようにした点
c.本体部1およびコントローラ2間の通信における情報の担い手として、通信相手へ送る情報パターンにスペクトラム拡散変調を施した音信号を用いるようにした点
The main features of the game device according to the present embodiment are as follows.
a. The gyro sensor 22 measures the direction angle indicating the inclination of the direction of the controller 2 with respect to the direction of the main body 1 and is used for controlling the progress of the game. The controller 2 faces the direction of the main body 1, and the main body 1 and the controller A point of correcting the direction angle of the controller 2 measured by the gyro sensor 22 when the directional transmission of sound between the two is established; b. The sound signal is exchanged between the main body 1 and the controller 2, and the distance between the main body 1 and the controller 2 is obtained based on the measurement result of the round-trip time of the sound signal, and is used for controlling the progress of the game. Point c. Use of sound signals that have been subjected to spread spectrum modulation for information patterns to be sent to the other party of communication as a carrier of information in communication between the main unit 1 and the controller 2

上記特徴aに相当する機能をゲーム装置に設けた理由は、既に「発明が解決しようとする課題」の項において述べた通りである。   The reason why the game apparatus is provided with the function corresponding to the feature a is as already described in the section “Problems to be solved by the invention”.

上記特徴bに相当する機能をゲーム装置に設けた理由は、次の通りである。まず、ゲームの進行に関して多彩な制御を行うためには、コントローラの動きを詳細に求める必要がある。これまでに提案されているゲーム装置として、例えばコントローラに赤外線送信装置を設け、このコントローラの赤外線送信装置が送信する赤外線を部屋の各所に設けられた赤外線受信装置により受信し、コントローラの位置を特定するもの等があった。しかし、このような赤外線送信装置および赤外線受信装置を用いると、ゲーム装置が高価なものになってしまう。そこで、本実施形態では、音信号の送受信手段という安価な手段により本体部1およびコントローラ2間の距離を求めるようにしている。上述したコントローラ2の方向に加えて、本体部1およびコントローラ2間の距離を求めることができれば、ゲームの進行に関して多彩な制御が可能になる。   The reason why the game apparatus is provided with a function corresponding to the feature b is as follows. First, in order to perform various controls regarding the progress of the game, it is necessary to determine the movement of the controller in detail. As a game device that has been proposed so far, for example, an infrared transmission device is provided in a controller, and infrared rays transmitted by the infrared transmission device of this controller are received by infrared reception devices provided in various places in the room, and the position of the controller is specified. There was something to do. However, if such an infrared transmission device and an infrared reception device are used, the game device becomes expensive. Therefore, in this embodiment, the distance between the main body 1 and the controller 2 is obtained by an inexpensive means such as a sound signal transmitting / receiving means. If the distance between the main body 1 and the controller 2 can be obtained in addition to the direction of the controller 2 described above, various controls can be performed regarding the progress of the game.

このような観点から捉えると、本実施形態によるゲーム装置は、ゲームを進行させる本体部1と、この本体部1に制御情報を送信するコントローラ2とを具備するゲーム装置において、本体部1は、無指向性スピーカにより距離測定用音信号を送信し、コントローラ2は、無指向性マイクにより距離測定用音信号を受信して、受信報告音信号を無指向性スピーカにより送信し、本体部1は、無指向性マイクにより受信報告音信号を受信し、距離測定用音信号を送信してから受信報告音信号を受信するまでの時間に基づいて、本体部1およびコントローラ2間の距離を算出することを特徴とするゲーム装置であると言える。   From this point of view, the game apparatus according to the present embodiment includes a main body 1 that advances a game and a controller 2 that transmits control information to the main body 1. The distance measurement sound signal is transmitted by the omnidirectional speaker, the controller 2 receives the distance measurement sound signal by the omnidirectional microphone, and transmits the reception report sound signal by the omnidirectional speaker. The distance between the main body 1 and the controller 2 is calculated based on the time from reception of the reception report sound signal by the omnidirectional microphone and transmission of the distance measurement sound signal to reception of the reception report sound signal. It can be said that it is a game device characterized by this.

上記特徴cに相当する機能をゲーム装置に設けた理由は、次の通りである。本実施形態では、ジャイロセンサ22により測定されるコントローラ2の方向角度の補正の契機を得るために、本体部1およびコントローラ2間で音信号の授受が行われ、本体部1およびコントローラ2間の距離の測定のために本体部1およびコントローラ2間で音信号の授受が行われる。それに加えて、本実施形態では、本体部1およびコントローラ2間の情報交換のために音信号の授受が行われる。このようにすることで、音信号の送受信のみにより、ゲームの進行の制御に用いるパラメータ(ここではコントローラ2の方向角度や本体部1およびコントローラ2間の距離)を得るための各種の測定のみならず、ゲームの進行の制御のための情報交換までをも賄うことが可能になり、本体部1およびコントローラ2間の情報交換のための他の種類の無線通信装置を設ける必要がなくなり、ゲーム装置を安価なものにすることが可能になる。しかし、このように音信号を多用した場合において、音信号のスペクトラムが特定の帯域に集中していると、耳障りな騒音の原因となる可能性がある。そこで、本体部1およびコントローラ2間の通信における情報の担い手として、通信相手へ送る情報パターンにスペクトラム拡散変調を施した音信号を採用し、このような騒音の発生を回避しているのである。   The reason why the game apparatus is provided with a function corresponding to the feature c is as follows. In the present embodiment, in order to obtain an opportunity for correcting the direction angle of the controller 2 measured by the gyro sensor 22, a sound signal is exchanged between the main body 1 and the controller 2, and the main body 1 and the controller 2 are exchanged. In order to measure the distance, a sound signal is exchanged between the main body 1 and the controller 2. In addition, in this embodiment, sound signals are exchanged for information exchange between the main body 1 and the controller 2. In this way, only the various measurements for obtaining the parameters (here, the direction angle of the controller 2 and the distance between the main body 1 and the controller 2) used for controlling the progress of the game by only transmitting and receiving sound signals. In addition, it is possible to cover up to information exchange for controlling the progress of the game, and there is no need to provide another type of wireless communication device for exchanging information between the main body unit 1 and the controller 2. Can be made inexpensive. However, when sound signals are used in this way, if the spectrum of the sound signals is concentrated in a specific band, it may cause annoying noise. Therefore, as a bearer of information in communication between the main unit 1 and the controller 2, a sound signal obtained by performing spread spectrum modulation on an information pattern to be transmitted to a communication partner is employed to avoid such noise generation.

このような観点から捉えると、本実施形態によるゲーム装置は、ゲームを進行させる本体部1と、この本体部1に制御情報を送信するコントローラ2とを具備するゲーム装置において、本体部1およびコントローラ2の一方は、通信相手宛ての情報パターンにスペクトラム拡散変調を施した音信号をスピーカにより送信するスペクトラム拡散送信処理部を具備し、本体部1およびコントローラ2の他方は、スペクトラム拡散変調の施された音信号をマイクを介して受信し、この音信号から通信相手から送られた情報パターンを復調するスペクトラム拡散受信処理部を具備することを特徴とするゲーム装置であると言える。   From this point of view, the game apparatus according to the present embodiment includes a main body 1 and a controller in a game apparatus including a main body 1 that progresses a game and a controller 2 that transmits control information to the main body 1. One of the two includes a spread spectrum transmission processing unit that transmits a sound signal obtained by performing spread spectrum modulation on an information pattern addressed to a communication partner, and the other of the main body 1 and the controller 2 is subjected to spread spectrum modulation. It can be said that the game apparatus is characterized by including a spread spectrum reception processing unit that receives a received sound signal via a microphone and demodulates an information pattern sent from the communication partner from the sound signal.

本実施形態では、本体部1およびコントローラ2間において、双方向の音信号の通信を行わせるため、本体部1およびコントローラ2の両方に、スペクトラム拡散送信処理部とスペクトラム拡散受信処理部が設けられている。しかし、例えばコントローラ2から本体部1へ一方向の音信号の伝送を行わせるだけでよい場合には、コントローラ2にスペクトラム拡散送信処理部を設け、本体部1にスペクトラム拡散受信処理部を設けるだけでよい。
以下、本実施形態によるゲーム装置の構成の詳細について説明する。
In the present embodiment, a spread spectrum transmission processing unit and a spread spectrum reception processing unit are provided in both the main unit 1 and the controller 2 in order to perform bidirectional sound signal communication between the main unit 1 and the controller 2. ing. However, for example, when it is only necessary to transmit a unidirectional sound signal from the controller 2 to the main body unit 1, the controller 2 is provided with a spread spectrum transmission processing unit, and the main body unit 1 is provided with a spread spectrum reception processing unit. It's okay.
Details of the configuration of the game device according to the present embodiment will be described below.

図1に示すように、本体部1は、プロセッサ10と、外部記憶装置11と、メモリ部12と、音信号送受信部13と、信号処理部14と、I/F(インタフェース)15とを有している。プロセッサ10は、本体部1全体を制御する装置である。外部記憶装置11は、例えばDVD(Digital Versatile Disk)等の記録媒体を収容し、プロセッサ10による制御の下、この記録媒体に記録されたゲーム用アプリケーションプログラムを読み出す装置である。メモリ部12は、プロセッサ10が実行する各種の制御プログラムを記憶したROMと、プロセッサ10がワークエリアとして使用するRAMとを含む。プロセッサ10は、このメモリ部12のROM内の制御プログラムおよび外部記憶装置11の記録媒体内のゲーム用アプリケーションプログラムをメモリ部12のRAM内にロードして実行し、ゲーム用アプリケーションプログラムに従ってゲームを進行させる。   As shown in FIG. 1, the main body unit 1 includes a processor 10, an external storage device 11, a memory unit 12, a sound signal transmission / reception unit 13, a signal processing unit 14, and an I / F (interface) 15. is doing. The processor 10 is a device that controls the entire main body 1. The external storage device 11 is a device that stores a recording medium such as a DVD (Digital Versatile Disk), for example, and reads a game application program recorded on the recording medium under the control of the processor 10. The memory unit 12 includes a ROM that stores various control programs executed by the processor 10 and a RAM that the processor 10 uses as a work area. The processor 10 loads the control program in the ROM of the memory unit 12 and the game application program in the recording medium of the external storage device 11 into the RAM of the memory unit 12 and executes them, and the game proceeds according to the game application program. Let

音信号送受信部13は、コントローラ2との間で音信号の送受信を行うための装置であり、無指向性スピーカ131と無指向性マイク132とを有する。信号処理部14は、スペクトラム拡散送信処理部141と、スペクトラム拡散受信処理部142とを有する。ここで、スペクトラム拡散送信処理部141は、プロセッサ10から与えられるコントローラ2宛ての情報パターンにスペクトラム拡散変調処理を施してオーディオ帯域の信号(以下、単に音信号という)を生成し、この音信号を無指向性スピーカ131から放射する装置である。また、スペクトラム拡散受信処理部142は、コントローラ2が放射するスペクトラム拡散変調処理の施された音信号を無指向性マイク132を介して受信し、この音信号にスペクトラム拡散復調処理を施し、スペクトラム拡散変調処理前の情報パターンを復元してプロセッサ10に引き渡す装置である。   The sound signal transmission / reception unit 13 is a device for transmitting / receiving a sound signal to / from the controller 2 and includes an omnidirectional speaker 131 and an omnidirectional microphone 132. The signal processing unit 14 includes a spread spectrum transmission processing unit 141 and a spread spectrum reception processing unit 142. Here, the spread spectrum transmission processing unit 141 performs spread spectrum modulation processing on the information pattern addressed to the controller 2 given from the processor 10 to generate an audio band signal (hereinafter simply referred to as a sound signal), and this sound signal is generated. It is a device that radiates from an omnidirectional speaker 131. Further, the spread spectrum reception processing unit 142 receives the sound signal subjected to the spread spectrum modulation process emitted from the controller 2 via the omnidirectional microphone 132, performs the spread spectrum demodulation process on the sound signal, and spreads the spectrum. This is a device that restores an information pattern before modulation processing and delivers it to the processor 10.

I/F15は、プロセッサ10と本体部1の外部のモニタ3との間の情報の授受の制御を行う装置である。ここで、モニタ3は、例えば家庭用のテレビジョン受像機であり、画像を表示する機能と音声を再生する機能を有している。プロセッサ10は、I/F15を介してゲームの展開を示す画像データや音声データをモニタ3に送り、その表示および音としての再生を行わせる。また、プロセッサ10は、機能選択メニュー等、ユーザに伝えるべき情報がある場合に、I/F15を介して、その情報をモニタ3に送り、画像として表示させる。   The I / F 15 is a device that controls transmission and reception of information between the processor 10 and the monitor 3 outside the main body 1. Here, the monitor 3 is a household television receiver, for example, and has a function of displaying an image and a function of reproducing sound. The processor 10 sends image data and sound data indicating the development of the game to the monitor 3 via the I / F 15, and causes the display 3 and reproduction as sound. Further, when there is information to be transmitted to the user such as a function selection menu, the processor 10 sends the information to the monitor 3 via the I / F 15 and displays it as an image.

メモリ部12のROMに記憶され、プロセッサ10により実行される制御プログラムとして、コントローラ2との間の情報の授受やコントローラ2に関する情報を取得する処理の制御のための制御プログラムがある。図1には、プロセッサ10を示すボックスの中には、この制御プログラムに従ってプロセッサ10が実行する処理の一部である距離取得処理101と方向取得処理102が示されている。ここで、距離取得処理101は、本体部1およびコントローラ2間の距離、より厳密には本体部1の無指向性スピーカ131とコントローラ2の無指向性マイク(図2参照)との間の距離Dを求める処理である。また、方向取得処理102は、本体部1の無指向性スピーカ131とコントローラ2の指向性マイク(図2参照)とを結ぶ仮想直線を基準としたコントローラ2の傾きを示す方向角度θを求める処理である。距離取得処理101の実行により取得された距離Dと、方向取得処理102の実行により取得された方向角度θは、ゲーム用アプリケーションプログラムに引き渡され、ゲームの進行の制御に用いられる。   As a control program stored in the ROM of the memory unit 12 and executed by the processor 10, there is a control program for control of processing for exchanging information with the controller 2 and acquiring information related to the controller 2. In FIG. 1, a box indicating the processor 10 shows a distance acquisition process 101 and a direction acquisition process 102 which are a part of the process executed by the processor 10 in accordance with this control program. Here, the distance acquisition process 101 is a distance between the main body 1 and the controller 2, more precisely, a distance between the omnidirectional speaker 131 of the main body 1 and the omnidirectional microphone (see FIG. 2) of the controller 2. This is a process for obtaining D. The direction acquisition process 102 is a process for obtaining a direction angle θ indicating the inclination of the controller 2 with reference to a virtual straight line connecting the omnidirectional speaker 131 of the main body 1 and the directional microphone of the controller 2 (see FIG. 2). It is. The distance D acquired by the execution of the distance acquisition process 101 and the direction angle θ acquired by the execution of the direction acquisition process 102 are transferred to the game application program and used for controlling the progress of the game.

図2に示すように、コントローラ2は、プロセッサ20と、操作部21と、ジャイロセンサ22と、メモリ部23と、音信号送受信部24と、信号処理部25とを有している。プロセッサ20は、コントローラ2全体を制御する装置である。操作部21は、コントローラ2に配備された押ボタン等の操作子の集合体である。ジャイロセンサ22は、コントローラ2と本体部1とを結ぶ仮想直線に対するコントローラ2の方向の傾きを示す方向角度θを検出する方向検出部としての役割を果たす装置であり、コントローラ2の角速度を検出する角速度検出センサと、この角速度検出センサによって検出される角速度を積分することにより方向角度θを算出する積分器とを有する。メモリ部23は、プロセッサ20が実行する各種の制御プログラムを記憶したROMと、プロセッサ20がワークエリアとして使用するRAMとを含む。プロセッサ20は、このメモリ部23のROM内の制御プログラムをメモリ部23のRAM内にロードして実行し、コントローラ2の各部の制御を行う。   As illustrated in FIG. 2, the controller 2 includes a processor 20, an operation unit 21, a gyro sensor 22, a memory unit 23, a sound signal transmission / reception unit 24, and a signal processing unit 25. The processor 20 is a device that controls the entire controller 2. The operation unit 21 is a collection of operation elements such as push buttons arranged in the controller 2. The gyro sensor 22 is a device that serves as a direction detection unit that detects a direction angle θ indicating the inclination of the direction of the controller 2 with respect to a virtual straight line connecting the controller 2 and the main body 1, and detects the angular velocity of the controller 2. It has an angular velocity detection sensor and an integrator that calculates the direction angle θ by integrating the angular velocity detected by the angular velocity detection sensor. The memory unit 23 includes a ROM that stores various control programs executed by the processor 20 and a RAM that the processor 20 uses as a work area. The processor 20 loads the control program in the ROM of the memory unit 23 into the RAM of the memory unit 23 and executes it, thereby controlling each unit of the controller 2.

音信号送受信部24は、本体部1との間で音信号の送受信を行うための装置であり、無指向性スピーカ241と、無指向性マイク242と、指向性マイク243とを有する。ここで、指向性マイク243は、コントローラ2の所定の軸の方角から到来する音のみを十分な音量で受音する指向性パターンを有している。本実施形態において、この指向性マイク243と本体部1の無指向性スピーカ131は、コントローラ2が本体部1の方向を向いているときに限って一方が放射した音を他方が受音する「音の指向性伝送」を成立させる役割を果たすものである。   The sound signal transmission / reception unit 24 is a device for transmitting / receiving a sound signal to / from the main body unit 1, and includes an omnidirectional speaker 241, an omnidirectional microphone 242, and a directional microphone 243. Here, the directional microphone 243 has a directional pattern that receives only sound coming from the direction of a predetermined axis of the controller 2 at a sufficient volume. In the present embodiment, the directional microphone 243 and the omnidirectional speaker 131 of the main body 1 receive the sound radiated by one when the controller 2 is facing the main body 1. It plays a role in establishing “directional transmission of sound”.

信号処理部25は、スペクトラム拡散送信処理部251と、スペクトラム拡散受信処理部252および253とを有する。ここで、スペクトラム拡散送信処理部251は、プロセッサ20から与えられる本体部1宛ての情報パターンにスペクトラム拡散変調処理を施し、このスペクトラム拡散処理により得られた信号を無指向性スピーカ241から音信号として放射させる装置である。また、スペクトラム拡散受信処理部252および253は、コントローラ2が放射するスペクトラム拡散処理の施された音信号を無指向性マイク242および指向性マイク243を各々介して受信し、この受信信号にスペクトラム拡散復調処理を施し、スペクトラム拡散処理前の情報パターンを復元してプロセッサ20に各々引き渡す装置である。   The signal processing unit 25 includes a spread spectrum transmission processing unit 251 and spread spectrum reception processing units 252 and 253. Here, the spread spectrum transmission processing unit 251 performs spread spectrum modulation processing on the information pattern addressed to the main unit 1 given from the processor 20, and uses the signal obtained by the spread spectrum processing as a sound signal from the omnidirectional speaker 241. It is a device that emits radiation. Further, the spread spectrum reception processing units 252 and 253 receive the sound signal subjected to the spread spectrum process emitted by the controller 2 via the omnidirectional microphone 242 and the directional microphone 243, respectively, and spread the spectrum signal to the received signal. It is a device that performs demodulation processing, restores the information pattern before the spread spectrum processing, and delivers it to the processor 20.

メモリ部23のROMに記憶され、プロセッサ20により実行される制御プログラムとして、本体部1との間の情報の授受やコントローラ2に関する情報を取得する処理を制御する制御プログラムがある。図2には、プロセッサ20を示すボックスの中には、この制御プログラムに従ってプロセッサ20が実行する処理の一部である測定補助処理201と方向補正処理202と制御情報送信処理203が示されている。ここで、測定補助処理201は、距離測定用音信号が本体部1の無指向性スピーカ131から放射され、この距離測定用音信号が無指向性マイク242により受信された場合に、受信報告音信号を無指向性スピーカ241から送信させる制御を行う処理である。また、方向補正処理202は、本体部1の無指向性スピーカ131から送信された音信号が指向性マイク243により受信されたとき、方向検出部たるジャイロセンサ22により得られる方向角度を補正する制御、より具体的にはジャイロセンサ22の積分器が保持している方向角度θを本体部1の方向に対応した基準角度0に初期化する制御を行う処理である。制御情報送信処理203は、ジャイロセンサ22が出力する方向角度θや操作部21の操作情報等、コントローラ2において発生する各種の情報パターン(情報を示すビット列)を収集し、収集した情報パターンを示す音信号を無指向性スピーカ241から送信させる処理である。   As a control program stored in the ROM of the memory unit 23 and executed by the processor 20, there is a control program for controlling a process of exchanging information with the main body unit 1 and acquiring information about the controller 2. In FIG. 2, a box indicating the processor 20 shows a measurement auxiliary process 201, a direction correction process 202, and a control information transmission process 203, which are a part of processes executed by the processor 20 in accordance with this control program. . Here, the measurement auxiliary processing 201 is configured to receive the received report sound when the distance measurement sound signal is radiated from the omnidirectional speaker 131 of the main body 1 and the distance measurement sound signal is received by the omnidirectional microphone 242. This is processing for performing control to transmit a signal from the omnidirectional speaker 241. Further, the direction correction processing 202 is a control for correcting the direction angle obtained by the gyro sensor 22 as the direction detection unit when the sound signal transmitted from the omnidirectional speaker 131 of the main body unit 1 is received by the directional microphone 243. More specifically, this is a process for performing control to initialize the direction angle θ held by the integrator of the gyro sensor 22 to the reference angle 0 corresponding to the direction of the main body 1. The control information transmission processing 203 collects various information patterns (bit strings indicating information) generated in the controller 2 such as the direction angle θ output from the gyro sensor 22 and the operation information of the operation unit 21, and indicates the collected information patterns. This is processing for transmitting a sound signal from the omnidirectional speaker 241.

図3は、本体部1のスペクトラム拡散送信処理部141およびコントローラ2のスペクトラム拡散送信処理部251の構成例を示すブロック図である。この例におけるスペクトラム拡散送信処理部は、直接拡散方式によるスペクトラム拡散変調処理を実行するものである。図3において、PN発生器42は、クロック発信機41から与えられるクロックに同期し、+1、−1の羅列であるPNパターンを出力する。拡散変調部43は、このPNパターンとプロセッサ10または20から与えられる情報パターンとの積を出力する。増幅部44は、この拡散変調部43の出力信号を増幅して無指向性スピーカ131または241に与え、PNパターンによるスペクトラム拡散変調処理の施された音信号を無指向性スピーカ131または241から送信させる。   FIG. 3 is a block diagram illustrating a configuration example of the spread spectrum transmission processing unit 141 of the main body 1 and the spread spectrum transmission processing unit 251 of the controller 2. The spread spectrum transmission processing unit in this example executes spread spectrum modulation processing by a direct spreading method. In FIG. 3, the PN generator 42 outputs a PN pattern that is a sequence of +1 and −1 in synchronization with the clock provided from the clock generator 41. The spread modulation unit 43 outputs the product of this PN pattern and the information pattern given from the processor 10 or 20. The amplifying unit 44 amplifies the output signal of the spread modulation unit 43 and supplies the amplified signal to the omnidirectional speaker 131 or 241, and transmits the sound signal subjected to the spread spectrum modulation process using the PN pattern from the omnidirectional speaker 131 or 241. Let

図4は、本体部1のスペクトラム拡散受信処理部142およびコントローラ2のスペクトラム拡散受信処理部252、253の構成例を示すブロック図である。増幅部51は、無指向性マイク132、242または指向性マイク243から出力される音信号を増幅し、拡散復調部52および同期部53に与える。同期部53は、PN発生器531と時間弁別制御回路532とを有する。プロセッサ10または20は、受信対象である音信号のスペクトラム拡散変調処理に用いられているものと同じPNパターンをPN発生器531に発生させる。時間弁別制御回路532は、PN発生器531が出力するPNパターンと増幅部51から出力される音信号との相互相関値が最大となるようにPN発生器531が出力するPNパターンの位相を制御する。拡散復調部52は、PN発生器531が出力するPNパターンと増幅部51から出力される音信号とを乗算することにより、音信号からスペクトラム拡散変調前の情報パターンを復元し、プロセッサ10または20に出力する。   FIG. 4 is a block diagram illustrating a configuration example of the spread spectrum reception processing unit 142 of the main body unit 1 and the spread spectrum reception processing units 252 and 253 of the controller 2. The amplifying unit 51 amplifies the sound signal output from the omnidirectional microphones 132 and 242 or the directional microphone 243, and provides the amplified signal to the spread demodulation unit 52 and the synchronization unit 53. The synchronization unit 53 includes a PN generator 531 and a time discrimination control circuit 532. The processor 10 or 20 causes the PN generator 531 to generate the same PN pattern that is used for the spread spectrum modulation processing of the sound signal to be received. The time discrimination control circuit 532 controls the phase of the PN pattern output from the PN generator 531 so that the cross-correlation value between the PN pattern output from the PN generator 531 and the sound signal output from the amplifier 51 is maximized. To do. The spread demodulator 52 multiplies the PN pattern output from the PN generator 531 by the sound signal output from the amplifier 51, thereby restoring the information pattern before spread spectrum modulation from the sound signal, and the processor 10 or 20 Output to.

本実施形態において、PNパターンは2種類用意されている。コントローラ2のスペクトラム拡散送信処理部251は、本体部1のプロセッサ10宛ての情報パターンに対し、第1のPNパターンを用いたスペクトラム拡散変調処理を施し、その結果得られる音信号を無指向性スピーカ241から放射させる。そして、本体部1のスペクトラム拡散受信処理部142は、無指向性マイク132により受信される音信号に対し、第1のPNパターンを用いたスペクトラム拡散復調処理を施し、情報パターンを復元してプロセッサ10に出力する。一方、本体部1のスペクトラム拡散送信処理部141は、コントローラ2のプロセッサ20宛ての情報パターンに対し、第2のPNパターンを用いたスペクトラム拡散変調処理を施し、その結果得られる音信号を無指向性スピーカ131から放射させる。そして、コントローラ2のスペクトラム拡散受信処理部252および253は、無指向性マイク242および指向性マイク243により各々受信される音信号に対し、第2のPNパターンを用いたスペクトラム拡散復調処理を各々施し、情報パターンを復元してプロセッサ20に出力する。   In this embodiment, two types of PN patterns are prepared. The spread spectrum transmission processing unit 251 of the controller 2 performs a spread spectrum modulation process using the first PN pattern on the information pattern addressed to the processor 10 of the main body unit 1, and the sound signal obtained as a result is transmitted to the omnidirectional speaker. 241 radiates. Then, the spread spectrum reception processing unit 142 of the main body 1 performs a spread spectrum demodulation process using the first PN pattern on the sound signal received by the omnidirectional microphone 132, restores the information pattern, and performs a processor. 10 is output. On the other hand, the spread spectrum transmission processing unit 141 of the main body unit 1 performs spread spectrum modulation processing using the second PN pattern on the information pattern addressed to the processor 20 of the controller 2, and the sound signal obtained as a result is omnidirectional. Radiating from the directional speaker 131. Then, the spread spectrum reception processing units 252 and 253 of the controller 2 perform spread spectrum demodulation processing using the second PN pattern on the sound signals received by the omnidirectional microphone 242 and the directional microphone 243, respectively. The information pattern is restored and output to the processor 20.

ここで、本体部1宛ての情報パターンに第1のPNパターンを用いたスペクトラム拡散変調処理が施され、その結果得られる音信号がコントローラ2の無指向性スピーカ241から放射される場合において、この音信号がゲーム装置の設置された部屋の壁により反射され、無指向性マイク242または指向性マイク243により受信されることもあり得る。しかし、無指向性マイク242および指向性マイク243の後段のスペクトラム拡散受信処理部252および253は、第2のPNパターンを用いたスペクトラム拡散復調処理を行うので、この無指向性スピーカ241からの音信号から情報パターンが復元されることはない。本体部1の無指向性スピーカ131から放射され、部屋の壁による反射を経て、無指向性マイク132により受信される音信号についても同様である。   Here, when the information pattern addressed to the main body 1 is subjected to spread spectrum modulation processing using the first PN pattern, and the resulting sound signal is radiated from the omnidirectional speaker 241 of the controller 2, The sound signal may be reflected by the wall of the room in which the game apparatus is installed and received by the omnidirectional microphone 242 or the directional microphone 243. However, since the spread spectrum reception processing units 252 and 253 following the omnidirectional microphone 242 and the directional microphone 243 perform the spread spectrum demodulation process using the second PN pattern, the sound from the omnidirectional speaker 241 The information pattern is not restored from the signal. The same applies to the sound signal radiated from the omnidirectional speaker 131 of the main body 1 and received by the omnidirectional microphone 132 after being reflected by the wall of the room.

次に本実施形態の動作を説明する。図5は、本実施形態におけるゲーム装置の動作のうち方向角度θの補正に関連した動作を示すフローチャートである。ゲーム装置において、本体部1のプロセッサ10がゲーム用アプリケーションプログラムの実行を開始するとき、制御プログラムは、方向取得処理102の一部である初期化処理をプロセッサ10に実行させる。この初期化処理において、プロセッサ10は、コントローラ2を本体部1に向けてコントローラ2の初期設定ボタンを押下すべき旨のメッセージをモニタ3に表示させる。このメッセージを確認したユーザがコントローラ2を本体部1に向けて操作部21の初期設定ボタンを押下すると、コントローラ2のプロセッサ20は、方向補正処理202を実行し、ジャイロセンサ22の積分器に保持された方向角度θを0に初期化する(ステップS101およびS102)。また、その際に、プロセッサ20は、制御情報送信処理203を実行し、方向角度θの初期化を完了した旨の初期化完了報告の情報パターンをスペクトラム拡散送信処理部251に与える。これにより、この情報パターンにスペクトラム拡散変調処理を施した音信号が無指向性スピーカ241から送信される。   Next, the operation of this embodiment will be described. FIG. 5 is a flowchart showing an operation related to the correction of the direction angle θ among the operations of the game apparatus according to the present embodiment. In the game device, when the processor 10 of the main unit 1 starts executing the game application program, the control program causes the processor 10 to execute an initialization process that is a part of the direction acquisition process 102. In this initialization process, the processor 10 causes the monitor 3 to display a message indicating that the controller 2 is directed to the main body 1 and the initial setting button of the controller 2 should be pressed. When the user confirming this message points the controller 2 toward the main body 1 and presses the initial setting button of the operation unit 21, the processor 20 of the controller 2 executes the direction correction process 202 and holds it in the integrator of the gyro sensor 22. The set direction angle θ is initialized to 0 (steps S101 and S102). At that time, the processor 20 executes the control information transmission process 203 and gives an initialization completion report information pattern to the spread spectrum transmission processing unit 251 to the effect that the initialization of the direction angle θ is completed. As a result, a sound signal obtained by performing spread spectrum modulation processing on this information pattern is transmitted from the omnidirectional speaker 241.

本体部1では、この音信号が無指向性マイク132により受信され、スペクトラム拡散受信処理部142により音信号から初期化完了報告の情報パターンが復元される。プロセッサ10は、初期化完了報告の情報パターンをスペクトラム拡散受信処理部142から受け取ると、ゲーム用アプリケーションプログラムに従ってゲームを進行させる(ステップS103)。   In the main unit 1, the sound signal is received by the omnidirectional microphone 132, and the information pattern of the initialization completion report is restored from the sound signal by the spread spectrum reception processing unit 142. Upon receiving the initialization completion report information pattern from the spread spectrum reception processing unit 142, the processor 10 advances the game according to the game application program (step S103).

コントローラ2では、プロセッサ20がステップS104〜S106の処理を繰り返す。まず、ステップS104において、プロセッサ20は制御情報送信処理203を実行し、ジャイロセンサ22が出力する方向角度θを示すビット列の前にそのビット列が方向角度θを示すものであることを示す識別コードを付加して情報パターンを生成し、この情報パターンをスペクトラム拡散送信処理部251に与える。これにより、この情報パターンにスペクトラム拡散変調処理を施した音信号が無指向性スピーカ241から送信される。   In the controller 2, the processor 20 repeats the processes of steps S104 to S106. First, in step S104, the processor 20 executes a control information transmission process 203, and before the bit string indicating the direction angle θ output from the gyro sensor 22, an identification code indicating that the bit string indicates the direction angle θ. In addition, an information pattern is generated, and this information pattern is given to the spread spectrum transmission processing unit 251. As a result, a sound signal obtained by performing spread spectrum modulation processing on this information pattern is transmitted from the omnidirectional speaker 241.

本体部1では、この音信号が無指向性マイク132により受信され、スペクトラム拡散受信処理部142により音信号から識別コードと方向角度θの情報パターンが復元される。プロセッサ10は、この情報パターンをスペクトラム拡散受信処理部142から受け取ると、方向取得処理102を実行し、情報パターン中の方向角度θをゲーム用アプリケーションプログラムに引き渡す。   In the main unit 1, the sound signal is received by the omnidirectional microphone 132, and the information pattern of the identification code and the direction angle θ is restored from the sound signal by the spread spectrum reception processing unit 142. When the processor 10 receives the information pattern from the spread spectrum reception processing unit 142, the processor 10 executes the direction acquisition processing 102 and delivers the direction angle θ in the information pattern to the game application program.

次にステップS105において、プロセッサ20は、指向性マイク243が本体部1の無指向性スピーカ131からの音信号を受信したか否かを判断する。この判断結果が「NO」である場合、ステップS106に進み、プロセッサ20は、操作部21の操作によりゲーム終了の指令が与えられたか否かを判断する。この判断結果が「NO」である場合、プロセッサ20は、処理をステップS104に戻し、ステップS104〜S106を繰り返す。従って、指向性マイク243が本体部1の無指向性スピーカ131からの音信号を受信せず、かつ、操作部21の操作によりゲーム終了の指令が与えられない場合には、ステップS104〜S106が繰り返され、ジャイロセンサ22からの方向角度θの取得および本体部1への方向角度θの送信が繰り返される。   Next, in step S <b> 105, the processor 20 determines whether or not the directional microphone 243 has received a sound signal from the omnidirectional speaker 131 of the main body 1. When the determination result is “NO”, the process proceeds to step S <b> 106, and the processor 20 determines whether or not a game end command is given by the operation of the operation unit 21. If the determination result is “NO”, the processor 20 returns the process to step S104 and repeats steps S104 to S106. Therefore, when the directional microphone 243 does not receive the sound signal from the omnidirectional speaker 131 of the main body 1 and the game end command is not given by the operation of the operation unit 21, steps S104 to S106 are performed. The acquisition of the direction angle θ from the gyro sensor 22 and the transmission of the direction angle θ to the main body 1 are repeated.

コントローラ2が本体部1の方向を向き、本体部1の無指向性スピーカ131から送信された音信号がコントローラ2の指向性マイク243によって受信されると、ステップS105の判断結果が「YES」となる。この結果、コントローラ2におけるプロセッサ20は、方向補正処理202を実行し、ジャイロセンサ22の積分器が保持している方向角度θを0に初期化する(ステップS107)。そして、プロセッサ20は処理をステップS104に戻す。このように本実施形態におけるコントローラ2では、本体部1の無指向性スピーカ131から送信される音信号が指向性マイク243によって受信される度に、ジャイロセンサ22の積分器が保持している方向角度θを0に初期化する処理が行われる。   When the controller 2 faces the main body 1 and the sound signal transmitted from the omnidirectional speaker 131 of the main body 1 is received by the directional microphone 243 of the controller 2, the determination result in step S105 is “YES”. Become. As a result, the processor 20 in the controller 2 executes the direction correction process 202, and initializes the direction angle θ held by the integrator of the gyro sensor 22 to 0 (step S107). Then, the processor 20 returns the process to step S104. As described above, in the controller 2 according to the present embodiment, every time a sound signal transmitted from the omnidirectional speaker 131 of the main body 1 is received by the directional microphone 243, the direction held by the integrator of the gyro sensor 22. A process for initializing the angle θ to 0 is performed.

そして、ユーザがコントローラ2の操作部21を操作してゲームの終了の指令を与えると、コントローラ2のプロセッサ20は、このゲーム終了の指令を検知し、ゲーム終了の指令を示す識別コードを情報パターンとしてスペクトラム拡散送信処理部251へ与え、このゲーム終了の指令を示す識別コードにスペクトラム拡散変調処理を施した音信号を無指向性スピーカ241から送信させ、処理を終了する(ステップS106)。本体部1では、この音信号が無指向性マイク132により受信され、ゲーム終了の指令を示す識別コードが音信号から復調される。この復調された識別コードに従い、プロサッサ10は、ゲーム用アプリケーションプログラムの実行を終了する。
以上が本実施形態における方向角度θの補正に関連した動作の詳細である。
When the user operates the operation unit 21 of the controller 2 to give an instruction to end the game, the processor 20 of the controller 2 detects the instruction to end the game and displays an identification code indicating the instruction to end the game as an information pattern. Is transmitted to the spread spectrum transmission processing unit 251, and the sound signal obtained by performing the spread spectrum modulation process on the identification code indicating the game end command is transmitted from the omnidirectional speaker 241 and the process is terminated (step S106). In the main body 1, this sound signal is received by the omnidirectional microphone 132, and an identification code indicating a game end command is demodulated from the sound signal. In accordance with the demodulated identification code, the processor 10 ends the execution of the game application program.
The above is the details of the operation related to the correction of the direction angle θ in the present embodiment.

図6(a)は、本実施形態において本体部1のプロセッサ10が実行する距離取得処理101の処理内容を示すフローチャート、図6(b)はコントローラ2のプロセッサ20が実行する測定補助処理201の処理内容を示すフローチャートである。また、図7は、本実施形態における本体部1およびコントローラ2間の距離測定のための音信号の授受の様子を示すタイムチャートである。以下、これらの図を参照し、本実施形態におけるゲーム装置の動作のうち距離Dの測定に関連した動作を説明する。   FIG. 6A is a flowchart showing the processing contents of the distance acquisition processing 101 executed by the processor 10 of the main body 1 in this embodiment, and FIG. 6B is the measurement auxiliary processing 201 executed by the processor 20 of the controller 2. It is a flowchart which shows the processing content. FIG. 7 is a time chart showing how sound signals are transmitted and received for measuring the distance between the main body 1 and the controller 2 in the present embodiment. Hereinafter, operations related to the measurement of the distance D among the operations of the game apparatus in the present embodiment will be described with reference to these drawings.

図6(a)に示すように、本体部1のプロセッサ10は、距離取得処理101において、まず、音信号送信処理を実行する(ステップS201)。この音信号送信処理では、送信対象の音信号が距離測定用音信号であることを示す識別コードからなる情報パターンをスペクトラム拡散送信処理部141に引き渡す。これにより、この識別コードにスペクトラム拡散変調処理を施した距離測定用音信号が無指向性スピーカ131から送信される。この距離測定用音信号を無指向性スピーカ131から送信させたプロセッサ10は、その後、距離測定用音信号を受信した旨の受信報告音信号がコントローラ2から受信されたか否かの判断を繰り返す(ステップS202)。   As shown in FIG. 6A, in the distance acquisition process 101, the processor 10 of the main body 1 first executes a sound signal transmission process (step S201). In this sound signal transmission process, an information pattern including an identification code indicating that the sound signal to be transmitted is a distance measurement sound signal is delivered to the spread spectrum transmission processing unit 141. Thus, a distance measurement sound signal obtained by performing spread spectrum modulation processing on the identification code is transmitted from the omnidirectional speaker 131. The processor 10 that has transmitted the distance measurement sound signal from the omnidirectional speaker 131 thereafter repeatedly determines whether or not the reception report sound signal indicating that the distance measurement sound signal has been received is received from the controller 2 ( Step S202).

一方、コントローラ2のプロセッサ20は、図6(b)に示すように、測定補助処理201において、本体部1側から距離測定用音信号を受信したか否かの判断を繰り返している(ステップS301)。そして、距離測定用音信号が無指向性マイク242により受信され、スペクトラム拡散受信処理部252により距離測定用音信号の識別コードが復元されると、この距離測定用音信号の識別コードがプロセッサ20に引き渡される。この結果、ステップS301の判断結果が「YES」となり、プロセッサ20は、内蔵のタイマに所定時間の計時を開始させる(ステップS302)。次に、プロセッサ20は、距離測定用音信号の受信報告であることを示す識別コードを情報パターンとしてスペクトラム拡散送信処理部251に引き渡し、この受信報告の識別コードにスペクトラム拡散変調処理を施した受信報告音信号を無指向性スピーカ241から送信させる(ステップS303)。そして、プロセッサ20は、内蔵のタイマによる計時が終了したか否かの判断を繰り返す(ステップS304)。   On the other hand, as shown in FIG. 6B, the processor 20 of the controller 2 repeatedly determines whether or not a distance measurement sound signal has been received from the main body 1 side in the measurement auxiliary process 201 (step S301). ). Then, when the distance measurement sound signal is received by the omnidirectional microphone 242, and the identification code of the distance measurement sound signal is restored by the spread spectrum reception processing unit 252, the identification code of the distance measurement sound signal is converted to the processor 20. To be handed over. As a result, the determination result in step S301 is “YES”, and the processor 20 causes the built-in timer to start measuring a predetermined time (step S302). Next, the processor 20 delivers an identification code indicating that it is a reception report of a distance measurement sound signal as an information pattern to the spread spectrum transmission processing unit 251, and receives the identification code of the reception report subjected to spread spectrum modulation processing. The report sound signal is transmitted from the omnidirectional speaker 241 (step S303). Then, the processor 20 repeats the determination of whether or not the time measurement by the built-in timer has ended (step S304).

そして、タイマによる計時が終了し、タイムアップとなると、ステップS304の判断結果が「YES」となる。これにより、プロセッサ20は、タイマをリセットする(ステップS305)。次にプロセッサ20は、操作部21の操作によりゲーム終了の指令が与えられたか否かを判断する(ステップS306)。この判断結果が「NO」である場合、プロセッサ20は、処理をステップS301に戻し、本体部1側から距離測定用音信号を受信したか否かの判断を繰り返す。   When the time measurement by the timer ends and the time is up, the determination result in step S304 is “YES”. Thereby, the processor 20 resets the timer (step S305). Next, the processor 20 determines whether or not an instruction to end the game is given by the operation of the operation unit 21 (step S306). If the determination result is “NO”, the processor 20 returns the process to step S301 and repeats the determination of whether or not the distance measurement sound signal has been received from the main body 1 side.

ところで、コントローラ2が距離測定用音信号を受信し、プロセッサ20が内蔵のタイマに計時を開始させた直後、図7に示すように、後続の距離測定用音信号がコントローラ2に到達する場合がある。しかし、内蔵のタイマによる計時が行われている期間は、ステップS304の判断結果が「NO」となって、ステップS301〜S303の処理が実行されないため、コントローラ2の無指向性マイク242によって距離測定用音信号が受信されたとしても、その距離測定用音信号は無視される。このように、距離測定用音信号が最初に受信された後、一定期間に亙って後続の距離測定用音信号を無視するようにしているのは、次の理由によるものである。すなわち、最初に受信された距離測定用音信号は本体部1からコントローラ2に直接届いた直接波であって、本体部1およびコントローラ2間の距離Dの測定に用いるのに適しているのに対し、後続の距離測定用音信号は、本体部1から送信された後、部屋の壁による反射を経てコントローラ2に届いた反射波であり、距離Dの測定に用いるのに適さないからである。   By the way, immediately after the controller 2 receives the distance measurement sound signal and the processor 20 causes the built-in timer to start timing, the subsequent distance measurement sound signal may reach the controller 2 as shown in FIG. is there. However, during the period when the time is measured by the built-in timer, the determination result of step S304 is “NO”, and the processing of steps S301 to S303 is not executed. Therefore, the distance measurement is performed by the omnidirectional microphone 242 of the controller 2. Even if the sound signal is received, the sound signal for distance measurement is ignored. The reason why the distance measurement sound signal is ignored for a certain period after the distance measurement sound signal is first received is as follows. That is, the distance measurement sound signal received first is a direct wave directly reaching the controller 2 from the main body 1 and is suitable for use in measuring the distance D between the main body 1 and the controller 2. On the other hand, the subsequent distance measurement sound signal is a reflected wave that reaches the controller 2 after being transmitted from the main body 1 and reflected by the wall of the room, and is not suitable for use in the measurement of the distance D. .

さて、既に述べたように、距離測定用音信号を無指向性スピーカ131から送信させたプロセッサ10は、図6(a)に示すように、距離測定用音信号を受信した旨の受信報告音信号がコントローラ2から受信されたか否かの判断を繰り返している(ステップS202)。コントローラ2から受信報告音信号が受信されると、このステップS202の判断結果が「YES」となる。これによりプロセッサ10は、内蔵のタイマに所定時間の計時を開始させる(ステップS203)。次にプロセッサ10は、先に距離測定用音信号の送信を行ってから受信報告音信号の受信(ステップS202=「YES」)が確認されるまでの時間a(図7参照)に基づき、本体部1およびコントローラ2間の距離Dを算出する(ステップS204)。より具体的には、時間aからコントローラ2側での音信号の処理の所要時間を差し引いたものを音速により乗算することにより距離Dを算出する。この距離Dは、距離取得処理101からゲーム用アプリケーションプログラムに引き渡される。次にプロセッサ10は、距離測定用音信号を無指向性スピーカ131から送信させる(ステップS205)。そして、プロセッサ10は、その後、タイマによる計時が終了したか否かの判断を繰り返す(ステップS206)。   As described above, the processor 10 that has transmitted the distance measurement sound signal from the omnidirectional speaker 131, as shown in FIG. 6A, receives the reception report sound indicating that the distance measurement sound signal has been received. The determination as to whether or not a signal has been received from the controller 2 is repeated (step S202). When a reception report sound signal is received from the controller 2, the determination result in step S202 is “YES”. As a result, the processor 10 causes the built-in timer to start measuring a predetermined time (step S203). Next, based on time a (see FIG. 7) from the first transmission of the distance measurement sound signal to the confirmation of reception of the reception report sound signal (step S202 = “YES”), the processor 10 A distance D between the unit 1 and the controller 2 is calculated (step S204). More specifically, the distance D is calculated by multiplying the time a by the time required to process the sound signal on the controller 2 side by the sound speed. This distance D is delivered from the distance acquisition process 101 to the game application program. Next, the processor 10 transmits a sound signal for distance measurement from the omnidirectional speaker 131 (step S205). Thereafter, the processor 10 repeats the determination of whether or not the time measurement by the timer has ended (step S206).

そして、タイマによる計時が終了し、タイムアップとなると、ステップS206の判断結果が「YES」となる。これにより、プロセッサ10は、タイマをリセットする(ステップS207)。次にプロセッサ10は、コントローラ2からゲーム終了の指令が受信されたか否かを判断する(ステップS208)。この判断結果が「NO」である場合、プロセッサ10は、処理をステップS202に戻し、コントローラ2側から受信報告音信号を受信したか否かの判断を繰り返す。   Then, when the time measurement by the timer ends and the time is up, the determination result of step S206 is “YES”. As a result, the processor 10 resets the timer (step S207). Next, the processor 10 determines whether or not a game end command is received from the controller 2 (step S208). When the determination result is “NO”, the processor 10 returns the process to step S202 and repeats the determination of whether or not the reception report sound signal is received from the controller 2 side.

以上説明した本体部1側の処理において、本体部1が受信報告音信号を受信し、プロセッサ10が内蔵のタイマに計時を開始させた直後、図7に示すように、後続の受信報告音信号が本体部1に到達する場合がある。しかし、内蔵のタイマによる計時が行われている期間は、ステップS206の判断結果が「NO」となって、ステップS202〜S205の処理が実行されないため、本体部1の無指向性マイク132によって受信報告音信号が受信されたとしても、その受信報告音信号は無視される。これは、既に説明したコントローラ2側の処理と同様、コントローラ2側から受信される受信報告音信号のうち反射波を無視し、直接波のみに基づいて距離測定を行うためである。   In the processing on the main body unit 1 side described above, immediately after the main body unit 1 receives the reception report sound signal and the processor 10 starts the timing of the built-in timer, as shown in FIG. May reach the main body 1 in some cases. However, during the period when the time is measured by the built-in timer, the determination result of step S206 is “NO”, and the processing of steps S202 to S205 is not executed. Even if the report sound signal is received, the received report sound signal is ignored. This is because, similar to the processing on the controller 2 side already described, the reflected wave is ignored in the received report sound signal received from the controller 2 side, and the distance is measured based only on the direct wave.

ユーザがコントローラ2の操作部21を操作して、ゲームの終了の指令を与えると、コントローラ2では、ステップS306の判断結果が「YES」となる。これによりプロセッサ20は、ゲーム終了の指令を示す識別コードを情報パターンとしてスペクトラム拡散送信処理部251へ与え、このゲーム終了の指令を示す識別コードにスペクトラム拡散変調処理を施した音信号を無指向性スピーカ241から送信させ、測定補助処理201を終了する。本体部1では、この音信号が無指向性マイク132により受信され、ゲーム終了の指令を示す識別コードが音信号から復調される。これにより、ステップS208の判断結果が「YES」となり、プロサッサ10は、距離取得処理101を終了するとともに、ゲーム用アプリケーションプログラムの実行を終了する。   When the user operates the operation unit 21 of the controller 2 to give an instruction to end the game, the controller 2 determines “YES” in step S306. Thereby, the processor 20 gives an identification code indicating a game end command to the spread spectrum transmission processing unit 251 as an information pattern, and the sound signal obtained by performing the spread spectrum modulation processing on the identification code indicating the game end command is non-directional. Transmitting from the speaker 241, the measurement auxiliary process 201 is terminated. In the main body 1, this sound signal is received by the omnidirectional microphone 132, and an identification code indicating a game end command is demodulated from the sound signal. As a result, the determination result in step S208 is “YES”, and the processor 10 ends the distance acquisition process 101 and ends the execution of the game application program.

以上説明した距離Dの測定に関連した動作において、本体部1およびコントローラ2におけるタイマの計時時間は、例えば次のようにして定められる。まず、本体部1およびコントローラ2間の距離Dが1m〜4mの範囲であり、音速が340m/secであるとすると、図7に示す往復時間aは、2×1/340≒0.006sec〜2×4/340≒0.024secの範囲となる。この場合、コントローラ2が距離測定用音信号を受信してから次に再び距離測定用音信号を受信するまでに最短でも0.006secは掛かるので、コントローラ2ではタイマの計時時間を0.006secとし、距離測定用音信号を受信してから0.006secの間は後続の距離測定用音信号を反射波とみなして無視する。本体部1側も同様であり、タイマの計時時間を0.006secとし、受信報告音信号を受信してから0.006secの間は後続の受信報告音信号を反射波とみなして無視する。このようにすることで、反射波の影響を回避して、音信号の往復時間aを求め、本体部1およびコントローラ2間の距離Dを正確に求めることができる。   In the operation related to the measurement of the distance D described above, the timer time in the main body 1 and the controller 2 is determined as follows, for example. First, assuming that the distance D between the main body 1 and the controller 2 is in the range of 1 m to 4 m and the sound speed is 340 m / sec, the round trip time a shown in FIG. 7 is 2 × 1 / 340≈0.006 sec. The range is 2 × 4 / 340≈0.024 sec. In this case, since it takes at least 0.006 sec from the time the controller 2 receives the distance measuring sound signal to the next time the distance measuring sound signal is received again, the controller 2 sets the timer time to 0.006 sec. During the period of 0.006 seconds after receiving the distance measurement sound signal, the subsequent distance measurement sound signal is regarded as a reflected wave and ignored. The same applies to the main body 1 side, and the time measured by the timer is set to 0.006 sec. During the period of 0.006 sec after the reception report sound signal is received, the subsequent reception report sound signal is regarded as a reflected wave and ignored. By doing in this way, the influence of a reflected wave can be avoided, the round-trip time a of a sound signal can be calculated | required, and the distance D between the main-body part 1 and the controller 2 can be calculated | required correctly.

本実施形態において、コントローラ2は、本体部1からの距離測定用音信号を受信すると、直ちに受信報告音信号を送信し、本体部1は、コントローラ2からの受信報告音信号を受信すると、直ちに往復時間aを求めて距離Dを算出し、距離測定用音信号を送信した。このため、本体部1における距離測定用音信号の送信間隔、すなわち、距離Dの測定周期であるサンプリング周期は、本体部1およびコントローラ2間の音信号の往復時間aとなり、十分に短いサンプリング周期で距離Dの測定を行うことが可能になる。しかし、コントローラ2では、本体部1からの距離測定用音信号を受信した後、所定時間だけ待って受信報告音信号を送信するようにしてもよい。この場合、距離Dのサンプリング周期は長くなるが、タイマの計時時間を長くし、反射波の影響を確実に回避することができるという利点がある。   In the present embodiment, when the controller 2 receives the distance measurement sound signal from the main body 1, the controller 2 immediately transmits a reception report sound signal, and when the main body 1 receives the reception report sound signal from the controller 2, immediately. The distance D was calculated by obtaining the round-trip time a, and a distance measurement sound signal was transmitted. For this reason, the transmission interval of the distance measurement sound signal in the main body 1, that is, the sampling period that is the measurement period of the distance D is the round-trip time a of the sound signal between the main body 1 and the controller 2, and a sufficiently short sampling period Thus, the distance D can be measured. However, the controller 2 may transmit the reception report sound signal after waiting for a predetermined time after receiving the distance measurement sound signal from the main body 1. In this case, although the sampling period of the distance D becomes long, there is an advantage that the time count of the timer is lengthened and the influence of the reflected wave can be surely avoided.

以上説明したように、本実施形態によれば、本体部1の無指向性スピーカ131から放射される音信号がコントローラ2の指向性マイク243によって受信されたときに、コントローラ2においてジャイロセンサ22の積分器が保持する方向角度θを初期値に補正するようにしたので、時間経過に伴って方向角度θの算出結果が不正確になるのを防止し、正確な方向角度θを求めてゲームの進行の制御に用いることができる。   As described above, according to the present embodiment, when the sound signal radiated from the omnidirectional speaker 131 of the main body 1 is received by the directional microphone 243 of the controller 2, the controller 2 detects the gyro sensor 22. Since the direction angle θ held by the integrator is corrected to the initial value, the calculation result of the direction angle θ is prevented from becoming inaccurate with the passage of time, and the accurate direction angle θ is obtained to obtain the game Can be used to control progress.

また、本実施形態によれば、本体部1およびコントローラ2間で音信号を往復させ、その往復時間を測定するようにしたので、この往復時間の測定結果に基づいて本体部1およびコントローラ2間の距離Dを算出し、ゲームの進行の制御に用いることができる。   In addition, according to the present embodiment, since the sound signal is reciprocated between the main body 1 and the controller 2 and the reciprocation time is measured, between the main body 1 and the controller 2 based on the measurement result of the reciprocation time. Distance D can be calculated and used to control the progress of the game.

また、本実施形態では、音信号を利用した距離Dの測定の際、コントローラ2側では、本体部1側からの距離測定用音信号が受信された場合、その後の所定時間内に受信される距離測定用音信号は反射波として無視し、本体部1側では、コントローラ2側からの受信報告音信号が受信された場合、その後の所定時間内に受信される受信報告音信号は反射波として無視するようにしたので、反射波の影響を回避し、直接音である音信号の往復時間を求め、距離Dを正確に算出することができる。   In this embodiment, when measuring the distance D using the sound signal, the controller 2 side receives the distance measurement sound signal from the main body 1 side within a predetermined time thereafter. The distance measurement sound signal is ignored as a reflected wave, and when the reception report sound signal from the controller 2 side is received on the main body 1 side, the reception report sound signal received within a predetermined time after that is received as the reflection wave. Since it is ignored, the influence of the reflected wave can be avoided, the round trip time of the sound signal that is a direct sound can be obtained, and the distance D can be accurately calculated.

また、本実施形態では、赤外線や電磁波などの無線送受信手段を利用することなく、音信号送受信部13および24を用いて本体部1およびコントローラ2間の通信を行うようにしたので、本体部1およびコントローラ2間の通信手段を安価にすることができる。   Further, in the present embodiment, the communication between the main body 1 and the controller 2 is performed using the sound signal transmission / reception units 13 and 24 without using wireless transmission / reception means such as infrared rays and electromagnetic waves. And the communication means between the controllers 2 can be made inexpensive.

また、本実施形態では、本体部1およびコントローラ2間の通信における情報の担い手として、情報パターンにスペクトラム拡散変調を施した音信号を採用したので、オーディオ帯域内の特定の帯域に音信号のスペクトラムが集中するのを避けて、音信号のスペクトラムをオーディオ帯域全体に拡散させ、耳障りな騒音を発生させることなく、本体部1およびコントローラ2間の音信号の授受を行うことができる。   In the present embodiment, since a sound signal obtained by performing spread spectrum modulation on the information pattern is adopted as a bearer of information in communication between the main body unit 1 and the controller 2, the spectrum of the sound signal in a specific band within the audio band is adopted. The sound signal can be transmitted and received between the main body 1 and the controller 2 without causing unpleasant noise by spreading the spectrum of the sound signal over the entire audio band.

以上、この発明の一実施形態について説明したが、この発明には他にも実施形態があり得る。例えば次の通りである。   Although one embodiment of the present invention has been described above, the present invention may have other embodiments. For example:

(1)上記実施形態では、本体部1およびコントローラ2間において音の指向性伝送を行わせるために、コントローラ2に指向性マイク243を設けた。しかし、コントローラ2に指向性スピーカを設け、コントローラ2から本体部1への音の指向性伝送が行われたときに、コントローラ2の方向角度θの補正のための制御を行うようにしてもよい。図8および図9は各々その例を示すものである。 (1) In the embodiment described above, the directional microphone 243 is provided in the controller 2 in order to perform sound directional transmission between the main body 1 and the controller 2. However, the controller 2 may be provided with a directional speaker, and control for correcting the direction angle θ of the controller 2 may be performed when sound directivity transmission from the controller 2 to the main body 1 is performed. . 8 and 9 each show an example thereof.

図8に示す例において、コントローラ2に設けられた指向性スピーカ244は、常にコントローラ2から見て固定された方向に音信号を送信している。本体部1は、無指向性マイク132によりこの指向性スピーカ244からの音信号を受信すると、その受信報告としての音信号を無指向性スピーカ131により送信する。コントローラ2は、この受信報告としての音信号を無指向性マイク241により受信すると、ジャイロセンサ22(図1参照)の積分器が保持している方向角度θを基準角度0に初期化する。この態様においても、コントローラ2が本体部1の方向を向く毎に、コントローラ2の指向性スピーカ244からの音信号が本体部1の無指向性マイク132により受信され、コントローラ2において方向角度θの補正が行われる。従って、上記実施形態と同様な効果が得られる。   In the example illustrated in FIG. 8, the directional speaker 244 provided in the controller 2 always transmits a sound signal in a fixed direction as viewed from the controller 2. When the body unit 1 receives the sound signal from the directional speaker 244 by the omnidirectional microphone 132, the body unit 1 transmits the sound signal as the reception report by the omnidirectional speaker 131. When the controller 2 receives the sound signal as the reception report by the omnidirectional microphone 241, the controller 2 initializes the direction angle θ held by the integrator of the gyro sensor 22 (see FIG. 1) to the reference angle 0. Also in this aspect, every time the controller 2 faces the direction of the main body 1, the sound signal from the directional speaker 244 of the controller 2 is received by the omnidirectional microphone 132 of the main body 1, and the controller 2 has the direction angle θ. Correction is performed. Therefore, the same effect as the above embodiment can be obtained.

図9に示す例においても、指向性スピーカ244は、常にコントローラ2から見て固定された方向に音信号を送信している。また、コントローラ2は、方向角度θを示す音信号を無指向性スピーカ241により定期的に送信している。そして、本体部1では無指向性マイク132により受信した音信号から方向角度θを求め、この方向角度θからオフセットαを減算する補正を行い、方向角度θ−αをゲームの進行の制御に利用している。そして、本体部1は、無指向性マイク132によりコントローラ2の指向性スピーカ244からの音信号を受信すると、その直後に無指向性マイク132により受信される音信号から求めた方向角度θ(例えばθxとする)をオフセットαとし、以後は、無指向性マイク132により受信される音信号から求めた方向角度θからオフセットα=θxを減算した方向角度θ−α=θ−θxをゲームの進行の制御に利用する。この態様においても、上記実施形態と同様な効果が得られる。   Also in the example illustrated in FIG. 9, the directional speaker 244 always transmits a sound signal in a fixed direction when viewed from the controller 2. In addition, the controller 2 periodically transmits a sound signal indicating the direction angle θ through the omnidirectional speaker 241. Then, the main body 1 obtains the direction angle θ from the sound signal received by the omnidirectional microphone 132, performs correction by subtracting the offset α from the direction angle θ, and uses the direction angle θ-α for controlling the progress of the game. is doing. Then, when the body unit 1 receives the sound signal from the directional speaker 244 of the controller 2 by the omnidirectional microphone 132, the direction angle θ (for example, obtained from the sound signal received by the omnidirectional microphone 132 immediately after that) is set as an offset α, and thereafter, the direction angle θ−α = θ−θx obtained by subtracting the offset α = θx from the direction angle θ obtained from the sound signal received by the omnidirectional microphone 132 progresses the game. It is used for control. Also in this aspect, the same effect as the above embodiment can be obtained.

(2)上記実施形態では、距離Dの測定を行うサンプル周期を、音信号が本体部1およびコントローラ2間を往復する時間aよりも短くすることができない。そこで、本体部1は、無指向性スピーカ131により複数種類の距離測定用音信号を巡回的に送信し、コントローラ2は、無指向性マイク242により複数種類の距離測定用音信号を順次受信するのに応じて、複数種類の距離測定用音信号に各々対応した複数種類の受信報告音信号を無指向性スピーカ241により順次送信し、本体部1は、無指向性マイク132により複数種類の受信報告音信号を順次受信し、各種類の受信報告音信号を受信する毎に、当該受信方向音信号に対応した種類の距離測定用音信号を送信してから当該受信報告音信号を受信するまでの時間に基づいて、本体部1およびコントローラ2間の距離Dを算出するようにしてもよい。 (2) In the above embodiment, the sample period for measuring the distance D cannot be made shorter than the time a during which the sound signal reciprocates between the main body 1 and the controller 2. Therefore, the main body 1 cyclically transmits a plurality of types of distance measurement sound signals through the omnidirectional speaker 131, and the controller 2 sequentially receives the plurality of types of distance measurement sound signals through the omnidirectional microphone 242. Accordingly, a plurality of types of reception report sound signals respectively corresponding to a plurality of types of distance measurement sound signals are sequentially transmitted by the omnidirectional speaker 241, and the main body unit 1 receives a plurality of types of reception signals by the omnidirectional microphone 132. Every time a report sound signal is received and each type of reception report sound signal is received, a distance measurement sound signal corresponding to the reception direction sound signal is transmitted until the reception report sound signal is received. The distance D between the main body 1 and the controller 2 may be calculated based on the above time.

この態様によれば、本体部1およびコントローラ2間の音信号の往復時間aよりも短い時間間隔で、例えば互い異なる情報パターンにスペクトラム拡散変調処理を施して生成した距離測定用音信号A、B、Cを順次送信した場合において、コントローラ2は、距離測定用音信号Aを受信した後、これに対応した受信報告信号A’を送信し、それから例えば時間aの間は、反射波である可能性のある距離測定用音信号Aのみを無視すればよい。また、コントローラ2は、距離測定用音信号Bを受信した後、これに対応した受信報告信号B’を送信し、それから例えば時間aの間は、反射波である可能性のある距離測定用音信号Bのみを無視すればよい。また、コントローラ2は、距離測定用音信号Cを受信した後、これに対応した受信報告信号C’を送信し、それから例えば時間aの間は、反射波である可能性のある距離測定用音信号Cのみを無視すればよい。   According to this aspect, the distance measurement sound signals A and B generated by performing spread spectrum modulation processing on different information patterns, for example, at a time interval shorter than the round-trip time a of the sound signal between the main body 1 and the controller 2. , C in sequence, the controller 2 receives the distance measurement sound signal A and then transmits a reception report signal A ′ corresponding thereto, and then, for example, during time a, it may be a reflected wave. Only the sound signal A for measuring distance that has a certain characteristic should be ignored. Further, after receiving the distance measurement sound signal B, the controller 2 transmits a reception report signal B ′ corresponding to the distance measurement sound signal B, and then for the time a, for example, the distance measurement sound that may be a reflected wave Only signal B has to be ignored. In addition, after receiving the distance measurement sound signal C, the controller 2 transmits a reception report signal C ′ corresponding to the distance measurement sound signal C. Then, for example, during the time a, the distance measurement sound that may be a reflected wave is transmitted. Only the signal C has to be ignored.

一方、本体部1は、受信報告音信号A’を受信した場合、先行する距離測定用音信号Aの送信から受信報告信号A’の受信までの時間に基づいて距離Dを算出するとともに距離測定用音信号Aを送信し、それから例えば時間aの間は、反射波である可能性のある受信方向音信号A’のみを無視すればよい。また、本体部1は、受信報告音信号B’を受信した場合、先行する距離測定用音信号Bの送信から受信報告信号B’の受信までの時間に基づいて距離Dを算出するとともに距離測定用音信号Bを送信し、それから例えば時間aの間は、反射波である可能性のある受信方向音信号B’のみを無視すればよい。また、本体部1は、受信報告音信号C’を受信した場合、先行する距離測定用音信号Cの送信から受信報告信号C’の受信までの時間に基づいて距離Dを算出するとともに距離測定用音信号Cを送信し、それから例えば時間aの間は、反射波である可能性のある受信方向音信号C’のみを無視すればよい。この態様によれば、反射波の影響を回避しつつ、音信号の往復時間aよりも短い時間間隔で本体部1およびコントローラ2間の距離Dを測定することができる。なお、互いに異なった複数種類の距離測定用音信号および受信報告音信号を得るための方法としては、例えば音信号をスペクトラム拡散変調処理により得る際の情報パターンを変える方法の他、PNパターンを変える方法を用いてもよい。   On the other hand, when receiving the reception report sound signal A ′, the main body 1 calculates the distance D and measures the distance based on the time from the transmission of the preceding distance measurement sound signal A to the reception of the reception report signal A ′. For example, only the reception direction sound signal A ′, which may be a reflected wave, may be ignored during the time a after transmitting the sound signal A. Further, when receiving the reception report sound signal B ′, the main body 1 calculates the distance D based on the time from the transmission of the preceding distance measurement sound signal B to the reception of the reception report signal B ′ and the distance measurement. For example, only the reception direction sound signal B ′, which may be a reflected wave, may be ignored during the time a after transmitting the sound signal B. In addition, when receiving the reception report sound signal C ′, the main body 1 calculates the distance D based on the time from the transmission of the preceding distance measurement sound signal C to the reception of the reception report signal C ′ and the distance measurement. For example, during the time a, only the reception direction sound signal C ′ that may be a reflected wave may be ignored. According to this aspect, it is possible to measure the distance D between the main body 1 and the controller 2 at a time interval shorter than the round-trip time a of the sound signal while avoiding the influence of the reflected wave. As a method for obtaining a plurality of different distance measurement sound signals and reception report sound signals, for example, a method of changing an PN pattern in addition to a method of changing an information pattern when a sound signal is obtained by spread spectrum modulation processing. A method may be used.

(3)上記実施形態において、音信号送受信部13および24の他に、本体部1およびコントローラ2間の無線通信手段を追加し、コントローラ2の方向角度θの補正と、本体部1およびコントローラ2間の距離Dの測定のためにのみ音信号送受信部13および24を利用し、それ以外の本体部1およびコントローラ2間の通信は追加した無線通信手段により行うようにしてもよい。 (3) In the above embodiment, in addition to the sound signal transmitting / receiving units 13 and 24, wireless communication means between the main unit 1 and the controller 2 is added to correct the direction angle θ of the controller 2, and the main unit 1 and the controller 2 The sound signal transmission / reception units 13 and 24 may be used only for measuring the distance D between them, and other communication between the main body unit 1 and the controller 2 may be performed by an added wireless communication unit.

(4)上記実施形態では、スペクトラム拡散変調処理が施された音信号を本体部1およびコントローラ2間で送受信させ、コントローラ2の方向角度θの補正と、本体部1およびコントローラ2間の距離Dの測定を行ったが、他の変調方法による変調処理が施された音信号あるいは何も変調処理が施されていない音を本体部1およびコントローラ2間で送受信させ、コントローラ2の方向角度θの補正と、本体部1およびコントローラ2間の距離Dの測定を行うようにしてもよい。 (4) In the above embodiment, the sound signal that has been subjected to the spread spectrum modulation process is transmitted and received between the main body 1 and the controller 2 to correct the direction angle θ of the controller 2 and the distance D between the main body 1 and the controller 2. The sound signal that has been subjected to modulation processing by another modulation method or the sound that has not been subjected to any modulation processing is transmitted and received between the main body 1 and the controller 2, and the direction angle θ of the controller 2 is determined. You may make it perform correction | amendment and the measurement of the distance D between the main-body part 1 and the controller 2. FIG.

この発明の一実施形態であるゲーム装置の構成を示すブロック図であり、特に同ゲーム装置の本体部1の構成を詳細に示すブロック図である。It is a block diagram which shows the structure of the game device which is one Embodiment of this invention, and is a block diagram which shows the structure of the main-body part 1 of the game device in detail especially. 同ゲーム装置の構成を示すブロック図であり、特に同ゲーム装置のコントローラ2の構成を詳細に示すブロック図である。It is a block diagram which shows the structure of the game device, and is a block diagram which shows especially the structure of the controller 2 of the game device in detail. 同実施形態において用いられているスペクトラム拡散送信処理部141、251の構成例を示すブロック図である。It is a block diagram which shows the structural example of the spread-spectrum transmission process part 141,251 used in the embodiment. 同実施形態において用いられているスペクトラム拡散受信処理部142、252、253の構成例を示すブロック図である。It is a block diagram which shows the structural example of the spread spectrum reception process part 142,252,253 used in the embodiment. 同ゲーム装置の動作のうち方向角度θの補正に関連した動作を示すフローチャートである。It is a flowchart which shows the operation | movement relevant to correction | amendment of direction angle (theta) among the operation | movement of the game device. (a)は、同ゲーム装置の本体部1のプロセッサ10が実行する距離取得処理101の処理内容を示すフローチャート、(b)はコントローラ2のプロセッサ20が実行する測定補助処理201の処理内容を示すフローチャートである。(A) is a flowchart which shows the processing content of the distance acquisition process 101 which the processor 10 of the main-body part 1 of the game device performs, (b) shows the processing content of the measurement auxiliary | assistance process 201 which the processor 20 of the controller 2 performs. It is a flowchart. 同ゲーム装置における本体部1およびコントローラ2間の距離測定のための音信号の授受の様子を示すタイムチャートである。4 is a time chart showing how sound signals are transmitted and received for measuring a distance between a main body 1 and a controller 2 in the game device. 同ゲーム装置において本体部1およびコントローラ2間において音の指向性伝送を成立させるための他の構成例を示す図である。It is a figure which shows the other structural example for establishing directional transmission of the sound between the main-body part 1 and the controller 2 in the same game device. 同ゲーム装置において本体部1およびコントローラ2間において音の指向性伝送を成立させるための他の構成例を示す図である。It is a figure which shows the other structural example for establishing directional transmission of the sound between the main-body part 1 and the controller 2 in the same game device.

符号の説明Explanation of symbols

1……本体部、2……コントローラ、10,20……プロセッサ、11……外部記憶装置、12,23……メモリ部、13,24……音信号送受信部、14,25……信号処理部、131,241……無指向性スピーカ、132,242……無指向性マイク、243……指向性マイク、141,251……スペクトラム拡散送信処理部、142,252,253……スペクトラム拡散受信処理部、101……距離取得処理、102……方向取得処理、201……測定補助処理、202……方向補正処理、203……制御情報送信処理。 DESCRIPTION OF SYMBOLS 1 ... Main-body part, 2 ... Controller, 10, 20 ... Processor, 11 ... External storage device, 12, 23 ... Memory part, 13, 24 ... Sound signal transmission / reception part, 14, 25 ... Signal processing , 131, 241... Omnidirectional speaker, 132, 242... Omnidirectional microphone, 243. Processing unit 101 ... Distance acquisition process, 102 ... Direction acquisition process, 201 ... Measurement assist process, 202 ... Direction correction process, 203 ... Control information transmission process.

Claims (5)

ゲームを進行させる本体部と、前記本体部に制御情報を送信するコントローラとを具備するゲーム装置において、
前記コントローラは、角速度を検出する角速度検出手段と、前記角速度検出手段によって検出される角速度を積分することにより前記本体部の方向に対する前記コントローラの方向の傾きを示す方向角度を算出する積分器とを有する方向検出部を具備し、
前記本体部および前記コントローラは、前記コントローラが前記本体部の方向を向いているときに限って一方が放射した音を他方が受音する音の指向性伝送を成立させるスピーカまたはマイクを各々具備し、
前記本体部および前記コントローラ間において前記音の指向性伝送が成立したときに、前記コントローラの方向検出部により得られる方向角度を、前記本体部の方向に対応した基準角度に補正する制御を行う方向補正制御手段を前記本体部または前記コントローラが具備することを特徴とするゲーム装置。
In a game device comprising a main body for proceeding with a game and a controller for transmitting control information to the main body,
The controller includes an angular velocity detection unit that detects an angular velocity, and an integrator that calculates a direction angle indicating an inclination of the direction of the controller with respect to the direction of the main body by integrating the angular velocity detected by the angular velocity detection unit. Comprising a direction detection unit having
The main body unit and the controller each include a speaker or a microphone that establishes directional transmission of sound that is received by the other when the other side receives sound only when the controller faces the direction of the main body. ,
Direction for performing control to correct the direction angle obtained by the direction detection unit of the controller to a reference angle corresponding to the direction of the main unit when the sound directivity transmission is established between the main unit and the controller. A game apparatus, wherein the main body or the controller comprises a correction control means.
前記本体部および前記コントローラの各々は、無指向性スピーカおよび無指向性マイクを具備し、
前記本体部は、無指向性スピーカにより距離測定用音信号を送信し、
前記コントローラは、無指向性マイクにより前記距離測定用音信号を受信して、受信報告音信号を無指向性スピーカにより送信し、
前記本体部は、無指向性マイクにより前記受信報告音信号を受信し、前記距離測定用音信号を送信してから前記受信報告音信号を受信するまでの時間に基づいて、前記本体部および前記コントローラ間の距離を算出することを特徴とする請求項1に記載のゲーム装置。
Each of the main body and the controller includes an omnidirectional speaker and an omnidirectional microphone,
The main body transmits a distance measurement sound signal using an omnidirectional speaker,
The controller receives the distance measurement sound signal by an omnidirectional microphone, and transmits a reception report sound signal by an omnidirectional speaker.
The main body is configured to receive the reception report sound signal by an omnidirectional microphone, and based on a time from when the distance measurement sound signal is transmitted to when the reception report sound signal is received, The game apparatus according to claim 1, wherein a distance between the controllers is calculated.
前記コントローラは、前記無指向性マイクにより前記距離測定用音信号を受信してから所定時間が経過するまでの間に前記無指向性マイクにより受信される距離測定用音信号を無視し、
前記本体部は、前記無指向性マイクにより前記受信報告音信号を受信してから所定時間が経過するまでの間に前記無指向性マイクにより受信される受信報告音信号を無視することを特徴とする請求項2に記載のゲーム装置。
The controller ignores the distance measurement sound signal received by the omnidirectional microphone until a predetermined time elapses after the distance measurement sound signal is received by the omnidirectional microphone;
The main body portion ignores the reception report sound signal received by the omnidirectional microphone after a predetermined time elapses after the reception report sound signal is received by the omnidirectional microphone. The game device according to claim 2.
前記本体部は、無指向性スピーカにより複数種類の距離測定用音信号を巡回的に送信し、
前記コントローラは、無指向性マイクにより前記複数種類の距離測定用音信号を順次受信するのに応じて、前記複数種類の距離測定用音信号に各々対応した複数種類の受信報告音信号を無指向性スピーカにより順次送信し、
前記本体部は、無指向性マイクにより前記複数種類の受信報告音信号を順次受信し、各種類の受信報告音信号を受信する毎に、当該受信報告音信号に対応した種類の距離測定用音信号を送信してから当該受信報告音信号を受信するまでの時間に基づいて、前記本体部および前記コントローラ間の距離を算出することを特徴とする請求項2または3に記載のゲーム装置。
The main body section cyclically transmits a plurality of types of distance measurement sound signals using an omnidirectional speaker,
The controller omnidirectionally receives a plurality of types of reception report sound signals respectively corresponding to the plurality of types of distance measurement sound signals in response to sequentially receiving the plurality of types of distance measurement sound signals by an omnidirectional microphone. Sequentially sent by the active speaker,
The main unit sequentially receives the plurality of types of reception report sound signals by an omnidirectional microphone, and each time each type of reception report sound signal is received, the type of distance measurement sound corresponding to the reception report sound signal. 4. The game apparatus according to claim 2, wherein a distance between the main body and the controller is calculated based on a time from when the signal is transmitted until the reception report sound signal is received.
前記本体部および前記コントローラの一方は、通信相手宛ての情報パターンにスペクトラム拡散変調を施した音信号をスピーカにより送信するスペクトラム拡散送信処理部を具備し、前記本体部および前記コントローラの他方は、スペクトラム拡散変調の施された音信号をマイクを介して受信し、この音信号から通信相手から送られた情報パターンを復調するスペクトラム拡散受信処理部を具備することを特徴とする請求項1〜4のいずれか1の請求項に記載のゲーム装置。   One of the main unit and the controller includes a spread spectrum transmission processing unit that transmits a sound signal obtained by performing spread spectrum modulation on an information pattern addressed to a communication partner, and the other of the main unit and the controller 5. A spread spectrum reception processing unit which receives a sound signal subjected to spread modulation through a microphone and demodulates an information pattern sent from a communication partner from the sound signal. The game device according to any one of claims.
JP2007277124A 2007-10-25 2007-10-25 Game apparatus Withdrawn JP2009101035A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2007277124A JP2009101035A (en) 2007-10-25 2007-10-25 Game apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2007277124A JP2009101035A (en) 2007-10-25 2007-10-25 Game apparatus

Publications (1)

Publication Number Publication Date
JP2009101035A true JP2009101035A (en) 2009-05-14

Family

ID=40703449

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2007277124A Withdrawn JP2009101035A (en) 2007-10-25 2007-10-25 Game apparatus

Country Status (1)

Country Link
JP (1) JP2009101035A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2011122214A1 (en) 2010-03-30 2011-10-06 株式会社カプコン Program and recording medium on which the program is recorded
JP2015013047A (en) * 2013-07-05 2015-01-22 株式会社スクウェア・エニックス Game system, information processing device, program, and recording medium

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2011122214A1 (en) 2010-03-30 2011-10-06 株式会社カプコン Program and recording medium on which the program is recorded
JP2015013047A (en) * 2013-07-05 2015-01-22 株式会社スクウェア・エニックス Game system, information processing device, program, and recording medium
US9849373B2 (en) 2013-07-05 2017-12-26 Square Enix Co., Ltd. Game system, information processing device, and storage medium

Similar Documents

Publication Publication Date Title
US8363851B2 (en) Speaker array apparatus for forming surround sound field based on detected listening position and stored installation position information
US10893502B2 (en) Range-finding and object-positioning systems and methods using same
RU2543937C2 (en) Loudspeaker position estimation
US10197673B2 (en) Mobile terminal, wearable terminal, sonic distance measurement system, and sonic distance measurement method
WO2014146547A1 (en) Sound signal processing method and device
JP2009531699A (en) Three-dimensional wireless position detection using ultrasound
JP2007037970A5 (en)
CN107290723A (en) Sound localization method, device and electronic equipment
CN112995918B (en) Positioning method, positioning device, storage medium and electronic equipment
JP2018510520A (en) Determining the transit time of moving transponders
JP2010032320A (en) Position detection system
JP2010078528A (en) Mobile station positioning system
JP2009101035A (en) Game apparatus
JP4810378B2 (en) SOUND OUTPUT DEVICE, ITS CONTROL METHOD, AND SOUND SYSTEM
KR101168743B1 (en) microphone module, apparatus for measuring location of sound source using the module and method thereof
JP2008099194A (en) Position detection apparatus, direction control system for electronic equipment, electronic equipment device, and direction control method and control program
JP4741937B2 (en) Distance measuring system and distance measuring method
JP4419993B2 (en) Listening position specifying system and listening position specifying method
JP4064336B2 (en) Radio wave transmission position calculation device, radio wave transmission position calculation method, and program thereof
JP2009236781A (en) Mobile station positioning system
CN109188413B (en) Positioning method, device and system of virtual reality equipment
KR102020993B1 (en) Ultrasonic position measuring device
JP5267015B2 (en) Receiver, absolute direction detection system, and absolute direction detection method
JP2006194707A (en) Distance measurement method and distance measurement system
JP7272033B2 (en) Information processing system, information processing device, information processing method, and program

Legal Events

Date Code Title Description
A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20110104