JP5986597B2 - COMMUNICATION DEVICE, COMMUNICATION CONTROL PROGRAM, COMMUNICATION CONTROL METHOD, AND COMMUNICATION SYSTEM - Google Patents

COMMUNICATION DEVICE, COMMUNICATION CONTROL PROGRAM, COMMUNICATION CONTROL METHOD, AND COMMUNICATION SYSTEM Download PDF

Info

Publication number
JP5986597B2
JP5986597B2 JP2014045216A JP2014045216A JP5986597B2 JP 5986597 B2 JP5986597 B2 JP 5986597B2 JP 2014045216 A JP2014045216 A JP 2014045216A JP 2014045216 A JP2014045216 A JP 2014045216A JP 5986597 B2 JP5986597 B2 JP 5986597B2
Authority
JP
Japan
Prior art keywords
connection
target device
connection target
storage unit
communication
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
JP2014045216A
Other languages
Japanese (ja)
Other versions
JP2014140219A (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.)
Nintendo Co Ltd
Original Assignee
Nintendo Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nintendo Co Ltd filed Critical Nintendo Co Ltd
Priority to JP2014045216A priority Critical patent/JP5986597B2/en
Publication of JP2014140219A publication Critical patent/JP2014140219A/en
Application granted granted Critical
Publication of JP5986597B2 publication Critical patent/JP5986597B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明は、接続対象装置と無線通信を行う通信装置やその制御プログラム、制御方法に関し、より特定的には、接続対象装置との接続確立にかかる制御処理や制御方法に関する。   The present invention relates to a communication device that performs wireless communication with a connection target device, a control program thereof, and a control method, and more particularly to a control process and a control method for establishing a connection with a connection target device.

近年、ノートPCや携帯ゲーム機などの端末において、IEEE802.11規格などの無線LANを用いる通信が浸透している。その際に、接続対象のアクセスポイントや相手端末など他の局を探索する機能が必須である。一般的に、ノートPCや携帯ゲーム機等のクライアント端末は、接続対象と同じESSID(Extended Service Set Identifier
)を設定しておき、同じESSIDをもつ接続対象の局を、例えば非特許文献1に説明されるようなパッシブスキャンまたはアクティブスキャンを行って探索する。
In recent years, communication using a wireless LAN such as the IEEE 802.11 standard has permeated in terminals such as notebook PCs and portable game machines. At that time, a function of searching for other stations such as an access point to be connected and a partner terminal is essential. Generally, client terminals such as notebook PCs and portable game machines have the same ESSID (Extended Service Set Identifier) as the connection target.
) Is set, and a station to be connected having the same ESSID is searched by performing a passive scan or an active scan as described in Non-Patent Document 1, for example.

パッシブスキャンは、無線LANで用いられる各周波数帯(チャネル)について、他の局から送信される信号(ビーコン)を監視(サーチ)する。この信号は各局から一定間隔でブロードキャスト送信されており、ESSIDや、局に固有の識別子であるBSSID(Basic Service Set Identifier)を含む。なお、通常BSSIDは各局のMACアドレスと同一である。当該信号を受信したクライアント端末は、自身に設定されているESSIDと、当該信号に含まれるESSIDが一致するか否かを判断する。一致した場合、当該信号を受信したチャネルを用いて、当該信号に含まれるBSSIDを接続先として接続要求を送信し、信号を送信した局と接続を確立する。   The passive scan monitors (searches) signals (beacons) transmitted from other stations for each frequency band (channel) used in the wireless LAN. This signal is broadcast from each station at regular intervals, and includes an ESSID and a BSSID (Basic Service Set Identifier) that is an identifier unique to the station. The normal BSSID is the same as the MAC address of each station. The client terminal that has received the signal determines whether or not the ESSID set in itself matches the ESSID included in the signal. If they match, a connection request is transmitted using the BSSID included in the signal as a connection destination using the channel that received the signal, and a connection is established with the station that transmitted the signal.

一方、アクティブスキャンは、クライアント端末側で、自身のクライアント端末に設定されているESSIDを含む信号(プローブ要求)をそれぞれのチャネルにおいてブロードキャスト送信した後、それぞれのチャネルにおいて他の局からの応答を待つ。各局は当該信号を受信した場合、当該信号に含まれるESSIDが自身に設定されているESSIDと一致するか判断する。一致した場合、自身のBSSIDを含む信号(プローブ応答)をクライアント端末に送信する。それを受信したクライアント端末は、この信号を受信したチャネルにて、プローブ応答に含まれるBSSIDを接続先として接続要求を送信し、プローブ応答を送信した局との接続を確立する。   On the other hand, in the active scan, on the client terminal side, a signal (probe request) including the ESSID set in the client terminal is broadcast on each channel, and then a response from another station is waited on each channel. . When each station receives the signal, it determines whether the ESSID included in the signal matches the ESSID set in itself. If they match, a signal (probe response) including its own BSSID is transmitted to the client terminal. The client terminal that has received it transmits a connection request using the BSSID included in the probe response as a connection destination on the channel that has received this signal, and establishes a connection with the station that has transmitted the probe response.

守倉正博/久保田周治監修、「改訂版 802.11高速無線LAN教科書」、インプレス、2004年12月、p.105-106Supervised by Masahiro Morikura / Shuji Kubota, “Revised 802.11 High-Speed Wireless LAN Textbook”, Impress, December 2004, p.105-106

しかしながら、上述したような接続確立手法においては、上記のパッシブスキャン、アクティブスキャンのいずれの方法を用いて局の探索を行ったとしても、端末は、各チャネルについて、各局からの信号を待機する時間が必要になり、多くの時間がかかってしまう場合がある。たとえば13個のチャネルについて他の局からのビーコンまたはプローブ応答を待機する場合、1チャネルにつき少なくとも100msの待機時間が必要であるとすると、スキャンが完了し接続に必要な情報を得るまでには1.3秒ほどの時間を要してしまう。また、リトライ等の処理を含めると、さらに時間を要する。このようなスキャン方法は、公衆無線LANサービス等の、ESSIDは同じであるが、各APにおけるBSSIDや通信チャネルはそれぞれ異なるような通信環境を対象とすれば有用ではあるが、例
えば家庭内(ホームネットワーク上)等の、常に同一のアクセスポイントにしか接続しないような場合は、接続対象のBSSIDや使用するチャネルが変化する可能性は乏しく、上記のような13個全てのチャネルを毎回スキャンする必要性も乏しい。そのため、家庭内に設置したアクセスポイントに接続することが多いような利用者にとっては、上記のような待機時間はストレスを感じさせるものとなってしまうことがある。
However, in the connection establishment method as described above, the terminal waits for a signal from each station for each channel, regardless of whether the station is searched using the passive scan or active scan method described above. May be required and may take a lot of time. For example, when waiting for beacons or probe responses from other stations for 13 channels, if a waiting time of at least 100 ms is required per channel, 1 is required until the scan is completed and information necessary for connection is obtained. It takes about 3 seconds. Further, if processing such as retry is included, more time is required. Such a scanning method is useful for communication environments where the BSSID and communication channel of each AP are different, such as public wireless LAN services, but the ESSID is the same. When connecting only to the same access point at all times (such as on a network), there is little possibility that the BSSID to be connected or the channel to be used will change, and it is necessary to scan all 13 channels as described above each time. Poor nature. Therefore, for users who are often connected to an access point installed in the home, the waiting time as described above may cause stress.

それ故に、本発明の目的は、無線通信において他の接続対象装置との接続に要する時間を低減することを可能にする通信装置を提供することである。   Therefore, an object of the present invention is to provide a communication device that can reduce the time required for connection with another connection target device in wireless communication.

本発明は、上記の課題を解決するために、以下の構成を採用した。   The present invention employs the following configuration in order to solve the above problems.

第1の発明は、接続対象装置と無線通信を行う通信装置であって、第1記憶部と、第1判別手段と、第1接続手段とを備える。第1判別手段は、接続確立のための指示が発行された際に、所定の接続対象装置を一意に特定可能な情報である接続対象装置特定情報を含む接続情報が第1記憶部に保存されているか否かを判別する。第1接続手段は、第1判別手段によって接続情報が第1記憶部に保存されていると判別されたときに、第1記憶部に保存されている接続対象装置特定情報に基づいて特定した接続対象装置に対して無線通信による接続を確立するための処理を行う。   A first invention is a communication device that performs wireless communication with a connection target device, and includes a first storage unit, a first determination unit, and a first connection unit. The first determination unit stores connection information including connection target device specifying information, which is information that can uniquely specify a predetermined connection target device, when the instruction for establishing a connection is issued, in the first storage unit. It is determined whether or not. The first connection means is the connection specified based on the connection target device specifying information stored in the first storage unit when the first determination unit determines that the connection information is stored in the first storage unit. Processing for establishing a connection by wireless communication with the target device is performed.

第1の発明によれば、通信装置と接続対象装置との接続確立にかかる時間を軽減することが可能となる。   According to the first invention, it is possible to reduce the time required for establishing a connection between the communication device and the connection target device.

第2の発明は、第1の発明において、前記通信装置は、検索手段と、第2接続手段と、接続情報保存手段とを更に備える。検索手段は、接続確立のための指示が発行された際に、接続可能な接続対象装置を検索し、接続情報を含む信号を受信する。ここで、当該検索の手法としては、例えば、いわゆるアクティブスキャンやパッシブスキャンが挙げられる。第2接続手段は、検索手段で検索された接続対象装置に対して、受信した信号に含まれる接続情報を用いて接続を確立するための処理を行う。接続情報保存手段は、第2接続手段によって接続が確立されたとき、当該接続に用いている接続情報を第1記憶部に保存する。そして、接続確立のための指示が発行されたとき、第1判別手段による判定の結果、接続情報が第1記憶部に保存されているときは第1接続手段による接続確立が行われ、接続情報が第1記憶部に保存されていないときは検索手段および第2接続手段による接続確立が行われる。   In a second aspect based on the first aspect, the communication device further includes a search unit, a second connection unit, and a connection information storage unit. When an instruction for establishing a connection is issued, the search means searches for a connection target device that can be connected and receives a signal including connection information. Here, examples of the search method include so-called active scan and passive scan. The second connection unit performs processing for establishing a connection for the connection target device searched by the search unit using the connection information included in the received signal. When the connection is established by the second connection unit, the connection information storage unit stores the connection information used for the connection in the first storage unit. Then, when an instruction for establishing a connection is issued, if the connection information is stored in the first storage unit as a result of the determination by the first determination unit, the connection establishment is performed by the first connection unit, and the connection information Is not stored in the first storage unit, the connection is established by the search means and the second connection means.

第2の発明によれば、接続情報が第1記憶部に記憶されていないときは、接続可能な接続対象装置を検索し、接続情報を保存する。そのため、当該接続対象装置に対する以降の接続確立にかかる時間を軽減することができる。   According to the second invention, when the connection information is not stored in the first storage unit, a connectable connection target device is searched and the connection information is stored. Therefore, it is possible to reduce the time required for subsequent connection establishment with respect to the connection target device.

第3の発明は、第2の発明において、通信装置は、第1接続手段による接続が成功したか否かを判定する接続結果判定手段を更に備える。そして、接続確立のための指示が発行されたとき、第1接続手段による接続の確立が行われ、当該第1接続手段による接続が失敗したと接続結果判定手段によって判定されたときは、検索手段および第2接続手段による接続の確立が行われる。更に、接続情報保存手段は、第1接続手段による接続確立が失敗したときに行われた第2接続手段による接続確立が成功したときに、当該接続に用いた接続情報を保存する。   In a third aspect based on the second aspect, the communication apparatus further includes connection result determination means for determining whether or not the connection by the first connection means is successful. When an instruction for establishing a connection is issued, a connection is established by the first connecting means, and when the connection result judging means determines that the connection by the first connecting means has failed, the searching means The connection is established by the second connection means. Further, the connection information storage unit stores the connection information used for the connection when the connection establishment by the second connection unit performed when the connection establishment by the first connection unit fails.

第3の発明によれば、保存されている接続情報を用いて接続確立できなかったときであっても、新たに接続情報を受信して保存するため、より接続の確実性を高めることができる。   According to the third invention, even when the connection cannot be established using the stored connection information, the connection information is newly received and stored, so that the reliability of the connection can be further improved. .

第4の発明は、第2の発明において、接続情報保存手段は、第2接続手段による接続確立が成功したときに第1記憶部に保存された接続情報を当該確立した接続が切断された後も保持する。   According to a fourth aspect, in the second aspect, the connection information storage means stores the connection information stored in the first storage unit when the connection established by the second connection means is successful, after the established connection is disconnected. Also hold.

第4の発明によれば、第2接続手段によって接続が確立したときの接続情報を当該接続の切断後も第1記憶部に保持できるため、これ以降に同じ接続先に接続する場合は、第1接続手段による速やかな接続が可能となる。   According to the fourth invention, since the connection information when the connection is established by the second connection means can be held in the first storage unit even after the connection is cut off, when connecting to the same connection destination after this, A quick connection by one connection means is possible.

第5の発明は、第2の発明において、検索手段は、利用可能な周波数帯域の全てを対象として接続対象装置を検索する。   In a fifth aspect based on the second aspect, the search means searches for connection target devices for all the available frequency bands.

第5の発明によれば、利用可能な周波数帯域全てに検索をかけるため、より確実に接続対象装置を発見することが可能となる。   According to the fifth aspect of the invention, a search is performed on all available frequency bands, so that it is possible to more reliably find the connection target device.

第6の発明は、第1の発明において、接続対象装置特定情報は、BSSIDである。   In a sixth aspect based on the first aspect, the connection target device specifying information is a BSSID.

第6の発明によれば、接続対象装置の特定が容易となる。   According to the sixth aspect, it is easy to specify the connection target device.

第7の発明は、第1の発明において、第1記憶部には、複数の接続対象装置それぞれに対応する複数の接続情報が保存可能である。また、通信装置は、第1接続手段による接続確立が成功したか否かを判定する接続結果判定手段と、複数の接続対象装置への接続優先度を複数の接続情報と関連づけて設定する優先度設定手段とを更に備える。そして、第1判別手段は、接続優先度がより高く設定されている接続対象装置の接続情報が第1記憶部に保存されているか否かを判別する。判別の結果、保存されていると判別され、第1接続手段による接続の確立が試みられた結果、結果判定手段により、当該接続優先度がより高く設定されている接続対象装置への第1接続手段による接続確立が失敗したと判定されたときは、次に接続優先度が高く設定されている接続対象装置の接続情報が当該第1記憶部に保存されているか否かを判別する。   In a seventh aspect based on the first aspect, the first storage unit can store a plurality of pieces of connection information corresponding to the plurality of connection target devices. In addition, the communication device includes a connection result determination unit that determines whether or not connection establishment by the first connection unit is successful, and a priority that sets connection priorities to a plurality of connection target devices in association with a plurality of pieces of connection information. Setting means. Then, the first determination unit determines whether or not the connection information of the connection target device having a higher connection priority is stored in the first storage unit. As a result of the determination, it is determined that the connection is stored, and as a result of the attempt to establish the connection by the first connection means, the result determination means causes the first connection to the connection target apparatus whose connection priority is set higher. When it is determined that the connection establishment by the means has failed, it is determined whether or not the connection information of the connection target apparatus having the next highest connection priority is stored in the first storage unit.

第8の発明は、第1の発明において、通信装置は、複数の接続対象装置への接続優先度を複数の接続情報と関連づけて設定する優先度設定手段を更に備える。また、第1判別手段は、接続優先度がより高く設定されている接続対象装置の接続情報が第1記憶部に保存されているか否かを判別し、接続情報が第1記憶部に保存されていないと判別されたときに、次に接続優先度が高く設定されている接続対象装置の接続情報が当該第1記憶部に保存されているか否かを判別する。   In an eighth aspect based on the first aspect, the communication device further includes priority setting means for setting connection priorities to a plurality of connection target devices in association with a plurality of pieces of connection information. Further, the first determination unit determines whether or not the connection information of the connection target device having a higher connection priority is stored in the first storage unit, and the connection information is stored in the first storage unit. When it is determined that the connection priority is not determined, it is determined whether or not the connection information of the connection target apparatus having the next highest connection priority is stored in the first storage unit.

第7乃至第8の発明によれば、接続優先度の高い接続先への接続に失敗したときや、接続優先度の高い接続先の接続情報が記憶されていないときは、次順位の接続情報の有無を確認するため、接続先が複数設定されているような場合は、いずれかの接続先と接続が確立するまでの時間をより短くすることができる。   According to the seventh to eighth inventions, when connection to a connection destination having a high connection priority fails or connection information of a connection destination having a high connection priority is not stored, connection information of the next order In order to check whether or not there is a plurality of connection destinations, the time required to establish a connection with any one of the connection destinations can be further shortened.

第9の発明は、第7または第8の発明において、通信装置は、複数の接続対象装置への接続優先度を変更する優先度変更手段を更に備える。   In a ninth aspect based on the seventh or eighth aspect, the communication device further includes priority changing means for changing the connection priority to the plurality of connection target devices.

第9の発明によれば、複数の接続対象装置それぞれとの接続状況(例えば、接続頻度等)に応じて適切に接続優先度を設定可能となる。   According to the ninth aspect, the connection priority can be appropriately set according to the connection status (for example, connection frequency) with each of the plurality of connection target devices.

第10の発明は、第2の発明において、通信装置は、複数の接続対象装置への接続優先度を複数の接続情報と関連づけて設定する優先度設定手段を更に備える。そして、第1判
別手段は、接続優先度がより高く設定されている接続対象装置の接続情報が第1記憶部に保存されているか否かを判別する。検索手段は、第1判別手段によって、接続情報が第1記憶部に保存されていないと判別されたときに、当該接続優先度が設定されている接続対象装置を検索し、当該接続対象装置の接続情報を含む信号を受信する。そして、第2接続手段は、検索手段で検索された接続対象装置に対して接続の確立を行う。
In a tenth aspect based on the second aspect, the communication apparatus further includes priority setting means for setting connection priorities to a plurality of connection target apparatuses in association with a plurality of connection information. Then, the first determination unit determines whether or not the connection information of the connection target device having a higher connection priority is stored in the first storage unit. When the first determination unit determines that the connection information is not stored in the first storage unit, the search unit searches for the connection target device for which the connection priority is set, and A signal including connection information is received. Then, the second connection unit establishes a connection to the connection target device searched by the search unit.

第10の発明によれば、接続優先度がより高く設定されている接続対象装置の接続情報が保存されていなかった場合は、当該接続優先度がより高く設定されている接続対象装置の接続情報(特定情報)を検索して取得しようとする。つまり、例えば第1順位の接続対象装置の接続情報が保存されていなかった場合、第2順位の接続対象装置に接続を試みる前に、検索手段による当該第1順位の接続対象装置の検索を行うことができる。これにより、設定されている接続優先度に、より忠実に従った処理が可能となる。   According to the tenth aspect, when the connection information of the connection target device set with a higher connection priority is not stored, the connection information of the connection target device set with a higher connection priority. Try to retrieve (specific information) by searching. That is, for example, when the connection information of the first order connection target device is not stored, the search unit searches for the first order connection target device before attempting to connect to the second order connection target device. be able to. As a result, processing that more faithfully follows the set connection priority becomes possible.

第11の発明は、第2の発明において、接続情報保存手段は、第2接続手段による接続が確立したときに使用されている周波数帯域の情報を示す周波数帯域情報を前記接続情報に含めて第1記憶部に保存する。更に、第1接続手段は、保存された周波数帯域情報で示される周波数帯域を使用して、接続対象装置特定情報に基づいて特定した接続対象装置に対して接続を確立するための処理を行う。   In an eleventh aspect based on the second aspect, the connection information storage means includes frequency band information indicating information on a frequency band used when the connection by the second connection means is established in the connection information. Save in 1 storage. Further, the first connection means performs processing for establishing a connection with respect to the connection target device specified based on the connection target device specifying information, using the frequency band indicated by the stored frequency band information.

第11の発明によれば、所定の規格の無線通信に割り当てられている周波数帯域の一部(典型的には無線チャネル)を用いて通信する場合に、一旦接続が確立すれば、それ以降の接続確立処理において、使用する周波数帯域を最初から指定した状態で接続確立処理を開始することができる。これにより、接続確立を試みる度に全周波数帯域をスキャンして、通信に使用する一部の周波数帯域を検索する場合に比べて、接続確立にかかる時間を低減することができる。   According to the eleventh aspect, when communication is performed using a part of the frequency band (typically, a radio channel) assigned to radio communication of a predetermined standard, once the connection is established, In the connection establishment process, the connection establishment process can be started in a state where the frequency band to be used is designated from the beginning. Accordingly, it is possible to reduce the time required for establishing a connection as compared with a case where the entire frequency band is scanned every time connection establishment is attempted and a part of frequency bands used for communication is searched.

第12の発明は、第11の発明において、検索手段は、接続対象装置の属するネットワークに関する識別情報であって、接続対象装置特定情報とは異なる情報であるネットワーク識別情報および接続対象装置特定情報を少なくとも含む信号を受信する。通信装置は、第2記憶部と、第2判別手段とを更に備える。第2記憶部は、ネットワーク識別情報を保存する。第2判別手段は、検索手段が受信した信号に含まれるネットワーク識別情報と第2記憶部に保存されているネットワーク識別情報とが一致するか否かを判別する。そして、第2接続手段は、第2判別手段による判別の結果、検索手段が受信した信号に含まれるネットワーク識別情報と第2記憶部に保存されているネットワーク識別情報とが一致するときは、検索手段が信号を受信したときに用いられていた周波数帯域を指定し、当該信号に含まれていた接続対象装置特定情報で示される装置を接続先に指定した接続の確立を行う。   In a twelfth aspect based on the eleventh aspect, the search means is identification information relating to a network to which the connection target device belongs, and includes network identification information and connection target device identification information that are different from the connection target device identification information. A signal including at least the signal is received. The communication device further includes a second storage unit and a second determination unit. The second storage unit stores network identification information. The second determination unit determines whether or not the network identification information included in the signal received by the search unit matches the network identification information stored in the second storage unit. Then, the second connection means searches when the network identification information included in the signal received by the search means matches the network identification information stored in the second storage unit as a result of the determination by the second determination means. The frequency band used when the means receives the signal is specified, and the connection specified by the connection destination apparatus specifying information included in the signal is specified as the connection destination.

第12の発明によれば、ネットワーク識別情報(例えば、ESSID)が共通する接続対象装置のみを接続対象とすることができ、より効率的に接続対象装置を検索することが可能となる。   According to the twelfth aspect, only connection target devices having common network identification information (for example, ESSID) can be set as connection targets, and the connection target devices can be searched more efficiently.

第13の発明は、第12の発明において、第1記憶部には、複数の接続対象装置それぞれに対応する複数の接続情報が保存可能である。通信装置は、複数の接続対象装置への接続優先度を複数の接続情報と関連づけて設定する優先度設定手段を更に備える。そして、第1判別手段は、接続優先度がより高く設定されている接続対象装置の接続情報が第1記憶部に保存されているか否かを判別する。第1判別手段によって、接続優先度がより高く設定されている接続対象装置の接続情報が第1記憶部に保存されていないと判別されたとき、検索手段は、所定の接続対象装置から定期的に発せられる信号であって、ネットワーク識別情報および接続対象装置特定情報を含む信号を受信する。更に、第2判別手段は、
検索手段が受信した信号に含まれているネットワーク識別情報と、第2記憶部に保存されている、上記接続優先度がより高く設定された接続対象装置についてのネットワーク識別情報とが一致するか否かを判別する。そして、第2接続手段は、両者が一致すると第2判別手段によって判定されたときは、検索手段が受信した信号に含まれる接続対象特定情報で示される接続対象装置を接続先として指定して接続を行う。そして、接続情報保存手段は、第2接続手段による接続が確立したときに、検索手段が受信した信号に含まれる接続対象特定情報、および、当該接続に使用している周波数帯域を示す周波数帯域情報を当該接続が確立した接続対象装置に関する接続情報として第1記憶部に保存する。
In a thirteenth aspect based on the twelfth aspect, the first storage unit can store a plurality of pieces of connection information corresponding to the plurality of connection target devices. The communication device further includes priority setting means for setting connection priorities to a plurality of connection target devices in association with a plurality of connection information. Then, the first determination unit determines whether or not the connection information of the connection target device having a higher connection priority is stored in the first storage unit. When it is determined by the first determination unit that the connection information of the connection target device having a higher connection priority is not stored in the first storage unit, the search unit periodically retrieves from the predetermined connection target device. And a signal including network identification information and connection target device specifying information. Furthermore, the second discrimination means
Whether the network identification information included in the signal received by the search means matches the network identification information stored in the second storage unit for the connection target device set with a higher connection priority. Is determined. When the second determination unit determines that the two match, the second connection unit specifies the connection target device indicated by the connection target specifying information included in the signal received by the search unit as the connection destination and connects I do. The connection information storage means includes connection target specifying information included in the signal received by the search means when the connection by the second connection means is established, and frequency band information indicating the frequency band used for the connection Is stored in the first storage unit as connection information regarding the connection target device with which the connection is established.

