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

Communication device, communication device control method and program Download PDF

Info

Publication number
JP2014220700A
JP2014220700A JP2013099549A JP2013099549A JP2014220700A JP 2014220700 A JP2014220700 A JP 2014220700A JP 2013099549 A JP2013099549 A JP 2013099549A JP 2013099549 A JP2013099549 A JP 2013099549A JP 2014220700 A JP2014220700 A JP 2014220700A
Authority
JP
Japan
Prior art keywords
network
wireless communication
digital camera
proximity wireless
participating
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.)
Granted
Application number
JP2013099549A
Other languages
Japanese (ja)
Other versions
JP6222979B2 (en
Inventor
高橋 誠治
Seiji Takahashi
誠治 高橋
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 JP2013099549A priority Critical patent/JP6222979B2/en
Publication of JP2014220700A publication Critical patent/JP2014220700A/en
Application granted granted Critical
Publication of JP6222979B2 publication Critical patent/JP6222979B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/22Processing or transfer of terminal data, e.g. status or physical capabilities
    • H04W8/24Transfer of terminal data
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W84/00Network topologies
    • H04W84/02Hierarchically pre-organised networks, e.g. paging networks, cellular networks, WLAN [Wireless Local Area Network] or WLL [Wireless Local Loop]
    • H04W84/10Small scale networks; Flat hierarchical networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W84/00Network topologies
    • H04W84/02Hierarchically pre-organised networks, e.g. paging networks, cellular networks, WLAN [Wireless Local Area Network] or WLL [Wireless Local Loop]
    • H04W84/10Small scale networks; Flat hierarchical networks
    • H04W84/12WLAN [Wireless Local Area Networks]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W84/00Network topologies
    • H04W84/18Self-organising networks, e.g. ad-hoc networks or sensor networks
    • H04W84/20Master-slave selection or change arrangements

Abstract

PROBLEM TO BE SOLVED: To make it possible to join a convenient network while maintaining security.SOLUTION: A communication device comprises control means for controlling the own device to operate in any mode among a plurality of modes including an AP mode of creating a network and accepting joining of another device to the network, and a CL mode of causing the own device to join a network created by another device, in which the control means notifies when the own device receives a request of joining to the network from another device through near field communication means in a state of the CL mode, other devices in the same network where the own device joins of the fact that the own device operates in the AP mode and subsequently controls the own device to operate in the AP mode.

Description

本発明は、近接無線通信機能を有する通信装置に関する。   The present invention relates to a communication device having a proximity wireless communication function.

近年、スマートフォンやタブレット、デジタルカメラといった複数のモバイル機器間で、無線LANを利用して通信が行われている。このように複数の機器で無線通信を行う場合、複数のクライアント(CL)の通信を一台のアクセスポイント(AP)が中継するインフラストラクチャモードによる通信が一般的である。インフラストラクチャモードの設定を行う場合、ユーザはAP機器が生成したネットワークのSSID(Service Set Identifier)およびパスワード(以下、AP情報)をCL機器に入力する必要があり、手間がかかるという課題があった。   In recent years, communication is performed using a wireless LAN between a plurality of mobile devices such as smartphones, tablets, and digital cameras. When wireless communication is performed by a plurality of devices as described above, communication in an infrastructure mode in which communication of a plurality of clients (CL) is relayed by one access point (AP) is generally performed. When setting the infrastructure mode, it is necessary for the user to input the network SSID (Service Set Identifier) and password (hereinafter referred to as AP information) generated by the AP device to the CL device, which is troublesome. .

これに対し、例えば特許文献1では、既に無線ネットワークに参加済みの複数の機器のうちの一つから、近接無線通を介して、無線ネットワークに参加するための情報を取得する手法が開示されている。これにより、無線ネットワークに参加するための様々なパラメータをユーザが入力する手間を省き、利便性の高い無線ネットワークへの参加方法をユーザに提供することができる。   On the other hand, for example, Patent Document 1 discloses a method of acquiring information for participating in a wireless network from one of a plurality of devices that have already participated in the wireless network via close proximity wireless communication. Yes. Accordingly, it is possible to save the user from inputting various parameters for participating in the wireless network, and to provide the user with a highly convenient method of participating in the wireless network.

特開2009−239573JP2009-239573

しかしながら、上記の特許文献1ではCL機器は近接無線通信によって自機以外の機器のAP情報を送信する必要があり、セキュリティ上好ましくなかった。一方、AP情報はAP機器からのみ取得可能なようにすると、セキュリティ性は保たれるものの、ネットワークに参加するためにはAP機器に近づけなければならない。そのため、ユーザはどの機器がAP機器か意識する必要があり、利便性が損なわれてしまう。そこで、本願発明は、セキュリティ性を保ちつつ、利便性の高いネットワークへの参加を可能とすることを目的とする。   However, in the above-mentioned Patent Document 1, the CL device needs to transmit AP information of a device other than its own device by proximity wireless communication, which is not preferable in terms of security. On the other hand, if the AP information can be acquired only from the AP device, the security is maintained, but in order to participate in the network, it must be close to the AP device. Therefore, the user needs to be aware of which device is the AP device, and convenience is impaired. Therefore, an object of the present invention is to enable participation in a highly convenient network while maintaining security.

上記目的を達成するため、本願発明の通信装置は、他機と近接することにより近接無線通信を行う近接無線通信手段と、前記近接無線通信より長い通信距離の無線通信を行う無線通信手段と、前記無線通信手段によりネットワークを生成して他の機器のネットワークへの参加を受け付けるアクセスポイントモードと、前記無線通信手段により、他の機器により生成済みのネットワークに自機を参加させるクライアントモードとを含む複数のモードのうちいずれかのモードで、自機を動作させるよう制御する制御手段とを有し、自機がクライアントモードの状態で前記近接無線通信手段を介して前記他機からネットワークへの参加の要求を受信した場合、前記制御手段は、自機がアクセスポイントモードで動作する旨を自機が参加する同一ネットワーク内の他の機器に対して前記無線通信手段を介して通知した後に、自機をアクセスポイントモードで動作させるよう制御することを特徴とすることを特徴とする。   In order to achieve the above object, a communication device of the present invention includes a proximity wireless communication unit that performs proximity wireless communication by approaching another device, a wireless communication unit that performs wireless communication over a longer communication distance than the proximity wireless communication, An access point mode for generating a network by the wireless communication means and accepting participation of another device in the network; and a client mode for allowing the wireless device to participate in a network already generated by another device. Control means for controlling the own apparatus to operate in any one of a plurality of modes, and participation in the network from the other apparatus via the proximity wireless communication means in the client mode state When the request is received, the control means confirms that the own device will operate in the access point mode. After to other equipment in the work notified via the wireless communication means, characterized by wherein the controller controls so as to operate the ship in the access point mode.

本願発明によれば、セキュリティ性を保ちつつ、利便性の高いネットワークへの参加が可能となる。   According to the present invention, it is possible to participate in a highly convenient network while maintaining security.

第1の実施形態におけるデジタルカメラのブロック図である。1 is a block diagram of a digital camera according to a first embodiment. (a)、(b)、(c)第1の実施形態におけるデジタルカメラ同士のネットワークの参加処理を説明するための図である。(A), (b), (c) It is a figure for demonstrating the joining process of the network of the digital cameras in 1st Embodiment. 第1の実施形態におけるデジタルカメラ同士のネットワークの参加シーケンスを示す図である。It is a figure which shows the participation sequence of the network of the digital cameras in 1st Embodiment. (a)第1の実施形態におけるネットワークに参加しているデジタルカメラ同士が交換し合う情報の概念図である。(b)第1の実施形態におけるデジタルカメラが近接無線通信を介して送受信する情報の概念図である。(c)第1の実施形態におけるデジタルカメラが新たに生成するネットワークに参加するための情報の概念図である。(A) It is a conceptual diagram of the information which the digital cameras participating in the network in 1st Embodiment exchange. (B) It is a conceptual diagram of the information which the digital camera in 1st Embodiment transmits / receives via close proximity wireless communication. (C) It is a conceptual diagram of the information for participating in the network which the digital camera in 1st Embodiment newly produces | generates. (a)、(b)第1の実施形態におけるデジタルカメラの表示部に表示される画面の一例を示す図である。(A), (b) It is a figure which shows an example of the screen displayed on the display part of the digital camera in 1st Embodiment. 第1の実施形態におけるデジタルカメラがAP機器として動作する場合の処理を示すフローチャートである。It is a flowchart which shows a process in case the digital camera in 1st Embodiment operate | moves as AP apparatus. 第1の実施形態におけるデジタルカメラがCL機器として動作する場合の処理を示すフローチャートである。It is a flowchart which shows a process in case the digital camera in 1st Embodiment operate | moves as CL apparatus. 第1の実施形態におけるデジタルカメラがネットワークに参加する際の処理を示すフローチャートである。It is a flowchart which shows the process at the time of the digital camera in 1st Embodiment participating in a network. 第2の実施形態におけるデジタルカメラがAP機器として動作する場合の処理を示すフローチャートである。It is a flowchart which shows a process in case the digital camera in 2nd Embodiment operate | moves as AP apparatus. 第2の実施形態におけるデジタルカメラが近接無線通信を介して送受信する情報の概念図である。It is a conceptual diagram of the information which the digital camera in 2nd Embodiment transmits / receives via close proximity wireless communication. 第2の実施形態におけるデジタルカメラがCL機器として動作する場合の処理を示すフローチャートである。It is a flowchart which shows a process in case the digital camera in 2nd Embodiment operate | moves as CL apparatus. 第2の実施形態におけるデジタルカメラがネットワークに参加する際の処理を示すフローチャートである。It is a flowchart which shows the process at the time of the digital camera in 2nd Embodiment joining a network.

以下に、本発明を実施するための形態について、添付の図面を用いて詳細に説明する。   EMBODIMENT OF THE INVENTION Below, the form for implementing this invention is demonstrated in detail using attached drawing.

なお、以下に説明する実施の形態は、本発明の実現手段としての一例であり、本発明が適用される装置の構成や各種条件によって適宜修正又は変更されてもよい。また、各実施の形態を適宜組み合せることも可能である。   The embodiment described below is an example as means for realizing the present invention, and may be appropriately modified or changed depending on the configuration of the apparatus to which the present invention is applied and various conditions. Moreover, it is also possible to combine each embodiment suitably.

[第1の実施形態]
<デジタルカメラの構成>
図1は、本実施形態の通信装置の一例であるデジタルカメラ100の構成例を示すブロック図である。なお、ここでは通信装置の一例としてデジタルカメラについて述べるが、通信装置はこれに限られない。例えば通信装置は携帯型のメディアプレーヤやいわゆるタブレットデバイス、パーソナルコンピュータなどの情報処理装置であってもよい。
[First Embodiment]
<Configuration of digital camera>
FIG. 1 is a block diagram illustrating a configuration example of a digital camera 100 that is an example of a communication apparatus according to the present embodiment. Although a digital camera is described here as an example of a communication device, the communication device is not limited to this. For example, the communication apparatus may be an information processing apparatus such as a portable media player, a so-called tablet device, or a personal computer.

制御部101は、入力された信号や、後述のプログラムに従ってデジタルカメラ100の各部を制御する。なお、制御部101が装置全体を制御する代わりに、複数のハードウェアが処理を分担することで、装置全体を制御してもよい。   The control unit 101 controls each unit of the digital camera 100 according to an input signal and a program described later. Note that instead of the control unit 101 controlling the entire apparatus, a plurality of hardware may share the processing to control the entire apparatus.

撮像部102は、例えば、光学レンズユニットと絞り・ズーム・フォーカスなど制御する光学系と、光学レンズユニットを経て導入された光(映像)を電気的な映像信号に変換するための撮像素子などで構成される。撮像素子としては、一般的には、CMOS(Complementary Metal Oxide Semiconductor)や、CCD(Charge Coupled Device Image Sensor)が利用される。撮像部102は、制御部101に制御されることにより、撮像部102に含まれるレンズで結像された被写体光を、撮像素子により電気信号に変換し、ノイズ低減処理などを行いデジタルデータを画像データとして出力する。本実施形態のデジタルカメラ100では、画像データは、DCF(Design rule for Camera File system)の規格に従って、記録媒体110に記録される。   The imaging unit 102 includes, for example, an optical lens unit, an optical system that controls the aperture, zoom, focus, and the like, and an imaging device that converts light (video) introduced through the optical lens unit into an electrical video signal. Composed. As the imaging device, a complementary metal oxide semiconductor (CMOS) or a charge coupled device image sensor (CCD) is generally used. The imaging unit 102 is controlled by the control unit 101 to convert subject light imaged by a lens included in the imaging unit 102 into an electrical signal by the imaging device, and perform noise reduction processing or the like to convert the digital data into an image. Output as data. In the digital camera 100 of the present embodiment, the image data is recorded on the recording medium 110 in accordance with the DCF (Design rule for Camera File system) standard.

不揮発性メモリ103は、電気的に消去・記録可能な不揮発性のメモリであり、制御部101で実行される後述のプログラム等が格納される。   The non-volatile memory 103 is an electrically erasable / recordable non-volatile memory, and stores a program to be described later executed by the control unit 101.

作業用メモリ104は、撮像部102で撮像された画像データを一時的に保持するバッファメモリや、表示部106の画像表示用メモリ、制御部101の作業領域等として使用される。   The work memory 104 is used as a buffer memory that temporarily holds image data picked up by the image pickup unit 102, an image display memory of the display unit 106, a work area of the control unit 101, and the like.

操作部105は、ユーザがデジタルカメラ100に対する指示をユーザから受け付けるために用いられる。操作部105は例えば、ユーザがデジタルカメラ100の電源のON/OFFを指示するための電源ボタンや、撮影を指示するためのレリーズスイッチ、画像データの再生を指示するための再生ボタンを含む。さらに、後述の接続部111を介して外部機器との通信を開始するための専用の接続ボタンなどの操作部材を含む。また、後述する表示部106に形成されるタッチパネルも操作部105に含まれる。なお、不図示のレリーズスイッチは、SW1およびSW2を有する。レリーズスイッチが、いわゆる半押し状態となることにより、SW1がONとなる。これにより、AF(オートフォーカス)処理、AE(自動露出)処理、AWB(オートホワイトバランス)処理、EF(フラッシュプリ発光)処理等の撮影準備を行うための指示を受け付ける。また、レリーズスイッチが、いわゆる全押し状態となることにより、SW2がONとなる。これにより、撮影を行うための指示を受け付ける。   The operation unit 105 is used for the user to accept an instruction for the digital camera 100 from the user. The operation unit 105 includes, for example, a power button for instructing the user to turn on / off the digital camera 100, a release switch for instructing photographing, and a reproduction button for instructing reproduction of image data. Furthermore, an operation member such as a dedicated connection button for starting communication with an external device via a connection unit 111 described later is included. A touch panel formed on the display unit 106 described later is also included in the operation unit 105. The release switch (not shown) has SW1 and SW2. When the release switch is in a so-called half-pressed state, SW1 is turned on. As a result, an instruction for making preparations for shooting such as AF (autofocus) processing, AE (automatic exposure) processing, AWB (auto white balance) processing, and EF (flash pre-emission) processing is accepted. Further, when the release switch is in a fully-pressed state, SW2 is turned on. As a result, an instruction for photographing is received.

表示部106は、撮影の際のビューファインダー画像の表示、撮影した画像データの表示、対話的な操作のための文字表示などを行う。なお、表示部106は必ずしもデジタルカメラ100が内蔵する必要はない。デジタルカメラ100はカメラの背面等に設けた表示部106だけでなくカメラの外部の表示部106と接続することができ、表示部106の表示を制御する表示制御機能を少なくとも有していればよい。   The display unit 106 displays a viewfinder image at the time of shooting, displays shot image data, and displays characters for interactive operation. Note that the display unit 106 is not necessarily built in the digital camera 100. The digital camera 100 can be connected not only to the display unit 106 provided on the rear surface of the camera but also to a display unit 106 outside the camera, and it is sufficient that the digital camera 100 has at least a display control function for controlling the display of the display unit 106. .

記録媒体110は、撮像部102から出力された画像データを記録することができる。記録媒体110は、デジタルカメラ100に着脱可能なよう構成してもよいし、デジタルカメラ100に内蔵されていてもよい。すなわち、デジタルカメラ100は少なくとも記録媒体110にアクセスする手段を有していればよい。   The recording medium 110 can record the image data output from the imaging unit 102. The recording medium 110 may be configured to be detachable from the digital camera 100 or may be built in the digital camera 100. That is, the digital camera 100 only needs to have a means for accessing at least the recording medium 110.

接続部111は、外部装置と接続するためのインターフェースである。本実施形態のデジタルカメラ100は、接続部111を介して、外部装置とデータのやりとりを行うことができる。なお、本実施形態では、接続部111は外部装置とIEEE802.11の規格に従った、いわゆる無線LANで通信するためのインターフェースを含む。制御部101は、接続部111を制御することで外部装置との無線通信を実現する。なお、通信方式は無線LANに限定されるものではなく、例えば赤外通信方式も含む。   The connection unit 111 is an interface for connecting to an external device. The digital camera 100 of this embodiment can exchange data with an external device via the connection unit 111. In the present embodiment, the connection unit 111 includes an interface for communicating with an external device via a so-called wireless LAN in accordance with the IEEE 802.11 standard. The control unit 101 realizes wireless communication with an external device by controlling the connection unit 111. Note that the communication method is not limited to the wireless LAN, and includes, for example, an infrared communication method.

近接無線通信部112は、例えば無線通信のためのアンテナと無線信号を処理するため変復調回路や通信コントローラから構成さる。近接無線通信部112は、変調した無線信号をアンテナから出力し、またアンテナで受信した無線信号を復調することによりISO/IEC 18092の規格(いわゆるNFC:Near Field Communication)に従った非接触近接通信を実現する。本実施形態の近接無線通信部112は、デジタルカメラ100の側部に配される。   The close proximity wireless communication unit 112 includes, for example, an antenna for wireless communication and a modulation / demodulation circuit and a communication controller for processing a wireless signal. The proximity wireless communication unit 112 outputs a modulated wireless signal from an antenna, and demodulates the wireless signal received by the antenna, thereby non-contact proximity communication in accordance with the ISO / IEC 18092 standard (so-called NFC: Near Field Communication). Is realized. The close proximity wireless transfer unit 112 of the present embodiment is disposed on the side of the digital camera 100.

デジタルカメラ100同士においては、互いの近接無線通信部112を近接させることにより通信を開始して接続される。なお、近接無線通信部112を用いてデジタルカメラ100同士を接続させる場合、必ずしも近接無線通信部112同士を接触させる必要はない。近接無線通信部112は一定の距離だけ離れていても、通信することができるため、ここでは近接無線通信可能な範囲まで近づければよい。以下の説明では、この近接無線通信可能な範囲まで近づけることを、近接させる、と記載する。   The digital cameras 100 are connected by starting communication by bringing the close proximity wireless communication units 112 close to each other. When the digital cameras 100 are connected using the close proximity wireless communication unit 112, the close proximity wireless communication units 112 do not necessarily need to be in contact with each other. Since the close proximity wireless communication unit 112 can communicate even if they are separated by a certain distance, the close proximity wireless communication unit 112 may be brought close to a range where close proximity wireless communication is possible. In the following description, it will be described as bringing close to the range where close proximity wireless communication is possible.

また、互いの近接無線通信部112が近接無線通信不可能な範囲にあれば、通信は開始されない。また、互いの近接無線通信部112が近接無線通信可能な範囲にあって、デジタルカメラ100同士が通信接続されている際に、互いの近接無線通信部112が近接無線通信不可能な範囲に離れてしまった場合は、通信接続が解除される。なお、近接無線通信部112が実現する非接触近接通信はNFCに限られるものではなく、他の無線通信を採用してもよい。例えば、近接無線通信部112が実現する非接触近接通信として、ISO/IEC 14443の規格に従った非接触近接通信を採用してもよい。   Further, if the close proximity wireless communication units 112 are within a range where close proximity wireless communication is not possible, communication is not started. Further, when the close proximity wireless communication units 112 are within a range in which close proximity wireless communication is possible and the digital cameras 100 are connected to each other, the close proximity wireless communication units 112 are separated from the range in which close proximity wireless communication is not possible. If this happens, the communication connection is canceled. The contactless proximity communication realized by the proximity wireless communication unit 112 is not limited to NFC, and other wireless communication may be employed. For example, non-contact proximity communication according to the ISO / IEC 14443 standard may be adopted as non-contact proximity communication realized by the proximity wireless communication unit 112.

なお、本実施形態におけるデジタルカメラ100の接続部111は、インフラストラクチャーモードにおけるアクセスポイントとして動作するAPモードと、インフラストラクチャモードにおけるクライアントとして動作するCLモードとを有している。そして、接続部111をCLモードで動作させることにより、本実施形態におけるデジタルカメラ100は、インフラストラクチャモードにおけるCL機器として動作することが可能である。デジタルカメラ100がCL機器として動作する場合、周辺のAP機器に接続することで、AP機器が形成するネットワークに参加することが可能である。   Note that the connection unit 111 of the digital camera 100 in the present embodiment has an AP mode that operates as an access point in the infrastructure mode, and a CL mode that operates as a client in the infrastructure mode. Then, by operating the connection unit 111 in the CL mode, the digital camera 100 in the present embodiment can operate as a CL device in the infrastructure mode. When the digital camera 100 operates as a CL device, it can participate in a network formed by the AP device by connecting to a peripheral AP device.

また、接続部111をAPモードで動作させることにより、本実施形態におけるデジタルカメラ100は、APの一種ではあるが、より機能が限定された簡易的なAP(以下、簡易AP)として動作することも可能である。デジタルカメラ100が簡易APとして動作すると、デジタルカメラ100は自身でネットワークを形成する。デジタルカメラ100の周辺の装置は、デジタルカメラ100をAP機器と認識し、デジタルカメラ100が形成したネットワークに参加することが可能となる。上記のようにデジタルカメラ100を動作させるためのプログラムは不揮発性メモリ103に保持されているものとする。   In addition, by operating the connection unit 111 in the AP mode, the digital camera 100 in the present embodiment is a kind of AP, but operates as a simple AP (hereinafter referred to as a simple AP) with more limited functions. Is also possible. When the digital camera 100 operates as a simple AP, the digital camera 100 forms a network by itself. Devices around the digital camera 100 can recognize the digital camera 100 as an AP device and participate in a network formed by the digital camera 100. It is assumed that a program for operating the digital camera 100 is held in the nonvolatile memory 103 as described above.

なお、本実施形態におけるデジタルカメラ100はAPの一種であるものの、CL機器から受信したデータをインターネットプロバイダなどに転送するゲートウェイ機能は有していない簡易APである。したがって、自機が形成したネットワークに参加している他の装置からデータを受信しても、それをインターネットなどのネットワークに転送することはできない。   Note that although the digital camera 100 in this embodiment is a kind of AP, it is a simple AP that does not have a gateway function for transferring data received from a CL device to an Internet provider or the like. Therefore, even if data is received from another device participating in the network formed by the own device, it cannot be transferred to a network such as the Internet.

以上がデジタルカメラ100の説明である。   The above is the description of the digital camera 100.

<システムの概要>
図2は、本実施形態に係る通信システムの概略構成を示す図である。本実施形態の通信システムでは、複数のデジタルカメラが互いに接続する。なお、システムにおけるデジタルカメラはいずれも、図1で説明したデジタルカメラ100と同様の構成を有する。
<System overview>
FIG. 2 is a diagram illustrating a schematic configuration of the communication system according to the present embodiment. In the communication system of the present embodiment, a plurality of digital cameras are connected to each other. Note that any digital camera in the system has the same configuration as the digital camera 100 described in FIG.

図2(a)の通信システムにおいて、デジタルカメラ210は簡易APとして動作し、ネットワーク200を生成する。ここで生成される無線ネットワークは、いわゆる無線LANである。デジタルカメラ220やデジタルカメラ230は、このデジタルカメラ210が定期的に送信するビーコン信号を検知し、このデジタルカメラ210が形成する無線ネットワークに参加する。簡易AP機器として動作するデジタルカメラ210を含む各デジタルカメラ同士は、同じ無線ネットワークに参加した後、互いの機器発見、機器の能力取得などを経て無線LANによるデータの送受信が可能な状態となる(機器間の通信を確立する)。また、デジタルカメラ240は、ネットワーク200に参加していないデジタルカメラである。   In the communication system of FIG. 2A, the digital camera 210 operates as a simple AP and generates a network 200. The wireless network generated here is a so-called wireless LAN. The digital camera 220 and the digital camera 230 detect a beacon signal periodically transmitted by the digital camera 210 and participate in a wireless network formed by the digital camera 210. Each digital camera including the digital camera 210 that operates as a simple AP device can participate in the same wireless network, and can transmit and receive data via a wireless LAN through mutual device discovery, device capability acquisition, and the like ( Establish communication between devices). The digital camera 240 is a digital camera that does not participate in the network 200.

さて、ここでデジタルカメラ240がネットワーク200に参加することを考える。本実施形態では、ネットワークに参加するための所定の操作が行われたデジタルカメラ240の近接無線通信部112を、例えば図2(b)のように、既に接続済みのデジタルカメラ230の近接無線通信部112に近接させる(通信可能な範囲まで近づける)。ネットワークに参加するための所定の操作については後述する。   Now, consider that the digital camera 240 participates in the network 200. In this embodiment, the proximity wireless communication unit 112 of the digital camera 240 that has been subjected to a predetermined operation for participating in the network is connected to the proximity wireless communication of the already connected digital camera 230 as shown in FIG. Close to the unit 112 (close to the communicable range). A predetermined operation for joining the network will be described later.

これに対して、デジタルカメラ230は、デジタルカメラ210が生成しているネットワークに関する情報をデジタルカメラ240に送信しない。その代わり、デジタルカメラ230は、デジタルカメラ210に替わって新たにネットワークを生成する。   On the other hand, the digital camera 230 does not transmit information regarding the network generated by the digital camera 210 to the digital camera 240. Instead, the digital camera 230 generates a new network in place of the digital camera 210.

そして、デジタルカメラ230は、新たに生成するネットワークに参加するための情報を、近接無線通信を介してデジタルカメラ240に送信する。また、デジタルカメラ230は、デジタルカメラ210やデジタルカメラ220に予めネットワークを再構築する旨を伝えることにより、デジタルカメラ210やデジタルカメラ220が再構築されたネットワークに速やかに移行することを可能にさせる。この結果、デジタルカメラのネットワークは図2(c)に示すような構成となる。   Then, the digital camera 230 transmits information for participating in the newly generated network to the digital camera 240 via the proximity wireless communication. In addition, the digital camera 230 notifies the digital camera 210 or the digital camera 220 that the network is to be reconfigured in advance, thereby enabling the digital camera 210 or the digital camera 220 to quickly move to the reconfigured network. . As a result, the digital camera network is configured as shown in FIG.

このように、本実施形態のデジタルカメラは、近接無線通信では他機の生成したネットワーク情報ではなく、自機の生成したネットワークの情報を送信する。これにより、CL機器により意図せずAP機器のネットワーク情報が公開されてしまう恐れがなくなるため、セキュリティ性を保つことができる。   As described above, the digital camera according to the present embodiment transmits not the network information generated by the other device but the network information generated by the own device in the proximity wireless communication. As a result, there is no possibility that the network information of the AP device is unintentionally disclosed by the CL device, and thus security can be maintained.

しかも、もともとネットワークに参加済みのデジタルカメラ210、220、230が同じネットワークに参加しているという状況を保ったまま、新たにデジタルカメラ240をネットワークに参加させることができる。   Moreover, it is possible to newly join the digital camera 240 to the network while maintaining the situation that the digital cameras 210, 220, and 230 that have already joined the network are participating in the same network.

また、デジタルカメラ240がネットワークに参加するために近接無線通信を確立する機器は、ネットワーク内の機器であれば、AP機器かCL機器かを問わない。そのため、デジタルカメラ240のユーザは、ネットワークに参加しているデジタルカメラがAP機器であるかCL機器であるかを意識することなくデジタルカメラ240をネットワークに参加することができる。   In addition, the device that establishes close proximity wireless communication for the digital camera 240 to participate in the network may be an AP device or a CL device as long as it is a device in the network. Therefore, the user of the digital camera 240 can join the digital camera 240 to the network without being aware of whether the digital camera participating in the network is an AP device or a CL device.

上述の動作を実現するための各デジタルカメラの処理の概要を、図3を用いて説明する。   An outline of processing of each digital camera for realizing the above-described operation will be described with reference to FIG.

図3は、本実施例のデジタルカメラのネットワーク参加処理の概要を示すシーケンス図である。   FIG. 3 is a sequence diagram illustrating an overview of network participation processing of the digital camera of the present embodiment.

図3においてデジタルカメラが簡易AP機器として動作する期間を、期間301のように斜線領域で表す。また、デジタルカメラがCL機器として動作する期間を、期間302のように無地領域で表す。また、近接無線通信が確立している期間を期間303のように網掛領域で表す。   In FIG. 3, a period during which the digital camera operates as a simple AP device is represented by a hatched area as a period 301. Further, a period during which the digital camera operates as a CL device is represented by a plain area as a period 302. Further, a period in which the proximity wireless communication is established is represented by a shaded area as a period 303.

また、本シーケンスは、ネットワークに参加している機器の増減があった場合に開始する。   In addition, this sequence starts when the number of devices participating in the network is increased or decreased.

図3の例では、シーケンス開始時において、デジタルカメラ210は簡易AP機器として動作している。また、デジタルカメラ220はCL機器として動作し、デジタルカメラ210の生成するネットワークに参加している。また、デジタルカメラ230は、新たにネットワークに参加してCL機器として動作するカメラである。また、デジタルカメラ240はネットワークに参加しておらず、これからネットワークに参加しようとしている。   In the example of FIG. 3, the digital camera 210 is operating as a simple AP device at the start of the sequence. The digital camera 220 operates as a CL device and participates in a network generated by the digital camera 210. The digital camera 230 is a camera that newly participates in the network and operates as a CL device. In addition, the digital camera 240 does not participate in the network and is about to participate in the network.

まず、ステップS310において、デジタルカメラ210、220、230は、自機のID、自機が簡易AP機器として動作しているかCL機器として動作しているかを示す情報(以下WLAN状態)、IPアドレスを互いに送受信し合う。そして、お互いの情報をWLAN管理情報としてそれぞれの作業用メモリ104に記録する。図3の例では、既にネットワークに参加済みのデジタルカメラ210やデジタルカメラ220の作業用メモリ104に記録されているWLAN管理情報は更新される。一方、新たに参加したデジタルカメラ230の作業用メモリ104には、新たにWLAN管理情報が記録される。   First, in step S310, the digital cameras 210, 220, and 230 have their own ID, information indicating whether the own device is operating as a simple AP device or a CL device (hereinafter referred to as a WLAN state), and an IP address. Send and receive each other. The mutual information is recorded in each work memory 104 as WLAN management information. In the example of FIG. 3, the WLAN management information recorded in the work memory 104 of the digital camera 210 or digital camera 220 that has already joined the network is updated. On the other hand, new WLAN management information is recorded in the work memory 104 of the newly joined digital camera 230.

WLAN管理情報の概念図を、図4(a)に示す。図4(a)において、ID401は、デジタルカメラを一意に特定する識別子であり、製造時に付与される。また、WLAN状態402は各機器が簡易AP機器およびCL機器のどちらとして動作するかを示す。また、IPアドレス403は、IP(Internet Protocol)においてパケットを送受信する機器を判別するための番号である。IPアドレスは、簡易AP機器として動作する機器がDHCP(Dynamic Host Configuration Protocol)サーバとなることで、簡易AP機器として動作する機器が生成し、各CL機器に付与される。このステップS310の処理により、新たに参加したデジタルカメラ230は、ネットワークに参加している他の機器に関する情報を取得することができる。   A conceptual diagram of the WLAN management information is shown in FIG. In FIG. 4A, an ID 401 is an identifier that uniquely identifies a digital camera and is given at the time of manufacture. The WLAN state 402 indicates whether each device operates as a simple AP device or a CL device. An IP address 403 is a number for determining a device that transmits and receives a packet in IP (Internet Protocol). An IP address is generated by a device that operates as a simple AP device and becomes a DHCP (Dynamic Host Configuration Protocol) server, so that a device that operates as a simple AP device is generated and assigned to each CL device. Through the processing in step S310, the newly joined digital camera 230 can acquire information regarding other devices participating in the network.

一方、ネットワークに参加しようとしているデジタルカメラ240では、ステップS311にて、ネットワークに参加するための所定の操作をユーザから受け付け、ネットワークに参加するための準備動作を行う。   On the other hand, in step S311, the digital camera 240 that intends to participate in the network receives a predetermined operation for participating in the network from the user and performs a preparation operation for participating in the network.

ここで、ネットワークに参加するための所定の操作について説明する。図5(a)は、本実施形態のデジタルカメラ100の表示部に表示される、ネットワークの利用のためのメニュー画面の一例である。この画面においてアイコン502が選択されると、画面は、図5(b)の表示に移行し、ネットワークに参加するために必要な情報を他の機器から近接無線通信を利用して受信するための処理を開始する。なお、本実施形態では、ネットワーク200に参加しようとしているデジタルカメラ240が既に別のネットワークに参加している場合、図5(b)の画面への遷移と共に参加中のネットワークからの離脱も並行して実行される。なぜなら、このアイコンを選択するという行為は、現在参加しているネットワークではなく、他のネットワークへの参加を決定する行為だからである。   Here, a predetermined operation for joining the network will be described. FIG. 5A is an example of a menu screen for using the network displayed on the display unit of the digital camera 100 of the present embodiment. When the icon 502 is selected on this screen, the screen shifts to the display of FIG. 5B and is used for receiving information necessary for participating in the network from other devices using the proximity wireless communication. Start processing. In the present embodiment, when the digital camera 240 that is going to participate in the network 200 has already participated in another network, the transition to the screen in FIG. Executed. This is because the act of selecting this icon is an act of deciding to join another network, not the currently participating network.

また、自機が既にネットワークに参加していることに、ユーザが気付かずにアイコン502を選択してしまう場合も考えられる。例えば通信の処理などがバックグラウンドで動作する場合には、自機がネットワークに参加済みかどうか気づきにくい。そこで、図5(b)の画面に遷移する前に本当に参加中のネットワークから離脱してもよいかどうかユーザに確認してもよい。なお、自機がネットワークに参加していない場合は当然、離脱の処理も実行されない。故に、上記の確認も行われない。   In addition, there may be a case where the user selects the icon 502 without noticing that the device has already joined the network. For example, when a communication process or the like operates in the background, it is difficult to recognize whether or not the own device has already joined the network. Therefore, the user may confirm whether or not he / she can actually leave the participating network before transitioning to the screen of FIG. Of course, when the own device does not participate in the network, the process of leaving is not executed. Therefore, the above confirmation is not performed.

また、近接無線通信を用いずに、手動で情報を入力してネットワークに参加する場合は、図5(a)の画面で、アイコン501を選択すればよい。この場合は、参加したいネットワークの情報を入力する画面(図示しない)に遷移し、既存のシーケンスに従ってネットワークへの参加が行われる。   If the user manually enters information and joins the network without using close proximity wireless communication, the icon 501 may be selected on the screen of FIG. In this case, the screen transits to a screen (not shown) for inputting information on the network to be joined, and participation in the network is performed according to an existing sequence.

図3の説明に戻る。   Returning to the description of FIG.

続いて、図5(b)の画面が表示されている状態で、ユーザはデジタルカメラ240とデジタルカメラ230とを、近接無線通信が可能なように近づける。具体的には、それぞれのデジタルカメラの近接無線通信部112同士が通信可能な距離になるまで近づける。その結果、ステップS312にて、デジタルカメラ230とデジタルカメラ240との近接無線通信が確立する。   Subsequently, in a state where the screen of FIG. 5B is displayed, the user brings the digital camera 240 and the digital camera 230 close to each other so that close proximity wireless communication is possible. Specifically, the proximity wireless communication units 112 of the respective digital cameras are brought close to each other so that they can communicate with each other. As a result, in step S312, close proximity wireless communication between the digital camera 230 and the digital camera 240 is established.

続くステップS313にて、ネットワーク200に参加しようとしているデジタルカメラ240は、ネットワークに参加するための情報の要求を、近接無線通信によりデジタルカメラ230に送信する。   In subsequent step S313, the digital camera 240 that intends to participate in the network 200 transmits a request for information for participating in the network to the digital camera 230 by proximity wireless communication.

この要求を受信したデジタルカメラ230は、まずステップS314で、AP切り替え時間を算出する。AP切り替え時間とは、デジタルカメラ230自身がデジタルカメラ210の代わりに簡易AP機器として動作して新たにネットワークを構築するために必要な時間である。なお、デジタルカメラ230がCL機器からAP機器に切り替わるだけならほぼ一定の時間で済むが、デジタルカメラ230がネットワーク内の他のカメラとデータのやり取りをしている最中の場合も考えられる。この場合は、データのやりとりが終了するまでの時間が、AP機器に切り替わる一定の時間に加えられた時間が、AP切り替え時間として算出される。また、この場合はデータのやり取りが終了してから、次のステップS315に進む。   The digital camera 230 that has received this request first calculates the AP switching time in step S314. The AP switching time is a time required for the digital camera 230 itself to operate as a simple AP device instead of the digital camera 210 and newly construct a network. If the digital camera 230 is simply switched from the CL device to the AP device, it will take almost a fixed time. However, there may be a case where the digital camera 230 is exchanging data with other cameras in the network. In this case, the time until the end of data exchange is added as a certain time for switching to the AP device, and is calculated as the AP switching time. In this case, after the exchange of data is completed, the process proceeds to the next step S315.

続くステップS315で、デジタルカメラ230は、デジタルカメラ240に対して、ネットワークに参加するための情報(ネットワーク情報)を送信する。ここで、ネットワーク情報の一例を図4(b)に示す。図4(b)に示されるネットワーク情報には、デジタルカメラ230がこれから生成するネットワークのSSID411、パスワード412、暗号化方式413が含まれる。SSID411、パスワード412は、自機が簡易AP機器として動作する際に生成するネットワークのパラメータである。これらの情報は、ユーザが任意の文字列を入力することで予め設定しておくことができる。また、デジタルカメラ230自身の機器ID401も含まれる。更に、ステップS313で算出されたAP切り替え時間415も含まれる。   In subsequent step S315, the digital camera 230 transmits information for participating in the network (network information) to the digital camera 240. Here, an example of the network information is shown in FIG. The network information shown in FIG. 4B includes a network SSID 411, a password 412, and an encryption method 413 that the digital camera 230 will generate. The SSID 411 and the password 412 are network parameters generated when the own device operates as a simple AP device. Such information can be set in advance by the user inputting an arbitrary character string. The device ID 401 of the digital camera 230 itself is also included. Furthermore, the AP switching time 415 calculated in step S313 is also included.

上述のネットワーク情報を受け取ったデジタルカメラ240はAP切り替え時間の分だけ待機し、デジタルカメラ230がネットワークを生成するのを待つ。一方、デジタルカメラ230はステップS316で、これからデジタルカメラ210に替わって自機がネットワークを再構築するために、現在のネットワーク内の各デジタルカメラにAPが切り替えられる旨を通知する。この通知には、例えば図4(c)に示すような、再構築されるネットワークに参加するための情報が含まれている。この情報により、デジタルカメラ210やデジタルカメラ220は、再構築後のネットワークに移行することができる。   The digital camera 240 that has received the network information waits for the AP switching time, and waits for the digital camera 230 to generate a network. On the other hand, in step S316, the digital camera 230 notifies each digital camera in the current network that the AP can be switched in order to reconstruct the network instead of the digital camera 210. This notification includes information for participating in the network to be reconstructed, for example, as shown in FIG. With this information, the digital camera 210 and the digital camera 220 can move to the reconstructed network.

通知が完了すると、ステップS317でデジタルカメラ230は、デジタルカメラ210が生成していたネットワークから離脱し、簡易AP機器としての動作を開始する。すなわち、デジタルカメラ210に替わって新たにネットワークを生成する。   When the notification is completed, in step S317, the digital camera 230 leaves the network generated by the digital camera 210 and starts operating as a simple AP device. That is, a new network is generated instead of the digital camera 210.

これに対して、デジタルカメラ240は、AP切り替え時間の分の待機が終了することに応じて、ステップS318にてCL機器としての動作を開始する。そして、続くステップS321にてデジタルカメラ240は、ステップS315で受信した情報に基づきデジタルカメラ230が新たに生成したネットワークに参加する。   On the other hand, the digital camera 240 starts the operation as the CL device in step S318 in response to the end of the waiting for the AP switching time. In step S321, the digital camera 240 participates in the network newly generated by the digital camera 230 based on the information received in step S315.

また、デジタルカメラ230からの通知を受け取ったデジタルカメラ210は、ステップS319にて簡易AP機器としての動作を終了してCL機器としての動作を開始する。そして、続くステップS322でデジタルカメラ210は、ステップS316で受信した情報に基づきデジタルカメラ230が新たに生成したネットワークに参加する。   In addition, the digital camera 210 that has received the notification from the digital camera 230 ends the operation as the simple AP device in step S319 and starts the operation as the CL device. In subsequent step S322, the digital camera 210 participates in the network newly generated by the digital camera 230 based on the information received in step S316.

また、デジタルカメラ230からの通知を受け取ったデジタルカメラ220は、ステップS320にて、デジタルカメラ210が生成していたネットワークから離脱する。そして、続くステップS323にてデジタルカメラ220は、ステップS316で受信した情報に基づきデジタルカメラ230が新たに生成したネットワークに参加する。   Also, the digital camera 220 that has received the notification from the digital camera 230 leaves the network that the digital camera 210 has generated in step S320. In step S323, the digital camera 220 participates in the network newly generated by the digital camera 230 based on the information received in step S316.

以上のように、簡易AP機器となる機器を切り替えることで、デジタルカメラを手軽にネットワークに参加させることと、セキュリティ性を保つこととを両立することができる。   As described above, by switching the device to be a simple AP device, it is possible to easily join the digital camera to the network and maintain security.

<各デジタルカメラの動作>
続いて、上記の動作を実現するためのデジタルカメラのそれぞれの動作について詳述する。
<Operation of each digital camera>
Next, each operation of the digital camera for realizing the above operation will be described in detail.

図6は、本実施形態のデジタルカメラ100が簡易AP機器として動作する場合の処理を示すフローチャートである。なお、本フローチャートに示す処理は、デジタルカメラ100の制御部101が入力信号やプログラムに従い、デジタルカメラ100の各部を制御することにより実現される。また、同じネットワークに参加する他のカメラと例えば画像交換等のデータの送受信を行う処理は、このフローチャートに示す処理とは別に並行して実行される。特に断らない限り、デジタルカメラ100の処理を示す他のフローチャートでも同様である。   FIG. 6 is a flowchart showing processing when the digital camera 100 of the present embodiment operates as a simple AP device. Note that the processing shown in this flowchart is realized by the control unit 101 of the digital camera 100 controlling each unit of the digital camera 100 in accordance with an input signal or a program. In addition, processing for transmitting and receiving data such as image exchange with other cameras participating in the same network is executed in parallel with the processing shown in this flowchart. The same applies to other flowcharts showing processing of the digital camera 100 unless otherwise specified.

また、本フローチャートは、デジタルカメラ100が簡易AP機器としての動作を開始することに応じて開始される。デジタルカメラ100がAP機器としての動作を開始する場合は、例えばユーザのメニュー操作により指示を受け付けたことに応じて開始する場合や、後述の図7のステップS709の処理により開始する場合が考えられる。   This flowchart is started in response to the digital camera 100 starting an operation as a simple AP device. When the digital camera 100 starts an operation as an AP device, for example, it may start in response to receiving an instruction by a user's menu operation, or may start by a process in step S709 in FIG. .

まず、ステップS601において、制御部101は、接続部111を介して、同一のネットワークに参加している他の機器と機器ID401・WLAN状態402・IPアドレス403を送受信し、WLAN管理情報400を更新する。この処理は図3のステップS310に相当する処理である。   First, in step S601, the control unit 101 transmits / receives the device ID 401 / WLAN state 402 / IP address 403 to / from other devices participating in the same network via the connection unit 111, and updates the WLAN management information 400. To do. This process corresponds to step S310 in FIG.

次に、ステップS602において、制御部101は、同一のネットワークに参加している機器の増減を検知する。例えば、他機が、デジタルカメラ100が生成しているネットワークに参加した場合や、デジタルカメラ100が生成しているネットワークに既に参加している他のデジタルカメラのいずれかが離脱した場合に、増減があったことが検知される。制御部101が、同一ネットワーク参加機器の増減を検知した場合、処理はステップS601戻る。一方、増減を検知していない場合、処理はステップS603に移行する。   Next, in step S602, the control unit 101 detects increase / decrease of devices participating in the same network. For example, when the other device joins the network generated by the digital camera 100 or when any of the other digital cameras already participating in the network generated by the digital camera 100 leaves, Is detected. If the control unit 101 detects an increase / decrease in devices participating in the same network, the process returns to step S601. On the other hand, when no increase or decrease is detected, the process proceeds to step S603.

ステップS603において、制御部101は、近接無線通信部112を介して、他の機器から、ネットワークに参加するための情報の要求を受信したか否かを判断する。   In step S <b> 603, the control unit 101 determines whether a request for information for participating in the network is received from another device via the close proximity wireless communication unit 112.

まず、ネットワークの情報の要求を受信したと判断した場合について述べる。この場合、処理はステップS604に進む。以下、ステップS603でネットワークの情報を要求した要求元の機器を相手機器と呼ぶ。   First, a case where it is determined that a request for network information has been received will be described. In this case, the process proceeds to step S604. Hereinafter, the requesting device that has requested network information in step S603 is referred to as a counterpart device.

ステップS604において、制御部101は、相手機器をネットワークに参加させられるか否かを判断する。本実施形態のデジタルカメラ100が簡易AP機器として動作することで生成されるネットワークには、参加可能なCL機器の数に上限を設ける。この参加機器数の上限(最大接続数)は、例えばネットワーク内のトラフィックが増加しすぎて通信の速度が低下や、信号の暗号化/復号化の安定性の低下など、いわゆる通信のパフォーマンスが低下してしまうことを防ぐために、機器毎に個別に設定されている。最大接続数の値はユーザが任意に設定できるようにしてもよいし、例えばAPの性能に応じて予め定められていてもよい。この最大接続数の値はデジタルカメラ100の不揮発性メモリに保持される。   In step S604, the control unit 101 determines whether or not the partner device can participate in the network. In the network generated when the digital camera 100 of this embodiment operates as a simple AP device, an upper limit is set on the number of CL devices that can participate. The upper limit of the number of participating devices (maximum number of connections) is a decrease in so-called communication performance, such as a decrease in communication speed due to excessive traffic in the network and a decrease in signal encryption / decryption stability. In order to prevent this, it is set for each device individually. The value of the maximum number of connections may be arbitrarily set by the user, or may be determined in advance according to the AP performance, for example. The value of the maximum number of connections is held in the nonvolatile memory of the digital camera 100.

また、制御部101は、WLAN情報400を参照することで現在のネットワークに参加しているCL機器の数を取得する。この現在のネットワークに参加しているCL機器の数に1を加えた値が、相手機器をネットワークに参加させた場合のネットワーク内の全参加機器数となる。この値と、簡易AP機器として動作している自機の不揮発性メモリから読み出した最大接続数とを比較することで、本ステップの処理が実行される。制御部101が最大接続数を超過すると判断した場合、処理はステップS607に進み、相手機器に、ネットワークへの参加が不可能である旨を通知する。   The control unit 101 acquires the number of CL devices participating in the current network by referring to the WLAN information 400. A value obtained by adding 1 to the number of CL devices participating in the current network is the total number of participating devices in the network when the counterpart device is allowed to participate in the network. The processing of this step is executed by comparing this value with the maximum number of connections read from the nonvolatile memory of the own device operating as a simple AP device. If the control unit 101 determines that the maximum number of connections is exceeded, the process advances to step S607 to notify the partner device that participation in the network is impossible.

一方、ステップS604で、最大接続数を超過しないと判断した場合、処理はステップS605に進む。   On the other hand, if it is determined in step S604 that the maximum number of connections is not exceeded, the process proceeds to step S605.

ステップS605では、制御部101は、近接無線通信部110を介して、相手機器に対して、ネットワークに参加するための情報を送信する。ここでは、自機はAPとして動作しており、ネットワークは自機が生成したものであるから、自機が生成した際に用いたパラメータを送信する。例えば図4(b)に示す情報を送信する。なお、ここでは自機はAP機器としており、他のAP機器に切り替える必要が無いため、AP切り替え時間は0secを示す情報が含まれることになる。これを受けた相手機器では、受信した情報に基づきネットワークに参加するための処理が実行される。   In step S605, the control unit 101 transmits information for participating in the network to the counterpart device via the close proximity wireless transfer unit 110. Here, since the own device operates as an AP and the network is generated by the own device, the parameters used when the own device generates are transmitted. For example, the information shown in FIG. 4B is transmitted. Here, since the own device is an AP device and there is no need to switch to another AP device, the AP switching time includes information indicating 0 sec. In response, the counterpart device executes processing for joining the network based on the received information.

そして、ステップS606において、制御部101は、接続部111を介して、相手機器からのネットワークへの参加要求を受け付け、相手機器と接続する。   In step S606, the control unit 101 receives a request to join the network from the counterpart device via the connection unit 111, and connects to the counterpart device.

次に、ステップS603で、ネットワークの情報の要求を受信しなかったと判断された場合について述べる。この場合、処理はステップS608に進む。   Next, a case where it is determined in step S603 that a request for network information has not been received will be described. In this case, the process proceeds to step S608.

ステップS608では、制御部101は、接続部111を介してネットワーク内の他機からAP切り替え通知情報420を受信したか否かを判断する。受信していないと判断された場合、処理はステップS602に戻る。一方、AP切り替え通知情報420を受信したと判断した場合、処理はステップS609に進む。このAP切り替え通知情報は、図3のステップS316で送信される情報に相当する。   In step S608, the control unit 101 determines whether the AP switching notification information 420 has been received from another device in the network via the connection unit 111. If it is determined that it has not been received, the process returns to step S602. On the other hand, if it is determined that the AP switching notification information 420 has been received, the process proceeds to step S609. This AP switching notification information corresponds to the information transmitted in step S316 in FIG.

ステップS609において、制御部101は、生成していたネットワークを消滅させ、簡易AP機器としての動作を停止する。   In step S609, the control unit 101 deletes the generated network and stops the operation as the simple AP device.

続いて、ステップS610において、制御部101は、デジタルカメラ100をCL機器として動作させる。ステップS609およびステップS610の処理は、図3のステップS319に相当する。   Subsequently, in step S610, the control unit 101 operates the digital camera 100 as a CL device. The processes in steps S609 and S610 correspond to step S319 in FIG.

そして、ステップS611にて制御部101は、ステップS608で受信したAP切り替え通知情報420に基づき、AP切り替え通知情報420の送信元の機器が新たに生成するネットワークに参加するための処理を実行する。このステップの処理は、図3のステップS322に相当する。   In step S <b> 611, the control unit 101 executes processing for participating in a network newly generated by the transmission source device of the AP switching notification information 420 based on the AP switching notification information 420 received in step S <b> 608. The processing in this step corresponds to step S322 in FIG.

以上が、デジタルカメラ100が簡易AP機器として動作する際の処理の説明である。   The above is the description of the processing when the digital camera 100 operates as a simple AP device.

続いて、本実施形態のデジタルカメラ100がCL機器として動作する際の処理について説明する。図7は、本実施形態のデジタルカメラ100がCL機器として動作する場合の処理を示すフローチャートである。本フローチャートは、デジタルカメラ100がCL機器としての動作を開始することに応じて開始される。デジタルカメラ100がCL機器としての動作を開始する場合は、例えばユーザのメニュー操作により指示を受け付けたことに応じて開始する場合や、前述の図6のステップS610や後述の図8のステップS808の処理により開始する場合が考えられる。   Next, processing when the digital camera 100 of the present embodiment operates as a CL device will be described. FIG. 7 is a flowchart showing processing when the digital camera 100 of the present embodiment operates as a CL device. This flowchart is started in response to the digital camera 100 starting an operation as a CL device. When the digital camera 100 starts the operation as the CL device, for example, when the digital camera 100 starts in response to receiving an instruction by a user's menu operation, the above-described step S610 in FIG. 6 or the later-described step S808 in FIG. The case where it starts by processing is considered.

ステップS701〜ステップS703については、図6のステップS601〜ステップS603と同様の処理が実行されるため、説明は省略する。   About step S701-step S703, since the process similar to step S601-step S603 of FIG. 6 is performed, description is abbreviate | omitted.

まず、ステップS703で、ネットワークの情報の要求を受信したと判断した場合について述べる。この場合、処理はステップS704に進む。以下、ステップS703でネットワークの情報を要求した要求元の機器を相手機器と呼ぶ。   First, a case where it is determined in step S703 that a request for network information has been received will be described. In this case, the process proceeds to step S704. Hereinafter, the request source device that requested the network information in step S703 is referred to as a counterpart device.

ステップS704において、制御部101は、相手機器を、自機が簡易AP機器として動作することで生成するネットワークに参加させられるか否かを判断する。具体的には、制御部110は、相手機器をネットワークに参加させた場合の全参加機器数と、自機の不揮発性メモリに記録されている最大接続数とを比較する。そして、相手機器をネットワークに参加させた場合の全参加機器数が最大接続数を超過するか否かを判断する。このステップの処理は、デジタルカメラ100の動作としては同様であるものの、現在生成されている他機のネットワークではなく、自機が新たに生成するネットワークに参加し得るか否かを判断するという点で、図6のステップS604とは異なる。   In step S704, the control unit 101 determines whether or not the partner device can participate in the network generated when the own device operates as a simple AP device. Specifically, the control unit 110 compares the total number of participating devices when the counterpart device participates in the network and the maximum number of connections recorded in the nonvolatile memory of the own device. Then, it is determined whether or not the total number of participating devices exceeds the maximum number of connections when the counterpart device participates in the network. Although the processing of this step is the same as the operation of the digital camera 100, it is determined whether or not the own device can participate in the newly generated network, not the network of the other device currently generated. This is different from step S604 in FIG.

ステップS704で、制御部101が最大接続数を超過すると判断した場合、処理はステップS711に進み、相手機器に、参加が不可能である旨を通知する。   If the control unit 101 determines in step S704 that the maximum number of connections has been exceeded, the process proceeds to step S711 to notify the counterpart device that participation is not possible.

一方、ステップS704で、最大接続数を超過しないと判断した場合、処理はステップS705に進む。   On the other hand, if it is determined in step S704 that the maximum number of connections is not exceeded, the process proceeds to step S705.

ステップS705では、制御部101は、現在ネットワークを生成している機器の替わりに、自機が簡易AP機器として動作し、ネットワークを再構築するためにかかる時間として、AP切り替え時間を算出する。この処理は、図3のステップS314の処理に相当する。   In step S705, the control unit 101 calculates the AP switching time as the time required for the own device to operate as a simple AP device and reconstruct the network instead of the device that is currently generating the network. This process corresponds to the process of step S314 in FIG.

ステップS706では、制御部101は、近接無線通信部110を介して、相手機器に対して、ネットワークに参加するための情報を送信する。ここで送信される情報は、現在のネットワークに参加するための情報ではなく、現在のネットワークの替わりに、自機が生成するネットワークに参加するための情報である。送信される情報の項目の一例としては、ステップS605で送信される情報と同様に、図4(b)に示される。本フローチャートの場合は、簡易AP機器が切り替えられるため、新たにネットワークが生成されるまで待機する時間の目安として、ステップS705で算出されたAP切り替え時間も、相手機器に送信される。また、これを受けた相手機器は、新たにネットワークが生成されるまで待機した後、CL機器として動作を開始し、受信した情報に基づきデジタルカメラ100が新たに生成するネットワークに参加するための処理を実行する。このように、他機の生成したネットワークの情報を外部に出力しないようにする一方で、自機の生成するネットワークの情報を出力する。これにより、ネットワークのセキュリティ性を保ちつつ、ユーザにとって手軽なネットワークへの参加を実現することができる。   In step S706, the control unit 101 transmits information for participating in the network to the counterpart device via the close proximity wireless transfer unit 110. The information transmitted here is not information for participating in the current network but information for participating in the network generated by the own device instead of the current network. An example of the item of information to be transmitted is shown in FIG. 4B, similarly to the information transmitted in step S605. In the case of this flowchart, since the simple AP device is switched, the AP switching time calculated in step S705 is also transmitted to the counterpart device as a guide for the time to wait until a new network is generated. In addition, the partner device that has received this waits until a new network is generated, and then starts to operate as a CL device, and a process for joining the network that the digital camera 100 newly generates based on the received information. Execute. As described above, the network information generated by the own device is output while the network information generated by the other device is not output to the outside. As a result, it is possible to realize easy network participation for the user while maintaining the security of the network.

同様に、ステップS707で、制御部101は、現在のネットワークに参加している他の機器に対しても、接続部111を介して、現在のネットワークの替わりに自機が生成するネットワークに参加するための情報を送信する。   Similarly, in step S707, the control unit 101 also participates in the network generated by itself instead of the current network via the connection unit 111 for other devices participating in the current network. Send information for.

ステップS708では、制御部101は、デジタルカメラ100を現在のネットワークから離脱させる。   In step S708, the control unit 101 causes the digital camera 100 to leave the current network.

そして、ステップS709にて、制御部101は、CL機器としての動作を終了し、替わりに簡易AP機器としての動作を開始する。すなわち、先のステップS706やステップS707で送信した情報に基づく新たなネットワークを生成し、各機器からの接続を待つ。   In step S709, the control unit 101 ends the operation as the CL device, and instead starts the operation as the simple AP device. That is, a new network based on the information transmitted in the previous step S706 or step S707 is generated, and a connection from each device is waited for.

最後に、ステップS710で、制御部101は、CL機器として動作する相手機器や、前のネットワークに参加していた各機器からのネットワークへの参加を受け付ける。具体的には、接続要求への応答、およびDHCPサーバとしての機能によるIPアドレスの割り振りを経て、各機器をネットワークに参加させる。この結果、デジタルカメラ100、相手機器、および前のネットワークに参加していた各機器は、それぞれお互いにアプリケーションレベルで通信し合うことができるようになる。なお、ここで元のネットワークに参加していた機器に割り振るIPアドレスについては、WLAN管理情報を参照することで、元のネットワークへの参加時に利用されていた値と同じ値を割り振るようにしてもよい。   Finally, in step S710, the control unit 101 accepts participation in the network from the counterpart device operating as the CL device and each device participating in the previous network. Specifically, each device is allowed to participate in the network through a response to the connection request and an IP address allocation by a function as a DHCP server. As a result, the digital camera 100, the counterpart device, and each device participating in the previous network can communicate with each other at the application level. Note that the IP address assigned to the device that participated in the original network is assigned the same value as that used when joining the original network by referring to the WLAN management information. Good.

以上が、ステップS703でネットワークの情報の要求を受信したと判断した場合である。   The above is the case where it is determined in step S703 that a network information request has been received.

次に、ステップS703で、ネットワークの情報の要求を受信しなかったと判断された場合について述べる。この場合、処理はステップS712に進む。   Next, a case where it is determined in step S703 that a network information request has not been received will be described. In this case, the process proceeds to step S712.

ステップS712では、図6のステップS608と同様の処理が実行される。ステップS712でAP切り替え通知情報を受信したと判断された場合、処理はステップS713に進む。   In step S712, processing similar to that in step S608 in FIG. 6 is executed. If it is determined in step S712 that AP switching notification information has been received, the process proceeds to step S713.

ステップS713では、制御部101は、現在のネットワークから離脱する。   In step S713, the control unit 101 leaves the current network.

続いて、ステップS714において、制御部101は、ステップS712で受信したAP切り替え通知情報420に基づき、新たなネットワークへの参加を要求する。このステップの処理は、図3のステップS323に相当する。   Subsequently, in step S714, the control unit 101 requests participation in a new network based on the AP switching notification information 420 received in step S712. The processing in this step corresponds to step S323 in FIG.

以上が、デジタルカメラ100がCL機器として動作する際の処理の説明である。   The above is the description of the processing when the digital camera 100 operates as a CL device.

続いて、本実施形態においてデジタルカメラ100が近接無線通信を利用してネットワークに参加する際の動作について説明する。図8は、本実施形態のデジタルカメラ100の動作を示すフローチャートである。本フローチャートは、ユーザが操作部105を介して図5(a)に示すアイコン502を選択することに応じて開始される。   Next, an operation when the digital camera 100 participates in a network using close proximity wireless communication in the present embodiment will be described. FIG. 8 is a flowchart showing the operation of the digital camera 100 of the present embodiment. This flowchart is started in response to the user selecting the icon 502 shown in FIG. 5A via the operation unit 105.

ステップS801では、制御部101は、自機が既にネットワークを生成している、またはいずれかのネットワークに参加済みであるかを判断する。具体的には、自機がAP機器またはCL機器のいずれかとして動作しているか否かを参照する。制御部101が、自機がAP機器としてもCL機器としても動作していないと判断した場合、処理はステップS804に進む。また、制御部101が、自機がAP機器として動作していると判断した場合、処理はステップS802に進む。ステップS802では、制御部101は、生成しているネットワークを消滅させ、ステップS804に進む。また、制御部101が、自機がCL機器として動作していると判断した場合、処理はステップS803に進む。ステップS803では、制御部101は、参加しているネットワークから離脱し、ステップS804に進む。   In step S801, the control unit 101 determines whether the own device has already generated a network or has already joined any network. Specifically, reference is made to whether or not the own device is operating as either an AP device or a CL device. If the control unit 101 determines that the own device is not operating as an AP device or a CL device, the process proceeds to step S804. If the control unit 101 determines that the own device is operating as an AP device, the process proceeds to step S802. In step S802, the control unit 101 deletes the generated network, and the process proceeds to step S804. If the control unit 101 determines that the own device is operating as a CL device, the process proceeds to step S803. In step S803, the control unit 101 leaves the participating network and proceeds to step S804.

ステップS804では、制御部101は、ネットワークに参加中の機器との近接無線通信が確立したか否かを判断する。近接無線通信が確立していないと判断された場合、本ステップの処理が繰り返される。近接無線通信が確立したと判断された場合、処理はステップS805に進む。   In step S804, the control unit 101 determines whether close proximity wireless communication with a device participating in the network has been established. When it is determined that the close proximity wireless communication has not been established, the process of this step is repeated. If it is determined that close proximity wireless communication has been established, the process proceeds to step S805.

ステップS805では、制御部101は、近接無線通信を介して、ネットワークに参加中の機器に対して、ネットワークに参加するための情報(すなわち図4(b)に示す情報)を要求し、その応答を受信することで、ネットワークに参加中の機器から情報を取得する。   In step S805, the control unit 101 requests information for participating in the network (that is, information shown in FIG. 4B) from the device participating in the network via the proximity wireless communication, and responds to the request. To receive information from the devices participating in the network.

続いて、ステップS806では、制御部101は、ネットワークに参加可能か否かを判断する。具体的には、ステップS805での要求の結果、ネットワークに参加中の機器から、ネットワークへの参加が不可能である旨を通知された場合、制御部101は、ネットワークに参加不可能であると判断する。このように判断される場合は、例えば、図6のステップS607や図7のステップS711で送信される参加不可の通知を受信した場合である。この場合は、本フローチャートの処理を終了する。なお、終了前に、例えば「接続数超過のためネットワークに参加できません」等のメッセージを表示させることによりユーザに接続できなかった旨を通知するようにしてもよい。   Subsequently, in step S806, the control unit 101 determines whether it is possible to participate in the network. Specifically, as a result of the request in step S805, if the device that is participating in the network is notified that participation in the network is impossible, the control unit 101 cannot participate in the network. to decide. Such a determination is made, for example, when a notification indicating that participation is not possible transmitted in step S607 in FIG. 6 or step S711 in FIG. 7 is received. In this case, the process of this flowchart is terminated. Before the end, for example, a message such as “Cannot join the network because the number of connections has been exceeded” may be displayed to notify the user that the connection could not be made.

一方、ステップS805での要求の結果、ネットワークに参加するための情報を受信した場合、制御部101は、ネットワークに参加可能であると判断する。このように判断される場合は、例えば図6のステップS605や図7のステップS706で送信される図4(b)に示すような情報が受信された場合である。この場合、処理はステップS807に進む。   On the other hand, as a result of the request in step S805, when the information for participating in the network is received, the control unit 101 determines that it can participate in the network. For example, the determination is made when information as shown in FIG. 4B transmitted in step S605 of FIG. 6 or step S706 of FIG. 7 is received. In this case, the process proceeds to step S807.

ステップS807では、制御部101は、タイマーを開始させ、ステップS806で受信した情報に含まれるAP切り替え時間が経過するまで待機する。なお、相手機器がAP機器として動作している場合は、AP機器の切り替えの必要が無いため、AP切り替え時間は0secである。すなわち、この場合は実質的に本ステップの処理を実行することなくステップS808に進む。   In step S807, the control unit 101 starts a timer and waits until the AP switching time included in the information received in step S806 has elapsed. Note that when the counterpart device is operating as an AP device, there is no need to switch the AP device, so the AP switching time is 0 sec. That is, in this case, the process proceeds to step S808 substantially without executing the process of this step.

続くステップS808では、制御部101は、CL機器としての動作を開始させる。   In subsequent step S808, the control unit 101 starts an operation as a CL device.

そして、ステップS809にて、制御部101は、ステップS806で受信した情報に基づくネットワークに参加要求を送信し、その応答の受信を経てネットワークに参加する。   In step S809, the control unit 101 transmits a participation request to the network based on the information received in step S806, and participates in the network through reception of the response.

以上が、デジタルカメラ100が近接無線通信を利用してネットワークに参加する際の動作の説明である。   The above is the description of the operation when the digital camera 100 participates in the network using the proximity wireless communication.

以上、本実施形態のデジタルカメラ100では、他機の生成したネットワークの情報を外部に出力しないようにする一方で、自機の生成するネットワークの情報を出力する。これにより、セキュリティ性を保ちつつ、手軽なネットワークの参加を実現することができる。   As described above, in the digital camera 100 according to the present embodiment, the network information generated by the other device is not output to the outside while the network information generated by the own device is output. As a result, it is possible to realize easy network participation while maintaining security.

[第2の実施形態]
第1の実施形態では、ネットワークに参加する側の機器が、例えば図5のアイコン502を選択したことにより、ネットワークの消滅・離脱を経て、未接続の状態になってから、ネットワークに参加する処理を行う場合について述べた。これに対し、本実施形態では、アイコン502の選択の時点ではネットワークを離脱せず、近接無線通信が確立した両機器の状態を考慮して、どちらのネットワークを優先するかを適切に制御する場合について述べる。なお、本実施形態は第1の実施形態と共通する部分が多いため、本実施形態特有の部分を中心に説明する。
[Second Embodiment]
In the first embodiment, when a device that participates in the network selects the icon 502 in FIG. 5 for example, the network is extinguished / detached, and after joining the network, the process of joining the network Mentioned when doing. On the other hand, in the present embodiment, when the icon 502 is selected, the network is not disconnected and the network to be prioritized is controlled in consideration of the state of both devices with which close proximity wireless communication has been established. Is described. Since this embodiment has many parts in common with the first embodiment, the description will focus on the parts specific to this embodiment.

上述のように、本実施形態では、近接無線通信が確立した両機器の状態を考慮してネットワークへの参加処理を制御する。特に、本実施形態ではAP機器の生成しているネットワークを最優先にする。すなわち、AP機器のネットワークを消滅させないよう制御する。例えば、あるネットワークを生成しているAP機器と、別のネットワークに参加しているCL機器との近接無線通信が確立した場合には、CL機器がネットワークを離脱して、AP機器のネットワークに参加する。   As described above, in this embodiment, the network participation process is controlled in consideration of the states of both devices that have established close proximity wireless communication. In particular, in this embodiment, the network generated by the AP device is given the highest priority. That is, control is performed so that the AP device network does not disappear. For example, when close proximity wireless communication is established between an AP device generating a certain network and a CL device participating in another network, the CL device leaves the network and joins the network of the AP device. To do.

また、AP機器同士の近接無線通信が確立した場合には、本実施形態では、両機器のネットワークは維持される。すなわち、ネットワークの参加処理は行われない。これは、各機器がそれぞれ生成しているネットワークに参加している他の機器の通信を妨げる恐れがあるためである。   Further, when close proximity wireless communication between AP devices is established, the network of both devices is maintained in this embodiment. That is, the network participation process is not performed. This is because there is a possibility that communication of other devices participating in the network generated by each device may be hindered.

このように、本実施形態のデジタルカメラ100では、近接無線通信が確立した両機器の状態に応じて、どちらのネットワークの維持を優先するかを適切に制御する。なお、CL機器同士の近接無線通信が確立した場合には、アイコン502が選択された方の機器がネットワークを離脱し、もう一方の機器がAP機器となり生成したネットワークに参加する。すなわち、アイコン502の選択に応じてどちらのネットワークの維持を優先するかを制御する。   As described above, in the digital camera 100 according to the present embodiment, which network is to be prioritized is appropriately controlled according to the state of both devices in which close proximity wireless communication is established. When close proximity wireless communication between CL devices is established, the device with the icon 502 selected leaves the network, and the other device becomes an AP device and participates in the generated network. That is, it controls which network maintenance is prioritized according to the selection of the icon 502.

以下、自機がAP機器として動作している状態の場合、CL機器として動作している状態の場合、どちらの状態でもない場合の三つの場合についてそれぞれデジタルカメラ100の動作を説明する。   Hereinafter, the operation of the digital camera 100 will be described for each of three cases: when the own device is operating as an AP device, when operating as a CL device, and when neither device is in either state.

図9は、本実施形態のデジタルカメラ100がAP機器として動作する場合の処理を示すフローチャートである。本フローチャートは、デジタルカメラ100が簡易AP機器としての動作を開始することに応じて開始される。デジタルカメラ100がAP機器としての動作を開始する場合は、例えばユーザのメニュー操作により指示を受け付けたことに応じて開始する場合や、後述の図11のステップS1117や図12のステップS1210の処理により開始する場合が考えられる。   FIG. 9 is a flowchart showing processing when the digital camera 100 of the present embodiment operates as an AP device. This flowchart is started when the digital camera 100 starts an operation as a simple AP device. When the digital camera 100 starts operating as an AP device, for example, when it starts in response to receiving an instruction by a user's menu operation, or by processing in step S1117 in FIG. 11 and step S1210 in FIG. It is possible to start.

ステップS901とステップS902は、図6のステップS601とステップS6902と同様である。   Steps S901 and S902 are the same as steps S601 and S6902 in FIG.

ステップS903では、制御部101は、近接無線通信部112を介して他機の近接を検知し、近接無線通信が確立したか否かを判断する。制御部101が、近接無線通信が確立していないと判断した場合、処理はステップS911に進む。ステップS911〜ステップS914の処理は図6のステップS608〜ステップS611の処理と同様の処理が実行される。一方、制御部110が、近接無線通信が確立したと判断した場合、処理はステップS904に進む。   In step S903, the control unit 101 detects the proximity of another device via the close proximity wireless communication unit 112, and determines whether close proximity wireless communication has been established. If the control unit 101 determines that close proximity wireless communication has not been established, the process proceeds to step S911. The processing in steps S911 to S914 is the same as the processing in steps S608 to S611 in FIG. On the other hand, if control unit 110 determines that close proximity wireless communication has been established, the process proceeds to step S904.

ステップS904では、制御部101は、近接無線通信部112を介して、近接無線通信が確立できた相手(以下、相手機器)と、図10に示すような情報を交換し合う。すなわち、デジタルカメラ100の制御部101は、図10に示す各項目の自機の情報を、近接無線通信を介して相手機器に送信すると共に、図10に示す各項目の相手機器の情報を、近接無線通信を介して相手機器から受信する。   In step S904, the control unit 101 exchanges information as illustrated in FIG. 10 with a partner (hereinafter referred to as a partner device) with which close proximity wireless communication has been established via the close proximity wireless communication unit 112. That is, the control unit 101 of the digital camera 100 transmits the information of each item shown in FIG. 10 to the counterpart device via the proximity wireless communication, and the information of the counterpart device of each item shown in FIG. Receive from the partner device via proximity wireless communication.

図10に示す情報には、図4(b)に示す情報に加えて、自機がCL機器・AP機器として動作しているか、又はそのいずれとしても動作していないかを示す情報であるWLAN状態1001が含まれる。更に、図6のステップS604での判断で用いた、自機が生成したネットワークへの参加可能な機器の上限を示す情報、すなわち最大接続数1002、および現在のネットワークに参加している機器の数1003も含まれる。これらの情報は、デジタルカメラ100のネットワークに参加可能かどうかを相手機器が判断するために用いられる。この判断については後述する。なお、ここでは自機はAP機器として動作しているので、AP機器が切り替わることはない。すなわち、AP切り替え時間は、ここでは0secとなる。   In addition to the information shown in FIG. 4B, the information shown in FIG. 10 includes information indicating whether the device is operating as a CL device / AP device or not operating as either of them. State 1001 is included. Furthermore, the information used in the determination in step S604 in FIG. 6 and indicating the upper limit of devices that can be joined to the network generated by the own device, that is, the maximum number of connections 1002, and the number of devices participating in the current network. 1003 is also included. These pieces of information are used by the counterpart device to determine whether the digital camera 100 can participate in the network. This determination will be described later. Here, since the own device is operating as an AP device, the AP device is not switched. That is, the AP switching time is 0 sec here.

続くステップS905では、制御部101は、ステップS904で受信した情報を参照してデジタルカメラ100は相手機器の動作の状態を判断する。制御部101が、相手機器がAP機器としてもCL機器としても動作していない、すなわち未接続の状態であると判断した場合、処理はステップS907に進む。ステップS907およびステップS908では、図6のステップS604とステップS606と同様の処理が実行される。   In subsequent step S905, the control unit 101 refers to the information received in step S904, and the digital camera 100 determines the operation state of the counterpart device. If the control unit 101 determines that the counterpart device is not operating as an AP device or a CL device, that is, is in an unconnected state, the process proceeds to step S907. In steps S907 and S908, processing similar to that in steps S604 and S606 in FIG. 6 is executed.

また、制御部101が、相手機器がAP機器として動作していると判断した場合は、どちらの機器もAP機器として動作してネットワークを生成していることになる。すなわち、この場合に両機器が接続するためには、いずれか一方のネットワークを消滅させなければならず、消滅させられるネットワークに参加している他の機器の通信に不都合が生じる恐れがある。   When the control unit 101 determines that the counterpart device is operating as an AP device, both devices operate as AP devices and generate a network. That is, in this case, in order for both devices to connect, one of the networks must be deleted, which may cause inconvenience in communication with other devices participating in the network to be deleted.

そこで、本実施形態では、AP機器として動作している機器同士では接続できないよう制御する。すなわち、この場合処理はステップS909に進み、制御部101はネットワークへの参加が不可能である旨をユーザに通知する。例えば、制御部101は、表示部106に「同一のネットワークに参加できません」といったメッセージを表示させることで通知する。   Therefore, in this embodiment, control is performed so that devices operating as AP devices cannot be connected. That is, in this case, the process proceeds to step S909, and the control unit 101 notifies the user that participation in the network is impossible. For example, the control unit 101 notifies the display unit 106 by displaying a message such as “cannot participate in the same network”.

また、制御部101が、相手機器がCL機器として動作していると判断した場合、処理はステップS906に進む。   If the control unit 101 determines that the counterpart device is operating as a CL device, the process proceeds to step S906.

ステップS906では、制御部101は、相手機器が同一ネットワーク内の機器であるか否かを判断する。具体的には、制御部101は、ステップS904で受信した情報に含まれる相手機器のIPアドレスがWLAN管理情報に含まれているか否かを判断する。制御部101が、相手機器のIPアドレスがWLAN管理情報に含まれていると判断した場合、相手機器が同一ネットワーク内の機器であると判断される。この場合は、既にネットワークに参加済みであるから、ステップS907やステップS908の処理を行う必要はない。そのため、この場合は処理はステップS909に進む。一方、制御部101が、相手機器のIPアドレスがWLAN管理情報に含まれていないと判断した場合、相手機器が同一ネットワーク内の機器でないと判断される。この場合は、ステップS907およびステップS908の処理を実行し、相手機器のネットワークへの参加を受け付ける。   In step S906, the control unit 101 determines whether the counterpart device is a device in the same network. Specifically, the control unit 101 determines whether or not the IP address of the counterpart device included in the information received in step S904 is included in the WLAN management information. When the control unit 101 determines that the IP address of the counterpart device is included in the WLAN management information, it is determined that the counterpart device is a device in the same network. In this case, since the network has already been joined, it is not necessary to perform the processing in step S907 and step S908. Therefore, in this case, the process proceeds to step S909. On the other hand, when the control unit 101 determines that the IP address of the counterpart device is not included in the WLAN management information, it is determined that the counterpart device is not a device in the same network. In this case, the processing of step S907 and step S908 is executed, and participation of the counterpart device in the network is accepted.

以上が、本実施形態におけるデジタルカメラ100がAP機器として動作している場合の処理である。このように自機がAP機器として動作している場合は、自機のネットワークの維持を優先する。   The above is the processing when the digital camera 100 in the present embodiment is operating as an AP device. Thus, when the own device is operating as an AP device, priority is given to maintaining the network of the own device.

続いて、本実施形態におけるデジタルカメラ100がCL機器として動作する場合の処理について説明する。   Next, processing when the digital camera 100 according to the present embodiment operates as a CL device will be described.

図11は、本実施形態のデジタルカメラ100がCL機器として動作する場合の処理を示すフローチャートである。本フローチャートは、デジタルカメラ100がCL機器としての動作を開始することに応じて開始される。デジタルカメラ100がCL機器としての動作を開始する場合は、例えばユーザのメニュー操作により指示を受け付けたことに応じて開始する場合や、前述の図9のステップS912や後述の図12のステップS1207の処理により開始する場合が考えられる。   FIG. 11 is a flowchart showing processing when the digital camera 100 of the present embodiment operates as a CL device. This flowchart is started in response to the digital camera 100 starting an operation as a CL device. When the digital camera 100 starts operating as a CL device, for example, in response to receiving an instruction by a user's menu operation, the above-described step S912 in FIG. 9 or step S1207 in FIG. The case where it starts by processing is considered.

ステップS1101〜ステップS1103は、図9のステップS901〜ステップS903と同様の処理が実行される。また、ステップS1120〜ステップS1122の処理は、図7のステップS712〜ステップS714の処理と同様の処理が実行される。   In steps S1101 to S1103, processing similar to that in steps S901 to S903 in FIG. 9 is executed. Moreover, the process of step S1120-step S1122 performs the process similar to the process of step S712-step S714 of FIG.

ステップS1104では、制御部101は、図7のステップS705の処理を実行する。すなわち、AP切り替え時間を算出する。   In step S1104, the control unit 101 executes the process of step S705 of FIG. That is, the AP switching time is calculated.

続くステップS1105、S1106では、図9のステップS904、ステップS905と同様の処理が実行される。   In subsequent steps S1105 and S1106, processing similar to that in steps S904 and S905 in FIG. 9 is executed.

次にステップS1106にて制御部101が、相手機器がAP機器として動作していると判断した場合について説明する。この場合デジタルカメラ100が相手機器のネットワークに参加する側の機器として動作することになる。つまり、相手機器のネットワークを優先する。この場合処理はステップS1108に進む。   Next, a case where the control unit 101 determines in step S1106 that the counterpart device is operating as an AP device will be described. In this case, the digital camera 100 operates as a device that participates in the network of the counterpart device. That is, priority is given to the network of the counterpart device. In this case, the process proceeds to step S1108.

ステップS1108では、制御部101は、相手機器が同一ネットワーク内の機器かどうかを判断する。相手機器が同一ネットワーク内の機器であると判断された場合、既にネットワークに参加済みであるため、再度ネットワークへの参加処理を行う必要はない。そのため、この場合処理はステップS1119に進み、制御部101は、ネットワークへの参加が不可能である旨をユーザに送信する。一方、ステップS1108で、制御部101が、相手機器が同一ネットワーク内の機器ではないと判断した場合、処理はステップS1109に進む。   In step S1108, the control unit 101 determines whether the counterpart device is a device in the same network. If it is determined that the counterpart device is a device in the same network, it has already been joined to the network, so there is no need to perform the network joining process again. Therefore, in this case, the process proceeds to step S1119, and the control unit 101 transmits to the user that participation in the network is impossible. On the other hand, if the control unit 101 determines in step S1108 that the counterpart device is not a device in the same network, the process proceeds to step S1109.

ステップS1109では、制御部101は、相手機器のネットワークに参加可能であるか否かを判断する。具体的には、制御部101はステップS1105で相手機器から受信した情報に含まれる最大接続と、相手機器の現在の接続機器数に1を足した数とを比較する。比較の結果、相手機器の現在の接続機器数に1を足した数が最大接続数を超える場合、自機は相手機器のネットワークに参加できないと判断する。この場合、処理はステップS1119に進み、制御部110は、ネットワークへの参加の処理を実行しない旨を相手機器に送信する。一方、比較の結果、相手機器の現在の接続機器数に1を足した数が最大接続数を超えない場合、自機は相手機器のネットワークに参加できると判断する。この場合、処理はステップS1110に進む。ステップS1110では、図7のステップS713と同様の処理が実行される。   In step S1109, the control unit 101 determines whether it is possible to participate in the network of the counterpart device. Specifically, the control unit 101 compares the maximum connection included in the information received from the counterpart device in step S1105 with the number obtained by adding 1 to the current number of connected devices of the counterpart device. As a result of the comparison, when the number of the connected devices plus 1 is greater than the maximum number of connected devices, it is determined that the own device cannot join the network of the connected device. In this case, the process proceeds to step S1119, and the control unit 110 transmits to the counterpart device that the network participation process is not executed. On the other hand, as a result of the comparison, if the number obtained by adding 1 to the current number of connected devices of the partner device does not exceed the maximum number of connections, it is determined that the own device can join the network of the partner device. In this case, the process proceeds to step S1110. In step S1110, processing similar to that in step S713 in FIG. 7 is executed.

続いて、ステップS1111では、制御部101は、ステップS1105で受信した相手機器からの情報に含まれるAP切り替え時間の分だけ待機する。ステップS1106で相手機器がAP機器として動作していると判断した場合はAP切り替え時間は0secであるから、実質的に本ステップの処理が行われずに次のステップの処理に進む。この処理は図8のステップS807と同様である。   Subsequently, in step S <b> 1111, the control unit 101 waits for the AP switching time included in the information from the counterpart device received in step S <b> 1105. If it is determined in step S1106 that the counterpart device is operating as an AP device, the AP switching time is 0 sec. Therefore, the process of this step is not substantially performed and the process proceeds to the next step. This process is the same as step S807 in FIG.

待機を終えると、ステップS1112にて制御部101は、相手機器が構築したネットワークに参加するための処理を実行する。   When the standby is finished, in step S1112, the control unit 101 executes a process for participating in the network constructed by the counterpart device.

以上が、ステップS1106にて制御部101により相手機器がAP機器として動作していると判断された場合の説明である。   The above is the description when the control unit 101 determines in step S1106 that the counterpart device is operating as an AP device.

次に、ステップS1106にて制御部101が、相手機器がCL機器として動作していると判断した場合について説明する。この場合、処理はステップS1107に進む。   Next, a case will be described in which the control unit 101 determines in step S1106 that the counterpart device is operating as a CL device. In this case, the process proceeds to step S1107.

ステップS1107では、制御部101は、自機がネットワークの参加側であるか否かを判断する。具体的には、制御部101は、近接無線通信が確立する前に、図5のアイコン502の選択を受け付けているかどうかを判断する。このアイコン502の選択を受け付けていると判断した場合、デジタルカメラ100は相手機器のネットワークへの参加側の機器であると判断する。この場合、処理はステップS1108に進み、相手機器がAP機器として動作していると判断された場合と同様の処理が実行される。すなわち、被参加側の機器のネットワークを優先する。結果として、相手機器はCL機器ではなくAP機器として動作してネットワークを生成し、デジタルカメラ100はこのネットワークに参加することになる。   In step S1107, the control unit 101 determines whether or not the own device is a network participation side. Specifically, the control unit 101 determines whether selection of the icon 502 in FIG. 5 is accepted before the close proximity wireless communication is established. If it is determined that the selection of the icon 502 has been accepted, the digital camera 100 determines that the device is a device that is participating in the network of the partner device. In this case, the process proceeds to step S1108, and the same process as that performed when it is determined that the counterpart device is operating as an AP device is executed. In other words, priority is given to the network of the participating device. As a result, the counterpart device operates as an AP device instead of a CL device to generate a network, and the digital camera 100 participates in this network.

一方、アイコン502を受け付けていないと判断した場合、制御部101は、自機がネットワークへの被参加側の機器であると判断する。すなわち、自機のネットワークを優先する。この場合、処理はステップS1113に進む。   On the other hand, if it is determined that the icon 502 has not been received, the control unit 101 determines that the own device is a device to be joined to the network. That is, priority is given to its own network. In this case, the process proceeds to step S1113.

ステップS1113では、ステップS1108と同様の処理が実行される。すなわち、制御部101が、相手機器が同一ネットワーク内の機器であると判断した場合、ステップS1119を経て本フローチャートを終了する。一方、制御部101が、相手機器が同一ネットワーク内の機器でないと判断した場合、処理はステップS1114に進む。   In step S1113, the same processing as in step S1108 is executed. That is, when the control unit 101 determines that the counterpart device is a device in the same network, the process of this flowchart is ended through step S1119. On the other hand, when the control unit 101 determines that the counterpart device is not a device in the same network, the process proceeds to step S1114.

ステップS1114の処理はステップS704と同様の処理が実行される。ステップS1114にて、制御部101が、相手機器をネットワークに参加させることができないと判断した場合は、ステップS1119を経て本フローチャートを終了する。一方、制御部101が、相手機器をネットワークに参加させることができると判断した場合、処理はステップS1115に進む。   The process in step S1114 is the same as that in step S704. If the control unit 101 determines in step S1114 that the partner device cannot participate in the network, the process ends through step S1119. On the other hand, when the control unit 101 determines that the partner device can participate in the network, the process proceeds to step S1115.

ステップS1115〜ステップS1118の処理は、図7のステップS707〜ステップS710と同様の処理が実行される。   Processing in steps S1115 to S1118 is the same as that in steps S707 to S710 in FIG.

以上が、ステップS1106にて制御部101により相手機器がCL機器として動作していると判断された場合の説明である。   The above is the description when the control unit 101 determines in step S1106 that the counterpart device is operating as a CL device.

また、ステップS1106にて制御部101が、相手機器がAP機器としても、CL機器としても動作していないと判断した場合、すなわち相手機器がネットワークに接続していない場合は、処理はステップS1114に進む。ステップS1114以降の処理は上述した通りである。   If the control unit 101 determines in step S1106 that the counterpart device is not operating as an AP device or a CL device, that is, if the counterpart device is not connected to the network, the process proceeds to step S1114. move on. The processing after step S1114 is as described above.

以上が、本実施形態におけるデジタルカメラ100がCL機器として動作している場合の処理である。   The above is the processing when the digital camera 100 according to the present embodiment is operating as a CL device.

続いて、本実施形態におけるデジタルカメラ100が未接続の場合の処理について説明する。   Next, processing when the digital camera 100 in the present embodiment is not connected will be described.

図12は、本実施形態のデジタルカメラ100の動作を示すフローチャートである。本フローチャートは、ユーザが操作部105を介して図5(a)に示すアイコン502を選択することに応じて開始される。   FIG. 12 is a flowchart showing the operation of the digital camera 100 of the present embodiment. This flowchart is started in response to the user selecting the icon 502 shown in FIG. 5A via the operation unit 105.

ステップS1201は、図8のステップS801と同様の処理が実行される。   In step S1201, the same processing as step S801 in FIG. 8 is executed.

続いて、ステップS1202〜ステップS1204では、図11のステップS1104〜ステップS1106と同様の処理が実行される。   Subsequently, in steps S1202 to S1204, processing similar to that in steps S1104 to S1106 in FIG. 11 is executed.

次に、ステップS1204にて制御部101が、相手機器がAP機器又はCL機器として動作していると判断した場合について説明する。この場合、処理はステップS1205に進む。   Next, the case where the control unit 101 determines in step S1204 that the counterpart device is operating as an AP device or a CL device will be described. In this case, the process proceeds to step S1205.

ステップS1205〜ステップS1208では、図8のステップS806〜ステップS809と同様の処理が実行される。   In steps S1205 to S1208, processing similar to that in steps S806 to S809 in FIG. 8 is executed.

次に、ステップS1204にて制御部101が、相手機器がAP機器としてもCL機器としても動作していないと判断した場合について説明する。すなわち、相手機器がネットワークに未接続の場合について説明する。この場合、処理はステップS1209に進む。   Next, a case where the control unit 101 determines in step S1204 that the counterpart device is not operating as an AP device or a CL device will be described. That is, a case where the counterpart device is not connected to the network will be described. In this case, the process proceeds to step S1209.

ステップS1209では、制御部101は、図11のステップS1107と同様の処理を実行する。ステップS1209で制御部101が、自機がネットワークへの参加側の機器であると判断した場合、処理はステップS1205に進む。ステップS1205以降の処理は上述した通りである。ステップS1209で制御部101が、自機がネットワークへの参加側の機器でないと判断した場合、処理はステップS1210に進む。ステップS1210およびステップS1211では、図7のステップS709およびステップS710と同様の処理が実行される。   In step S1209, the control unit 101 executes the same processing as in step S1107 in FIG. If the control unit 101 determines in step S1209 that the own device is a device participating in the network, the process proceeds to step S1205. The processing after step S1205 is as described above. If the control unit 101 determines in step S1209 that the own device is not a device participating in the network, the process proceeds to step S1210. In step S1210 and step S1211, processing similar to that in step S709 and step S710 in FIG. 7 is executed.

以上が、本実施形態におけるデジタルカメラ100が未接続の場合の処理の説明である。   The above is the description of the processing when the digital camera 100 is not connected in the present embodiment.

本実施形態では、近接無線通信を確立した両機器の動作状態に応じて、ネットワークへの参加のための処理を適切に制御するよう構成した。すなわち、近接無線通信を確立した相手機器がネットワークを生成している機器である場合はそのネットワークを最優先とし、近接無線通信を確立した相手機器がネットワークを生成している機器でない場合はネットワークへの被参加側の機器のネットワークを優先する。これにより、ユーザは各機器の動作状態を意識することなくネットワークへ参加することができると共に、ユーザが意図しないネットワークの消滅・離脱の可能性を低減することができる。   In the present embodiment, the process for joining the network is appropriately controlled according to the operating state of both devices that have established close proximity wireless communication. That is, if the partner device that has established close proximity wireless communication is a device that has created a network, that network is given the highest priority, and if the partner device that has established close proximity wireless communication is not the device that is creating the network, the network Prioritize the network of participating devices. Thereby, the user can participate in the network without being aware of the operation state of each device, and can reduce the possibility of the disappearance / detachment of the network unintended by the user.

[その他の実施形態]
上述の第2の実施形態では、AP機器として動作しているデジタルカメラ同士が近接無線通信を確立した場合、ネットワークへの参加処理を行わないよう制御される場合について述べた。これについては、CL機器として動作しているデジタルカメラ同士の場合と同様に、ユーザの操作(例えばアイコン502の選択)による指示に基づき、いずれか一方のネットワークを優先するようにしてもよい。
[Other Embodiments]
In the second embodiment described above, a case has been described in which, when digital cameras operating as AP devices establish close proximity wireless communication, control is performed so as not to perform network participation processing. With respect to this, as in the case of digital cameras operating as CL devices, one of the networks may be prioritized based on an instruction by a user operation (for example, selection of the icon 502).

更に、上述の第2の実施形態において、図10のような情報に加えて、自機のネットワークの維持を優先するか否かを示すネットワーク維持情報(NW維持情報)を交換するようにしてもよい。例えば、NW維持情報が「維持する」に設定されている場合、その機器が参加しているネットワークの消滅・離脱を行わないよう制御する。このようにした場合、近接無線通信が確立した両機器のうち、ネットワークを離脱しなければならない機器のNW維持情報が「維持する」に設定されているか否かを判断し、「維持する」に設定されている場合は、ネットワークへの参加の処理を中断する。   Furthermore, in the second embodiment described above, in addition to the information shown in FIG. 10, network maintenance information (NW maintenance information) indicating whether or not to give priority to the maintenance of the own network is exchanged. Good. For example, when the NW maintenance information is set to “maintain”, control is performed so that the network in which the device is participating does not disappear or leave. In such a case, it is determined whether or not the NW maintenance information of the device that has to leave the network is set to “maintain” among both devices that have established close proximity wireless communication, and “maintain” is determined. If set, the process of joining the network is interrupted.

具体的には、図11のステップS1109とステップS1110の間に、制御部101は、自機のNW維持情報を確認する。自機のNW維持情報が「維持する」に設定されている場合、ステップS1119に進み、ネットワークへの参加の処理は終了する。一方、自機のNW維持情報が「維持しない」に設定されている場合、ステップS1110に進み、ネットワークへの参加の処理を継続する。   Specifically, between step S1109 and step S1110 in FIG. 11, control unit 101 confirms the NW maintenance information of the own device. If the NW maintenance information of the own device is set to “maintain”, the process proceeds to step S1119, and the process of joining the network ends. On the other hand, if the NW maintenance information of the own device is set to “do not maintain”, the process proceeds to step S1110, and the process of joining the network is continued.

また、これに対応して、図11のステップS1114とステップS1115の間に、制御部101は、相手機器のNW維持情報を確認する。相手機器のNW維持情報が「維持する」に設定されている場合、ステップS1119に進み、ネットワークへの参加の処理は終了する。一方、相手機器のNW維持情報が「維持しない」に設定されている場合、ステップS1115に進み、ネットワークへの参加の処理を継続する。これにより、ユーザが意図せずにネットワークから離脱してしまう可能性を低減することができる。   Correspondingly, between step S1114 and step S1115 in FIG. 11, the control unit 101 confirms the NW maintenance information of the counterpart device. If the NW maintenance information of the counterpart device is set to “maintain”, the process proceeds to step S1119, and the network participation process ends. On the other hand, if the NW maintenance information of the counterpart device is set to “do not maintain”, the process proceeds to step S1115 to continue the process of joining the network. Thereby, possibility that a user will leave | separate from a network unintentionally can be reduced.

また、近接無線通信で授受される信号には、第三者に渡すことを許可する旨を示す情報(許可情報)を含めることができる。そこで、上述の実施形態に加えて、許可情報を利用してネットワークの参加処理を切り替えてもよい。   In addition, information (permission information) indicating permission to pass to a third party can be included in a signal transmitted and received by proximity wireless communication. Therefore, in addition to the above-described embodiment, network participation processing may be switched using permission information.

例えば、デジタルカメラ230が、AP機器として動作するデジタルカメラ210と近接無線通信を確立することで、デジタルカメラ210の生成しているネットワーク200に参加する際に、デジタルカメラ210は、許可情報と共に通信パラメータを送信する。これにより、デジタルカメラ230は、受信したデータを他機に渡してもよいと認識できる。その後、例えばデジタルカメラ240がデジタルカメラ230と近接無線通信を確立してネットワーク200に参加しようとした場合、デジタルカメラ230は近接無線通信で直接通信パラメータを渡せばよい。すなわち、わざわざAP機器を切り替える必要はない。   For example, when the digital camera 230 joins the network 200 generated by the digital camera 210 by establishing close proximity wireless communication with the digital camera 210 operating as an AP device, the digital camera 210 communicates with permission information. Send parameters. Thereby, the digital camera 230 can recognize that the received data may be transferred to another device. Thereafter, for example, when the digital camera 240 establishes close proximity wireless communication with the digital camera 230 and attempts to join the network 200, the digital camera 230 may pass the communication parameters directly by close proximity wireless communication. In other words, there is no need to switch between AP devices.

この場合、例えば図7のステップS704の判断の前に、自機が参加しているネットワークの情報が許可情報と共に得られたかどうかを判断する。そして、許可情報と共に得られたと判断された場合には、ステップS704に進む代わりに、相手機器にネットワーク情報を送信する。これにより、わざわざネットワークを消滅させる負荷を低減させることができる。   In this case, for example, prior to the determination in step S704 in FIG. 7, it is determined whether or not the information of the network in which the own device participates is obtained together with the permission information. If it is determined that the information is obtained together with the permission information, the network information is transmitted to the counterpart device instead of proceeding to step S704. As a result, it is possible to reduce the load that bothers the network.

本発明は、以下の処理を実行することによっても実現される。即ち、上述した実施形態の機能を実現するソフトウェア(プログラム)をネットワーク又は各種記憶媒体を介してシステム或いは装置に供給し、そのシステム或いは装置のコンピュータ(又はCPUやMPU等)がプログラムコードを読み出して実行する処理である。この場合、そのプログラム、及び該プログラムを記憶した記憶媒体は本発明を構成することになる。   The present invention is also 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, etc.) of the system or apparatus reads the program code. It is a process to be executed. In this case, the program and the storage medium storing the program constitute the present invention.

