JP5398800B2 - Electronic device and communication control method - Google Patents

Electronic device and communication control method Download PDF

Info

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
Application number
JP2011188931A
Other languages
Japanese (ja)
Other versions
JP2012016050A (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.)
Toshiba Corp
Original Assignee
Toshiba Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Toshiba Corp filed Critical Toshiba Corp
Priority to JP2011188931A priority Critical patent/JP5398800B2/en
Publication of JP2012016050A publication Critical patent/JP2012016050A/en
Application granted granted Critical
Publication of JP5398800B2 publication Critical patent/JP5398800B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • YGENERAL 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
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE 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/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing 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.

特開平7−177065号公報Japanese Patent Laid-Open No. 7-177065

ところで、近接無線通信方式では、デバイス同士を近づけるだけで自動的にサービスの実行を開始したいという要求がある。デバイス同士を近づけて自動的にサービスの実行を開始する場合、例えば、携帯電話機をパーソナルコンピュータに近づけるだけで、携帯電話機に保存されたデータとパーソナルコンピュータに格納されている当該データのバックアップとを同期させるといった機能を実現することができる。そのため、近接無線通信方式では、デバイス間の近接状態が検出されると、自動的にデバイス間の接続を確立する。   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 is a block diagram illustrating a configuration of an electronic device according to an embodiment of the present invention. 同実施形態の電子機器と外部デバイスとの間で実行される近接無線通信の例を示す図。2 is an exemplary diagram illustrating an example of close proximity wireless communication performed between the electronic apparatus of the embodiment and an external device. FIG. 同実施形態の電子機器に適用される、近接無線通信を制御するためのソフトウェアアーキテクチャの例を示す図。2 is an exemplary diagram illustrating an example of a software architecture for controlling close proximity wireless communication, which is applied to the electronic apparatus of the embodiment. FIG. 同実施形態の電子機器によって実行される近接無線通信制御プログラムの構成を示すブロック図。2 is an exemplary block diagram showing the configuration of a proximity wireless communication control program executed by the electronic apparatus of the embodiment. FIG. 同実施形態の電子機器と外部デバイスとの間の接続シーケンスの例を示す図。FIG. 6 is a diagram showing an example of a connection sequence between the electronic apparatus and the external device of the embodiment. 同実施形態の電子機器と外部デバイスとの間の再接続を制御するシーケンスの例を示す図。FIG. 6 is an exemplary view showing an example of a sequence for controlling reconnection between the electronic apparatus of the embodiment and an external device. 同実施形態の電子機器と外部デバイスとの間の再接続を制御するシーケンスの別の例を示す図。FIG. 6 is an exemplary view showing another example of a sequence for controlling reconnection between the electronic apparatus and the external device of the embodiment. 同実施形態の電子機器と外部デバイスとの間の再接続を制御するシーケンスのさらに別の例を示す図。6 is a diagram showing still another example of a sequence for controlling reconnection between the electronic apparatus and the external device of the embodiment. FIG. 同実施形態の電子機器と外部デバイスとの間の再接続を制御するシーケンスの他の例を示す図。FIG. 6 is an exemplary view showing another example of a sequence for controlling reconnection between the electronic apparatus and the external device of the embodiment. 同実施形態の電子機器によって実行される接続処理の手順の例を示すフローチャート。5 is an exemplary flowchart illustrating an example of a procedure of connection processing executed by the electronic apparatus of the embodiment. 同実施形態の電子機器によって実行される再接続制御処理の手順の例を示すフローチャート。6 is an exemplary flowchart illustrating an example of a procedure of reconnection control processing executed by the electronic apparatus of the embodiment. 同実施形態の電子機器によって実行される再接続制御処理の手順の別の例を示すフローチャート。6 is an exemplary flowchart illustrating another example of the reconnection control process executed by the electronic apparatus of the embodiment.

以下、図面を参照して、本発明の実施形態を説明する。
図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 electronic device 10 includes a system control unit 101, a ROM 102, a RAM 103, a proximity wireless communication device 104, a power supply control unit 105, an AC adapter 106, a battery 107, and a storage device 108.

システム制御部101は、電子機器10内の各部の動作を制御する。システム制御部101は、CPU101aを備え、ROM102、RAM103、近接無線通信デバイス104、電源制御部105、及び記憶装置108に接続される。   The system control unit 101 controls the operation of each unit in the electronic device 10. The system control unit 101 includes a CPU 101 a and is connected to a ROM 102, a RAM 103, a proximity wireless communication device 104, a power supply control unit 105, and a storage device 108.

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 ROM 102 into the RAM 103 and executes necessary processing. The RAM 103 is loaded with a proximity wireless communication control program 103a for controlling the proximity wireless communication. The CPU 101 a controls the near field communication device 104 by executing the near field communication control program 103 a loaded in the RAM 103.

近接無線通信デバイス104は、近接無線通信を実行する通信モジュールである。近接無線通信デバイス104は、近接無線通信デバイス104から所定の距離内に存在する、近接無線通信機能を有する他のデバイス(外部デバイス)との無線接続を確立し、そしてファイルのようなデータの伝送を開始する。近接無線通信デバイス104と外部デバイスとの間の近接無線通信は、ピアツーピア形式で実行される。通信可能距離は例えば3cmである。近接無線通信デバイス104と外部デバイスとの間の無線接続は、近接無線通信デバイス104と外部デバイスとが近接状態である場合、つまり近接無線通信デバイス104と外部デバイスとの間の距離が通信可能距離(例えば3cm)以内に接近した場合に可能となる。近接無線通信デバイス104と外部デバイスとが通信可能距離以内に接近した時、近接無線通信デバイス104と外部デバイスとの間の無線接続が確立される。そして、例えば、外部デバイスは、記憶装置108内の所定の記憶領域へアクセスし、所定の記憶領域からのデータファイルの読み出しや、所定の記憶領域へのデータファイルの書き込み等によるデータの伝送が、近接無線通信デバイス104と外部デバイスとの間で実行される。   The close proximity wireless transfer device 104 is a communication module that executes close proximity wireless transfer. The close proximity wireless transfer device 104 establishes a wireless connection with another device (external device) having a close proximity wireless communication function that exists within a predetermined distance from the close proximity wireless communication device 104, and transmits data such as a file. To start. Proximity wireless communication between the proximity wireless communication device 104 and the external device is performed in a peer-to-peer manner. The communicable distance is 3 cm, for example. The wireless connection between the close proximity wireless communication device 104 and the external device is such that the close proximity wireless communication device 104 and the external device are in close proximity, that is, the distance between the close proximity wireless communication device 104 and the external device is a communicable distance. This is possible when approaching within (for example, 3 cm). When the close proximity wireless communication device 104 and the external device approach within a communicable distance, a wireless connection is established between the close proximity wireless communication device 104 and the external device. Then, for example, the external device accesses a predetermined storage area in the storage device 108 and transmits data by reading a data file from the predetermined storage area or writing a data file to the predetermined storage area. It is executed between the close proximity wireless transfer device 104 and an external device.

