JP2017017594A - Communication device, control method, and program - Google Patents

Communication device, control method, and program Download PDF

Info

Publication number
JP2017017594A
JP2017017594A JP2015133916A JP2015133916A JP2017017594A JP 2017017594 A JP2017017594 A JP 2017017594A JP 2015133916 A JP2015133916 A JP 2015133916A JP 2015133916 A JP2015133916 A JP 2015133916A JP 2017017594 A JP2017017594 A JP 2017017594A
Authority
JP
Japan
Prior art keywords
role
communication
digital camera
communicating
devices
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.)
Pending
Application number
JP2015133916A
Other languages
Japanese (ja)
Inventor
朋樹 平松
Tomoki Hiramatsu
朋樹 平松
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 JP2015133916A priority Critical patent/JP2017017594A/en
Publication of JP2017017594A publication Critical patent/JP2017017594A/en
Pending legal-status Critical Current

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

Landscapes

  • Mobile Radio Communication Systems (AREA)
  • Telephone Function (AREA)

Abstract

PROBLEM TO BE SOLVED: To decide roles of communication functions for the purpose of operating a plurality of communication functions together, in a communication device having a plurality of communication functions.SOLUTION: A communication device comprises: a first communication unit that communicates with the other communication device in a first role; and a second communication unit that communicates with the other communication device in a second role, and that is different from the first communication unit. The communication device re-determines the first role on the basis of the second role. Here, the first role and the second role are at least any one of a role capable of communicating with the plurality of other devices, and a role capable of communicating with only one other device, respectively.SELECTED DRAWING: Figure 1

Description

本発明は、無線通信の制御技術に関する。   The present invention relates to a wireless communication control technique.

近年、複数の通信装置が無線LANを利用して連携し、データ転送や遠隔操作等のサービスを実行するシステムが実用化されている。一方、Bluetooth(商標登録) Low Energy(以下、「BLE」と呼ぶ。)をサポートするスマートデバイスも普及してきており、BLEを用いてスマートデバイスと通信する通信端末も存在する。なお、BLEは、Bluetooth 4.0仕様の一部として規格化されたものであり(非特許文献1参照)、無線LANやBluetoothのバージョン3.0以前のものと比較して小さい消費電力で通信が可能である。   In recent years, a system in which a plurality of communication apparatuses cooperate with each other using a wireless LAN and execute services such as data transfer and remote operation has been put into practical use. On the other hand, smart devices that support Bluetooth (registered trademark) Low Energy (hereinafter referred to as “BLE”) have also become widespread, and there are also communication terminals that communicate with smart devices using BLE. Note that BLE is standardized as part of the Bluetooth 4.0 specification (see Non-Patent Document 1), and communicates with less power consumption than wireless LAN and Bluetooth version 3.0 or earlier. Is possible.

BLEは、実行的な通信速度が十分ではないため、大容量の通信を行う用途には適しない。一方で、IEEE802.11規格シリーズに準拠した無線LANでは、多くの場合、高速通信が可能であり、大容量の通信を行うことができる。しかしながら、そのような高速大容量の通信では、一般に、多くの電力が要求される。   BLE is not suitable for applications that perform large-capacity communication because the effective communication speed is not sufficient. On the other hand, in many cases, wireless LANs compliant with the IEEE802.11 standard series can perform high-speed communication and perform large-capacity communication. However, such high-speed and large-capacity communication generally requires a lot of power.

これに対して、特許文献1は、第1の無線通信部と、消費電力が第1の無線通信部より小さい第2の無線通信部とを用意し、第1の無線通信部を、第1の無線通信部による通信を行う期間を除いて休止させる技術が記載されている。特許文献1に記載の技術によれば、高速大容量の通信を可能としながらも、消費電力を抑制することが可能となる。   On the other hand, Patent Document 1 prepares a first wireless communication unit and a second wireless communication unit whose power consumption is smaller than that of the first wireless communication unit. Describes a technique for suspending communication except for a period during which communication is performed by the wireless communication unit. According to the technique described in Patent Document 1, it is possible to suppress power consumption while enabling high-speed and large-capacity communication.

特開2007−306201号公報JP 2007-306201 A

「Bluetooth SIG」、[online]、[平成27年6月18日検索]、インターネット<URL:https://www.bluetooth.org/apps/content>“Bluetooth SIG”, [online], [Search June 18, 2015], Internet <URL: https: // www. Bluetooth. org / apps / content>

BLEでは、セントラル(Central)と呼ばれる制御局と、ペリフェラル(Peripheral)と呼ばれる従属局との間で通信を行うことができる。このとき、1つのセントラルには、複数のペリフェラルが接続されうる。そして、BLEに限らず一般に、制御局と従属局という関係が存在する無線通信では、従属局となった通信装置は、自身が接続している制御局とのみ通信することが可能であり、他の制御局又は他の従属局と並行して通信することはできない。   In BLE, communication can be performed between a control station called Central and a subordinate station called Peripheral. At this time, a plurality of peripherals can be connected to one central. In general, not only for BLE, but in wireless communication in which there is a relationship between a control station and a dependent station, a communication device that has become a dependent station can communicate only with the control station to which it is connected. Cannot communicate with other control stations or other dependent stations in parallel.

このため、特許文献1において、第1の無線通信部を用いて複数の他の通信装置と通信する通信装置が、第2の無線通信部での通信では従属局として動作する場合には、第2の無線通信部が自身の接続中の制御局以外と通信できないこととなる。このため、第1の無線通信部によって通信する複数の他の通信装置との通信を、第2の無線通信部を用いて制御することができない。   For this reason, in Patent Document 1, when a communication device that communicates with a plurality of other communication devices using the first wireless communication unit operates as a dependent station in communication with the second wireless communication unit, The two wireless communication units cannot communicate with other than the connected control station. For this reason, communication with a plurality of other communication devices communicating with the first wireless communication unit cannot be controlled using the second wireless communication unit.

本発明は上記課題に鑑みてなされたものであり、複数の通信機能を有する通信装置において、その複数の通信機能を連動させるための、通信機能の役割決定技術を提供することを目的とする。   The present invention has been made in view of the above problems, and an object thereof is to provide a communication function role determination technique for linking a plurality of communication functions in a communication apparatus having a plurality of communication functions.

上記目的を達成するために、本発明による通信装置は、第1の役割で他の通信装置と通信する第1の通信手段と、第2の役割で前記他の通信装置と通信する、前記第1の通信手段と異なる第2の通信手段と、前記第1の役割を、前記第2の役割に基づいて再決定する再決定手段と、を有し、前記第1の役割および前記第2の役割は、それぞれ、複数の他の装置と通信できる役割と、1つの他の装置とのみ通信できる役割との少なくともいずれかである、ことを特徴とする。   In order to achieve the above object, a communication device according to the present invention comprises: a first communication unit that communicates with another communication device in a first role; and a communication device that communicates with the other communication device in a second role. Second communication means different from the first communication means, and redetermination means for redetermining the first role based on the second role, the first role and the second Each role is characterized in that it is at least one of a role capable of communicating with a plurality of other devices and a role capable of communicating only with one other device.

本発明によれば、複数の通信機能を有する通信装置において、その複数の通信機能を連動させるために、通信機能の役割を決定することができる。   According to the present invention, in a communication device having a plurality of communication functions, the role of the communication function can be determined in order to link the plurality of communication functions.

無線通信システムの構成例を示す図。The figure which shows the structural example of a radio | wireless communications system. デジタルカメラの構成例を示すブロック図。The block diagram which shows the structural example of a digital camera. スマートデバイスの構成例を示すブロック図。The block diagram which shows the structural example of a smart device. BLEにおける役割パターンの一例を示す図。The figure which shows an example of the role pattern in BLE. デバイス連携処理の流れの一例を示すフローチャート。The flowchart which shows an example of the flow of a device cooperation process. 接続処理の流れの一例を示すフローチャート。The flowchart which shows an example of the flow of a connection process. BLE接続処理の流れの一例を示すフローチャート。The flowchart which shows an example of the flow of BLE connection processing. BLE役割再決定処理の流れの一例を示すフローチャート。The flowchart which shows an example of the flow of a BLE role redetermination process. BLE役割変更処理の流れの一例を示すフローチャート。The flowchart which shows an example of the flow of a BLE role change process. サービス実行処理の流れの一例を示すフローチャート。The flowchart which shows an example of the flow of a service execution process. BLE役割復帰処理の流れの一例を示すフローチャート。The flowchart which shows an example of the flow of a BLE role return process. デバイス連携開始から接続処理までの処理の流れの一例を示すシーケンス図。The sequence diagram which shows an example of the flow of a process from a device cooperation start to a connection process. サービス実行からデバイス連携終了までの処理の流れの一例を示すシーケンス図。The sequence diagram which shows an example of the flow of a process from service execution to a device cooperation completion. マルチデバイス連携開始から接続処理までの処理の流れの一例を示すシーケンス図。The sequence diagram which shows an example of the flow of a process from a multi-device cooperation start to a connection process. サービス実行からBLE役割復帰までの処理の流れの一例を示すシーケンス図。The sequence diagram which shows an example of the flow of a process from service execution to BLE role return. マルチデバイス連携開始から接続処理までの処理の流れの別の例を示すシーケンス図。The sequence diagram which shows another example of the flow of a process from a multi-device cooperation start to a connection process. サービス実行からBLE役割復帰までの処理の流れの別の例を示すシーケンス図。The sequence diagram which shows another example of the flow of a process from service execution to BLE role return.

以下、添付の図面を参照して、本発明の実施の形態について詳細に説明する。なお、以下に示される実施形態は一例に過ぎず、本発明は以下の説明で示された構成に限定されない。   Hereinafter, embodiments of the present invention will be described in detail with reference to the accompanying drawings. In addition, embodiment shown below is only an example and this invention is not limited to the structure shown by the following description.

(無線通信システムの構成)
図1は、以下の各実施形態に係る無線通信システム100の構成例を示す図である。図1の無線通信システム100は、それぞれが通信装置としての機能を有するデジタルカメラ101、スマートデバイス102、及びスマートデバイス103を含んで構成される。デジタルカメラ101及びスマートデバイス102は、例えばIEEE802.11規格シリーズに準拠した無線LANによる通信104と、例えばBLEなどの、制御局と従属局などの主従関係を有する通信106とによって通信可能である。また、デジタルカメラ101及びスマートデバイス103は、例えばIEEE802.11規格シリーズに準拠した無線LANによる通信105と、例えばBLEなどの、制御局と従属局などの主従関係を有する通信107とによって通信可能である。なお、無線LAN及びBLEは通信手法の一例であり、各通信装置は、2つ以上の通信機能を有し、例えば制御局と従属局との関係の中で通信を行う一方の通信機能によって、他方の通信機能の制御を行うことが可能であれば、他の通信手法が用いられてもよい。ただし、一般性を失うことなく、無線LANなどの第1の通信は、BLEなどの第2の通信より高速な通信が可能であり、また、第2の通信は、第1の通信よりも消費電力が少ないか通信可能距離が短いかの少なくともいずれかであるものとする。
(Configuration of wireless communication system)
FIG. 1 is a diagram illustrating a configuration example of a wireless communication system 100 according to the following embodiments. The wireless communication system 100 in FIG. 1 includes a digital camera 101, a smart device 102, and a smart device 103 each having a function as a communication device. The digital camera 101 and the smart device 102 can communicate with each other by communication 104 using a wireless LAN compliant with, for example, the IEEE 802.11 standard series, and communication 106 having a master-slave relationship such as a control station and a dependent station, such as BLE. The digital camera 101 and the smart device 103 can communicate with each other by a communication 105 using a wireless LAN compliant with, for example, the IEEE 802.11 standard series, and a communication 107 having a master-slave relationship such as a control station and a subordinate station such as BLE. is there. Note that wireless LAN and BLE are examples of communication methods, and each communication device has two or more communication functions. For example, one communication function that performs communication in a relationship between a control station and a subordinate station, Other communication methods may be used as long as the other communication function can be controlled. However, without losing generality, the first communication such as a wireless LAN can perform higher-speed communication than the second communication such as BLE, and the second communication consumes more than the first communication. It is assumed that the power is low or the communicable distance is short.

(通信装置の構成)
続いて、無線通信システム100を構成する各通信装置について、図2及び図3を用いて説明する。図2は、デジタルカメラ101の構成の一例を示すブロック図であり、図3は、スマートデバイス102の構成の一例を表すブロック図である。
(Configuration of communication device)
Next, each communication device constituting the wireless communication system 100 will be described with reference to FIGS. 2 and 3. FIG. 2 is a block diagram illustrating an example of the configuration of the digital camera 101, and FIG. 3 is a block diagram illustrating an example of the configuration of the smart device 102.

デジタルカメラ101は、例えば、無線LANによる通信用の無線LAN制御部201並びにアンテナ202、及び、BLE(Bluetooth Low Energy)による通信用のBLE制御部203並びにアンテナ204を有する。また、デジタルカメラ101は、パケット送受信部210を有する。無線LAN制御部201は、無線LANのRF制御、通信処理、IEEE802.11規格シリーズに準拠した無線LANによる通信の各種制御を行うドライバや無線LANによる通信に関するプロトコル処理を行う。BLE制御部203は、BLEのRF制御、通信処理、BLEによる通信の各種制御を行うドライバやBLEによる通信に関するプロトコル処理を行う。パケット送受信部210は、無線LAN及びBLEによる通信に関するパケットの送信と受信との少なくともいずれかを実行するための処理を行う。なお、本例では、デジタルカメラ101は、通信においてパケットの送信と受信との少なくともいずれかを行うものとして説明するが、パケット交換以外に、例えば回線交換など、他の通信形式が用いられてもよい。   The digital camera 101 includes, for example, a wireless LAN control unit 201 and an antenna 202 for communication using a wireless LAN, and a BLE control unit 203 and an antenna 204 for communication using BLE (Bluetooth Low Energy). The digital camera 101 also has a packet transmission / reception unit 210. The wireless LAN control unit 201 performs wireless LAN RF control, communication processing, a driver that performs various types of control of wireless LAN communication conforming to the IEEE802.11 standard series, and protocol processing related to wireless LAN communication. The BLE control unit 203 performs BLE RF control, communication processing, a driver that performs various types of control of communication using BLE, and protocol processing related to communication using BLE. The packet transmitting / receiving unit 210 performs processing for executing at least one of transmission and reception of a packet related to communication by wireless LAN and BLE. In this example, the digital camera 101 is described as performing at least one of transmission and reception of packets in communication. However, in addition to packet switching, other communication formats such as circuit switching may be used. Good.