Claims (21)

他機と近接することにより近接無線通信を行う近接無線通信手段と、
前記近接無線通信より長い通信距離の無線通信を行う無線通信手段と、
前記無線通信手段によりネットワークを生成して他の機器のネットワークへの参加を受け付けるアクセスポイントモードと、前記無線通信手段により、他の機器により生成済みのネットワークに自機を参加させるクライアントモードとを含む複数のモードのうちいずれかのモードで、自機を動作させるよう制御する制御手段とを有し、
自機がクライアントモードの状態で前記近接無線通信手段を介して前記他機からネットワークへの参加の要求を受信した場合、前記制御手段は、自機がアクセスポイントモードで動作する旨を自機が参加する同一ネットワーク内の他の機器に対して前記無線通信手段を介して通知した後に、自機をアクセスポイントモードで動作させるよう制御することを特徴とすることを特徴とする通信装置。
Proximity wireless communication means for performing proximity wireless communication by approaching another device,
Wireless communication means for performing wireless communication over a longer communication distance than the proximity wireless communication;
An access point mode for generating a network by the wireless communication means and accepting participation of another device in the network; and a client mode for allowing the wireless device to participate in a network already generated by another device. Control means for controlling the device to operate in any one of a plurality of modes,
When the own device receives a request for joining the network from the other device via the proximity wireless communication means in the client mode, the control means confirms that the own device operates in the access point mode. A communication apparatus characterized by controlling an own device to operate in an access point mode after notifying another device in the same network through the wireless communication means.
自機がクライアントモードの状態で前記近接無線通信手段を介して前記他機からネットワークへの参加の要求を受信した場合、前記制御手段は、前記自機がアクセスポイントモードになる前に、前記自機がアクセスポイントモードになった場合に生成されるネットワークに参加するための情報を、前記近接無線通信手段を介して前記他機に送信するよう制御することを特徴とする請求項1に記載の通信装置。   When the own device receives a request to join the network from the other device via the close proximity wireless communication means in the client mode, the control means can determine whether the own device is in the access point mode before the own device enters the access point mode. 2. The apparatus according to claim 1, wherein information for participating in a network generated when a device enters an access point mode is controlled to be transmitted to the other device via the close proximity wireless communication means. Communication device. 前記自機がアクセスポイントモードの状態で前記近接無線通信手段を介して前記他機からネットワークへの参加の要求を受信した場合、前記制御手段は、前記アクセスポイントモードで動作する前記自機が生成しているネットワークへ参加するための情報を、前記近接無線通信手段を介して前記他機に送信するよう制御することを特徴とする請求項1または2に記載の通信装置。   When the own device receives a request for joining the network from the other device via the close proximity wireless communication means in the access point mode, the control means generates the own device operating in the access point mode. 3. The communication apparatus according to claim 1, wherein information for participating in a network is controlled to be transmitted to the other device via the proximity wireless communication unit. 4. 前記自機がアクセスポイントモードの状態で、前記無線通信手段が生成するネットワーク内の他の機器の無線通信手段がアクセスポイントモードとして動作する旨の通知を受信した場合、前記制御手段は、前記無線通信手段をクライアントモードで動作させるよう制御することを特徴とする請求項1乃至3のいずれか1項に記載の通信装置。   When the device itself is in the access point mode, if the wireless communication means of another device in the network generated by the wireless communication means receives notification that the wireless communication means operates in the access point mode, the control means The communication apparatus according to claim 1, wherein the communication unit is controlled to operate in a client mode. 前記自機がクライアントモードの状態で、前記無線通信手段を介して参加しているネットワーク内の他の機器の無線通信手段がアクセスポイントモードとして動作する旨の通知を受信した場合、前記制御手段は、前記無線通信手段を介して現在参加しているネットワークを離脱し、前記通知の送信元の機器が生成するネットワークに参加するよう自機を制御することを特徴とする請求項1乃至4のいずれか1項に記載の通信装置。   When the device itself is in the client mode and receives a notification that the wireless communication means of another device in the network participating via the wireless communication means operates in the access point mode, the control means 5. The apparatus according to claim 1, wherein the apparatus is controlled to leave the currently participating network via the wireless communication means and to participate in a network generated by the notification transmission source device. The communication apparatus according to claim 1. 前記無線通信手段を介して参加しているネットワーク内の機器に関する情報を保持する保持手段を更に有することを特徴とする請求項1乃至5のいずれか1項に記載の通信装置。   6. The communication apparatus according to claim 1, further comprising holding means for holding information related to devices in a network participating via the wireless communication means. 前記無線通信手段を介して参加しているネットワーク内の機器が増減することに応じて、前記保持手段が保持する情報を更新する更新手段を更に有することを特徴とする請求項6に記載の通信装置。   The communication according to claim 6, further comprising an updating unit that updates information held by the holding unit in response to an increase or decrease in devices participating in the network via the wireless communication unit. apparatus. 前記近接無線通信手段により前記他機に送信される、ネットワークに参加するための情報は、前記保持手段により保持されている情報の一部を含むことを特徴とする請求項6または7に記載の通信装置。   8. The information for joining a network, which is transmitted to the other device by the close proximity wireless communication means, includes a part of the information held by the holding means. Communication device. 前記クライアントモードで動作している自機とネットワーク内の他の機器との間で、前記無線通信手段を介してデータの送受信を行っている状態で、前記近接無線通信手段を介して前記他機からネットワークへの参加の要求を受信した場合、前記制御手段は、前記データの送受信が完了した後に、前記無線通信手段をアクセスポイントモードとして動作させるよう制御することを特徴とする請求項1乃至8のいずれか1項に記載の通信装置。   In a state where data is transmitted / received between the own device operating in the client mode and another device in the network via the wireless communication unit, the other device is transmitted via the proximity wireless communication unit. 9. When receiving a request to join a network from the network, the control unit controls the wireless communication unit to operate in an access point mode after transmission / reception of the data is completed. The communication device according to any one of the above. 前記クライアントモードで動作している自機とネットワーク内の他の機器との間で、前記無線通信手段を介してデータの送受信を行っている状態で、前記近接無線通信手段を介して前記他機からネットワークへの参加の要求を受信した場合、前記制御手段は、前記データの送受信を中断した後に、前記無線通信手段をアクセスポイントモードとして動作させるよう制御することを特徴とする請求項1乃至8のいずれか1項に記載の通信装置。   In a state where data is transmitted / received between the own device operating in the client mode and another device in the network via the wireless communication unit, the other device is transmitted via the proximity wireless communication unit. The control means controls the wireless communication means to operate in an access point mode after interrupting the transmission / reception of the data when receiving a request for participation in the network from the network. The communication device according to any one of the above. 前記制御手段は、前記無線通信手段を介して参加しているネットワーク内の機器から前記近接無線通信手段を介してネットワークへの参加の要求を受信したことによっては、前記自機のモードを変更しないことを特徴とする請求項1乃至10のいずれか1項に記載の通信装置。   The control means does not change the mode of the own device upon receiving a request for participation in the network via the proximity wireless communication means from a device in the network participating via the wireless communication means. The communication device according to claim 1, wherein the communication device is a device. 前記近接無線通信手段を介して前記他機からネットワークへの参加の要求を受信した場合、前記無線通信手段により生成されるネットワークに参加可能な機器の数に基づき、前記他機をネットワークに参加させることが可能か否かを判断する判断手段を更に有し、
前記判断手段により、前記他機をネットワークに参加させられないと判断した場合、前記制御手段は前記近接無線通信手段を介して、前記他機にネットワークに参加することが不可能である旨を通知するよう制御することを特徴とする請求項1乃至11のいずれか1項に記載の通信装置。
When a request to join the network from the other device is received via the proximity wireless communication means, the other device joins the network based on the number of devices that can be joined to the network generated by the wireless communication means. A determination means for determining whether or not it is possible,
If the determination means determines that the other device cannot participate in the network, the control means notifies the other device that it is impossible to participate in the network via the proximity wireless communication means. The communication apparatus according to claim 1, wherein control is performed so as to perform the control.
前記自機と前記他機とがそれぞれ異なるネットワークに参加している状態で、前記近接無線通信手段を介して前記他機からネットワークへの参加の要求を受信した場合、前記制御手段は、前記他機のモードと前記自機のモードとに基づき、前記他機を前記自機が生成するネットワークに参加させるか、前記自機を前記他機が生成するネットワークに参加するかを決定することを特徴とする請求項1乃至12のいずれか1項に記載の通信装置。   When the own device and the other device are participating in different networks, and when receiving a request to join the network from the other device via the proximity wireless communication device, the control device Based on the mode of the machine and the mode of the own machine, it is determined whether to join the other machine to a network generated by the own machine or to join the own machine to a network generated by the other machine. The communication device according to any one of claims 1 to 12. 被写体を撮像して画像データを生成する撮像手段を更に有し、
前記無線通信手段は、前記撮像手段により生成された画像データをネットワーク内の他の機器に送信可能であることを特徴とする請求項1乃至13のいずれか1項に記載の通信装置。
An image capturing unit that captures an image of the subject and generates image data;
The communication apparatus according to claim 1, wherein the wireless communication unit is capable of transmitting the image data generated by the imaging unit to other devices in the network.
前記無線通信手段は、ネットワーク内の他の機器から画像データを受信可能であることを特徴とする請求項1乃至14のいずれか1項に記載の通信装置。   15. The communication apparatus according to claim 1, wherein the wireless communication unit is capable of receiving image data from another device in the network. 前記近接無線通信手段は、NFCの規格に従った通信を行うことを特徴とする請求項1乃至15のいずれか1項に記載の通信装置。   The communication device according to claim 1, wherein the proximity wireless communication unit performs communication according to an NFC standard. 前記無線通信手段は、IEEE802.11の規格に従った通信を行うことを特徴とする請求項1乃至16のいずれか1項に記載の通信装置。   The communication apparatus according to any one of claims 1 to 16, wherein the wireless communication unit performs communication according to an IEEE 802.11 standard. 自機がクライアントモードの状態で参加しているネットワークを生成している機器から、前記ネットワークに参加するための情報を他の機器に公開することを許可されている状態で、前記近接無線通信手段を介して他機からネットワークへの参加の要求を受信した場合、前記制御手段は、自機をアクセスポイントモードで動作させるよう制御せず、前記ネットワークに参加するための情報を、前記近接無線通信手段を介して前記他の機器に送信するよう制御することを特徴とする請求項1乃至17のいずれか1項に記載の通信装置。   The close proximity wireless communication means in a state in which information for participating in the network is permitted to be disclosed to other devices from a device generating the network in which the device is participating in the client mode. When the request for joining the network is received from another device via the network, the control means does not control the device to operate in the access point mode, and the information for joining the network is transmitted to the proximity wireless communication. 18. The communication apparatus according to claim 1, wherein control is performed to transmit to the other device via a means. 他機と近接することにより近接無線通信を行う近接無線通信ステップと、
前記近接無線通信より長い通信距離の無線通信を利用したネットワークを生成して他の機器のネットワークへの参加を受け付けるアクセスポイントステップと、
他の機器により生成済みのネットワークに、前記近接無線通信より長い通信距離の無線通信を利用して自機を参加させるクライアントステップと、
前記クライアントステップの実行中に前記近接無線通信を介して前記他機からネットワークへの参加の要求を受信した場合、前記アクセスポイントステップを実行するよう制御する制御ステップとを有し、
前記クライアントステップの実行中に前記近接無線通信を介して前記他機からネットワークへの参加の要求を受信した場合、前記制御ステップでは、前記アクセスポイントステップを実行させる前に、アクセスポイントステップの実行により新たにネットワークを生成する旨を、自機が参加する同一ネットワーク内の他の機器に対して前記無線通信を介して通知することを特徴とする通信装置の制御方法。
Proximity wireless communication step for performing proximity wireless communication by approaching another device,
An access point step of generating a network using wireless communication having a longer communication distance than the proximity wireless communication and accepting participation of another device in the network; and
A client step of participating in a network already generated by another device using wireless communication having a communication distance longer than the proximity wireless communication;
A control step for controlling to execute the access point step when a request for participation in the network is received from the other device via the proximity wireless communication during the execution of the client step;
When a request to join the network from the other device is received via the close proximity wireless communication during the execution of the client step, the control step performs the access point step before executing the access point step. A method for controlling a communication apparatus, comprising: notifying another device in the same network in which the own device participates through the wireless communication that a new network is to be generated.
請求項19に記載のステップをコンピュータに実行させるためのプログラム。   A program for causing a computer to execute the steps according to claim 19. 請求項20のプログラムを記録したコンピュータで読み取り可能な記録媒体。   A computer-readable recording medium on which the program according to claim 20 is recorded.
JP2013099549A 2013-05-09 2013-05-09 COMMUNICATION DEVICE, COMMUNICATION DEVICE CONTROL METHOD, PROGRAM Expired - Fee Related JP6222979B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2013099549A JP6222979B2 (en) 2013-05-09 2013-05-09 COMMUNICATION DEVICE, COMMUNICATION DEVICE CONTROL METHOD, PROGRAM

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2013099549A JP6222979B2 (en) 2013-05-09 2013-05-09 COMMUNICATION DEVICE, COMMUNICATION DEVICE CONTROL METHOD, PROGRAM