近接無線通信においては、誘導電界が用いられる。近接無線通信方式としては、例えば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 wireless transfer device 104 is connected to the antenna 104b. The antenna 104b is an electrode called a coupler, and transmits / receives data to / from an external device by a wireless signal using an induced electric field. When an external device approaches within a range within a communicable distance (for example, 3 cm) from the antenna 104b, the proximity wireless communication device 104 and the antenna (coupler) of each external device are coupled by an induced electric field, whereby the proximity wireless communication device Wireless communication between the external device 104 and the external device can be executed. The close proximity wireless transfer device 104 and the antenna 104b can be realized as one module.

電源制御部105は、ACアダプタ106を介して外部から供給される電力、又はバッテリ107から供給される電力を用いて、電子機器10内の各部に電力を供給する。換言すれば、電子機器10は、AC商用電源のような外部電源、又はバッテリ107によって駆動される。ACアダプタ106は電子機器10内に設けることもできる。   The power control unit 105 supplies power to each unit in the electronic device 10 using power supplied from the outside via the AC adapter 106 or power supplied from the battery 107. In other words, the electronic device 10 is driven by an external power source such as an AC commercial power source or the battery 107. The AC adapter 106 can also be provided in the electronic device 10.

図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 field communication device 104.

図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 communication control program 103a.