第13の発明によれば、上記第10の発明と同様の効果を得ることができる。   According to the thirteenth aspect, the same effect as in the tenth aspect can be obtained.

第14の発明は、第13の発明において、第2判別手段は、第2接続手段による接続の確立が失敗したときは、第2記憶部に保存されているネットワーク識別情報のうち、次に接続優先度が高く設定された接続対象装置に対応するネットワーク識別情報と、受信した信号に含まれるネットワーク識別情報とが一致するか否かを判別する。   In a fourteenth aspect based on the thirteenth aspect, the second discriminating unit connects to the next of the network identification information stored in the second storage unit when the connection establishment by the second connecting unit fails. It is determined whether or not the network identification information corresponding to the connection target device set with a high priority matches the network identification information included in the received signal.

第14の発明によれば、例えば、優先度が設定された複数の接続情報が通信装置に保存されており、優先度が最も高い接続対象装置への接続が失敗したときは、次の優先度の接続対象装置への接続確立を試みることができる。これにより、接続優先度に沿って効率的に接続対象装置への接続を行うことができる。   According to the fourteenth invention, for example, when a plurality of pieces of connection information set with priorities are stored in the communication device and the connection to the connection target device with the highest priority fails, the next priority is given. It is possible to try to establish a connection to the connection target device. Thereby, it is possible to efficiently connect to the connection target device according to the connection priority.

第15の発明は、第13の発明において、第2判別手段は、第2記憶部に保存されているネットワーク識別情報のうち、次に接続優先度が高く設定された接続対象装置に対応するネットワーク識別情報と、上記受信した信号に含まれるネットワーク識別情報が一致しないと判定したときは、当該第2記憶部に保存されているネットワーク識別情報のうち、次に接続優先度が高く設定された接続対象装置についてのネットワーク識別情報と、当該受信した信号に含まれるネットワーク識別情報とが一致するか否かを判定する。   In a fifteenth aspect based on the thirteenth aspect, the second determination means is a network corresponding to the connection target apparatus having the next highest connection priority among the network identification information stored in the second storage unit. When it is determined that the identification information and the network identification information included in the received signal do not match, the connection having the next highest connection priority among the network identification information stored in the second storage unit It is determined whether or not the network identification information about the target device matches the network identification information included in the received signal.

第15の発明によれば、接続優先度に沿って、効率的に接続対象装置への接続を行うことができる。   According to the fifteenth aspect, connection to the connection target device can be performed efficiently according to the connection priority.

第16の発明は、第1の発明において、識別情報は、接続対象装置と無線通信を行うための周波数帯域を示す周波数帯域情報を含む。そして、通信装置は、第1記憶部に保存された周波数帯域情報で示される周波数帯域を指定して、接続対象装置を探索し、時刻同期用の情報を含む信号を当該接続対象装置から受信し、当該時刻同期用の情報に基づき当該接続対象装置との間で時刻同期を行う同期手段を更に備える。   In a sixteenth aspect based on the first aspect, the identification information includes frequency band information indicating a frequency band for performing wireless communication with the connection target device. Then, the communication device specifies the frequency band indicated by the frequency band information stored in the first storage unit, searches for the connection target device, and receives a signal including information for time synchronization from the connection target device. And a synchronization means for performing time synchronization with the connection target device based on the time synchronization information.

第17の発明は、第16の発明において、同期手段は、第1接続手段による接続が開始される直前に、周波数帯域を指定して接続対象装置を探索して、時刻同期を行う。   In a seventeenth aspect based on the sixteenth aspect, the synchronization means searches for a connection target device by specifying a frequency band and performs time synchronization immediately before the connection by the first connection means is started.

第16乃至第17の発明によれば、接続対象装置との接続の確実性をより高めることができる。   According to the sixteenth to seventeenth inventions, the reliability of connection with the connection target device can be further increased.

第18の発明は、第16の発明において、通信装置は、第3記憶部と、同期済み判定手段とを更に備える。第3記憶部は、同期手段による時刻同期を行ったか否かを示す情報を記憶する。同期済み判定手段は、第1接続手段による接続が開始される前に、第3の記憶部に記憶されている時刻同期を行ったか否かを示す情報を参照し、時刻同期が既に行われたか否かを判定する。そして、同期手段は、同期済み判定手段が時刻同期はまだ行われていないと判定したときのみ、周波数帯域を指定して接続対象装置を探索して時刻同期を行い、当該時刻同期を行ったことを示す情報を第3記憶部に保存する。   In an eighteenth aspect based on the sixteenth aspect, the communication apparatus further includes a third storage unit and a synchronized determination unit. The third storage unit stores information indicating whether or not time synchronization has been performed by the synchronization unit. The synchronized determination means refers to the information indicating whether or not the time synchronization stored in the third storage unit is performed before the connection by the first connection means is started, and whether or not the time synchronization has already been performed. Determine whether or not. And only when the synchronization determining means determines that the time synchronization has not yet been performed, the synchronization means searches for the connection target device by specifying the frequency band, performs the time synchronization, and performs the time synchronization. Is stored in the third storage unit.

第19の発明は、第16の発明において、第1接続手段による接続が成功したか否かを判定する接続結果判定手段を更に備える。そして、同期手段は、接続結果判定手段が第1接続手段による接続に失敗したと判定したときに、周波数帯域を指定して接続対象装置を探索して時刻同期を行う。   In a nineteenth aspect based on the sixteenth aspect, the apparatus further comprises connection result determining means for determining whether or not the connection by the first connecting means is successful. Then, when the connection result determination unit determines that the connection by the first connection unit has failed, the synchronization unit searches the connection target device by specifying the frequency band and performs time synchronization.

第18乃至第19の発明によれば、接続確立にかかる時間を低減しながら、接続対象装置との接続の確実性をより高めることができる。   According to the eighteenth to nineteenth inventions, it is possible to further increase the certainty of connection with the connection target device while reducing the time required for establishing the connection.

第20の発明は、接続対象装置と無線通信を行う通信装置のコンピュータに実行させる通信制御プログラムであって、コンピュータを、第1判別手段と、第1接続手段として機能させる。第1判別手段は、接続確立のための指示が発行された際に、所定の接続対象装置を一意に特定可能な情報である接続対象装置特定情報を含む接続情報が所定の記憶媒体である第1記憶手段に保存されているか否かを判別する。第1接続手段は、第1判別手段において接続情報が第1記憶手段に保存されていると判別されたときに、接続対象装置特定情報に基づいて特定した接続対象装置に対して無線通信による接続を確立するための処理を行う。   A twentieth aspect of the invention is a communication control program that is executed by a computer of a communication device that performs wireless communication with a connection target device, and causes the computer to function as a first determination unit and a first connection unit. The first discriminating unit is configured such that, when an instruction for establishing a connection is issued, connection information including connection target device specifying information that is information that can uniquely specify a predetermined connection target device is a predetermined storage medium. It is determined whether or not it is stored in one storage means. The first connection means connects to the connection target device specified based on the connection target device specifying information by wireless communication when the first determination means determines that the connection information is stored in the first storage means. Process to establish.

第21の発明は、接続対象装置と無線通信を行う通信装置を制御するための通信制御方法であって、以下のようなステップを備える。まず、接続確立のための指示が発行された際に、所定の接続対象装置を一意に特定可能な情報である接続対象装置特定情報を含む接続情報が所定の記憶媒体である第1記憶手段に保存されているか否かを判別するステップを備える。次に、判別するステップにおいて接続情報が第1記憶手段に保存されていると判別されたとき、接続対象装置特定情報に基づいて特定した接続対象装置に対して無線通信による接続を確立するための処理を行うステップを備える。   A twenty-first invention is a communication control method for controlling a communication device that performs wireless communication with a connection target device, and includes the following steps. First, when an instruction for establishing a connection is issued, connection information including connection target device specifying information, which is information that can uniquely specify a predetermined connection target device, is stored in a first storage unit that is a predetermined storage medium. The step of determining whether or not it is stored is provided. Next, when it is determined in the determining step that the connection information is stored in the first storage means, a connection for wireless communication is established for the connection target device specified based on the connection target device specifying information. The step which performs a process is provided.

第22の発明は、通信装置と接続対象装置とからなる通信システムであって、通信装置は、第1記憶部と、第1判別手段と、第1接続手段とを備える。第1判別手段は、接続対象装置との接続確立のための指示が発行された際に、当該接続対象装置を一意に特定可能な情報である接続対象装置特定情報を含む接続情報が第1記憶部に保存されているか否かを判別する。第1接続手段は、第1判別手段によって接続情報が第1記憶部に保存されていると判別されたときに、接続対象装置特定情報に基づいて特定した接続対象装置に対して無線通信による接続を確立するための処理を行う。また、接続対象装置は、接続対象装置特定情報が記憶された特定情報記憶手段を備える。   A twenty-second invention is a communication system including a communication device and a connection target device, and the communication device includes a first storage unit, a first determination unit, and a first connection unit. The first determination means stores, when a command for establishing a connection with a connection target device is issued, connection information including connection target device identification information that is information that can uniquely identify the connection target device in a first storage. It is determined whether it is stored in the copy. The first connection means connects to the connection target device specified based on the connection target device specifying information by wireless communication when the first determination means determines that the connection information is stored in the first storage unit. Process to establish. Further, the connection target device includes a specific information storage unit in which connection target device specific information is stored.

第20乃至第22の発明によれば、第1の発明と同様の効果を得ることができる。   According to the twentieth to twenty-second inventions, the same effects as in the first invention can be obtained.

本発明によれば、通信装置と接続対象装置との接続確立にかかる時間を軽減することが可能となる。   According to the present invention, it is possible to reduce the time required for establishing a connection between a communication device and a connection target device.

第1の実施形態において想定するネットワークの全体構成を示す図The figure which shows the whole structure of the network assumed in 1st Embodiment. ゲーム装置1の外観図External view of game device 1 ゲーム装置1の内部構成の一例を示すブロック図The block diagram which shows an example of the internal structure of the game device 1 第1の実施形態における接続確立処理の概念を模式的に示した図The figure which showed typically the concept of the connection establishment process in 1st Embodiment ゲーム装置1のメインメモリ32のメモリマップを示す図The figure which shows the memory map of the main memory 32 of the game device 1 本発明の第1の実施形態に係る接続関連処理を示すフローチャートThe flowchart which shows the connection relevant process which concerns on the 1st Embodiment of this invention. 図6のステップS3で示した設定画面処理の詳細を示したフローチャートThe flowchart which showed the detail of the setting screen process shown by step S3 of FIG. 設定画面の一例Example of setting screen 設定画面の一例Example of setting screen 図6のステップS5で示した接続確立処理の詳細を示したフローチャートThe flowchart which showed the detail of the connection establishment process shown by step S5 of FIG. 図6のステップS5で示した接続確立処理の詳細を示したフローチャートThe flowchart which showed the detail of the connection establishment process shown by step S5 of FIG. 図6のステップS5で示した接続確立処理の詳細を示したフローチャートThe flowchart which showed the detail of the connection establishment process shown by step S5 of FIG. 第2の実施形態にかかるゲーム装置1のメインメモリ32のメモリマップを示す図The figure which shows the memory map of the main memory 32 of the game device 1 concerning 2nd Embodiment. 第2の実施形態にかかる接続確立処理の一部を示したフローチャートThe flowchart which showed a part of connection establishment process concerning 2nd Embodiment. 第3の実施形態にかかるゲーム装置1の内部構成の一例を示すブロック図The block diagram which shows an example of the internal structure of the game device 1 concerning 3rd Embodiment. 第3の実施形態にかかる接続確立処理の一部を示したフローチャートThe flowchart which showed a part of connection establishment process concerning 3rd Embodiment. 第4の実施形態にかかる接続確立処理の一部を示したフローチャートThe flowchart which showed a part of connection establishment process concerning 4th Embodiment

以下、本発明の実施の形態について、図面を参照して説明する。尚、この実施例により本発明が限定されるものではない。   Embodiments of the present invention will be described below with reference to the drawings. In addition, this invention is not limited by this Example.

(第1の実施形態)
図1は、第1の実施形態において想定するネットワークの全体構成を示す模式図である。第1の実施形態では、いわゆるインフラストラクチャ・モードのネットワーク構成を想定しており、通信端末1を所有する利用者が、自宅200のホームネットワーク上に設置している無線LANアクセスポイント(以下、APと呼ぶ。また、本実施形態では、当該APはルータ機能も兼ねているとする。)100と当該通信端末1とを無線通信によって接続する場合を例として説明する。また、本実施形態では、通信端末1の一例として、以下に説明するような携帯型ゲーム装置(以下、単にゲーム装置と呼ぶ)を例として説明する。また、本実施形態では、当該AP100とゲーム装置1との無線通信プロトコルについては、IEEE802.11規格に準拠のプロトコル(例えばIEEE802.11g)を用いるものとする。
(First embodiment)
FIG. 1 is a schematic diagram illustrating an overall configuration of a network assumed in the first embodiment. In the first embodiment, a so-called infrastructure mode network configuration is assumed, and a user who owns the communication terminal 1 has a wireless LAN access point (hereinafter referred to as AP) installed on the home network of the home 200. In this embodiment, it is assumed that the AP also has a router function.) The case where 100 and the communication terminal 1 are connected by wireless communication will be described as an example. In the present embodiment, as an example of the communication terminal 1, a portable game device (hereinafter simply referred to as a game device) as described below will be described as an example. In the present embodiment, as a wireless communication protocol between the AP 100 and the game apparatus 1, a protocol (for example, IEEE 802.11g) compliant with the IEEE 802.11 standard is used.

なお、当該AP100には、いわゆるESSIDとBSSID、および自らが電波を発する周波数チャネルが予め設定され、当該AP100が備えている記憶媒体(例えばフラッシュメモリ等)に記憶されているものとする。   It is assumed that so-called ESSID and BSSID, and a frequency channel in which the AP 100 emits radio waves are set in advance and stored in a storage medium (for example, a flash memory) provided in the AP 100.

図2は、ゲーム装置1の外観図である。図2において、ゲーム装置1は、折り畳み型の携帯ゲーム装置であり、開いた状態(開状態)のゲーム装置1を示している。ゲーム装置1は、開いた状態においてもユーザが両手または片手で把持することができるようなサイズで構成される。   FIG. 2 is an external view of the game apparatus 1. In FIG. 2, the game apparatus 1 is a foldable portable game apparatus, and shows the game apparatus 1 in an open state (open state). The game apparatus 1 is configured in such a size that the user can hold it with both hands or one hand even in an open state.

ゲーム装置1は、下側ハウジング11および上側ハウジング21を有する。下側ハウジング11と上側ハウジング21とは、開閉可能(折り畳み可能)に連結されている。図2の例では、下側ハウジング11および上側ハウジング21は、それぞれ横長の長方形の板状で形成され、互いの長辺部分で回転可能に連結されている。通常、ユーザは、開状態でゲーム装置1を使用する。また、ユーザは、ゲーム装置1を使用しない場合には閉状態としてゲーム装置1を保管する。また、図2に示した例では、ゲーム装置1は、上記閉状態および開状態のみでなく、下側ハウジング11と上側ハウジング21とのなす角度が閉状態と開状態との間の任意の角度において、連結部分に発生する摩擦力などによってその開閉角度を維持することができる。つまり、上側ハウジング21を下側ハウジング11に対して任意の角度で静止させることができる。   The game apparatus 1 includes a lower housing 11 and an upper housing 21. The lower housing 11 and the upper housing 21 are connected so as to be openable and closable (foldable). In the example of FIG. 2, the lower housing 11 and the upper housing 21 are each formed in a horizontally-long rectangular plate shape, and are coupled so as to be rotatable at their long side portions. Normally, the user uses the game apparatus 1 in the open state. Further, when the user does not use the game apparatus 1, the user stores the game apparatus 1 in a closed state. In the example shown in FIG. 2, the game apparatus 1 is not limited to the closed state and the open state, and the angle formed by the lower housing 11 and the upper housing 21 is an arbitrary angle between the closed state and the open state. The opening / closing angle can be maintained by a frictional force generated in the connecting portion. That is, the upper housing 21 can be made stationary with respect to the lower housing 11 at an arbitrary angle.

下側ハウジング11には、下側LCD(Liquid Crystal Display:液晶表示装置)12が設けられる。下側LCD12は横長形状であり、長辺方向が下側ハウジング11の長辺方向に一致するように配置される。なお、本実施形態では、ゲー
ム装置1に内蔵されている表示装置としてLCDを用いているが、例えばEL(Electro Luminescence:電界発光)を利用した表示装置等、他の任意の表示装置を利用してもよい。また、ゲーム装置1は、任意の解像度の表示装置を利用することができる。なお、詳細は後述するが、下側LCD12は、主に、内側カメラ23または外側カメラ25で撮影されている画像をリアルタイムに表示するために用いられる。
The lower housing 11 is provided with a lower LCD (Liquid Crystal Display) 12. The lower LCD 12 has a horizontally long shape, and is arranged such that the long side direction coincides with the long side direction of the lower housing 11. In the present embodiment, an LCD is used as the display device built in the game apparatus 1, but other arbitrary display devices such as a display device using EL (Electro Luminescence) are used. May be. The game apparatus 1 can use a display device having an arbitrary resolution. Although details will be described later, the lower LCD 12 is mainly used to display an image taken by the inner camera 23 or the outer camera 25 in real time.

下側ハウジング11には、入力装置として、各操作ボタン14A〜14Kおよびタッチパネル13が設けられる。図2に示されるように、各操作ボタン14A〜14Kのうち、方向入力ボタン14A、操作ボタン14B、操作ボタン14C、操作ボタン14D、操作ボタン14E、電源ボタン14F、スタートボタン14G、およびセレクトボタン14Hは、上側ハウジング21と下側ハウジング11とを折りたたんだときに内側となる、下側ハウジング11の内側主面上に設けられる。方向入力ボタン14Aは、例えば選択操作等に用いられる。各操作ボタン14B〜14Eは、例えば決定操作やキャンセル操作等に用いられる。電源ボタン14Fは、ゲーム装置1の電源をオン/オフするために用いられる。図2に示す例では、方向入力ボタン14Aおよび電源ボタン14Fは、下側ハウジング11の内側主面中央付近に設けられる下側LCD12に対して、左右一方側(図2では左側)の当該主面上に設けられる。また、操作ボタン14B〜14E、スタートボタン14G、およびセレクトボタン14Hは、下側LCD12に対して左右他方側(図2では右側)となる下側ハウジング11の内側主面上に設けられる。方向入力ボタン14A、操作ボタン14B〜14E、スタートボタン14G、およびセレクトボタン14Hは、ゲーム装置1に対する各種操作を行うために用いられる。   The lower housing 11 is provided with operation buttons 14A to 14K and a touch panel 13 as input devices. As shown in FIG. 2, among the operation buttons 14A to 14K, the direction input button 14A, the operation button 14B, the operation button 14C, the operation button 14D, the operation button 14E, the power button 14F, the start button 14G, and the select button 14H. Is provided on the inner main surface of the lower housing 11 which is the inner side when the upper housing 21 and the lower housing 11 are folded. The direction input button 14A is used for, for example, a selection operation. The operation buttons 14B to 14E are used for, for example, a determination operation or a cancel operation. The power button 14F is used for turning on / off the power of the game apparatus 1. In the example shown in FIG. 2, the direction input button 14 </ b> A and the power button 14 </ b> F are on the left and right sides (left side in FIG. 2) of the main surface with respect to the lower LCD 12 provided near the center of the inner main surface of the lower housing 11. Provided on top. Further, the operation buttons 14B to 14E, the start button 14G, and the select button 14H are provided on the inner main surface of the lower housing 11 that is on the other left and right side (right side in FIG. 2) with respect to the lower LCD 12. The direction input button 14A, the operation buttons 14B to 14E, the start button 14G, and the select button 14H are used for performing various operations on the game apparatus 1.

なお、図2においては、操作ボタン14I〜14Kの図示を省略している。例えば、Lボタン14Iは、下側ハウジング11の上側面の左端部に設けられ、Rボタン14Jは、下側ハウジング11の上側面の右端部に設けられる。Lボタン14IおよびRボタン14Jは、ゲーム装置1に対して、例えば撮影指示操作(シャッター操作)を行うために用いられる。さらに、音量ボタン14Kは、下側ハウジング11の左側面に設けられる。音量ボタン14Kは、ゲーム装置1が備えるスピーカの音量を調整するために用いられる。   In FIG. 2, the operation buttons 14I to 14K are not shown. For example, the L button 14I is provided at the left end portion of the upper side surface of the lower housing 11, and the R button 14J is provided at the right end portion of the upper side surface of the lower housing 11. The L button 14I and the R button 14J are used to perform, for example, a shooting instruction operation (shutter operation) on the game apparatus 1. Furthermore, the volume button 14K is provided on the left side surface of the lower housing 11. The volume button 14K is used to adjust the volume of the speaker provided in the game apparatus 1.

また、ゲーム装置1は、各操作ボタン14A〜14Kとは別の入力装置として、さらにタッチパネル13を備えている。タッチパネル13は、下側LCD12の画面上を覆うように装着されている。なお、本実施形態では、タッチパネル13は、例えば抵抗膜方式のタッチパネルが用いられる。ただし、タッチパネル13は、抵抗膜方式に限らず、任意の押圧式のタッチパネルを用いることができる。また、本実施形態では、タッチパネル13として、例えば下側LCD12の解像度と同解像度(検出精度)のものを利用する。ただし、必ずしもタッチパネル13の解像度と下側LCD12の解像度とが一致している必要はない。また、下側ハウジング11の右側面には、挿入口(図2に示す破線)が設けられている。挿入口は、タッチパネル13に対する操作を行うために用いられるタッチペン27を収納することができる。なお、タッチパネル13に対する入力は、通常タッチペン27を用いて行われるが、タッチペン27に限らずユーザの指でタッチパネル13を操作することも可能である。   Further, the game apparatus 1 further includes a touch panel 13 as an input device different from the operation buttons 14A to 14K. The touch panel 13 is mounted so as to cover the screen of the lower LCD 12. In the present embodiment, for example, a resistive film type touch panel is used as the touch panel 13. However, the touch panel 13 is not limited to the resistive film type, and any pressing type touch panel can be used. In the present embodiment, as the touch panel 13, for example, a touch panel having the same resolution (detection accuracy) as that of the lower LCD 12 is used. However, the resolution of the touch panel 13 and the resolution of the lower LCD 12 are not necessarily matched. Further, an insertion port (broken line shown in FIG. 2) is provided on the right side surface of the lower housing 11. The insertion opening can accommodate a touch pen 27 used for performing an operation on the touch panel 13. In addition, although the input with respect to the touch panel 13 is normally performed using the touch pen 27, it is also possible to operate the touch panel 13 not only with the touch pen 27 but with a user's finger | toe.

また、下側ハウジング11の右側面には、メモリカード28を収納するための挿入口(図2では、二点鎖線で示している)が設けられている。この挿入口の内側には、ゲーム装置1とメモリカード28とを電気的に接続するためのコネクタ(図示せず)が設けられる。メモリカード28は、例えばSD(Secure Digital)メモリカードであり、コネクタに着脱自在に装着される。メモリカード28は、例えば、ゲーム装置1によって撮影された画像を記憶(保存)したり、他の装置で生成された画像をゲーム装置1に読み込んだりするために用いられる。   Further, on the right side surface of the lower housing 11, an insertion slot (indicated by a two-dot chain line in FIG. 2) for storing the memory card 28 is provided. A connector (not shown) for electrically connecting the game apparatus 1 and the memory card 28 is provided inside the insertion slot. The memory card 28 is, for example, an SD (Secure Digital) memory card, and is detachably attached to the connector. The memory card 28 is used, for example, for storing (saving) an image photographed by the game apparatus 1 or reading an image generated by another apparatus into the game apparatus 1.