デジタルカメラ101は、例えば、制御部205、記憶部206、操作部207、表示部208、マイク209、撮像部211、画像処理部212、符号/復号化部213、記録再生部214及び電源部215をさらに有する。制御部205は、例えば記憶部206に記憶された制御プログラムを実行することにより、デジタルカメラ101全体を制御する。記憶部206は、例えば、制御部205によって実行される制御プログラムと、通信に必要なパラメータ等の各種情報とを記憶する。後述する各種動作は、例えば、記憶部206に記憶された制御プログラムを、制御部205が実行することにより実現される。また、制御部205は、BLEによる通信を用いて、無線LANによる通信に関する通信制御を実行するように構成されうる。   The digital camera 101 includes, for example, a control unit 205, a storage unit 206, an operation unit 207, a display unit 208, a microphone 209, an imaging unit 211, an image processing unit 212, an encoding / decoding unit 213, a recording / reproducing unit 214, and a power supply unit 215. It has further. The control unit 205 controls the entire digital camera 101 by executing a control program stored in the storage unit 206, for example. The storage unit 206 stores, for example, a control program executed by the control unit 205 and various types of information such as parameters necessary for communication. Various operations to be described later are realized, for example, when the control unit 205 executes a control program stored in the storage unit 206. Further, the control unit 205 can be configured to execute communication control related to communication by wireless LAN using communication by BLE.

操作部207は、例えばユーザによるデジタルカメラ101の操作を受け付けるボタン等である。表示部208は、例えば、LCDやLEDのように視覚で認知可能な情報の出力、又はスピーカ等の音出力が可能な機能を有し、各種情報の表示を行う。なお、操作部207及び表示部208は、例えばタッチパネルなどの共通する部材によって構成されてもよい。マイク209は、例えば汎用的なマイクであり、撮像時に映像に付随する音声を取得する。なお、マイク209によって、ユーザの操作命令を取得してもよく、その場合、操作部207は、マイク209によって取得された音声を解析する機能として実現されうる。   The operation unit 207 is, for example, a button that receives an operation of the digital camera 101 by a user. The display unit 208 has a function capable of outputting visually recognizable information such as an LCD or LED, or outputting sound such as a speaker, and displays various types of information. The operation unit 207 and the display unit 208 may be configured by a common member such as a touch panel, for example. The microphone 209 is a general-purpose microphone, for example, and acquires sound accompanying the video during imaging. Note that the user's operation command may be acquired by the microphone 209, and in this case, the operation unit 207 can be realized as a function of analyzing the sound acquired by the microphone 209.

撮像部211は、被写体の光学像を取得する。画像処理部212は撮像部211から出力された撮像画像を所定フォーマットの画像データに変換し、画像データの輝度や色補正等の各種処理を施す。符号/復号化部213は画像処理部212から出力された画像データに対して、所定の高能率符号化(例えば、DCT変換、量子化後に可変長符号化)を行う。記録再生部214は圧縮符号化された画像データを不図示の記録媒体に記録再生する。電源部215はデジタルカメラ101に電源を供給する。   The imaging unit 211 acquires an optical image of the subject. The image processing unit 212 converts the captured image output from the imaging unit 211 into image data of a predetermined format, and performs various processes such as brightness and color correction of the image data. The encoding / decoding unit 213 performs predetermined high-efficiency encoding (for example, DCT conversion, variable length encoding after quantization) on the image data output from the image processing unit 212. The recording / reproducing unit 214 records and reproduces the compression-encoded image data on a recording medium (not shown). A power supply unit 215 supplies power to the digital camera 101.

スマートデバイス102は、例えば、無線LAN用の無線LAN制御部301並びにアンテナ302、及び、BLE用のBLE制御部305並びにアンテナ306に加え、公衆無線通信用の公衆無線制御部303並びにアンテナ304を有する。また、スマートデバイス102は、パケット送受信部307をさらに有する。無線LAN制御部301は、無線LANのRF制御、通信処理、IEEE802.11規格シリーズに準拠した無線LANによる通信の各種制御を行うドライバや無線LANによる通信に関するプロトコル処理を行う。BLE制御部305は、BLEのRF制御、通信処理、BLEによる通信の各種制御を行うドライバやBLEによる通信に関するプロトコル処理を行う。公衆無線制御部303は、公衆無線通信のRF制御、通信処理、公衆無線通信の各種制御を行うドライバや公衆無線通信関連のプロトコル処理を行う。公衆無線通信は例えばIMT(International Multimedia Telecommunications)規格やLTE(Long Term Evolution)規格などに準拠したものである。パケット送受信部307は、無線LAN並びにBLEによる通信及び公衆無線通信に関するパケットの送信と受信との少なくともいずれかを実行するための処理を行う。なお、本例では、スマートデバイス102は、通信においてパケットの送信と受信との少なくともいずれかを行うものとして説明するが、パケット交換以外に、例えば回線交換など、他の通信形式が用いられてもよい。   The smart device 102 includes, for example, a public wireless control unit 303 and an antenna 304 for public wireless communication in addition to a wireless LAN control unit 301 and an antenna 302 for wireless LAN, and a BLE control unit 305 and an antenna 306 for BLE. . The smart device 102 further includes a packet transmission / reception unit 307. The wireless LAN control unit 301 performs wireless LAN RF control, communication processing, a driver that performs various types of control of wireless LAN communication conforming to the IEEE802.11 standard series, and protocol processing related to wireless LAN communication. The BLE control unit 305 performs BLE RF control, communication processing, a driver that performs various types of control of communication using BLE, and protocol processing related to communication using BLE. The public wireless control unit 303 performs a public wireless communication RF control, communication processing, a driver that performs various controls of public wireless communication, and public wireless communication related protocol processing. Public wireless communication is based on, for example, the IMT (International Multimedia Communication) standard, the LTE (Long Term Evolution) standard, and the like. The packet transmission / reception unit 307 performs processing for executing at least one of transmission and reception of packets related to wireless LAN, BLE communication, and public wireless communication. In this example, the smart device 102 is described as performing at least one of packet transmission and reception in communication. However, other communication formats such as circuit switching may be used in addition to packet switching. Good.

スマートデバイス102は、例えば、制御部308、記憶部309、電源部310、表示部311、操作部312、通話部313、及びマイク314をさらに有する。制御部308は、例えば、記憶部309に記憶される制御プログラムを実行することにより、スマートデバイス102全体を制御する。記憶部309は、例えば制御部308が実行する制御プログラムと、通信に必要なパラメータ等の各種情報とを記憶する。後述する各種動作は、例えば記憶部309に記憶された制御プログラムを制御部308が実行することにより、実現される。   The smart device 102 further includes, for example, a control unit 308, a storage unit 309, a power supply unit 310, a display unit 311, an operation unit 312, a call unit 313, and a microphone 314. For example, the control unit 308 controls the entire smart device 102 by executing a control program stored in the storage unit 309. The storage unit 309 stores, for example, a control program executed by the control unit 308 and various types of information such as parameters necessary for communication. Various operations described below are realized by the control unit 308 executing a control program stored in the storage unit 309, for example.

電源部310はスマートデバイス102に電源を供給する。表示部311は、例えば、LCDやLEDのように視覚で認知可能な情報の出力、又はスピーカ等の音出力が可能な機能を有し、各種情報の表示を行う。操作部312は、例えばユーザによるスマートデバイス102の操作を受け付けるボタン等である。なお、表示部311及び操作部312は、例えばタッチパネルなどの共通する部材によって構成されてもよい。通話部313は、ユーザが通話を行うための機能部であり、マイク314は、例えば汎用的なマイクである。なお、マイク314は、例えば通話部313においてユーザが発した音声を取得するマイクが用いられてもよい。また、マイク314によって、ユーザの操作命令を取得してもよく、その場合、操作部312は、マイク314によって取得された音声を解析する機能として実現されうる。   The power supply unit 310 supplies power to the smart device 102. The display unit 311 has a function capable of outputting visually recognizable information such as an LCD or LED, or a sound output of a speaker or the like, and displays various types of information. The operation unit 312 is, for example, a button that receives an operation of the smart device 102 by the user. The display unit 311 and the operation unit 312 may be configured by a common member such as a touch panel, for example. The call unit 313 is a functional unit for a user to make a call, and the microphone 314 is, for example, a general-purpose microphone. Note that the microphone 314 may be, for example, a microphone that acquires voice uttered by the user in the call unit 313. In addition, the user's operation command may be acquired by the microphone 314, and in this case, the operation unit 312 can be realized as a function of analyzing the sound acquired by the microphone 314.

全ての機能ブロックはソフトウェアもしくはハードウェア的に相互関係を有するものである。また、上記機能ブロックは一例であり、複数の機能ブロックが1つの機能ブロックを構成するようにしてもよいし、何れかの機能ブロックが更に複数の機能を行うブロックに分割されてもよい。   All functional blocks have a mutual relationship in software or hardware. Moreover, the functional block is an example, and a plurality of functional blocks may constitute one functional block, or any functional block may be further divided into blocks that perform a plurality of functions.

(処理の流れ)
続いて、デジタルカメラ101とスマートデバイス102(及びスマートデバイス103)との間のデバイス連携処理に関して説明する。本処理例では、まず、デジタルカメラ101とスマートデバイス102との間で1対1のデバイス連携が実行している間に、さらに、デジタルカメラ101とスマートデバイス103との間でもマルチデバイス連携を実行する場合について説明する。
(Process flow)
Next, device cooperation processing between the digital camera 101 and the smart device 102 (and the smart device 103) will be described. In this processing example, first, while one-to-one device cooperation is executed between the digital camera 101 and the smart device 102, multi-device cooperation is also executed between the digital camera 101 and the smart device 103. The case where it does is demonstrated.

(デジタルカメラ101の動作)
本実施形態に係るデジタルカメラ101は、複数の相手装置と通信する際に、自身の無線LANにおける役割とBLEにおける役割とが、調和するように制御を行う。ここで、無線LANにおける役割とは、例えば、アクセスポイント(AP)及びクライアント(Client)であり、例えば、APが制御局であり、クライアントが従属局である。また、BLEにおける役割とは、セントラル(Central)及びペリフェラル(Peripheral)であり、例えば、セントラルが制御局であり、ペリフェラルが従属局である。デジタルカメラ101は、例えば、無線LANにおける役割がAPの場合は、BLEにおける役割がペリフェラルであると、無線LANにおける複数のクライアントとの通信をBLEによって制御することはできない。したがって、この場合、デジタルカメラ101は、セントラルとして動作することとなる。なお、デジタルカメラ101は、セントラル及びペリフェラルとして同時に動作することができるのであれば、BLEにおいてセントラルとして動作している接続中の相手装置とは、ペリフェラルとして接続を維持し、それに加えてセントラルとしても動作し得る。
(Operation of digital camera 101)
When communicating with a plurality of counterpart devices, the digital camera 101 according to the present embodiment performs control so that its role in the wireless LAN and the role in BLE are in harmony. Here, the role in the wireless LAN is, for example, an access point (AP) and a client (Client). For example, the AP is a control station and the client is a subordinate station. The roles in BLE are central and peripheral. For example, central is a control station and peripheral is a subordinate station. For example, if the role in the wireless LAN is AP, the digital camera 101 cannot control communication with a plurality of clients in the wireless LAN by BLE if the role in BLE is peripheral. Therefore, in this case, the digital camera 101 operates as a central. If the digital camera 101 can operate as a central and a peripheral at the same time, it maintains a connection as a peripheral with a connected partner device operating as a central in BLE, and in addition, it can be used as a central. Can work.

このような、デジタルカメラ101におけるBLEの役割パターンについて、図4を用いて説明する。役割パターンは、図4に示す4つに分類される。   Such a role pattern of BLE in the digital camera 101 will be described with reference to FIG. The role patterns are classified into four as shown in FIG.

役割パターンAは、自装置がBLEにおける役割をセントラルとし、相手装置がBLEにおける役割をペリフェラルとするパターンである。具体的には、自装置の無線LANの役割がAPであり、かつ、BLEにおいてペリフェラルとセントラルの同時動作を行うことができない場合に選択される。すなわち、自装置の無線LANの役割がAPであるため、自装置のBLEにおける役割をセントラルにするところ、相手装置は、BLEにおける役割をペリフェラルとするものである。ここで、相手装置がBLEにおける役割をセントラルとしており、自装置の役割がペリフェラルであった場合、自装置においてペリフェラルの役割を終了して、セントラルとして動作する必要がある。一方で、自装置がセントラル及びペリフェラルとして同時動作可能であれば、セントラルとして動作する相手装置とはペリフェラルとして接続を維持しながら、ペリフェラルとして動作する別の相手装置との間ではセントラルとして接続することができる。この場合が、次に説明する役割パターンBである。   The role pattern A is a pattern in which the device itself has a role in BLE as a central, and the partner device has a role in BLE as a peripheral. Specifically, it is selected when the role of the wireless LAN of its own device is AP and the peripheral and central operations cannot be performed simultaneously in BLE. That is, since the role of the wireless LAN of the own device is AP, when the role of the own device is centralized, the counterpart device assumes the role of BLE as a peripheral. Here, if the counterpart device has a central role in BLE and the role of its own device is a peripheral, it is necessary to terminate the role of the peripheral in its own device and operate as a central. On the other hand, if the local device can operate as a central and a peripheral at the same time, connect as a central to another device operating as a peripheral while maintaining a connection as a peripheral with the remote device operating as a central. Can do. This case is the role pattern B described next.

役割パターンBは、自装置がBLEにおける役割にセントラル及びペリフェラルとして同時動作し、相手装置が役割をセントラルとするパターンである。具体的には、自装置の無線LANにおける役割がAPであり、相手装置がBLEにおいてペリフェラル及びセントラルとしての同時動作を行うことができる場合に選択される。   The role pattern B is a pattern in which the own device simultaneously operates as a central and a peripheral in the role in BLE, and the counterpart device has the role in the central. Specifically, it is selected when the role of the own device in the wireless LAN is AP, and the partner device can perform simultaneous operation as a peripheral and central in BLE.