物理層(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 wireless transfer device 104.

物理層(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 wireless communication device 104 and the external device set in the close state. ) And execute the process of transmitting data.

プロトコル変換層(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 electronic device 10 and the application layer of the external device.

アプリケーション層は、各種アプリケーションプロトコル(例えば、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 transfer control program 103a of this embodiment has a function corresponding to the connection layer (CNL). Note that the communication control program 103a may have functions corresponding to the protocol conversion layer (PCL) and the application layer.

図4は、近接無線通信制御プログラム103aの構成を示す。通信制御プログラム103aは、接続要求受信部201、接続応答送信部202、受信間隔測定部203、接続制御部204、接続確立部205、接続解除部206、通信部207、切断応答受信部208、及び切断要求送信部209等を備える。   FIG. 4 shows the configuration of the close proximity wireless transfer control program 103a. The communication control program 103a includes a connection request reception unit 201, a connection response transmission unit 202, a reception interval measurement unit 203, a connection control unit 204, a connection establishment unit 205, a connection release unit 206, a communication unit 207, a disconnection response reception unit 208, and A disconnection request transmission unit 209 and the like are provided.

接続要求受信部201は、近接状態にある外部デバイスから送信される接続要求信号を受信する。具体的には、接続要求受信部201は、近接無線通信デバイス104に設けられたアンテナ104bを介して、外部デバイスから接続要求信号を受信する。接続要求受信部201は、受信した接続要求信号を受信間隔測定部203と接続制御部204とに出力する。   The connection request receiving unit 201 receives a connection request signal transmitted from an external device in the proximity state. Specifically, the connection request receiving unit 201 receives a connection request signal from an external device via the antenna 104 b provided in the close proximity wireless transfer device 104. The connection request reception unit 201 outputs the received connection request signal to the reception interval measurement unit 203 and the connection control unit 204.

接続応答送信部202は、接続要求信号に応答する接続応答信号を外部デバイスに送信する。具体的には、接続応答送信部202は、接続要求信号に応答して外部デバイスとの接続が確立される際、すなわち、接続確立部205によって電子機器10と外部デバイスとの間の接続を確立する処理が実行される際に、近接無線通信デバイス104に設けられたアンテナ104bを介して、外部デバイスに接続応答信号を送信する。外部デバイスは、接続応答送信部202によって送信された接続応答信号を受信することにより、電子機器10との接続を確立する。   The connection response transmission unit 202 transmits a connection response signal in response to the connection request signal to the external device. Specifically, the connection response transmission unit 202 establishes a connection between the electronic device 10 and the external device when the connection with the external device is established in response to the connection request signal, that is, by the connection establishment unit 205. When the process is performed, a connection response signal is transmitted to the external device via the antenna 104b provided in the close proximity wireless transfer device 104. The external device establishes a connection with the electronic device 10 by receiving the connection response signal transmitted by the connection response transmission unit 202.

切断要求送信部209は、外部デバイスとのデータ通信が完了した際に、外部デバイスに切断要求信号を送信する。具体的には、切断要求送信部209は、外部デバイスとのデータ通信が完了した際、接続解除部206によって電子機器10と外部デバイスとの間の接続を解除するために、近接無線通信デバイス104に設けられたアンテナ104bを介して、外部デバイスに切断要求信号を送信する。   The disconnect request transmission unit 209 transmits a disconnect request signal to the external device when data communication with the external device is completed. Specifically, when the data communication with the external device is completed, the disconnection request transmission unit 209 uses the close proximity wireless communication device 104 to release the connection between the electronic device 10 and the external device by the connection release unit 206. A disconnection request signal is transmitted to the external device via the antenna 104b provided in the device.

切断応答受信部208は、外部デバイスから切断要求信号に応答して送信される切断応答信号を受信する。切断応答受信部208は、受信した切断応答信号を受信間隔測定部203と接続解除部206とに出力する。   The disconnection response receiving unit 208 receives a disconnection response signal transmitted from the external device in response to the disconnection request signal. The disconnection response reception unit 208 outputs the received disconnection response signal to the reception interval measurement unit 203 and the connection release unit 206.

受信間隔測定部203は、電子機器10と外部デバイスとの間の接続が解除されてから接続要求信号が受信されない期間を示す非受信期間を測定する。非受信期間は、電子機器10と外部デバイスとの間の接続が解除されてから、最初に接続要求信号が受信されるまでの期間を示す第1期間、及び電子機器10と外部デバイスとの間の接続が解除された後、第1の接続要求信号が受信されてから、第1の接続要求信号に後続する第2の接続要求信号が受信されるまでの期間を示す第2期間を含む。   The reception interval measurement unit 203 measures a non-reception period indicating a period in which the connection request signal is not received after the connection between the electronic device 10 and the external device is released. The non-reception period is a first period indicating a period from when the connection between the electronic device 10 and the external device is released to when the connection request signal is first received, and between the electronic device 10 and the external device. A second period indicating a period from when the first connection request signal is received to when a second connection request signal subsequent to the first connection request signal is received after the connection is released.

したがって、受信間隔測定部203は、電子機器10と外部デバイスとの間の接続が解除されてから、最初に接続要求信号が受信されるまでの期間を示す第1期間を測定する。受信間隔測定部203は、例えば、切断応答受信部208によって切断応答信号が受信されてから、最初に接続要求受信部201によって接続要求信号が受信されるまでの期間を第1期間として算出する。   Therefore, the reception interval measurement unit 203 measures a first period indicating a period from when the connection between the electronic device 10 and the external device is released until the connection request signal is first received. For example, the reception interval measurement unit 203 calculates, as the first period, a period from when the disconnection response signal is received by the disconnection response receiver 208 to when the connection request signal is first received by the connection request receiver 201.

また、受信間隔測定部203は、電子機器10と外部デバイスとの間の接続が解除された後、第1の接続要求信号が受信されてから、第1の接続要求信号に後続する第2の接続要求信号が受信されるまでの期間を示す第2期間を測定する。受信間隔測定部203は、例えば、切断応答受信部208によって切断応答信号が受信された後、接続要求受信部201によって第1の接続要求信号が受信されてから、後続する第2の接続要求信号が受信されるまでの期間を第2期間として算出する。受信間隔測定部203は、測定した第1期間又は第2期間を接続制御部204に出力する。   The reception interval measurement unit 203 receives the first connection request signal after the connection between the electronic device 10 and the external device is released, and then receives the second connection signal that follows the first connection request signal. A second period indicating a period until the connection request signal is received is measured. For example, the reception interval measuring unit 203 receives the first connection request signal by the connection request receiving unit 201 after the disconnection response signal is received by the disconnection response receiving unit 208, and then the second connection request signal that follows. Is calculated as the second period. The reception interval measurement unit 203 outputs the measured first period or second period to the connection control unit 204.

接続制御部204は、切断要求信号に応じて外部デバイスとの接続が解除されてから接続要求信号の非受信期間がしきい値期間以上継続するまで外部デバイスとの接続の確立を抑制し、非受信期間がしきい値期間以上継続した後に接続要求信号が受信されたことに応答して外部デバイスとの接続の確立を許可する。具体的には、接続制御部204は、受信間隔測定部203によって出力された第1期間又は第2期間に基づいて、電子機器10と外部デバイスとの間の接続の確立の許可又は抑制(禁止)を制御する。接続制御部204は、電子機器10と外部デバイスとの間の接続が解除された後に、ユーザが、電子機器10と外部デバイスとを近接状態に放置しているのか、それとも、電子機器10と外部デバイスとを一旦離した後に(すなわち、電子機器10と外部デバイスとの近接状態を解除した後に)、再度近接させる操作(再タッチ操作)を行ったのかを、第1期間又は第2期間に基づいて判定する。つまり、接続制御部204は、電子機器10と外部デバイスとの間の接続が解除された後にも、電子機器10と外部デバイスとが近接状態に維持されている場合、電子機器10と外部デバイスとが単に近接状態で放置されているのか、それとも、ユーザが意図して再タッチ操作を行ったことによって、近接状態に維持されているのかを判定する。そして、接続制御部204は、電子機器10と外部デバイスとが単に近接状態で放置されている場合には、電子機器10と外部デバイスとの間の再接続の確立を抑制する。また、接続制御部204は、ユーザが再タッチ操作を行って、電子機器10と外部デバイスとが近接状態に維持されている場合には、電子機器10と外部デバイスとの間の再接続の確立を許可する。   The connection control unit 204 suppresses the establishment of the connection with the external device until the connection request signal non-reception period continues for a threshold period or longer after the connection with the external device is released in response to the disconnection request signal. In response to reception of the connection request signal after the reception period continues for the threshold period or longer, establishment of a connection with the external device is permitted. Specifically, the connection control unit 204 permits or suppresses (inhibits) establishment of a connection between the electronic device 10 and the external device based on the first period or the second period output by the reception interval measurement unit 203. ) To control. The connection control unit 204 determines whether the user has left the electronic device 10 and the external device in the proximity state after the connection between the electronic device 10 and the external device is released, or the electronic control device 10 and the external device. Based on the first period or the second period, whether the operation (retouch operation) is performed again after the device is once released (that is, after the proximity state between the electronic device 10 and the external device is canceled) Judgment. That is, when the connection between the electronic device 10 and the external device is released even when the connection between the electronic device 10 and the external device is maintained in the proximity state, the connection control unit 204 Is simply left in the proximity state or whether it is maintained in the proximity state by the user's intentional retouching operation. Then, when the electronic device 10 and the external device are simply left in proximity, the connection control unit 204 suppresses establishment of reconnection between the electronic device 10 and the external device. In addition, the connection control unit 204 establishes reconnection between the electronic device 10 and the external device when the user performs a retouch operation and the electronic device 10 and the external device are maintained in the proximity state. Allow.

接続制御部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 connection control unit 204 connects the electronic apparatus 10 and the external device. Suppresses the establishment of Specifically, the connection control unit 204 discards the connection request signal received by the connection request receiving unit 201 when the first period is less than the threshold value or when the second period is less than the threshold value. By doing so, the connection establishment unit 205 is controlled not to execute the process of establishing the connection between the electronic device 10 and the external device. Note that, instead of discarding the connection request signal received by the connection request receiving unit 201, the connection establishing response signal is not transmitted in response to the connection request signal, so that the connection establishing unit 205 can be connected between the electronic device 10 and the external device. You may make it control so that the process which establishes this connection is not performed. Further, the connection control unit 204 permits establishment of a connection between the electronic device 10 and the external device when the first period is equal to or greater than the threshold value or when the second period is equal to or greater than the threshold value. Specifically, the connection control unit 204 connects the connection request signal received by the connection request receiving unit 201 when the first period is equal to or greater than the threshold value or when the second period is equal to or greater than the threshold value. It outputs to the establishment unit 205 and controls the connection establishment unit 205 to execute processing for establishing a connection between the electronic device 10 and the external device. In addition, in order to determine whether or not the user has intentionally performed the retouch operation, this threshold value is assumed to have a period (for example, 1 to 2 seconds) required for the user to perform the retouch operation. ) Is set. Further, the connection control unit 204 may control permission or suppression (prohibition) of establishment of a connection between the electronic device 10 and the external device based only on the second period. For example, even if the user performs an operation to release the electronic apparatus 10 from the external device immediately after the connection is released, the connection request signal transmitted from the external device on the order of μsec, for example, This is because it is assumed that the electronic device 10 receives the signal in a period less than the threshold value. That is, in such a case, the possibility that the first period is less than the threshold value is very high, and therefore the connection control unit 204 determines that the connection between the electronic device 10 and the external device is based only on the second period. It is possible to control permission or suppression (prohibition) of establishing a connection.

接続確立部205は、接続制御部204による制御(制御信号)に応じて、電子機器10と外部デバイスとの間の接続を確立する。接続確立部205は、接続応答送信部202に対して、外部デバイスに接続応答信号を送信するよう通知する。接続確立部205は、さらに、外部デバイスとの接続が確立されたことを通信部207に通知する。   The connection establishment unit 205 establishes a connection between the electronic device 10 and an external device in accordance with control (control signal) by the connection control unit 204. The connection establishment unit 205 notifies the connection response transmission unit 202 to transmit a connection response signal to the external device. The connection establishment unit 205 further notifies the communication unit 207 that the connection with the external device has been established.

通信部207は、接続確立部205によって外部デバイスとの接続が確立されたことに応答して、外部デバイスとのデータ通信を実行する。通信部207は、外部デバイスとのデータ通信が完了したことに応答して、接続解除部206にデータ通信が完了した旨を通知する。   In response to the connection establishment unit 205 establishing a connection with the external device, the communication unit 207 executes data communication with the external device. In response to the completion of the data communication with the external device, the communication unit 207 notifies the connection release unit 206 that the data communication has been completed.

接続解除部206は、通信部207からのデータ通信が完了した旨を示す通知に応答して、外部デバイスとの接続を解除(切断)する。接続解除部206は、切断要求送信部209に対して、外部デバイスに切断要求信号を送信するように通知する。接続解除部206は、切断応答受信部208によって受信された、外部デバイスからの切断応答信号に応答して、外部デバイスとの接続を切断する処理を完了する。また、接続解除部206は、外部デバイスとの接続が切断されたことを接続制御部204に通知する。   The connection release unit 206 releases (disconnects) the connection with the external device in response to the notification indicating that the data communication from the communication unit 207 is completed. The connection release unit 206 notifies the disconnection request transmission unit 209 to transmit a disconnection request signal to the external device. In response to the disconnection response signal from the external device received by the disconnection response receiving unit 208, the disconnection unit 206 completes the process of disconnecting the connection with the external device. Further, the connection release unit 206 notifies the connection control unit 204 that the connection with the external device has been disconnected.

以上の構成により、通信制御プログラム103aは、電子機器10と外部デバイスとの間の接続が切断された後に、電子機器10と外部デバイスとの間で不要な接続(再接続)が確立されることを抑制できる。また、通信制御プログラム103aは、ユーザが意図して再タッチ操作を行った場合には、タイムラグなく、電子機器10と外部デバイスとの間の再接続を確立することができる。通信制御プログラム103aは、例えば、図5から図9を参照して後述するシーケンスのように、電子機器10と外部デバイスとの間の接続を制御する。   With the above configuration, the communication control program 103a establishes an unnecessary connection (reconnection) between the electronic device 10 and the external device after the connection between the electronic device 10 and the external device is disconnected. Can be suppressed. In addition, when the user intentionally performs a retouch operation, the communication control program 103a can establish reconnection between the electronic device 10 and the external device without time lag. The communication control program 103a controls the connection between the electronic device 10 and the external device, for example, as in a sequence described later with reference to FIGS.

なお、接続制御部204は、電子機器10と外部デバイスとの間の接続が切断された後の所定の期間には、電子機器10と外部デバイスとを離す操作が行われる可能性があることを想定して、受信される接続要求信号を無視(接続要求信号を破棄すること、または接続要求信号に対して対接続応答信号を送信しないことをいう)する処理を行ってもよい。その場合、接続制御部204は、接続が切断された後の所定の期間内(例えば、1〜2秒間)に受信された、外部デバイスからの接続要求信号を無視し、外部デバイスとの再接続の確立を抑制する。そして、接続制御部204は、さらに継続して(例えば、μsecオーダーで)、外部デバイスからの接続要求信号が受信される場合には、その接続要求信号を無視し、外部デバイスとの再接続の確立を抑制する。また、接続制御部204は、所定の期間内に受信された、外部デバイスからの接続要求信号を無視した後に、接続要求信号の非受信期間がしきい値期間以上継続するまで外部デバイスとの接続の確立を抑制し、非受信期間がしきい値期間以上継続した後に接続要求信号が受信されたことに応答して外部デバイスとの接続の確立を許可する。具体的には、接続が切断されてから所定の期間内に受信された、外部デバイスからの接続要求信号を無視した後に、外部デバイスから第1の接続要求信号を受信してから、第1の接続要求信号に後続する第2の接続要求信号を受信するまでの時間(第2期間)がしきい値(例えば、1〜2秒)以上である場合、接続制御部204は、電子機器10と外部デバイスとの再接続の確立を許可する。   Note that the connection control unit 204 indicates that there is a possibility that an operation of separating the electronic device 10 and the external device may be performed in a predetermined period after the connection between the electronic device 10 and the external device is disconnected. Assuming that the received connection request signal is ignored (refers to discarding the connection request signal or not transmitting a connection response signal to the connection request signal). In that case, the connection control unit 204 ignores the connection request signal from the external device received within a predetermined period (for example, 1 to 2 seconds) after the connection is disconnected, and reconnects to the external device. Suppresses the establishment of The connection control unit 204 continues further (for example, on the order of μsec), and when the connection request signal is received from the external device, ignores the connection request signal and reconnects to the external device. Suppresses establishment. The connection control unit 204 ignores the connection request signal from the external device received within a predetermined period, and then connects to the external device until the non-reception period of the connection request signal continues for a threshold period or longer. Establishment of a connection with an external device is permitted in response to reception of a connection request signal after the non-reception period continues for a threshold period or longer. Specifically, after ignoring the connection request signal from the external device received within a predetermined period after the connection is disconnected, the first connection request signal is received from the external device, and then the first When the time (second period) until the second connection request signal subsequent to the connection request signal is received is a threshold value (for example, 1 to 2 seconds) or more, the connection control unit 204 is connected to the electronic device 10. Allow establishment of reconnection with external devices.

図5は、電子機器10と外部デバイスとの間の接続シーケンスの例を示す。外部デバイスは、例えばパーソナルコンピュータである。   FIG. 5 shows an example of a connection sequence between the electronic apparatus 10 and an external device. The external device is, for example, a personal computer.

まず、外部デバイスは、接続要求信号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 electronic device 10 and the external device execute data communication (S14). Data communication is, for example, file transmission. In response to the completion of the data communication, the electronic device 10 transmits a disconnection request signal C-Rel to the external device (S15). When the external device receives the disconnection request signal C-Rel, the external device transmits a disconnection response signal ACK to the electronic device 10 (S16). Then, in response to receiving the disconnection response signal ACK, the electronic device 10 completes the process of disconnecting the connection between the electronic device 10 and the external device.

次いで、外部デバイスは、接続要求信号C−Reqを送信する(S17)。電子機器10がこの接続要求信号C−Reqを受信した際には、上述のS12からS16に示したようなデバイス間の接続の確立、データ通信、及び接続の解除が再度実行される。   Next, the external device transmits a connection request signal C-Req (S17). When the electronic device 10 receives the connection request signal C-Req, establishment of the connection between devices, data communication, and release of the connection as described in S12 to S16 are executed again.

上述のように、外部デバイスは、電子機器10が近接状態となったことに応じて、電子機器10と外部デバイスとの接続を確立できるように、所定時間毎に接続要求信号を送信する。電子機器10は、近接状態にある外部デバイスからの接続要求信号を受信することで、通信可能な外部デバイスを検出する。そして、電子機器10は、接続要求信号に応答する接続応答信号を外部デバイスに送信することで、外部デバイスとの接続を確立することができる。   As described above, the external device transmits a connection request signal every predetermined time so that the connection between the electronic device 10 and the external device can be established in response to the electronic device 10 being in the proximity state. The electronic device 10 detects a communicable external device by receiving a connection request signal from an external device in the proximity state. The electronic device 10 can establish a connection with the external device by transmitting a connection response signal in response to the connection request signal to the external device.

外部デバイスは、所定の時間毎に接続要求信号を送信し、したがって、電子機器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 electronic device 10 is released. When an operation of separating the electronic device 10 from the external device is performed, the connection request signal does not reach the electronic device 10, and thus unnecessary reconnection is not established. However, when the connection between the electronic device 10 and the external device is released, and the electronic device 10 and the external device are kept in close proximity (left), the electronic device 10 completes necessary data communication. Nevertheless, a connection response signal is transmitted in response to the connection request signal from the external device. For this reason, when the connection between the electronic device 10 and the external device is released, and the electronic device 10 and the external device are maintained in the proximity state, unnecessary connection between the electronic device 10 and the external device May be established. For example, when a user transfers a file stored in the electronic device 10 that is a mobile phone to an external device that is a personal computer and takes a backup, the transfer process takes, for example, several minutes. It is assumed that other work or the like is performed in a state (proximity state) in which the mobile phone is placed on a communication position provided in the personal computer. In such a case, even after the transfer process (data communication) is completed, the cellular phone is left on the personal computer, and the proximity between the personal computer and the cellular phone is maintained, which is unnecessary between devices. A connection may be established.

このような不要な接続が確立された場合、実行すべきデータ通信は完了しているため、再度、接続が解除される。つまり、電子機器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 electronic device 10 and the external device are maintained in the proximity state, there is a possibility that the establishment and release of the connection between the devices may be repeatedly executed even though the data communication to be executed is completed. . Further, in the method of simply prohibiting reconnection for a certain period after the connection between the electronic device 10 and the external device is released, if the period is short, there is a possibility that unnecessary reconnection is also established. There is. However, when the period is set to be long, there is a possibility that the connection cannot be established even though the user tries to connect again. Therefore, as described above, the proximity wireless communication control program 103a of the present embodiment determines whether the electronic device 10 and the external device are connected according to the length of the period during which the connection request signal transmitted from the external device to the electronic device 10 is interrupted. Controls the establishment of a reconnection after the connection between them is released. That is, the communication control program 103a is external until the connection request signal non-reception period (period in which the connection request signal is interrupted) continues for a threshold period or longer after the connection with the external device is released in response to the disconnection request signal. The establishment of a connection with the device is suppressed (prohibited), and the establishment of a connection with an external device is permitted in response to reception of a connection request signal after the non-reception period continues for a threshold period or longer.

図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 electronic device 10 and an external device, and data communication to be executed is completed.

図6に示す例では、まず、電子機器10は、切断要求信号C−Relを外部デバイスに送信する(S21)。外部デバイスは、電子機器10から送信された切断要求信号C−Relに応答して、切断応答信号ACKを電子機器10に送信する(S22)。電子機器10は、外部デバイスから切断応答信号ACKを受信したことに応答して、外部デバイスとの接続を切断する処理を完了する。   In the example shown in FIG. 6, first, the electronic device 10 transmits a disconnection request signal C-Rel to an external device (S21). In response to the disconnection request signal C-Rel transmitted from the electronic device 10, the external device transmits a disconnection response signal ACK to the electronic device 10 (S22). In response to receiving the disconnection response signal ACK from the external device, the electronic device 10 completes the process of disconnecting the connection with the external device.

切断が完了してから、外部デバイスが新たな接続要求信号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 electronic device 10 receives a new connection request signal C-Req after -Req is interrupted by the threshold value b, the electronic device 10 responds to the received connection request signal C-Req, and receives a connection response signal C-ACK is transmitted to the external device (S24). That is, when the time from when disconnection is completed to when the new connection request signal C-Req is received is equal to or greater than the threshold value b, the electronic device 10 (communication control program 103a) connects to an external device ( Allow reconnection) to be established.

次いで、図7に示す例では、まず、電子機器10は、切断要求信号C−Relを外部デバイスに送信する(S31)。外部デバイスは、電子機器10から送信された切断要求信号C−Relに応答して、切断応答信号ACKを電子機器10に送信する(S32)。電子機器10は、外部デバイスから切断応答信号ACKを受信したことに応答して、外部デバイスとの接続を切断する処理を完了する。   Next, in the example illustrated in FIG. 7, first, the electronic device 10 transmits a disconnection request signal C-Rel to the external device (S31). In response to the disconnection request signal C-Rel transmitted from the electronic device 10, the external device transmits a disconnection response signal ACK to the electronic device 10 (S32). In response to receiving the disconnection response signal ACK from the external device, the electronic device 10 completes the process of disconnecting the connection with the external device.

切断が完了してから、外部デバイスが新たな接続要求信号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 electronic device 10 receives a new connection request signal C-Req before -Req is interrupted by the threshold value b, the electronic device 10 discards the received connection request signal C-Req (or the connection request signal The connection response signal C-ACK is not transmitted to the C-Req), and the establishment of the connection (reconnection) with the external device is not permitted. That is, when the time from when disconnection is completed to when the connection request signal C-Req (S33) is received is less than the threshold value b, the electronic device 10 (communication control program 103a) reconnects to the external device. The proximity wireless communication device 104 or the like is controlled so as to suppress this.

次いで、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 electronic device 10 discards the received connection request signal C-Req (or does not transmit the connection response signal C-ACK to the connection request signal C-Req). ) Do not allow connection (reconnection) with external devices. That is, when the time from reception of the connection request signal C-Req (S33) to reception of the subsequent connection request signal C-Req (S34) is less than the threshold value b, the electronic device 10 (communication control) The program 103a) controls the close proximity wireless transfer device 104 and the like so as to suppress reconnection with an external device.