さらに、下側ハウジング11の上側面には、カートリッジ29を収納するための挿入口(図2では、一点鎖線で示している)が設けられている。この挿入口の内側にも、ゲーム装置1とカートリッジ29とを電気的に接続するためのコネクタ(図示せず)が設けられる。カートリッジ29は、例えばゲームプログラム等を記録した記録媒体であり、下側ハウジング11に設けられた挿入口に着脱自在に装着される。   Further, an insertion port (indicated by a one-dot chain line in FIG. 2) for accommodating the cartridge 29 is provided on the upper side surface of the lower housing 11. A connector (not shown) for electrically connecting the game apparatus 1 and the cartridge 29 is also provided inside the insertion slot. The cartridge 29 is a recording medium on which, for example, a game program is recorded, and is detachably attached to an insertion port provided in the lower housing 11.

下側ハウジング11と上側ハウジング21との連結部の左側部分には、3つのLED15A〜15Cが取り付けられる。ここで、ゲーム装置1は、他の機器との間で無線通信を行うことが可能であり、第1LED15Aは、ゲーム装置1の電源がオンである場合に点灯する。第2LED15Bは、ゲーム装置1の充電中に点灯する。第3LED15Cは、無線通信が確立している場合に点灯する。したがって、3つのLED15A〜15Cによって、ゲーム装置1の電源のオン/オフ状況、充電状況、および、通信確立状況をユーザに通知することができる。   Three LEDs 15 </ b> A to 15 </ b> C are attached to the left portion of the connecting portion between the lower housing 11 and the upper housing 21. Here, the game apparatus 1 can perform wireless communication with other devices, and the first LED 15A is lit when the power of the game apparatus 1 is on. The second LED 15B is lit while the game apparatus 1 is being charged. The third LED 15C is lit when wireless communication is established. Therefore, the three LEDs 15A to 15C can notify the user of the power on / off status of the game apparatus 1, the charging status, and the communication establishment status.

一方、上側ハウジング21には、上側LCD22が設けられる。上側LCD22は横長形状であり、長辺方向が上側ハウジング21の長辺方向に一致するように配置される。なお、下側LCD12と同様、上側LCD22に代えて、他の任意の方式および任意の解像度の表示装置を利用してもよい。なお、上側LCD22上を覆うように、タッチパネルを設けてもかまわない。例えば、上側LCD22には、ユーザに各操作ボタン14A〜14Kやタッチパネル13の役割を教えるための、操作説明画面が表示される。   On the other hand, the upper housing 21 is provided with an upper LCD 22. The upper LCD 22 has a horizontally long shape and is arranged such that the long side direction coincides with the long side direction of the upper housing 21. As in the case of the lower LCD 12, instead of the upper LCD 22, a display device having any other method and any resolution may be used. A touch panel may be provided so as to cover the upper LCD 22. For example, the upper LCD 22 displays an operation explanation screen for teaching the user the roles of the operation buttons 14 </ b> A to 14 </ b> K and the touch panel 13.