役割パターンCは、自装置がBLEにおける役割をペリフェラルとし、相手装置がBLEにおける役割をセントラルとするパターンである。具体的には、自装置の無線LANにおける役割がクライアントであり、相手装置がBLEにおいてセントラルとペリフェラルの同時動作を行うことができない場合に選択される。   The role pattern C is a pattern in which the own device has a role in BLE as a peripheral and the counterpart device has a role in BLE as a central. Specifically, it is selected when the role of the own device in the wireless LAN is a client, and the partner device cannot perform the central and peripheral simultaneous operation in BLE.

役割パターンDは、自装置のBLEにおける役割をセントラルのままとして、相手装置がBLEにおいてセントラル及びペリフェラルとして同時動作するパターンである。具体的には、自装置の無線LANにおける役割がクライアントであり、相手装置がセントラルとペリフェラルの同時動作を行うことができる場合に選択される。   The role pattern D is a pattern in which the role of the own device in the BLE remains central and the counterpart device operates simultaneously as a central and a peripheral in the BLE. Specifically, it is selected when the role of the own device in the wireless LAN is a client, and the counterpart device can perform the central and peripheral operations simultaneously.

図5は、デジタルカメラ101においてデバイス連携を開始した際の動作フローである。デバイス連携は、例えば、ユーザのボタン操作を契機に開始するが、これに限られず、例えば、NFC(Near Field Communication)により、スマートデバイスの近接を検知したことを契機に開始してもよい。   FIG. 5 is an operation flow when device cooperation is started in the digital camera 101. For example, the device cooperation is triggered by the user's button operation, but is not limited to this, and may be triggered by the fact that the proximity of the smart device is detected by NFC (Near Field Communication), for example.

デジタルカメラ101は、デバイス連携を開始すると、まず、無線LANの役割決定処理を行う(S501)。ここで、本例では、デジタルカメラ101は、無線LANの役割を、例えば実行するサービスの種別に応じて決定する。例えば、スマートデバイスのテザリング機能を利用したデータアップロードでは、デジタルカメラ101は、自身の無線LANの役割をクライアントにする。また、デジタルカメラ101は、自身からスマートデバイスへのデータ配信では、自身の無線LANの役割をAPにしうる。なお、デジタルカメラ101は、これ以外の方法によって、自身の無線LANの役割を決定してもよい。   When the device cooperation is started, the digital camera 101 first performs a wireless LAN role determination process (S501). Here, in this example, the digital camera 101 determines the role of the wireless LAN according to, for example, the type of service to be executed. For example, in data upload using the tethering function of a smart device, the digital camera 101 uses its own wireless LAN role as a client. In addition, the digital camera 101 can use the role of its own wireless LAN as an AP in data distribution from itself to a smart device. The digital camera 101 may determine the role of its own wireless LAN by other methods.

デジタルカメラ101は、続いて、BLEによってスマートデバイス(通信の相手装置)に接続済みであるか否かを判定する(S502)。デジタルカメラ101は、BLEによって相手装置に接続済みでない場合(S502でNO)は、接続処理を実行する(S503)。   Next, the digital camera 101 determines whether or not it has already been connected to the smart device (communication partner device) by BLE (S502). If the digital camera 101 is not already connected to the counterpart device by BLE (NO in S502), the digital camera 101 executes a connection process (S503).

ここで、S503における接続処理について、図6を用いて説明する。   Here, the connection process in S503 will be described with reference to FIG.

デジタルカメラ101は、S503の接続処理を開始すると、まず、無線LANによる接続処理を行う(S601)。無線LANによる接続処理は、例えば、無線LANの通信機能によるネットワークの作成又は参加、IPアドレスの割当て等の処理を含みうるが、これに限られない。デジタルカメラ101は、無線LANによる接続処理を完了すると、続いて、サービス接続処理を行う(S602)。本例では、サービス接続処理は、例えば、サービス発見プロトコルであるSSDPやmDNSを用いて、相手装置のデバイス情報の取得やサービス情報の交換等を行い、HTTPのリンクを確立することでありうるが、これに限られない。なお、SSDPは「Simple Service Discovery Protocol」の、mDNSは「Multicast Domain Name Service」の、それぞれ頭字語である。また、HTTPは、「Hypertext Transfer Protocol」の頭字語である。なお、HTTPのリンクの確立に代えて、例えば、TCP(Transmission Control Protocol)のセッションが確立されてもよい。   When the digital camera 101 starts the connection process in S503, first, the digital camera 101 performs a connection process using a wireless LAN (S601). The connection processing by the wireless LAN can include, for example, processing such as network creation or participation by the wireless LAN communication function, IP address assignment, etc., but is not limited thereto. When the digital camera 101 completes the connection process using the wireless LAN, the digital camera 101 subsequently performs a service connection process (S602). In this example, the service connection process may be, for example, acquiring device information of the partner apparatus or exchanging service information using the service discovery protocol SSDP or mDNS, and establishing an HTTP link. Not limited to this. SSDP is an acronym for “Simple Service Discovery Protocol”, and mDNS is an acronym for “Multicast Domain Name Service”. HTTP is an acronym for “Hypertext Transfer Protocol”. Instead of establishing an HTTP link, for example, a TCP (Transmission Control Protocol) session may be established.

サービス接続処理が完了すると、デジタルカメラ101は、BLEがペアリング済みであるか否かを判定する(S603)。本例では、デジタルカメラ101は、BLEがペアリング済みであるか否かの判定を、例えば、デバイス連携開始時のNFC通信により取得した相手装置の識別子と自装置内に記憶した相手装置の識別子が一致するか否かにより行いうるが、これに限られない。そして、デジタルカメラ101は、BLEがペアリング済みである場合は処理をS606へ進め、ペアリング済みでない場合は処理をS604へ進める。   When the service connection process is completed, the digital camera 101 determines whether the BLE has been paired (S603). In this example, the digital camera 101 determines whether the BLE has been paired, for example, the identifier of the partner device acquired by NFC communication at the start of device cooperation and the identifier of the partner device stored in the device itself. However, the present invention is not limited to this. The digital camera 101 advances the process to S606 if the BLE has been paired, and advances the process to S604 if not paired.

デジタルカメラ101は、S604において、BLE情報取得要求を行う。本例では、デジタルカメラ101は、サービス接続処理で確立したHTTPリンク上でBLE情報取得要求を実行するが、これに限られない。例えば、デジタルカメラ101は、サービス接続処理で確立したHTTPリンクとは異なる別のリンクを確立して、BLE情報取得要求を実行してもよい。また、BLEのAdvertiseパケットやScan Request/Responseパケットが、BLE情報取得要求に用いられてもよい。デジタルカメラ101は、その後、BLE情報取得応答を受信したか否かを判定するのを待ち受け(S605)、応答を受信したこと(S605でYES)に応じて、処理をS606へ進める。ここで、BLE情報は、BLEのデバイス識別子やバージョン情報、実行可能な役割の種別等が含まれうるが、これらに限られない。BLE情報は、例えば、接続済みのBLEリンクにおける役割や相手装置のデバイス種別、実行可能なサービス種別、通信状況等を含んでもよい。   In step S604, the digital camera 101 makes a BLE information acquisition request. In this example, the digital camera 101 executes the BLE information acquisition request on the HTTP link established by the service connection process, but is not limited thereto. For example, the digital camera 101 may execute a BLE information acquisition request by establishing another link different from the HTTP link established by the service connection process. Also, an BLE Advertise packet or a Scan Request / Response packet may be used for a BLE information acquisition request. The digital camera 101 then waits to determine whether or not a BLE information acquisition response has been received (S605), and proceeds to S606 in response to receiving the response (YES in S605). Here, the BLE information may include, but is not limited to, a BLE device identifier and version information, an executable role type, and the like. The BLE information may include, for example, the role in the connected BLE link, the device type of the counterpart device, the executable service type, the communication status, and the like.

S606では、デジタルカメラ101は、BLE役割決定処理を行う。本例では、デジタルカメラ101は、BLE未接続時の役割を、相手装置のデバイス種別によって決定しうる。例えば、デジタルカメラ101は、相手装置がスマートデバイスである場合は、自身のBLEによる通信における役割を、ペリフェラルに決定しうる。ただし、デジタルカメラ101は、これ以外の方法で自身のBLEによる通信における役割を決定してもよく、例えば、相手装置がとり得る役割の種別等に基づいて決定してもよい。これにより、相手装置がとり得る役割がセントラルまたはペリフェラルのどちらか一方に制限されている場合でも、BLEのリンクを確実に確立することができるようになる。デジタルカメラ101は、BLE役割決定処理を完了すると、BLE役割決定通知を行い(S607)、その後、BLE接続処理を開始する(S608)。   In S606, the digital camera 101 performs a BLE role determination process. In this example, the digital camera 101 can determine the role when BLE is not connected according to the device type of the counterpart apparatus. For example, when the counterpart device is a smart device, the digital camera 101 can determine the role in communication by its own BLE as a peripheral. However, the digital camera 101 may determine the role in communication by its own BLE by a method other than this, for example, based on the type of role that the partner device can take. This makes it possible to reliably establish a BLE link even when the role that the partner device can take is limited to either the central or the peripheral. When the digital camera 101 completes the BLE role determination process, the digital camera 101 issues a BLE role determination notification (S607), and then starts the BLE connection process (S608).

このBLE接続処理について、図7を用いて説明する。BLE接続処理において、デジタルカメラ101は、まず、自身の役割がペリフェラルか否かを判定する(S701)。そして、デジタルカメラ101は、自身の役割がペリフェラルである場合(S701でYES)は、報知処理を開始する(S702)。ここで、報知処理は、AdvertiserとなってAdvertise Indicationパケット、又はAdvertise Direct Indicationパケットを用いてデバイス情報を報知することを含みうる。例えば、デジタルカメラ101は、相手装置からのScan Requestに対して、Scan Responseを行うことで、デバイス情報を通知しうる。その後、デジタルカメラ101は、相手装置から接続要求を受信するのを待ち受け(S703)、接続要求を受信したことに応じて(S703でYES)、処理をS707へ進める。ここで、接続要求は、Connection Requestパケットでありうる。   This BLE connection process will be described with reference to FIG. In the BLE connection process, the digital camera 101 first determines whether or not its role is a peripheral (S701). If the digital camera 101 is a peripheral (YES in S701), the digital camera 101 starts a notification process (S702). Here, the notification process may include notification of device information using an Advertise Indication packet or an Advertise Direct Indication packet as an Advertiser. For example, the digital camera 101 can notify device information by performing a Scan Response to a Scan Request from the partner apparatus. Thereafter, the digital camera 101 waits for reception of a connection request from the partner apparatus (S703), and proceeds to S707 in response to reception of the connection request (YES in S703). Here, the connection request may be a Connection Request packet.

一方、デジタルカメラ101は、自身の役割がペリフェラルでない場合(S701でNO)は、探索処理を開始する(S704)。デジタルカメラ101は、例えば、探索処理においてBrowserとなって、相手装置のAdvertiseパケットを監視する。また、デジタルカメラ101は、探索処理において、相手装置にScan Requestを送信し、Scan Responseを受信することによって、デバイス情報を取得するようにしてもよい。そして、デジタルカメラ101は、相手装置が発見されるまで待機し(S705)、相手装置を発見した場合(S705でYES)に、発見した相手装置に対して接続要求を送信し(S706)、その後、処理をS707へ進める。   On the other hand, if the role of the digital camera 101 is not a peripheral (NO in S701), the digital camera 101 starts a search process (S704). For example, the digital camera 101 becomes a Browser in the search process, and monitors the Advertise packet of the partner apparatus. Further, in the search process, the digital camera 101 may acquire device information by transmitting a Scan Request to the partner apparatus and receiving the Scan Response. Then, the digital camera 101 waits until the partner device is found (S705). When the partner device is found (YES in S705), the digital camera 101 transmits a connection request to the found partner device (S706). The process proceeds to S707.

デジタルカメラ101は、S707においてリンク確立処理を行い、BLE接続処理を終了する。デジタルカメラ101は、BLE接続処理を完了すると、S503の接続処理を終了し、処理をS512へ進める。   In step S707, the digital camera 101 performs link establishment processing and ends the BLE connection processing. When the digital camera 101 completes the BLE connection process, the digital camera 101 ends the connection process of S503 and advances the process to S512.

一方、デジタルカメラ101は、S502の処理において、BLEによって相手装置に接続済みでないと判定した場合(S502でYES)は、複数の相手装置と接続する状況であるかを判定する(S504)。そして、デジタルカメラ101は、複数の相手装置と接続する場合(S504でYES)は、処理をS505へ進め、一方で、単数の相手装置とのみ接続する場合(S504でNO)は、処理をS510へ進める。   On the other hand, in the process of S502, when the digital camera 101 determines that the connection to the partner apparatus has not been completed by BLE (YES in S502), the digital camera 101 determines whether it is in a state of connection to a plurality of partner apparatuses (S504). If the digital camera 101 is connected to a plurality of counterpart devices (YES in S504), the process proceeds to S505. On the other hand, if it is connected only to a single counterpart device (NO in S504), the process is performed in S510. Proceed to

S505では、デジタルカメラ101は、自身の無線LANの役割とBLEの役割とが一致するか否かを判定する。そして、デジタルカメラ101は、自身の無線LANの役割とBLEの役割とが一致する場合(S505でYES)には処理をS510へ進め、一致しない場合(S505でNO)には処理をS506へ進める。本例では、デジタルカメラ101は、自身の役割が、無線LANにおいてAPで、かつ、BLEにおいてセントラルである場合に役割が一致していると判定し得る。また、デジタルカメラ101は、自身の役割が、無線LANにおいてクライアントで、かつ、BLEにおいてペリフェラルである場合に、役割が一致していると判定し得る。   In step S505, the digital camera 101 determines whether or not the role of its own wireless LAN matches the role of BLE. The digital camera 101 advances the process to S510 if the role of its own wireless LAN matches the role of BLE (YES in S505), and advances the process to S506 if they do not match (NO in S505). . In this example, the digital camera 101 can determine that its role is the same when its role is AP in the wireless LAN and central in BLE. Also, the digital camera 101 can determine that the roles match when the role of the digital camera 101 is a client in the wireless LAN and a peripheral in the BLE.