そして、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 electronic device 10 permits establishment (reconnection) of connection with an external device. Accordingly, in response to the received connection request signal C-Req, the electronic device 10 transmits a connection response signal C-ACK to the external device (S36). That is, when the time from reception of the connection request signal C-Req (S34) to reception of the subsequent connection request signal C-Req (S35) is equal to or greater than the threshold value b, the electronic device 10 (communication control) The program 103a) controls the close proximity wireless transfer device 104 and the like so as to establish reconnection with an external device.

外部デバイスは、電子機器10から送信された接続応答信号C−ACKに応答して、電子機器10との接続を確立する処理を開始する。   In response to the connection response signal C-ACK transmitted from the electronic device 10, the external device starts processing for establishing a connection with the electronic device 10.

また、図8に示す例では、まず、電子機器10は、切断要求信号C−Relを外部デバイスに送信する(S41)。外部デバイスは、電子機器10から送信された切断要求信号C−Relに応答して、切断応答信号ACKを電子機器10に送信する(S42)。電子機器10は、外部デバイスから切断応答信号ACKを受信したことに応答して、外部デバイスとの接続を切断する処理を完了する。   In the example shown in FIG. 8, first, the electronic device 10 transmits a disconnection request signal C-Rel to the external device (S41). In response to the disconnection request signal C-Rel transmitted from the electronic device 10, the external device transmits a disconnection response signal ACK to the electronic device 10 (S42). In response to receiving the disconnection response signal ACK from the external device, the electronic device 10 completes the process of disconnecting the connection with the external device.