また、上側ハウジング21には、2つのカメラ(内側カメラ23および外側カメラ25)が設けられる。図2に示されるように、内側カメラ23は、上側ハウジング21の連結部付近の内側主面に取り付けられる。一方、外側カメラ25は、内側カメラ23が取り付けられる内側主面の反対側の面、すなわち、上側ハウジング21の外側主面(ゲーム装置1が閉状態となった場合に外側となる面であり、図2に示す上側ハウジング21の背面)に取り付けられる。なお、図2においては、外側カメラ25を破線で示している。これによって、内側カメラ23は、上側ハウジング21の内側主面が向く方向を撮影することが可能であり、外側カメラ25は、内側カメラ23の撮影方向の逆方向、すなわち、上側ハウジング21の外側主面が向く方向を撮影することが可能である。このように、本実施形態では、2つの内側カメラ23および外側カメラ25の撮影方向が互いに逆方向となるように設けられる。例えば、ユーザは、ゲーム装置1からユーザの方を見た景色を内側カメラ23で撮影することができるとともに、ゲーム装置1からユーザの反対側の方向を見た景色を外側カメラ25で撮影することができる。   The upper housing 21 is provided with two cameras (an inner camera 23 and an outer camera 25). As shown in FIG. 2, the inner camera 23 is attached to the inner main surface near the connecting portion of the upper housing 21. On the other hand, the outer camera 25 is a surface on the opposite side of the inner main surface to which the inner camera 23 is attached, that is, the outer main surface of the upper housing 21 (the outer surface when the game apparatus 1 is in a closed state, It is attached to the rear surface of the upper housing 21 shown in FIG. In FIG. 2, the outer camera 25 is indicated by a broken line. As a result, the inner camera 23 can shoot in the direction in which the inner main surface of the upper housing 21 faces, and the outer camera 25 can capture the direction opposite to the shooting direction of the inner camera 23, that is, the outer main surface of the upper housing 21. It is possible to photograph the direction in which the surface faces. As described above, in the present embodiment, the two inner cameras 23 and the outer cameras 25 are provided so that the shooting directions are opposite to each other. For example, the user can shoot a scene viewed from the game apparatus 1 with the inner camera 23 and shoot a scene viewed from the game apparatus 1 in the direction opposite to the user with the outer camera 25. Can do.

なお、上記連結部付近の内側主面には、音声入力装置としてマイク(図3に示すマイク42)が収納されている。そして、上記連結部付近の内側主面には、マイク42がゲーム装置1外部の音を検知できるように、マイクロフォン用孔16が形成される。マイク42を収納する位置およびマイクロフォン用孔16の位置は必ずしも上記連結部である必要はなく、例えば下側ハウジング11にマイク42を収納し、マイク42を収納位置に対応させて下側ハウジング11にマイクロフォン用孔16を設けるようにしても良い。   Note that a microphone (a microphone 42 shown in FIG. 3) is accommodated as an audio input device on the inner main surface near the connecting portion. A microphone hole 16 is formed on the inner main surface near the connecting portion so that the microphone 42 can detect the sound outside the game apparatus 1. The position where the microphone 42 is accommodated and the position of the microphone hole 16 do not necessarily have to be the connecting portion. For example, the microphone 42 is accommodated in the lower housing 11, and the microphone 42 corresponds to the accommodation position in the lower housing 11. A microphone hole 16 may be provided.

また、上側ハウジング21の外側主面には、第4LED26(図2では、破線で示す)が取り付けられる。第4LED26は、外側カメラ25によって撮影が行われた(シャッターボタンが押下された)時点で点灯する。また、外側カメラ25によって動画が撮影される間点灯する。第4LED26によって、ゲーム装置1による撮影が行われた(行われている)ことを撮影対象者や周囲に通知することができる。   A fourth LED 26 (shown by a broken line in FIG. 2) is attached to the outer main surface of the upper housing 21. The fourth LED 26 is lit when the outer camera 25 has taken a picture (the shutter button has been pressed). Further, it is lit while a moving image is shot by the outer camera 25. The fourth LED 26 can notify the subject to be photographed and the surroundings that photographing by the game apparatus 1 has been performed (performed).

また、上側ハウジング21の内側主面中央付近に設けられる上側LCD22に対して、左右両側の当該主面に音抜き孔24がそれぞれ形成される。音抜き孔24の奥の上側ハウ
ジング21内にはスピーカが収納されている。音抜き孔24は、スピーカからの音をゲーム装置1の外部に放出するための孔である。
In addition, sound release holes 24 are formed in the main surfaces on both the left and right sides of the upper LCD 22 provided near the center of the inner main surface of the upper housing 21. A speaker is housed in the upper housing 21 behind the sound release hole 24. The sound release hole 24 is a hole for releasing sound from the speaker to the outside of the game apparatus 1.

以上に説明したように、上側ハウジング21には、画像を撮影するための構成である内側カメラ23および外側カメラ25と、例えば撮影の際に操作説明画面を表示する表示手段である上側LCD22とが設けられる。一方、下側ハウジング11には、ゲーム装置1に対する操作入力を行うための入力装置(タッチパネル13および各ボタン14A〜14K)と、ゲーム画面を表示するための表示手段である下側LCD12とが設けられる。したがって、ゲーム装置1を使用する際には、ユーザは、下側LCD12に表示される撮影画像(カメラによって撮影された画像)を見ながら、下側ハウジング11を把持して入力装置に対する入力を行うことができる。   As described above, the upper housing 21 includes the inner camera 23 and the outer camera 25 that are configured to capture an image, and the upper LCD 22 that is a display unit that displays an operation explanation screen at the time of shooting, for example. Provided. On the other hand, the lower housing 11 is provided with an input device (touch panel 13 and buttons 14A to 14K) for performing an operation input to the game apparatus 1 and a lower LCD 12 which is a display means for displaying a game screen. It is done. Therefore, when using the game apparatus 1, the user grasps the lower housing 11 and performs input to the input device while viewing a captured image (image captured by the camera) displayed on the lower LCD 12. be able to.

次に、図3を参照して、ゲーム装置1の内部構成を説明する。なお、図3は、ゲーム装置1の内部構成の一例を示すブロック図である。   Next, the internal configuration of the game apparatus 1 will be described with reference to FIG. FIG. 3 is a block diagram showing an example of the internal configuration of the game apparatus 1.

図3において、ゲーム装置1は、CPU31、メインメモリ32、メモリ制御回路33、保存用データメモリ34、プリセットデータ用メモリ35、メモリカードインターフェース(メモリカードI/F)36およびカートリッジI/F44、無線通信モジュール37、ローカル通信モジュール38、リアルタイムクロック(RTC)39、電源回路40、およびインターフェース回路(I/F回路)41等の電子部品を備えている。これらの電子部品は、電子回路基板上に実装されて、下側ハウジング11(または上側ハウジング21でもよい)内に収納される。   3, the game apparatus 1 includes a CPU 31, a main memory 32, a memory control circuit 33, a storage data memory 34, a preset data memory 35, a memory card interface (memory card I / F) 36 and a cartridge I / F 44, wireless Electronic components such as a communication module 37, a local communication module 38, a real-time clock (RTC) 39, a power supply circuit 40, and an interface circuit (I / F circuit) 41 are provided. These electronic components are mounted on an electronic circuit board and housed in the lower housing 11 (or the upper housing 21).

CPU31は、所定のプログラムを実行するための情報処理手段である。本実施形態では、所定のプログラムがゲーム装置1内のメモリ(例えば保存用データメモリ34)やメモリカード28および/または29に記憶されており、CPU31は、当該所定のプログラムを実行することによって、後述する接続確立処理等を実行する。なお、CPU31によって実行されるプログラムは、ゲーム装置1内のメモリに予め記憶されていてもよいし、メモリカード28および/またはカートリッジ29から取得されてもよいし、他の機器との通信によって他の機器から取得されてもよい。例えば、インターネットを経由して所定のサーバからダウンロードすることで取得しても良いし、据置型ゲーム装置と通信を行うことで、当該据置型ゲーム装置に記憶されている所定のプログラムをダウンロードすることで取得しても良い。   The CPU 31 is information processing means for executing a predetermined program. In the present embodiment, a predetermined program is stored in a memory (for example, the storage data memory 34) or the memory card 28 and / or 29 in the game apparatus 1, and the CPU 31 executes the predetermined program, thereby A connection establishment process to be described later is executed. Note that the program executed by the CPU 31 may be stored in advance in the memory in the game apparatus 1, may be acquired from the memory card 28 and / or the cartridge 29, or may be obtained by communication with other devices. May be obtained from other devices. For example, it may be obtained by downloading from a predetermined server via the Internet, or by downloading a predetermined program stored in the stationary game device by communicating with the stationary game device. You may get at.

CPU31には、メインメモリ32、メモリ制御回路33、およびプリセットデータ用メモリ35が接続される。また、メモリ制御回路33には、保存用データメモリ34が接続される。メインメモリ32は、CPU31のワーク領域やバッファ領域として用いられる記憶手段である。本実施形態では、メインメモリ32として、例えばPSRAM(Pseudo−SRAM)を用いる。保存用データメモリ34は、CPU31によって実行されるプログラムや内側カメラ23および外側カメラ25によって撮影された画像のデータ等を記憶するための記憶手段である。保存用データメモリ34は、不揮発性の記憶媒体によって構成されており、例えば本実施例ではNAND型フラッシュメモリで構成される。メモリ制御回路33は、CPU31の指示に従って、保存用データメモリ34に対するデータの読み出しおよび書き込みを制御する回路である。プリセットデータ用メモリ35は、ゲーム装置1において予め設定される各種パラメータ等のデータ(プリセットデータ)を記憶するための記憶手段である。プリセットデータ用メモリ35としては、SPI(Serial Peripheral Interface)バスによってCPU31と接続されるフラッシュメモリを用いることができる。   A main memory 32, a memory control circuit 33, and a preset data memory 35 are connected to the CPU 31. In addition, a storage data memory 34 is connected to the memory control circuit 33. The main memory 32 is a storage means used as a work area or buffer area for the CPU 31. In the present embodiment, for example, a PSRAM (Pseudo-SRAM) is used as the main memory 32. The storage data memory 34 is a storage unit for storing a program executed by the CPU 31, data of images taken by the inner camera 23 and the outer camera 25, and the like. The storage data memory 34 is configured by a nonvolatile storage medium, and is configured by, for example, a NAND flash memory in this embodiment. The memory control circuit 33 is a circuit that controls reading and writing of data with respect to the storage data memory 34 in accordance with instructions from the CPU 31. The preset data memory 35 is storage means for storing data (preset data) such as various parameters set in advance in the game apparatus 1. As the preset data memory 35, a flash memory connected to the CPU 31 via an SPI (Serial Peripheral Interface) bus can be used.

メモリカードI/F36は、CPU31に接続される。メモリカードI/F36は、コ
ネクタに装着されたメモリカード28に対するデータの読み出しおよび書き込みを、CPU31の指示に応じて行う。本実施形態では、外側カメラ25によって撮像された画像データがメモリカード28に書き込まれたり、メモリカード28に記憶された画像データがメモリカード28から読み出されて保存用データメモリ34に記憶されたりする。
The memory card I / F 36 is connected to the CPU 31. The memory card I / F 36 reads and writes data to and from the memory card 28 attached to the connector according to instructions from the CPU 31. In the present embodiment, image data captured by the outer camera 25 is written to the memory card 28, or image data stored in the memory card 28 is read from the memory card 28 and stored in the storage data memory 34. To do.

カートリッジI/F44はCPU31に接続される。カートリッジI/F44は、コネクタに装着されたカートリッジ29に対するデータの読み出しおよび書き込みをCPU31の指示に従って行う。本実施形態では、ゲーム装置1が実行することが可能なアプリケーションプログラムがカートリッジ29から読み出されてCPU31によって実行されたり、当該アプリケーションプログラムに関するデータ(例えばゲームのセーブデータ等)がカートリッジ29に書き込まれたりする。   The cartridge I / F 44 is connected to the CPU 31. The cartridge I / F 44 reads and writes data to and from the cartridge 29 attached to the connector according to instructions from the CPU 31. In the present embodiment, an application program that can be executed by the game apparatus 1 is read from the cartridge 29 and executed by the CPU 31, or data related to the application program (for example, game save data) is written to the cartridge 29. Or

なお、本実施形態にかかる接続処理に関するプログラムは、カートリッジ29等の外部記憶媒体を通じてコンピュータシステムに供給されるだけでなく、有線または無線の通信回線を通じてコンピュータシステムに供給されてもよい。また、当該接続処理に関するプログラムは、コンピュータシステム内部の不揮発性記憶装置に予め記録されていてもよい。なお、当該接続処理に関するプログラムを記憶する情報記憶媒体としては、上記不揮発性記憶装置に限らず、CD−ROM、DVD、あるいはそれらに類する光学式ディスク状記憶媒体でもよい。   Note that the program related to the connection processing according to the present embodiment may be supplied not only to the computer system through an external storage medium such as the cartridge 29 but also to the computer system through a wired or wireless communication line. The program related to the connection process may be recorded in advance in a nonvolatile storage device inside the computer system. The information storage medium for storing the program related to the connection process is not limited to the nonvolatile storage device, but may be a CD-ROM, a DVD, or an optical disk storage medium similar to them.

無線通信モジュール37は、例えばIEEE802.11.b/gの規格に準拠した方式により、無線LANに接続する機能を有する。また、ローカル通信モジュール38は、所定の通信方式により同種のゲーム装置との間で無線通信を行う機能を有する。無線通信モジュール37およびローカル通信モジュール38は、CPU31に接続される。CPU31は、無線通信モジュール37を用いてインターネットを介して他の機器との間でデータを送受信したり、ローカル通信モジュール38を用いて同種の他のゲーム装置との間でデータを送受信したりすることができる。   The wireless communication module 37 is, for example, IEEE 802.11. It has a function of connecting to a wireless LAN by a method compliant with the b / g standard. The local communication module 38 has a function of performing wireless communication with the same type of game device by a predetermined communication method. The wireless communication module 37 and the local communication module 38 are connected to the CPU 31. The CPU 31 transmits / receives data to / from other devices via the Internet using the wireless communication module 37, and transmits / receives data to / from other game devices of the same type using the local communication module 38. be able to.

また、CPU31には、RTC39および電源回路40が接続される。RTC39は、時間をカウントしてCPU31に出力する。例えば、CPU31は、RTC39によって計時された時間に基づいて、現在時刻(日付)等を計算することもできる。電源回路40は、ゲーム装置1が有する電源(典型的には電池であり、下側ハウジング11に収納される)から供給される電力を制御し、ゲーム装置1の各部品に電力を供給する。   Further, the RTC 39 and the power supply circuit 40 are connected to the CPU 31. The RTC 39 counts the time and outputs it to the CPU 31. For example, the CPU 31 can calculate the current time (date) based on the time counted by the RTC 39. The power supply circuit 40 controls power supplied from a power supply (typically a battery, which is stored in the lower housing 11) of the game apparatus 1, and supplies power to each component of the game apparatus 1.

また、ゲーム装置1は、マイク42およびアンプ43を備えている。マイク42およびアンプ43は、それぞれI/F回路41に接続される。マイク42は、ゲーム装置1に向かって発声されたユーザの音声を検知して、当該音声を示す音声信号をI/F回路41に出力する。アンプ43は、I/F回路41から音声信号を増幅してスピーカ(図示せず)から出力させる。I/F回路41は、CPU31に接続される。   In addition, the game apparatus 1 includes a microphone 42 and an amplifier 43. The microphone 42 and the amplifier 43 are each connected to the I / F circuit 41. The microphone 42 detects the voice of the user uttered toward the game apparatus 1 and outputs a voice signal indicating the voice to the I / F circuit 41. The amplifier 43 amplifies the audio signal from the I / F circuit 41 and outputs it from a speaker (not shown). The I / F circuit 41 is connected to the CPU 31.

また、タッチパネル13は、I/F回路41に接続される。I/F回路41は、マイク42およびアンプ43(スピーカ)の制御を行う音声制御回路と、タッチパネル13の制御を行うタッチパネル制御回路とを含む。音声制御回路は、音声信号に対するA/D変換およびD/A変換を行ったり、音声信号を所定の形式の音声データに変換したりする。タッチパネル制御回路は、タッチパネル13からの信号に基づいて所定の形式のタッチ位置データを生成してCPU31に出力する。例えば、タッチ位置データは、タッチパネル13の入力面に対して入力が行われた位置の座標を示すデータである。なお、タッチパネル制御回路は、タッチパネル13からの信号の読み込み、および、タッチ位置データの生成を所定時間に1回の割合で行う。CPU31は、I/F回路41を介して、タッチ位置データを取得することにより、タッチパネル13に対して入力が行われた位置を知ることが
できる。
The touch panel 13 is connected to the I / F circuit 41. The I / F circuit 41 includes a voice control circuit that controls the microphone 42 and the amplifier 43 (speaker), and a touch panel control circuit that controls the touch panel 13. The voice control circuit performs A / D conversion and D / A conversion on the voice signal, or converts the voice signal into voice data of a predetermined format. The touch panel control circuit generates touch position data in a predetermined format based on a signal from the touch panel 13 and outputs it to the CPU 31. For example, the touch position data is data indicating coordinates of a position where an input is performed on the input surface of the touch panel 13. The touch panel control circuit reads signals from the touch panel 13 and generates touch position data at a rate of once per predetermined time. The CPU 31 can know the position where the input is performed on the touch panel 13 by acquiring the touch position data via the I / F circuit 41.

操作ボタン14は、上記各操作ボタン14A〜14Kから構成され、CPU31に接続される。操作ボタン14からCPU31へは、各操作ボタン14A〜14Kに対する入力状況(押下されたか否か)を示す操作データが出力される。CPU31は、操作ボタン14から操作データを取得することによって、操作ボタン14に対する入力に応じた処理を実行する。   The operation button 14 includes the operation buttons 14A to 14K and is connected to the CPU 31. From the operation button 14 to the CPU 31, operation data indicating an input status (whether or not the button is pressed) for each of the operation buttons 14A to 14K is output. The CPU 31 obtains operation data from the operation button 14 to execute processing corresponding to the input to the operation button 14.

内側カメラ23および外側カメラ25は、それぞれCPU31に接続される。内側カメラ23および外側カメラ25は、CPU31の指示に応じて画像を撮影し、撮影した画像データをCPU31に出力する。本実施形態では、CPU31は、内側カメラ23および外側カメラ25のいずれか一方に対して撮影指示を行い、撮影指示を受けたカメラが画像を撮影して画像データをCPU31に送る。   The inner camera 23 and the outer camera 25 are each connected to the CPU 31. The inner camera 23 and the outer camera 25 capture an image in accordance with an instruction from the CPU 31 and output the captured image data to the CPU 31. In the present embodiment, the CPU 31 issues a shooting instruction to one of the inner camera 23 and the outer camera 25, and the camera that has received the shooting instruction takes an image and sends the image data to the CPU 31.

また、下側LCD12および上側LCD22は、それぞれCPU31に接続される。下側LCD12および上側LCD22は、それぞれCPU31の指示に従って画像を表示する。   Further, the lower LCD 12 and the upper LCD 22 are each connected to the CPU 31. The lower LCD 12 and the upper LCD 22 display images according to instructions from the CPU 31, respectively.

次に、第1の実施形態で想定する接続確立処理の概要について説明する。第1の実施形態では、無線通信における各種通信端末(本実施形態ではゲーム装置1)および通信装置(本実施形態ではAP100)間の接続確立に際して、以下のような処理が実行される。まず、接続対象装置(本実施形態では、AP100)を一意に識別可能な情報、換言すれば、接続対象装置を個別に特定することが可能な情報をゲーム装置1に保存しておく。更に、無線通信に使う無線チャネルの情報(例えばチャネル番号。IEEE802.11gを例にすると、チャネル1〜チャネル13)もゲーム装置1に保存しておく(具体的な保存手法は後述)。そして、当該ゲーム装置1において、AP100との接続確立のための指示(例えば、ゲームプログラム内で発行されるインターネットへの接続指示等に含まれる)が発行された際は、当該保存された情報を使って、AP100(つまり、接続の宛先)と通信に使う使用チャネルとが特定済みの状態から接続確立処理を開始する、という処理が実行される。   Next, an overview of connection establishment processing assumed in the first embodiment will be described. In the first embodiment, the following processing is executed when establishing a connection between various communication terminals (game device 1 in the present embodiment) and communication device (AP 100 in the present embodiment) in wireless communication. First, information that can uniquely identify the connection target device (AP 100 in the present embodiment), in other words, information that can individually specify the connection target device is stored in the game device 1. In addition, information on a wireless channel used for wireless communication (for example, channel number. In the case of IEEE802.11g as an example, channel 1 to channel 13) is also stored in the game apparatus 1 (a specific storage method will be described later). When the game device 1 issues an instruction for establishing a connection with the AP 100 (for example, included in the connection instruction to the Internet issued in the game program), the stored information is stored. The process of starting the connection establishment process from a state where the AP 100 (that is, the connection destination) and the channel to be used for communication are already specified is executed.

図4は、第1の実施形態における接続確立処理の概念を、従来における接続確立処理との比較で模式的に示した図である。図4においては、時間の流れを左から右方向に向かう矢印で示し(図4中央の右矢印)、当該矢印の上側に従来における接続確立処理の流れを、下側に本実施形態における接続確立処理の流れを示している。従来の処理では、まず、ゲーム装置1において接続確立要求が何らかの形で発行されると、パッシブスキャン、あるいは、(ESSID指定の)アクティブスキャンによって、利用可能な無線チャネルが全てスキャンされ、接続対象となるAP100の検索が行われる(図4の処理F1)。   FIG. 4 is a diagram schematically showing the concept of the connection establishment process in the first embodiment in comparison with the conventional connection establishment process. In FIG. 4, the flow of time is indicated by an arrow heading from left to right (right arrow at the center of FIG. 4), the conventional connection establishment process is shown above the arrow, and the connection establishment in the present embodiment is shown below. The flow of processing is shown. In the conventional process, first, when a connection establishment request is issued in some form in the game apparatus 1, all available wireless channels are scanned by passive scan or active scan (ESSID designation). A search for AP100 is performed (processing F1 in FIG. 4).

次に、パッシブスキャンであれば、ゲーム装置1が受信したビーコンフレームから、また、アクティブスキャンの場合であれば、ゲーム装置1が受信したプローブ応答フレームから、BSSIDと使用チャネル番号が抽出される(図4の処理F2)。なお、当該BSSIDは、一般的にはMACアドレスで表される。すなわち、ここではAP100のMACアドレスで表されている。   Next, in the case of passive scan, the BSSID and the used channel number are extracted from the beacon frame received by the game apparatus 1 and in the case of active scan, from the probe response frame received by the game apparatus 1 ( Process F2 in FIG. The BSSID is generally represented by a MAC address. That is, here, it is represented by the MAC address of the AP 100.

そして、当該BSSIDを宛先アドレスとして設定した各種フレーム(アソシエーション要求フレーム等)を生成し、上記使用チャネル番号で示される無線チャネルを介して認証要求や接続要求をAP100に対して送信することで(処理F3〜処理F4を必要に応じて繰り返す)、上記AP100との接続関係の確立が試みられる。このような処理が、ゲーム装置1において接続要求が発行される度に行われる。これは、公衆無線LANサー
ビス等の、無線チャネルやBSSIDはAPの設置場所によってそれぞれ異なるが、ESSIDは同じものが設定されているAPが複数存在しており、そのいずれにも接続するようなものを想定しているためである。
Then, various frames (association request frame or the like) in which the BSSID is set as a destination address are generated, and an authentication request or a connection request is transmitted to the AP 100 via the wireless channel indicated by the use channel number (processing) F3 to F4 are repeated as necessary) to establish a connection relationship with the AP 100. Such processing is performed every time a connection request is issued in the game apparatus 1. This is because, for public wireless LAN services, etc., the wireless channel and BSSID differ depending on the location of the AP, but there are multiple APs that have the same ESSID and are connected to any of them. This is because of this.

対して、第1の実施形態では、上記のような処理で一旦自宅のAP100と接続確立(つまり、接続が成功)したときに、当該AP100のBSSIDと、そのときの通信に使用している無線チャネルのチャネル番号をゲーム装置1に保存する。そして、その後接続が切断され、更にその後、再度ゲーム装置1において接続要求が発行されたときは、上記のようなスキャン処理(処理F1)は行わずに、上記保存済みのBSSIDとチャネル番号を読み出す(処理F11)。そして、当該読み出したBSSIDを宛先アドレスに指定した各種フレームを生成し、当該フレームを上記読み出したチャネル番号の無線チャネルを介して送信することで(処理F12、F13)AP100との接続を試みる。   On the other hand, in the first embodiment, once the connection with the home AP 100 is established (that is, the connection is successful) by the processing as described above, the BSSID of the AP 100 and the wireless used for the communication at that time. The channel number of the channel is stored in the game apparatus 1. After that, when the connection is disconnected and then a connection request is issued again in the game apparatus 1, the stored BSSID and channel number are read out without performing the above-described scanning process (process F1). (Process F11). Then, various frames specifying the read BSSID as a destination address are generated, and the frames are transmitted via the radio channel having the read channel number (processes F12 and F13), and connection with the AP 100 is attempted.

このような構成を採るのは、次のような理由による。例えば家庭内ネットワーク等、常に同一のAPにしか接続しないような場合は、BSSIDや使用チャネルが変化する可能性は少ない。そのため、BSSIDや使用チャネルを接続要求が発行される度に特定し直す必要性は低い。また、公衆無線LANサービス等のAPよりも家庭内ネットワークのAP100に接続する場面が多いような場合は、より短時間で家庭内ネットワークのAP100に接続できることのほうが利用者にとって利便性がより高まる。そのために、第1の実施形態では、一旦接続に成功したAP100のBSSIDと、そのときに使用したチャネル番号とをゲーム装置1に保存するようにしている。そして、それ以降の接続確立処理においては、当該保存済みのBSSIDと使用チャネル番号を用いて、接続先となるAP100(つまり、宛先アドレス)と通信に使うチャネルが特定した状態から接続確立処理を開始するものである。その結果、従来行っていたパッシブスキャンあるいはアクティブスキャンにかかる時間が削減され、ゲーム装置1とAP100との接続が確立する時間を低減することを可能とする。なお、以下の説明では、従来の接続確立手法と区別するため、上記のような保存済みのBSSIDと使用チャネル番号を用いてAP100に接続を行う接続手法を「直接接続」と呼ぶ。   The reason for adopting such a configuration is as follows. For example, in the case where only the same AP is always connected, such as a home network, there is little possibility that the BSSID and the channel used will change. Therefore, there is little need to respecify the BSSID and the used channel every time a connection request is issued. Further, when there are more scenes where the user connects to the AP 100 of the home network than the AP of the public wireless LAN service or the like, it is more convenient for the user to connect to the AP 100 of the home network in a shorter time. Therefore, in the first embodiment, the BSSID of the AP 100 once successfully connected and the channel number used at that time are stored in the game apparatus 1. In the subsequent connection establishment process, the connection establishment process is started from the state in which the channel used for communication with the AP 100 (that is, the destination address) as the connection destination is specified using the saved BSSID and the used channel number. To do. As a result, the time required for the passive scan or the active scan that has been conventionally performed is reduced, and the time for establishing the connection between the game apparatus 1 and the AP 100 can be reduced. In the following description, in order to distinguish from the conventional connection establishment method, the connection method for connecting to the AP 100 using the stored BSSID and the used channel number as described above is referred to as “direct connection”.

また、本実施形態では、上記のような直接接続を行う際に、より確実にAP100と接続するために、使用チャネル番号を指定したアクティブスキャン的な処理(プローブ要求/応答)を行って、いわゆるTSF(Time Synchronization Function)タイマの同期を行うようにしている(なお、TSFタイマとは、APおよび通信端末との間で時刻同期をとるために用いられるカウンタである)。これにより、送信側/受信側において時刻同期が取られ、より安定した送受信が可能となる。以下の説明では、この処理のことを「同期スキャン」と呼ぶ。当該同期スキャンは、上記保存済みのチャネル番号に基づいて無線チャネルを指定して行われるため、従来の全チャネルをスキャンするアクティブスキャンよりもプローブ応答フレームを受信するまでの時間は短縮される。   Further, in the present embodiment, when performing the direct connection as described above, in order to connect with the AP 100 more reliably, an active scan process (probe request / response) specifying the used channel number is performed, so-called A TSF (Time Synchronization Function) timer is synchronized (a TSF timer is a counter used for time synchronization between the AP and the communication terminal). As a result, time synchronization is achieved on the transmission side / reception side, and more stable transmission / reception is possible. In the following description, this process is called “synchronous scanning”. Since the synchronous scan is performed by designating a radio channel based on the stored channel number, the time required to receive a probe response frame is shorter than the conventional active scan for scanning all channels.

次に、第1の実施形態におけるゲーム装置1によって実行される接続関連処理(上記接続確立処理も含んだ処理)の詳細を説明する。まず、接続関連処理の際にメインメモリ32に記憶されるデータについて説明する。図5は、ゲーム装置1のメインメモリ32のメモリマップを示す図である。図5において、メインメモリ32は、プログラム記憶領域321、データ記憶領域325、および一時記憶領域327を含む。プログラム記憶領域321の各プログラムは、例えばカートリッジ29や保存用データメモリ34に記憶されており、接続関連処理のプログラム実行時にはメインメモリ32に転送されて記憶される。また、データ記憶領域325のデータは、保存用データメモリ34に記憶されており、接続関連処理のプログラム実行時にはメインメモリ32に転送されて記憶される。なお、これらのプログラムおよびデータは、上記カートリッジ29や保存用データメモリ34の他
、メモリカード、ハードディスク等の記録媒体で提供されても良いし、有線ネットワークや無線ネットワークを介して所定のサーバやゲーム装置等からダウンロードすることで提供されてもよい(つまり、ダウンロードしたプログラムやデータをメインメモリ32に記憶する形態でもよい)。一方、一時記憶領域327のデータは、本実施形態にかかる接続関連処理において適宜生成され、一時的に記憶されるデータである。
Next, details of connection-related processing (processing including the connection establishment processing) executed by the game apparatus 1 according to the first embodiment will be described. First, data stored in the main memory 32 during connection-related processing will be described. FIG. 5 is a diagram showing a memory map of the main memory 32 of the game apparatus 1. In FIG. 5, the main memory 32 includes a program storage area 321, a data storage area 325, and a temporary storage area 327. Each program in the program storage area 321 is stored, for example, in the cartridge 29 or the storage data memory 34, and is transferred to the main memory 32 and stored when the program for connection-related processing is executed. The data in the data storage area 325 is stored in the storage data memory 34, and is transferred to the main memory 32 and stored when the program for connection-related processing is executed. These programs and data may be provided on a recording medium such as a memory card or a hard disk in addition to the cartridge 29 or the storage data memory 34, or may be provided on a predetermined server or game via a wired network or a wireless network. The program may be provided by downloading from a device or the like (that is, the downloaded program or data may be stored in the main memory 32). On the other hand, the data in the temporary storage area 327 is data that is appropriately generated and temporarily stored in the connection-related processing according to the present embodiment.

プログラム記憶領域321は、CPU31によって実行されるプログラムを記憶し、このプログラムは、メイン処理プログラム322と、設定処理プログラム323と、接続確立処理プログラム324などによって構成される。メイン処理プログラム322は、後述する図6のフローチャートの処理に対応するプログラムである。設定処理プログラム323は、無線接続に関する情報(プロファイル)を事前に設定するための処理をCPU31に実行させるためのプログラムであり、接続確立処理プログラム324は、AP100との接続を確立するための処理をCPU31に実行させるためのプログラムである。   The program storage area 321 stores a program executed by the CPU 31, and this program includes a main processing program 322, a setting processing program 323, a connection establishment processing program 324, and the like. The main processing program 322 is a program corresponding to the processing of the flowchart of FIG. The setting processing program 323 is a program for causing the CPU 31 to execute processing for setting information (profile) related to wireless connection in advance, and the connection establishment processing program 324 performs processing for establishing a connection with the AP 100. It is a program for causing the CPU 31 to execute.

データ記憶領域325には、第1AP設定データ326a、第2AP設定データ326b、第3AP設定データ326cなどのデータが記憶される。これらのデータは、所定のAPへの接続のために用いる接続情報(プロファイル)であり、本実施形態では、3つのAPについての接続情報が保存可能である。また、これら3つのデータの間には、後述するような接続確立する際に用いられる優先順位(接続優先度)が設けられており、本実施形態では、第1AP設定データ326aが最も優先順位が高く、第3AP設定データ326cが最も優先順位が低いものとする。なお、以下では、これらのデータを総称して、単にAP設定データ326と呼ぶこともある。また、これらのデータのいずれか一つを示すため、「第nAP設定データ」と呼ぶこともある(nは1〜3のいずれかを示す意図である)。各AP設定データ326はそれぞれ、設定済みESSID3261、設定済みBSSID3262、設定済みチャネル番号3263とで構成される。設定済みESSID3261は、接続対象となる無線ネットワークのESSIDを示すデータである。例えば、第1AP設定データ326aを例にすれば、1つめのAPのESSIDを示すデータである。本実施形態では、設定済みESSID3261については、後述する設定処理において利用者の入力操作に基づいて設定される(つまり、手動で設定される)。   The data storage area 325 stores data such as first AP setting data 326a, second AP setting data 326b, and third AP setting data 326c. These data are connection information (profile) used for connection to a predetermined AP. In this embodiment, connection information for three APs can be stored. In addition, a priority order (connection priority) used when establishing a connection as described later is provided between these three pieces of data. In this embodiment, the first AP setting data 326a has the highest priority order. It is assumed that the third AP setting data 326c has the lowest priority. Hereinafter, these data may be collectively referred to simply as AP setting data 326. Moreover, in order to show any one of these data, it may be called "nth AP setting data" (n is an intention which shows either 1-3). Each AP setting data 326 includes a set ESSID 3261, a set BSSID 3262, and a set channel number 3263, respectively. The set ESSID 3261 is data indicating the ESSID of the wireless network to be connected. For example, taking the first AP setting data 326a as an example, it is data indicating the ESSID of the first AP. In the present embodiment, the set ESSID 3261 is set based on a user input operation in a setting process described later (that is, manually set).

設定済みBSSID3262は、接続対象となるAPのBSSID(一般的にはMACアドレス)を示すデータである。設定済みチャネル番号3263は、接続対象となるAPとの無線通信に用いる無線チャネル番号を示すデータである。設定済みBSSID3262および設定済みチャネル番号3263は、後述する接続確立処理の一環として、所定のAPとの接続が確立した際に自動的に設定される。   The set BSSID 3262 is data indicating the BSSID (generally a MAC address) of the AP to be connected. The set channel number 3263 is data indicating a wireless channel number used for wireless communication with the AP to be connected. The set BSSID 3262 and the set channel number 3263 are automatically set when a connection with a predetermined AP is established as part of a connection establishment process described later.

また、各AP設定データ326には、上記のデータの他、暗号化通信に必要な情報であるWEPキーやWPAキー等も必要に応じて記憶される。   Each AP setting data 326 stores a WEP key, a WPA key, and the like, which are information necessary for encrypted communication, as necessary, in addition to the above data.

なお、上記AP設定データは、適宜、メインメモリ32から保存用データメモリ34にコピーされることで、保存用データメモリ34上に保存される。   The AP setting data is stored in the storage data memory 34 by appropriately copying the AP setting data from the main memory 32 to the storage data memory 34.

一時記憶領域327には、接続成功フラグ328と、ビーコンデータ329が記憶される。接続成功フラグ328は、接続確立処理の結果、APとの接続が成功したか否かを示すためのフラグであり、接続成功時はオン、接続失敗時はオフに設定される。   The temporary storage area 327 stores a connection success flag 328 and beacon data 329. The connection success flag 328 is a flag for indicating whether or not the connection with the AP is successful as a result of the connection establishment process. The connection success flag 328 is set to on when the connection is successful and off when the connection is unsuccessful.

ビーコンデータ329は、後述する接続確立処理において実行されるパッシブスキャンによって受信したビーコンフレームが記憶されたものである。また、当該ビーコンデータ329は、ビーコンフレームを受信する毎に追加されていき、図5では、「ビーコンデータ1」〜「ビーコンデータm」として示している。各ビーコンデータ329は、受信ES
SID3291、受信BSSID3292、受信チャネル番号3293等で構成される。受信ESSID3291は、受信したビーコンフレームに含まれているESSIDを記憶したデータである。受信BSSID3292は、受信したビーコンフレームに含まれているBSSIDを記憶したデータである。受信チャネル番号3293は、受信したビーコンフレームに含まれている無線チャネルの番号を記憶したデータである。すなわち、受信チャネル番号3293は、受信したビーコンの送信に用いられた無線チャネルの番号を示すものであり、換言すれば、発信元のAPが無線通信に使用している無線チャネルの番号を示す情報である。
The beacon data 329 stores the beacon frame received by the passive scan executed in the connection establishment process described later. Further, the beacon data 329 is added every time a beacon frame is received, and is indicated as “beacon data 1” to “beacon data m” in FIG. Each beacon data 329 is received ES
SID 3291, reception BSSID 3292, reception channel number 3293, and the like. The received ESSID 3291 is data storing the ESSID included in the received beacon frame. The reception BSSID 3292 is data in which the BSSID included in the received beacon frame is stored. The reception channel number 3293 is data that stores the number of the wireless channel included in the received beacon frame. That is, the reception channel number 3293 indicates the number of the wireless channel used for transmission of the received beacon. In other words, information indicating the number of the wireless channel used by the originating AP for wireless communication. It is.

また、一時記憶領域327には、後述の各処理で用いられる各種フラグなども記憶される。   The temporary storage area 327 also stores various flags used in each process described later.

次に、図6〜図12を参照して、ゲーム装置1によって実行される接続関連処理について説明する。図6は、ゲーム装置1において実行される接続関連処理の流れを示すフローチャートである。ゲーム装置1の電源が投入されると、ゲーム装置1のCPU31は、図示しないブートROMに記憶されている起動プログラムを実行し、メインメモリ32等の各ユニットが初期化される。そして、カートリッジ29に格納された各種プログラム、および、保存用データメモリ34に記憶されているAP設定データ326がメインメモリ32に読み込まれ、当該接続関連処理プログラムの実行が開始される。その結果、下側LCD12に所定の画像が表示されることによって、本実施形態にかかる処理が開始される。なお、本実施形態においては、接続関連処理以外の状況における処理(例えば、ゲーム処理の具体的内容等)は本発明と直接関連しないので説明を省略する。   Next, with reference to FIGS. 6 to 12, connection related processing executed by the game apparatus 1 will be described. FIG. 6 is a flowchart showing a flow of connection-related processing executed in the game apparatus 1. When the power of the game apparatus 1 is turned on, the CPU 31 of the game apparatus 1 executes a startup program stored in a boot ROM (not shown), and each unit such as the main memory 32 is initialized. Then, various programs stored in the cartridge 29 and AP setting data 326 stored in the storage data memory 34 are read into the main memory 32, and execution of the connection related processing program is started. As a result, a predetermined image is displayed on the lower LCD 12, and the processing according to the present embodiment is started. In the present embodiment, processing in situations other than connection-related processing (for example, specific contents of game processing, etc.) is not directly related to the present invention and will not be described.

まず、ステップS1において、ゲーム装置1のメイン画面が表示される。このメイン画面とは、例えばメニュー画面であり、利用者は、このメニューから「ゲーム処理」や、「カメラ処理」等の各種アプリケーションを起動したり、「通信設定のための処理」を起動することができる。そして、利用者からの所定の操作入力を受け付ける。   First, in step S1, the main screen of the game apparatus 1 is displayed. The main screen is, for example, a menu screen, and the user can start various applications such as “game processing” and “camera processing” from this menu, or can start “processing for communication setting”. Can do. And the predetermined operation input from a user is received.

次に、ステップS2において、上記メニュー画面において、「通信設定のための処理」を起動する旨の入力がプレイヤから行われたか否かが判定される。当該判定の結果、「通信設定のための処理」を起動する旨の入力がプレイヤから行われたと判定されたときは(ステップS2でYES)、ステップS3において、設定画面処理が実行される。この処理では、利用者の入力に基づいて、APへ接続するときに用いる接続情報を設定するための処理が実行される。この処理の詳細は後述する。当該処理が終了すれば、上記ステップS1の処理に戻る。   Next, in step S2, it is determined whether or not an input for starting the “processing for communication setting” is made from the player on the menu screen. As a result of the determination, when it is determined that an input for starting the “communication setting process” is made from the player (YES in step S2), a setting screen process is executed in step S3. In this process, a process for setting connection information used when connecting to the AP is executed based on a user input. Details of this processing will be described later. When the process ends, the process returns to step S1.

一方、「通信設定のための処理」を起動する旨の入力がプレイヤから行われていないと判定されたときは(ステップS2でNO)、次に、ステップS4において、「接続指示」が発行されたか否かが判定される。当該「接続指示」の発行については、例えば、上記メニュー画面から所定の通信ゲームを起動し、当該通信ゲームにかかる処理において発行される。その他、例えば、上記メニュー画面からインターネットブラウザプログラムを起動した場合等に発行される。   On the other hand, when it is determined that an input for starting the “communication setting process” is not made by the player (NO in step S2), a “connection instruction” is issued in step S4. It is determined whether or not. The issuance of the “connection instruction” is issued, for example, in a process related to the communication game by starting a predetermined communication game from the menu screen. In addition, for example, it is issued when an Internet browser program is started from the menu screen.

ステップS4の判定の結果、「接続指示」が発行されていないと判定されたときは(ステップS4でNO)、上記ステップS1に戻り、処理が繰り返される(上記メニュー画面からゲーム処理や所定のアプリケーションが起動されていた場合は、当該ゲームやアプリケーションにかかる処理が続行される)。   As a result of the determination in step S4, when it is determined that the “connection instruction” has not been issued (NO in step S4), the process returns to step S1 and the process is repeated (game processing or a predetermined application from the menu screen). If is activated, processing for the game or application is continued).

一方、ステップS4の判定の結果、「接続指示」が発行されたと判定されたときは(ステップS4でYES)、ステップS5において、APとの接続を確立するための接続確立
処理が実行される。本処理の詳細は後述する。
On the other hand, if it is determined as a result of the determination in step S4 that a “connection instruction” has been issued (YES in step S4), a connection establishment process for establishing a connection with the AP is executed in step S5. Details of this processing will be described later.

次に、接続確立処理が終了すれば、ステップS6において、当該処理の結果として接続が成功したか否かが判定される。具体的には、接続成功フラグ328がオンに設定されているか否かが判定される。その結果、オフに設定されていると判定されたときは(ステップS6でNO)、上記ステップS1に戻り、処理が繰り返される。   Next, when the connection establishment process is completed, it is determined in step S6 whether or not the connection is successful as a result of the process. Specifically, it is determined whether or not the connection success flag 328 is set to ON. As a result, when it is determined that it is set to OFF (NO in step S6), the process returns to step S1 and the process is repeated.

一方、接続成功フラグ328がオンに設定されていると判定されたときは(ステップS6でYES)、ステップS7において、接続確立したAPを介したネットワークを利用する所定の処理が実行される。例えば、通信対戦ゲーム処理等が実行される。そして、当該処理が終了すれば、ステップS1の処理に戻る。例えば、利用者が通信ゲーム処理を終了した結果、メニュー画面が表示されることになる。   On the other hand, when it is determined that the connection success flag 328 is set to ON (YES in step S6), in step S7, a predetermined process using the network via the established AP is executed. For example, a communication battle game process or the like is executed. And if the said process is complete | finished, it will return to the process of step S1. For example, as a result of the user ending the communication game process, the menu screen is displayed.

次に、上記ステップS3で示した設定画面処理の詳細について説明する。この処理では、設定画面を表示し、利用者の入力に応じて、接続先となるAPのESSIDを設定する処理等が実行される。図7は、当該設定画面処理の詳細を示すフローチャートである。まず、ステップS11において、通信設定のための画面が生成されて、下側LCD12に表示される。図8に、当該画面の一例を示す。当該画面には、3つのAP設定データ326のそれぞれに対応する設定ボタン111a、111b、111cが表示されている(以下、これらのボタンを総称して単に設定ボタン111と呼ぶこともある)。また、各ボタンには、それぞれに対応するAP設定データ326が設定済みか否かを示す情報も表示される。図8では、AP設定データ326のいずれも未設定の状態の場合の例を示している。そのため、各設定ボタン111には、「未設定」の文字が表示されている。AP設定データ326が設定済みの設定ボタン111であれば、例えば「アクセスポイント1」や設定されているESSIDを表示する等、既に設定済みであることを示す表示がなされる。   Next, details of the setting screen process shown in step S3 will be described. In this process, a setting screen is displayed, and the process of setting the ESSID of the AP to be connected is executed according to the user's input. FIG. 7 is a flowchart showing details of the setting screen process. First, in step S <b> 11, a screen for communication setting is generated and displayed on the lower LCD 12. FIG. 8 shows an example of the screen. On this screen, setting buttons 111a, 111b, and 111c corresponding to each of the three AP setting data 326 are displayed (hereinafter, these buttons may be collectively referred to as a setting button 111). Each button also displays information indicating whether the corresponding AP setting data 326 has been set. FIG. 8 shows an example in which none of the AP setting data 326 is set. Therefore, the characters “not set” are displayed on each setting button 111. If the AP setting data 326 is the set button 111 that has been set, for example, “access point 1” or the set ESSID is displayed, for example, indicating that the setting has already been set.