Publications (2)

Publication Number Publication Date
JP2014220700A true JP2014220700A (en) 2014-11-20
JP6222979B2 JP6222979B2 (en) 2017-11-01

Family

ID=51938773

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2013099549A Expired - Fee Related JP6222979B2 (en) 2013-05-09 2013-05-09 COMMUNICATION DEVICE, COMMUNICATION DEVICE CONTROL METHOD, PROGRAM

Country Status (1)

Country Link
JP (1) JP6222979B2 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2016127379A (en) * 2014-12-26 2016-07-11 ソニー株式会社 Information processing device, control method, and program
JP2016144154A (en) * 2015-02-04 2016-08-08 キヤノン株式会社 Communication device, control method therefor, and program
US10342071B2 (en) 2017-01-16 2019-07-02 Brother Kogyo Kabushiki Kaisha Communication device, non-transitory computer-readable recording medium storing computer-readable instructions for communication device, and method executed by communication device
US10416941B2 (en) 2017-02-02 2019-09-17 Brother Kogyo Kabushiki Kaisha Communication device, non-transitory computer-readable recording medium storing computer-readable instructions for communication device, and method performed by communication device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010258619A (en) * 2009-04-22 2010-11-11 Sony Corp Radio communication device, radio communication system, radio communication method, and program
JP2010268301A (en) * 2009-05-15 2010-11-25 Canon Inc Communication device, and method for controlling the same
JP2010287964A (en) * 2009-06-09 2010-12-24 Sony Corp Communication method, information processing apparatus, and program

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010258619A (en) * 2009-04-22 2010-11-11 Sony Corp Radio communication device, radio communication system, radio communication method, and program
JP2010268301A (en) * 2009-05-15 2010-11-25 Canon Inc Communication device, and method for controlling the same
JP2010287964A (en) * 2009-06-09 2010-12-24 Sony Corp Communication method, information processing apparatus, and program

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2016127379A (en) * 2014-12-26 2016-07-11 ソニー株式会社 Information processing device, control method, and program
EP3192244A1 (en) * 2014-12-26 2017-07-19 Sony Corporation Information processing apparatus, control method, and program
US10448446B2 (en) 2014-12-26 2019-10-15 Sony Corporation Information processing apparatus with communication mode switching, control method, and program
EP3192244B1 (en) * 2014-12-26 2022-05-11 Sony Group Corporation Information processing apparatus, control method, and program
JP2016144154A (en) * 2015-02-04 2016-08-08 キヤノン株式会社 Communication device, control method therefor, and program
US10342071B2 (en) 2017-01-16 2019-07-02 Brother Kogyo Kabushiki Kaisha Communication device, non-transitory computer-readable recording medium storing computer-readable instructions for communication device, and method executed by communication device
US10416941B2 (en) 2017-02-02 2019-09-17 Brother Kogyo Kabushiki Kaisha Communication device, non-transitory computer-readable recording medium storing computer-readable instructions for communication device, and method performed by communication device
US11231892B2 (en) 2017-02-02 2022-01-25 Brother Kogyo Kabushiki Kaisha Communication device, non-transitory computer-readable recording medium storing computer-readable instructions for communication device, and method performed by communication device