切断が完了した後、しきい値aに対応する時間だけ、電子機器10は、受信する接続要求信号C−Reqを無視する(S43,S44,S45)。つまり、切断が完了した後のしきい値aに対応する期間内では、電子機器10は、受信する接続要求信号C−Reqを破棄し(または接続要求信号C−Reqに対して対接続応答信号C−ACKを送信せず)、外部デバイスとの接続(再接続)を確立する処理を実行しない。   After the disconnection is completed, the electronic device 10 ignores the received connection request signal C-Req for the time corresponding to the threshold value a (S43, S44, S45). That is, within the period corresponding to the threshold value a after the disconnection is completed, the electronic device 10 discards the received connection request signal C-Req (or the connection response signal for the connection request signal C-Req). C-ACK is not transmitted), and processing for establishing connection (reconnection) with an external device is not executed.

さらに、電子機器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 electronic device 10 ignores the connection request signal C-Req for a time corresponding to the threshold value a, and thereafter ignores the connection request signal C-Req that is continuously received (S46, S47, S48). Specifically, after ignoring the connection request signal C-Req for the time corresponding to the threshold value a, the interval for receiving the connection request signal C-Req is further measured, and is measured every predetermined period (for example, on the order of μsec). When the connection request signal C-Req is received, that is, when the reception interval of the connection request signal C-Req is equal to or shorter than a predetermined time, the electronic device 10 discards the received connection request signal C-Req (or connection) The connection response signal C-ACK is not transmitted in response to the request signal C-Req), and the process of establishing connection (reconnection) with the external device is not executed. That is, when each of the connection request signals C-Req shown in S43 to S48 is received, in other words, when the connection request signal C-Req is continuously received after the disconnection is completed, the electronic device 10 (communication control program) 103a) controls the close proximity wireless transfer device 104 and the like so as to suppress reconnection with an external device.