デジタルカメラ101は、自身の無線LANの役割とBLEの役割とが一致しない場合に、BLE役割再決定処理を行う(S506)。ここで、BLE役割再決定処理について、図8を用いて説明する。   The digital camera 101 performs BLE role redetermination processing when the role of its own wireless LAN and the role of BLE do not match (S506). Here, the BLE role redetermination process will be described with reference to FIG.

デジタルカメラ101は、BLE役割再決定処理を開始すると、まず、自身の無線LANにおける役割がAPであるかを判定する(S801)。デジタルカメラ101は、自身の無線LANにおける役割がAPである場合(S801でYES)は、処理をS802へ進め、APでない場合(S801でNO)は、処理をS805へ進める。   When starting the BLE role redetermination process, the digital camera 101 first determines whether its role in the wireless LAN is an AP (S801). If the role of the digital camera 101 in the wireless LAN is AP (YES in S801), the process proceeds to S802. If the role is not AP (NO in S801), the process proceeds to S805.

S802では、デジタルカメラ101は、相手装置がBLEにおいてペリフェラル及びセントラルとしての同時動作が可能か否かを判定する。デジタルカメラ101は、相手装置がペリフェラル及びセントラルとしての同時動作が可能である場合(S802でYES)は処理をS803へ進め、役割パターンDを判定結果として処理を終了する。一方、デジタルカメラ101は、相手装置がペリフェラル及びセントラルとしての同時動作が可能でない場合(S802でNO)は、処理をS804へ進め、役割パターンCを判定結果として処理を終了する。   In step S <b> 802, the digital camera 101 determines whether or not the partner apparatus can simultaneously operate as a peripheral and central in BLE. If the counterpart device can simultaneously operate as a peripheral and central (YES in S802), the digital camera 101 advances the process to S803, and ends the process using the role pattern D as a determination result. On the other hand, if the counterpart apparatus cannot simultaneously operate as a peripheral and central (NO in S802), the digital camera 101 advances the process to S804 and ends the process with the role pattern C as a determination result.

S805では、デジタルカメラ101は、自装置がBLEにおいてペリフェラル及びセントラルとしての同時動作が可能か否かを判定する。そして、デジタルカメラ101は、同時動作が可能な場合(S805でYES)は、処理をS807へ進めて、役割パターンBを判定結果として処理を終了する。一方で、デジタルカメラ101は、同時動作が可能でない場合(S805でNO)は、処理をS806へ進める。   In step S <b> 805, the digital camera 101 determines whether or not the device itself can simultaneously operate as a peripheral and central in BLE. If the digital camera 101 can operate simultaneously (YES in S805), the process proceeds to S807, and the process ends with the role pattern B as a determination result. On the other hand, if the digital camera 101 is not capable of simultaneous operation (NO in S805), the process proceeds to S806.

S806では、デジタルカメラ101は、相手装置が役割をペリフェラルに変更可能か否かを判定する。本例では、相手装置が役割をペリフェラルに変更可能か否かの判定は、デバイスのOS種別やバージョンにより行われうるが、これに限られない。例えば、相手装置にBLEの通信状況を問い合わせて、その内容に応じて、相手装置が役割をペリフェラルに変更可能であるか否かの判定が行われてもよい。そして、デジタルカメラ101は、変更可能であると判定した場合(S806でYES)は、処理をS808へ進めて、役割パターンAを判定結果として処理を終了する。一方、デジタルカメラ101は、変更可能でないと判定した場合(S806でNO)は処理をS809へ進めて、エラーと判定して処理を終了する。   In step S806, the digital camera 101 determines whether the partner apparatus can change the role to peripheral. In this example, the determination as to whether or not the partner apparatus can change the role to peripheral can be made according to the OS type and version of the device, but is not limited thereto. For example, the communication status of the BLE may be inquired of the partner device, and it may be determined whether or not the partner device can change the role to the peripheral according to the contents. If the digital camera 101 determines that the change is possible (YES in S806), the process proceeds to S808, and the process ends with the role pattern A as a determination result. On the other hand, if the digital camera 101 determines that the change is not possible (NO in S806), it advances the process to S809, determines that there is an error, and ends the process.

なお、本例では、デジタルカメラ101は、相手装置が役割をペリフェラルに変更可能でない場合にエラーと判定するようにしたが、エラーとしなくてもよい。例えば、デジタルカメラ101は、自装置の役割をセントラルとペリフェラルとの間で間欠的に切り替えてもよい。これにより、デジタルカメラ101は、自装置がペリフェラル及びセントラルとして同時動作ができず、かつ、相手装置がペリフェラルに変更できない場合であっても、BLEを用いて無線LANの通信制御を行うことができる。   In this example, the digital camera 101 determines that an error occurs when the partner apparatus cannot change the role to peripheral. However, the digital camera 101 does not have to make an error. For example, the digital camera 101 may intermittently switch the role of its own device between the central and the peripheral. As a result, the digital camera 101 can perform wireless LAN communication control using BLE even when the own device cannot operate as a peripheral and a central at the same time and the counterpart device cannot be changed to a peripheral. .

デジタルカメラ101は、S506においてBLEにおける役割再決定処理を実行した結果、その処理結果がエラーとなったかを判定する(S507)。デジタルカメラ101は、エラーとなったと判定した場合(S507でYES)は、エラーである旨を表示して(S508)、デバイス連携処理を終了する。一方、デジタルカメラ101は、エラーとなっていないと判定した場合(S507でNO)は、続いて、BLE役割変更処理を行う(S509)。   The digital camera 101 determines whether or not an error has occurred as a result of the role redetermination process in BLE in S506 (S507). If the digital camera 101 determines that an error has occurred (YES in step S507), the digital camera 101 displays an error message (S508) and ends the device cooperation process. On the other hand, if the digital camera 101 determines that an error has not occurred (NO in S507), the digital camera 101 subsequently performs a BLE role change process (S509).

ここで、BLE役割変更処理に関して、図9を用いて説明する。BLE役割変更処理が開始されると、デジタルカメラ101は、まず、役割パターンがAまたはCであるか否かを判定する(S901)。そして、デジタルカメラ101は、役割パターンAまたはCである場合(S901でYES)には処理をS902へ進め、それ以外の場合(S901でNO)は処理をS912へ進める。   Here, the BLE role changing process will be described with reference to FIG. When the BLE role change process is started, the digital camera 101 first determines whether the role pattern is A or C (S901). If the digital camera 101 is role pattern A or C (YES in S901), the process proceeds to S902. Otherwise (NO in S901), the process proceeds to S912.

S902では、デジタルカメラ101は、役割パターンがAであるかを判定する。デジタルカメラ101は、役割パターンがAである場合(S902でYES)は、役割変更報知メッセージを送信して(S903)、役割パターンがCである場合はメッセージを送信せずに、処理をS904へ進める。本例では、役割変更報知メッセージは、Advertise Indicationパケットのペイロードデータに役割変更を表すフラグ等を含む報知信号でありうる。これにより、BLEのリンクを確立していない相手装置に対してもユーザ操作を伴わずに役割変更を通知することができる。S904では、デジタルカメラ101は、役割変更通知を送信する。本例では、役割変更通知は、確立済みのBLEリンク上で、任意のパケットのペイロードデータに役割変更を表すフラグ等を含めて送信することによって行われうるが、これに限られない。例えば、役割変更通知は、任意のパケットのペイロードデータに役割パターンや変更のタイミング等を含めて送信することによって行われてもよい。以上により、デジタルカメラ101は、自身のBLEにおける役割がセントラルになる場合に、その旨を周囲に存在する他の通信装置に報知し、さらに、相手装置にペリフェラルとなるように通知することができる。また、デジタルカメラ101は、自身のBLEにおける役割がペリフェラルとなる場合に、相手装置にセントラルとなるように通知することができる。これにより、デジタルカメラ101と、相手装置(例えばスマートデバイス102又はスマートデバイス103)との、BLEにおける役割を反転する(すなわち、セントラルをペリフェラルに、ペリフェラルをセントラルにする)ことができる。   In step S902, the digital camera 101 determines whether the role pattern is A. If the role pattern is A (YES in S902), the digital camera 101 transmits a role change notification message (S903). If the role pattern is C, the digital camera 101 proceeds to S904 without transmitting the message. Proceed. In this example, the role change notification message may be a notification signal including a flag indicating role change in the payload data of the Advertise Indication packet. Accordingly, it is possible to notify the role change to the partner apparatus that has not established the BLE link without any user operation. In step S904, the digital camera 101 transmits a role change notification. In this example, the role change notification can be performed by transmitting a payload data of an arbitrary packet including a flag indicating the role change on the established BLE link, but is not limited thereto. For example, the role change notification may be performed by transmitting the payload data of an arbitrary packet including the role pattern, change timing, and the like. As described above, when the role of the digital camera 101 becomes central, the digital camera 101 can notify the other communication devices in the vicinity of the fact and further notify the counterpart device to become a peripheral. . Also, when the role of the digital camera 101 in the BLE becomes a peripheral, the digital camera 101 can notify the partner apparatus to become the central. Thereby, the role in the BLE between the digital camera 101 and the counterpart device (for example, the smart device 102 or the smart device 103) can be reversed (that is, the central is a peripheral and the peripheral is a central).

そして、デジタルカメラ101は、リンク切断処理を行い(S905)、その後、再度、役割パターンがAであるか否かによって(S906)、処理が分岐する。デジタルカメラ101は、役割パターンがAである場合(S906でYES)には報知処理停止を行った(S907)後に、役割パターンAでない場合(S906でNO)は探索処理停止を行った(S908)後に、処理をS909へ進める。S909では、デジタルカメラ101は、BLE接続処理を行う。その後、デジタルカメラ101は、役割パターンがAである場合(S910でYES)はそのまま処理を終了し、役割パターンがCである場合(S910でNO)は役割変更報知メッセージを送信して(S911)、処理を終了する。   The digital camera 101 performs link disconnection processing (S905), and then the processing branches depending on whether the role pattern is A (S906) again. The digital camera 101 stops the notification process when the role pattern is A (YES in S906) (S907), and then stops the search process when it is not the role pattern A (NO in S906) (S908). After that, the process proceeds to S909. In step S909, the digital camera 101 performs BLE connection processing. Thereafter, if the role pattern is A (YES in S910), the digital camera 101 ends the process as it is, and if the role pattern is C (NO in S910), the digital camera 101 transmits a role change notification message (S911). The process is terminated.

一方、S912では、デジタルカメラ101は、役割パターンがBであるか否かを判定する。そして、デジタルカメラ101は、役割パターンがBである場合(S912でYES)は、役割変更報知メッセージを送信し(S913)、その後、探索処理を開始(S914)した後に、処理を終了する。一方、デジタルカメラ101は、役割パターンがDの場合(S912でNO)は、役割変更通知を送信し(S915)、処理を終了する。以上により、デジタルカメラ101は、自身のBLEにおける役割にセントラルが追加される場合に、その旨を周囲に存在する他の通信装置に報知することができる。また、デジタルカメラ101は、相手装置のBLEにおける役割にセントラルを追加する場合に、相手装置に役割を追加するように通知することができる。   On the other hand, in S912, the digital camera 101 determines whether or not the role pattern is B. If the role pattern is B (YES in S912), the digital camera 101 transmits a role change notification message (S913), and then starts a search process (S914), and then ends the process. On the other hand, if the role pattern is D (NO in S912), the digital camera 101 transmits a role change notification (S915) and ends the process. As described above, when the central is added to the role in its own BLE, the digital camera 101 can notify other communication devices in the vicinity of that fact. Also, when adding a central to the role of the counterpart device in BLE, the digital camera 101 can notify the counterpart device to add a role.

デジタルカメラ101は、S509のBLE役割変更処理を行った後に、無線LAN接続処理(S510)と、サービス接続処理(S511)とを行う。その後、デジタルカメラ101は、デバイス連携処理を終了するか否かを判定する(S512)。ここで、デジタルカメラ101は、例えば、ユーザのボタン操作を契機にデバイス連携処理を終了しうるが、スマートデバイスのサービス消滅通知等を契機にデバイス連携処理を終了してもよい。また、これらに限定されずに、他の契機によってデバイス連携処理の終了が決定されてもよい。   The digital camera 101 performs the wireless LAN connection process (S510) and the service connection process (S511) after performing the BLE role change process of S509. Thereafter, the digital camera 101 determines whether or not to end the device cooperation process (S512). Here, for example, the digital camera 101 can end the device cooperation processing in response to a user button operation, but may end the device cooperation processing in response to a smart device service disappearance notification or the like. Further, the present invention is not limited to these, and the end of the device cooperation process may be determined by another opportunity.

デジタルカメラ101は、デバイス連携処理を終了しない場合(S512でNO)は、サービス実行処理に進み(S513)、デバイス連携処理を終了する場合(S512でYES)は、サービス切断処理を実行する(S514)。ここで、S513のサービス実行処理について図10を用いて説明する。   If the digital camera 101 does not end the device cooperation process (NO in S512), the digital camera 101 proceeds to the service execution process (S513). If the device cooperation process is ended (YES in S512), the digital camera 101 executes the service disconnection process (S514). ). Here, the service execution process of S513 will be described with reference to FIG.

デジタルカメラ101は、サービス実行処理を開始すると、まず、無線LANを一時停止するか否かを判定する(S1001)。デジタルカメラ101は、例えば、スマートデバイスからの遠隔操作モードへの移行や撮像モードへの移行等のユーザ操作を契機に、無線LANを一時停止すると判定し得るが、これに限られない。例えば、デジタルカメラ101は、一定時間通信が発生しない場合に、無線LANを一時停止すると判定してもよい。これにより、デジタルカメラ101は、サービス実行に必要な期間にのみ無線LANを動作させることが可能となり、より消費電力を低減することができる。   When starting the service execution process, the digital camera 101 first determines whether to suspend the wireless LAN (S1001). For example, the digital camera 101 can determine to suspend the wireless LAN in response to a user operation such as shifting to a remote operation mode from a smart device or shifting to an imaging mode, but is not limited thereto. For example, the digital camera 101 may determine to suspend the wireless LAN when communication does not occur for a certain period of time. As a result, the digital camera 101 can operate the wireless LAN only during a period necessary for service execution, and can further reduce power consumption.