また、図8においては、各設定ボタン111の並びの上から順にAP設定データ326a、326b、326cに対応しているものとする。また、各設定ボタン111の左側には、「接続先1」〜「接続先3」という文字が各設定ボタン111のラベル的な意図で表示されている。以下では、設定ボタン111aに対応するAP設定データ326aにおける接続先APのことを「接続先1」と呼ぶ。同様に、設定ボタン111b、設定ボタン111cに対応するAPについても、「接続先2」「接続先3」と呼ぶ。そして、利用者は、当該3つの設定ボタンから1つを選択する操作(例えば、ボタンをタッチする操作)ことで、当該ボタンに対応するAP設定データ326の設定画面を表示することができる。   Also, in FIG. 8, it is assumed that AP setting data 326a, 326b, and 326c correspond to the setting buttons 111 in order from the top. In addition, on the left side of each setting button 111, characters “connection destination 1” to “connection destination 3” are displayed with the label-like intention of each setting button 111. Hereinafter, the connection destination AP in the AP setting data 326a corresponding to the setting button 111a is referred to as “connection destination 1”. Similarly, APs corresponding to the setting button 111b and the setting button 111c are also referred to as “connection destination 2” and “connection destination 3”. Then, the user can display a setting screen of the AP setting data 326 corresponding to the button by an operation of selecting one of the three setting buttons (for example, an operation of touching the button).

ここで、図8において、当該設定ボタン111の並びは、APへの接続の優先順位も示しており、上に配置されている設定ボタン111に対応するAPほど優先順位が高い。より具体的には、接続指示がなされた場合、まず「接続先1」への接続を試み、「接続先1」への接続が失敗したときは、「接続先2」への接続を試みる。「接続先2」への接続も失敗したときは、「接続先3」への接続を試みる。更に、本実施形態では、当該設定ボタン111を上下方向にドラッグ操作することで、その優先順位を入れ替えることも可能となっている。例えば、図8の例で言うと、設定ボタン111aを設定ボタン111bの位置にドラッグ操作した場合、設定ボタン111aと設定ボタン111bの表示位置が入れ替わるようなアニメーションが表示されて、両者の優先順位が入れ替わる。より具体的には、設定ボタン111aに対応するAP設定データ326aと設定ボタン111bに対応するAP設定データ326bを入れ替えることで、優先順位の変更がなされる(つまり、変更前のAP設定データ326bが、上記変更操作に伴い、AP設定データ326aとして再設定され、変更前のAP設定データ326aが、AP設定データ326bとして再設定される)。   Here, in FIG. 8, the arrangement of the setting buttons 111 also indicates the priority of connection to the AP, and the AP corresponding to the setting button 111 arranged above has a higher priority. More specifically, when a connection instruction is issued, first, connection to “connection destination 1” is attempted, and when connection to “connection destination 1” fails, connection to “connection destination 2” is attempted. When the connection to “connection destination 2” also fails, connection to “connection destination 3” is attempted. Furthermore, in this embodiment, the priority order can be changed by dragging the setting button 111 in the vertical direction. For example, in the example of FIG. 8, when the setting button 111 a is dragged to the position of the setting button 111 b, an animation is displayed in which the display positions of the setting button 111 a and the setting button 111 b are switched, and the priority order of both is set. Change. More specifically, the priority is changed by replacing the AP setting data 326a corresponding to the setting button 111a and the AP setting data 326b corresponding to the setting button 111b (that is, the AP setting data 326b before the change is changed). In accordance with the change operation, the AP setting data 326a is reset, and the AP setting data 326a before the change is reset as the AP setting data 326b).

図7に戻り、ステップS12において、上記3つの設定ボタン111のうちのいずれかが利用者によって選択されたか否かが判定される。その結果、いずれかの設定ボタンが選択されたと判定されたときは(ステップS12でYES)、ステップS13において、選択された設定ボタン111は上記のような「未設定」が表示されている設定ボタン111か否かが判定される。つまり、未設定の状態のAP設定データ326に対応する設定ボタン111が選択されたか否かが判定される。その結果、「未設定」の設定ボタン111が選択されたと判断されたときは(ステップS13でYES)、未設定のAP設定データに対して設定作業を行うと考えられるため、後述するステップS16に処理が進められる。   Returning to FIG. 7, in step S12, it is determined whether or not any of the three setting buttons 111 has been selected by the user. As a result, when it is determined that one of the setting buttons has been selected (YES in step S12), in step S13, the selected setting button 111 is a setting button in which “unset” as described above is displayed. Whether or not 111 is determined. That is, it is determined whether or not the setting button 111 corresponding to the unset AP setting data 326 has been selected. As a result, when it is determined that the “unset” setting button 111 has been selected (YES in step S13), it is considered that the setting operation is performed on the unset AP setting data. Processing proceeds.

一方、「未設定」の設定ボタン111は選択されていないと判定されたときは(ステップS13でNO)、次に、ステップS14において、選択された設定ボタン111に対応するAP設定データ326の、その時点における設定内容を示す画面が表示される。これと同時に、利用者からの入力が受け付けられる。図9に、当該画面の一例を示す。図9に示す画面では、「接続先1」の設定内容として、ESSID、BSSID、使用チャネル番号がそれぞれ表示されている。また、「設定変更」ボタン112、および、「戻る」ボタン113も表示されている。利用者は、「設定変更」ボタン112を選択することで、ESSIDの設定内容を変更することが可能である。また、利用者は、「戻る」ボタン113を選択することで、上記図8の画面に戻ることが可能である。なお、図9において、BSSIDおよび使用チャネル番号については、AP設定データ326に当該データが存在するときにのみ表示される。これは、以下に説明するように、当該設定画面処理においては、利用者が入力するのはESSIDのみである。そのため、AP設定データ326にはESSIDのみ保存され、BSSIDおよび使用チャネル番号は未設定のまま、という状態があるためである。   On the other hand, when it is determined that the “unset” setting button 111 is not selected (NO in step S13), next, in step S14, the AP setting data 326 corresponding to the selected setting button 111 is updated. A screen showing the settings at that time is displayed. At the same time, input from the user is accepted. FIG. 9 shows an example of the screen. In the screen shown in FIG. 9, ESSID, BSSID, and used channel number are respectively displayed as the setting contents of “connection destination 1”. In addition, a “setting change” button 112 and a “return” button 113 are also displayed. The user can change the setting contents of the ESSID by selecting the “change setting” button 112. Further, the user can return to the screen of FIG. 8 by selecting the “return” button 113. In FIG. 9, the BSSID and the used channel number are displayed only when the data exists in the AP setting data 326. As will be described below, in the setting screen process, only the ESSID is input by the user. Therefore, only the ESSID is stored in the AP setting data 326, and the BSSID and the used channel number remain unset.

図7に戻り、続くステップS15において、上記設定内容を示す画面において、「設定変更」ボタン112が利用者によって選択されたか否かが判定される。当該判定の結果、「設定変更」ボタン112が選択されたと判定されたときは(ステップS15でYES)、次のステップS16において、設定入力用の画面が表示され、利用者からの入力が受け付けられる。この設定入力用の画面は、図示は省略するが、ESSIDの入力が可能となっている画面であり、例えば、図9のESSIDの値が表示されているフィールド部分の表示色が変更され、当該フィールド内にカーソルが表示された画面が表示される。また、このとき、「入力完了」ボタンも適宜当該設定入力用の画面に表示される。そして、利用者がESSIDの入力操作を完了したときに当該「入力完了」ボタンを選択することで、入力内容が確定され、次のステップS17の処理に進む。ここで、各チャネルにおいてビーコンをスキャンし、受信したビーコンのうちESSIDが含まれているもの全てを一覧表示し、ユーザに一覧表示されているビーコンのうちいずれか1つを選択させることで、ESSIDの入力としてもよい。   Returning to FIG. 7, in the subsequent step S <b> 15, it is determined whether or not the “setting change” button 112 has been selected by the user on the screen showing the setting contents. As a result of the determination, if it is determined that the “setting change” button 112 has been selected (YES in step S15), a setting input screen is displayed in the next step S16, and input from the user is accepted. . Although not shown, this setting input screen is a screen on which ESSID can be input. For example, the display color of the field portion where the value of ESSID in FIG. A screen with a cursor in the field is displayed. At this time, an “input completion” button is also appropriately displayed on the setting input screen. Then, when the user completes the ESSID input operation, by selecting the “input complete” button, the input content is confirmed, and the process proceeds to the next step S17. Here, the beacon is scanned in each channel, all the received beacons that contain the ESSID are displayed in a list, and the user is allowed to select any one of the beacons that are displayed in a list. May be input.

ステップS17においては、利用者の入力した内容に基づいて、AP設定データ326が更新される。より具体的には、上記設定入力用の画面において利用者に入力されたESSIDの値で、対応するAP設定データ326(図9の例では、第1AP設定データ326a)の設定済みESSID3261が更新される(また、このタイミングで、メインメモリ32上の更新後のAP設定データ326が保存用データメモリ34にコピーされる)。その後、上記ステップS11に戻り、処理が繰り返される。   In step S17, the AP setting data 326 is updated based on the content input by the user. More specifically, the set ESSID 3261 of the corresponding AP setting data 326 (first AP setting data 326a in the example of FIG. 9) is updated with the value of the ESSID input by the user on the setting input screen. (At this timing, the updated AP setting data 326 on the main memory 32 is copied to the storage data memory 34). Thereafter, the process returns to step S11 and the process is repeated.

一方、上記ステップS15の判定の結果、「設定変更」ボタンが選択されていないと判定された時は(ステップS15でNO)、次に、ステップS18において、「戻る」ボタン113が選択されたか否かが判定され、「戻る」ボタン113が選択されたと判定されたときは(ステップS18でYES)、上記ステップS11の処理に戻り、「戻る」ボタン113が選択されていないと判定されたときは(ステップS18でNO)、上記ステッ
プS14の処理に戻る。
On the other hand, if it is determined in step S15 that the “setting change” button has not been selected (NO in step S15), whether or not the “return” button 113 has been selected in step S18. If it is determined that the “return” button 113 has been selected (YES in step S18), the process returns to step S11, and if it is determined that the “return” button 113 has not been selected. (NO in step S18), the process returns to step S14.

次に、上記ステップS12の判定の結果、AP設定データ326a〜cに対応する3つの設定ボタン111のいずれもが選択されなかったと判定されたとき(ステップS12でNO)の処理について説明する。このときは、ステップS19において、優先順位の変更操作が行われたか否かが判定される。当該優先順位の変更操作とは、上述したような、設定ボタン111の並び順を入れ替えるように当該設定ボタン111のいずれかを上下方向にドラッグする操作である。ここではその一例として、上記図8において、設定ボタン111aが設定ボタン111bの位置までドラッグ操作された場合を例に説明する。当該判定の結果、優先順位の変更操作が行われたと判定されたときは(ステップS19でYES)、ステップS20において、そのドラッグ操作の内容に応じてAP設定データ326の内容を交換する。本例では、第1AP設定データ326aと第2AP設定データ326bの内容を交換する処理が実行される。続くステップS21において、ドラッグ操作に応じて表示内容の変更、すなわち、設定ボタン111の表示位置の変更も実行される。本例では、設定ボタン111aの表示位置と設定ボタン111bの表示位置を入れ替える処理が実行される。その後、上記ステップS11の処理に戻る。   Next, a process when it is determined that none of the three setting buttons 111 corresponding to the AP setting data 326a to 326c has been selected as a result of the determination in step S12 (NO in step S12) will be described. At this time, in step S19, it is determined whether or not a priority change operation has been performed. The priority order changing operation is an operation of dragging one of the setting buttons 111 in the vertical direction so as to change the arrangement order of the setting buttons 111 as described above. Here, as an example, a case where the setting button 111a is dragged to the position of the setting button 111b in FIG. 8 will be described as an example. As a result of the determination, when it is determined that an operation for changing the priority order has been performed (YES in step S19), the content of the AP setting data 326 is exchanged in accordance with the content of the drag operation in step S20. In this example, processing for exchanging the contents of the first AP setting data 326a and the second AP setting data 326b is executed. In the subsequent step S21, the display content is changed in accordance with the drag operation, that is, the display position of the setting button 111 is also changed. In this example, a process of switching the display position of the setting button 111a and the display position of the setting button 111b is executed. Thereafter, the process returns to step S11.

一方、上記ステップS19の判定の結果、優先順位の変更操作が行われなかったと判定されたときは(ステップS19でNO)、次に、ステップS22において、設定画面を終了する操作が行われたか否かが判定される。その結果、当該終了操作が行われていないと判定されたときは(ステップS22でNO)、上記ステップS11の処理に戻り、当該終了操作が行われたと判定されたときは(ステップS22でYES)、当該設定画面処理は終了する。   On the other hand, if it is determined in step S19 that the priority changing operation has not been performed (NO in step S19), next, in step S22, whether or not an operation for ending the setting screen has been performed. Is determined. As a result, when it is determined that the end operation has not been performed (NO in step S22), the process returns to step S11, and when it is determined that the end operation has been performed (YES in step S22). The setting screen process ends.

次に、上記図6のステップS5にかかる接続確立処理の詳細について説明する。図10〜図12は、当該接続確立処理の詳細を示すフローチャートである。まず、ステップS41において、変数nに”1”が設定される。この変数は、上記3つの「接続先」のいずれか一つ(AP設定データ326a〜cのうちのいずれか一つ)を指定するための変数である。たとえば、n=1であれば、第1AP設定データ326aが指定される。   Next, details of the connection establishment process according to step S5 in FIG. 6 will be described. 10 to 12 are flowcharts showing details of the connection establishment process. First, in step S41, “1” is set to the variable n. This variable is a variable for designating any one of the above three “connection destinations” (any one of the AP setting data 326a to 326c). For example, if n = 1, the first AP setting data 326a is designated.

次に、ステップS42において、第nAP設定データ(nは、上記変数nで示される数字)が参照され、設定済みESSID3261が保存されているか否かが判定される。つまり、未設定の状態であるか、(上述した設定画面処理によって)ESSIDが設定済みの状態であるかが判定される。当該判定の結果、第nAP設定データに設定済みESSID3261が保存されていないと判定されたときは(ステップS42でNO)、後述するステップS49に処理が進められる。一方、第nAP設定データに設定済みESSID3261が保存されていると判定されたときは(ステップS42でYES)、次のステップS43において、第nAP設定データに設定済みBSSID3262および設定済みチャネル番号3263が保存されているか否かが判定される。これはすなわち、過去に接続に成功した実績があるか否かを判定するものである。上述したように、本実施形態では、APとの接続に成功したときに、BSSIDおよび使用チャネル番号を保存するからである。   Next, in step S42, the n-th AP setting data (n is a number indicated by the variable n) is referred to and it is determined whether the set ESSID 3261 is stored. That is, it is determined whether it is an unset state or an ESSID is set (by the setting screen process described above). As a result of the determination, when it is determined that the set ESSID 3261 is not stored in the nAP setting data (NO in step S42), the process proceeds to step S49 described later. On the other hand, when it is determined that the set ESSID 3261 is stored in the nAP setting data (YES in step S42), the set BSSID 3262 and the set channel number 3263 are stored in the nAP setting data in the next step S43. It is determined whether or not it has been done. That is, it is determined whether there is a track record of successful connection in the past. As described above, in this embodiment, when the connection with the AP is successful, the BSSID and the used channel number are saved.

当該判定の結果、第nAP設定データに設定済みBSSID3262および設定済みチャネル番号3263が保存されていないと判定されたときは(ステップS43でNO)、後述のステップS49に処理が進められる。一方、第nAP設定データに設定済みBSSID3262および設定済みチャネル番号3263が保存されていると判定されたときは(ステップS43でYES)、続くステップS44において、当該設定済みチャネル番号3263で示される無線チャネルに対して、上記「同期スキャン」を実行する。より具体的には、当該設定済みチャネル番号3263で示される無線チャネルに対し、プローブ要
求フレームを送信する。当該プローブ要求フレームには、その検索対象のネットワーク(のID)として、上記設定済みESSID3261が設定される。なお、AP側においては、プローブ要求フレームを受信したときに、AP100は、自らの記憶媒体に記憶されているESSIDと、プローブ要求フレームに含まれるESSIDが一致するか否かを判別し、一致した場合には、TSFタイマ値を含むプローブ応答フレームを送信する。
As a result of the determination, when it is determined that the set BSSID 3262 and the set channel number 3263 are not stored in the nth AP setting data (NO in step S43), the process proceeds to step S49 described later. On the other hand, when it is determined that the set BSSID 3262 and the set channel number 3263 are stored in the nAP setting data (YES in step S43), the radio channel indicated by the set channel number 3263 in the subsequent step S44. Then, the above “synchronous scan” is executed. More specifically, a probe request frame is transmitted to the radio channel indicated by the set channel number 3263. In the probe request frame, the set ESSID 3261 is set as the network to be searched (its ID). On the AP side, when the probe request frame is received, the AP 100 determines whether the ESSID stored in its own storage medium matches the ESSID included in the probe request frame. In the case, a probe response frame including a TSF timer value is transmitted.

次に、ステップS45において、所定時間(例えば、予め設定されているチャネル監視時間)内に上記プローブ要求フレームに対するプローブ応答フレームを受信したか否かが判定される。その結果、所定時間内にプローブ応答フレームを受信しなかったと判定されたときは(ステップS45でNO)、後述のステップS49の処理に進む。一方、所定時間内にプローブ応答フレームを受信したと判定されたときは(ステップS45でYES)、次のステップS46において、上述したようなTSFタイマの同期処理が実行される。具体的には、まず、上記プローブ応答フレームに含まれているTSFタイマの値が抽出される。そして、当該TSFタイマの値にゲーム装置1側のタイマを合わせるという処理が実行される。   Next, in step S45, it is determined whether a probe response frame for the probe request frame has been received within a predetermined time (for example, a preset channel monitoring time). As a result, when it is determined that the probe response frame has not been received within the predetermined time (NO in step S45), the process proceeds to step S49 described later. On the other hand, when it is determined that the probe response frame has been received within the predetermined time (YES in step S45), the TSF timer synchronization process as described above is executed in the next step S46. Specifically, first, the value of the TSF timer included in the probe response frame is extracted. Then, a process of adjusting the timer on the game apparatus 1 side to the value of the TSF timer is executed.

TSFタイマの同期が終われば、次に、ステップS47において、AP100に対して上述した「直接接続」を試みる処理が実行される。より具体的には、まず、第nAP設定データに保存されている設定済みBSSID3262が取得される。次に、当該設定済みBSSID3262の値を宛先アドレスとして設定した接続確立のための各種フレーム(例えば、認証要求フレーム、接続要求フレーム等)が生成される。そして、第nAP設定データに保存されている設定済みチャネル番号3263で示される無線チャネルを使い、当該生成したフレームが送信される。この後、(AP100からの応答があれば)AP100との間で接続確立のための各種フレームの送受信が行われ、AP100と接続を確立するための処理が実行される。   When the synchronization of the TSF timer is finished, next, in step S47, a process of attempting the above-mentioned “direct connection” with respect to the AP 100 is executed. More specifically, first, the set BSSID 3262 stored in the nth AP setting data is acquired. Next, various frames (for example, an authentication request frame, a connection request frame, etc.) for establishing a connection are generated by setting the value of the set BSSID 3262 as a destination address. Then, the generated frame is transmitted using the radio channel indicated by the set channel number 3263 stored in the n-th AP setting data. Thereafter, if there is a response from the AP 100, various frames for establishing connection with the AP 100 are transmitted and received, and processing for establishing a connection with the AP 100 is executed.

次に、ステップS48において、上記「直接接続」を試みた結果、AP100との接続が確立したか否か(接続が成功したか否か)が判定される。その結果、接続が確立したと判定したときは(ステップS48でYES)、後述するステップS62の処理に進んだ後、本接続確立処理は終了する。   Next, in step S48, it is determined whether or not a connection with the AP 100 has been established (whether or not the connection has been successful) as a result of attempting the “direct connection”. As a result, when it is determined that a connection has been established (YES in step S48), the process proceeds to step S62 described later, and the connection establishment process ends.

一方、接続が確立しなかったと判定されたときは(ステップS48でNO)、ステップS49において、変数nの値が”3”か否かが判定される。つまり、3つの「接続先」すべてに対して直接接続を試みたか否かが判定される。その結果、変数nが”3”ではないと判定されたときは(ステップS49でNO)、ステップS50において、変数nに1が加算される。そして、上記ステップS42に戻り、処理が繰り返される。   On the other hand, when it is determined that the connection has not been established (NO in step S48), it is determined in step S49 whether or not the value of the variable n is “3”. That is, it is determined whether or not direct connection is attempted to all three “connection destinations”. As a result, when it is determined that the variable n is not “3” (NO in step S49), 1 is added to the variable n in step S50. And it returns to said step S42 and a process is repeated.

一方、当該判定の結果、変数nが”3”であると判定されたときは(ステップS49でYES)、3つのAP(接続先)の全てにおいて直接接続に失敗したと考えられるため、以降の処理で、パッシブスキャンを用いてAPを検索し、接続を試みる処理が実行される。具体的には、まず、図1のステップS51において、利用可能な無線チャネルの全てをパッシブスキャンしたか否かが判定される。その結果、まだ全ての無線チャネルをパッシブスキャンしていないと判定されたときは(ステップS51でNO)、ステップS52において、まだパッシブスキャンを行っていない無線チャネルが選択される。ここで、当該選択の順番(スキャンする順番)は任意である。例えば、チャネル1、2、3・・・13、という順番でスキャンしてもよいし、チャネル1、3、5・・・13、2、4、6・・・12、のように、奇数番号の無線チャネルを先にスキャンしてから偶数番号の無線チャネルをスキャンしてもよい。   On the other hand, if it is determined that the variable n is “3” as a result of the determination (YES in step S49), it is considered that direct connection has failed in all three APs (connection destinations). In the process, a process of searching for an AP using passive scan and attempting connection is executed. Specifically, first, in step S51 of FIG. 1, it is determined whether or not all the available radio channels have been passively scanned. As a result, when it is determined that all the radio channels are not yet passively scanned (NO in step S51), in step S52, a radio channel that has not yet been passively scanned is selected. Here, the selection order (scanning order) is arbitrary. For example, scanning may be performed in the order of channels 1, 2, 3,..., Or odd numbers such as channels 1, 3, 5,... 13, 2, 4, 6. The wireless channels of the even number may be scanned after the first wireless channel is scanned first.

次に、ステップS53において、当該選択された無線チャネルにおいてビーコンフレー
ムを受信するための待機を開始する処理が実行される(つまり、ビーコンフレームの待ち受けを開始する)。
Next, in step S53, processing for starting standby for receiving a beacon frame in the selected wireless channel is executed (that is, waiting for a beacon frame is started).

次に、ステップS54において、ビーコンフレームが受信されたか否かが判定される。その結果、ビーコンフレームが受信されていないと判定されたときは(ステップS54でNO)、ステップS55において、所定の待機時間(例えば200ms)が経過したか否かが判定される。その結果、当該待機時間が経過していないと判定されたときは(ステップS55でNO)、上記ステップS54に戻り、ビーコンフレームの待ち受けを継続する。   Next, in step S54, it is determined whether a beacon frame is received. As a result, when it is determined that a beacon frame has not been received (NO in step S54), it is determined in step S55 whether a predetermined standby time (for example, 200 ms) has elapsed. As a result, when it is determined that the standby time has not elapsed (NO in step S55), the process returns to step S54 and continues to wait for a beacon frame.