Also Published As

Publication number Publication date
JP6222979B2 (en) 2017-11-01

Similar Documents

Publication Publication Date Title
JP6282046B2 (en) Information processing apparatus, control method for information processing apparatus, and program
JP6755081B2 (en) Communication equipment and its control method and program
KR101761106B1 (en) Communication apparatus and control method thereof
JP6415175B2 (en) COMMUNICATION DEVICE, COMMUNICATION DEVICE CONTROL METHOD, PROGRAM
JP6222979B2 (en) COMMUNICATION DEVICE, COMMUNICATION DEVICE CONTROL METHOD, PROGRAM
JP6858069B2 (en) Image supply device and information processing device and their control methods and programs
JP6400101B2 (en) COMMUNICATION DEVICE, COMMUNICATION DEVICE CONTROL METHOD, PROGRAM
JP6463050B2 (en) COMMUNICATION DEVICE, ITS CONTROL METHOD, AND PROGRAM
JP6385078B2 (en) COMMUNICATION DEVICE, COMMUNICATION DEVICE CONTROL METHOD, PROGRAM
JP6415232B2 (en) COMMUNICATION DEVICE, COMMUNICATION DEVICE CONTROL METHOD, PROGRAM
JP2017199977A (en) Imaging apparatus and control method, program and system thereof
JP7146434B2 (en) COMMUNICATION DEVICE, CONTROL METHOD THEREOF, AND PROGRAM
JP6570575B2 (en) Imaging apparatus, control method therefor, and program
JP2017103552A (en) Imaging apparatus, control method of imaging apparatus, program
JP7041559B2 (en) Communication devices, data transfer devices and their control methods, and programs
JP2021190867A (en) Communication, control method therefor and program
JP6877999B2 (en) Communication device, control method of communication device, program
JP6918463B2 (en) Communication equipment, its control method, and programs
JP6433231B2 (en) COMMUNICATION DEVICE, COMMUNICATION DEVICE CONTROL METHOD, PROGRAM
JP2020057899A (en) Wireless communication system and wireless communication terminal control method
JP6386862B2 (en) COMMUNICATION DEVICE, COMMUNICATION DEVICE CONTROL METHOD, PROGRAM
WO2023074132A1 (en) Wireless communication device and control method therefor
JP7086743B2 (en) Communication device, control method of communication device, program
JP2017085518A (en) Communication apparatus, control method for communication apparatus, and program
JP5813261B2 (en) COMMUNICATION DEVICE, COMMUNICATION TERMINAL, ITS CONTROL METHOD, PROGRAM

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20160506

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20170215

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20170314

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20170509

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20170905

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20171003

R151 Written notification of patent or utility model registration

Ref document number: 6222979

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151

LAPS Cancellation because of no payment of annual fees