デジタルカメラ101は、無線LANを一時停止すると判定した場合(S1001でYES)は、無線LAN停止通知を行う(S1002)。ここで、無線LAN停止通知は、確立済みのBLEリンク上で任意のパケットのペイロードデータに、無線LAN停止を表すフラグ等を含めて送信することによって行われうる。ただし、これに限られず、デジタルカメラ101は、Advertiseパケットなどの他のパケット/信号を利用してもよいし、さらに他の情報を含めて無線LAN停止通知を送信してもよい。ここで、他の情報は、例えば、無線LANを一時停止する理由、予定期間、又はSSID(Service Set Identifier)などの無線LANのパラメータ等でありうる。   If the digital camera 101 determines to suspend the wireless LAN (YES in S1001), it performs a wireless LAN stop notification (S1002). Here, the wireless LAN stop notification can be performed by transmitting a payload data of an arbitrary packet including a flag indicating the wireless LAN stop on the established BLE link. However, the present invention is not limited to this, and the digital camera 101 may use another packet / signal such as an Advertise packet, or may transmit a wireless LAN stop notification including other information. Here, the other information may be, for example, a wireless LAN parameter such as a reason for temporarily stopping the wireless LAN, a scheduled period, or an SSID (Service Set Identifier).

デジタルカメラ101は、無線LAN停止通知の完了後、無線LAN切断処理を行う(S1003)。無線LAN切断処理は、無線LANによるネットワークからの離脱やそのネットワークの破棄を含みうるが、これらに限られない。その後、デジタルカメラ101は、無線LANによる通信を復帰させるまで待機する(S1004)。ここで、デジタルカメラ101は、例えば転送データの選択や再生モードへの移行等のユーザ操作を契機に無線LANによる通信を復帰させると判定しうるが、これに限られない。デジタルカメラ101は、例えば、装置内部で比較的データサイズが大きい情報の更新が必要である場合等に、無線LANによる通信を一時的に復帰させるようにしてもよい。   After completing the wireless LAN stop notification, the digital camera 101 performs a wireless LAN disconnection process (S1003). The wireless LAN disconnection process can include, but is not limited to, leaving from the network by the wireless LAN and discarding the network. Thereafter, the digital camera 101 stands by until communication via the wireless LAN is restored (S1004). Here, the digital camera 101 can determine that the communication by the wireless LAN is to be restored when triggered by a user operation such as selection of transfer data or transition to the reproduction mode, but is not limited thereto. For example, when the digital camera 101 needs to update information having a relatively large data size inside the apparatus, the digital camera 101 may temporarily return communication using the wireless LAN.

デジタルカメラ101は、無線LANによる通信を復帰させることを決定すると(S1004でYES)、相手装置に対して、無線LAN復帰通知を行う(S1005)。ここで、無線LAN復帰通知は、確立済みのBLEリンク上で任意のパケットのペイロードデータに無線LAN復帰を表すフラグ等を含めて送信することによって、通知されうるが、これに限られない。例えば、デジタルカメラ101は、Advertiseパケットを利用してもよいし、無線LAN復帰通知にさらに他の情報を含めてもよい。ここで、他の情報は、例えば復帰予定の無線LANのパラメータや復帰の理由等を含みうる。そして、デジタルカメラ101は、無線LAN接続処理を行い(S1006)、サービスを実行する(S1011)。   When the digital camera 101 decides to restore the wireless LAN communication (YES in S1004), the digital camera 101 sends a wireless LAN restoration notification to the partner apparatus (S1005). Here, the wireless LAN return notification can be notified by transmitting a payload data of an arbitrary packet including a flag indicating wireless LAN return on an established BLE link, but is not limited thereto. For example, the digital camera 101 may use an Advertise packet, or may include other information in the wireless LAN return notification. Here, the other information may include, for example, parameters of the wireless LAN scheduled to be restored and the reason for the restoration. Then, the digital camera 101 performs wireless LAN connection processing (S1006) and executes a service (S1011).

一方、デジタルカメラ101は、S1001において無線LANを一時停止しないと判定した場合(S1001でNO)は、続いて、無線LAN停止通知を相手装置から受信したかを判定する(S1007)。デジタルカメラ101は、相手装置から無線LAN停止通知を受信した場合(S1007でYES)は、無線LAN切断処理を行い(S1008)、その後、相手装置から無線LAN復帰通知を受信するのを待ち受ける(S1009)。そして、デジタルカメラ101は、相手装置から無線LAN復帰通知を受信すると(S1009でYES)、無線LAN接続処理を行い(S1010)、サービスを実行する(S1011)。一方で、デジタルカメラ101は、S1007において相手装置から無線LAN停止通知を受信しなかったと判定した場合(S1007でNO)は、接続に関して特段の変更をせずに、サービスを実行する(S1011)。   On the other hand, if the digital camera 101 determines in S1001 that the wireless LAN is not temporarily stopped (NO in S1001), it subsequently determines whether a wireless LAN stop notification is received from the partner device (S1007). When the digital camera 101 receives a wireless LAN stop notification from the partner device (YES in S1007), the digital camera 101 performs a wireless LAN disconnection process (S1008), and then waits to receive a wireless LAN return notification from the partner device (S1009). ). When the digital camera 101 receives a wireless LAN return notification from the partner apparatus (YES in S1009), the digital camera 101 performs a wireless LAN connection process (S1010) and executes a service (S1011). On the other hand, if the digital camera 101 determines in S1007 that the wireless LAN stop notification has not been received from the partner device (NO in S1007), the digital camera 101 executes the service without any particular change regarding the connection (S1011).

そして、デジタルカメラ101は、S1011においてサービスを実行したことに応じて、サービス実行処理を終了する。なお、ここでのサービスの実行は、例えば、サムネイル画像一覧表示、本画像データの転送、又はGPS情報の付加等を含みうるが、これらに限られない。   Then, the digital camera 101 ends the service execution process in response to the execution of the service in S1011. The execution of the service here may include, for example, thumbnail image list display, transfer of main image data, or addition of GPS information, but is not limited thereto.

なお、上述の例では、無線LAN停止通知と無線LAN復帰通知とを、同一の装置が行うようにしたが、それぞれを異なる装置が行ってもよい。例えば、無線LAN停止通知を受信したデバイスが、無線LAN停止通知を送信したデバイスに対して、任意のタイミングで無線LAN復帰通知を送信してもよい。これにより、無線LAN停止通知を受けた装置であっても、無線LANを利用して情報を更新する必要がある場合等に、即座に無線LANを復帰させることができるようになる。   In the above example, the wireless LAN stop notification and the wireless LAN return notification are performed by the same device, but each may be performed by a different device. For example, the device that has received the wireless LAN stop notification may transmit the wireless LAN return notification to the device that has transmitted the wireless LAN stop notification at an arbitrary timing. As a result, even a device that has received a wireless LAN stop notification can immediately return the wireless LAN when information needs to be updated using the wireless LAN.

S513において、サービス実行処理が完了すると、デジタルカメラ101は、再度、デバイス連携処理を終了するかを判定し(S512)、デバイス連携処理を終了する場合(S512でYES)に、サービス切断処理を実行する(S514)。ここでサービス切断処理は、サービス接続処理で確立したHTTPリンクの切断及びサービス発見プロトコルによるサービス消滅の通知を行うことでありうるが、これに限られない。   In S513, when the service execution process is completed, the digital camera 101 determines again whether to end the device cooperation process (S512), and executes the service disconnection process when the device cooperation process is ended (YES in S512). (S514). Here, the service disconnection process may be to notify the disconnection of the HTTP link established by the service connection process and the service disappearance by the service discovery protocol, but is not limited thereto.

デジタルカメラ101は、サービス切断処理を終了すると、無線LAN切断処理を行い(S515)、BLEの役割を元に戻す(復帰する)か否かを判定する(S516)。この判定は、例えば、BLE役割変更処理を実行したか否かによって行われうる。デジタルカメラ101は、BLEの役割の復帰が不要であると判定すると(S516でNO)、そのまま処理を終了する。一方、デジタルカメラ101は、BLEの役割の復帰を行うと判定すると(S516でYES)、BLE役割復帰処理を実行する(S517)。   When the service disconnection process is completed, the digital camera 101 performs a wireless LAN disconnection process (S515), and determines whether to restore (return) the role of BLE (S516). This determination can be made based on, for example, whether or not a BLE role change process has been executed. If the digital camera 101 determines that it is not necessary to return the role of BLE (NO in S516), the digital camera 101 ends the process. On the other hand, when the digital camera 101 determines that the BLE role is to be restored (YES in S516), the digital camera 101 executes a BLE role restoration process (S517).

ここで、BLE役割復帰処理について図11を用いて説明する。デジタルカメラ101は、BLE役割復帰処理を開始すると、まず、役割パターンがAまたはCであったかを判定する(S1101)。そして、デジタルカメラ101は、BLE役割パターンがAまたはCであった場合(S1101でYES)には、役割変更通知を行い(S1102)、リンク切断処理を行う(S1103)。その後、デジタルカメラ101は、BLE接続処理を行い(S1104)、役割パターンがCであった場合(S1105でYES)には、さらに役割変更報知メッセージを送信して(S1106)、BLE役割復帰処理を終了する。なお、デジタルカメラ101は、BLE役割パターンがAであった場合(S1105でNO)には、役割変更報知メッセージを送信せずに処理を終了する。   Here, the BLE role return processing will be described with reference to FIG. When the digital camera 101 starts the BLE role return process, it first determines whether the role pattern is A or C (S1101). If the BLE role pattern is A or C (YES in S1101), the digital camera 101 issues a role change notification (S1102) and performs a link disconnection process (S1103). Thereafter, the digital camera 101 performs BLE connection processing (S1104). If the role pattern is C (YES in S1105), it further transmits a role change notification message (S1106), and performs BLE role return processing. finish. If the BLE role pattern is A (NO in S1105), the digital camera 101 ends the process without transmitting the role change notification message.

一方、デジタルカメラ101は、役割パターンがBであった場合(S1101でNO、S1107でYES)には、探索処理を停止し(S1108)、処理を終了する。また、デジタルカメラ101は、役割パターンがDであった場合(S1101でNO、S1107でNO)には、役割変更通知を送信して(S1109)、処理を終了する。このようにしてBLEの役割の復帰をすることにより、役割の変更を行ったことにより切断された、他の相手装置とのBLEリンクを、ユーザの操作を伴わずに、自動で再確立することができる。   On the other hand, if the role pattern is B (NO in S1101 and YES in S1107), the digital camera 101 stops the search process (S1108) and ends the process. If the role pattern is D (NO in S1101 and NO in S1107), the digital camera 101 transmits a role change notification (S1109) and ends the process. By resuming the role of BLE in this way, the BLE link with another partner device disconnected by changing the role is automatically re-established without any user operation. Can do.

(システムの処理の流れの例)
続いて、システム全体の処理の流れについて、図12〜図15を用いて説明する。図12はデバイス連携開始から接続処理まで、図13はサービス実行からデバイス連携終了まで、図14はマルチデバイス連携開始から接続処理まで、図15はサービス実行からBLE役割復帰まで、の処理の流れの例をそれぞれ示している。
(Example of system processing flow)
Next, the processing flow of the entire system will be described with reference to FIGS. 12 shows the process flow from the start of device cooperation to the connection process, FIG. 13 shows the process from service execution to the end of device cooperation, FIG. 14 shows the start from multi-device cooperation to the connection process, and FIG. Each example is shown.

まず、デバイス連携開始から接続処理までの処理の流れについて、図12を用いて説明する。ここで、デジタルカメラ101とスマートデバイス102は、BLEによる接続を確立していないものとし(S502でNO)、その後の接続処理(S503)を実行するものとする。   First, the flow of processing from the start of device cooperation to connection processing will be described with reference to FIG. Here, it is assumed that the digital camera 101 and the smart device 102 have not established a connection by BLE (NO in S502), and execute subsequent connection processing (S503).

まず、ユーザは、デジタルカメラ101及びスマートデバイス102においてデバイス連携を開始するため、例えば互いのNFC通信部を近接させる(M1201及びM1202)。なお、ここでは、デバイス連携を開始するための何らかの契機が与えられれば足り、NFC通信部の近接は必ずしも必要ではない。   First, in order to start device cooperation in the digital camera 101 and the smart device 102, for example, the users bring the NFC communication units close to each other (M1201 and M1202). Here, it is sufficient that some kind of trigger is given to start device cooperation, and the proximity of the NFC communication unit is not necessarily required.

デジタルカメラ101は、デバイス連携を開始するための契機を検出すると、無線LANのAP機能を起動する(M1203)。一方、スマートデバイス102は、デバイス連携を開始するための契機を検出すると、アプリケーションを起動する(M1204)。なお、スマートデバイス102は、無線LANのクライアントとしての機能を常にオンとしていてもよいし、アプリケーションの起動に伴って無線LANの機能を起動してもよい。また、その際に、APとして動作するかクライアントとして動作するかが決定されてもよいが、本例では、スマートデバイス102は、いずれの場合であっても無線LANにおいてクライアントとして動作するものとする。   When the digital camera 101 detects an opportunity to start device cooperation, the digital camera 101 activates the AP function of the wireless LAN (M1203). On the other hand, when the smart device 102 detects an opportunity to start device cooperation, the smart device 102 starts an application (M1204). The smart device 102 may always have the wireless LAN client function turned on, or may activate the wireless LAN function when the application is activated. At this time, it may be determined whether to operate as an AP or a client. In this example, the smart device 102 operates as a client in a wireless LAN in any case. .

デジタルカメラ101及びスマートデバイス102は、無線LAN機能の起動後、無線LANによる接続処理を行い(M1205)、サービス接続処理を行う(M1206)。デジタルカメラ101は、サービス接続処理を完了すると、BLE情報取得要求を、スマートデバイス102へ送信する(M1207)。スマートデバイス102は、デジタルカメラ101からBLE情報取得要求を受信すると、BLE情報取得応答をデジタルカメラ101へと送信する(M1208)。デジタルカメラ101は、BLE情報取得応答を受信すると、役割決定処理を行う(M1209)。本例では、デジタルカメラ101がペリフェラルに、スマートデバイス102がセントラルに、それぞれ決定したものとする。   After the wireless LAN function is activated, the digital camera 101 and the smart device 102 perform connection processing by wireless LAN (M1205), and perform service connection processing (M1206). When the digital camera 101 completes the service connection process, the digital camera 101 transmits a BLE information acquisition request to the smart device 102 (M1207). Upon receiving the BLE information acquisition request from the digital camera 101, the smart device 102 transmits a BLE information acquisition response to the digital camera 101 (M1208). Upon receiving the BLE information acquisition response, the digital camera 101 performs a role determination process (M1209). In this example, it is assumed that the digital camera 101 is determined as the peripheral and the smart device 102 is determined as the central.