一方、ステップS54の判定の結果、ビーコンフレームを受信したと判定されたときは(ステップS54でYES)、ステップS56において、当該受信したビーコンフレームがビーコンデータm(mは1から始まる数字であり、1ずつカウントアップされるものとする)として一時記憶領域327に追加記憶される。そして、上記ステップS51に戻り、まだスキャンしていない他の無線チャネルをパッシブスキャンする処理が繰り返される。   On the other hand, when it is determined that the beacon frame has been received as a result of the determination in step S54 (YES in step S54), in step S56, the received beacon frame is the beacon data m (m is a number starting from 1, Is incremented one by one) and stored in the temporary storage area 327. Then, the process returns to step S51, and the process of passively scanning other radio channels that have not been scanned yet is repeated.

一方、上記ステップS51の判定の結果、全ての無線チャネルをパッシブスキャンしたと判定されたときは(ステップS51でYES)、次に、図12のステップS57において、変数nに”1”が設定される。続くステップS58において、一時記憶領域327に記憶されたビーコンデータ群の中に、第nAP設定データに保存されている設定済みESSID3261と同じESSIDを含むビーコンデータ329が記憶されているか否かが判定される。その結果、記憶されていると判定されたときは(ステップS58でYES)、次に、ステップS581において、TSFタイマを同期するための処理が実行される。具体的には、まず、上記の設定済みESSID3261と同じESSIDを含むビーコンデータ329に含まれているTSFタイマの値が抽出される。そして、当該TSFタイマの値にゲーム装置1側のタイマを合わせるという処理が実行される。   On the other hand, if it is determined in step S51 that all radio channels have been passively scanned (YES in step S51), next, in step S57 of FIG. 12, "1" is set to the variable n. The In subsequent step S58, it is determined whether or not beacon data 329 including the same ESSID as the already set ESSID 3261 stored in the nth AP setting data is stored in the beacon data group stored in the temporary storage area 327. The As a result, when it is determined that it is stored (YES in step S58), in step S581, a process for synchronizing the TSF timer is executed. Specifically, first, the value of the TSF timer included in the beacon data 329 including the same ESSID as the set ESSID 3261 is extracted. Then, a process of adjusting the timer on the game apparatus 1 side to the value of the TSF timer is executed.

次に、ステップS59において、上記ビーコンデータ329に含まれている受信BSSID3292を取得し、当該受信BSSID3292を宛先として設定した接続要求用のフレームを生成する。そして、当該ビーコンデータ329に含まれている受信チャネル番号3293で示される無線チャネルを使って、上記生成したフレームを送信することで、APに対して接続要求を行う。その後、APとの間で接続確立のための各種フレームの送受信が行われる。   Next, in step S59, the received BSSID 3292 included in the beacon data 329 is acquired, and a connection request frame in which the received BSSID 3292 is set as a destination is generated. Then, a connection request is made to the AP by transmitting the generated frame using the wireless channel indicated by the reception channel number 3293 included in the beacon data 329. Thereafter, transmission and reception of various frames for establishing a connection with the AP is performed.

次に、ステップS60において、APとの接続が確立(成功)したか否かが判定される。その結果、APとの接続が確立しなかったと判定されたときは(ステップS60でNO)、後述のステップS63に処理が進められる。一方、APとの接続が確立したと判定されたときは(ステップS60でYES)、次のステップS61において、今回のAPとの接続に使用した無線チャネルの番号およびBSSIDを、第nAP設定データに保存する。すなわち、今回のAPとの接続に使用した無線チャネルの番号を第nAP設定データの設定済みチャネル番号3263として保存し、今回のAPとの接続に使用したBSSIDを第nAP設定データの設定済みBSSID3262として保存する。そして、続くステップS62において、接続成功フラグ328がオンに設定され、本接続確立処理を終了する。   Next, in step S60, it is determined whether or not the connection with the AP has been established (successful). As a result, when it is determined that the connection with the AP has not been established (NO in step S60), the process proceeds to step S63 described later. On the other hand, when it is determined that the connection with the AP has been established (YES in step S60), in the next step S61, the radio channel number and BSSID used for the connection with the current AP are stored in the nth AP setting data. save. That is, the number of the radio channel used for connection with the current AP is stored as the set channel number 3263 of the nth AP setting data, and the BSSID used for connection with the current AP is set as the set BSSID 3262 of the nth AP setting data. save. In subsequent step S62, the connection success flag 328 is set to ON, and this connection establishment process is terminated.

一方、上記ステップS58の判定の結果、第nAP設定データに保存されている設定済みESSID3261と同じESSIDを含むビーコンデータ329が一時記憶領域327に記憶されていないと判定されたとき(ステップS58でNO)、あるいは、上記ステップS60でAPとの接続に失敗したと判定されたときは(ステップS60でNO)、ス
テップS63において、変数nが”3”であるか否かが判定される。その結果、変数nが”3”ではないと判定されたときは(ステップS63でNO)、ステップS64において、変数nに1が加算され、上記ステップS58に戻って処理が繰り返される。
On the other hand, as a result of the determination in step S58, when it is determined that the beacon data 329 including the same ESSID as the set ESSID 3261 stored in the nth AP setting data is not stored in the temporary storage area 327 (NO in step S58). ) Alternatively, if it is determined in step S60 that the connection with the AP has failed (NO in step S60), it is determined in step S63 whether or not the variable n is “3”. As a result, when it is determined that the variable n is not “3” (NO in step S63), 1 is added to the variable n in step S64, and the process returns to step S58 and is repeated.

一方、変数nが”3”であると判定されたときは(ステップS63でYES)、上記3つの「接続先」として設定されているAPのいずれもが見つからなかったと考えられる。この場合は、ステップS65において、ネットワークに接続できない旨のエラーメッセージを画面に表示する処理が実行される。そして、続くステップS66において、接続成功フラグ328がオフに設定され、本接続確立処理が終了する。以上で、第1の実施形態にかかる接続確立処理の詳細説明を終了する。   On the other hand, when it is determined that the variable n is “3” (YES in step S63), it is considered that none of the three APs set as “connection destinations” has been found. In this case, in step S65, a process for displaying on the screen an error message indicating that connection to the network is not possible is executed. In subsequent step S66, the connection success flag 328 is set to OFF, and the connection establishment process is terminated. This is the end of the detailed description of the connection establishment process according to the first embodiment.

このように、第1の実施形態では、ゲーム装置1とAP100との無線接続の成功時に、そのときの無線通信に用いられている(AP100の)BSSIDと使用チャネル情報をゲーム装置1に保存しておく。そして、以降の接続確立処理に際しては、各チャネルについてアクティブスキャンやパッシブスキャンを行うことなく、当該保存済みの情報を用いて、AP100との接続確立を試みる。これにより、上記AP100や他の接続対象装置との接続にかかる時間を低減することができる。   As described above, in the first embodiment, when the wireless connection between the game apparatus 1 and the AP 100 is successful, the BSSID (of the AP 100) used for the wireless communication at that time and the used channel information are stored in the game apparatus 1. Keep it. In the subsequent connection establishment process, connection establishment with the AP 100 is attempted using the stored information without performing active scan or passive scan for each channel. Thereby, the time required for the connection with the AP 100 and other connection target devices can be reduced.

また、上記保存済みの情報を用いて、AP100との接続確立を試みるのに際して、上述したような同期スキャンを行ってTSFタイマの同期を行うようにしている。これにより、接続の確実性をより高めている。   Further, when attempting to establish a connection with the AP 100 using the stored information, the TSF timer is synchronized by performing the synchronous scan as described above. Thereby, the certainty of connection is further improved.

なお、上述した実施形態では、接続先となるAPの設定の保存数が3つの場合を例に挙げたが(第1AP設定データ326a〜326c)、当該保存数は3つだけの場合に限るものではなく、4つ以上保存できるようにしても良い。また、優先度が最も高いものを1つだけ(つまり、第1AP設定データ326aのみ)保存できるようにしてもよい。保存数を1つだけとした場合は、第1AP設定データを用いた直接接続に失敗したとき(上記ステップS48でNO)は、上記図11のステップS51の処理に進めるようにすればよい。また、パッシブスキャンを行った結果、上記ステップS57以降の処理において、第1AP設定データ326aのESSIDを含むビーコンが見つからなかったとき(ステップS58でNO)、および、含まれてはいたが、接続確立には失敗した場合(ステップS60でNO)は、ステップS65の処理に進めるようにすればよい。   In the above-described embodiment, the case where the number of saved AP settings as connection destinations is three as an example (first AP setting data 326a to 326c). However, the number of saves is limited to only three. Instead, four or more may be stored. Further, only one with the highest priority (that is, only the first AP setting data 326a) may be stored. When the number of saved items is only one, when the direct connection using the first AP setting data fails (NO in step S48), the process may proceed to step S51 in FIG. In addition, as a result of the passive scan, when the beacon including the ESSID of the first AP setting data 326a is not found in the processing after step S57 (NO in step S58) and is included, the connection is established. If it fails (NO in step S60), the process may proceed to step S65.

また、上述の実施形態では、ネットワーク構成の例として、いわゆるインフラストラクチャ・モードのネットワーク構成を挙げたが、これに限らず、いわゆるアドホック・モードのネットワーク構成にも本発明は適用可能である。例えば、兄弟がそれぞれ有しているゲーム装置1を家庭内においてアドホック・モードで相互に接続するような場合にも適用可能である。アドホック・モードにおいても、上述したようなビーコンフレームやプローブ応答フレームは送信されるためである。   In the above-described embodiment, a so-called infrastructure mode network configuration is given as an example of the network configuration. However, the present invention is not limited to this, and the present invention can also be applied to a so-called ad hoc mode network configuration. For example, the present invention can also be applied to a case where game devices 1 respectively owned by brothers are connected to each other in an ad hoc mode at home. This is because the above-described beacon frame and probe response frame are transmitted even in the ad hoc mode.

また、上記実施形態では、通信規格としてIEEE802.11規格を例として説明したが、これに限らず、他の無線通信方式を用いる場合にも本発明は適用可能である。この場合、上述したESSID、BSSID、使用チャネルという要素については、これらと同等の意味を持つ識別子や周波数帯域を示す要素に置き換えて適用すればよい。   In the above-described embodiment, the IEEE 802.11 standard is described as an example of the communication standard. However, the present invention is not limited to this, and the present invention can be applied to the case where another wireless communication method is used. In this case, the above-described elements such as ESSID, BSSID, and used channel may be replaced with elements having an equivalent meaning and elements indicating frequency bands.

また、上記実施形態では、ゲーム装置1の例として携帯型ゲーム装置を例としていたが、これに限らず、無線通信可能な据置型のゲーム装置の場合でも適用可能である。また、その他、無線通信が可能なパーソナルコンピュータや、PDA(Personal Digital Assistant)やスマートフォン等に代表される各種携帯型情報端末で無線通信が可能なものに対しても適用可能である。   In the above embodiment, a portable game device is taken as an example of the game device 1, but the present invention is not limited to this, and the present invention can be applied to a stationary game device capable of wireless communication. In addition, the present invention can also be applied to personal computers capable of wireless communication, personal digital assistants (PDAs), various portable information terminals represented by smartphones, and the like that can perform wireless communication.

また、上述した実施形態においては、図11のステップS51〜S56の処理において、パッシブスキャンを用いた場合を例に挙げたが、当該処理において、パッシブスキャンではなくアクティブスキャンを用いてもよい。この場合は、ビーコンフレームの代わりにプローブ応答フレームが用いられることになる。   In the above-described embodiment, the case where the passive scan is used in the processing of steps S51 to S56 in FIG. 11 is described as an example. However, in the processing, active scanning may be used instead of passive scanning. In this case, a probe response frame is used instead of the beacon frame.

また、上述の実施形態では、3つのAP設定を保存し、これらに優先順位を設けていた。そして、上記図8の例で言うと、「接続先1」との接続に失敗したときは、「接続先2」、更には「接続先3」への接続を試みていた。このような制御方法に限らず、「接続先1」との接続に失敗した時点で、他の設定済みのAP(ここでは「接続先2」および「接続先3」)との接続は試みずに、この時点でエラーを表示して(例えば、図12のステップS60でNOのとき、ステップS65の処理に進める)、接続確立処理を終了するようにしてもよい。   Further, in the above-described embodiment, three AP settings are stored, and priorities are set for them. In the example of FIG. 8 described above, when connection to “connection destination 1” fails, connection to “connection destination 2” and further to “connection destination 3” is attempted. Not limited to such a control method, when connection with “connection destination 1” fails, connection with other set APs (here, “connection destination 2” and “connection destination 3”) is not attempted. In addition, an error may be displayed at this time (for example, if NO in step S60 of FIG. 12, the process proceeds to step S65), and the connection establishment process may be terminated.

また、優先順位に関して、上記設定画面(図8参照)における各設定の優先順位の変更操作として、上述の実施形態ではドラッグ操作の場合を一例に挙げたが、ドラッグ操作以外の操作、例えば、方向入力ボタン14Aでの上下方向の入力に応じて優先順位を入れ替えるようにしてもよいし、優先順位番号を直接的に入力、あるいは指定可能としても良い。   In addition, regarding the priority order, as an operation for changing the priority order of each setting on the setting screen (see FIG. 8), in the above-described embodiment, the case of the drag operation is given as an example. The priority order may be switched according to the input in the up and down direction with the input button 14A, or the priority order number may be directly input or designated.

また、上記実施形態では、例えば、「接続先1」について、ESSIDは保存されているがBSSIDおよび使用チャネルが記憶されていないときは(図10のステップS43でNOの場合)、優先順位に従って「接続先2」への直接接続を試みるという処理を行っていた。これに限らず、このような場合は、次の優先順位である「接続先2」への直接接続を試みる前に、当該「接続先1」を対象としてパッシブスキャンあるいはアクティブスキャンを行うようにしてもよい。すなわち、「接続先1」のESSIDを有するAPを検索するようにしてもよい(例えば、上記図11のステップS51〜S61の処理を行う)。そして、その結果、当該APが検索でき、接続が確立すれば、その時点でBSSIDおよび使用チャネルを保存するようにしてもよい。これは、例えば、「接続先1」については、ESSID、BSSID、使用チャネルの全てが設定済みであり、「接続先2」についてはESSIDのみ設定済みのような状態があったとする。そして、当該「接続先1」と「接続先2」の優先順位を入れ替えたような場合は、優先順位の高い「接続先1」については、ESSIDしか設定されていないという状況となる。このような場合に、「接続先1」へ直接接続できなかった場合でも、設定済みのESSIDを用いてパッシブスキャンあるいはアクティブスキャンを行うことで、「接続先1」への接続を確立することが可能となる。これにより、「接続先1」の設定が不十分だった場合でも、むやみに低順位のAPに接続しにいくことを防ぐことができる。   In the above-described embodiment, for example, when the ESSID is stored for “connection destination 1” but the BSSID and the channel used are not stored (NO in step S43 in FIG. 10), “ A process of attempting a direct connection to “connection destination 2” was performed. Not limited to this, in such a case, before attempting a direct connection to “connection destination 2” which is the next priority, a passive scan or an active scan is performed on the “connection destination 1”. Also good. That is, an AP having the ESSID of “connection destination 1” may be searched (for example, the processes in steps S51 to S61 in FIG. 11 are performed). As a result, if the AP can be searched and a connection is established, the BSSID and the used channel may be stored at that time. For example, it is assumed that for “connection destination 1”, all of the ESSID, BSSID, and used channel have been set, and for “connection destination 2”, only the ESSID has been set. Then, when the priorities of the “connection destination 1” and “connection destination 2” are switched, only the ESSID is set for the “connection destination 1” having a higher priority. In such a case, even if the connection to the “destination 1” cannot be made directly, the connection to the “destination 1” can be established by performing a passive scan or an active scan using the set ESSID. It becomes possible. Thereby, even when the setting of “connection destination 1” is insufficient, it is possible to prevent unnecessarily connecting to a lower-order AP.

また、上記BSSIDや使用チャネル番号を保存するタイミングに関して、例えば、上記設定画面においてESSIDを設定したときに、当該ESSIDを有するAPとの接続を試行するようにしてもいい。そして、この時点で接続に成功すれば、この時点でBSSIDおよび使用チャネル番号も保存するようにすればいい。つまり、設定画面処理において、ESSIDの他、BSSIDおよび使用チャネル番号をも取得して保存するようにしてもよい。これにより、設定画面を用いた設定後、初回の接続確立処理の時点で、上記「直接接続」が可能となる。   Further, regarding the timing for storing the BSSID and the channel number used, for example, when an ESSID is set on the setting screen, connection with an AP having the ESSID may be attempted. If the connection is successful at this point, the BSSID and the used channel number may be saved at this point. That is, in the setting screen process, in addition to ESSID, BSSID and used channel number may be acquired and stored. As a result, after the setting using the setting screen, the “direct connection” can be performed at the time of the first connection establishment process.

また、上記設定画面においては、ESSIDの他、BSSIDおよび使用チャネル番号を表示する場合を例に挙げていたが(上記図9参照)、BSSID、使用チャネル番号については表示しなくてもよい。   In the setting screen, the case where the BSSID and the used channel number are displayed in addition to the ESSID is taken as an example (see FIG. 9), but the BSSID and the used channel number may not be displayed.

更には、AP設定が既に行われているか否かの判定として、上記図10のステップS42の処理においては、AP設定データ326にESSIDが保存されているか否かを判定し、ステップS43の処理においては、BSSIDと使用チャネル番号が保存されているか否かを判定していた。つまり、データの存在の有無をもって判定するようにしていた。しかし、この他、例えば「設定済みフラグ」のような所定のフラグを設けておき、AP設定の保存時に、当該フラグをオンに設定して保存用データメモリ34に記憶するようにしてもよい。そして、上記ステップS42または/およびステップS43の判定においては、当該フラグがオンに設定されているか否かをもって、AP設定が既に行われているか否かを判定するようにしてもよい。   Further, as a determination of whether or not the AP setting has already been performed, in the process of step S42 in FIG. 10, it is determined whether or not the ESSID is stored in the AP setting data 326, and the process of step S43 is performed. Had determined whether the BSSID and the used channel number were stored. That is, the determination is made based on the presence or absence of data. However, other than this, for example, a predetermined flag such as a “set flag” may be provided, and when the AP setting is stored, the flag may be set to ON and stored in the storage data memory 34. In the determination in step S42 and / or step S43, it may be determined whether the AP setting has already been performed based on whether the flag is set to ON.

また、上記実施形態では、使用チャネル番号をAP設定データ326に含めて保存するようにしていたが、これを保存することは必ずしも必須ではなく、例えば、無線通信に使用する使用帯域が予め固定されているような場合(使用チャネル番号が予め1つだけしかないような場合)は、使用チャネル番号については保存しなくてもよい。   In the above embodiment, the used channel number is included in the AP setting data 326 and stored. However, it is not always necessary to store this, for example, the used band used for wireless communication is fixed in advance. In such a case (when there is only one used channel number in advance), the used channel number may not be stored.

また、設定済みのAPとの接続に失敗した際、当該APに関連して保存済みの設定済みBSSID3262および設定済みチャネル番号3263については消去するようにしてもよい。また、消去する場合については、好ましくは、接続失敗回数をカウントするようにし、失敗カウントが所定数に達したときに消去することが好ましい。   Further, when the connection with the already set AP fails, the already set BSSID 3262 and the set channel number 3263 that are stored in association with the AP may be deleted. In the case of erasing, preferably, the number of connection failures is counted, and erasing is preferably performed when the failure count reaches a predetermined number.

(第2の実施形態)
次に、本発明の第2の実施形態にかかるゲーム装置およびその処理について説明する。第2の実施形態にかかるゲーム装置の機能ブロック図およびハードウェア構成を示すブロック図は、第1の実施形態と同様である(図2および図3参照)。また、ネットワーク構成も同様であるとする(図1参照)。しかし、本実施形態では、メインメモリ32には第1の実施形態とは部分的に異なるプログラムが格納され、CPU31はそのプログラムを実行することにより、第1の実施形態とは異なる機能をも実現する。
(Second Embodiment)
Next, a game device and its processing according to the second embodiment of the present invention will be described. A functional block diagram and a block diagram showing a hardware configuration of the game apparatus according to the second embodiment are the same as those in the first embodiment (see FIGS. 2 and 3). The network configuration is also the same (see FIG. 1). However, in the present embodiment, the main memory 32 stores a program that is partially different from that of the first embodiment, and the CPU 31 executes the program to realize functions different from those of the first embodiment. To do.

次に、第2の実施形態における処理の概要を説明する。第1の実施形態においては、上述したような接続確立処理における「同期スキャン」(上記図10のステップS44〜S46参照)が毎回実行される構成となっていた。これに対して、第2の実施形態では、例えば、ゲーム装置1の電源が投入された後、初めて当該「同期スキャン」が実行されてAPとゲーム装置1とのTSFタイマの同期がとられた後は、当該ゲーム装置1の電源が切断されるまでの間は、上記接続確立処理における「同期スキャン」の実行を省略するという構成を採る。これは、一旦TSFタイマの同期がとられれば、その後しばらくの間は、APとゲーム装置1との間でTSFタイマのズレは生じないと考えられるため、この間については同期スキャンにかかる処理を省略しようとするものである。   Next, an outline of processing in the second embodiment will be described. In the first embodiment, the “synchronous scan” (see steps S44 to S46 in FIG. 10) in the connection establishment process as described above is executed every time. On the other hand, in the second embodiment, for example, after the power of the game apparatus 1 is turned on, the “synchronized scan” is executed for the first time, and the TSF timers of the AP and the game apparatus 1 are synchronized. After that, until the game apparatus 1 is turned off, the “synchronous scan” in the connection establishment process is omitted. This is because once the TSF timer is synchronized, it is considered that the TSF timer does not shift between the AP and the game apparatus 1 for a while, and therefore, the process related to the synchronous scan is omitted during this period. It is something to try.

図13は、第2の実施形態にかかるメインメモリ32のメモリマップを示す図である。なお、当該実施形態に係るメモリマップは、上述した第1の実施形態で図5を用いて説明したメモリマップの一時記憶領域327に同期スキャン済みフラグ330を加えたものに相当する。また、接続確立処理プログラム324は、後述するように、その処理内容の一部が第1の実施形態とは異なるものとなっている。その他のプログラムやデータは、第1の実施形態と同様である。従って、同期スキャン済みフラグ330以外のプログラムやデータについては同一の参照符号を付して詳細な説明を省略する。   FIG. 13 is a diagram showing a memory map of the main memory 32 according to the second embodiment. Note that the memory map according to this embodiment corresponds to the memory map temporary storage area 327 described with reference to FIG. 5 in the first embodiment described above and the synchronous scanned flag 330 added. In addition, as will be described later, the connection establishment processing program 324 is partly different from that of the first embodiment. Other programs and data are the same as those in the first embodiment. Therefore, programs and data other than the synchronously scanned flag 330 are denoted by the same reference numerals and detailed description thereof is omitted.

同期スキャン済みフラグ330は、上述したような「同期スキャン」を実行して、上記TSFタイマの同期が済んでいるか否かを示すためのフラグである。当該フラグがオフに設定されているときは、「同期スキャン」が一度も実行されていないことを示し、オンに設定されているときは、「同期スキャン」が行われ、TSFタイマの同期にも成功したこ
とを示す。換言すれば、当該フラグは、「同期スキャン」およびTSFタイマの同期の必要性の有無を示すフラグでもある。
The synchronous scan completed flag 330 is a flag for indicating whether or not the TSF timer has been synchronized by executing the “synchronous scan” as described above. When the flag is set to OFF, it indicates that “synchronous scan” has never been executed. When it is set to ON, “synchronous scan” is performed, and the TSF timer is also synchronized. Indicates success. In other words, the flag is also a flag indicating whether or not the “synchronous scan” and the TSF timer need to be synchronized.

