JP5398800B2 - Electronic device and communication control method - Google Patents
Electronic device and communication control method Download PDFInfo
- Publication number
- JP5398800B2 JP5398800B2 JP2011188931A JP2011188931A JP5398800B2 JP 5398800 B2 JP5398800 B2 JP 5398800B2 JP 2011188931 A JP2011188931 A JP 2011188931A JP 2011188931 A JP2011188931 A JP 2011188931A JP 5398800 B2 JP5398800 B2 JP 5398800B2
- Authority
- JP
- Japan
- Prior art keywords
- connection
- external device
- request signal
- period
- connection request
- 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
Links
Images
Classifications
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D30/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication networks
Description
本発明は、近接無線通信を実行する電子機器及び該機器に適用される通信制御方法に関する。 The present invention relates to an electronic device that performs close proximity wireless communication and a communication control method applied to the device.
近年、ICカード、携帯電話機等においては、NFCのような無線通信が利用され始めている。ユーザは、ICカード又は携帯電話をホスト装置のリーダ/ライタ部にかざすといった操作を行うだけで、認証、課金等のための通信を容易に行うことができる。 In recent years, wireless communication such as NFC has begun to be used in IC cards, mobile phones and the like. The user can easily perform communication for authentication, billing, etc. by simply holding the IC card or mobile phone over the reader / writer unit of the host device.
特許文献1には、コンベア上を移動する移動体が通信可能範囲にある期間中に、一度だけデータ通信を実行する通信方式が開示されている。この通信方式では、移動体に存在確認信号を送信し、該信号に応答する移動体からのレスポンスに基づいて、移動体が通信可能範囲内にあるか否かを検出することができる。 Patent Document 1 discloses a communication method in which data communication is executed only once during a period in which a moving body moving on a conveyor is within a communicable range. In this communication method, it is possible to detect whether or not the mobile body is within the communicable range based on a response from the mobile body that responds to the presence confirmation signal by transmitting it to the mobile body.
ところで、近接無線通信方式では、デバイス同士を近づけるだけで自動的にサービスの実行を開始したいという要求がある。デバイス同士を近づけて自動的にサービスの実行を開始する場合、例えば、携帯電話機をパーソナルコンピュータに近づけるだけで、携帯電話機に保存されたデータとパーソナルコンピュータに格納されている当該データのバックアップとを同期させるといった機能を実現することができる。そのため、近接無線通信方式では、デバイス間の近接状態が検出されると、自動的にデバイス間の接続を確立する。 By the way, in the close proximity wireless communication system, there is a demand for starting execution of a service automatically only by bringing devices close to each other. When starting the execution of a service automatically by bringing devices close to each other, for example, by simply bringing the mobile phone closer to the personal computer, the data stored in the mobile phone is synchronized with the backup of the data stored in the personal computer. It is possible to realize a function such as Therefore, in the close proximity wireless communication system, when a proximity state between devices is detected, a connection between the devices is automatically established.
しかし、サービスの実行が完了し、デバイス間の接続が解除された後、デバイス同士が近接状態で放置されている場合には、再度、デバイス間の接続が確立されてしまう可能性がある。デバイス間の接続が確立されたとき、デバイス間で実行すべきサービスの実行が完了している場合には、再度、デバイス間の接続を解除する処理が実行される。したがって、近接状態で放置されているデバイス間では、サービスの実行が完了したにも関わらず、デバイス間の接続と解除とが繰り返し行われる可能性がある。 However, after the execution of the service is completed and the connection between the devices is released, if the devices are left in the proximity state, the connection between the devices may be established again. When the connection between the devices is established, if the execution of the service to be executed between the devices is completed, a process for releasing the connection between the devices is executed again. Therefore, there is a possibility that between the devices left in the proximity state, the connection and release between the devices are repeatedly performed even though the execution of the service is completed.
本発明は上述の事情を考慮してなされたものであり、デバイス間の不要な接続を抑制できる電子機器及び通信制御方法を提供することを目的とする。 SUMMARY An advantage of some aspects of the invention is that it provides an electronic device and a communication control method capable of suppressing unnecessary connection between devices.
上述の課題を解決するため、本発明の電子機器は、外部デバイスとの間で近接無線通信を実行する通信モジュールと、前記外部デバイスから接続要求信号が受信された場合に、前記外部デバイスとの接続を制御する接続制御手段であって前記外部デバイスとの接続が切断された後、前記外部デバイスによって第1期間毎に前記接続要求信号が送信されている場合に、前記接続要求信号の受信が途切れた非受信期間が、前記第1期間よりも長いしきい値期間以上継続するまで前記外部デバイスとの接続を抑制し、前記非受信期間が前記しきい値期間以上継続すると、前記接続要求信号が受信されたことに応答して前記外部デバイスとの接続を許可する接続制御手段と具備する。 In order to solve the above-described problems, an electronic apparatus according to the present invention includes a communication module that performs close proximity wireless communication with an external device, and a connection request signal received from the external device. after the connection with the external device a connection controlling means for controlling the connection is broken, if the connection request signal every first period by the external device is transmitted, the reception of the connection request signal When the disconnected non-reception period continues for a threshold period longer than the first period or longer , the connection with the external device is suppressed, and when the non-reception period continues for the threshold period or longer , the connection request signal There in response to the received includes a connection controlling means for permitting a connection with the external device.
本発明によれば、デバイス間の不要な接続を抑制できる。 According to the present invention, unnecessary connection between devices can be suppressed.
以下、図面を参照して、本発明の実施形態を説明する。
図1は、本発明の一実施形態に係る電子機器の構成を示している。この電子機器は、例えば、携帯機器(例えば、携帯電話機、PDA、オーディオプレーヤ、補助記憶媒体等)、パーソナルコンピュータ、又はコンシューマ機器(例えば、TV、ビデオレコーダ等)として実現される。この電子機器は近接無線通信を実行する通信モジュールを備えており、近接無線通信機能を有する他のデバイス(外部デバイス)との無線接続を確立し、そして外部デバイスとの近接無線通信をピアツーピア形式で実行する。
Hereinafter, embodiments of the present invention will be described with reference to the drawings.
FIG. 1 shows a configuration of an electronic apparatus according to an embodiment of the present invention. This electronic device is realized as, for example, a mobile device (for example, a mobile phone, a PDA, an audio player, an auxiliary storage medium, etc.), a personal computer, or a consumer device (for example, a TV, a video recorder, etc.). The electronic apparatus includes a communication module that performs close proximity wireless communication, establishes a wireless connection with another device (external device) having the close proximity wireless communication function, and performs close proximity wireless communication with the external device in a peer-to-peer format. Run.
この電子機器10は、システム制御部101、ROM102、RAM103、近接無線通信デバイス104、電源制御部105、ACアダプタ106、バッテリ107、及び記憶装置108を備える。
The
システム制御部101は、電子機器10内の各部の動作を制御する。システム制御部101は、CPU101aを備え、ROM102、RAM103、近接無線通信デバイス104、電源制御部105、及び記憶装置108に接続される。
The
CPU101aは、ROM102に格納された命令群及びデータをRAM103へロードし、必要な処理を実行するプロセッサである。RAM103には、近接無線通信を制御するための近接無線通信制御プログラム103aがロードされている。CPU101aは、RAM103にロードされた近接無線通信制御プログラム103aを実行して、近接無線通信デバイス104を制御する。
The CPU 101a is a processor that loads a command group and data stored in the
近接無線通信デバイス104は、近接無線通信を実行する通信モジュールである。近接無線通信デバイス104は、近接無線通信デバイス104から所定の距離内に存在する、近接無線通信機能を有する他のデバイス(外部デバイス)との無線接続を確立し、そしてファイルのようなデータの伝送を開始する。近接無線通信デバイス104と外部デバイスとの間の近接無線通信は、ピアツーピア形式で実行される。通信可能距離は例えば3cmである。近接無線通信デバイス104と外部デバイスとの間の無線接続は、近接無線通信デバイス104と外部デバイスとが近接状態である場合、つまり近接無線通信デバイス104と外部デバイスとの間の距離が通信可能距離(例えば3cm)以内に接近した場合に可能となる。近接無線通信デバイス104と外部デバイスとが通信可能距離以内に接近した時、近接無線通信デバイス104と外部デバイスとの間の無線接続が確立される。そして、例えば、外部デバイスは、記憶装置108内の所定の記憶領域へアクセスし、所定の記憶領域からのデータファイルの読み出しや、所定の記憶領域へのデータファイルの書き込み等によるデータの伝送が、近接無線通信デバイス104と外部デバイスとの間で実行される。
The close proximity
近接無線通信においては、誘導電界が用いられる。近接無線通信方式としては、例えばTransferJetを使用し得る。TransferJetは、UWBを利用した近接無線通信方式であり、高速データ転送を実現することができる。 In close proximity wireless communication, an induced electric field is used. For example, TransferJet can be used as the close proximity wireless communication system. TransferJet is a close proximity wireless communication method using UWB, and can realize high-speed data transfer.
近接無線通信デバイス104はアンテナ104bに接続されている。アンテナ104bはカプラと称される電極であり、誘導電界を用いた無線信号により、外部デバイスに対するデータの送受信を行う。外部デバイスがアンテナ104bから通信可能距離(例えば3cm)以内の範囲内に接近した場合、近接無線通信デバイス104及び外部デバイスそれぞれのアンテナ(カプラ)間が誘導電界によって結合され、これによって近接無線通信デバイス104と外部デバイスとの間の無線通信が実行可能となる。なお、近接無線通信デバイス104及びアンテナ104bは、一つのモジュールとして実現し得る。
The close proximity
電源制御部105は、ACアダプタ106を介して外部から供給される電力、又はバッテリ107から供給される電力を用いて、電子機器10内の各部に電力を供給する。換言すれば、電子機器10は、AC商用電源のような外部電源、又はバッテリ107によって駆動される。ACアダプタ106は電子機器10内に設けることもできる。
The
図2には、2つのデバイス間で実行される近接無線通信の様子が示されている。
ここでは、デバイスAが携帯電話から構成され、デバイスBがポータブルコンピュータから構成されている場合を想定する。ユーザは、例えば、デバイスAをデバイスBに近接させるという操作(タッチ操作)を行うことにより、デバイスA,B間のデータ転送を開始させることができる。デバイスA,B間のデータ転送は、デバイスA,Bが互いに近接したことをトリガに実行される。
FIG. 2 shows a state of close proximity wireless communication performed between two devices.
Here, it is assumed that device A is composed of a mobile phone and device B is composed of a portable computer. For example, the user can start data transfer between the devices A and B by performing an operation (touch operation) of bringing the device A close to the device B. Data transfer between the devices A and B is triggered by the fact that the devices A and B are close to each other.
図3は、近接無線通信デバイス104を用いて実行される近接無線通信を制御するためのソフトウェアアーキテクチャを示す。
FIG. 3 shows a software architecture for controlling near field communication performed using the near
図3のソフトウェアアーキテクチャは近接無線通信を制御するためのプロトコルスタックの階層構造を示している。プロトコルスタックは、物理層(PHY)、コネクション層(CNL)、プロトコル変換層(PCL)、アプリケーション層から構成されている。例えば、コネクション層(CNL)、プロトコル変換層(PCL)、アプリケーション層は通信制御プログラム103aによって実現し得る。
The software architecture of FIG. 3 shows a hierarchical structure of a protocol stack for controlling close proximity wireless communication. The protocol stack includes a physical layer (PHY), a connection layer (CNL), a protocol conversion layer (PCL), and an application layer. For example, the connection layer (CNL), protocol conversion layer (PCL), and application layer can be realized by the
物理層(PHY)は物理的なデータ転送を制御する層であり、OSI参照モデル内の物理層に対応する。物理層(PHY)の一部の機能又は全ての機能は、近接無線通信デバイス104内のハードウェアを用いて実現することもできる。
The physical layer (PHY) is a layer that controls physical data transfer, and corresponds to the physical layer in the OSI reference model. Some or all of the functions of the physical layer (PHY) can also be realized using hardware in the close proximity
物理層(PHY)はコネクション層(CNL)からのデータを無線信号に変換する。コネクション層(CNL)はOSI参照モデル内のデータリンク層、ネットワーク層及びトランスポート層に対応しており、近接状態に設定されている近接無線通信デバイス104と外部デバイスとの間の接続(CNL接続)を確立し、データを伝送する処理を実行する。
The physical layer (PHY) converts data from the connection layer (CNL) into a radio signal. The connection layer (CNL) corresponds to the data link layer, the network layer, and the transport layer in the OSI reference model, and the connection (CNL connection) between the close proximity
プロトコル変換層(PCL)は、OSI参照モデル内のセッション層及びプレゼンテーション層に対応しており、アプリケーション層と、デバイスA,B間の接続の確立及び解除を制御するためのコネクション層(CNL)との間に位置する。プロトコル変換層(PCL)は、アプリケーション層内の各アプリケーション(通信プログラム)の管理と、セッション制御とを実行する。セッションは、電子機器10のアプリケーション層と外部デバイスのアプリケーション層との間の通信路に相当する。
The protocol conversion layer (PCL) corresponds to the session layer and the presentation layer in the OSI reference model, and includes an application layer and a connection layer (CNL) for controlling establishment and release of a connection between the devices A and B. Located between. The protocol conversion layer (PCL) executes management of each application (communication program) in the application layer and session control. The session corresponds to a communication path between the application layer of the
アプリケーション層は、各種アプリケーションプロトコル(例えば、SCSI、OBEX、他の汎用プロトコル等)に対応した各種通信プログラム(アプリケーション)を含む。本実施形態の近接無線通信制御プログラム103aは、コネクション層(CNL)に対応する機能を有する。なお、通信制御プログラム103aは、プロトコル変換層(PCL)及びアプリケーション層に対応する機能を有してもよい。
The application layer includes various communication programs (applications) corresponding to various application protocols (for example, SCSI, OBEX, and other general-purpose protocols). The close proximity wireless
図4は、近接無線通信制御プログラム103aの構成を示す。通信制御プログラム103aは、接続要求受信部201、接続応答送信部202、受信間隔測定部203、接続制御部204、接続確立部205、接続解除部206、通信部207、切断応答受信部208、及び切断要求送信部209等を備える。
FIG. 4 shows the configuration of the close proximity wireless
接続要求受信部201は、近接状態にある外部デバイスから送信される接続要求信号を受信する。具体的には、接続要求受信部201は、近接無線通信デバイス104に設けられたアンテナ104bを介して、外部デバイスから接続要求信号を受信する。接続要求受信部201は、受信した接続要求信号を受信間隔測定部203と接続制御部204とに出力する。
The connection
接続応答送信部202は、接続要求信号に応答する接続応答信号を外部デバイスに送信する。具体的には、接続応答送信部202は、接続要求信号に応答して外部デバイスとの接続が確立される際、すなわち、接続確立部205によって電子機器10と外部デバイスとの間の接続を確立する処理が実行される際に、近接無線通信デバイス104に設けられたアンテナ104bを介して、外部デバイスに接続応答信号を送信する。外部デバイスは、接続応答送信部202によって送信された接続応答信号を受信することにより、電子機器10との接続を確立する。
The connection
切断要求送信部209は、外部デバイスとのデータ通信が完了した際に、外部デバイスに切断要求信号を送信する。具体的には、切断要求送信部209は、外部デバイスとのデータ通信が完了した際、接続解除部206によって電子機器10と外部デバイスとの間の接続を解除するために、近接無線通信デバイス104に設けられたアンテナ104bを介して、外部デバイスに切断要求信号を送信する。
The disconnect
切断応答受信部208は、外部デバイスから切断要求信号に応答して送信される切断応答信号を受信する。切断応答受信部208は、受信した切断応答信号を受信間隔測定部203と接続解除部206とに出力する。
The disconnection
受信間隔測定部203は、電子機器10と外部デバイスとの間の接続が解除されてから接続要求信号が受信されない期間を示す非受信期間を測定する。非受信期間は、電子機器10と外部デバイスとの間の接続が解除されてから、最初に接続要求信号が受信されるまでの期間を示す第1期間、及び電子機器10と外部デバイスとの間の接続が解除された後、第1の接続要求信号が受信されてから、第1の接続要求信号に後続する第2の接続要求信号が受信されるまでの期間を示す第2期間を含む。
The reception
したがって、受信間隔測定部203は、電子機器10と外部デバイスとの間の接続が解除されてから、最初に接続要求信号が受信されるまでの期間を示す第1期間を測定する。受信間隔測定部203は、例えば、切断応答受信部208によって切断応答信号が受信されてから、最初に接続要求受信部201によって接続要求信号が受信されるまでの期間を第1期間として算出する。
Therefore, the reception
また、受信間隔測定部203は、電子機器10と外部デバイスとの間の接続が解除された後、第1の接続要求信号が受信されてから、第1の接続要求信号に後続する第2の接続要求信号が受信されるまでの期間を示す第2期間を測定する。受信間隔測定部203は、例えば、切断応答受信部208によって切断応答信号が受信された後、接続要求受信部201によって第1の接続要求信号が受信されてから、後続する第2の接続要求信号が受信されるまでの期間を第2期間として算出する。受信間隔測定部203は、測定した第1期間又は第2期間を接続制御部204に出力する。
The reception
接続制御部204は、切断要求信号に応じて外部デバイスとの接続が解除されてから接続要求信号の非受信期間がしきい値期間以上継続するまで外部デバイスとの接続の確立を抑制し、非受信期間がしきい値期間以上継続した後に接続要求信号が受信されたことに応答して外部デバイスとの接続の確立を許可する。具体的には、接続制御部204は、受信間隔測定部203によって出力された第1期間又は第2期間に基づいて、電子機器10と外部デバイスとの間の接続の確立の許可又は抑制(禁止)を制御する。接続制御部204は、電子機器10と外部デバイスとの間の接続が解除された後に、ユーザが、電子機器10と外部デバイスとを近接状態に放置しているのか、それとも、電子機器10と外部デバイスとを一旦離した後に(すなわち、電子機器10と外部デバイスとの近接状態を解除した後に)、再度近接させる操作(再タッチ操作)を行ったのかを、第1期間又は第2期間に基づいて判定する。つまり、接続制御部204は、電子機器10と外部デバイスとの間の接続が解除された後にも、電子機器10と外部デバイスとが近接状態に維持されている場合、電子機器10と外部デバイスとが単に近接状態で放置されているのか、それとも、ユーザが意図して再タッチ操作を行ったことによって、近接状態に維持されているのかを判定する。そして、接続制御部204は、電子機器10と外部デバイスとが単に近接状態で放置されている場合には、電子機器10と外部デバイスとの間の再接続の確立を抑制する。また、接続制御部204は、ユーザが再タッチ操作を行って、電子機器10と外部デバイスとが近接状態に維持されている場合には、電子機器10と外部デバイスとの間の再接続の確立を許可する。
The
接続制御部204は、第1期間がしきい値(例えば、1〜2秒)未満である場合、又は第2期間がしきい値未満である場合、電子機器10と外部デバイスとの間の接続の確立を抑制する。具体的には、接続制御部204は、第1期間がしきい値未満である場合、又は第2期間がしきい値未満である場合、接続要求受信部201によって受信された接続要求信号を破棄することにより、接続確立部205に電子機器10と外部デバイスとの間の接続を確立する処理を実行させないように制御する。なお、接続要求受信部201によって受信された接続要求信号を破棄する代わりに、接続要求信号に対して対接続応答信号を送信しないことで、接続確立部205に電子機器10と外部デバイスとの間の接続を確立する処理を実行させないように制御するようにしても良い。また、接続制御部204は、第1期間がしきい値以上である場合、又は第2期間がしきい値以上である場合、電子機器10と外部デバイスとの間の接続の確立を許可する。具体的には、接続制御部204は、第1期間がしきい値以上である場合、又は第2期間がしきい値以上である場合、接続要求受信部201によって受信された接続要求信号を接続確立部205に出力し、接続確立部205に電子機器10と外部デバイスとの間の接続を確立する処理を実行させるように制御する。なお、このしきい値には、ユーザが意図的に再タッチ操作を行ったか否かを判定するために、ユーザが再タッチ操作を行うために要すると想定される期間(例えば、1〜2秒)が設定される。また、接続制御部204は、第2期間のみに基づいて、電子機器10と外部デバイスとの間の接続の確立の許可又は抑制(禁止)を制御してもよい。これは例えば、ユーザが、接続が解除された後すぐに、電子機器10を外部デバイスから離そうとする操作を行ったとしても、例えばμsecオーダーで外部デバイスから送信される接続要求信号は、しきい値未満の期間に、電子機器10に受信されることが想定されるためである。つまり、このような場合には、第1期間がしきい値未満である可能性が非常に高いため、接続制御部204は、第2期間のみに基づいて、電子機器10と外部デバイスとの間の接続の確立の許可又は抑制(禁止)を制御することができる。
When the first period is less than a threshold value (for example, 1 to 2 seconds) or when the second period is less than the threshold value, the
接続確立部205は、接続制御部204による制御(制御信号)に応じて、電子機器10と外部デバイスとの間の接続を確立する。接続確立部205は、接続応答送信部202に対して、外部デバイスに接続応答信号を送信するよう通知する。接続確立部205は、さらに、外部デバイスとの接続が確立されたことを通信部207に通知する。
The
通信部207は、接続確立部205によって外部デバイスとの接続が確立されたことに応答して、外部デバイスとのデータ通信を実行する。通信部207は、外部デバイスとのデータ通信が完了したことに応答して、接続解除部206にデータ通信が完了した旨を通知する。
In response to the
接続解除部206は、通信部207からのデータ通信が完了した旨を示す通知に応答して、外部デバイスとの接続を解除(切断)する。接続解除部206は、切断要求送信部209に対して、外部デバイスに切断要求信号を送信するように通知する。接続解除部206は、切断応答受信部208によって受信された、外部デバイスからの切断応答信号に応答して、外部デバイスとの接続を切断する処理を完了する。また、接続解除部206は、外部デバイスとの接続が切断されたことを接続制御部204に通知する。
The
以上の構成により、通信制御プログラム103aは、電子機器10と外部デバイスとの間の接続が切断された後に、電子機器10と外部デバイスとの間で不要な接続(再接続)が確立されることを抑制できる。また、通信制御プログラム103aは、ユーザが意図して再タッチ操作を行った場合には、タイムラグなく、電子機器10と外部デバイスとの間の再接続を確立することができる。通信制御プログラム103aは、例えば、図5から図9を参照して後述するシーケンスのように、電子機器10と外部デバイスとの間の接続を制御する。
With the above configuration, the
なお、接続制御部204は、電子機器10と外部デバイスとの間の接続が切断された後の所定の期間には、電子機器10と外部デバイスとを離す操作が行われる可能性があることを想定して、受信される接続要求信号を無視(接続要求信号を破棄すること、または接続要求信号に対して対接続応答信号を送信しないことをいう)する処理を行ってもよい。その場合、接続制御部204は、接続が切断された後の所定の期間内(例えば、1〜2秒間)に受信された、外部デバイスからの接続要求信号を無視し、外部デバイスとの再接続の確立を抑制する。そして、接続制御部204は、さらに継続して(例えば、μsecオーダーで)、外部デバイスからの接続要求信号が受信される場合には、その接続要求信号を無視し、外部デバイスとの再接続の確立を抑制する。また、接続制御部204は、所定の期間内に受信された、外部デバイスからの接続要求信号を無視した後に、接続要求信号の非受信期間がしきい値期間以上継続するまで外部デバイスとの接続の確立を抑制し、非受信期間がしきい値期間以上継続した後に接続要求信号が受信されたことに応答して外部デバイスとの接続の確立を許可する。具体的には、接続が切断されてから所定の期間内に受信された、外部デバイスからの接続要求信号を無視した後に、外部デバイスから第1の接続要求信号を受信してから、第1の接続要求信号に後続する第2の接続要求信号を受信するまでの時間(第2期間)がしきい値(例えば、1〜2秒)以上である場合、接続制御部204は、電子機器10と外部デバイスとの再接続の確立を許可する。
Note that the
図5は、電子機器10と外部デバイスとの間の接続シーケンスの例を示す。外部デバイスは、例えばパーソナルコンピュータである。
FIG. 5 shows an example of a connection sequence between the
まず、外部デバイスは、接続要求信号C−Reqを送信する(S11)。外部デバイスは、送信した接続要求信号C−Reqに対する接続応答信号C−ACKが受信されない場合には、再度、接続要求信号C−Reqを送信する(S12)。外部デバイスは、S11及びS12に示すように、接続要求信号C−Reqを所定時間毎に(例えば、μsecオーダーで)送信する。 First, the external device transmits a connection request signal C-Req (S11). When the connection response signal C-ACK for the transmitted connection request signal C-Req is not received, the external device transmits the connection request signal C-Req again (S12). As shown in S11 and S12, the external device transmits a connection request signal C-Req every predetermined time (for example, on the order of μsec).
電子機器10(図5中、デバイス)は、外部デバイスに近接して、接続要求信号C−Reqを受信したとき、接続応答信号C−ACKを外部デバイスに返信する(S13)。外部デバイスは、接続応答信号C−ACKを受信したことに応答して、接続を確立する処理を開始する。 When the electronic device 10 (device in FIG. 5) receives the connection request signal C-Req in the vicinity of the external device, it returns a connection response signal C-ACK to the external device (S13). In response to receiving the connection response signal C-ACK, the external device starts processing for establishing a connection.
電子機器10と外部デバイスとは、接続が確立されたことに応答して、データ通信を実行する(S14)。データ通信は、例えば、ファイルの伝送である。電子機器10は、データ通信が完了したことに応答して、切断要求信号C−Relを外部デバイスに送信する(S15)。外部デバイスは、切断要求信号C−Relを受信した際には、切断応答信号ACKを電子機器10に送信する(S16)。そして、電子機器10は、切断応答信号ACKを受信したことに応答して、電子機器10と外部デバイスとの間の接続を切断する処理を完了する。
In response to the establishment of the connection, the
次いで、外部デバイスは、接続要求信号C−Reqを送信する(S17)。電子機器10がこの接続要求信号C−Reqを受信した際には、上述のS12からS16に示したようなデバイス間の接続の確立、データ通信、及び接続の解除が再度実行される。
Next, the external device transmits a connection request signal C-Req (S17). When the
上述のように、外部デバイスは、電子機器10が近接状態となったことに応じて、電子機器10と外部デバイスとの接続を確立できるように、所定時間毎に接続要求信号を送信する。電子機器10は、近接状態にある外部デバイスからの接続要求信号を受信することで、通信可能な外部デバイスを検出する。そして、電子機器10は、接続要求信号に応答する接続応答信号を外部デバイスに送信することで、外部デバイスとの接続を確立することができる。
As described above, the external device transmits a connection request signal every predetermined time so that the connection between the
外部デバイスは、所定の時間毎に接続要求信号を送信し、したがって、電子機器10との接続が解除された後にも、接続要求信号を送信し続ける。電子機器10と外部デバイスとを離す操作が行われた場合には、接続要求信号が電子機器10に到達しないため、不要な再接続は確立されない。しかし、電子機器10と外部デバイスとの間の接続が解除された後に、電子機器10と外部デバイスとが近接状態に維持(放置)されている場合、電子機器10は、必要なデータ通信が完了したにも関わらず、外部デバイスからの接続要求信号に応答して、接続応答信号を送信する。このため、電子機器10と外部デバイスとの間の接続が解除された後に、電子機器10と外部デバイスとが近接状態に維持されている場合、電子機器10と外部デバイスとの間で不要な接続が確立される可能性がある。例えば、ユーザは、携帯電話機である電子機器10内に保存されたファイルを、パーソナルコンピュータである外部デバイスに転送してバックアップを取る際に、その転送処理に、例えば数分程度の時間を要するときには、パーソナルコンピュータに設けられた通信位置上に携帯電話機を置いた状態(近接状態)で他の作業等を行うことが想定される。そのような場合には、転送処理(データ通信)が完了した後にも、パーソナルコンピュータ上に携帯電話機が放置され、パーソナルコンピュータと携帯電話機との近接状態が維持されることにより、デバイス間で不要な接続が確立される可能性がある。
The external device transmits a connection request signal every predetermined time, and thus continues to transmit the connection request signal even after the connection with the
このような不要な接続が確立された場合、実行すべきデータ通信は完了しているため、再度、接続が解除される。つまり、電子機器10と外部デバイスとが近接状態に維持されている場合、実行すべきデータ通信が完了したにも関わらず、デバイス間の接続の確立と解除とが繰り返し実行される可能性がある。また、電子機器10と外部デバイスとの間の接続が解除された後に、単に一定期間だけ再接続を禁止する方法では、その期間が短い場合には、やはり不要な再接続が確立される可能性がある。しかし、その期間を長く設定した場合には、ユーザが再度接続しようとしているにも関わらず、接続を確立することができない可能性がある。そのため、本実施形態の近接無線通信制御プログラム103aは、上述のように、外部デバイスから電子機器10に送信される接続要求信号が途切れた期間の長さに応じて、電子機器10と外部デバイスとの間の接続が解除された後の再接続の確立を制御する。すなわち、通信制御プログラム103aは、切断要求信号に応じて外部デバイスとの接続が解除されてから接続要求信号の非受信期間(接続要求信号が途切れた期間)がしきい値期間以上継続するまで外部デバイスとの接続の確立を抑制(禁止)し、非受信期間がしきい値期間以上継続した後に接続要求信号が受信されたことに応答して外部デバイスとの接続の確立を許可する。
When such an unnecessary connection is established, since the data communication to be executed is completed, the connection is released again. That is, when the
図6から図9は、電子機器10(デバイス)と外部デバイスとの間の再接続を制御するシーケンスの例を示す。図6から図9に示す例では、電子機器10と外部デバイスとの間で接続が確立され、実行すべきデータ通信が完了していることを想定する。
6 to 9 show examples of sequences for controlling reconnection between the electronic apparatus 10 (device) and an external device. In the example illustrated in FIGS. 6 to 9, it is assumed that a connection is established between the
図6に示す例では、まず、電子機器10は、切断要求信号C−Relを外部デバイスに送信する(S21)。外部デバイスは、電子機器10から送信された切断要求信号C−Relに応答して、切断応答信号ACKを電子機器10に送信する(S22)。電子機器10は、外部デバイスから切断応答信号ACKを受信したことに応答して、外部デバイスとの接続を切断する処理を完了する。
In the example shown in FIG. 6, first, the
切断が完了してから、外部デバイスが新たな接続要求信号C−Reqを送信するまでの時間がしきい値b以上である場合(S23)、換言すると、切断が完了した後、接続要求信号C−Reqがしきい値bだけ途切れた後に、電子機器10が新たな接続要求信号C−Reqを受信した場合、電子機器10は、受信した接続要求信号C−Reqに応答して、接続応答信号C−ACKを外部デバイスに送信する(S24)。つまり、切断が完了してから新たな接続要求信号C−Reqを受信するまでの時間がしきい値b以上である場合に、電子機器10(通信制御プログラム103a)は、外部デバイスとの接続(再接続)の確立を許可する。
When the time from when the disconnection is completed until the external device transmits a new connection request signal C-Req is equal to or greater than the threshold value b (S23), in other words, after the disconnection is completed, the connection request signal C When the
次いで、図7に示す例では、まず、電子機器10は、切断要求信号C−Relを外部デバイスに送信する(S31)。外部デバイスは、電子機器10から送信された切断要求信号C−Relに応答して、切断応答信号ACKを電子機器10に送信する(S32)。電子機器10は、外部デバイスから切断応答信号ACKを受信したことに応答して、外部デバイスとの接続を切断する処理を完了する。
Next, in the example illustrated in FIG. 7, first, the
切断が完了してから、外部デバイスが新たな接続要求信号C−Reqを送信するまでの時間がしきい値b未満である場合(S33)、換言すると、切断が完了した後、接続要求信号C−Reqがしきい値bだけ途切れる前に、電子機器10が新たな接続要求信号C−Reqを受信した場合、電子機器10は、受信した接続要求信号C−Reqを破棄し(または接続要求信号C−Reqに対して対接続応答信号C−ACKを送信せず)、外部デバイスとの接続(再接続)の確立を許可しない。つまり、切断が完了してから接続要求信号C−Req(S33)を受信するまでの時間がしきい値b未満である場合、電子機器10(通信制御プログラム103a)は、外部デバイスとの再接続を抑制するように近接無線通信デバイス104等を制御する。
When the time from when the disconnection is completed until the external device transmits a new connection request signal C-Req is less than the threshold value b (S33), in other words, after the disconnection is completed, the connection request signal C When the
次いで、S33に示す接続要求信号C−Reqを受信してから、後続する接続要求信号C−Reqを受信するまでの時間がしきい値b未満である場合(S34)、すなわち、接続要求信号C−Reqがしきい値bだけ途切れない場合、電子機器10は、受信した接続要求信号C−Reqを破棄し(または接続要求信号C−Reqに対して対接続応答信号C−ACKを送信せず)、外部デバイスとの接続(再接続)の確立を許可しない。つまり、接続要求信号C−Reqを受信(S33)してから、後続する接続要求信号C−Reqを受信(S34)するまでの時間がしきい値b未満である場合、電子機器10(通信制御プログラム103a)は、外部デバイスとの再接続を抑制するように近接無線通信デバイス104等を制御する。
Next, when the time from receiving the connection request signal C-Req shown in S33 to receiving the subsequent connection request signal C-Req is less than the threshold value b (S34), that is, the connection request signal C When -Req is not interrupted by the threshold value b, the
そして、S34に示す接続要求信号C−Reqを受信してから、後続する接続要求信号C−Reqを受信するまでの時間がしきい値b以上である場合(S35)、換言すると、接続要求信号C−Reqがしきい値bだけ途切れた場合、電子機器10は、外部デバイスとの接続(再接続)の確立を許可する。したがって、電子機器10は、受信した接続要求信号C−Reqに応答して、外部デバイスに接続応答信号C−ACKを送信する(S36)。つまり、接続要求信号C−Reqを受信(S34)してから、後続する接続要求信号C−Reqを受信(S35)するまでの時間がしきい値b以上である場合、電子機器10(通信制御プログラム103a)は、外部デバイスとの再接続を確立するように近接無線通信デバイス104等を制御する。
When the time from reception of the connection request signal C-Req shown in S34 to reception of the subsequent connection request signal C-Req is equal to or greater than the threshold value b (S35), in other words, the connection request signal When C-Req is interrupted by the threshold value b, the
外部デバイスは、電子機器10から送信された接続応答信号C−ACKに応答して、電子機器10との接続を確立する処理を開始する。
In response to the connection response signal C-ACK transmitted from the
また、図8に示す例では、まず、電子機器10は、切断要求信号C−Relを外部デバイスに送信する(S41)。外部デバイスは、電子機器10から送信された切断要求信号C−Relに応答して、切断応答信号ACKを電子機器10に送信する(S42)。電子機器10は、外部デバイスから切断応答信号ACKを受信したことに応答して、外部デバイスとの接続を切断する処理を完了する。
In the example shown in FIG. 8, first, the
切断が完了した後、しきい値aに対応する時間だけ、電子機器10は、受信する接続要求信号C−Reqを無視する(S43,S44,S45)。つまり、切断が完了した後のしきい値aに対応する期間内では、電子機器10は、受信する接続要求信号C−Reqを破棄し(または接続要求信号C−Reqに対して対接続応答信号C−ACKを送信せず)、外部デバイスとの接続(再接続)を確立する処理を実行しない。
After the disconnection is completed, the
さらに、電子機器10は、しきい値aに対応する時間だけ接続要求信号C−Reqを無視した後、継続して受信する接続要求信号C−Reqを無視する(S46,S47,S48)。具体的には、しきい値aに対応する時間だけ接続要求信号C−Reqを無視した後、さらに、接続要求信号C−Reqを受信する間隔を測定し、所定の期間毎に(例えばμsecオーダーで)接続要求信号C−Reqを受信するとき、即ち接続要求信号C−Reqの受信間隔が所定時間以下であるとき、電子機器10は、受信する接続要求信号C−Reqを破棄し(または接続要求信号C−Reqに対して対接続応答信号C−ACKを送信せず)、外部デバイスとの接続(再接続)を確立する処理を実行しない。つまり、S43からS48に示す接続要求信号C−Reqの各々を受信したとき、換言すると、切断を完了してから継続して接続要求信号C−Reqを受信したときには、電子機器10(通信制御プログラム103a)は、外部デバイスとの再接続を抑制するように近接無線通信デバイス104等を制御する。
Further, the
次いで、S48に示す接続要求信号C−Reqを受信してから、後続する接続要求信号C−Reqを受信するまでの時間がしきい値b以上である場合(S49)、換言すると、接続要求信号C−Reqがしきい値bだけ途切れた場合、電子機器10は、外部デバイスとの接続(再接続)の確立を許可する。したがって、電子機器10は、受信した接続要求信号C−Reqに応答して、外部デバイスに接続応答信号C−ACKを送信する(S50)。つまり、接続要求信号C−Reqを受信(S48)してから、後続する接続要求信号C−Reqを受信(S49)するまでの時間がしきい値b以上である場合、電子機器10(通信制御プログラム103a)は、外部デバイスとの再接続を確立するように近接無線通信デバイス104等を制御する。
Next, when the time from reception of the connection request signal C-Req shown in S48 to reception of the subsequent connection request signal C-Req is equal to or greater than the threshold value b (S49), in other words, the connection request signal When C-Req is interrupted by the threshold value b, the
外部デバイスは、電子機器10から送信された接続応答信号C−ACKに応答して、電子機器10との接続を確立する処理を開始する。
In response to the connection response signal C-ACK transmitted from the
また、図6から図8では、始めに電子機器10から外部デバイスに切断要求信号C−Relが送信される例を示したが、図9に示す例では、まず、外部デバイスから電子機器10に切断要求信号C−Relが送信される(S51)。電子機器10は、外部デバイスからの切断要求信号C−Relを受信したことに応答して、切断応答信号ACKを外部デバイスに送信する(S52)。外部デバイスは、電子機器10から切断応答信号ACKを受信したことに応答して、電子機器10との接続を切断する処理を完了する。なお、これは、切断応答受信部208及び切断要求送信部209に、切断要求信号を受信する機能と切断応答信号を送信する機能とを持たせることによって実現することができる。
6 to 8 show an example in which the disconnection request signal C-Rel is first transmitted from the
上述のように、外部デバイスから電子機器10に切断要求信号C−Relが送信される場合にも、通信制御プログラム103aは、図8に示す例のようにデバイス間の接続(再接続)を制御する処理を実行する。したがって、図9のS53からS60に示すシーケンスは、図8のS43からS50に示すシーケンスと同様に処理される。
As described above, even when the disconnection request signal C-Rel is transmitted from the external device to the
図10のフローチャートは、近接無線通信制御プログラム103aによって実行される接続処理の手順の例を示す。通信制御プログラム103aは、電子機器10と外部デバイスとの間でデータ通信を実行するため、デバイス間の接続の確立及び解除を制御する。
The flowchart of FIG. 10 shows an example of a procedure of connection processing executed by the close proximity wireless
まず、通信制御プログラム103aは、外部デバイスから接続を要求する接続要求信号が受信されたか否かを判定する(ステップS101)。具体的には、通信制御プログラム103aは、近接無線通信デバイス104(アンテナ104b)を介して、近接する外部デバイスからの接続要求信号が受信されたか否かを判定する。外部デバイスは、例えば所定の時間毎(例えば、μsecオーダー)に接続要求信号を送信する。接続要求信号が受信されていない場合(ステップS101のNO)、通信制御プログラム103aは、再度、ステップS101の処理を実行する。
First, the
接続要求信号が受信された場合(ステップS101のYES)、通信制御プログラム103aは、該接続要求信号に応答して、外部デバイスに接続応答信号を送信する(ステップS102)。これにより、電子機器10と外部デバイスとの間の接続が確立される。
When the connection request signal is received (YES in step S101), the
次いで、通信制御プログラム103aは、電子機器10と外部デバイスとの間でデータ通信を実行する(ステップS103)。このデータ通信は、例えば、ファイルの伝送である。そして、通信制御プログラム103aは、電子機器10と外部デバイスとの間のデータ通信が完了したか否かを判定する(ステップS104)。データ通信が完了していない場合(ステップS104のNO)、通信制御プログラム103aは、ステップS103の処理に戻り、さらにデータ通信を実行する。
Next, the
一方、データ通信が完了している場合(ステップS104のYES)、通信制御プログラム103aは、電子機器10と外部デバイスと間の接続の切断(解除)を要求する切断要求信号を、外部デバイスに送信する(ステップS105)。そして、通信制御プログラム103aは、該切断要求信号に応答する切断応答信号が外部デバイスから受信されたか否かを判定する(ステップS106)。切断応答信号が受信されていない場合(ステップS106のNO)、通信制御プログラム103aは、ステップS105の処理に戻り、再度、切断要求信号を送信する。なお、通信制御プログラム103aは、切断要求信号を再送信する代わりに、所定の時間だけ待った後、再度、切断応答信号が受信されたか否かを判定してもよい。
On the other hand, when the data communication is completed (YES in step S104), the
切断応答信号が受信された場合(ステップS106のYES)、通信制御プログラム103aは、電子機器10と外部デバイスとの間の接続を切断する処理を実行する(ステップS107)。そして、通信制御プログラム103aは、ステップS101以降の処理を繰り返す。すなわち、通信制御プログラム103aは、外部デバイスとの接続の確立、データ通信、及び接続の解除を繰り返し実行する。
When the disconnection response signal is received (YES in step S106), the
以上の処理により、通信制御プログラム103aは、電子機器10と外部デバイスとの間でデータ通信を実行することができる。電子機器10は、近接状態にある外部デバイスから送信される接続要求信号を受信し、外部デバイスとの接続の確立、データ通信、及び接続の解除を実行する。
Through the above processing, the
通信制御プログラム103aは、さらに、デバイス間の接続が解除された後、不要な再接続を抑制するための処理を行う。図11のフローチャートは、近接無線通信制御プログラム103aによって実行される再接続制御処理の手順の例を示す。この再接続制御処理では、通信制御プログラム103aは、電子機器10と外部デバイスとの間の接続が解除された後、継続して受信される接続要求信号を破棄し(または接続要求信号C−Reqに対して対接続応答信号C−ACKを送信せず)、再接続を抑制(禁止)する。
The
まず、通信制御プログラム103aは、電子機器10と外部デバイスとの間の接続を切断する処理が完了したか否かを判定する(ステップS201)。電子機器10と外部デバイスとの間の接続を切断する処理が完了していない場合(ステップS201のNO)、通信制御プログラム103aは、ステップS201の処理により、再度、電子機器10と外部デバイスとの間の接続を切断する処理が完了したか否かを判定する。
First, the
電子機器10と外部デバイスとの間の接続を切断する処理が完了している場合(ステップS201のYES)、通信制御プログラム103aは、外部デバイスから送信される接続要求信号のモニタを開始する(ステップS202)。そして、通信制御プログラム103aは、外部デバイスからの接続要求信号が受信されたか否かを判定する(ステップS203)。接続要求信号が受信されていない場合(ステップS203のNO)、通信制御プログラム103aは、ステップS203の処理により、再度、外部デバイスからの接続要求信号が受信されたか否かを判定する。
When the process of disconnecting the connection between the
一方、接続要求信号が受信されている場合(ステップS203のYES)、通信制御プログラム103aは、電子機器10と外部デバイスとの間の接続を切断する処理が完了してから最初に接続要求信号が受信されるまでの期間を示す第1期間を算出し、この第1期間がしきい値期間b未満であるか否かを判定する(ステップS204)。第1期間がしきい値期間b未満である場合(ステップS204のYES)、通信制御プログラム103aは、電子機器10と外部デバイスとの間の接続の確立を抑制し、そして、一つ前に受信された接続要求信号に後続する接続要求信号が受信されたか否かを判定する(ステップS205)。後続する接続要求信号が受信されてない場合(ステップS205のNO)、通信制御プログラム103aは、ステップS205の処理により、再度、後続する接続要求信号が受信されたか否かを判定する。
On the other hand, when the connection request signal is received (YES in step S203), the
後続する接続要求信号が受信されている場合(ステップS205のYES)、通信制御プログラム103aは、一つ前の接続要求信号が受信されてから後続する接続要求信号が受信されるまでの期間を示す第2期間を算出し、この第2期間がしきい値期間b未満であるか否かを判定する(ステップS206)。第2期間がしきい値期間b未満である場合(ステップS206のYES)、通信制御プログラム103aは、電子機器10と外部デバイスとの間の接続の確立を抑制する。そして、通信制御プログラム103aは、ステップS205の処理に戻り、さらに後続する接続要求信号が受信されたか否かを判定する。
When the subsequent connection request signal is received (YES in step S205), the
第1期間がしきい値期間b未満でない場合(ステップS204のNO)、又は第2期間がしきい値期間b未満でない場合(ステップS206のNO)、通信制御プログラム103aは、電子機器10が外部デバイスとの間の接続を再度、確立するための処理を実行する(ステップS207)。すなわち、通信制御プログラム103aは、電子機器10と外部デバイスとの間の再接続の確立の禁止を解除する。
When the first period is not less than the threshold period b (NO in step S204) or when the second period is not less than the threshold period b (NO in step S206), the
以上の処理により、通信制御プログラム103aは、電子機器10と外部デバイスとの間の接続が解除された後に、不要な再接続が確立されることを抑制することができる。
Through the above processing, the
また、図12のフローチャートは、近接無線通信制御プログラム103aによって実行される再接続制御処理の手順の別の例を示す。
Moreover, the flowchart of FIG. 12 shows another example of the procedure of the reconnection control process executed by the close proximity wireless
まず、通信制御プログラム103aは、電子機器10と外部デバイスとの間の接続を切断する処理が完了したか否かを判定する(ステップS301)。電子機器10と外部デバイスとの間の接続を切断する処理が完了していない場合(ステップS301のNO)、通信制御プログラム103aは、ステップS301の処理により、再度、電子機器10と外部デバイスとの間の接続を切断する処理が完了したか否かを判定する。
First, the
電子機器10と外部デバイスとの間の接続を切断する処理が完了している場合(ステップS301のYES)、通信制御プログラム103aは、外部デバイスから送信される接続要求信号のモニタを開始する(ステップS302)。そして、通信制御プログラム103aは、切断処理が完了してからしきい値期間a以内(例えば、1、2秒間)に受信される接続要求信号を無視(接続要求信号を破棄すること、または接続要求信号に対して対接続応答信号を送信しないことをいう)する(ステップS303)。
When the process of disconnecting the connection between the
次いで、通信制御プログラム103aは、外部デバイスからの接続要求信号がさらに継続して受信されたか否かを判定する(ステップS304)。接続要求信号が継続して受信されている場合(ステップS304のYES)、通信制御プログラム103aは、一つ前の接続要求信号が受信されてから後続する接続要求信号が受信されるまでの期間を示す第2期間を算出し、この第2期間がしきい値期間b未満であるか否かを判定する(ステップS305)。第2期間がしきい値期間b未満である場合(ステップS305のYES)、通信制御プログラム103aは、電子機器10と外部デバイスとの間の再接続の確立を抑制する。そして、通信制御プログラム103aは、ステップS305の処理に戻り、さらに後続する接続要求信号がしきい値期間b未満に受信されたか否かを判定する。
Next, the
継続して接続要求信号が受信されていない場合(ステップS304のNO)、又は第2期間がしきい値期間b未満でない場合(ステップS305のNO)、通信制御プログラム103aは、電子機器10が外部デバイスとの間の接続を再度、確立するための処理を実行する(ステップS306)。すなわち、通信制御プログラム103aは、電子機器10と外部デバイスとの間の再接続の確立の禁止を解除する。
When the connection request signal is not continuously received (NO in step S304), or when the second period is not less than the threshold period b (NO in step S305), the
以上の処理により、通信制御プログラム103aは、電子機器10と外部デバイスとの間の接続が解除された後に、不要な再接続が確立されることを抑制することができる。また、不要な再接続が確立されることを抑制できることにより、接続に応じて、通信のためのアプリケーションプログラムが起動/終了されること、音声が出力されること、LEDが点滅されること等も抑制することができる。したがって、消費電力を抑えることもできる。
Through the above processing, the
以上説明したように、本実施形態によれば、デバイス間の不要な接続を抑制できる。電子機器10は、外部デバイスとの接続が解除された後に、電子機器10と外部デバイスとが近接状態に維持されることによって、不要な再接続が確立されることを抑制する。電子機器10は、電子機器10と外部デバイスとが単に近接状態で放置されている場合には、不要な再接続であると判定し、再接続の確立を抑制する。一方、電子機器10と外部デバイスとが一旦離された後に、再度近接させる操作(再タッチ操作)が行われることによって、電子機器10と外部デバイスとが近接状態に維持されている場合には、必要な再接続であると判定し、再接続の確立を許可する。
As described above, according to the present embodiment, unnecessary connection between devices can be suppressed. After the connection with the external device is released, the
なお、本実施形態の接続制御処理の手順は全てソフトウェアによって実行することができる。このため、接続制御処理の手順を実行するプログラムを格納したコンピュータ読み取り可能な記憶媒体を通じてこのプログラムを通常のコンピュータにインストールして実行するだけで、本実施形態と同様の効果を容易に実現することができる。 Note that all of the connection control processing procedures of this embodiment can be executed by software. For this reason, it is possible to easily realize the same effect as that of the present embodiment simply by installing and executing this program on a normal computer through a computer-readable storage medium storing a program for executing the connection control processing procedure. Can do.
また本発明は上記実施形態そのままに限定されるものではなく、実施段階ではその要旨を逸脱しない範囲で構成要素を変形して具体化できる。また、上記実施形態に開示されている複数の構成要素の適宜な組み合わせにより、種々の発明を形成できる。例えば、実施形態に示される全構成要素からいくつかの構成要素を削除してもよい。さらに、異なる実施形態にわたる構成要素を適宜組み合わせてもよい。 Further, the present invention is not limited to the above-described embodiment as it is, and can be embodied by modifying the constituent elements without departing from the scope of the invention in the implementation stage. In addition, various inventions can be formed by appropriately combining a plurality of components disclosed in the embodiment. For example, some components may be deleted from all the components shown in the embodiment. Furthermore, constituent elements over different embodiments may be appropriately combined.
103a…近接無線通信制御プログラム、201…接続要求受信部、202…接続応答送信部、203…受信間隔測定部、204…接続制御部、205…接続確立部、206…接続解除部、207…通信部、208…切断応答受信部、209…切断要求送信部。
DESCRIPTION OF
Claims (6)
前記外部デバイスから接続要求信号が受信された場合に、前記外部デバイスとの接続を制御する接続制御手段であって、
前記外部デバイスとの接続が切断された後、前記外部デバイスによって第1期間毎に前記接続要求信号が送信されている場合に、前記接続要求信号の受信が途切れた非受信期間が、前記第1期間よりも長いしきい値期間以上継続するまで前記外部デバイスとの接続を抑制し、前記非受信期間が前記しきい値期間以上継続すると、前記接続要求信号が受信されたことに応答して前記外部デバイスとの接続を許可する接続制御手段とを具備する電子機器。 A communication module that performs close proximity wireless communication with an external device;
Wherein when the connection request signal is received from an external device, a connection control unit for controlling the connection with the external device,
After the connection with the external device is disconnected, when the connection request signal every first period by the external device is transmitted, the non-reception period the reception is interrupted before Symbol connection request signal, said first until persists for more than a long threshold period than one period to suppress the connection with the external device, continuing the previous SL non-reception period the threshold period or more result, in particular in response the connection request signal is received An electronic device comprising connection control means for permitting connection with the external device.
前記接続制御手段は、
前記外部デバイスとの接続が切断された後の前記しきい値期間の間、前記接続要求信号を破棄し、
前記外部デバイスとの接続が切断されてから前記しきい値期間が経過した後、前記間隔測定手段により測定される前記間隔が前記しきい値期間以下である場合、継続して前記接続要求信号を破棄し、
前記非受信期間が前記しきい値期間以上継続するまで前記外部デバイスとの接続を抑制し、前記非受信期間が前記しきい値期間以上継続すると、前記接続要求信号が受信されたことに応答して前記外部デバイスとの接続を許可する請求項1記載の電子機器。 Further comprising interval measuring means for measuring an interval between connection request signals received from the external device;
The connection control means includes
Discarding the connection request signal during the threshold period after the connection with the external device is disconnected;
When the interval measured by the interval measuring unit is equal to or less than the threshold period after the threshold period has elapsed since the connection with the external device is disconnected, the connection request signal is continuously transmitted. Destroy,
Wherein the connection between the external device is suppressed until the non-reception period continues over the threshold period, continuing the previous SL non-reception period the threshold period or more Then, to the connection request signal is received 請 Motomeko 1 electronic device according response you allow the connection with the external device.
前記外部デバイスから接続要求信号が受信された場合に、前記外部デバイスとの接続を制御する接続制御ステップであって、
前記外部デバイスとの接続が切断された後、前記外部デバイスによって第1期間毎に前記接続要求信号が送信されている場合に、前記接続要求信号の受信が途切れた非受信期間が、前記第1期間よりも長いしきい値期間以上継続するまで前記外部デバイスとの接続を抑制し、前記非受信期間が前記しきい値期間以上継続すると、前記接続要求信号が受信されたことに応答して前記外部デバイスとの接続を許可する接続制御ステップとを具備する通信制御方法。 A communication control method for controlling close proximity wireless communication with an external device by a communication module,
Wherein when the connection request signal is received from an external device, a connection control step of controlling the connection to the external device,
After the connection with the external device is disconnected, when the connection request signal every first period by the external device is transmitted, the non-reception period the reception is interrupted before Symbol connection request signal, said first It suppresses the connection with the external device to continue over a long threshold period than one period, continuing the previous SL non-reception period the threshold period or more then, in response to said connection request signal has been received And a connection control step for permitting connection with the external device.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2011188931A JP5398800B2 (en) | 2011-08-31 | 2011-08-31 | Electronic device and communication control method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2011188931A JP5398800B2 (en) | 2011-08-31 | 2011-08-31 | Electronic device and communication control method |
Related Parent Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2010042899A Division JP2011182110A (en) | 2010-02-26 | 2010-02-26 | Electronic apparatus, and communication control method |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2012016050A JP2012016050A (en) | 2012-01-19 |
JP5398800B2 true JP5398800B2 (en) | 2014-01-29 |
Family
ID=45601857
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2011188931A Active JP5398800B2 (en) | 2011-08-31 | 2011-08-31 | Electronic device and communication control method |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP5398800B2 (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2017177645A (en) * | 2016-03-31 | 2017-10-05 | ブラザー工業株式会社 | Printing device |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2017117319A (en) * | 2015-12-25 | 2017-06-29 | 東芝テック株式会社 | Sales data processing device and electronic receipt system |
JP6052438B2 (en) * | 2016-01-06 | 2016-12-27 | ブラザー工業株式会社 | Communication device |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2567809Y2 (en) * | 1992-02-24 | 1998-04-08 | 神鋼電機株式会社 | Non-contact IC card type gate device |
JP5056577B2 (en) * | 2008-05-19 | 2012-10-24 | パナソニック株式会社 | Reader / writer and non-contact IC module |
JP2010021723A (en) * | 2008-07-09 | 2010-01-28 | Sony Ericsson Mobilecommunications Japan Inc | Communication terminal, communication system, communication control method, and communication control program |
JP5254294B2 (en) * | 2010-09-14 | 2013-08-07 | 株式会社東芝 | Electronic device and communication control method |
-
2011
- 2011-08-31 JP JP2011188931A patent/JP5398800B2/en active Active
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2017177645A (en) * | 2016-03-31 | 2017-10-05 | ブラザー工業株式会社 | Printing device |
Also Published As
Publication number | Publication date |
---|---|
JP2012016050A (en) | 2012-01-19 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP2011182110A (en) | Electronic apparatus, and communication control method | |
US8463183B2 (en) | Headset charge via short-range RF communication | |
JP4461192B1 (en) | Electronic device and communication control method | |
JP4405569B1 (en) | Electronic device and communication control method | |
JP4599449B2 (en) | Electronic device and communication control method | |
US8838032B2 (en) | Communication terminal and communication control method | |
JP5828772B2 (en) | Communication device, control method, and program | |
JP2011044092A (en) | Communication system, information processing device, information processing method, and information processing program | |
WO2009047473A2 (en) | Pairing exchange | |
JP2010028753A (en) | Communication device and communication control method | |
JP4703758B2 (en) | Electronic device and communication control method | |
JP5398800B2 (en) | Electronic device and communication control method | |
JP2015019340A (en) | Control device, electronic equipment, control method, and program | |
CN114245362A (en) | Device reconnection method and Bluetooth peripheral | |
US10645737B2 (en) | Wireless communication terminal, wireless communication system, wireless communication method, and recording medium | |
US9307068B2 (en) | Information processing apparatus and communication processing method thereof | |
US20120276850A1 (en) | Electronic apparatus and communication control method | |
KR101765128B1 (en) | Method and apparatus for avoiding noise in no contact charging system | |
WO2011138839A1 (en) | Communication device and wireless communication method | |
US20080113620A1 (en) | Radio communication apparatus and power control method of radio communication apparatus | |
JP5010718B2 (en) | Communication apparatus and communication control method | |
JP5254294B2 (en) | Electronic device and communication control method | |
JP4856270B2 (en) | Electronic device and communication control method | |
JP2018042204A (en) | Electronic apparatus | |
JP5622602B2 (en) | Electronic device and communication control method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20130624 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20130702 |
|
RD02 | Notification of acceptance of power of attorney |
Free format text: JAPANESE INTERMEDIATE CODE: A7422 Effective date: 20130730 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20130826 |
|
TRDD | Decision of grant or rejection written | ||
A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20131001 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20131022 |
|
R151 | Written notification of patent or utility model registration |
Ref document number: 5398800 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R151 |
|
S111 | Request for change of ownership or part of ownership |
Free format text: JAPANESE INTERMEDIATE CODE: R313121 Free format text: JAPANESE INTERMEDIATE CODE: R313117 |
|
R350 | Written notification of registration of transfer |
Free format text: JAPANESE INTERMEDIATE CODE: R350 |