次いで、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 electronic device 10 permits establishment (reconnection) of connection with an external device. Accordingly, in response to the received connection request signal C-Req, the electronic device 10 transmits a connection response signal C-ACK to the external device (S50). That is, when the time from reception of the connection request signal C-Req (S48) to reception of the subsequent connection request signal C-Req (S49) is equal to or greater than the threshold value b, the electronic device 10 (communication control) The program 103a) controls the close proximity wireless transfer device 104 and the like so as to establish reconnection with an external device.

外部デバイスは、電子機器10から送信された接続応答信号C−ACKに応答して、電子機器10との接続を確立する処理を開始する。   In response to the connection response signal C-ACK transmitted from the electronic device 10, the external device starts processing for establishing a connection with the electronic device 10.

また、図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 electronic device 10 to the external device. In the example shown in FIG. 9, first, from the external device to the electronic device 10. A disconnection request signal C-Rel is transmitted (S51). In response to receiving the disconnection request signal C-Rel from the external device, the electronic device 10 transmits a disconnection response signal ACK to the external device (S52). In response to receiving the disconnection response signal ACK from the electronic device 10, the external device completes the process of disconnecting the connection with the electronic device 10. This can be realized by providing the disconnection response reception unit 208 and the disconnection request transmission unit 209 with a function of receiving a disconnection request signal and a function of transmitting a disconnection response signal.

上述のように、外部デバイスから電子機器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 electronic apparatus 10, the communication control program 103a controls the connection (reconnection) between the devices as in the example illustrated in FIG. Execute the process. Therefore, the sequence shown in S53 to S60 in FIG. 9 is processed in the same manner as the sequence shown in S43 to S50 in FIG.

図10のフローチャートは、近接無線通信制御プログラム103aによって実行される接続処理の手順の例を示す。通信制御プログラム103aは、電子機器10と外部デバイスとの間でデータ通信を実行するため、デバイス間の接続の確立及び解除を制御する。   The flowchart of FIG. 10 shows an example of a procedure of connection processing executed by the close proximity wireless transfer control program 103a. The communication control program 103a controls establishment and release of connection between devices in order to perform data communication between the electronic device 10 and an external device.

まず、通信制御プログラム103aは、外部デバイスから接続を要求する接続要求信号が受信されたか否かを判定する(ステップS101)。具体的には、通信制御プログラム103aは、近接無線通信デバイス104(アンテナ104b)を介して、近接する外部デバイスからの接続要求信号が受信されたか否かを判定する。外部デバイスは、例えば所定の時間毎(例えば、μsecオーダー)に接続要求信号を送信する。接続要求信号が受信されていない場合(ステップS101のNO)、通信制御プログラム103aは、再度、ステップS101の処理を実行する。   First, the communication control program 103a determines whether or not a connection request signal requesting connection from an external device has been received (step S101). Specifically, the communication control program 103a determines whether or not a connection request signal is received from a nearby external device via the proximity wireless communication device 104 (antenna 104b). The external device transmits a connection request signal every predetermined time (for example, μsec order), for example. When the connection request signal has not been received (NO in step S101), the communication control program 103a executes the process of step S101 again.

接続要求信号が受信された場合(ステップS101のYES)、通信制御プログラム103aは、該接続要求信号に応答して、外部デバイスに接続応答信号を送信する(ステップS102)。これにより、電子機器10と外部デバイスとの間の接続が確立される。   When the connection request signal is received (YES in step S101), the communication control program 103a transmits a connection response signal to the external device in response to the connection request signal (step S102). Thereby, the connection between the electronic device 10 and the external device is established.

次いで、通信制御プログラム103aは、電子機器10と外部デバイスとの間でデータ通信を実行する(ステップS103)。このデータ通信は、例えば、ファイルの伝送である。そして、通信制御プログラム103aは、電子機器10と外部デバイスとの間のデータ通信が完了したか否かを判定する(ステップS104)。データ通信が完了していない場合(ステップS104のNO)、通信制御プログラム103aは、ステップS103の処理に戻り、さらにデータ通信を実行する。   Next, the communication control program 103a executes data communication between the electronic device 10 and the external device (step S103). This data communication is, for example, file transmission. Then, the communication control program 103a determines whether or not the data communication between the electronic device 10 and the external device is completed (Step S104). If the data communication has not been completed (NO in step S104), the communication control program 103a returns to the process in step S103 and further executes data communication.