デジタルカメラ101は、役割決定処理が完了すると、役割決定通知を送信し(M1210)、報知処理を開始する(M1211)。スマートデバイス102は、役割決定通知を受信すると、探索処理を開始する(M1212)。デジタルカメラ101は、報知処理を開始したことに応じて報知メッセージを送信する(M1213)。スマートデバイス102は、報知メッセージを受信してデジタルカメラ101を発見すると、デジタルカメラ101へ接続要求を送信する(M1214)。その後、デジタルカメラ101及びスマートデバイス102は、リンク確立処理を行う(M1215)。以上により、デジタルカメラ101及びスマートデバイス102はそれぞれ、ペリフェラル及びセントラルとしてBLE接続を完了し、S503の接続処理も完了する。   When the role determination process is completed, the digital camera 101 transmits a role determination notification (M1210) and starts a notification process (M1211). Upon receiving the role determination notification, the smart device 102 starts a search process (M1212). In response to the start of the notification process, the digital camera 101 transmits a notification message (M1213). When the smart device 102 receives the notification message and finds the digital camera 101, the smart device 102 transmits a connection request to the digital camera 101 (M1214). Thereafter, the digital camera 101 and the smart device 102 perform link establishment processing (M1215). As described above, the digital camera 101 and the smart device 102 complete the BLE connection as the peripheral and the central, respectively, and the connection process of S503 is also completed.

次に、サービス実行からデバイス連携終了までの処理例について図13を用いて説明する。なお、以下では、サービスとして、スマートデバイスでのサムネイル画像一覧の表示及び本画像データの取得が実行されるものとする。   Next, a processing example from service execution to device cooperation end will be described with reference to FIG. In the following, it is assumed that the thumbnail image list display and the main image data acquisition on the smart device are executed as services.

ユーザは、スマートデバイス102においてサムネイル画像一覧を表示するため、メニュー選択を行う(M1301)。スマートデバイス102は、サムネイル画像一覧表示モードへ移行すると、デジタルカメラ101にサムネイル画像一覧取得要求を送信する(M1302)。デジタルカメラ101は、サムネイル画像一覧取得要求を受信すると、スマートデバイス102へサムネイル画像一覧取得応答を送信する(M1303)。スマートデバイス102は、サムネイル画像一覧取得応答を受信すると、無線LAN停止通知を送信する(M1304)。そして、デジタルカメラ101及びスマートデバイス102は、無線LANの切断処理を行う(M1305)。そして、デジタルカメラ101は、無線LAN切断処理を完了すると、無線LANのAP機能を停止する(M1306)。   The user performs menu selection in order to display the thumbnail image list on the smart device 102 (M1301). When the smart device 102 shifts to the thumbnail image list display mode, the smart device 102 transmits a thumbnail image list acquisition request to the digital camera 101 (M1302). Upon receiving the thumbnail image list acquisition request, the digital camera 101 transmits a thumbnail image list acquisition response to the smart device 102 (M1303). Upon receiving the thumbnail image list acquisition response, the smart device 102 transmits a wireless LAN stop notification (M1304). Then, the digital camera 101 and the smart device 102 perform a wireless LAN disconnection process (M1305). After completing the wireless LAN disconnection process, the digital camera 101 stops the wireless LAN AP function (M1306).

ユーザは、スマートデバイス102において、本画像を取得するため、サムネイル画像一覧から所望の画像データを選択する。スマートデバイス102は、ユーザによる取得データの選択に応じて、無線LAN復帰通知をデジタルカメラ101へ送信する(M1308)。デジタルカメラ101は、無線LAN復帰通知を受信すると、無線LANのAP機能を起動する(M1309)。そして、デジタルカメラ101及びスマートデバイス102は、無線LAN接続処理を行う(M1310)。なお、ここでの無線LAN接続処理は、例えば、図5のS502でYESと判断され、S504でNOと判断されることによって行われる。   In the smart device 102, the user selects desired image data from the thumbnail image list in order to acquire the main image. The smart device 102 transmits a wireless LAN return notification to the digital camera 101 in response to the selection of acquired data by the user (M1308). Upon receiving the wireless LAN return notification, the digital camera 101 activates the wireless LAN AP function (M1309). Then, the digital camera 101 and the smart device 102 perform wireless LAN connection processing (M1310). The wireless LAN connection process here is performed, for example, when YES is determined in S502 of FIG. 5 and NO is determined in S504.

スマートデバイス102は、無線LAN接続処理が完了すると、デジタルカメラ101に本画像データ取得要求を送信する(M1311)。デジタルカメラ101は、本画像データ取得要求を受信すると、スマートデバイス102に本画像データ取得応答を送信する(M1312)。   When the wireless LAN connection process is completed, the smart device 102 transmits a main image data acquisition request to the digital camera 101 (M1311). Upon receiving the main image data acquisition request, the digital camera 101 transmits a main image data acquisition response to the smart device 102 (M1312).

その後、ユーザが、スマートデバイス102においてデバイス連携を終了するため、アプリケーションを終了した(M1313)とする。すると、デジタルカメラ101及びスマートデバイス102は、サービス切断処理を行い(M1314)、無線LAN切断処理を行う(M1315)。デジタルカメラ101は無線LAN切断処理を完了すると、無線LANのAP機能を停止し(M1316)、デバイス連携を終了する。   Thereafter, it is assumed that the user ends the application in order to end the device cooperation in the smart device 102 (M1313). Then, the digital camera 101 and the smart device 102 perform service disconnection processing (M1314), and perform wireless LAN disconnection processing (M1315). When the digital camera 101 completes the wireless LAN disconnection process, the digital camera 101 stops the AP function of the wireless LAN (M1316) and ends the device cooperation.

ここまでは、1つのデジタルカメラ101と1つのスマートデバイス102との間でのデバイス連携について説明した。ここからは、デジタルカメラ101及びスマートデバイス102の間と、デジタルカメラ101及びスマートデバイス103の間とでデバイス連携を実行するマルチデバイス連携について説明する。まず、マルチデバイス連携の開始から接続処理までの処理の流れについて図14を用いて説明する。なお、本例では、デジタルカメラ101及びスマートデバイス102は、それぞれ、ペリフェラル及びセントラルとして既にBLEのリンクを確立しているものとする。   Up to here, the device cooperation between one digital camera 101 and one smart device 102 has been described. From here, multi-device cooperation for executing device cooperation between the digital camera 101 and the smart device 102 and between the digital camera 101 and the smart device 103 will be described. First, the flow of processing from the start of multi-device cooperation to connection processing will be described with reference to FIG. In this example, it is assumed that the digital camera 101 and the smart device 102 have already established a BLE link as a peripheral and a central, respectively.

まず、ユーザは、デジタルカメラ101及びスマートデバイス102においてマルチデバイス連携を開始するため、互いのNFC通信部を近接させるなどの契機を与える(M1401及びM1402)。スマートデバイス102は、デバイス連携開始の契機を検出すると、アプリケーションを起動する(M1403)。続いて、ユーザはデジタルカメラ101及びスマートデバイス103においてマルチデバイス連携を開始するため、互いのNFC通信部を近接させるなどの契機を与える(M1404及びM1405)。スマートデバイス103は、デバイス連携開始の契機を検出すると、アプリケーションを起動し(M1406)、報知処理を開始する(M1407)。   First, in order to start multi-device cooperation in the digital camera 101 and the smart device 102, the user gives an opportunity to bring the NFC communication units close to each other (M1401 and M1402). When the smart device 102 detects the trigger for starting device cooperation, the smart device 102 activates the application (M1403). Subsequently, in order to start multi-device cooperation in the digital camera 101 and the smart device 103, the user gives an opportunity to bring the NFC communication units close to each other (M1404 and M1405). When the smart device 103 detects an opportunity to start device cooperation, the smart device 103 starts an application (M1406) and starts notification processing (M1407).

一方、デジタルカメラ101は、デバイス連携開始の契機を検出すると、役割再決定処理を行う(M1408)。ここで、本例では、デジタルカメラ101が、役割パターンAを選択したものとする。デジタルカメラ101は、役割再決定処理が完了すると、役割変更報知メッセージを送信し(M1409)、さらに、役割変更通知を送信する(M1410)。そして、デジタルカメラ101及びスマートデバイス102は、リンク切断処理を行う(M1411)。デジタルカメラ101は、リンク切断処理が完了すると、ペリフェラルとしての報知処理を停止し(M1412)、セントラルとしての探索処理を開始する(M1413)。一方で、スマートデバイス102は、リンク切断処理が完了すると、セントラルとしての探索処理を停止し(M1414)、ペリフェラルとしての報知処理を開始する(M1415)。   On the other hand, when the digital camera 101 detects an opportunity to start device cooperation, the digital camera 101 performs a role redetermination process (M1408). Here, in this example, it is assumed that the digital camera 101 has selected the role pattern A. When the role redetermination process is completed, the digital camera 101 transmits a role change notification message (M1409), and further transmits a role change notification (M1410). Then, the digital camera 101 and the smart device 102 perform link disconnection processing (M1411). When the link disconnection process is completed, the digital camera 101 stops the notification process as a peripheral (M1412) and starts the search process as a central (M1413). On the other hand, when the link disconnection process is completed, the smart device 102 stops the search process as the central (M1414) and starts the notification process as the peripheral (M1415).

スマートデバイス102は、報知処理を開始した後に、報知メッセージを送信する(M1416)。デジタルカメラ101は、報知メッセージを受信してスマートデバイス102を発見すると、スマートデバイス102に接続要求を送信する(M1417)。そして、デジタルカメラ101及びスマートデバイス102は、リンク確立処理を行う(M1418)。   After starting the notification process, the smart device 102 transmits a notification message (M1416). When the digital camera 101 receives the notification message and finds the smart device 102, the digital camera 101 transmits a connection request to the smart device 102 (M1417). Then, the digital camera 101 and the smart device 102 perform link establishment processing (M1418).

スマートデバイス103は、報知処理を開始した後に、報知メッセージを送信する(M1419)。デジタルカメラ101は、報知メッセージを受信してスマートデバイス103を発見すると、スマートデバイス103に接続要求を送信する(M1420)。そして、デジタルカメラ101及びスマートデバイス103は、リンク確立処理を行う(M1421)。   After starting the notification process, the smart device 103 transmits a notification message (M1419). When the digital camera 101 receives the notification message and finds the smart device 103, the digital camera 101 transmits a connection request to the smart device 103 (M1420). Then, the digital camera 101 and the smart device 103 perform link establishment processing (M1421).

以上の処理により、デジタルカメラ101はセントラルとして、スマートデバイス102及びスマートデバイス103はペリフェラルとして、BLEによる接続が確立される。デジタルカメラ101は、BLEによるリンク確立処理を完了すると、無線LANのAP機能を起動し(M1422)、スマートデバイス102及びスマートデバイス103に無線LAN開始要求を送信する(M1423及びM1424)。そして、デジタルカメラ101とスマートデバイス102との間、デジタルカメラ101とスマートデバイス103との間で無線LAN接続処理が実行され(M1425及びM1426)、サービス接続処理が実行される(M1427及びM1428)。   Through the above processing, the connection by BLE is established with the digital camera 101 as the central and the smart device 102 and the smart device 103 as the peripheral. When the digital camera 101 completes the link establishment processing by BLE, the digital camera 101 activates the wireless LAN AP function (M1422), and transmits a wireless LAN start request to the smart device 102 and the smart device 103 (M1423 and M1424). Then, wireless LAN connection processing is executed between the digital camera 101 and the smart device 102, and between the digital camera 101 and the smart device 103 (M1425 and M1426), and service connection processing is executed (M1427 and M1428).

次に、マルチデバイス連携におけるサービス実行から役割復帰処理までの処理の流れについて図15を用いて説明する。ここで、本例では、サービスとして、デジタルカメラからスマートデバイスへ撮像画像データの転送が行われるものとする。   Next, the flow of processing from service execution to role return processing in multi-device cooperation will be described with reference to FIG. Here, in this example, it is assumed that captured image data is transferred from the digital camera to the smart device as a service.

まず、デジタルカメラ101は、一定時間、撮像操作がないと判定すると、スマートデバイス102及びスマートデバイス103に無線LAN停止通知を送信する(M1501及びM1502)。そして、デジタルカメラ101とスマートデバイス102との間で、また、デジタルカメラ101とスマートデバイス103との間で、無線LAN切断処理が実行される(M1503及びM1504)。デジタルカメラ101は、無線LAN切断処理を完了すると、無線LANのAP機能を停止する(M1505)。   First, when the digital camera 101 determines that there is no imaging operation for a certain period of time, the digital camera 101 transmits a wireless LAN stop notification to the smart device 102 and the smart device 103 (M1501 and M1502). Then, wireless LAN disconnection processing is executed between the digital camera 101 and the smart device 102 and between the digital camera 101 and the smart device 103 (M1503 and M1504). Upon completion of the wireless LAN disconnection process, the digital camera 101 stops the wireless LAN AP function (M1505).

その後、デジタルカメラ101は、ユーザが撮像操作を行うと(M1506)、無線LANのAP機能を起動し(M1507)、スマートデバイス102及びスマートデバイス103に、無線LAN復帰通知を送信する(M1508及びM1509)。そして、デジタルカメラ101とスマートデバイス102との間で、また、デジタルカメラ101とスマートデバイス103との間で、無線LAN接続処理が実行される(M1510及びM1511)。デジタルカメラ101は、無線LAN接続処理を完了すると、スマートデバイス102及びスマートデバイス103に撮像画像データを転送する(M1512及びM1513)。   Thereafter, when the user performs an imaging operation (M1506), the digital camera 101 activates the wireless LAN AP function (M1507), and transmits a wireless LAN return notification to the smart device 102 and the smart device 103 (M1508 and M1509). ). Then, wireless LAN connection processing is executed between the digital camera 101 and the smart device 102 and between the digital camera 101 and the smart device 103 (M1510 and M1511). When the digital camera 101 completes the wireless LAN connection process, the captured image data is transferred to the smart device 102 and the smart device 103 (M1512 and M1513).