ここで、本実施形態では、ゲーム装置1の電源がオンにされたときに当該フラグを記憶するための領域がメインメモリ32上に確保され、ゲーム装置1の電源がオフにされるまでの間、当該領域が保持され続けるものとして説明する。すなわち、同期スキャン済みフラグ330の保持期間を、ゲーム装置1の電源がオンにされたときから、ゲーム装置1の電源がオフにされるときまでの間を一例として説明する。なお、当該同期スキャン済みフラグ330の保持期間については、ゲーム装置1の電源オン〜オフまでの間の他、例えば、所定のゲーム処理の起動時〜終了時のような期間であってもよい。すなわち、ゲーム装置1起動時の初期メニューから所定のゲーム処理を実行したときに、当該ゲーム処理の初期化処理の一環として同期スキャン済みフラグ330の領域確保や初期設定を行い、当該ゲーム処理が終了したときに、同期スキャン済みフラグ330をメインメモリ32から消去するようにしてもよい。そして、他のゲーム処理が起動された際に、再度上記のような同期スキャン済みフラグ330の領域確保や初期設定を行うようにしてもよい。   Here, in the present embodiment, an area for storing the flag is secured on the main memory 32 when the power of the game apparatus 1 is turned on, and until the power of the game apparatus 1 is turned off. In the following description, it is assumed that the area is held. In other words, the holding period of the synchronously scanned flag 330 will be described as an example from the time when the game apparatus 1 is turned on until the time when the game apparatus 1 is turned off. It should be noted that the holding period of the synchronously scanned flag 330 may be a period from when the game apparatus 1 is turned on to off, for example, from when the predetermined game process is started to when it is ended. That is, when a predetermined game process is executed from the initial menu when the game apparatus 1 is activated, the area of the synchronously scanned flag 330 is secured and initialized as part of the initialization process of the game process, and the game process ends. In this case, the synchronously scanned flag 330 may be deleted from the main memory 32. Then, when another game process is activated, the area of the synchronously scanned flag 330 as described above may be secured or the initial setting may be performed again.

次に、第2の実施形態にかかる接続関連処理の詳細について説明する。本実施形態における接続関連処理は、第1の実施形態で上述した図10のフローチャートにおける処理を一部変更したものであり、その他の処理については、第1の実施形態と同様である(但し、上記のように、ゲーム装置1の起動時に上記同期スキャン済みフラグ330の領域確保・初期設定の処理は実行される)。   Next, details of the connection-related processing according to the second embodiment will be described. The connection-related processing in this embodiment is a partial modification of the processing in the flowchart of FIG. 10 described above in the first embodiment, and the other processing is the same as in the first embodiment (however, As described above, when the game apparatus 1 is activated, the process of securing and initializing the area of the synchronously scanned flag 330 is executed).

図14は、第2の実施形態にかかる接続確立処理のうちの一部分を示すフローチャートである。なお、このフローチャートのうちステップS41〜S43、S44〜S46、および、S47以降は、上述した第1の実施形態における図10に示したフローチャートと同一であり、両フローチャートにおいて同一のステップには同一の符号が付されている。以下では、本実施形態におけるステップS201、S202にかかる処理を中心に説明する。   FIG. 14 is a flowchart illustrating a part of the connection establishment processing according to the second embodiment. In this flowchart, steps S41 to S43, S44 to S46, and S47 and subsequent steps are the same as the flowchart shown in FIG. 10 in the first embodiment described above, and the same steps are the same in both flowcharts. The code | symbol is attached | subjected. Below, it demonstrates centering on the process concerning step S201, S202 in this embodiment.

図14において、ステップS43の処理(ステップS43でYESのとき)の次に、ステップS201において、同期スキャン済みフラグ330がオンに設定されているか否かが判定される。当該判定の結果、オフに設定されていると判定されたときは(ステップS201でNO)、ゲーム装置1の電源投入後、一度も同期スキャンが実行されていないこととなる。そのため、第1の実施形態で上述したようなステップS44〜ステップS46の処理を実行することで、同期スキャンを行い、TSFタイマを同期するための処理が実行される。TSFタイマの同期が終われば、次に、ステップS202において、同期スキャン済みフラグ330にオンが設定される。その後、第1の実施形態で上述したようなステップS47以降の処理が実行される。   In FIG. 14, after the process of step S43 (when YES in step S43), it is determined in step S201 whether or not the synchronously scanned flag 330 is set to ON. As a result of the determination, if it is determined that the game apparatus 1 is set to OFF (NO in step S201), the synchronous scan has never been executed after the game apparatus 1 is turned on. Therefore, by executing the processing of step S44 to step S46 as described above in the first embodiment, a synchronous scan is performed, and processing for synchronizing the TSF timer is executed. When the synchronization of the TSF timer is finished, next, in step S202, the synchronization scanned flag 330 is set to ON. Thereafter, the processing after step S47 as described above in the first embodiment is executed.

一方、上記ステップS201の判定の結果、同期スキャン済みフラグ330がオンに設定されていると判定されたときは(ステップS201でYES)、ゲーム装置の電源投入後、一度「同期スキャン」が行われ、TSFタイマが同期済みであることとなる。つまり、この時点ではTSFタイマを同期する必要はないため、このときは、上記ステップS44〜S46、S202の処理はスキップされて、ステップS47へと処理が進められることとなる。以降は、基本的には、上記第1の実施形態で説明したのと同様の処理が実行される。但し、上記ステップS581にて時刻同期が行われた後に、同期スキャン済みフラグ330をオンに設定し、上述したような、AP100への接続要求が行われる。   On the other hand, as a result of the determination in step S201, when it is determined that the synchronous scan completed flag 330 is set to ON (YES in step S201), “synchronous scan” is performed once after the game apparatus is turned on. , The TSF timer is already synchronized. That is, since it is not necessary to synchronize the TSF timer at this time, the processes in steps S44 to S46 and S202 are skipped and the process proceeds to step S47. Thereafter, basically the same processing as that described in the first embodiment is executed. However, after the time synchronization is performed in step S581, the synchronous scan completed flag 330 is set to ON, and the connection request to the AP 100 as described above is performed.

このように、第2の実施形態では、接続確立処理の度に毎回「同期スキャン」を行わずに、所定の期間(ゲーム装置の電源オン〜オフ、ゲーム処理の起動〜終了等)の間は、最
初に一度「同期スキャン」によりTSFタイマが同期されれば、その後は当該期間終了までは「同期スキャン」にかかる処理を省略している。これにより、当該所定の期間における2度目以降の接続確立処理において、その接続確立にかかる時間を更に短縮することが可能となる。
As described above, in the second embodiment, the “synchronous scan” is not performed every time the connection establishment process is performed, and during a predetermined period (power on / off of the game device, start / end of the game process, etc.). When the TSF timer is synchronized once by “synchronous scan” for the first time, the process related to “synchronous scan” is omitted until the end of the period. As a result, in the second and subsequent connection establishment processes in the predetermined period, it is possible to further shorten the time required for the connection establishment.

(第3の実施形態)
次に、本発明の第3の実施形態にかかるゲーム装置およびその処理について説明する。上述の第2の実施形態では、所定の期間を単位として、同期スキャンの必要性の有無を同期スキャン済みフラグ330を用いて判断していた。これに対して、第3の実施形態では、TSFタイマの値をハードウェア的に保持可能な構成を採ることで、上述したような同期スキャンにかかる処理を不要とするものである。
(Third embodiment)
Next, a game apparatus and its processing according to the third embodiment of the present invention will be described. In the above-described second embodiment, the presence / absence of the necessity of synchronous scanning is determined using the synchronous scanned flag 330 in units of a predetermined period. On the other hand, in the third embodiment, by adopting a configuration in which the value of the TSF timer can be held in hardware, the processing related to the synchronous scan as described above is unnecessary.

図15は、第3の実施形態にかかるゲーム装置1の内部構成の一例を示すブロック図である。第3の実施形態に係るゲーム装置1は、上述した第1の実施形態で図3を用いて説明したゲーム装置1の機能構成にTSFカウンタ51を加えたものに相当し、他の構成部は、第1の実施形態と同様である。従って、TSFカウンタ51以外の構成部については同一の参照符号を付して詳細な説明を省略する。   FIG. 15 is a block diagram illustrating an example of an internal configuration of the game apparatus 1 according to the third embodiment. The game apparatus 1 according to the third embodiment is equivalent to the functional configuration of the game apparatus 1 described with reference to FIG. 3 in the first embodiment described above, and the TSF counter 51 is added. This is the same as in the first embodiment. Therefore, components other than the TSF counter 51 are denoted by the same reference numerals, and detailed description thereof is omitted.

TSFカウンタ51は、上述したようなTSFタイマの値を保持するためのカウンタであり、例えば、計時専用のチップで実現される。また、TSFカウンタ51は、ゲーム装置1の電源が切られている間も内蔵電池から電源供給を受けて動作可能である。また、本実施形態では、上述したような3つのAPが接続先として設定されている場合は、最も優先度の高い接続先、例えば、上記図8の「接続先1」で示されるAPを対象としたTSFタイマの値のみを保持するものとする。そのため、一旦「接続先1」で示されるAPとの間でTSFタイマの同期が行われれば、その後は、ハードウェア的にTSFタイマがカウントされていき、当該APのTSFタイマと同じ値を保持し続けることが可能となっている。「接続先2」「接続先3」で示されるAPについても、TSFタイマの値を保持するようにしても良い。この場合、各APのビーコンから得られたTSFタイマの値と、TSFカウンタ51の値との差分値をAP毎に保存しておく。接続処理のたびに、上記差分値とTSFカウンタ51の値からTSFタイマの値を算出することで、同期が可能となる。   The TSF counter 51 is a counter for holding the value of the TSF timer as described above, and is realized, for example, by a chip dedicated to timing. Further, the TSF counter 51 can operate by receiving power from the built-in battery while the game apparatus 1 is powered off. In the present embodiment, when three APs as described above are set as connection destinations, the connection destination with the highest priority, for example, the AP indicated by “connection destination 1” in FIG. 8 is targeted. Only the value of the TSF timer is stored. For this reason, once the TSF timer is synchronized with the AP indicated by “Destination 1”, the TSF timer is counted in hardware thereafter, and the same value as the TSF timer of the AP is held. It is possible to continue. The values of the TSF timer may be held for the APs indicated by “connection destination 2” and “connection destination 3”. In this case, the difference value between the value of the TSF timer obtained from the beacon of each AP and the value of the TSF counter 51 is stored for each AP. Synchronization is possible by calculating the value of the TSF timer from the difference value and the value of the TSF counter 51 for each connection process.

次に、第3の実施形態における接続確立処理について説明する。上述のようなTSFカウンタ51を用いることで、第3の実施形態においては、上記「同期スキャン」にかかる処理を省略することが可能となる。図16は、第3の実施形態にかかる接続確立処理のうちの一部分を示すフローチャートである。当該フローチャートは、第1の実施形態で上述した図10のフローチャートからステップS44〜S46の処理を省いた内容となっている。すなわち、図16のステップS43でYESと判断されたときは、次に、ステップS47の処理において、上記TSFカウンタ51の値を取得することで、各種フレームの送受信のタイミングを調整して直接接続を試みる。また、第3の実施形態では、ステップS581にて時刻同期が行われた後に、当該受信したビーコンに含まれるTSFタイマ値をTSFカウンタ51に記憶する処理も実行される。   Next, a connection establishment process in the third embodiment will be described. By using the TSF counter 51 as described above, in the third embodiment, it is possible to omit the processing related to the “synchronous scan”. FIG. 16 is a flowchart showing a part of the connection establishment processing according to the third embodiment. The flowchart is a content in which steps S44 to S46 are omitted from the flowchart of FIG. 10 described above in the first embodiment. That is, when YES is determined in step S43 in FIG. 16, next, in the process of step S47, the value of the TSF counter 51 is acquired, thereby adjusting the transmission / reception timing of various frames and performing direct connection. Try. Further, in the third embodiment, after time synchronization is performed in step S581, processing for storing the TSF timer value included in the received beacon in the TSF counter 51 is also executed.

このように、第3の実施形態では、上記のようなTSFカウンタ51をハードウェア的に備えることで、「同期スキャン」にかかる処理が不要となる。この構成は、据置型ゲーム装置のように、常時、電力が供給可能(いわゆる省電力モードを含む)な環境にある通信端末に対して適用する場合に特に有用である。   As described above, according to the third embodiment, the TSF counter 51 as described above is provided in hardware, so that the process related to the “synchronous scan” becomes unnecessary. This configuration is particularly useful when applied to a communication terminal in an environment where power can be supplied constantly (including a so-called power saving mode), such as a stationary game apparatus.

なお、上記の例では、計時専用チップであるTSFカウンタ51を、同じく計時専用チップであるRTC39とは別に設けた構成を例に挙げたが、この他、例えば、上記RTC39の値を利用してTSFタイマの値を算出するようにしてもよい。例えば、上記APと
同期したときの時刻をRTC39から取得し、保存用データメモリ34に「初回同期時刻」として保存する。そして、次回以降に当該APと接続確立しようとする際は、まず、そのときの時刻(現在時刻)をRTC39から取得する。次に、当該取得した時刻と上記「初回同期時刻」との差分(つまり、初回同期時刻からの経過時間)を算出し、この値に基づいて、TSFタイマの値を決定するようにしてもよい。
In the above example, the TSF counter 51, which is a timekeeping chip, is provided as an example separately from the RTC39, which is also a timekeeping chip. However, for example, by using the value of the RTC39, for example. The value of the TSF timer may be calculated. For example, the time when synchronized with the AP is acquired from the RTC 39 and stored in the storage data memory 34 as the “initial synchronization time”. Then, when attempting to establish a connection with the AP after the next time, first, the current time (current time) is acquired from the RTC 39. Next, a difference between the acquired time and the “initial synchronization time” (that is, an elapsed time from the initial synchronization time) may be calculated, and the value of the TSF timer may be determined based on this value. .

(第4の実施形態)
次に、本発明の第4の実施形態にかかるゲーム装置およびその処理について説明する。第4の実施形態にかかるネットワーク構成、ゲーム装置の機能ブロック図およびハードウェア構成を示すブロック図は、第1の実施形態と同様である(図1、図2および図3参照)。しかし、本実施形態では、メインメモリ32には第1の実施形態とは部分的に異なるプログラムが格納され、CPU31はそのプログラムを実行することにより、第1の実施形態とは異なる機能をも実現する。
(Fourth embodiment)
Next, a game apparatus and its processing according to the fourth embodiment of the present invention will be described. The network configuration, the functional block diagram of the game device, and the block diagram showing the hardware configuration according to the fourth embodiment are the same as those in the first embodiment (see FIGS. 1, 2, and 3). However, in the present embodiment, the main memory 32 stores a program that is partially different from that of the first embodiment, and the CPU 31 executes the program to realize functions different from those of the first embodiment. To do.

次に、第4の実施形態における処理の概要を説明する。第1の実施形態においては、上述したような接続確立処理における「同期スキャン」(上記図10のステップS44〜S46参照)が毎回実行される構成となっていた。これに対して、第4の実施形態では、上記「同期スキャン」にかかる処理と直接接続にかかる処理の順序を入れ替えて、まず、直接接続を試みる。その結果、接続に失敗したときは、「同期スキャン」を行ってTSFタイマを同期し、再度直接接続を試みる、という構成を採る。   Next, an outline of processing in the fourth embodiment will be described. In the first embodiment, the “synchronous scan” (see steps S44 to S46 in FIG. 10) in the connection establishment process as described above is executed every time. On the other hand, in the fourth embodiment, the order of the process related to the “synchronous scan” and the process related to the direct connection is switched, and the direct connection is attempted first. As a result, when the connection fails, the “synchronous scan” is performed to synchronize the TSF timer, and the direct connection is attempted again.

なお、第4の実施形態に係るメモリマップは、上述した第1の実施形態で図5を用いて説明したメモリマップのうち、接続確立処理プログラム324の処理内容の一部が第1の実施形態とは異なるものとなっている。その他のプログラムやデータは、第1の実施形態と同様である。   Note that the memory map according to the fourth embodiment includes a part of the processing contents of the connection establishment processing program 324 in the memory map described with reference to FIG. 5 in the first embodiment described above. Is different. Other programs and data are the same as those in the first embodiment.

次に、第4の実施形態にかかる接続関連処理の詳細について説明する。本実施形態における接続関連処理は、第1の実施形態で上述した図10のフローチャートにおける処理を一部変更したものである。より具体的には、図10のステップS44〜S48の処理の順序を変更したものである。図17は、第4の実施形態にかかる接続確立処理のうちの一部分を示すフローチャートである。図17において、まず、ステップS41〜S43までは、第1の実施形態と同様の処理が実行される。ステップS43の次に、第4の実施形態では、ステップS301において、無線チャネルとBSSIDを指定した直接接続が試みられる。そして、続くステップS302において、接続成功か否かが判定される。当該判定の結果、接続に成功したと判定されたときは(ステップS302でYES)、上述したステップS62の処理に進む。一方、接続失敗と判定されたとき(ステップS302でNO)、第4の実施形態では、上述したような「同期スキャン」にかかる処理が実行される。すなわち、ステップS303において、使用チャネルを指定しての同期スキャン(プローブ要求フレームの送信)が実行され、ステップS304において、プローブ応答フレームを所定時間内に受信したか否かが判定される。その結果、プローブ応答フレームを所定時間内に受信したと判定されたときは(ステップS304でYES)、ステップS305においてTSFタイマが同期され、その後、上記ステップS301に戻り、直接接続が再度試みられることになる。一方、プローブ応答フレームを所定時間内に受信しなかったと判定されたときは(ステップS304でNO)、第1の実施形態で上述したステップS49以降の処理が実行されることになる。   Next, details of the connection-related processing according to the fourth embodiment will be described. The connection-related process in the present embodiment is a partial modification of the process in the flowchart of FIG. 10 described above in the first embodiment. More specifically, the processing order of steps S44 to S48 in FIG. 10 is changed. FIG. 17 is a flowchart showing a part of the connection establishment processing according to the fourth embodiment. In FIG. 17, first, in steps S <b> 41 to S <b> 43, processing similar to that in the first embodiment is executed. Next to step S43, in the fourth embodiment, in step S301, a direct connection designating a radio channel and a BSSID is attempted. In subsequent step S302, it is determined whether or not the connection is successful. As a result of the determination, when it is determined that the connection is successful (YES in step S302), the process proceeds to step S62 described above. On the other hand, when it is determined that the connection has failed (NO in step S302), in the fourth embodiment, the processing related to the “synchronous scan” as described above is executed. That is, in step S303, a synchronous scan (transmission of a probe request frame) specifying a channel to be used is executed, and in step S304, it is determined whether a probe response frame has been received within a predetermined time. As a result, when it is determined that the probe response frame has been received within the predetermined time (YES in step S304), the TSF timer is synchronized in step S305, and then the process returns to step S301 and direct connection is attempted again. become. On the other hand, when it is determined that the probe response frame has not been received within the predetermined time (NO in step S304), the processing from step S49 described above in the first embodiment is executed.

このように、第4の実施形態では、先に直接接続を試みて、この接続に失敗したとき(例えば、同期がうまくとれなかったような場合)に「同期スキャン」にかかる処理を行って、再度の直接接続を試みる、という処理構成を採っている。これにより、一旦TSFタイマの同期がとられた後、時間がさほど経過していない状態で再度接続確立処理が指示さ
れたような場合は、「同期スキャン」にかかる処理を省略することが可能となり、接続確立にかかる時間を軽減することが可能となる。
As described above, in the fourth embodiment, when a direct connection is attempted first and the connection fails (for example, when synchronization cannot be achieved), a process related to “synchronous scanning” is performed, The processing configuration is such that a direct connection is attempted again. As a result, once the TSF timer is synchronized, if the connection establishment process is instructed again without much time, the process for “synchronous scan” can be omitted. It is possible to reduce the time required for establishing a connection.

本発明にかかる通信装置、通信制御プログラム、通信制御方法、および通信システムは、通信端末と接続対象装置との接続確立にかかる時間を軽減することができ、無線通信が可能な携帯型ゲーム装置や据置型ゲーム装置、携帯情報端末やパーソナルコンピュータ、無線通信が可能な家電製品等に有用である。   A communication device, a communication control program, a communication control method, and a communication system according to the present invention can reduce a time required for establishing a connection between a communication terminal and a connection target device, and can be a portable game device capable of wireless communication. It is useful for stationary game devices, portable information terminals, personal computers, home electric appliances capable of wireless communication, and the like.

1…ゲーム装置
11…下側ハウジング
12…下側LCD
13…タッチパネル
14…操作ボタン
15、26…LED
16…マイクロフォン用孔
21…上側ハウジング
22…上側LCD
23…内側カメラ
24…音抜き孔
25…外側カメラ
27…タッチペン
28、29…メモリカード
31…CPU
32…メインメモリ
33…メモリ制御回路
34…保存用データメモリ
35…プリセットデータ用メモリ
36…メモリカードI/F
37…無線通信モジュール
38…ローカル通信モジュール
39…RTC
40…電源回路
41…I/F回路
42…マイク
43…アンプ
1 ... Game device 11 ... Lower housing 12 ... Lower LCD
13 ... Touch panel 14 ... Operation buttons 15, 26 ... LED
16 ... Microphone hole 21 ... Upper housing 22 ... Upper LCD
23 ... Inner camera 24 ... Sound release hole 25 ... Outer camera 27 ... Touch pens 28, 29 ... Memory card 31 ... CPU
32 ... Main memory 33 ... Memory control circuit 34 ... Storage data memory 35 ... Preset data memory 36 ... Memory card I / F
37 ... Wireless communication module 38 ... Local communication module 39 ... RTC
40 ... power supply circuit 41 ... I / F circuit 42 ... microphone 43 ... amplifier

Claims (25)