一方、データ通信が完了している場合(ステップ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 communication control program 103a transmits a disconnection request signal for requesting disconnection (release) of the connection between the electronic device 10 and the external device to the external device. (Step S105). Then, the communication control program 103a determines whether or not a disconnection response signal in response to the disconnection request signal has been received from the external device (step S106). When the disconnection response signal has not been received (NO in step S106), the communication control program 103a returns to the process of step S105 and transmits the disconnection request signal again. Note that the communication control program 103a may wait for a predetermined time instead of retransmitting the disconnection request signal, and then determine again whether the disconnection response signal has been received.

切断応答信号が受信された場合(ステップS106のYES)、通信制御プログラム103aは、電子機器10と外部デバイスとの間の接続を切断する処理を実行する(ステップS107)。そして、通信制御プログラム103aは、ステップS101以降の処理を繰り返す。すなわち、通信制御プログラム103aは、外部デバイスとの接続の確立、データ通信、及び接続の解除を繰り返し実行する。   When the disconnection response signal is received (YES in step S106), the communication control program 103a executes processing for disconnecting the connection between the electronic device 10 and the external device (step S107). And the communication control program 103a repeats the process after step S101. That is, the communication control program 103a repeatedly executes establishment of a connection with an external device, data communication, and release of the connection.

以上の処理により、通信制御プログラム103aは、電子機器10と外部デバイスとの間でデータ通信を実行することができる。電子機器10は、近接状態にある外部デバイスから送信される接続要求信号を受信し、外部デバイスとの接続の確立、データ通信、及び接続の解除を実行する。   Through the above processing, the communication control program 103a can execute data communication between the electronic device 10 and the external device. The electronic device 10 receives a connection request signal transmitted from an external device in the proximity state, and executes establishment of a connection with the external device, data communication, and release of the connection.

通信制御プログラム103aは、さらに、デバイス間の接続が解除された後、不要な再接続を抑制するための処理を行う。図11のフローチャートは、近接無線通信制御プログラム103aによって実行される再接続制御処理の手順の例を示す。この再接続制御処理では、通信制御プログラム103aは、電子機器10と外部デバイスとの間の接続が解除された後、継続して受信される接続要求信号を破棄し(または接続要求信号C−Reqに対して対接続応答信号C−ACKを送信せず)、再接続を抑制(禁止)する。   The communication control program 103a further performs processing for suppressing unnecessary reconnection after the connection between devices is released. The flowchart of FIG. 11 shows an example of the procedure of reconnection control processing executed by the close proximity wireless transfer control program 103a. In this reconnection control process, the communication control program 103a discards the connection request signal continuously received after the connection between the electronic device 10 and the external device is released (or the connection request signal C-Req). The connection response signal C-ACK is not transmitted with respect to the connection), and reconnection is suppressed (prohibited).

まず、通信制御プログラム103aは、電子機器10と外部デバイスとの間の接続を切断する処理が完了したか否かを判定する(ステップS201)。電子機器10と外部デバイスとの間の接続を切断する処理が完了していない場合(ステップS201のNO)、通信制御プログラム103aは、ステップS201の処理により、再度、電子機器10と外部デバイスとの間の接続を切断する処理が完了したか否かを判定する。   First, the communication control program 103a determines whether or not the processing for disconnecting the connection between the electronic device 10 and the external device has been completed (step S201). When the process of disconnecting the connection between the electronic device 10 and the external device has not been completed (NO in step S201), the communication control program 103a again performs the process between the electronic device 10 and the external device by the process in step S201. It is determined whether or not the processing for disconnecting the connection between the two has been completed.

電子機器10と外部デバイスとの間の接続を切断する処理が完了している場合(ステップS201のYES)、通信制御プログラム103aは、外部デバイスから送信される接続要求信号のモニタを開始する(ステップS202)。そして、通信制御プログラム103aは、外部デバイスからの接続要求信号が受信されたか否かを判定する(ステップS203)。接続要求信号が受信されていない場合(ステップS203のNO)、通信制御プログラム103aは、ステップS203の処理により、再度、外部デバイスからの接続要求信号が受信されたか否かを判定する。   When the process of disconnecting the connection between the electronic device 10 and the external device has been completed (YES in Step S201), the communication control program 103a starts monitoring the connection request signal transmitted from the external device (Step S201). S202). Then, the communication control program 103a determines whether or not a connection request signal from an external device has been received (step S203). When the connection request signal has not been received (NO in step S203), the communication control program 103a determines again whether the connection request signal from the external device has been received by the process in step S203.

一方、接続要求信号が受信されている場合(ステップ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 communication control program 103a first receives the connection request signal after the process of disconnecting the connection between the electronic device 10 and the external device is completed. A first period indicating a period until reception is calculated, and it is determined whether or not the first period is less than the threshold period b (step S204). When the first period is less than the threshold period b (YES in step S204), the communication control program 103a suppresses establishment of a connection between the electronic device 10 and the external device, and receives the previous one. It is determined whether or not a connection request signal subsequent to the received connection request signal has been received (step S205). When the subsequent connection request signal has not been received (NO in step S205), the communication control program 103a determines again whether or not the subsequent connection request signal has been received by the processing in step S205.

後続する接続要求信号が受信されている場合(ステップ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 communication control program 103a indicates a period from when the previous connection request signal is received until the subsequent connection request signal is received. The second period is calculated, and it is determined whether or not the second period is less than the threshold period b (step S206). When the second period is less than the threshold period b (YES in step S206), the communication control program 103a suppresses establishment of a connection between the electronic device 10 and the external device. Then, the communication control program 103a returns to the process of step S205 and determines whether or not a subsequent connection request signal has been received.

第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 communication control program 103a is configured so that the electronic device 10 is external. A process for establishing a connection with the device is executed again (step S207). That is, the communication control program 103a cancels the prohibition of establishment of reconnection between the electronic device 10 and the external device.

以上の処理により、通信制御プログラム103aは、電子機器10と外部デバイスとの間の接続が解除された後に、不要な再接続が確立されることを抑制することができる。   Through the above processing, the communication control program 103a can suppress an unnecessary reconnection from being established after the connection between the electronic device 10 and the external device is released.

また、図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 transfer control program 103a.

まず、通信制御プログラム103aは、電子機器10と外部デバイスとの間の接続を切断する処理が完了したか否かを判定する(ステップS301)。電子機器10と外部デバイスとの間の接続を切断する処理が完了していない場合(ステップS301のNO)、通信制御プログラム103aは、ステップS301の処理により、再度、電子機器10と外部デバイスとの間の接続を切断する処理が完了したか否かを判定する。   First, the communication control program 103a determines whether or not the processing for disconnecting the connection between the electronic device 10 and the external device has been completed (step S301). If the process of disconnecting the connection between the electronic device 10 and the external device has not been completed (NO in step S301), the communication control program 103a again performs the process between the electronic device 10 and the external device by the process in step S301. It is determined whether or not the processing for disconnecting the connection between the two has been completed.

電子機器10と外部デバイスとの間の接続を切断する処理が完了している場合(ステップS301のYES)、通信制御プログラム103aは、外部デバイスから送信される接続要求信号のモニタを開始する(ステップS302)。そして、通信制御プログラム103aは、切断処理が完了してからしきい値期間a以内(例えば、1、2秒間)に受信される接続要求信号を無視(接続要求信号を破棄すること、または接続要求信号に対して対接続応答信号を送信しないことをいう)する(ステップS303)。   When the process of disconnecting the connection between the electronic device 10 and the external device has been completed (YES in step S301), the communication control program 103a starts monitoring the connection request signal transmitted from the external device (step S301). S302). Then, the communication control program 103a ignores the connection request signal received within the threshold period a (for example, 1 or 2 seconds) after the disconnection process is completed (discarding the connection request signal or connecting request) The connection response signal is not transmitted with respect to the signal) (step S303).

