JP6643841B2 - Communication device, communication device control method, and program - Google Patents

Communication device, communication device control method, and program Download PDF

Info

Publication number
JP6643841B2
JP6643841B2 JP2015177915A JP2015177915A JP6643841B2 JP 6643841 B2 JP6643841 B2 JP 6643841B2 JP 2015177915 A JP2015177915 A JP 2015177915A JP 2015177915 A JP2015177915 A JP 2015177915A JP 6643841 B2 JP6643841 B2 JP 6643841B2
Authority
JP
Japan
Prior art keywords
wireless communication
connection
communication device
communication
external
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP2015177915A
Other languages
Japanese (ja)
Other versions
JP2017055265A5 (en
JP2017055265A (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.)
Canon Inc
Original Assignee
Canon Inc
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 Canon Inc filed Critical Canon Inc
Priority to JP2015177915A priority Critical patent/JP6643841B2/en
Publication of JP2017055265A publication Critical patent/JP2017055265A/en
Publication of JP2017055265A5 publication Critical patent/JP2017055265A5/ja
Application granted granted Critical
Publication of JP6643841B2 publication Critical patent/JP6643841B2/en
Expired - Fee Related 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 a communication device including a plurality of wireless communication units.

近年、複数の無線通信手段で外部装置と通信可能な装置が知られている。このような装置において、同じ外部装置と通信する場合でも、それぞれの無線通信手段の特性を生かして適切に通信手段を切り替えるということが提案されている。例えば、特許文献1では、消費電力の大きい通信手段はデータ通信のタイミングまではパワーセーブ状態にしておき、より消費電力の小さい通信手段でデータ通信のタイミングを送受信することで、消費電力を低減することが開示されている。また、このデータ通信のタイミングは、複数の機器に送信され、データ通信のタイミングが装置間で重複しないようにすることも開示されている。   In recent years, a device that can communicate with an external device by a plurality of wireless communication means is known. In such a device, it has been proposed that, even when communicating with the same external device, the communication means is appropriately switched by utilizing the characteristics of the respective wireless communication means. For example, in Patent Literature 1, a power-saving communication unit is set in a power save state until data communication timing, and a power-saving communication unit transmits and receives data communication timing to reduce power consumption. It is disclosed. It is also disclosed that the timing of the data communication is transmitted to a plurality of devices so that the timing of the data communication is not duplicated between the devices.

特開2006−20289号公報JP 2006-20289 A

しかしながら、上述の特許文献1では、複数の機器と同時に接続可能な機器とそうでない機器が存在する場合について考慮されていない。例えば近年知られる低消費電力の通信としてはBluetooth(登録商標)やBluetooth Low Energy(以下BLE)がある。この通信方式では装置間の通信において、セントラルとペリフェラルという役割がある。セントラルは複数のペリフェラルと同時に接続できるが、ペリフェラルは同時に複数のセントラルと接続することはできない。多くの場合、この役割は機器毎に製品出荷時に定められているものである。このような制限がある通信手段を用いる場合、特許文献1のような方法を採用することはできない。   However, Patent Document 1 does not consider the case where there are devices that can be connected simultaneously with a plurality of devices and devices that are not. For example, recently known low-power-consumption communications include Bluetooth (registered trademark) and Bluetooth Low Energy (BLE). This communication method has a role of a central and a peripheral in communication between devices. A central can be connected to multiple peripherals simultaneously, but a peripheral cannot be connected to multiple centrals at the same time. In many cases, this role is determined at the time of product shipment for each device. When a communication means having such a restriction is used, a method as in Patent Document 1 cannot be adopted.

そこで、本発明は、同時に複数の外部通信装置と接続できない通信方式を利用する場合であっても、通信における消費電力を低減することを目的とする。   Therefore, an object of the present invention is to reduce power consumption in communication even when using a communication method that cannot simultaneously connect to a plurality of external communication devices.

上記目的を達成するために本発明に係る通信装置は以下の構成を有する。   In order to achieve the above object, a communication device according to the present invention has the following configuration.

同時に複数の外部通信装置と無線通信によって接続が可能な第一無線通信手段と、前記複数の外部通信装置の一と無線通信によって接続が可能な第二無線通信手段と、
制御手段とを有し、
前記制御手段は、
前記第一無線通信手段による前記外部通信装置との接続を確立するか否かを判定する場合、前記第二無線通信手段による接続を切断し、
前記第一無線通信手段による前記外部通信装置との接続を切断すると判定した場合には、前記第一無線通信手段による接続を介して、前記外部通信装置を、前記第二無線通信手段による接続の確立を待機する状態に移行させ、前記第一無線通信手段による接続を切断し、
前記第一無線通信手段による前記外部通信装置との接続を確立すると判定した場合には、前記外部通信装置との間で前記第二無線通信手段による接続を確立し、該第二無線通信手段による接続を用いて、前記外部通信装置との間の前記第一無線通信手段による接続を確立し、その後前記第二無線通信手段による接続を切断する。
First wireless communication means that can be simultaneously connected by wireless communication with a plurality of external communication devices, and second wireless communication means that can be connected by wireless communication with one of the plurality of external communication devices,
Control means,
The control means includes:
When determining whether to establish a connection with the external communication device by the first wireless communication means, disconnect the connection by the second wireless communication means,
If it is determined to disconnect the connection with the external communication device by the first wireless communication means, through the connection by the first wireless communication means, the external communication device, the connection of the second wireless communication means Transition to a state of waiting for establishment, disconnect the connection by the first wireless communication means,
When it is determined that the first wireless communication unit establishes a connection with the external communication device, a connection by the second wireless communication unit is established with the external communication device, and the connection by the second wireless communication unit is established. Using the connection, a connection by the first wireless communication unit with the external communication device is established, and then the connection by the second wireless communication unit is disconnected.

本発明によれば、同時に複数の外部通信装置と接続できない通信方式を利用する場合であっても、通信における消費電力を低減することができる。   ADVANTAGE OF THE INVENTION According to this invention, the power consumption in communication can be reduced, even when using the communication system which cannot connect with several external communication apparatuses simultaneously.

本実施形態における通信装置と複数の外部通信装置の無線通信を示す図FIG. 2 is a diagram illustrating wireless communication between a communication device and a plurality of external communication devices according to the embodiment. 本実施形態における通信装置の構成を示すブロック図FIG. 2 is a block diagram illustrating a configuration of a communication device according to the present embodiment. 本実施形態における外部通信装置の構成を示すブロック図FIG. 2 is a block diagram illustrating a configuration of an external communication device according to the present embodiment. 本実施形態における通信装置の第一無線通信の接続を切断する制御(第一の通信制御)を示すフローチャート5 is a flowchart illustrating control (first communication control) for disconnecting the first wireless communication of the communication device according to the present embodiment. 本実施形態における通信装置の第一無線通信の接続を確立する制御(第二の通信制御)フローチャートControl (second communication control) flowchart for establishing a connection of the first wireless communication of the communication device according to the present embodiment 本実施形態における外部通信装置の第一無線通信および第二無線通信の切り替え制御を示すフローチャート4 is a flowchart illustrating switching control between the first wireless communication and the second wireless communication of the external communication device according to the present embodiment.

以下、図面を参照して本発明の好適な実施形態を説明する。図1は本実施形態における通信装置と複数の外部通信装置の無線通信を示す図である。   Hereinafter, preferred embodiments of the present invention will be described with reference to the drawings. FIG. 1 is a diagram illustrating wireless communication between a communication device and a plurality of external communication devices according to the present embodiment.

図1(a)は通信装置と複数の外部通信装置が第一無線通信によって同時に接続する例を示す図である。通信装置100はデジタルカメラ、外部通信装置110、120、130はそれぞれスマートフォン等の携帯電話端末である。本実施形態では、第一無線通信の通信規格は無線LAN、特にWi-Fiが用いられる。アクセスポイントとなった通信装置100が外部通信装置110、120、130に対してそれぞれ第一無線通信の接続111、121、131を確立する。そして、通信装置100と外部通信装置110、120、130は第一無線通信の接続を同時に維持したままで撮影した画像データや各種の処理命令などのデータ送受信を行うことが可能である。なお第一無線通信としては、アクセスポイントとして複数の子局と通信可能な親局と、アクセスポイントと通信する端末である子局とで構成される通信方式であれば、他の方式であってもよい。   FIG. 1A is a diagram illustrating an example in which a communication device and a plurality of external communication devices are simultaneously connected by first wireless communication. The communication device 100 is a digital camera, and the external communication devices 110, 120, and 130 are each a mobile phone terminal such as a smartphone. In the present embodiment, a wireless LAN, particularly Wi-Fi, is used as a communication standard of the first wireless communication. The communication device 100 serving as an access point establishes first wireless communication connections 111, 121, and 131 to the external communication devices 110, 120, and 130, respectively. The communication device 100 and the external communication devices 110, 120, and 130 can transmit and receive image data and various processing instructions such as captured image data while maintaining the connection of the first wireless communication at the same time. As the first wireless communication, any other communication method may be used as long as the communication method includes a master station capable of communicating with a plurality of slave stations as an access point and a slave station that is a terminal communicating with the access point. Is also good.

図1(b)は通信装置と複数の外部通信装置が第二無線通信によって接続する例を示す図である。本例では、第二無線通信の通信規格はBluetooth(登録商標) Low Energy(BLE)が用いられる。BLE仕様では、BLEのセントラル装置一台に対して複数のBLEのペリフェラル装置を同時に接続できるが、BLEのペリフェラル装置一台に対して複数のBLEのセントラル装置を同時に接続できない。通信装置100はBLEのペリフェラル装置であり、外部通信装置110、120、130はBLEのセントラル装置であるため、通信装置100と外部通信装置110、120、130は第二無線通信によって同時に接続できない。たとえばバージョン4.4以前のアンドロイド(登録商標)端末は、BLEのセントラルとしてのみ機能し、ペリフェラルとして機能しない。このような通信端末とBLEで通信しようとする装置、例えばデジタルカメラは、BLEのペリフェラル装置である必要がある。図1(b)では、通信装置100が外部通信装置110に対して第二無線通信の接続112を確立している。したがって、通信装置100は外部通信装置120、130に対して第二無線通信によって接続できない。接続するためには、第二無線通信の接続112を切断する必要がある。なお第二無線通信としては、セントラル装置として複数のペリフェラル装置と通信可能な親局と、セントラル装置と通信するペリフェラル装置である子局とで構成される通信方式であれば、他の方式であってもよい。   FIG. 1B is a diagram illustrating an example in which a communication device and a plurality of external communication devices are connected by a second wireless communication. In this example, the communication standard of the second wireless communication is Bluetooth (registered trademark) Low Energy (BLE). According to the BLE specification, a plurality of BLE peripheral devices can be simultaneously connected to one BLE central device, but a plurality of BLE central devices cannot be simultaneously connected to one BLE peripheral device. Since the communication device 100 is a BLE peripheral device and the external communication devices 110, 120, and 130 are BLE central devices, the communication device 100 and the external communication devices 110, 120, and 130 cannot be simultaneously connected by the second wireless communication. For example, an Android (registered trademark) terminal of version 4.4 or earlier functions only as a BLE central and does not function as a peripheral. A device that attempts to communicate with such a communication terminal using BLE, for example, a digital camera, needs to be a BLE peripheral device. In FIG. 1B, the communication device 100 has established a connection 112 for the second wireless communication with the external communication device 110. Therefore, the communication device 100 cannot connect to the external communication devices 120 and 130 by the second wireless communication. In order to make a connection, it is necessary to disconnect the connection 112 of the second wireless communication. The second wireless communication may be any other communication method as long as the communication method includes a master station that can communicate with a plurality of peripheral devices as a central device and a slave station that is a peripheral device that communicates with the central device. You may.

図1(c)は通信装置が複数の外部通信装置に対して第二無線通信によるアドバタイズビーコン(以下、ビーコンと称する)を送信する例を示す図である。BLEのペリフェラル装置である通信装置100はビーコン送信モードとなってビーコン113、123、133を送信する。BLEのセントラル装置である外部通信装置110、120、130はそれぞれビーコン受信モードとなってビーコン113、123、133を受信する。通信装置100は周囲に対して一方的にビーコンを送信するため、ビーコンを受信するか否かは外部通信装置110、120、130がビーコン受信モードであるか否かによって決まる。ビーコン受信モードはビーコンの受信を待機するモードであり、ビーコンの受信をきっかけとして接続要求を送信して第二無線通信の接続を確立することから、第二無線通信による接続の確立を待機する状態ということもできよう。   FIG. 1C is a diagram illustrating an example in which a communication device transmits an advertising beacon (hereinafter, referred to as a beacon) by a second wireless communication to a plurality of external communication devices. The communication device 100, which is a BLE peripheral device, enters the beacon transmission mode and transmits the beacons 113, 123, and 133. The external communication devices 110, 120, and 130, which are central devices of the BLE, enter the beacon reception mode and receive the beacons 113, 123, and 133, respectively. Since the communication device 100 unilaterally transmits a beacon to the surroundings, whether or not to receive a beacon is determined by whether or not the external communication devices 110, 120, and 130 are in a beacon reception mode. The beacon reception mode is a mode of waiting for a beacon to be received, and a connection request is transmitted in response to the reception of the beacon to establish a connection of the second wireless communication. I could say that.

第二無線通信であるBLEは第一無線通信であるWi-Fiに比べて低速だが消費電力が小さい。そのため、第一無線通信によるデータ送受信がない期間において、第一無線通信の接続を切断して第二無線通信の接続に切り替えることで消費電力を低減できる。そして、第二無線通信の接続を維持しておけば、第一無線通信によるデータ送受信を再開する時、第二無線通信によって第一無線通信に必要な設定を送受信することで、容易に第一無線通信の接続に切り替えることが可能である。しかし、通信装置100と外部通信装置110、120、130はそれぞれ第一無線通信の接続を切断し、第二無線通信によって同時に接続しておくことができないため、通信接続の切り替え制御が制限されてしまう。すなわち、第二無線通信による通信装置100と外部通信装置との接続は、一対一でしか維持できない。そこで、本実施形態では、図1(c)で説明したビーコン送信モード、ビーコン受信モードによる通信を利用することによって、上述した通信接続の切り替え制御の制限を軽減する構成とした。なお、図1では通信装置一台と外部通信装置三台の構成を説明したが、本発明はこの例に限定されない。すなわち、外部通信装置の数は何台であっても適用可能である。   BLE, which is the second wireless communication, is slower but consumes less power than Wi-Fi, which is the first wireless communication. Therefore, power consumption can be reduced by disconnecting the first wireless communication and switching to the second wireless communication during a period in which there is no data transmission / reception by the first wireless communication. Then, if the connection of the second wireless communication is maintained, when data transmission / reception by the first wireless communication is resumed, the first wireless communication transmits / receives the setting required for the first wireless communication, so that the first wireless communication can be easily performed. Switching to wireless communication connection is possible. However, since the communication device 100 and the external communication devices 110, 120, and 130 cannot be disconnected at the same time by the first wireless communication and cannot be simultaneously connected by the second wireless communication, the switching control of the communication connection is restricted. I will. That is, the connection between the communication device 100 and the external communication device by the second wireless communication can be maintained only one-to-one. Therefore, in the present embodiment, the above-described restriction on the switching control of the communication connection is reduced by using the communication in the beacon transmission mode and the beacon reception mode described with reference to FIG. Although the configuration of one communication device and three external communication devices has been described with reference to FIG. 1, the present invention is not limited to this example. That is, any number of external communication devices can be applied.

以下、図1〜図6を参照して、本実施形態の詳細を説明する。
<通信装置100の構成>
図2は本実施形態における通信装置の構成を示すブロック図である。デジタルカメラである通信装置100は、内部バス213に対して各部が接続されており、各部は内部バス213を介して互いにデータの送受信が可能である。
Hereinafter, the details of the present embodiment will be described with reference to FIGS.
<Configuration of Communication Device 100>
FIG. 2 is a block diagram illustrating a configuration of the communication device according to the present embodiment. In the communication device 100 as a digital camera, each unit is connected to an internal bus 213, and each unit can transmit and receive data to and from each other via the internal bus 213.

制御部201は、不揮発性メモリ203に格納されるプログラムに従い、メモリ202をワークメモリとして用いて、通信装置100の各部を制御する。メモリ202は、例えばRAM(半導体素子を利用した揮発性メモリなど)からなる。不揮発性メモリ203は、電気的に消去・記録可能なメモリであり、例えばEEPROMなどで構成される。不揮発性メモリ203には、画像データや音声データ、その他のデータ、制御部201が動作するための各種プログラムなどが格納される。各種プログラムには、本実施形態にて後述する各種フローチャートを実行するためのプログラムを含む。   The control unit 201 controls each unit of the communication device 100 using the memory 202 as a work memory according to a program stored in the nonvolatile memory 203. The memory 202 includes, for example, a RAM (a volatile memory using a semiconductor element or the like). The non-volatile memory 203 is a memory that can be electrically erased and recorded, and is composed of, for example, an EEPROM. The non-volatile memory 203 stores image data, audio data, other data, various programs for operating the control unit 201, and the like. The various programs include programs for executing various flowcharts described later in the present embodiment.

画像処理部204は、制御部201の制御に基づいて、不揮発性メモリ203や記録媒体210に格納された画像データや、撮像部205から出力される画像データなどに対して各種画像処理を施す。画像処理部204が行う画像処理には、A/D変換処理、D/A変換処理、画像データの符号化処理、圧縮処理、デコード処理、拡大/縮小処理(リサイズ)、ノイズ低減処理、色変換処理などが含まれる。また、画像処理の種別によっては画像処理部204を用いずに制御部201がプログラムに従って画像処理を施すことも可能である。   The image processing unit 204 performs various types of image processing on image data stored in the nonvolatile memory 203 or the recording medium 210, image data output from the imaging unit 205, and the like based on the control of the control unit 201. The image processing performed by the image processing unit 204 includes A / D conversion processing, D / A conversion processing, image data encoding processing, compression processing, decoding processing, enlargement / reduction processing (resize), noise reduction processing, and color conversion. Processing is included. Also, depending on the type of image processing, the control unit 201 can perform image processing according to a program without using the image processing unit 204.

撮像部205は、ズームレンズ・フォーカスレンズを含むレンズ群、絞り機能を備えるシャッター、光学像を電気信号に変換するCCDやCMOS素子等で構成される撮像素子、A/D変換器などで構成される(不図示)。撮像素子から出力されるアナログ信号はA/D変換器によってデジタル信号に変換され、デジタル信号に変換された画像データは画像処理部204を介してメモリ202に直接書き込まれる。   The imaging unit 205 includes a lens group including a zoom lens and a focus lens, a shutter having an aperture function, an imaging device configured by a CCD or a CMOS device for converting an optical image into an electric signal, an A / D converter, and the like. (Not shown). An analog signal output from the image sensor is converted to a digital signal by an A / D converter, and the image data converted to the digital signal is directly written to the memory 202 via the image processing unit 204.

表示部206は、制御部201の制御に基づいて、画像やGUI(Graphical User Interface)を構成するGUI画面などを表示する。制御部201は、プログラムに従い表示制御信号を生成し、表示部206に表示するための映像信号を生成して表示部206に出力するように通信装置100の各部を制御する。表示部206は出力された映像信号に基づいて映像を表示する。   The display unit 206 displays an image, a GUI screen configuring a GUI (Graphical User Interface), and the like based on the control of the control unit 201. The control unit 201 controls each unit of the communication device 100 to generate a display control signal according to a program, generate a video signal to be displayed on the display unit 206, and output the video signal to the display unit 206. The display unit 206 displays an image based on the output image signal.

操作部207は、タッチパネルなどのポインティングデバイス、ボタン、ダイヤル、タッチセンサなどを含む、ユーザ操作を受け付けるための入力デバイスである。制御部201は、ユーザ操作によって生成される操作部207の出力信号を受け付ける。   The operation unit 207 is an input device for receiving a user operation, including a pointing device such as a touch panel, a button, a dial, a touch sensor, and the like. The control unit 201 receives an output signal of the operation unit 207 generated by a user operation.

電源部208は、電池検出回路、DC-DCコンバータ、通電するブロックを切り替えるスイッチ回路等により構成され、電池の装着の有無、電池の種類、電池残量の検出を行う。制御部201は、その検出結果に基づいて電源部208を制御して、必要な電圧を必要な期間、各部へ供給する。電源部208は、アルカリ電池やリチウム電池等の一次電池やNiCd
電池やNiMH電池、Li電池等の二次電池、ACアダプター等も含む。
The power supply unit 208 includes a battery detection circuit, a DC-DC converter, a switch circuit for switching a block to be energized, and the like, and detects whether or not a battery is mounted, the type of battery, and the remaining battery level. The control unit 201 controls the power supply unit 208 based on the detection result, and supplies a necessary voltage to each unit for a necessary period. The power supply unit 208 includes a primary battery such as an alkaline battery or a lithium battery, or a NiCd
Also includes batteries, secondary batteries such as NiMH batteries and Li batteries, and AC adapters.

記憶媒体I/F209は、メモリカードなどの記録媒体210を装着可能であり、制御部201の制御に基づき、装着された記録媒体210からのデータの読み出しや、記録媒体210に対するデータの書き込みを行う。   The storage medium I / F 209 can mount a recording medium 210 such as a memory card, and reads data from the mounted recording medium 210 and writes data to the recording medium 210 under the control of the control unit 201. .

第一無線通信部211および第二無線通信部212は、アンテナ、無線送信部、無線受信部で構成される。制御部201は、第一無線通信部211および第二無線通信部212を介して、他の通信装置に対して処理命令、処理応答、各種データなどの無線信号を送受信する。第一無線通信の通信規格は無線LAN、特にWi-Fiが用いられる。第二無線通信の通信規格はBluetooth Low Energy(BLE)が用いられる。また通信装置100のBLE通信はペリフェラルとしてのみ機能する。   The first wireless communication unit 211 and the second wireless communication unit 212 include an antenna, a wireless transmission unit, and a wireless reception unit. The control unit 201 transmits and receives wireless signals such as processing instructions, processing responses, and various data to and from other communication devices via the first wireless communication unit 211 and the second wireless communication unit 212. As a communication standard of the first wireless communication, a wireless LAN, particularly Wi-Fi is used. The communication standard of the second wireless communication is Bluetooth Low Energy (BLE). The BLE communication of the communication device 100 functions only as a peripheral.

<通信装置110,120,130の構成>
図3は本実施形態における外部通信装置の構成を示すブロック図である。図3は外部通信装置110のブロック図であり、外部通信装置120、130は同様の構成であるため説明を省略する。
<Configuration of Communication Devices 110, 120, and 130>
FIG. 3 is a block diagram illustrating a configuration of the external communication device according to the present embodiment. FIG. 3 is a block diagram of the external communication device 110. Since the external communication devices 120 and 130 have the same configuration, the description will be omitted.

携帯端末である外部通信装置110は、制御部301、メモリ302、不揮発性メモリ303、表示部306、操作部307、電源部308、記憶媒体I/F309、記録媒体310、第一無線通信部311、第二無線通信部312、内部バス313を備える。各部について、通信装置100の制御部201、メモリ202、不揮発性メモリ203、表示部206、操作部207、電源部208、記憶媒体I/F209、記録媒体210、第一無線通信部211、第二無線通信部212、内部バス213と同様の機能である。したがって説明を省略する。   The external communication device 110, which is a portable terminal, includes a control unit 301, a memory 302, a nonvolatile memory 303, a display unit 306, an operation unit 307, a power supply unit 308, a storage medium I / F 309, a recording medium 310, and a first wireless communication unit 311. , A second wireless communication unit 312, and an internal bus 313. Regarding each unit, the control unit 201, the memory 202, the non-volatile memory 203, the display unit 206, the operation unit 207, the power supply unit 208, the storage medium I / F 209, the recording medium 210, the first wireless communication unit 211, the second unit The functions are the same as those of the wireless communication unit 212 and the internal bus 213. Therefore, the description is omitted.

以下、図4、図5、図6のフローチャートを参照して、本実施形態における通信装置および外部通信装置の動作を説明する。なお、図4および図5における各処理は、通信装置100において、制御部201が不揮発性メモリ203に格納されたプログラムをメモリ202に展開して実行することにより実現される。図6における各処理は、外部通信装置110において、制御部301が不揮発性メモリ303に格納されたプログラムをメモリ302に展開して実行することにより実現される。外部通信装置120、130は図6におけるフローチャートと同様の処理を行うため説明を省略する。   Hereinafter, the operations of the communication device and the external communication device according to the present embodiment will be described with reference to the flowcharts of FIG. 4, FIG. 5, and FIG. 4 and 5 are realized in the communication device 100 by the control unit 201 expanding the program stored in the nonvolatile memory 203 into the memory 202 and executing the program. Each process in FIG. 6 is realized in the external communication device 110 by the control unit 301 expanding a program stored in the nonvolatile memory 303 into the memory 302 and executing the program. The external communication devices 120 and 130 perform the same processing as the flowchart in FIG.

<通信装置100による第一無線通信切断制御>
図4は本実施形態における通信装置の第一無線通信の接続を切断する制御(第一の通信制御)を示すフローチャートである。図4のフローチャートの開始時点において、通信装置100が全てまたは一部(すなわち少なくとも1台)の外部通信装置に対して第一無線通信の接続を確立した状態である。そして、通信装置100と全てまたは一部の外部通信装置におけるデータ送受信の実行順序にしたがって、データ送受信を開始または停止するタイミングで図4のフローチャートの処理が開始する。
<First wireless communication disconnection control by communication device 100>
FIG. 4 is a flowchart showing control (first communication control) for disconnecting the first wireless communication of the communication device according to the present embodiment. At the start of the flowchart of FIG. 4, the communication device 100 has established a connection for the first wireless communication with all or a part (ie, at least one) of the external communication devices. Then, the processing of the flowchart in FIG. 4 is started at the timing of starting or stopping data transmission / reception in accordance with the execution order of data transmission / reception in all or some external communication devices with the communication device 100.

S401では、制御部201は全ての外部通信装置それぞれに対して第一無線通信の接続を切断するか否かを判定する。制御部201は、第一無線通信の接続が確立しているがデータ送受信を行っていない外部通信装置との第一無線通信の接続を切断する(あるいは解除する又は終了する)と判定する。S401では、その判定の時点において送受信を行っていなければデータ送受信を行っていないと判定してもよいし、S401実行時点までの所定時間内において送受信が行われていないならデータ送受信を行っていないと判定してもよい。制御部201が第一無線通信の接続を切断すると判定した場合、S402へ進む。なお、S401では、条件を満たす第一無線通信の接続すべてを切断の対象としてS402以降の処理を行う。制御部201が第一無線通信の接続を切断しないと判定した場合、ENDへ進む。   In step S401, the control unit 201 determines whether to disconnect the connection of the first wireless communication to each of the external communication devices. The control unit 201 determines to disconnect (or cancel or terminate) the connection of the first wireless communication with the external communication device that has established the connection of the first wireless communication but is not performing data transmission / reception. In S401, it may be determined that data transmission / reception is not performed if transmission / reception is not performed at the time of the determination, or data transmission / reception is not performed if transmission / reception is not performed within a predetermined time until the execution of S401. May be determined. When the control unit 201 determines to disconnect the connection of the first wireless communication, the process proceeds to S402. In step S401, all the connections of the first wireless communication satisfying the conditions are subjected to disconnection, and the processing of step S402 and thereafter is performed. When the control unit 201 determines that the connection of the first wireless communication is not disconnected, the process proceeds to END.

S402では、制御部201は、切断する第一無線通信の接続による接続相手である外部通信装置に対して第一無線通信を介して切断判定の通知を送信する。この切断判定の通知は外部通信装置に対して第一無線通信の接続を切断する処理を行う旨を通知するものである。   In step S402, the control unit 201 transmits a disconnection determination notification to the external communication device that is a connection partner of the first wireless communication to be disconnected via the first wireless communication. This notification of disconnection determination notifies the external communication device that processing for disconnecting the connection of the first wireless communication is performed.

S403では、制御部201は、切断する第一無線通信の接続による接続相手である外部通信装置に対して、第一無線通信を介して第二無線通信のビーコン受信モードの設定命令を送信する。このビーコン受信モードの設定命令を受信した外部通信装置は、第二無線通信のビーコンを待機するビーコン受信モードとなる。   In S403, the control unit 201 transmits a beacon reception mode setting command of the second wireless communication via the first wireless communication to an external communication device that is a connection partner of the first wireless communication to be disconnected. The external communication device that has received the command to set the beacon reception mode enters the beacon reception mode in which it waits for a beacon of the second wireless communication.

S404では、制御部201は、切断する第一無線通信の接続による接続相手である外部通信装置に対して、第一無線通信を介して第二無線通信による接続開始条件の設定命令を送信する。この接続開始条件は、外部通信装置を指定する情報を含む第二無線通信のビーコンを受信した場合に第二無線通信の接続を確立するような設定である。接続開始条件は、たとえば互いに接続される装置が共有する、接続に関する初期的なパラメータ等を含む。この接続開始条件の設定命令を受信した外部通信装置は接続開始条件を設定する。なお、通信装置100はS403〜S404の処理を実行せず、外部通信装置がS402の切断判定の通知を受信したことをトリガとして、外部通信装置側でビーコン受信モードおよび接続開始条件の設定が実行される構成としてもよい。これにより、外部通信装置は通信装置100から送信される設定命令を待つことなく、一連の設定を完了することができる。   In step S404, the control unit 201 transmits, via the first wireless communication, an instruction to set a connection start condition for the second wireless communication to an external communication device that is a connection partner of the first wireless communication to be disconnected. The connection start condition is a setting that establishes a connection of the second wireless communication when a beacon of the second wireless communication including information specifying the external communication device is received. The connection start condition includes, for example, initial parameters related to the connection, which are shared by the devices connected to each other. The external communication device that has received the connection start condition setting command sets the connection start condition. Note that the communication device 100 does not execute the processes of S403 to S404, and the external communication device executes the setting of the beacon reception mode and the connection start condition on receiving the notification of the disconnection determination in S402 as a trigger. May be adopted. Thus, the external communication device can complete a series of settings without waiting for a setting command transmitted from the communication device 100.

S405では、制御部201は、S401で切断の対象として決定した第一無線通信の接続を切断し、ENDへ進む。なお、一台の外部通信装置に対してS402〜S405の処理を連続して実行し完了した後、残りの外部通信装置に対しても同様に処理する構成としてもよい。   In S405, the control unit 201 disconnects the connection of the first wireless communication determined as a target of disconnection in S401, and proceeds to END. It should be noted that the configuration may be such that, after the processes of S402 to S405 are continuously performed and completed for one external communication device, the same process is performed for the remaining external communication devices.

ここで、第一無線通信の接続を切断する制御(第一の通信制御)について、図1を用いて説明する。例えば、図1(a)で示すような通信装置100が外部通信装置110、120、130に対して第一無線通信の接続を確立した状態を開始時点とする。そして、ユーザ操作などによって、通信装置100と外部通信装置110のデータ送受信が行われ、通信装置100と外部通信装置120,130のデータ送受信が行われないことが決定したとする。すると、S401において制御部201は第一無線通信の接続121、131を切断すると判定する。次に、S402〜S405の処理が実行されると、図1(d)に示すような通信装置100が外部通信装置110に対して第一無線通信の接続111を維持し、外部通信装置120、130がビーコン受信モードで待機する状態になる。通信装置100と外部通信装置110のデータ送受信が完了すると、同様にしてS401〜S405の処理が実行され、図1(e)に示すような外部通信装置110、120、130がビーコン受信モードで待機する状態になる。図1(e)では、外部通信装置110、120、130はそれぞれ外部通信装置110、120、130を指定する情報を含むビーコンを通信装置100が送信することを待つ状態である。   Here, control for disconnecting the first wireless communication (first communication control) will be described with reference to FIG. For example, a state in which the communication device 100 as shown in FIG. Then, it is assumed that data transmission / reception between the communication device 100 and the external communication device 110 is performed, and that data transmission / reception between the communication device 100 and the external communication devices 120 and 130 is not performed. Then, in S401, the control unit 201 determines to disconnect the connections 121 and 131 of the first wireless communication. Next, when the processing of S402 to S405 is performed, the communication device 100 as shown in FIG. 1D maintains the connection 111 of the first wireless communication with the external communication device 110, and the external communication device 120, 130 enters a state of waiting in the beacon reception mode. When the data transmission / reception between the communication device 100 and the external communication device 110 is completed, the processing of S401 to S405 is executed in the same manner, and the external communication devices 110, 120, and 130 as shown in FIG. You will be in a state to do. In FIG. 1E, the external communication devices 110, 120, and 130 are in a state of waiting for the communication device 100 to transmit a beacon including information specifying the external communication devices 110, 120, and 130, respectively.

<通信装置100による第一無線通信の接続確立制御>
図5は本実施形態における通信装置の第一無線通信の接続を確立する制御(第二の通信制御)を示すフローチャートである。図5のフローチャートの開始時点において、通信装置100が全てまたは一部の外部通信装置に対して第一無線通信の接続を切断し、通信装置100との接続が切断された外部通信装置はビーコン受信モードでビーコンを待機している状態である。そして、通信装置100と全てまたは一部の外部通信装置におけるデータ送受信の実行順序にしたがって、データ送受信を開始または停止するタイミングで図5のフローチャートの処理が開始する。また、図5のフローチャートには第二無線通信の接続処理が含まれる。通信装置100が複数の外部通信装置に対して第二無線通信によって同時に接続しておくことはできない。そこで、図5のフローチャートの開始時点において、通信装置100が全ての外部通信装置に対して第二無線通信の接続を切断した状態にする構成とした。具体的には、通信装置100が外部通信装置に対して第二無線通信の接続を確立した状態である場合、制御部201はその外部通信装置に対して第二無線通信を介して第二無線通信のビーコン受信モードおよび接続開始条件の設定命令を送信する。このビーコン受信モードおよび接続開始条件の設定命令を受信した外部通信装置は第二無線通信のビーコン受信モードとなり、接続開始条件を設定する。この後、通信装置100は上記手順でビーコン受信モードに移行させた外部通信装置との第二無線通信の接続を切断する。これにより、通信装置100は、いかなる外部通信装置とも第二無線通信では接続されていない状態となる。そして図5のフローチャートの処理を完了した後、通信装置100が、上述の手順で第二無線通信の接続を解除した外部通信装置を相手として後述するS502〜S504の処理を実行することで、通信装置100がその外部通信装置に対して第二無線通信の接続を確立した状態に復帰することができる。
<Connection establishment control of first wireless communication by communication device 100>
FIG. 5 is a flowchart illustrating control (second communication control) for establishing a connection of the first wireless communication of the communication device according to the present embodiment. At the start of the flowchart of FIG. 5, the communication device 100 disconnects the first wireless communication from all or some external communication devices, and the external communication device disconnected from the communication device 100 receives a beacon. Waiting for a beacon in mode. Then, the processing of the flowchart in FIG. 5 starts at the timing of starting or stopping data transmission / reception in accordance with the execution order of data transmission / reception in the communication device 100 and all or some external communication devices. The flowchart of FIG. 5 includes a connection process of the second wireless communication. The communication device 100 cannot be simultaneously connected to a plurality of external communication devices by the second wireless communication. Therefore, at the start of the flowchart of FIG. 5, the communication device 100 is configured to disconnect the connection of the second wireless communication from all the external communication devices. Specifically, when the communication device 100 has established the connection of the second wireless communication with the external communication device, the control unit 201 transmits the second wireless communication to the external communication device via the second wireless communication. A command for setting the communication beacon reception mode and the connection start condition is transmitted. The external communication device that has received the command to set the beacon reception mode and the connection start condition enters the beacon reception mode of the second wireless communication, and sets the connection start condition. Thereafter, the communication device 100 disconnects the second wireless communication with the external communication device that has been shifted to the beacon reception mode in the above procedure. Thus, the communication device 100 is not connected to any external communication device by the second wireless communication. After the processing of the flowchart in FIG. 5 is completed, the communication apparatus 100 performs the processing of S502 to S504 to be described later with the external communication apparatus that has disconnected the connection of the second wireless communication in the above-described procedure. The device 100 can return to the state where the connection of the second wireless communication has been established with the external communication device.

S501では、制御部201は全ての外部通信装置それぞれに対して第一無線通信の接続を確立するか否かを判定する。制御部201はデータ送受信を行うが第一無線通信の接続が切断されている外部通信装置に対して第一無線通信の接続を確立すると判定する。第一無線通信の接続を確立する場合、S502へ進む。第一無線通信の接続を確立しない場合、ENDへ進む。   In step S501, the control unit 201 determines whether to establish a connection for the first wireless communication with each of all the external communication devices. The control unit 201 determines that the connection of the first wireless communication is to be established with respect to the external communication device that performs data transmission / reception but the connection of the first wireless communication is disconnected. When the connection of the first wireless communication is established, the process proceeds to S502. If the connection of the first wireless communication is not established, go to END.

S502では、制御部201は第二無線通信部212に対してビーコン送信モードに設定する。そして、制御部201は、確立する第一無線通信の接続による接続相手である外部通信装置に対して第二無線通信を介して、確立する第一無線通信の接続による接続相手である外部通信装置を指定する情報を含むビーコンを送信する。制御部201は第二無線通信部212に対してビーコン送信モードを解除する。この解除はビーコンで指定した外部通信装置から接続要求を受信してから行ってもよい。   In S502, the control unit 201 sets the second wireless communication unit 212 to the beacon transmission mode. Then, the control unit 201 communicates with the external communication device, which is the connection partner of the first wireless communication to be established, via the second wireless communication. A beacon including information for specifying a beacon is transmitted. The control unit 201 releases the beacon transmission mode for the second wireless communication unit 212. This cancellation may be performed after receiving a connection request from the external communication device specified by the beacon.

S503では、制御部201は確立する第一無線通信の接続による接続相手である外部通信装置から第二無線通信を介して第二無線通信の接続要求を受信したか否かを判定する。この第二無線通信の接続要求はS502におけるビーコンを受信した外部通信装置から送信されるものであり、後述する図6のS606において外部通信装置から送信される。制御部201が第二無線通信の接続要求を受信したと判定した場合、S504へ進む。制御部201が第二無線通信の接続要求を受信しなかったと判定した場合、第二無線通信の接続要求を受信するまでS503を繰り返す。なおS503では、制御部201が所定時間待機しても接続要求を受信しなければ、処理を終了してもよい。   In S503, the control unit 201 determines whether or not a connection request for the second wireless communication has been received via the second wireless communication from the external communication device that is the connection partner of the established first wireless communication connection. This connection request for the second wireless communication is transmitted from the external communication device that has received the beacon in S502, and is transmitted from the external communication device in S606 of FIG. 6 described below. If the control unit 201 determines that the connection request for the second wireless communication has been received, the process proceeds to S504. If the control unit 201 determines that the connection request for the second wireless communication has not been received, S503 is repeated until the connection request for the second wireless communication is received. In S503, if the control unit 201 does not receive a connection request even after waiting for a predetermined time, the process may be ended.

S504では、制御部201はS503において受信した接続要求に基づいてその接続要求の送信元である外部通信装置との間の第二無線通信の接続を確立する。通常、BLEのセントラル装置である外部通信装置はユーザ操作などによって第二無線通信の接続を確立する指示を受け付けるとビーコンのスキャンを行う。そして、外部通信装置はBLEのペリフェラル装置である通信装置100が送信するビーコンを受信すると、通信装置100に対して第二無線通信の接続要求を送信して接続を確立する。すなわち、BLEのセントラル装置が主体となってBLEのペリフェラル装置と第二無線通信の接続を確立する。本実施形態では、BLEのペリフェラル装置である通信装置100がBLEのセントラル装置である外部通信装置に対してビーコン受信モードおよび接続開始条件を設定する。そして、BLEのペリフェラル装置である通信装置100がビーコンを送信することをトリガとして第二無線通信の接続を確立する構成とした。これにより、BLEのペリフェラル装置が主体となってBLEのセントラル装置と第二無線通信の接続を確立することができる。   In S504, based on the connection request received in S503, the control unit 201 establishes a second wireless communication connection with the external communication device that is the transmission source of the connection request. Normally, the external communication device, which is a BLE central device, scans a beacon when receiving an instruction to establish a connection for the second wireless communication by a user operation or the like. When the external communication device receives the beacon transmitted by the communication device 100, which is a BLE peripheral device, the external communication device transmits a second wireless communication connection request to the communication device 100 to establish a connection. In other words, the BLE central device mainly establishes a connection of the BLE peripheral device with the second wireless communication. In the present embodiment, the communication device 100 that is a BLE peripheral device sets a beacon reception mode and a connection start condition for an external communication device that is a BLE central device. The communication device 100, which is a BLE peripheral device, transmits a beacon as a trigger to establish a connection for the second wireless communication. Thereby, the connection of the second wireless communication with the BLE central device can be established mainly by the BLE peripheral device.

S505では、制御部201は確立する第一無線通信の接続による接続相手である外部通信装置に対して第二無線通信を介して第一無線通信の接続に必要な設定(SSID、パスワードなど)を送受信する。この第一無線通信の接続に必要な設定は後述する図6のS608において外部通信装置から送信される。   In step S <b> 505, the control unit 201 sets settings (SSID, password, and the like) necessary for the connection of the first wireless communication via the second wireless communication to the external communication device that is the connection partner of the established first wireless communication. Send and receive. The settings necessary for the connection of the first wireless communication are transmitted from the external communication device in S608 of FIG. 6 described later.

S506では、制御部201は確立する第一無線通信の接続による接続相手である外部通信装置に対して第二無線通信の接続から第一無線通信の接続へ切り替え制御を行う。すなわち、制御部201は確立する第一無線通信の接続による接続相手である外部通信装置との第二無線通信の接続を切断し、S505で受信した第一無線通信の接続に必要な設定に基づいて第一無線通信の接続を確立する。逆に第一無線通信の接続を確立してから第二無線通信の接続を切断してもよい。   In step S <b> 506, the control unit 201 performs control to switch the connection of the second wireless communication to the connection of the first wireless communication for the external communication device that is the connection partner of the established first wireless communication. That is, the control unit 201 disconnects the connection of the second wireless communication with the external communication device that is the connection partner by the connection of the first wireless communication to be established, and based on the setting necessary for the connection of the first wireless communication received in S505. To establish a connection for the first wireless communication. Conversely, the connection of the second wireless communication may be disconnected after the connection of the first wireless communication is established.

S507では、制御部201は第一無線通信の接続を確立する対象である全ての外部通信装置に対して第一無線通信の接続を確立したか否かを判定する。全ての第一無線通信の接続を確立した場合、ENDへ進む。全ての第一無線通信の接続を確立していない場合、残りの外部通信装置に対して第一無線通信の接続を確立するまでS502〜S507を繰り返す。   In step S507, the control unit 201 determines whether the first wireless communication connection has been established with respect to all the external communication devices to which the first wireless communication connection is to be established. If all first wireless communication connections have been established, go to END. If all the first wireless communication connections have not been established, S502 to S507 are repeated until the first wireless communication connections are established for the remaining external communication devices.

ここで、第一無線通信の接続を確立する制御(第二の通信制御)について、図1を用いて説明する。例えば、図1(e)で示すような外部通信装置110、120、130がビーコン受信モードであり、それぞれ外部通信装置110、120、130を指定する情報を含むビーコンを通信装置100が送信することを待っている状態を開始時点とする。そして、ユーザ操作などによって通信装置100と外部通信装置110、120,130のデータ送受信が行われることが決定したとする。すると、S501において制御部201は外部通信装置110、120,130に対して第一無線通信の接続を確立すると判定する。外部通信装置110、120,130に対して第一無線通信の接続を確立する処理は一台ずつ順番に実行される。最初に外部通信装置110に対して第一無線通信の接続を確立する場合、図1(c)で示すような状態になり、S502において通信装置100が外部通信装置110を指定する情報を含むビーコンを送信する。外部通信装置120、130はそれぞれビーコン123、133を受信するが、このビーコンは外部通信装置120および130のいずれをも指定する情報を含まないため第二無線通信の接続を開始しない。一方、外部通信装置110は受信したビーコンが外部通信装置110を指定する情報を含むことを判定し、通信装置100に対して第二無線通信の接続要求を送信する。そして、S503〜S504の処理が実行され、図1(b)で示すような通信装置100が外部通信装置110に対して第二無線通信112の接続を確立した状態になる。さらに、S505〜S506の処理が実行され、図1(d)で示すような通信装置100が外部通信装置110に対して第一無線通信の接続111を確立した状態になる。次に、外部通信装置120、130に対して第一無線通信の接続を確立する場合、同様にしてS502〜S506を繰り返すことで、図1(a)に示すような通信装置100が外部通信装置110、120、130に対して第一無線通信の接続111,121,131をそれぞれ確立した状態になる。   Here, control for establishing a connection of the first wireless communication (second communication control) will be described with reference to FIG. For example, the external communication devices 110, 120, and 130 as shown in FIG. 1E are in the beacon reception mode, and the communication device 100 transmits a beacon including information specifying the external communication devices 110, 120, and 130, respectively. The state waiting for is the starting point. Then, it is assumed that data transmission / reception between the communication device 100 and the external communication devices 110, 120, and 130 is determined to be performed by a user operation or the like. Then, in S501, the control unit 201 determines that the connection of the first wireless communication is established with the external communication devices 110, 120, and 130. The process of establishing the connection of the first wireless communication with the external communication devices 110, 120, and 130 is sequentially performed one by one. When a connection of the first wireless communication is first established to the external communication device 110, the state is as shown in FIG. 1C, and in S502, the beacon including information for specifying the external communication device 110 by the communication device 100 is set. Send The external communication devices 120 and 130 receive the beacons 123 and 133, respectively, but do not start the connection of the second wireless communication because these beacons do not include information specifying any of the external communication devices 120 and 130. On the other hand, the external communication device 110 determines that the received beacon includes information designating the external communication device 110, and transmits a connection request for the second wireless communication to the communication device 100. Then, the processes of S503 to S504 are executed, and the communication device 100 as shown in FIG. 1B enters a state where the connection of the second wireless communication 112 to the external communication device 110 is established. Further, the processes of S505 to S506 are executed, and the communication device 100 as shown in FIG. 1D establishes the first wireless communication connection 111 with the external communication device 110. Next, when establishing a first wireless communication connection to the external communication devices 120 and 130, S502 to S506 are repeated in the same manner, so that the communication device 100 as shown in FIG. The first wireless communication connections 111, 121, and 131 are established with respect to 110, 120, and 130, respectively.

<外部通信装置による第一無線通信と第二無線通信との切り替え制御>
図6は本実施形態における外部通信装置の第一無線通信と第二無線通信の切り替え制御を示すフローチャートである。図6のフローチャートの開始時点において、通信装置100が外部通信装置110に対して第一無線通信の接続を確立した状態である。そして、通信装置100と全てまたは一部の外部通信装置におけるデータ送受信の実行順序にしたがって、通信装置100と外部通信装置110のデータ送受信が停止するタイミングで図6のフローチャートの処理が開始する。なお、外部通信装置120、130については同様の処理であるため説明を省略する。
<Switching control between first wireless communication and second wireless communication by external communication device>
FIG. 6 is a flowchart illustrating switching control between the first wireless communication and the second wireless communication of the external communication device according to the present embodiment. At the start of the flowchart of FIG. 6, the communication device 100 has established a first wireless communication connection with the external communication device 110. Then, the processing of the flowchart in FIG. 6 is started at the timing when the data transmission and reception between the communication device 100 and the external communication device 110 is stopped in accordance with the execution order of data transmission and reception between the communication device 100 and all or some of the external communication devices. Note that the same processing is performed for the external communication devices 120 and 130, and a description thereof will be omitted.

S601では、制御部301は通信装置100から第一無線通信を介して切断判定の通知を受信したか否かを判定する。この切断判定の通知はS402において通信装置100から送信される。切断判定の通知を受信した場合、S602へ進む。切断判定の通知を受信しなかった場合、S601を繰り返す。   In step S601, the control unit 301 determines whether a disconnection determination notification has been received from the communication device 100 via the first wireless communication. The notification of the disconnection determination is transmitted from the communication device 100 in S402. If a disconnection determination notification has been received, the process advances to step S602. If no notification of disconnection determination has been received, S601 is repeated.

S602では、制御部301は通信装置100から第一無線通信を介してビーコン受信モードの設定命令を受信し、第二無線通信部312をビーコン受信モードに設定する。このビーコン受信モードの設定命令はS403において通信装置100から送信される。   In step S602, the control unit 301 receives a beacon reception mode setting command from the communication device 100 via the first wireless communication, and sets the second wireless communication unit 312 to the beacon reception mode. The beacon reception mode setting command is transmitted from the communication device 100 in S403.

S603では、制御部301は通信装置100から第一無線通信を介して接続開始条件の設定命令を受信し、メモリ302に接続開始条件を記憶する。この接続開始条件の設定命令はS404において通信装置100から送信される。なお、外部通信装置110はS602〜S603の処理を実行せず、S601の切断判定の通知を受信したことをトリガとして、ビーコン受信モードおよび接続開始条件の設定を実行する構成としてもよい。これにより、外部通信装置110は通信装置100から送信される設定命令を待つことなく、一連の設定を完了することができる。   In step S603, the control unit 301 receives a connection start condition setting command from the communication device 100 via the first wireless communication, and stores the connection start condition in the memory 302. The connection start condition setting command is transmitted from the communication device 100 in S404. Note that the external communication device 110 may not execute the processes of S602 to S603, and may execute the setting of the beacon reception mode and the connection start condition by using the reception of the notification of the disconnection determination in S601 as a trigger. Accordingly, the external communication device 110 can complete a series of settings without waiting for a setting command transmitted from the communication device 100.

S604では、制御部301は通信装置100に対する第一無線通信の接続を切断する。   In S604, the control unit 301 disconnects the connection of the first wireless communication with the communication device 100.

S605では、制御部301は通信装置100から第二無線通信を介して外部通信装置110を指定する情報を含むビーコンを受信したか否かを判定する。このビーコンはS502において通信装置100から送信される。外部通信装置110を指定する情報を含むビーコンを受信したと制御部301が判定した場合、制御部301はメモリ302に記憶した接続開始条件を満たしたと判定してS606へ進む。外部通信装置110を指定する情報を含むビーコンを受信しなかったと制御部301が判定した場合、外部通信装置110を指定する情報を含むビーコンを受信するまでS605を繰り返す。   In step S605, the control unit 301 determines whether a beacon including information designating the external communication device 110 has been received from the communication device 100 via the second wireless communication. This beacon is transmitted from the communication device 100 in S502. If the control unit 301 determines that a beacon including information designating the external communication device 110 has been received, the control unit 301 determines that the connection start condition stored in the memory 302 has been satisfied, and proceeds to S606. When the control unit 301 determines that the beacon including the information specifying the external communication device 110 has not been received, S605 is repeated until a beacon including the information specifying the external communication device 110 is received.

S606では、制御部301は通信装置100に対して第二無線通信を介して第二無線通信の接続要求を送信する。   In step S606, the control unit 301 transmits a connection request for the second wireless communication to the communication device 100 via the second wireless communication.

S607では、制御部301は通信装置100に対してS605で受信したビーコンに含まれる情報に基づいて第二無線通信の接続を確立する。   In S607, the control unit 301 establishes a connection for the second wireless communication with the communication device 100 based on the information included in the beacon received in S605.

S608では、制御部301は通信装置100との間で第二無線通信を介して第一無線通信の接続に必要な設定を送受信する。この第一無線通信の接続に必要な設定はS505において通信装置100から送信される。   In step S608, the control unit 301 transmits and receives the settings required for the connection of the first wireless communication with the communication device 100 via the second wireless communication. The settings required for the connection of the first wireless communication are transmitted from the communication device 100 in S505.

S609では、制御部301は通信装置100に対する接続を第二無線通信から第一無線通信へ切り替える制御を行う。すなわち、制御部301は通信装置100に対する第二無線通信の接続を切断し、S608で受信した第一無線通信の接続に必要な設定に基づいて第一無線通信の接続を確立する。   In step S609, the control unit 301 performs control to switch the connection to the communication device 100 from the second wireless communication to the first wireless communication. That is, the control unit 301 disconnects the connection of the second wireless communication with the communication device 100, and establishes the connection of the first wireless communication based on the setting required for the connection of the first wireless communication received in S608.

以上のように、BLEのペリフェラル装置である通信装置とBLEのセントラル装置である複数の外部通信装置の通信接続を同時に第一無線通信の接続から第二無線通信の接続に切り替えて維持しておくことはできない。したがって、第一無線通信の接続を切断して再び接続を確立するためには、ユーザがBLEのセントラル装置である外部通信装置を操作して第二無線通信の接続を確立し、第二無線通信の接続から第一無線通信の接続へ切り替える必要があった。すなわち、通信接続の切り替え制御が制限されてしまうという課題があった。本実施形態によれば、BLEのペリフェラル装置である通信装置がBLEのセントラル装置である外部通信装置に対してビーコン受信モードおよび接続開始条件を設定する。そして、BLEのペリフェラル装置である通信装置がビーコンを送信することをトリガとして第二無線通信の接続を確立する構成とした。これにより、BLEのペリフェラル装置である通信装置が主体となってBLEのセントラル装置である複数の外部通信装置と第二無線通信の接続を確立することができる。また、第一無線通信の接続を確立した状態、第二無線通信の接続を確立した状態、第一無線通信および第二無線通信の接続を切断した状態の切り替え制御を行うことができる。したがって、通信装置と複数の外部通信装置が同時に第二無線通信の接続できない構成において、通信接続の切り替え制御が制限されることを軽減した通信装置を提供することができる。   As described above, the communication connection between the communication device that is the BLE peripheral device and the plurality of external communication devices that are the BLE central devices is simultaneously switched from the first wireless communication connection to the second wireless communication connection and maintained. It is not possible. Therefore, in order to disconnect the first wireless communication and re-establish the connection, the user operates the external communication device, which is the central device of BLE, to establish the second wireless communication connection and to establish the second wireless communication connection. It was necessary to switch from the connection of the first to the connection of the first wireless communication. That is, there is a problem that the control of switching the communication connection is limited. According to the present embodiment, a communication device that is a BLE peripheral device sets a beacon reception mode and a connection start condition for an external communication device that is a BLE central device. Then, the communication device, which is a BLE peripheral device, transmits a beacon as a trigger to establish a connection for the second wireless communication. Thereby, the communication device, which is the peripheral device of BLE, mainly establishes the connection of the second wireless communication with the plurality of external communication devices, which is the central device of BLE. Further, it is possible to perform switching control of a state where the connection of the first wireless communication is established, a state where the connection of the second wireless communication is established, and a state where the connection of the first wireless communication and the second wireless communication are disconnected. Therefore, in a configuration in which the communication device and a plurality of external communication devices cannot be simultaneously connected by the second wireless communication, it is possible to provide a communication device in which the control of switching the communication connection is reduced.

また、本実施形態によれば、第一無線通信の接続を確立した状態、第二無線通信の接続を確立した状態、第一無線通信および第二無線通信の接続を切断した状態の切り替え制御を、ユーザ操作を介さずに実行できる構成とした。これにより、データ送受信がない期間において第一無線通信の接続を切断して消費電力を低減できる。この時、ユーザは消費電力を低減するための通信接続の切り替え制御を意識する必要がない。   Further, according to the present embodiment, the switching control of the state where the connection of the first wireless communication is established, the state where the connection of the second wireless communication is established, and the state where the connection of the first wireless communication and the second wireless communication are disconnected is performed. The configuration can be executed without any user operation. Thus, the connection of the first wireless communication is disconnected during a period in which there is no data transmission / reception, thereby reducing power consumption. At this time, the user does not need to be conscious of switching control of communication connection for reducing power consumption.

また、本実施形態によれば、第一無線通信の接続を確立した状態へ切り替える前に一時的に第二無線通信の接続を確立した状態にする構成とした。これにより、第二無線通信の接続を確立した状態を常に維持するわけではないため、通信装置と特定の外部通信装置が第二無線通信の接続を占有することを回避することができる。   Further, according to the present embodiment, the configuration is such that the connection of the second wireless communication is temporarily established before switching to the state of establishing the connection of the first wireless communication. Accordingly, since the state in which the connection of the second wireless communication is established is not always maintained, it is possible to prevent the communication device and the specific external communication device from occupying the connection of the second wireless communication.

また、上述した実施形態においては、本発明をデジタルカメラおよび携帯電話端末に適用した場合を例にして説明したが、本発明はこの例に限定されない。すなわち、デジタルビデオカメラなどの各種撮像装置、タブレット型、ノート型などの各種パーソナルコンピュータなど、第一無線通信および第二無線通信によって接続してデータ送受信することが可能な各種装置において適用可能である。   Further, in the above-described embodiment, the case where the present invention is applied to a digital camera and a mobile phone terminal has been described as an example, but the present invention is not limited to this example. That is, the present invention can be applied to various devices that can be connected and transmitted and received by the first wireless communication and the second wireless communication, such as various imaging devices such as a digital video camera, various personal computers such as a tablet type and a notebook type. .

また、上述した実施形態においては、本発明を無線LAN(特にWi-Fi)およびBluetooth Low Energyに適用した場合を例にして説明したが、本発明はこの例に限定されない。すなわち、上述したフローチャートにおける通信制御を実現可能な無線通信規格であれば、その他各種の無線通信規格において適用可能である。特に、第一の無線通信であるWi-Fiのアクセスポイントとなる側の通信装置100が、BLEのように同時にひとつの相手装置としか通信できない第二の無線通信を採用している場合、本発明を効果的に適用可能である。   Further, in the above-described embodiment, the case where the present invention is applied to a wireless LAN (particularly Wi-Fi) and Bluetooth Low Energy has been described as an example, but the present invention is not limited to this example. That is, any wireless communication standard that can realize the communication control in the above-described flowchart can be applied to other various wireless communication standards. In particular, when the communication device 100 on the side serving as the Wi-Fi access point, which is the first wireless communication, employs the second wireless communication that can only communicate with one partner device at the same time, such as BLE, The invention can be applied effectively.

また、本発明をその好適な実施形態に基づいて詳述してきたが、本発明はこれら特定の実施形態に限られるものではなく、この発明の要旨を逸脱しない範囲の様々な形態も本発明に含まれる。さらに、上述した実施形態は本発明の一実施形態を示すものにすぎず、各実施形態を適宜組み合わせることも可能である。   Although the present invention has been described in detail based on the preferred embodiments, the present invention is not limited to these specific embodiments, and various forms that do not depart from the gist of the present invention are also included in the present invention. included. Furthermore, the above-described embodiment is merely an embodiment of the present invention, and the embodiments can be appropriately combined.

また本発明は、上述の実施形態の1以上の機能を実現するプログラムを、ネットワーク又は記憶媒体を介してシステム又は装置に供給し、そのシステム又は装置のコンピュータにおける1つ以上のプロセッサーがプログラムを読出し実行する処理でも実現可能である。また、1以上の機能を実現する回路(例えば、ASIC)によっても実現可能である。   In addition, the present invention supplies a program for realizing one or more functions of the above-described embodiments to a system or an apparatus via a network or a storage medium, and one or more processors in a computer of the system or the apparatus read the program. It can also be realized by executing processing. Further, it can also be realized by a circuit (for example, an ASIC) that realizes one or more functions.

100,110,120,130 通信装置、201 制御部、211 第一無線通信部、212 第二無線通信部 100, 110, 120, 130 communication device, 201 control unit, 211 first wireless communication unit, 212 second wireless communication unit

Claims (11)

同時に複数の外部通信装置と無線通信によって接続が可能な第一無線通信手段と、
前記複数の外部通信装置の一と無線通信によって接続が可能な第二無線通信手段と、
制御手段とを有し、
前記制御手段は、
前記第一無線通信手段による前記外部通信装置との接続を確立するか否かを判定する場合、前記第二無線通信手段による接続を切断し、
前記第一無線通信手段による前記外部通信装置との接続を切断すると判定した場合には、前記第一無線通信手段による接続を介して、前記外部通信装置を、前記第二無線通信手段による接続の確立を待機する状態に移行させ、前記第一無線通信手段による接続を切断し、
前記第一無線通信手段による前記外部通信装置との接続を確立すると判定した場合には、前記外部通信装置との間で前記第二無線通信手段による接続を確立し、該第二無線通信手段による接続を用いて、前記外部通信装置との間の前記第一無線通信手段による接続を確立し、その後前記第二無線通信手段による接続を切断する
ことを特徴とする通信装置。
A first wireless communication means that can be simultaneously connected to a plurality of external communication devices by wireless communication,
A second wireless communication unit that can be connected to one of the plurality of external communication devices by wireless communication,
Control means,
The control means includes:
When determining whether to establish a connection with the external communication device by the first wireless communication means, disconnect the connection by the second wireless communication means,
If it is determined to disconnect the connection with the external communication device by the first wireless communication means, through the connection by the first wireless communication means, the external communication device, the connection of the second wireless communication means Transition to a state of waiting for establishment, disconnect the connection by the first wireless communication means,
When it is determined that the first wireless communication unit establishes a connection with the external communication device, a connection by the second wireless communication unit is established with the external communication device, and the connection by the second wireless communication unit is established. A communication device that establishes a connection with the external communication device by the first wireless communication unit using a connection, and thereafter disconnects the connection by the second wireless communication unit.
前記制御手段は、前記第一無線通信手段の接続が確立されているが当該接続によりデータの送受信が無い場合に当該接続を切断すると判定し、前記第一無線通信手段の接続により送受信するデータがあるが前記第一無線通信手段の接続が確立されていない場合に当該接続を確立すると判定することを特徴とする請求項1に記載の通信装置。   The control unit determines that the connection is disconnected when the connection of the first wireless communication unit is established but there is no data transmission / reception by the connection, and the data transmitted / received by the connection of the first wireless communication unit is 2. The communication apparatus according to claim 1, wherein when the connection of the first wireless communication unit is not established, it is determined that the connection is established. 前記制御手段は、前記第一無線通信手段による前記外部通信装置との接続を確立すると判定した場合には、前記外部通信装置との間で前記第二無線通信手段による接続を確立し、該第二無線通信手段による接続を用いて、前記外部通信装置との間の前記第一無線通信手段による接続を確立し、その後前記第二無線通信手段による接続を切断する、という一連の処理を実行した後に、前記第一無線通信手段による前記外部通信装置との接続を確立するか否かを判定する際に切断した前記第二無線通信手段による接続を復帰させることを特徴とする請求項1又は2に記載の通信装置。 When the control unit determines that the first wireless communication unit establishes a connection with the external communication device, the control unit establishes a connection with the external communication device by the second wireless communication unit, and Using a connection by the two wireless communication means, established a connection by the first wireless communication means with the external communication device, then cut off the connection by the second wireless communication means, performed a series of processing The connection by the second wireless communication unit, which is disconnected when determining whether to establish a connection with the external communication device by the first wireless communication unit , is restored later. 3. The communication device according to 2. 前記第一無線通信手段による通信は、前記第二無線通信手段による通信よりも消費電力が大きいことを特徴とする請求項1乃至3のいずれか一項に記載の通信装置。   The communication device according to any one of claims 1 to 3, wherein communication by the first wireless communication unit consumes more power than communication by the second wireless communication unit. 前記第一無線通信手段による通信の通信規格は無線LANであることを特徴とする請求項1乃至4のいずれか一項に記載の通信装置。   The communication device according to any one of claims 1 to 4, wherein a communication standard of communication by the first wireless communication unit is a wireless LAN. 前記第一無線通信手段による通信において、前記第一無線通信手段はアクセスポイントとして動作することを特徴とする請求項5に記載の通信装置。   The communication device according to claim 5, wherein in the communication by the first wireless communication unit, the first wireless communication unit operates as an access point. 前記第二無線通信手段による通信の通信規格はBluetooth Low Energyであることを特徴とする請求項1乃至6のいずれか一項に記載の通信装置。   The communication device according to any one of claims 1 to 6, wherein a communication standard of communication by the second wireless communication unit is Bluetooth Low Energy. 前記通信装置の有する前記第二無線通信手段はペリフェラルとして動作し、
前記複数の外部通信装置はセントラルとして動作する第二無線通信手段を有することを特徴とする請求項7に記載の通信装置。
The second wireless communication means of the communication device operates as a peripheral,
The communication device according to claim 7, wherein the plurality of external communication devices have second wireless communication means operating as a central unit.
前記制御手段は前記外部通信装置を前記第二無線通信手段による接続の確立を待機する状態に移行させる場合、前記第二無線通信手段による無線通信の接続開始条件の設定命令を、前記外部通信装置へ送信する
ことを特徴とする請求項1乃至8のいずれか一項に記載の通信装置。
When the control unit shifts the external communication device to a state of waiting for the establishment of a connection by the second wireless communication unit, the control unit sends a command to set a connection start condition of wireless communication by the second wireless communication unit to the external communication device. The communication device according to any one of claims 1 to 8, wherein the communication device is transmitted to the communication device.
同時に複数の外部通信装置と無線通信によって接続が可能な第一無線通信手段と、前記複数の外部通信装置の一と無線通信によって接続が可能な第二無線通信手段とを有する通装置の制御方法であって、
前記第一無線通信手段による前記外部通信装置との接続を確立するか否かを判定する場合、前記第二無線通信手段による接続を切断するステップと、
前記第一無線通信手段による前記外部通信装置との接続を切断すると判定した場合には、前記第一無線通信手段による接続を介して、前記外部通信装置を、前記第二無線通信手段による接続の確立を待機する状態に移行させ、前記第一無線通信手段による接続を切断するステップと、
前記第一無線通信手段による前記外部通信装置との接続を確立すると判定した場合には、前記外部通信装置との間で前記第二無線通信手段による接続を確立し、該第二無線通信手段による接続を用いて、前記外部通信装置との間の前記第一無線通信手段による接続を確立し、その後前記第二無線通信手段による接続を切断するステップとを有することを特徴とする通信装置の制御方法。
A communication device control method, comprising: a first wireless communication unit that can be simultaneously connected to a plurality of external communication devices by wireless communication; and a second wireless communication unit that can be connected to one of the plurality of external communication devices by wireless communication. And
When determining whether to establish a connection with the external communication device by the first wireless communication means, disconnecting the connection by the second wireless communication means,
If it is determined to disconnect the connection with the external communication device by the first wireless communication means, through the connection by the first wireless communication means, the external communication device, the connection of the second wireless communication means Shifting to a state of waiting for establishment, disconnecting the connection by the first wireless communication means,
When it is determined that the first wireless communication unit establishes a connection with the external communication device, a connection by the second wireless communication unit is established with the external communication device, and the connection by the second wireless communication unit is established. Using a connection to establish a connection with the external communication device by the first wireless communication means, and then disconnecting the connection by the second wireless communication means. Method.
コンピュータを、請求項1乃至9のいずれか一項に記載の通信装置として機能させるための、コンピュータが読み取り可能なプログラム。   A computer-readable program for causing a computer to function as the communication device according to claim 1.
JP2015177915A 2015-09-09 2015-09-09 Communication device, communication device control method, and program Expired - Fee Related JP6643841B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2015177915A JP6643841B2 (en) 2015-09-09 2015-09-09 Communication device, communication device control method, and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2015177915A JP6643841B2 (en) 2015-09-09 2015-09-09 Communication device, communication device control method, and program

Publications (3)

Publication Number Publication Date
JP2017055265A JP2017055265A (en) 2017-03-16
JP2017055265A5 JP2017055265A5 (en) 2018-10-18
JP6643841B2 true JP6643841B2 (en) 2020-02-12

Family

ID=58317702

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2015177915A Expired - Fee Related JP6643841B2 (en) 2015-09-09 2015-09-09 Communication device, communication device control method, and program

Country Status (1)

Country Link
JP (1) JP6643841B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6869098B2 (en) * 2017-05-11 2021-05-12 キヤノン株式会社 Communication equipment and its control method and program
JP7292825B2 (en) * 2017-12-19 2023-06-19 キヤノン株式会社 Communication device, control method and program

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5168383B2 (en) * 2011-04-26 2013-03-21 カシオ計算機株式会社 Wireless communication apparatus and program
JP5881178B2 (en) * 2013-03-12 2016-03-09 Necプラットフォームズ株式会社 Wireless access point device, wireless access point device control method, wireless communication system, and program
JP6393030B2 (en) * 2013-10-10 2018-09-19 キヤノン株式会社 Transmission device, reception device, control method, program, and transmission / reception system
JP2015154205A (en) * 2014-02-13 2015-08-24 キヤノン株式会社 Communication device, method of controlling the same, and program

Also Published As

Publication number Publication date
JP2017055265A (en) 2017-03-16

Similar Documents

Publication Publication Date Title
JP6335437B2 (en) COMMUNICATION DEVICE, COMMUNICATION METHOD, AND PROGRAM
KR102009063B1 (en) Communication apparatus, communication method, computer-readable recording medium, and communication system
CN113473006B (en) Information processing apparatus, image pickup apparatus, information processing system, information processing method, and non-transitory computer-readable medium
US20150169269A1 (en) Printer and printing system
JP2015073231A (en) Communication device, communication method and program
JP7116079B2 (en) Wireless charging communication method, wireless charging communication device, wireless charging system, program and storage medium
EP3192244B1 (en) Information processing apparatus, control method, and program
US10863074B2 (en) Communication apparatus, control method of the same, electronic apparatus, and system
JP6643841B2 (en) Communication device, communication device control method, and program
US9596336B2 (en) Communication apparatus connectable to external apparatus, and control method thereof
JP6869746B2 (en) Communication device, its control method, program
JP2017228830A (en) Communication device, control method thereof, and program
JP6970578B2 (en) Communication equipment and its control method, program
CN113965787B (en) Picture sharing method and device, display terminal and storage medium
JP5930778B2 (en) COMMUNICATION DEVICE, ITS CONTROL METHOD, PROGRAM
JP6702784B2 (en) Wireless communication device, wireless communication device control method, and program
US10298831B2 (en) Image capturing apparatus and method of controlling same with notification whether to stop moving image recording
JP6843630B2 (en) Communication device, control method of communication device, program
JP2017103650A (en) Communication device, communication device control method, and program
JP6632328B2 (en) Control device, power transmission device, control method, and program
JP5812065B2 (en) External storage device, data file transmission / reception system, data file transmission / reception method / program
WO2023074132A1 (en) Wireless communication device and control method therefor
US11166332B2 (en) Communication apparatus and control method thereof
US20220377734A1 (en) Communication apparatus wirelessly communicating with external apparatus, control method, and storage medium
JP2018006962A (en) Communication equipment, control method for communication equipment, and program

Legal Events

Date Code Title Description
A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20180907

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20180907

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20190531

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20190607

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20190801

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20190830

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20191025

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20200107

R151 Written notification of patent or utility model registration

Ref document number: 6643841

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151

LAPS Cancellation because of no payment of annual fees