接続対象装置と無線通信を行う通信装置であって、
接続対象装置を一意に特定可能な情報である接続対象装置特定情報を記憶する第1記憶部と、
他の接続確立処理に先立って、前記第1記憶部に記憶されている前記接続対象装置特定情報を用いて、接続対象装置に対して無線通信による接続を確立するための処理を行う第1接続手段とを備え、
前記第1接続手段による前記接続対象装置特定情報を用いた接続処理は、複数の接続対象装置に同一のものを付与することができる種類の識別情報による接続処理を経ずに行われる、通信装置。
A communication device that performs wireless communication with a connection target device,
A first storage unit that stores connection target device identification information that is information that can uniquely identify a connection target device;
Prior to other connection establishment processing, the first connection for performing processing for establishing a connection by wireless communication to the connection target device using the connection target device specifying information stored in the first storage unit Means and
The first connection processing using the connection target apparatus specifying information by the connection means is performed without passing through the connection processing by the types of identification information that can be provided with the same things to multiple connection target unit, the communication apparatus.
前記第1接続手段は、前記第1記憶部に記憶されている前記接続対象装置特定情報を用いて、前記接続対象装置に対して無線通信による接続を確立するための処理を、当該第1記憶部が前記接続対象装置特定情報を記憶した以降に行われた通信に基づくことなく行う、請求項1に記載の通信装置。   The first connection means uses the connection target device specifying information stored in the first storage unit to perform processing for establishing a connection by wireless communication with the connection target device. The communication device according to claim 1, wherein the communication device is not based on communication performed after the unit stores the connection target device specifying information. 前記第1記憶部内の接続対象装置特定情報を参照することなく接続対象装置との無線通信による接続を確立するための処理を行う第2接続手段と、
前記第2接続手段によって接続が確立された場合、前記接続対象装置を一意に特定可能な接続対象装置特定情報を第1記憶部に記憶させる特定情報記憶手段をさらに備える、請求項1または2に記載の通信装置。
Second connection means for performing processing for establishing a connection by wireless communication with a connection target device without referring to the connection target device identification information in the first storage unit;
3. The apparatus according to claim 1, further comprising: a specific information storage unit that stores connection target device specifying information capable of uniquely specifying the connection target device in a first storage unit when a connection is established by the second connection unit. The communication device described.
前記第1記憶部は不揮発性の記憶媒体である、請求項1ないし3のいずれかに記載の通信装置。   The communication device according to claim 1, wherein the first storage unit is a nonvolatile storage medium. 前記第1記憶部は接続対象装置との無線通信を行う周波数帯域に関する周波数帯域情報をさらに記憶し、
前記第1接続手段は、前記第1記憶部に記憶されている周波数帯域情報によって示される周波数帯域において接続対象装置に対して無線通信による接続を確立するための処理を行う、請求項1に記載の通信装置。
The first storage unit further stores frequency band information related to a frequency band for performing wireless communication with a connection target device,
The said 1st connection means performs the process for establishing the connection by wireless communication with respect to a connection object apparatus in the frequency band shown by the frequency band information memorize | stored in the said 1st memory | storage part. Communication equipment.
前記第2接続手段は、
前記接続確立のための指示が発行された際に、接続可能な前記接続対象装置を検索し、前記接続対象装置特定情報を含む信号を受信し、当該接続対象装置に対して、前記受信した信号に含まれる前記接続対象装置特定情報を用いて接続を確立するための処理を行い、
前記特定情報記憶手段は、前記第2接続手段によって接続が確立されたとき、当該接続に用いている前記接続対象装置特定情報を前記第1記憶部に記憶し、
前記接続確立のための指示が発行されたとき、前記接続対象装置特定情報が前記第1記憶部に記憶されているときは前記第1接続手段による接続の確立が行われ、前記接続対象装置特定情報が前記第1記憶部に記憶されていないときは前記第2接続手段による接続の確立が行われる、請求項3に記載の通信装置。
The second connection means includes
When an instruction for establishing the connection is issued, the connection target device that can be connected is searched, a signal including the connection target device specifying information is received, and the received signal is transmitted to the connection target device. Processing for establishing a connection using the connection target device specifying information included in
When the connection is established by the second connection unit, the specific information storage unit stores the connection target device identification information used for the connection in the first storage unit,
When the connection establishment instruction is issued, when the connection target device specifying information is stored in the first storage unit, the connection is established by the first connection means, and the connection target device specification is performed. 4. The communication apparatus according to claim 3, wherein connection is established by the second connection means when information is not stored in the first storage unit.
前記通信装置は、前記第1接続手段による接続確立が成功したか否かを判定する接続結果判定手段を更に備え、
前記接続確立のための指示が発行されたとき、前記第1接続手段による接続の確立が行われ、当該第1接続手段による接続確立が失敗したと前記接続結果判定手段によって判定されたときは、前記第2接続手段による接続の確立が行われ、
前記特定情報記憶手段は、前記第1接続手段による接続確立が失敗したときに行われた前記第2接続手段による接続確立が成功したときに当該接続に用いた前記接続対象装置特定情報を記憶する、請求項3または6に記載の通信装置。
The communication apparatus further includes a connection result determination unit that determines whether or not the connection establishment by the first connection unit is successful,
When the connection establishment instruction is issued, connection establishment by the first connection unit is performed, and when the connection result determination unit determines that the connection establishment by the first connection unit has failed, A connection is established by the second connection means;
The specific information storage means stores the connection target apparatus specific information used for the connection when the connection establishment by the second connection means performed when the connection establishment by the first connection means fails. The communication apparatus according to claim 3 or 6.
前記特定情報記憶手段は、前記第2接続手段による接続確立が成功したときに前記第1記憶部に記憶された前記接続対象装置特定情報を当該確立した接続が切断された後も記憶する、請求項3または6に記載の通信装置。   The specific information storing unit stores the connection target device specifying information stored in the first storage unit even after the established connection is disconnected, when the connection establishment by the second connection unit is successful. Item 7. The communication device according to Item 3 or 6. 前記第2接続手段は、利用可能な周波数帯域の全てを対象として接続対象装置を検索する、請求項3または6に記載の通信装置。   The communication device according to claim 3, wherein the second connection unit searches for a connection target device for all available frequency bands. 前記接続対象装置特定情報は、BSSID(Basic Service Set Identifier)である、請求項1に記載の通信装置。   The communication apparatus according to claim 1, wherein the connection target apparatus specifying information is a BSSID (Basic Service Set Identifier). 前記第1記憶部には、複数の接続対象装置それぞれに対応する複数の接続対象装置特定情報が記憶可能であり、
前記通信装置は、
前記第1接続手段による接続確立が成功したか否かを判定する接続結果判定手段と、
前記複数の接続対象装置への接続優先度を前記複数の接続対象装置特定情報と関連づけて設定する優先度設定手段とを更に備え、
前記第1接続手段は、前記接続優先度がより高く設定されている接続対象装置の接続対象装置特定情報が前記第1記憶部に記憶されているか否かを判別し、記憶されていると判別されたときであって、前記第1接続手段による接続の確立が試みられた結果、前記結果判定手段により、当該接続優先度がより高く設定されている接続対象装置への前記第1接続手段による接続確立が失敗したと判定されたときは、次に接続優先度が高く設定されている接続対象装置の接続対象装置特定情報が当該第1記憶部に記憶されているか否かを判別する、請求項1に記載の通信装置。
The first storage unit can store a plurality of connection target device specifying information corresponding to a plurality of connection target devices,
The communication device
Connection result determination means for determining whether or not connection establishment by the first connection means is successful;
A priority setting means for setting a connection priority to the plurality of connection target devices in association with the plurality of connection target device specifying information;
The first connection means determines whether or not connection target device identification information of a connection target device for which the connection priority is set higher is stored in the first storage unit, and determines that it is stored As a result of an attempt to establish a connection by the first connection means, the result determination means causes the first connection means to connect to a connection target device having a higher connection priority. When it is determined that the connection establishment has failed, it is determined whether or not the connection target device specifying information of the connection target device having the next highest connection priority is stored in the first storage unit. Item 4. The communication device according to Item 1.
前記通信装置は、前記複数の接続対象装置への接続優先度を前記複数の接続対象装置特定情報と関連づけて設定する優先度設定手段を更に備え、
前記第1接続手段は、前記接続優先度がより高く設定されている接続対象装置の接続対象装置特定情報が前記第1記憶部に記憶されているか否かを判別し、前記接続対象装置特定情報が前記第1記憶部に記憶されていないと判別されたときに、次に接続優先度が高く設定されている接続対象装置の接続対象装置特定情報が当該第1記憶部に記憶されているか否かを判別する、請求項1に記載の通信装置。
The communication device further includes priority setting means for setting a connection priority to the plurality of connection target devices in association with the plurality of connection target device specifying information,
The first connection means determines whether connection target device specifying information of a connection target device having a higher connection priority is stored in the first storage unit, and the connection target device specifying information Is determined to be stored in the first storage unit, the connection target device specifying information of the connection target device having the next highest connection priority is stored in the first storage unit. The communication device according to claim 1, which determines whether or not.
前記通信装置は、前記複数の接続対象装置への接続優先度を変更する優先度変更手段を更に備える、請求項11または12に記載の通信装置。   The communication device according to claim 11 or 12, further comprising priority changing means for changing a connection priority to the plurality of connection target devices. 前記通信装置は、前記複数の接続対象装置への接続優先度を前記複数の接続対象装置特定情報と関連づけて設定する優先度設定手段を更に備え、
前記第1接続手段は、前記接続優先度がより高く設定されている接続対象装置の接続対象装置特定情報が前記第1記憶部に記憶されているか否かを判別し、
前記第2接続手段は、前記接続対象装置特定情報が前記第1記憶部に記憶されていないと判別されたときに、当該接続優先度が設定されている接続対象装置を検索し、当該接続対象装置の接続対象装置特定情報を含む信号を受信し、当該検索された接続対象装置に対して接続の確立を行う、請求項3または6に記載の通信装置。
The communication device further includes priority setting means for setting a connection priority to the plurality of connection target devices in association with the plurality of connection target device specifying information,
The first connection means determines whether or not connection target device identification information of a connection target device for which the connection priority is set higher is stored in the first storage unit,
When it is determined that the connection target device specifying information is not stored in the first storage unit, the second connection unit searches for the connection target device for which the connection priority is set, and the connection target The communication apparatus according to claim 3, wherein the communication apparatus receives a signal including connection target apparatus specifying information of the apparatus and establishes a connection to the searched connection target apparatus.
前記特定情報記憶手段は、前記第2接続手段による接続が確立したときに使用されている周波数帯域を示す周波数帯域情報を前記接続対象装置特定情報に加えて前記第1記憶部に記憶し、
前記第1接続手段は、前記記憶された周波数帯域情報で示される周波数帯域を使用して、前記接続対象装置特定情報を用いて、接続対象装置に対して接続を確立するための処理を行う、請求項3または6に記載の通信装置。
The specific information storage means stores frequency band information indicating a frequency band used when the connection by the second connection means is established in the first storage unit in addition to the connection target apparatus specific information,
The first connection means uses the frequency band indicated by the stored frequency band information to perform processing for establishing a connection to the connection target device using the connection target device specifying information. The communication apparatus according to claim 3 or 6.
前記第2接続手段は、前記接続対象装置の属するネットワークに関する識別情報であって、前記接続対象装置特定情報とは異なる情報であるネットワーク識別情報および前記接続対象装置特定情報を少なくとも含む信号を受信し、
前記通信装置は、
前記ネットワーク識別情報を記憶する第2記憶部と、
前記受信した信号に含まれるネットワーク識別情報と前記第2記憶部に記憶されているネットワーク識別情報とが一致するか否かを判別する第2判別手段とを更に備え、
前記第2接続手段は、前記第2判別手段による判別の結果、前記受信した信号に含まれるネットワーク識別情報と前記第2記憶部に記憶されているネットワーク識別情報とが一致するときは、前記信号を受信したときに用いられていた周波数帯域を指定し、当該信号に含まれていた接続対象装置特定情報で示される装置を接続先に指定した接続の確立を行う、請求項15に記載の通信装置。
The second connection means receives identification information relating to a network to which the connection target device belongs, and includes a signal including at least network identification information and information different from the connection target device specification information and the connection target device specification information. ,
The communication device
A second storage unit for storing the network identification information;
A second discriminating unit that discriminates whether or not the network identification information included in the received signal matches the network identification information stored in the second storage unit;
As a result of determination by the second determination unit, the second connection unit is configured to output the signal when the network identification information included in the received signal matches the network identification information stored in the second storage unit. The communication according to claim 15, wherein a frequency band that was used when receiving the signal is designated, and a connection is established in which the device indicated by the connection target device identification information included in the signal is designated as a connection destination. apparatus.
前記第1記憶部には、複数の接続対象装置それぞれに対応する複数の接続対象装置特定情報が記憶可能であり、
前記通信装置は、前記複数の接続対象装置への接続優先度を前記複数の接続対象装置特定情報と関連づけて設定する優先度設定手段を更に備え、
前記第1接続手段は、前記接続優先度がより高く設定されている接続対象装置の接続対象装置特定情報が前記第1記憶部に記憶されているか否かを判別し、
前記第2接続手段は、前記接続優先度がより高く設定されている接続対象装置の接続対象装置特定情報が前記第1記憶部に記憶されていないと判別されたとき、所定の前記接続対象装置から定期的に発せられる信号であって、前記ネットワーク識別情報および接続対象装置特定情報を含む信号を受信し、
前記第2判別手段は、前記受信した信号に含まれている前記ネットワーク識別情報と、前記第2記憶部に記憶されている、前記接続優先度がより高く設定された接続対象装置についての前記ネットワーク識別情報が一致するか否かを判別し、
前記第2接続手段は、前記第2判別手段によって前記ネットワーク識別情報が一致すると判別されたときは、前記受信した信号に含まれる前記接続対象特定情報で示される接続対象装置を接続先として指定して接続の確立を行い、
前記特定情報記憶手段は、前記第2接続手段による接続が確立したときに、前記受信した信号に含まれる前記接続対象特定情報、および、当該接続に使用している周波数帯域を示す前記周波数帯域情報を前記第1記憶部に記憶する、請求項16に記載の通信装置。
The first storage unit can store a plurality of connection target device specifying information corresponding to a plurality of connection target devices,
The communication device further includes priority setting means for setting a connection priority to the plurality of connection target devices in association with the plurality of connection target device specifying information,
The first connection means determines whether or not connection target device identification information of a connection target device for which the connection priority is set higher is stored in the first storage unit,
When the second connection means determines that the connection target device identification information of the connection target device with the higher connection priority set is not stored in the first storage unit, the predetermined connection target device A signal periodically emitted from the network including the network identification information and connection target device specifying information,
The second determination unit includes the network identification information included in the received signal and the network for the connection target device stored in the second storage unit and set to have a higher connection priority. Determine whether the identification information matches,
The second connection means designates a connection target device indicated by the connection target specifying information included in the received signal as a connection destination when the second determination means determines that the network identification information matches. To establish a connection,
When the connection by the second connection unit is established, the specific information storage unit includes the connection target specific information included in the received signal and the frequency band information indicating the frequency band used for the connection. The communication apparatus according to claim 16, wherein the first storage unit is stored.
前記第2判別手段は、前記第2接続手段による接続の確立が失敗したときは、前記第2記憶部に記憶されている前記ネットワーク識別情報のうち、次に接続優先度が高く設定された接続対象装置に対応するネットワーク識別情報と、前記受信した信号に含まれるネットワーク識別情報とが一致するか否かを判別する、請求項17に記載の通信装置。   When the second connection means fails to establish connection by the second connection means, the connection having the next highest connection priority among the network identification information stored in the second storage unit The communication device according to claim 17, wherein it is determined whether or not network identification information corresponding to a target device matches network identification information included in the received signal. 前記第2判別手段は、前記第2記憶部に記憶されている前記ネットワーク識別情報のうち、次に接続優先度が高く設定された接続対象装置に対応するネットワーク識別情報と、前記受信した信号に含まれるネットワーク識別情報が一致しないと判定したときは、当該第2記憶部に記憶されているネットワーク識別情報のうち、次に接続優先度が高く設定された接続対象装置についてのネットワーク識別情報と、当該受信した信号に含まれるネットワーク識別情報とが一致するか否かを判定する、請求項17に記載の通信装置。   The second discriminating unit includes, in the network identification information stored in the second storage unit, network identification information corresponding to a connection target device that has the next highest connection priority, and the received signal. When it is determined that the included network identification information does not match, out of the network identification information stored in the second storage unit, the network identification information for the connection target device that has the next highest connection priority, The communication device according to claim 17, wherein it is determined whether or not network identification information included in the received signal matches. 接続対象装置と無線通信を行う通信装置のコンピュータに実行させる通信制御プログラムであって、
前記コンピュータを、
接続対象装置を一意に特定可能な情報である接続対象装置特定情報を記憶する第1記憶手段と、前記第1記憶手段によって記憶された前記接続対象装置特定情報を用いて、接続対象装置に対して無線通信による接続を確立するための処理を行う第1接続手段として機能させ、
他の接続確立処理に先立って、前記第1接続手段による前記接続対象装置特定情報を用いた接続処理は、複数の接続対象装置に同一のものを付与することができる種類の識別情報による接続処理を経ずに行われる、通信制御プログラム。
A communication control program to be executed by a computer of a communication device that performs wireless communication with a connection target device,
The computer,
A first storage unit that stores connection target device specifying information, which is information that can uniquely specify a connection target device, and a connection target device using the connection target device specifying information stored by the first storage unit. Function as a first connection means for performing processing for establishing a connection by wireless communication,
Prior to the other connection establishment process, connected by the first connection processing using the connection target apparatus specifying information by the connecting means, the type of identification information that can be provided with the same things to multiple connected device A communication control program that is performed without processing.
接続対象装置と無線通信を行う通信装置を制御するための通信制御方法であって、
接続対象装置を一意に特定可能な情報である接続対象装置特定情報を所定の記憶媒体である第1記憶手段に記憶するステップと、
他の接続確立処理に先立って、前記第1記憶手段に記憶されている前記接続対象装置特定情報を用いて、接続対象装置に対して無線通信による接続を確立するための処理を行うステップとを備え、
前記接続を確立するための処理を行うステップにおける前記接続対象装置特定情報を用いた接続処理は、複数の接続対象装置に同一のものを付与することができる種類の識別情報による接続処理を経ずに行われる、通信制御方法。
A communication control method for controlling a communication device that performs wireless communication with a connection target device,
Storing connection target device specifying information, which is information that can uniquely specify a connection target device, in a first storage means that is a predetermined storage medium;
Prior to other connection establishment processing, using the connection target device specifying information stored in the first storage means, performing a process for establishing a connection by wireless communication with the connection target device. Prepared,
The connection target apparatus specifying information connection processing using the step of performing a process for establishing the connection, via connection processing by the type of identification information that can be provided with the same things to multiple connected device A communication control method performed without
通信装置と接続対象装置とからなる通信システムであって、
前記通信装置は、
接続対象装置を一意に特定可能な情報である接続対象装置特定情報を記憶する第1記憶部と、
他の接続確立処理に先立って、前記第1記憶部に記憶されている前記接続対象装置特定情報を用いて、接続対象装置に対して無線通信による接続を確立するための処理を行う第1接続手段とを備え、
前記接続対象装置は、前記接続対象装置特定情報が記憶された特定情報記憶手段を備え、
前記第1接続手段による前記接続対象装置特定情報を用いた接続処理は、複数の接続対象装置に同一のものを付与することができる種類の識別情報による接続処理を経ずに行われる、通信システム。
A communication system comprising a communication device and a connection target device,
The communication device
A first storage unit that stores connection target device identification information that is information that can uniquely identify a connection target device;
Prior to other connection establishment processing, the first connection for performing processing for establishing a connection by wireless communication to the connection target device using the connection target device specifying information stored in the first storage unit Means and
The connection target device includes a specific information storage unit in which the connection target device specifying information is stored,
The first connection processing using the connection target apparatus specifying information by the connection means is performed without passing through the connection processing by the types of identification information that can be provided with the same things to multiple connection target unit, the communication system.
接続対象装置と無線通信を行う通信装置であって、
接続対象装置を一意に特定可能な情報である接続対象装置特定情報を記憶する第1記憶部と、
前記第1記憶部に記憶されている前記接続対象装置特定情報を用いて、接続対象装置に対して無線通信による接続を確立するための処理を、当該第1記憶部が前記接続対象装置特定情報を記憶した以降に行われた通信に基づくことなく行う第1接続手段とを備える、通信装置。
A communication device that performs wireless communication with a connection target device,
A first storage unit that stores connection target device identification information that is information that can uniquely identify a connection target device;
Using the connection target device specifying information stored in the first storage unit, the first storage unit performs processing for establishing a connection by wireless communication with the connection target device. And a first connection means for performing without being based on the communication performed after storing the information.
接続対象装置と無線通信を行う通信装置を制御するための通信制御方法であって、
接続対象装置を一意に特定可能な情報である接続対象装置特定情報を所定の記憶媒体である第1記憶手段に記憶するステップと、
前記第1記憶手段に記憶されている前記接続対象装置特定情報を用いて、接続対象装置に対して無線通信による接続を確立するための処理を、当該第1記憶手段が前記接続対象装置特定情報を記憶した以降に行われた通信に基づくことなく行うステップとを備える、通信制御方法。
A communication control method for controlling a communication device that performs wireless communication with a connection target device,
Storing connection target device specifying information, which is information that can uniquely specify a connection target device, in a first storage means that is a predetermined storage medium;
Using the connection target device specifying information stored in the first storage unit, the first storage unit performs processing for establishing a connection by wireless communication with the connection target device. And a step of performing without being based on the communication performed after storing.
通信装置と接続対象装置とからなる通信システムであって、
前記通信装置は、
接続対象装置を一意に特定可能な情報である接続対象装置特定情報を記憶する第1記憶部と、
前記第1記憶部に記憶されている前記接続対象装置特定情報を用いて、接続対象装置に対して無線通信による接続を確立するための処理を、当該第1記憶部が前記接続対象装置特定情報を記憶した以降に行われた通信に基づくことなく行う第1接続手段とを備え、
前記接続対象装置は、前記接続対象装置特定情報が記憶された特定情報記憶手段を備える、通信システム。
A communication system comprising a communication device and a connection target device,
The communication device
A first storage unit that stores connection target device identification information that is information that can uniquely identify a connection target device;
Using the connection target device specifying information stored in the first storage unit, the first storage unit performs processing for establishing a connection by wireless communication with the connection target device. First connection means for performing without being based on communication performed after storing
The said connection object apparatus is a communication system provided with the specific information storage means in which the said connection object apparatus specific information was memorize | stored.
JP2014045216A 2014-03-07 2014-03-07 COMMUNICATION DEVICE, COMMUNICATION CONTROL PROGRAM, COMMUNICATION CONTROL METHOD, AND COMMUNICATION SYSTEM Active JP5986597B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2014045216A JP5986597B2 (en) 2014-03-07 2014-03-07 COMMUNICATION DEVICE, COMMUNICATION CONTROL PROGRAM, COMMUNICATION CONTROL METHOD, AND COMMUNICATION SYSTEM

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2014045216A JP5986597B2 (en) 2014-03-07 2014-03-07 COMMUNICATION DEVICE, COMMUNICATION CONTROL PROGRAM, COMMUNICATION CONTROL METHOD, AND COMMUNICATION SYSTEM

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP2010061511A Division JP5498212B2 (en) 2010-03-17 2010-03-17 COMMUNICATION DEVICE, COMMUNICATION CONTROL PROGRAM, COMMUNICATION CONTROL METHOD, AND COMMUNICATION SYSTEM

Publications (2)

Publication Number Publication Date
JP2014140219A JP2014140219A (en) 2014-07-31
JP5986597B2 true JP5986597B2 (en) 2016-09-06

Family

ID=51416663

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2014045216A Active JP5986597B2 (en) 2014-03-07 2014-03-07 COMMUNICATION DEVICE, COMMUNICATION CONTROL PROGRAM, COMMUNICATION CONTROL METHOD, AND COMMUNICATION SYSTEM

Country Status (1)

Country Link
JP (1) JP5986597B2 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6584186B2 (en) 2015-07-21 2019-10-02 キヤノン株式会社 COMMUNICATION DEVICE, COMMUNICATION METHOD, AND PROGRAM
JP7114223B2 (en) * 2017-02-20 2022-08-08 株式会社東芝 Device control system, communication method, wireless terminal and control device
JP2020017968A (en) * 2019-09-04 2020-01-30 キヤノン株式会社 Communication device, control method, and program

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4397168B2 (en) * 2002-08-21 2010-01-13 レノボ シンガポール プライヴェート リミテッド Computer device and wireless network connection method
JP2004187001A (en) * 2002-12-03 2004-07-02 Sony Corp Radio connection method
JP2005094053A (en) * 2003-09-11 2005-04-07 Sanyo Electric Co Ltd Network communication apparatus
JP2006109074A (en) * 2004-10-05 2006-04-20 Matsushita Electric Ind Co Ltd Radio communication system
JP4851798B2 (en) * 2006-01-25 2012-01-11 Necインフロンティア株式会社 Wireless communication system, wireless LAN base station, and setting content confirmation / change method used therefor

Also Published As

Publication number Publication date
JP2014140219A (en) 2014-07-31

Similar Documents

Publication Publication Date Title
JP5498212B2 (en) COMMUNICATION DEVICE, COMMUNICATION CONTROL PROGRAM, COMMUNICATION CONTROL METHOD, AND COMMUNICATION SYSTEM
JP4334602B1 (en) Information processing apparatus, information processing system, and information processing program
JP5243870B2 (en) Information processing system, information processing apparatus, and information processing program
US10476686B2 (en) Wireless communication device, program, and wireless communication system
US8520570B2 (en) Data communication system, information processing apparatus and storage medium having stored thereon information processing program
JP5675373B2 (en) Communication system, information processing apparatus, communication program, and communication method
KR102247601B1 (en) Communication apparatus, method for controlling communication apparatus, and storage medium
JP5688297B2 (en) Communication system, information processing apparatus, communication program, and communication method
US11687332B2 (en) Communication apparatus for wirelessly communicating with another apparatus, information processing method, and program
US10757185B2 (en) Method for peer-to-peer multimedia data sharing, electronic device and non-volatile computer readable medium
JP2011166417A (en) Radio communication apparatus, radio communication system, program, and radio communication method
JP5639680B2 (en) Information processing system, information processing apparatus, and information processing program
JP5986597B2 (en) COMMUNICATION DEVICE, COMMUNICATION CONTROL PROGRAM, COMMUNICATION CONTROL METHOD, AND COMMUNICATION SYSTEM
JP2011249957A (en) Radio communication device, projector, radio communication method and projection method
JP2011239289A (en) Radio communication equipment, projector, and radio communication method
JP2007081468A (en) Wireless communication device and communication control method
JP6330606B2 (en) COMMUNICATION DEVICE, COMMUNICATION SYSTEM, OPERATION METHOD AND PROGRAM IN COMMUNICATION DEVICE
JP2018129639A (en) Communication system, data processing unit, control method and program thereof
JP2011249958A (en) Projector and communication method
JP2010107707A (en) Projector, terminal device, projection system, information storage medium, and connection setting method

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20141211

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20141215

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20150302

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20160308

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20160512

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20160805

R150 Certificate of patent or registration of utility model

Ref document number: 5986597

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250