その後、ユーザは、デジタルカメラ101においてマルチデバイス連携を終了するため、ボタン操作を行ったものとする(M1514)。すると、デジタルカメラ101とスマートデバイス102との間、及び、デジタルカメラ101とスマートデバイス103との間で、サービス切断処理(M1515及びM1516)と、無線LAN切断処理と(M1517及びM1518)が行われる。デジタルカメラ101は、その後、無線LANのAP機能を停止し(M1519)、役割復帰処理を行う。そして、デジタルカメラ101は、スマートデバイス102及びスマートデバイス103に役割変更通知を送信し(M1520及びM1521)、リンク切断処理を行う(M1522及びM1523)。ここでは、役割パターンAが選択されていたため、デジタルカメラ101は、リンク切断処理を完了すると、探索処理を停止し(M1524)、報知処理を開始する(M1525)。   Thereafter, it is assumed that the user performs a button operation to end multi-device cooperation in the digital camera 101 (M1514). Then, service disconnection processing (M1515 and M1516) and wireless LAN disconnection processing (M1517 and M1518) are performed between the digital camera 101 and the smart device 102, and between the digital camera 101 and the smart device 103. . Thereafter, the digital camera 101 stops the AP function of the wireless LAN (M1519) and performs a role return process. Then, the digital camera 101 transmits a role change notification to the smart device 102 and the smart device 103 (M1520 and M1521), and performs link disconnection processing (M1522 and M1523). Here, since the role pattern A has been selected, when the digital camera 101 completes the link disconnection process, the digital camera 101 stops the search process (M1524) and starts the notification process (M1525).

スマートデバイス102は、リンク切断処理を完了すると、役割をセントラルとしてBLE接続処理を行う。すなわち、スマートデバイス102は、報知処理を停止し(M1526)、探索処理を開始する(M1527)。一方で、スマートデバイス103は、リンク切断処理を完了すると、報知処理を停止する(M1528)。ここで、デジタルカメラ101は、報知処理を開始後に、報知メッセージを送信している(M1529)。スマートデバイス102は、この報知メッセージを受信すると、デジタルカメラ101に接続要求を送信する(M1530)。これにより、デジタルカメラ101及びスマートデバイス102は、BLEによるリンクを確立することができる。以上の処理により、デジタルカメラ101及びスマートデバイス102は、それぞれ、ペリフェラル及びセントラルに復帰する。   When the smart device 102 completes the link disconnection process, the smart device 102 performs the BLE connection process with the role as the central. That is, the smart device 102 stops the notification process (M1526) and starts the search process (M1527). On the other hand, when the smart device 103 completes the link disconnection process, the smart device 103 stops the notification process (M1528). Here, after starting the notification process, the digital camera 101 transmits a notification message (M1529). Upon receiving this notification message, the smart device 102 transmits a connection request to the digital camera 101 (M1530). Thereby, the digital camera 101 and the smart device 102 can establish a link by BLE. Through the above processing, the digital camera 101 and the smart device 102 return to the peripheral and the central, respectively.

(システムの処理の流れの別の例)
上述の例では、BLE役割再決定処理において役割パターンAが選択された場合について説明した。続いて、別の例として、BLE役割再決定処理において役割パターンBが選択された場合のマルチデバイス連携に係る処理の流れについて、図16及び図17を用いて説明する。
(Another example of system processing flow)
In the above-described example, the case where the role pattern A is selected in the BLE role redetermination process has been described. Subsequently, as another example, the flow of processing related to multi-device cooperation when the role pattern B is selected in the BLE role redetermination processing will be described with reference to FIGS. 16 and 17.

まず、マルチデバイス連携開始から接続処理までの処理の流れについて図16を用いて説明する。ここで、M1601からM1608までの処理については、図14のM1401からM1408までの処理と同様であるため、説明を省略する。   First, the flow of processing from the start of multi-device cooperation to connection processing will be described with reference to FIG. Here, the processing from M1601 to M1608 is the same as the processing from M1401 to M1408 in FIG.

デジタルカメラ101は、役割再決定処理により役割パターンBを選択すると、BLEにおける役割にセントラルを追加するための処理を行う。すなわち、デジタルカメラ101は、探索処理を開始し(M1609)、役割変更報知メッセージを送信する(M1610)。なお、探索処理の開始と役割変更報知メッセージの送信の開始とは、同時又は略同時であってもよいし、図9のS913及びS914に示すように、役割変更報知メッセージの送信の開始が、探索処理の開始より早くてもよい。一方で、スマートデバイス102は、BLEにおける役割はセントラルのままであるため、特段の処理を行わない。   When the digital camera 101 selects the role pattern B by the role redetermination process, the digital camera 101 performs a process for adding a central to the role in BLE. That is, the digital camera 101 starts the search process (M1609) and transmits a role change notification message (M1610). Note that the start of the search process and the start of the transmission of the role change notification message may be simultaneous or substantially simultaneous. As shown in S913 and S914 of FIG. It may be earlier than the start of the search process. On the other hand, the smart device 102 does not perform any special processing because the role in BLE remains central.

スマートデバイス103は、報知処理を開始すると、報知メッセージを送信する(M1611)。デジタルカメラ101は、報知メッセージを受信すると、スマートデバイス103に接続要求を送信する(M1612)。そして、デジタルカメラ101はセントラルとして、スマートデバイス103はペリフェラルとして、BLEによるリンクが確立される(M1613)。   When the smart device 103 starts the notification process, the smart device 103 transmits a notification message (M1611). Upon receiving the notification message, the digital camera 101 transmits a connection request to the smart device 103 (M1612). Then, the link by BLE is established with the digital camera 101 as the central and the smart device 103 as the peripheral (M1613).

以上により、デジタルカメラ101は、ペリフェラルとして、セントラルであるスマートデバイス102と接続を確立し、同時に、セントラルとして、ペリフェラルであるスマートデバイス103と接続を確立することができる。   As described above, the digital camera 101 can establish a connection with the smart device 102 that is a central as a peripheral, and can simultaneously establish a connection with the smart device 103 that is a peripheral as a central.

これ以降の処理(M1614からM1620)については図14のM1422からM1428までの処理と同様であるため、説明を省略する。   The subsequent processing (M1614 to M1620) is the same as the processing from M1422 to M1428 in FIG.

次に、サービス実行から役割復帰までの処理の流れの例について図17を用いて説明する。ここで、M1701からM1719までの処理については、図15のM1501からM1519までの処理と同様であるため、説明を省略する。   Next, an example of the flow of processing from service execution to role return will be described with reference to FIG. Here, the processing from M1701 to M1719 is the same as the processing from M1501 to M1519 in FIG.

デジタルカメラ101が、無線LANのAP機能を停止した後、デジタルカメラ101及びスマートデバイス103は、リンク切断処理を行う(M1720)。これにより、デジタルカメラ101は、BLEにおいてペリフェラルの単体動作に戻り、リンク切断処理の完了後に探索処理を停止する(M1721)。スマートデバイス103は、リンク切断処理が完了すると、報知処理を停止する(M1722)。   After the digital camera 101 stops the wireless LAN AP function, the digital camera 101 and the smart device 103 perform link disconnection processing (M1720). As a result, the digital camera 101 returns to the single operation of the peripheral in BLE, and stops the search process after the link disconnection process is completed (M1721). When the link disconnection process is completed, the smart device 103 stops the notification process (M1722).

以上のように、BLEなどの第1の通信部と、この第1の通信部よりも高速かつ消費電力が大きい(場合によっては、さらに通信可能距離が長い)第2の通信部とを有する通信装置において、第1の通信部の役割を第2の通信部の役割に整合させる。これにより、複数の相手装置と接続する場合においても、第1の通信部を用いた第2の通信部の通信制御を実行し、デバイス連携処理に係る消費電力を低減することが可能となる。このときに、相手装置がセントラルに非対応である場合や、役割を変更することができない場合であっても、それらをユーザが意識することなく、BLEを利用した無線LANの接続制御を行うことができる。   As described above, communication including a first communication unit such as BLE and a second communication unit that is faster and consumes more power than the first communication unit (in some cases, the communicable distance is longer). In the apparatus, the role of the first communication unit is matched with the role of the second communication unit. Thereby, even when connecting to a plurality of counterpart devices, it is possible to execute the communication control of the second communication unit using the first communication unit and reduce the power consumption related to the device cooperation processing. At this time, even if the counterpart device is not compatible with Central or the role cannot be changed, the wireless LAN connection control using BLE is performed without the user being aware of them. Can do.

なお、上述の例では、デジタルカメラ又はスマートデバイスとの間の通信制御の例について説明したが、これに限られない。例えば、デジタルカメラとプリンタとの間での通信制御、プリンタとスマートデバイスとの間での通信制御、複数のデジタルカメラ間での通信制御に、上述の処理を適用することが可能である。   In the above-described example, an example of communication control with a digital camera or a smart device has been described. However, the present invention is not limited to this. For example, the processing described above can be applied to communication control between a digital camera and a printer, communication control between a printer and a smart device, and communication control between a plurality of digital cameras.

また、上述の例では、デジタルカメラ101が無線LANのAPとなる場合について説明したが、これに限られない。例えば、スマートデバイス102が、無線LANのAPとなるようにしてもよい。この場合、役割パターンは自装置と相手装置のデバイス情報や通常状況等に応じて、役割パターンCまたはDが選択される。   In the above-described example, the case where the digital camera 101 is a wireless LAN AP has been described. However, the present invention is not limited to this. For example, the smart device 102 may be a wireless LAN AP. In this case, the role pattern C or D is selected as the role pattern according to the device information of the own device and the counterpart device, the normal situation, and the like.

また、上述の例では、BLE役割復帰処理が無線LAN切断処理の後に実行される場合の例について説明したが、これは別のタイミングで実行されてもよい。例えば、デバイス連携を開始するタイミング等において、BLE役割復帰処理が開始されてもよい。これにより、同一の相手装置と再接続する際に、役割変更が行われることがなくなるため、迅速にデバイス連携を開始することができる。   In the above-described example, the example in which the BLE role return process is executed after the wireless LAN disconnection process has been described. However, this may be executed at another timing. For example, the BLE role return process may be started at the timing of starting device cooperation. As a result, when reconnecting to the same counterpart device, the role change is not performed, so that device cooperation can be started quickly.

また、上述の例では、デジタルカメラ101は、無線LAN切断処理が完了すると無線LANのAP機能を停止するようにしたが、必ずしもこれを停止する必要はない。例えば、デジタルカメラ101は、無線LANのAP機能を停止せずに、ビーコン信号の送信周期を長期間に設定してもよい。これにより、消費電力を抑制しながら、無線LAN復帰時の処理時間を短縮することができる。また、上述の例では、スマートデバイスにおいて、無線LANのクライアント機能が常に起動していることを前提として説明したが、無線LANの接続及び切断を契機に起動/停止するようにしてもよい。これにより、デジタルカメラ101に加えて、スマートデバイスの消費電力をも低減することができる。   In the above example, the digital camera 101 stops the AP function of the wireless LAN when the wireless LAN disconnection process is completed, but it is not always necessary to stop this. For example, the digital camera 101 may set the transmission period of the beacon signal for a long period without stopping the AP function of the wireless LAN. As a result, it is possible to shorten the processing time when returning to the wireless LAN while suppressing power consumption. In the above-described example, the smart device is described on the assumption that the client function of the wireless LAN is always activated. However, the smart device may be activated / stopped when the wireless LAN is connected and disconnected. Thereby, in addition to the digital camera 101, the power consumption of the smart device can also be reduced.

さらに、上述の例では、スマートデバイスはデバイス連携の開始の契機(例えば、NFCの近接)を検出したことに応じてアプリケーションを起動するようにしたが、これに限られない。例えば、アプリケーションは、あらかじめバックグランドサービスとして起動されていてもよい。また、アプリケーションを起動した後に、デバイス連携の開始の契機が与えられてもよい。   Further, in the above-described example, the smart device starts the application in response to detecting the start of device cooperation (for example, proximity of NFC), but is not limited thereto. For example, the application may be activated in advance as a background service. Moreover, after starting an application, the opportunity of a device cooperation start may be given.

また、上述の例では、デジタルカメラ101は、ユーザが撮像操作を行うと直ちに無線LANに復帰する場合について説明したが、別のタイミングで無線LANに復帰してもよい。例えば、デジタルカメラ101は、撮像されたデータが一定のサイズを超えて蓄積された場合に、無線LANに復帰するようにしてもよい。これにより、デジタルカメラ101が無線LAN復帰時に効率よくデータを転送することが可能となり、より消費電力を低減することができる。   In the above example, the case where the digital camera 101 returns to the wireless LAN immediately after the user performs an imaging operation has been described. However, the digital camera 101 may return to the wireless LAN at another timing. For example, the digital camera 101 may return to the wireless LAN when the captured data exceeds a certain size and is accumulated. As a result, the digital camera 101 can efficiently transfer data when the wireless LAN is restored, and power consumption can be further reduced.

また、上述の説明では、各通信装置が、IEEE802.11準拠の無線LAN及びBLEを通信機能として用いる場合について説明したが、これに限られない。例えば、ワイヤレスUSB、MBOA、UWB、ZigBee、他のバージョンのBluetooth(商標登録)等の他の無線媒体が用いられてもよい。また、有線LAN等の有線通信媒体が用いられてもよい。なお、MBOAは、Multi Band OFDM Allianceの略である。また、UWBには、ワイヤレスUSB、ワイヤレス1394、WINETなどが含まれる。   In the above description, a case has been described in which each communication device uses a wireless LAN and BLE conforming to IEEE 802.11 as communication functions, but the present invention is not limited to this. For example, other wireless media such as wireless USB, MBOA, UWB, ZigBee, and other versions of Bluetooth (registered trademark) may be used. Further, a wired communication medium such as a wired LAN may be used. MBOA is an abbreviation for Multi Band OFDM Alliance. UWB includes wireless USB, wireless 1394, WINET, and the like.

<<その他の実施形態>>
また、本発明は、以下の処理を実行することによっても実現される。即ち、上述した実施形態の機能を実現するソフトウェア(プログラム)を、ネットワーク又は各種記憶媒体を介してシステム或いは装置に供給し、そのシステム或いは装置のコンピュータ(またはCPUやMPU等)がプログラムを読み出して実行する処理である。
<< Other Embodiments >>
The present invention can also be realized by executing the following processing. That is, software (program) that realizes the functions of the above-described embodiments is supplied to a system or apparatus via a network or various storage media, and a computer (or CPU, MPU, or the like) of the system or apparatus reads the program. It is a process to be executed.