次いで、通信制御プログラム103aは、外部デバイスからの接続要求信号がさらに継続して受信されたか否かを判定する(ステップS304)。接続要求信号が継続して受信されている場合(ステップS304のYES)、通信制御プログラム103aは、一つ前の接続要求信号が受信されてから後続する接続要求信号が受信されるまでの期間を示す第2期間を算出し、この第2期間がしきい値期間b未満であるか否かを判定する(ステップS305)。第2期間がしきい値期間b未満である場合(ステップS305のYES)、通信制御プログラム103aは、電子機器10と外部デバイスとの間の再接続の確立を抑制する。そして、通信制御プログラム103aは、ステップS305の処理に戻り、さらに後続する接続要求信号がしきい値期間b未満に受信されたか否かを判定する。   Next, the communication control program 103a determines whether or not the connection request signal from the external device has been continuously received (step S304). When the connection request signal is continuously received (YES in step S304), the communication control program 103a determines the period from when the previous connection request signal is received until the subsequent connection request signal is received. The second period shown is calculated, and it is determined whether or not this second period is less than the threshold period b (step S305). When the second period is less than the threshold period b (YES in step S305), the communication control program 103a suppresses establishment of reconnection between the electronic device 10 and the external device. Then, the communication control program 103a returns to the process of step S305, and further determines whether or not a subsequent connection request signal is received within the threshold period b.

継続して接続要求信号が受信されていない場合(ステップ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 communication control program 103a indicates that the electronic device 10 is externally connected. A process for establishing a connection with the device is executed again (step S306). That is, the communication control program 103a cancels the prohibition of establishment of reconnection between the electronic device 10 and the external device.

以上の処理により、通信制御プログラム103aは、電子機器10と外部デバイスとの間の接続が解除された後に、不要な再接続が確立されることを抑制することができる。また、不要な再接続が確立されることを抑制できることにより、接続に応じて、通信のためのアプリケーションプログラムが起動/終了されること、音声が出力されること、LEDが点滅されること等も抑制することができる。したがって、消費電力を抑えることもできる。   Through the above processing, the communication control program 103a can suppress an unnecessary reconnection from being established after the connection between the electronic device 10 and the external device is released. In addition, since it is possible to prevent unnecessary reconnections from being established, application programs for communication are started / stopped, audio is output, LEDs are blinked, etc., depending on the connection. Can be suppressed. Therefore, power consumption can be suppressed.

以上説明したように、本実施形態によれば、デバイス間の不要な接続を抑制できる。電子機器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 electronic device 10 keeps the electronic device 10 and the external device close to each other, thereby preventing unnecessary reconnection from being established. When the electronic device 10 and the external device are simply left in proximity, the electronic device 10 determines that the reconnection is unnecessary, and suppresses establishment of reconnection. On the other hand, when the electronic device 10 and the external device are once separated, and the electronic device 10 and the external device are maintained in the proximity state by performing an operation of re-adjacent (retouch operation), It is determined that the reconnection is necessary, and establishment of the reconnection is permitted.

なお、本実施形態の接続制御処理の手順は全てソフトウェアによって実行することができる。このため、接続制御処理の手順を実行するプログラムを格納したコンピュータ読み取り可能な記憶媒体を通じてこのプログラムを通常のコンピュータにインストールして実行するだけで、本実施形態と同様の効果を容易に実現することができる。   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 SYMBOLS 103a ... Proximity wireless communication control program, 201 ... Connection request reception part, 202 ... Connection response transmission part, 203 ... Reception interval measurement part, 204 ... Connection control part, 205 ... Connection establishment part, 206 ... Connection release part, 207 ... Communication , 208... Disconnection reception unit, 209... Disconnection request transmission unit.

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記載の電子機器。 Said connection control means, during the threshold time period after the connection with the external device is disconnected, by ignoring the connection request signal, Motomeko 1 suppress connection with the external device The electronic device described. 前記接続制御手段は、前記外部デバイスとの接続が切断された後の前記しきい値期間の間、前記接続要求信号を無視し、前記非受信期間が前記しきい値期間以上継続するまで前記外部デバイスとの接続を抑制し、前記非受信期間が前記しきい値期間以上継続すると、前記接続要求信号が受信されたことに応答して前記外部デバイスとの接続を許可する請求項1記載の電子機器。 The connection control means ignores the connection request signal during the threshold period after the connection with the external device is disconnected, and continues to the external until the non-reception period continues for the threshold period or longer. suppresses the connection with the device, the continuous non-reception period is the threshold time period or more then, Motomeko 1 in response to the connection request signal is received you allow the connection with the external device The electronic device described. 前記外部デバイスから受信される接続要求信号の間隔を測定する間隔測定手段をさらに具備し、
前記接続制御手段は、
前記外部デバイスとの接続が切断された後の前記しきい値期間の間、前記接続要求信号を破棄し、
前記外部デバイスとの接続が切断されてから前記しきい値期間が経過した後、前記間隔測定手段により測定される前記間隔が前記しきい値期間以下である場合、継続して前記接続要求信号を破棄し、
前記非受信期間が前記しきい値期間以上継続するまで前記外部デバイスとの接続を抑制し、前非受信期間が前記しきい値期間以上継続すると、前記接続要求信号が受信されたことに応答して前記外部デバイスとの接続を許可する請求項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記載の電子機器。 When the connection request signal is transmitted for each first period by the external device after the connection with the external device is disconnected based on a disconnect request signal from the external device. , that the non-reception period is the inhibit the connection with the external device to continue threshold period or more, the connection request signal after the non-reception period has continued over the threshold period has been 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.
JP2011188931A 2011-08-31 2011-08-31 Electronic device and communication control method Active JP5398800B2 (en)

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)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2017177645A (en) * 2016-03-31 2017-10-05 ブラザー工業株式会社 Printing device

Families Citing this family (2)

* Cited by examiner, † Cited by third party
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)

* Cited by examiner, † Cited by third party
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

Cited By (1)

* Cited by examiner, † Cited by third party
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