101:デジタルカメラ、102及び103:スマートデバイス、201:無線LAN制御部、203:BLE制御部、205:制御部、301:無線LAN制御部、305:BLE制御部、308:制御部   101: Digital camera, 102 and 103: Smart device, 201: Wireless LAN control unit, 203: BLE control unit, 205: Control unit, 301: Wireless LAN control unit, 305: BLE control unit, 308: Control unit

Claims (15)

通信装置であって、
第1の役割で他の通信装置と通信する第1の通信手段と、
第2の役割で前記他の通信装置と通信する、前記第1の通信手段と異なる第2の通信手段と、
前記第1の役割を、前記第2の役割に基づいて再決定する再決定手段と、
を有し、
前記第1の役割および前記第2の役割は、それぞれ、複数の他の装置と通信できる役割と、1つの他の装置とのみ通信できる役割との少なくともいずれかである、
ことを特徴とする通信装置。
A communication device,
First communication means for communicating with other communication devices in a first role;
Second communication means different from the first communication means for communicating with the other communication device in a second role;
Redetermining means for redetermining the first role based on the second role;
Have
Each of the first role and the second role is at least one of a role capable of communicating with a plurality of other devices and a role capable of communicating only with one other device.
A communication device.
前記再決定手段は、前記第2の役割が複数の他の装置と通信できる役割である場合に前記第1の役割が複数の他の装置と通信できる役割を含むように、前記第2の役割が1つの他の装置とのみ通信できる役割である場合に前記第1の役割が1つの他の装置とのみ通信できる役割を含むように、前記第1の役割を再決定する、
ことを特徴とする請求項1に記載の通信装置。
When the second role is a role capable of communicating with a plurality of other devices, the second role is determined so that the first role includes a role capable of communicating with a plurality of other devices. Re-determining the first role so that the first role includes a role that can only communicate with one other device when is a role that can only communicate with one other device;
The communication apparatus according to claim 1.
前記第1の通信手段が複数の他の装置と通信できる役割と1つの他の装置とのみ通信できる役割とで同時に動作することができる場合であって、前記第1の役割が1つの他の装置とのみ通信できる役割であると共に前記第2の役割が複数の他の装置と通信できる役割である場合に、前記再決定手段は、前記第1の役割に複数の他の装置と通信できる役割を追加するように、前記第1の役割を再決定する、
ことを特徴とする請求項2に記載の通信装置。
The first communication means can operate simultaneously in a role capable of communicating with a plurality of other devices and a role capable of communicating only with one other device, wherein the first role is one other A role capable of communicating with a plurality of other devices in the first role when the second role is a role capable of communicating with a plurality of other devices and the second role is a role capable of communicating with a plurality of other devices. Re-determining the first role to add
The communication device according to claim 2.
前記第1の役割の再決定に基づいて、前記第1の通信手段と通信する際の前記他の通信装置の第3の役割を変更すべき場合に、前記他の通信装置に対して前記第3の役割を変更するための通知をする通知手段をさらに有する、
ことを特徴とする請求項1から3のいずれか1項に記載の通信装置。
When the third role of the other communication device when communicating with the first communication means is to be changed based on the redetermination of the first role, A notification means for performing notification for changing the role of
The communication device according to any one of claims 1 to 3, wherein
前記第1の通信手段が複数の他の装置と通信できる役割と1つの他の装置とのみ通信できる役割とで同時に動作することができない場合であって、前記第1の役割が1つの他の装置とのみ通信できる役割であると共に前記第2の役割が複数の他の装置と通信できる役割である場合に、前記再決定手段は、前記第1の役割を複数の他の装置と通信できる役割に変更するように、前記再決定を行い、前記通知手段は、前記第3の役割を1つの他の装置とのみ通信できる役割に変更するための前記通知を行う、
ことを特徴とする請求項4に記載の通信装置。
The first communication means cannot operate simultaneously in a role capable of communicating with a plurality of other devices and a role capable of communicating only with one other device, and the first role is one other A role capable of communicating only with a device and a role capable of communicating the first role with a plurality of other devices when the second role is a role capable of communicating with a plurality of other devices. Re-determining to change to, the notification means performs the notification to change the third role to a role that can only communicate with one other device,
The communication apparatus according to claim 4.
前記第1の役割が複数の他の装置と通信できる役割であると共に前記第2の役割が1つの他の装置とのみ通信できる役割である場合であって、前記他の通信装置が、前記第1の通信手段と通信する際に、複数の他の装置と通信できる役割と1つの他の装置とのみ通信できる役割とで同時に動作することができる場合に、前記通知手段は、前記第3の役割に複数の他の装置と通信できる役割を追加するための前記通知を行う、
ことを特徴とする請求項4に記載の通信装置。
The first role is a role capable of communicating with a plurality of other devices, and the second role is a role capable of communicating with only one other device, wherein the other communication device is the first device. When communicating with a single communication means, the notification means can be configured to operate at the same time in a role capable of communicating with a plurality of other devices and a role capable of communicating with only one other device. Performing the notification to add a role capable of communicating with a plurality of other devices to the role;
The communication apparatus according to claim 4.
前記第1の役割が複数の他の装置と通信できる役割であると共に前記第2の役割が1つの他の装置とのみ通信できる役割である場合であって、前記他の通信装置が、前記第1の通信手段と通信する際に、複数の他の装置と通信できる役割と1つの他の装置とのみ通信できる役割とで同時に動作することができない場合に、前記再決定手段は、前記第1の役割を1つの他の装置とのみ通信できる役割に変更するように前記再決定を行い、前記通知手段は、前記第3の役割を複数の他の装置と通信できる役割に変更するための前記通知を行う、
ことを特徴とする請求項4に記載の通信装置。
The first role is a role capable of communicating with a plurality of other devices, and the second role is a role capable of communicating with only one other device, wherein the other communication device is the first device. When communicating with one communication unit, if the role that can communicate with a plurality of other devices and the role that can communicate with only one other device cannot be operated simultaneously, Re-decision so as to change the role of the device to a role that can only communicate with one other device, and the notification means changes the third role to a role that can communicate with a plurality of other devices. Give notifications,
The communication apparatus according to claim 4.
前記通知手段は、前記第1の通信手段を用いて、前記通知を行う、
ことを特徴とする請求項4から7のいずれか1項に記載の通信装置。
The notification means performs the notification using the first communication means.
The communication device according to claim 4, wherein the communication device is a device.
前記通信装置が複数の前記他の通信装置と通信するかを判定する判定手段をさらに有し、
前記再決定手段は、前記判定手段が、前記通信装置が複数の前記他の通信装置と通信すると判定した場合に、前記再決定を行う、
ことを特徴とする請求項1から8のいずれか1項に記載の通信装置。
A determination means for determining whether the communication device communicates with a plurality of the other communication devices;
The re-determination unit performs the re-determination when the determination unit determines that the communication device communicates with a plurality of other communication devices.
The communication apparatus according to claim 1, wherein the communication apparatus is configured as described above.
前記再決定によって前記第1の役割が複数の他の装置と通信できる役割を含むこととなった場合に、報知信号を送信する送信手段をさらに有する、
ことを特徴とする請求項1から9のいずれか1項に記載の通信装置。
When the re-determination includes the role that allows the first role to communicate with a plurality of other devices, the transmitter further includes a transmission unit that transmits a notification signal.
The communication apparatus according to any one of claims 1 to 9, wherein
前記第1の通信手段は、前記第2の通信手段よりも、消費電力が少ないか通信可能距離が短いかの少なくともいずれかである、
ことを特徴とする請求項1から10のいずれか1項に記載の通信装置。
The first communication means is at least one of less power consumption or a shorter communicable distance than the second communication means.
The communication device according to any one of claims 1 to 10, wherein:
前記第2の通信手段による前記他の通信装置との通信が終了した場合に、変更する前の前記第1の役割に戻す復帰手段をさらに有する、
ことを特徴とする請求項1から11のいずれか1項に記載の通信装置。
When communication with the other communication device by the second communication means is completed, the apparatus further comprises return means for returning to the first role before the change.
The communication device according to claim 1, wherein the communication device is a device.
前記第1の通信手段を用いて前記第2の通信手段による通信を制御する制御手段をさらに有する、
ことを特徴とする請求項1から12のいずれか1項に記載の通信装置。
Control means for controlling communication by the second communication means using the first communication means;
The communication device according to any one of claims 1 to 12, wherein
第1の役割で他の通信装置と通信する第1の通信手段と、第2の役割で前記他の通信装置と通信する、前記第1の通信手段と異なる第2の通信手段と、を有する通信装置の制御方法であって、
再決定手段が、前記第1の役割を、前記第2の役割に基づいて再決定する再決定工程を有し、
前記第1の役割および前記第2の役割は、それぞれ、複数の他の装置と通信できる役割と、1つの他の装置とのみ通信できる役割との少なくともいずれかである、
ことを特徴とする制御方法。
A first communication unit that communicates with another communication device in a first role; and a second communication unit that communicates with the other communication device in a second role and is different from the first communication unit. A communication device control method comprising:
The redetermining means includes a redetermination step of redetermining the first role based on the second role;
Each of the first role and the second role is at least one of a role capable of communicating with a plurality of other devices and a role capable of communicating only with one other device.
A control method characterized by that.
第1の役割で他の通信装置と通信する第1の通信手段と、第2の役割で前記他の通信装置と通信する、前記第1の通信手段と異なる第2の通信手段と、を有する通信装置に備えられたコンピュータに、
前記第1の役割を、前記第2の役割に基づいて再決定する再決定工程を実行させるためのプログラムであって、
前記第1の役割および前記第2の役割は、それぞれ、複数の他の装置と通信できる役割と、1つの他の装置とのみ通信できる役割との少なくともいずれかである、
ことを特徴とするプログラム。
A first communication unit that communicates with another communication device in a first role; and a second communication unit that communicates with the other communication device in a second role and is different from the first communication unit. In the computer equipped with the communication device,
A program for executing a redetermination step for redetermining the first role based on the second role,
Each of the first role and the second role is at least one of a role capable of communicating with a plurality of other devices and a role capable of communicating only with one other device.
A program characterized by that.
JP2015133916A 2015-07-02 2015-07-02 Communication device, control method, and program Pending JP2017017594A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2015133916A JP2017017594A (en) 2015-07-02 2015-07-02 Communication device, control method, and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2015133916A JP2017017594A (en) 2015-07-02 2015-07-02 Communication device, control method, and program

Publications (1)

Publication Number Publication Date
JP2017017594A true JP2017017594A (en) 2017-01-19

Family

ID=57831183

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2015133916A Pending JP2017017594A (en) 2015-07-02 2015-07-02 Communication device, control method, and program

Country Status (1)

Country Link
JP (1) JP2017017594A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2018121260A (en) * 2017-01-26 2018-08-02 キヤノン株式会社 Communication device, control method of communication device, program
US10387084B2 (en) 2017-03-31 2019-08-20 Canon Kabushiki Kaisha Control method for information processing apparatus and information processing apparatus
JP2020043713A (en) * 2018-09-12 2020-03-19 キヤノン株式会社 Power receiving device, control method of the same, and program
JP2021087169A (en) * 2019-11-29 2021-06-03 ブラザー工業株式会社 Function execution device and computer program for terminal device

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2018121260A (en) * 2017-01-26 2018-08-02 キヤノン株式会社 Communication device, control method of communication device, program
US10387084B2 (en) 2017-03-31 2019-08-20 Canon Kabushiki Kaisha Control method for information processing apparatus and information processing apparatus
JP2020043713A (en) * 2018-09-12 2020-03-19 キヤノン株式会社 Power receiving device, control method of the same, and program
JP7185453B2 (en) 2018-09-12 2022-12-07 キヤノン株式会社 POWER RECEIVING DEVICE, CONTROL METHOD AND PROGRAM FOR POWER RECEIVING DEVICE
JP2021087169A (en) * 2019-11-29 2021-06-03 ブラザー工業株式会社 Function execution device and computer program for terminal device
JP7424013B2 (en) 2019-11-29 2024-01-30 ブラザー工業株式会社 Computer programs for function execution devices and terminal devices

Similar Documents

Publication Publication Date Title
JP6335466B2 (en) COMMUNICATION DEVICE, COMMUNICATION DEVICE CONTROL METHOD, AND PROGRAM
JP6305023B2 (en) COMMUNICATION DEVICE, COMMUNICATION DEVICE CONTROL METHOD, AND PROGRAM
JP6360316B2 (en) COMMUNICATION DEVICE, ITS CONTROL METHOD, AND PROGRAM
JP4552075B2 (en) Image sharing system
JP6338344B2 (en) COMMUNICATION DEVICE, COMMUNICATION DEVICE CONTROL METHOD, AND PROGRAM
JP2007251922A (en) Communication device, and communication layer role determination method
US20190342933A1 (en) Communication Establishment Method And Terminal
JP6620759B2 (en) Information processing apparatus, information processing method, and program
JP6393030B2 (en) Transmission device, reception device, control method, program, and transmission / reception system
JP2016052059A (en) Communication device, communication device control method, and program
JP2015061169A (en) Communication device and communication system
JP2017017594A (en) Communication device, control method, and program
JP2014143540A (en) Communication device, control method of communication device, and program
JP2018200520A (en) Communication device, communication method, and program
EP3361817B1 (en) Communication device and communication method
JP6381330B2 (en) COMMUNICATION DEVICE, COMMUNICATION DEVICE CONTROL METHOD, PROGRAM
JP2014207650A (en) Wireless communication terminal, and program
US9900829B2 (en) Communication device, method for controlling the communication device, and program
JP6157190B2 (en) COMMUNICATION DEVICE, ITS CONTROL METHOD, PROGRAM
JP6452379B2 (en) COMMUNICATION DEVICE, COMMUNICATION DEVICE CONTROL METHOD, AND COMPUTER PROGRAM
JP2021158561A (en) Communication apparatus, control method therefor, and program
JP6512798B2 (en) Communication apparatus, control method, and program
JP6512882B2 (en) Communication device and control method thereof
JP2016034103A (en) Communication apparatus, control method of the same and program
JP2015095828A (en) Communication device, control method, and program