JP2018056829A - COMMUNICATION DEVICE, ITS CONTROL METHOD, AND PROGRAM - Google Patents

COMMUNICATION DEVICE, ITS CONTROL METHOD, AND PROGRAM Download PDF

Info

Publication number
JP2018056829A
JP2018056829A JP2016191329A JP2016191329A JP2018056829A JP 2018056829 A JP2018056829 A JP 2018056829A JP 2016191329 A JP2016191329 A JP 2016191329A JP 2016191329 A JP2016191329 A JP 2016191329A JP 2018056829 A JP2018056829 A JP 2018056829A
Authority
JP
Japan
Prior art keywords
network
communication
unit
scanning
wireless communication
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
JP2016191329A
Other languages
Japanese (ja)
Other versions
JP6918463B2 (en
Inventor
拓真 伊香
Takuma Iko
拓真 伊香
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 JP2016191329A priority Critical patent/JP6918463B2/en
Publication of JP2018056829A publication Critical patent/JP2018056829A/en
Application granted granted Critical
Publication of JP6918463B2 publication Critical patent/JP6918463B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Mobile Radio Communication Systems (AREA)

Abstract

【課題】 無線通信において、通信相手との接続を確立するまで時間がかかる場合があった。【解決手段】 通信装置において、無線通信手段と、中継装置が形成したネットワークをスキャンするスキャン手段と、前記中継装置が形成したネットワークに参加する参加手段と、前記通信装置が中継装置となりネットワークを形成する形成手段と、前記スキャン手段と前記形成手段とを並行して動作させるよう制御する制御手段とを有し、前記スキャン手段と前記形成手段とが並行して動作している状態で、所定のネットワークが前記スキャン手段により発見された場合、前記制御手段は、前記形成手段で形成したネットワークを破棄すると共に、前記参加手段により、前記所定のネットワークに参加するよう制御することを特徴とした通信装置。【選択図】 図2PROBLEM TO BE SOLVED: To establish a connection with a communication partner in wireless communication in some cases. SOLUTION: In a communication device, a wireless communication means, a scanning means for scanning a network formed by a relay device, a participating means for participating in a network formed by the relay device, and the communication device serving as a relay device to form a network. A predetermined forming means is provided, and a control means for controlling the scanning means and the forming means to operate in parallel is provided, and the scanning means and the forming means are operating in parallel. When a network is found by the scanning means, the control means discards the network formed by the forming means and controls the participating means to join the predetermined network. .. [Selection diagram] Fig. 2

Description

本発明は、通信装置、その制御方法、およびプログラムに関する。   The present invention relates to a communication device, a control method thereof, and a program.

従来、無線通信を介して、二つ以上の機器間での通信が行われている。この無線通信において、一般的にネットワークの生成がどちらであるかによって、それぞれの装置の動作が異なる。例えば、無線LANのアクセスポイントの機能を搭載した機器においては、自らネットワークを生成し、他の装置からの接続要求を受け付ける。一方、無線LANのアクセスポイントの機能を搭載した機器に接続する他の装置は、アクセスポイント機能を搭載した機器が発信するビーコンを受信することで、周囲のアクセスポイント機能を搭載した機器をスキャンする。   Conventionally, communication between two or more devices is performed via wireless communication. In this wireless communication, the operation of each device generally differs depending on which of the networks is generated. For example, a device equipped with a wireless LAN access point function creates a network by itself and accepts connection requests from other devices. On the other hand, other devices connected to a device equipped with a wireless LAN access point function scan a device equipped with a nearby access point function by receiving a beacon transmitted by the device equipped with the access point function. .

近年、携帯機器に、上記のアクセスポイントの機能を搭載することで、他にアクセスポイントの機能を搭載している機器が存在していない状態でもインフラ接続を実現することが行われている。例えば特許文献1には、まず周囲のアクセスポイントをスキャンし、アクセスポイントが見つからなかった場合に、直接通信モードで無線接続を行う技術が開示されている。   In recent years, by mounting the above-described access point function on a mobile device, it is possible to realize infrastructure connection even when no other device having the access point function exists. For example, Patent Document 1 discloses a technique of first scanning a surrounding access point and performing wireless connection in a direct communication mode when an access point is not found.

特開2015−211456号公報Japanese Unexamined Patent Publication No. 2015-212456

しかしながら、アクセスポイントのスキャンには、ある程度の時間を要する。そのため、アクセスポイントが存在しない場合に直接接続に移行するまで時間がかかるという問題があった。この点に鑑み、本発明は、無線通信において、通信相手との接続を確立するまでの時間を短くすることを目的とする。   However, scanning an access point requires a certain amount of time. Therefore, there is a problem that it takes time to shift to direct connection when there is no access point. In view of this point, an object of the present invention is to shorten the time required for establishing a connection with a communication partner in wireless communication.

上記目的を達成するために、本発明は、無線通信により外部機器と通信を行う通信装置において、無線通信手段と、前記無線通信手段により中継装置が形成したネットワークをスキャンするスキャン手段と、前記中継装置が形成したネットワークに前記無線通信手段を介して参加する参加手段と、前記無線通信手段を用いて前記通信装置が中継装置となりネットワークを形成する形成手段と、前記スキャン手段と、前記形成手段を並行して動作させるよう制御する制御手段とを有し、前記スキャン手段と前記形成手段とが並行して動作している状態で、所定のネットワークが前記スキャン手段により発見された場合、前記制御手段は、前記形成手段で形成したネットワークを破棄すると共に、前記参加手段により、前記所定のネットワークに参加するよう制御することを特徴とする。   To achieve the above object, the present invention provides a communication device that communicates with an external device by wireless communication, a wireless communication unit, a scanning unit that scans a network formed by a relay device by the wireless communication unit, and the relay A joining means for joining the network formed by the apparatus via the wireless communication means; a forming means for forming the network by using the wireless communication means so that the communication apparatus becomes a relay apparatus; the scanning means; and the forming means. Control means for controlling to operate in parallel, and when the scanning means and the forming means are operating in parallel and a predetermined network is discovered by the scanning means, the control means Discards the network formed by the forming means and creates the predetermined network by the joining means. And controlling so as to pressure.

本発明によれば、無線通信において、通信相手との接続を確立するまでの時間を短くすることができる。   According to the present invention, it is possible to shorten the time required for establishing a connection with a communication partner in wireless communication.

(a)第1の実施形態におけるデジタルカメラのブロック図である。(b)、(c)は、第1の実施形態におけるデジタルカメラの外観図である。(A) It is a block diagram of the digital camera in 1st Embodiment. (B), (c) is an external view of the digital camera in the first embodiment. (a)、(b)第1の実施形態における、デジタルカメラ100の処理を示すフローチャートである。(A), (b) It is a flowchart which shows the process of the digital camera 100 in 1st Embodiment. 第1の実施形態における、デジタルカメラの表示部に表示される画面の一例を示した図である。It is the figure which showed an example of the screen displayed on the display part of the digital camera in 1st Embodiment. (a)、(b)第2の実施形態における、デジタルカメラ100の処理を示すフローチャートである。(A), (b) It is a flowchart which shows the process of the digital camera 100 in 2nd Embodiment. 第2の実施形態における、デジタルカメラの表示部に表示される画面の一例を示した図である。It is the figure which showed an example of the screen displayed on the display part of a digital camera in 2nd Embodiment. (a)、(b)第3の実施形態における、デジタルカメラ100の処理を示すフローチャートである。(A), (b) It is a flowchart which shows the process of the digital camera 100 in 3rd Embodiment. 第3の実施形態における、デジタルカメラの表示部に表示される画面の一例を示した図である。It is the figure which showed an example of the screen displayed on the display part of a digital camera in 3rd Embodiment.

以下に、本発明の好ましい実施の形態を、添付の図面に基づいて詳細に説明する。   Hereinafter, preferred embodiments of the present invention will be described in detail with reference to the accompanying drawings.

なお、以下に説明する実施の形態は、本発明の実現手段としての一例であり、本発明が適用される装置の構成や各種条件によって適宜修正又は変更されてもよい。また、各実施の形態を適宜組み合せることも可能である。   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(a)は、本実施形態の通信装置の一例であるデジタルカメラ100の構成例を示すブロック図である。なお、ここでは通信装置の一例としてデジタルカメラについて述べるが、通信装置はこれに限られない。例えば通信装置は携帯電話や、携帯型のメディアプレーヤ、いわゆるタブレットデバイス、パーソナルコンピュータなどの情報処理装置であってもよい。
[First Embodiment]
<Configuration of digital camera>
FIG. 1A 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 device may be an information processing device such as a mobile phone, 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)が利用される。撮像部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. In general, a CMOS (Complementary Metal Oxide Semiconductor) or a CCD (Charge Coupled Device) is used as the imaging element. 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 the communication 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 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の表示を制御する表示制御機能を少なくとも有していればよい。   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 to an internal or external display unit 106 and only needs to have at least a display control function for controlling display on 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を介して、外部装置とデータのやりとりを行うことができる。例えば、撮像部102で生成した画像データを、通信部111を介して外部装置に送信することができる。なお、本実施形態では、通信部111は外部装置とIEEE802.11の規格に従った、いわゆる無線LANで通信するためのインターフェイスを含む。制御部101は、通信部111を制御することで外部装置との無線通信を実現する。なお、通信方式は無線LANに限定されるものではなく、例えば赤外通信方式や、Bluetooth(登録商標)、WirelessUSB等、他の無線通信方式を採用してもよい。   The communication 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 communication unit 111. For example, image data generated by the imaging unit 102 can be transmitted to an external device via the communication unit 111. In the present embodiment, the communication unit 111 includes an interface for communicating with an external apparatus 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 communication unit 111. Note that the communication method is not limited to the wireless LAN, and other wireless communication methods such as an infrared communication method, Bluetooth (registered trademark), and WirelessUSB may be adopted.

近距離無線通信部112は、例えば無線通信のためのアンテナと無線信号を処理するため変復調回路や通信コントローラから構成される。近距離無線通信部112は、変調した無線信号をアンテナから出力し、またアンテナで受信した無線信号を復調することによりIEEE802.15の規格(いわゆるBluetooth(登録商標))に従った近距離無線通信を実現する。本実施形態においてBluetooth(登録商標)通信は、低消費電力であるBluetooth(登録商標) Low Energyのバージョン4.0を採用する。このBluetooth(登録商標)通信は、無線LAN通信と比べて通信可能な範囲が狭い(つまり、通信可能な距離が短い)。また、Bluetooth(登録商標)通信は、無線LAN通信と比べて通信速度が遅い。その一方で、Bluetooth(登録商標)通信は、無線LAN通信と比べて消費電力が少ない。なお、近距離無線通信部112が実現する非接触近接通信はBluetooth(登録商標)に限られるものではなく、他の無線通信を採用してもよい。例えば、同様に消費電力が無線LAN通信より少なく、通信距離が無線LAN通信よりも短いNFCやRFIDを採用してもよい。あるいは、それらの手段を複数備えていてもよい。   The short-range 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 short-range wireless communication unit 112 outputs a modulated wireless signal from the antenna, and demodulates the wireless signal received by the antenna, thereby short-range wireless communication according to the IEEE 802.15 standard (so-called Bluetooth (registered trademark)). Is realized. In this embodiment, Bluetooth (registered trademark) communication employs Bluetooth (registered trademark) Low Energy version 4.0, which has low power consumption. This Bluetooth (registered trademark) communication has a narrower communicable range than wireless LAN communication (that is, a communicable distance is short). In addition, Bluetooth (registered trademark) communication has a lower communication speed than wireless LAN communication. On the other hand, Bluetooth (registered trademark) communication consumes less power than wireless LAN communication. Note that the non-contact proximity communication realized by the short-range wireless communication unit 112 is not limited to Bluetooth (registered trademark), and other wireless communication may be employed. For example, NFC or RFID that consumes less power than wireless LAN communication and has a shorter communication distance than wireless LAN communication may be employed. Alternatively, a plurality of such means may be provided.

なお、本実施形態のデジタルカメラ100の通信部111は、インフラストラクチャモードにおけるアクセスポイント(中継装置)として動作するAPモードと、インフラストラクチャモードにおけるクライアントとして動作するCLモードとを有している。そして、通信部111をCLモードで動作させることにより、本実施形態におけるデジタルカメラ100は、インフラストラクチャモードにおけるCL機器として動作することが可能である。デジタルカメラ100がCL機器として動作する場合、周辺のAP機器に接続することで、AP機器が形成するネットワークに参加することが可能である。また、通信部111をAPモードで動作させることにより、本実施形態におけるデジタルカメラ100は、APの一種ではあるが、より機能が限定された簡易的なAP(以下、簡易AP)として動作することも可能である。デジタルカメラ100が簡易APとして動作すると、デジタルカメラ100は自身でネットワークを形成する。デジタルカメラ100の周辺の装置は、デジタルカメラ100をAP機器と認識し、デジタルカメラ100が形成したネットワークに参加することが可能となる。上記のようにデジタルカメラ100を動作させるためのプログラムは不揮発性メモリ103に保持されているものとする。   Note that the communication unit 111 of the digital camera 100 of the present embodiment has an AP mode that operates as an access point (relay device) in the infrastructure mode, and a CL mode that operates as a client in the infrastructure mode. Then, by operating the communication 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. In addition, by operating the communication unit 111 in the AP mode, the digital camera 100 according to 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の外観について説明する。図1(b)、図1(c)はデジタルカメラ100の外観の一例を示す図である。レリーズスイッチ105aや再生ボタン105b、方向キー105c、タッチパネル105dは、前述の操作部105に含まれる操作部材である。また、表示部106には、撮像部102による撮像の結果得られた画像が表示される。   Next, the appearance of the digital camera 100 will be described. 1B and 1C are diagrams illustrating an example of the appearance of the digital camera 100. FIG. The release switch 105a, the playback button 105b, the direction key 105c, and the touch panel 105d are operation members included in the operation unit 105 described above. Further, the display unit 106 displays an image obtained as a result of imaging by the imaging unit 102.

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

<メニュー操作で無線通信機器と接続する手順について>
次に、デジタルカメラ100において、ユーザ操作によってメニュー画面からスマートデバイスと無線LAN接続し画像を送信する手順について、図2(a)、図2(b)、図3を用いて説明する。なお、スマートデバイスとはスマートフォン等の携帯電話やいわゆるタブレットデバイスを含む。なお、ここでは情報処理装置の一例としてスマートデバイスについて述べるが、情報処理装置はこれに限られない。例えば情報処理装置は、無線機能付きのデジタルカメラやプリンタ、テレビ、あるいはパーソナルコンピュータなどであってもよい。
<Procedure for connecting to a wireless communication device by menu operation>
Next, in the digital camera 100, a procedure for transmitting an image by connecting to a smart device via a wireless LAN from a menu screen by a user operation will be described with reference to FIG. 2A, FIG. Smart devices include mobile phones such as smartphones and so-called tablet devices. Although a smart device is described here as an example of an information processing apparatus, the information processing apparatus is not limited to this. For example, the information processing apparatus may be a digital camera with a wireless function, a printer, a television, or a personal computer.

図2(a)、図2(b)は、第1の実施形態におけるデジタルカメラ100の動作を示すフローチャートである。図2(a)に示す処理は、ユーザ操作によって図3の画面301を表示するメニュー操作が行われたことに応じて開始される。また、本フローチャートに示す処理は、デジタルカメラ100の制御部101が入力信号やプログラムに従い、デジタルカメラ100の各部を制御することにより実現される。特に断らない限り、デジタルカメラ100の処理を示す他のフローチャートでも同様である。   FIG. 2A and FIG. 2B are flowcharts showing the operation of the digital camera 100 in the first embodiment. The process illustrated in FIG. 2A is started in response to a menu operation for displaying the screen 301 in FIG. 3 being performed by a user operation. 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. The same applies to other flowcharts showing processing of the digital camera 100 unless otherwise specified.

図3は、第1の実施形態におけるデジタルカメラ100において、ユーザ操作によって表示部106に表示されるメニュー画面からスマートデバイスと無線LAN接続する際の画面遷移図である。   FIG. 3 is a screen transition diagram when the wireless camera is connected to the smart device from the menu screen displayed on the display unit 106 by the user operation in the digital camera 100 according to the first embodiment.

まず、ステップS201において、制御部101は、無線接続を開始する指示を受け付けたか否かを判断する。制御部101は、図3の画面301を表示部106に表示させ、無線接続を開始するための操作を受け付ける。ユーザは、スマートデバイスと無線接続する機能を実行するためのアイコン(画面301のアイコン350)を、操作部105(例えばタッチパネル)を介して選択することで、スマートデバイスと無線接続する機能を実行する指示を入力することができる。もし、無線接続が開始された場合はステップS202に進み、そうでない場合はステップS201へ進む。   First, in step S201, the control unit 101 determines whether an instruction to start wireless connection has been received. The control unit 101 displays the screen 301 of FIG. 3 on the display unit 106 and accepts an operation for starting a wireless connection. The user selects an icon for executing a function of wirelessly connecting to the smart device (icon 350 on the screen 301) via the operation unit 105 (for example, a touch panel), thereby executing a function of wirelessly connecting to the smart device. Instructions can be entered. If the wireless connection is started, the process proceeds to step S202. Otherwise, the process proceeds to step S201.

ステップS202において、制御部101は、APモードで動作するかCLモードで動作するかを決定するための自動決定処理を実行する。ここで、ステップS202の自動決定処理について、図2(b)を参照して詳細を説明する。   In step S202, the control unit 101 executes an automatic determination process for determining whether to operate in the AP mode or the CL mode. Here, the details of the automatic determination process in step S202 will be described with reference to FIG.

図2(b)のステップS210において、制御部101は、簡易APを起動して無線LANネットワークを形成する。具体的には、簡易APを起動してビーコンの発信を開始する。なお、過去に接続したことがあるスマートデバイスが接続する場合、スマートデバイス側で過去に接続した無線LANの通信パラメータ(特にSSID)を履歴情報として保持している場合が多い。その場合は、スマートデバイスはデジタルカメラ100が発信するビーコンを検知することで、保持する履歴と同じ通信パラメータを用いて自動的に無線LAN接続を行うことができる。そこで、前回と同じSSIDを含むビーコンを発信することで、同じSSIDのネットワークを生成してもよい。あるいはネットワークを生成する度にランダムに決定される通信パラメータを利用して、セキュリティ性を向上させてもよい。   In step S210 in FIG. 2B, the control unit 101 activates the simple AP to form a wireless LAN network. Specifically, a simple AP is activated and beacon transmission is started. When a smart device that has been connected in the past is connected, the communication parameters (especially SSID) of the wireless LAN that has been connected in the past are often stored as history information on the smart device side. In that case, the smart device can automatically establish a wireless LAN connection by detecting a beacon transmitted by the digital camera 100 using the same communication parameters as the history to be held. Therefore, a network having the same SSID may be generated by transmitting a beacon including the same SSID as the previous time. Alternatively, security may be improved by using communication parameters that are randomly determined each time a network is generated.

ステップS211において、制御部101は、図3の画面302を表示部106に表示させるとともに、周囲の無線LANネットワークを検索するスキャン動作を実行する。具体的には、周囲の無線LANネットワークが発信するビーコンを検出して、無線LANネットワークの情報を取得する。制御部101は、少なくとも無線LANネットワークの情報として、無線LANネットワークのSSID(Service Set Identifier)を取得する。なお、この間もステップS210での自らのビーコンの発信は継続される。すなわち、ネットワークのスキャン動作と、ビーコンの発信動作とは、並行して実行される。また、ステップS210とステップS211とは、開始する順番が前後してもよい。   In step S211, the control unit 101 displays the screen 302 of FIG. 3 on the display unit 106 and executes a scanning operation for searching for a surrounding wireless LAN network. Specifically, information on the wireless LAN network is acquired by detecting a beacon transmitted by the surrounding wireless LAN network. The control unit 101 acquires an SSID (Service Set Identifier) of the wireless LAN network as at least wireless LAN network information. During this time, the transmission of its own beacon in step S210 is continued. That is, the network scanning operation and the beacon transmission operation are executed in parallel. Moreover, the order of starting step S210 and step S211 may be reversed.

ステップS212において、制御部101は、ステップS211において検索した無線LANネットワークの中に、所望の無線LANネットワークが見つかったかを判断する。所望の無線LANネットワークとは、例えば過去に接続したことのある無線LANネットワークである。この場合は、過去に接続したことのある無線LANネットワークを接続履歴として記録しておき、この履歴と比較して、同じネットワークであれば、所望の無線LANネットワークが見つかったと判断する。あるいは、あらかじめユーザが任意に登録しておいた無線LANネットワークと比較しても良い。なお、所望の無線LANネットワークであるか否かの判断は、ステップS211で取得したSSIDを利用して判断しても良いし、BSSID(Basic Service Set Identidier)などの別の通信パラメータを利用しても良い。もし、所望の無線LANネットワークが見つかった場合はステップS213に進み、そうでない場合はステップS215に進む。   In step S212, the control unit 101 determines whether a desired wireless LAN network is found in the wireless LAN networks searched in step S211. The desired wireless LAN network is, for example, a wireless LAN network that has been connected in the past. In this case, a wireless LAN network that has been connected in the past is recorded as a connection history, and if the same network is compared with this history, it is determined that a desired wireless LAN network has been found. Or you may compare with the wireless LAN network which the user registered arbitrarily beforehand. Note that whether or not the wireless LAN network is desired may be determined using the SSID acquired in step S211 or using another communication parameter such as BSSID (Basic Service Set Identifier). Also good. If a desired wireless LAN network is found, the process proceeds to step S213, and if not, the process proceeds to step S215.

まず、ステップS212において、ステップS213に進んだ場合について説明する。この場合はCLモードとして動作することが決定される。   First, the case where the process proceeds to step S213 in step S212 will be described. In this case, it is determined to operate as the CL mode.

そのために、ステップS213において、制御部101は、ステップS210で起動した簡易APを終了させ、形成していた無線LANネットワークを破棄する。具体的には、発信していたビーコンを停止させる。また、形成していた無線LANネットワークに他の機器が接続していた場合は、それらの機器に対してDeauth Packetを送信することで、ネットワークからの離脱を促してから無線LANネットワークを破棄する。   Therefore, in step S213, the control unit 101 ends the simple AP activated in step S210, and discards the formed wireless LAN network. Specifically, the beacon that has been transmitted is stopped. Further, when other devices are connected to the formed wireless LAN network, the wireless LAN network is discarded after prompting the user to leave the network by transmitting a Deact Packet to the devices.

ステップS214において、制御部101は、ステップS212で発見した無線LANネットワークに接続する。具体的には、発見したSSIDを持つ無線LANネットワークに対して参加要求を送信し、参加要求に対する受け付けたことを示す信号を受信する。このとき、図3の画面303を表示部106に表示させ、接続しようとしているネットワークのSSIDをユーザに把握させる。もしこの表示を見てユーザが、望むネットワークではないと判断できた場合などに、接続を停止することができるよう、キャンセルボタンも併せて表示される。   In step S214, the control unit 101 connects to the wireless LAN network discovered in step S212. Specifically, a participation request is transmitted to the wireless LAN network having the discovered SSID, and a signal indicating acceptance of the participation request is received. At this time, the screen 303 of FIG. 3 is displayed on the display unit 106, and the user is made aware of the SSID of the network to be connected. If the user can determine that the network is not the desired one by viewing this display, a cancel button is also displayed so that the connection can be stopped.

次に、ステップS212において、ステップS215に進んだ場合について説明する。   Next, the case where the process proceeds to step S215 in step S212 will be described.

ステップS215において、制御部101は、ステップS211で無線LANネットワークの検索を所定回数行ったかを判断する。なお、ここで言う1回の検索とは、ビーコンの受信のために所定の時間、待ちうけることを言う。つまり、所定の時間待ちうける動作を、所定回数行ったか否かを判断する。例えば、ステップS211で行う無線LANネットワークの検索処理は、取りこぼしが発生する可能性がある。すなわち、本来検出されるべき無線LANネットワークの情報が、必ずしも取得できる訳ではない。そのため、確実に周囲の無線LANネットワークを検索するためには、何度か無線LANネットワークの検索を実行する必要がある。無線LANネットワークの検索を所定回数行っていない場合は、ステップS211に戻り、検索を繰り返す。一方、無線LANネットワークの検索を所定回数行っても所望のネットワークが見つからなかった場合は、ステップS216に進む。   In step S215, the control unit 101 determines whether the wireless LAN network search has been performed a predetermined number of times in step S211. Note that one search here means waiting for a predetermined time for receiving a beacon. That is, it is determined whether or not the operation of waiting for a predetermined time has been performed a predetermined number of times. For example, the wireless LAN network search process performed in step S211 may be missed. That is, the information of the wireless LAN network that should be detected originally cannot always be acquired. For this reason, in order to reliably search for surrounding wireless LAN networks, it is necessary to search for wireless LAN networks several times. If the wireless LAN network search has not been performed a predetermined number of times, the process returns to step S211 and the search is repeated. On the other hand, if the desired network is not found even after searching the wireless LAN network a predetermined number of times, the process proceeds to step S216.

ステップS216では、制御部101は、ネットワークの検索を諦め、S211で開始したスキャン動作を停止する。この場合は、APモードとしての動作を継続することになる。   In step S216, the control unit 101 gives up searching for the network and stops the scanning operation started in step S211. In this case, the operation as the AP mode is continued.

以上の手順でAPモードで動作するかCLモードで動作するかが決定される。   The procedure described above determines whether to operate in the AP mode or the CL mode.

図2(a)の説明に戻る。   Returning to the description of FIG.

ステップS203において、制御部101は、図3の画面304または305を表示部106に表示させ、接続相手であるスマートデバイスの検索を行う。具体的には、機器検索で用いられるのはディスカバリプロトコルであり、例えば、SSDP(Single Service Discovery Protocol)やMalticast DNSなどを用いることができる。ここでは、ステップS202でAPモードなると決定された場合には、自らが生成したネットワーク内に参加したスマートデバイスを検索する。一方、ステップS202でCLモードになると決定された場合には、外部機器が生成するネットワーク内でスマートデバイスを検索する。なお、ステップS202において、APモードに決定した場合は画面305を、CLモードに決定した場合は画面304となる。   In step S203, the control unit 101 displays the screen 304 or 305 of FIG. 3 on the display unit 106, and searches for a smart device that is a connection partner. Specifically, a discovery protocol is used in the device search, and for example, SSDP (Single Service Discovery Protocol), Maltic DNS, or the like can be used. Here, if it is determined in step S202 that the AP mode is set, the smart device that participates in the network generated by itself is searched. On the other hand, if it is determined in step S202 that the CL mode is set, the smart device is searched in the network generated by the external device. In step S202, the screen 305 is displayed when the AP mode is determined, and the screen 304 is displayed when the CL mode is determined.

ステップS204において、制御部101は、図3の画面306を表示部106に表示させ、接続相手であるスマートデバイスとの接続を行う。スマートデバイスとのアプリケーションレベルの接続が完了すると、制御部101は、図3の画面307を表示部106に表示する。この画面では、送信対象となる画像が表示され、画像送信サービスを開始する。   In step S204, the control unit 101 displays the screen 306 of FIG. 3 on the display unit 106, and connects to the smart device that is the connection partner. When the application level connection with the smart device is completed, the control unit 101 displays the screen 307 of FIG. 3 on the display unit 106. On this screen, an image to be transmitted is displayed and an image transmission service is started.

以上、本実施形態のデジタルカメラ100は、周囲の無線LANネットワークを検索すると共に、自らネットワークを生成する。これにより、ネットワークのスキャンが完了する前に外部機器との通信を始めることも可能となる。   As described above, the digital camera 100 according to the present embodiment searches for a surrounding wireless LAN network and generates the network itself. Thus, communication with an external device can be started before the network scan is completed.

[第2の実施形態]
図4(a)、図4(b)、図5を参照して、第2の実施形態を説明する。ここでは、デジタルカメラ100が利用するサービスが、APモードでは実現できない場合の処理について説明する。なお、デジタルカメラ100の構成は、本発明の第1の実施形態と同様なので説明を省略する。
[Second Embodiment]
The second embodiment will be described with reference to FIG. 4A, FIG. 4B, and FIG. Here, processing when the service used by the digital camera 100 cannot be realized in the AP mode will be described. Since the configuration of the digital camera 100 is the same as that of the first embodiment of the present invention, the description thereof is omitted.

図4(a)、図4(b)は、第2の実施形態におけるデジタルカメラ100の動作を示すフローチャートである。図4(a)に示す処理は、ユーザ操作によって図5の画面501を表示するメニュー操作が行われたことに応じて開始される。   FIG. 4A and FIG. 4B are flowcharts illustrating the operation of the digital camera 100 in the second embodiment. The process illustrated in FIG. 4A is started in response to a menu operation for displaying the screen 501 in FIG. 5 being performed by a user operation.

図5は、第2の実施形態におけるデジタルカメラ100において、ユーザ操作によって表示部106に表示されるメニュー画面からウェブサービスと無線LAN接続する際の画面遷移図である。   FIG. 5 is a screen transition diagram when a wireless LAN connection is established with a web service from a menu screen displayed on the display unit 106 by a user operation in the digital camera 100 according to the second embodiment.

まず、図4(a)のステップS401において、制御部101は、無線接続を開始する指示を受け付けたか否かを判断する。制御部101は、図5の画面501を表示部106に表示させ、無線接続を開始するための操作を受け付ける。ユーザは、スマートデバイスと無線接続する機能を実行するためのアイコン(画面501のアイコン350)を、操作部105(例えばタッチパネル)を介して選択することで、スマートデバイスと無線接続する機能を実行する指示を入力することができる。更に、ユーザは、ウェブサービスと無線接続する機能を実行するためのアイコン(画面501のアイコン550)を、操作部105(例えばタッチパネル)を介して選択することで、ウェブサービスと無線接続する機能を実行する指示を入力することができる。もし、いずれかのアイコンの選択により無線接続を開始する指示を受け付けた場合はステップS402に進み、そうでない場合はステップS401へ進む。   First, in step S401 of FIG. 4A, the control unit 101 determines whether or not an instruction to start wireless connection has been received. The control unit 101 displays the screen 501 of FIG. 5 on the display unit 106 and accepts an operation for starting a wireless connection. The user selects an icon (icon 350 on the screen 501) for executing a function for wireless connection with the smart device via the operation unit 105 (for example, a touch panel), thereby executing the function for wireless connection with the smart device. Instructions can be entered. Further, the user selects an icon (icon 550 on the screen 501) for performing a function of wirelessly connecting to the web service via the operation unit 105 (for example, a touch panel), thereby enabling a function of wirelessly connecting to the web service. Instructions to execute can be entered. If an instruction to start wireless connection is accepted by selecting any icon, the process proceeds to step S402, and if not, the process proceeds to step S401.

ステップS402において、制御部101は、これから無線接続するサービス(すなわちステップS401で選択されたサービス)に基づき、APモードを利用することが可能かを判断する。具体的には、ステップS401で選択されたウェブサービスにおいては、ウェブサービスに接続するためにはインターネットに接続する必要がある。しかしながら、自身がAPモードで動作(簡易APとして動作)した場合には、ゲートウェイ機能がないため、ウェブサービスには接続できない。そのため、ウェブサービスを利用するための無線接続の開始を指示された場合には、本ステップにて、APモードで利用できないと判断する。一方、スマートデバイスとの接続の場合は、インターネットに接続する必要はない。自身が簡易APとして動作しても、スマートデバイスがそのネットワークに接続することでサービスの利用が可能である。従って、スマートデバイスとの通信のための無線接続の開始を指示された場合には、本ステップにてAPモードが利用できると判断する。もし、自身が簡易APとして動作して接続することが可能な場合はステップS404に進み、そうでない場合はステップS403に進む。   In step S402, the control unit 101 determines whether the AP mode can be used based on the service to be wirelessly connected (that is, the service selected in step S401). Specifically, the web service selected in step S401 needs to be connected to the Internet in order to connect to the web service. However, when it operates in the AP mode (operates as a simple AP), it cannot connect to the web service because there is no gateway function. Therefore, when instructed to start a wireless connection for using the web service, it is determined in this step that it cannot be used in the AP mode. On the other hand, when connecting to a smart device, it is not necessary to connect to the Internet. Even if the device itself operates as a simple AP, the service can be used by connecting the smart device to the network. Therefore, when the start of wireless connection for communication with the smart device is instructed, it is determined in this step that the AP mode can be used. If the mobile terminal can operate and connect as a simple AP, the process proceeds to step S404; otherwise, the process proceeds to step S403.

まず、ステップS402において、ステップS403に進んだ場合について説明する。   First, a case where the process proceeds to step S403 in step S402 will be described.

ステップS403において、制御部101は、CLモードとして周囲の無線LANネットワークに無線LAN接続する。ここでステップS403の処理について、図4(b)を参照して詳細を説明する。   In step S403, the control unit 101 establishes a wireless LAN connection to the surrounding wireless LAN network as the CL mode. Details of the processing in step S403 will be described with reference to FIG.

図4(b)のステップS410において、制御部101は、図5の画面502を表示部106に表示させ、周囲の無線LANネットワークを検索する。具体的には、周囲の無線LANネットワークが発信するビーコンを検出して、無線LANネットワークの情報を取得する。制御部101は、少なくとも無線LANネットワークの情報として、無線LANネットワークのSSID(Service Set Identifier)を取得する。   In FIG.4 (b) step S410, the control part 101 displays the screen 502 of FIG. 5 on the display part 106, and searches the surrounding wireless LAN network. Specifically, information on the wireless LAN network is acquired by detecting a beacon transmitted by the surrounding wireless LAN network. The control unit 101 acquires an SSID (Service Set Identifier) of the wireless LAN network as at least wireless LAN network information.

ステップS411において、制御部101は、ステップS410において検索した無線LANネットワークの中に、所望の無線LANネットワークが見つかったかを判断する。所望の無線LANネットワークとは、例えば過去に接続したことのある無線LANネットワークである。この場合は、過去に接続したことのある無線LANネットワークを接続履歴として記録しておき、この履歴と比較して、同じネットワークであれば、所望の無線LANネットワークが見つかったと判断する。あるいは、あらかじめユーザが任意に登録しておいた無線LANネットワークと比較しても良い。なお、所望の無線LANネットワークであるか否かの判断は、ステップS211で取得したSSIDを利用して判断しても良いし、BSSID(Basic Service Set Identidier)などの別の通信パラメータを利用しても良い。もし、所望の無線LANネットワークが見つかった場合はステップS414に進み、そうでない場合はステップS412に進む。   In step S411, the control unit 101 determines whether a desired wireless LAN network is found in the wireless LAN networks searched in step S410. The desired wireless LAN network is, for example, a wireless LAN network that has been connected in the past. In this case, a wireless LAN network that has been connected in the past is recorded as a connection history, and if the same network is compared with this history, it is determined that a desired wireless LAN network has been found. Or you may compare with the wireless LAN network which the user registered arbitrarily beforehand. Note that whether or not the wireless LAN network is desired may be determined using the SSID acquired in step S211 or using another communication parameter such as BSSID (Basic Service Set Identifier). Also good. If a desired wireless LAN network is found, the process proceeds to step S414, and if not, the process proceeds to step S412.

ステップS412において、制御部101は、ステップS211で無線LANネットワークの検索を所定回数行ったかを判断する。もし、無線LANネットワークの検索を所定回数行った場合はステップS413に進み、そうでない場合はステップS410に進む。   In step S412, the control unit 101 determines whether the wireless LAN network search has been performed a predetermined number of times in step S211. If the wireless LAN network search has been performed a predetermined number of times, the process proceeds to step S413, and if not, the process proceeds to step S410.

ステップS413において、制御部101は、図5の画面503を表示部106に表示させ、周囲のアクセスポイントが生成しているネットワークをユーザに把握させると共に、無線LANネットワークを選択する操作を受け付ける。ユーザは、操作部105(例えばタッチパネル)を介して表示されたSSIDを選択することで、所望の無線LANネットワークへの接続を指示する。なお、ここではセキュリティが設定されていない無線LANネットワークを選択した場合について説明するが、セキュリティが設定されている無線LANネットワークを選択した場合はセキュリティキーの入力をユーザに促す。すなわち、ステップS414の前に、PSK(Pre−Shared Key)やWEP(Wired Equivalent Privacy)キーを入力する画面を設ける。   In step S413, the control unit 101 displays the screen 503 of FIG. 5 on the display unit 106, allows the user to grasp the network generated by the surrounding access points, and accepts an operation of selecting a wireless LAN network. The user instructs connection to a desired wireless LAN network by selecting the SSID displayed via the operation unit 105 (for example, a touch panel). Although a case where a wireless LAN network with no security set is selected will be described here, when a wireless LAN network with security set is selected, the user is prompted to input a security key. That is, a screen for inputting a PSK (Pre-Shared Key) or WEP (Wired Equivalent Privacy) key is provided before Step S414.

ステップS414において、制御部101は、図5の画面504を表示部106に表示させ、ステップS411で発見した無線LANネットワークもしくは、ステップS413で選択した無線LANネットワークに接続する。   In step S414, the control unit 101 displays the screen 504 of FIG. 5 on the display unit 106, and connects to the wireless LAN network discovered in step S411 or the wireless LAN network selected in step S413.

図4(a)の説明に戻る。   Returning to the description of FIG.

続くステップS405において、制御部101は、図5の画面505を表示部106に表示させ、ウェブサービスを検索する。具体的には予め定められたURL(Uniform Resource Locator)などを参照して、対応するウェブサービスを検索する。   In subsequent step S405, the control unit 101 displays the screen 505 of FIG. 5 on the display unit 106 and searches for a web service. Specifically, a corresponding web service is searched with reference to a predetermined URL (Uniform Resource Locator) or the like.

ステップS406において、制御部101は、発見したウェブサービスに対して接続処理を行う。   In step S406, the control unit 101 performs a connection process for the found web service.

以上がステップS402においてAPモードが利用できない場合についての説明である。   This completes the description of the case where the AP mode cannot be used in step S402.

次に、ステップS402において、ステップS404に進んだ場合について説明する。この場合、ステップS406〜ステップS408の処理が実行される。これらの処理は、第1の実施形態で説明した図2のステップS202〜ステップS204と同様の処理が実行される。   Next, the case where the process proceeds to step S404 in step S402 will be described. In this case, the process of step S406-step S408 is performed. These processes are executed in the same manner as steps S202 to S204 in FIG. 2 described in the first embodiment.

以上、本実施形態のデジタルカメラ100は、APモード/CLモードを自動的に決定するか否かを、サービスの種類によって決定する方法について述べた。これにより、APモードでの接続を行ってもサービスを実行できない場合は、CLモードに自動的に決定することが可能となるため、不要な処理をすることなく、よりスムーズに通信を開始することができる。   As described above, the digital camera 100 according to this embodiment has described the method for determining whether to automatically determine the AP mode / CL mode according to the type of service. This makes it possible to automatically determine the CL mode if the service cannot be executed even if the connection is made in the AP mode, so that communication can be started more smoothly without unnecessary processing. Can do.

[第3の実施形態]
図6(a)、図6(b)、図7を参照して、第3の実施形態を説明する。ここでは、近接無線通信に応じて、デジタルカメラ100とスマートデバイスとが無線LAN接続することが可能な場合のAPモード/CLモード自動決定処理について説明する。近接無線通信としては、NFC(Near Field Communication)通信やBluetooth(登録商標)通信が用いられる。なお、デジタルカメラ100の構成は、本発明の第1の実施形態と同様なので説明を省略する。
[Third Embodiment]
The third embodiment will be described with reference to FIGS. 6A, 6B, and 7. FIG. Here, AP mode / CL mode automatic determination processing when the digital camera 100 and the smart device can be connected to each other by wireless LAN according to close proximity wireless communication is described. As the near field communication, NFC (Near Field Communication) communication or Bluetooth (registered trademark) communication is used. Since the configuration of the digital camera 100 is the same as that of the first embodiment of the present invention, the description thereof is omitted.

図6(a)、図6(b)は、第3の実施形態におけるデジタルカメラ100の動作を示すフローチャートである。図6(a)に示す処理は、ユーザ操作によって図3の画面301を表示するメニュー操作が行われたことに応じて開始される。   FIGS. 6A and 6B are flowcharts illustrating the operation of the digital camera 100 according to the third embodiment. The process illustrated in FIG. 6A is started in response to a menu operation for displaying the screen 301 in FIG. 3 being performed by a user operation.

ステップS601において、制御部101は、無線接続を開始する指示を受け付けたか否かを判断する。本実施形態では、第1および第2の実施形態で説明した、メニュー画面への操作による指示の他に、近距離無線通信部112を介して、外部装置から無線LANでの接続の開始要求を受け付けることもできる。本ステップでは例えば制御部101は、図7の画面701を表示部106に表示させ、無線接続を開始する指示を受け付ける。無線接続を開始する指示を受信または受け付けた場合は、無線接続を開始する。もし、無線接続が開始された場合はステップS602に進み、そうでない場合はステップS601へ進む。   In step S601, the control unit 101 determines whether an instruction to start wireless connection has been received. In this embodiment, in addition to the instruction by the operation on the menu screen described in the first and second embodiments, a request for starting a connection via a wireless LAN is sent from an external device via the short-range wireless communication unit 112. It can also be accepted. In this step, for example, the control unit 101 displays the screen 701 in FIG. 7 on the display unit 106 and accepts an instruction to start wireless connection. If an instruction to start wireless connection is received or accepted, wireless connection is started. If the wireless connection is started, the process proceeds to step S602, and if not, the process proceeds to step S601.

ステップS602において、制御部101は、これから接続する無線接続がハンドオーバー接続なのかを判断する。言い換えれば、ステップS601で受け付けた指示が、ユーザからのメニュー画面への操作による指示であるか、近距離無線通信部112を介して外部装置から受け付けた指示であるかを判断する。接続相手であるスマートデバイス等が、Bluetooth(登録商標) Low Energyなどを用いて、デジタルカメラ100の近距離無線通信部112による無線接続の開始要求した場合はハンドオーバー接続であると判断し、ステップS603に進む。ユーザからのメニュー画面への操作による指示である場合、ハンドオーバー接続でないと判断し、ステップS604へ進む。   In step S602, the control unit 101 determines whether the wireless connection to be connected is a handover connection. In other words, it is determined whether the instruction received in step S601 is an instruction by an operation on the menu screen from the user or an instruction received from an external device via the short-range wireless communication unit 112. When a smart device or the like as a connection partner uses Bluetooth (registered trademark) Low Energy or the like to request start of wireless connection by the short-range wireless communication unit 112 of the digital camera 100, it is determined that the connection is a handover connection. The process proceeds to S603. If the instruction is an operation by the user on the menu screen, it is determined that the connection is not a handover connection, and the process proceeds to step S604.

まずハンドオーバー接続であると判断した場合について説明する。   First, a case where it is determined that the connection is a handover connection will be described.

この場合、ステップS603において、制御部101は、図7の画面702を表示部106に表示させ、簡易APを起動して無線LANネットワークを形成する。なお、ここで起動する簡易APの無線LANパラメータは、ステップS602の無線接続の開始要求に応じて、あらかじめ接続相手であるスマートデバイス等に近距離無線通信部112を介して、通知しておいても良い。このようにすることで、接続相手であるスマートデバイスは、簡単にデジタルカメラ100の形成する簡易APに接続することが可能となる。   In this case, in step S603, the control unit 101 displays the screen 702 of FIG. 7 on the display unit 106, activates the simple AP, and forms a wireless LAN network. Note that the wireless LAN parameters of the simple AP to be activated here are notified to the smart device or the like as a connection partner in advance via the short-range wireless communication unit 112 in response to the wireless connection start request in step S602. Also good. In this way, the smart device that is the connection partner can be easily connected to the simple AP formed by the digital camera 100.

一方、ハンドオーバー接続でないと判断した場合は以下の動作を行う。   On the other hand, when it is determined that the connection is not a handover connection, the following operation is performed.

ステップS604において、制御部101は、APモードで動作するかCLモードで動作するかを決定する。ここで、ステップS604の自動決定処理について、図6(b)を参照して詳細を説明する。   In step S604, the control unit 101 determines whether to operate in the AP mode or the CL mode. Here, the automatic determination process in step S604 will be described in detail with reference to FIG.

図6(b)のステップS610において、制御部101は、簡易AP機能を起動して無線LANネットワークを形成する。本ステップの処理は図2のステップS210と同様である。   In step S610 of FIG. 6B, the control unit 101 activates the simple AP function to form a wireless LAN network. The processing in this step is the same as that in step S210 in FIG.

ステップS611において、制御部101は、周囲の無線LANネットワークを検索する。本ステップの処理は図2のステップS211と同様である。ステップS611の実行中でも、ステップS610で開始したビーコンの発信は継続される。すなわち、ネットワークのスキャン動作と、ビーコンの発信動作とは、並行して実行される。図2での説明と同様にステップS610とステップS611の実行開始の順番は前後してもよい。制御部101は、S611で開始したネットワークのスキャンを終了して、APモード/CLモード自動決定処理を終了する。そうでない場合はステップS613に進む。   In step S611, the control unit 101 searches for surrounding wireless LAN networks. The processing in this step is the same as that in step S211 in FIG. Even during the execution of step S611, the beacon transmission started in step S610 is continued. That is, the network scanning operation and the beacon transmission operation are executed in parallel. Similar to the description in FIG. 2, the order of starting execution of steps S610 and S611 may be reversed. The control unit 101 ends the network scan started in step S611 and ends the AP mode / CL mode automatic determination process. Otherwise, the process proceeds to step S613.

ステップS612において、制御部101は、ステップS611において検索した無線LANネットワークの中に、所望の無線LANネットワークが見つかったかを判断する。もし、所望の無線LANネットワークが見つかった場合はステップS613に進み、そうでない場合はステップS615に進む。ここでいう所望のネットワークは図2のステップS212の説明で述べたものと同様である。   In step S612, the control unit 101 determines whether a desired wireless LAN network is found in the wireless LAN networks searched in step S611. If a desired wireless LAN network is found, the process proceeds to step S613, and if not, the process proceeds to step S615. The desired network here is the same as that described in the description of step S212 in FIG.

まず、ステップS613に進んだ場合について説明する。   First, the case where it progresses to step S613 is demonstrated.

ステップS613において、制御部101は、ステップS610で起動した簡易APを終了させ、形成していた無線LANネットワークを破棄する。具体的には、発信していたビーコンを停止させる。また、形成していた無線LANネットワークに他の機器が接続していた場合は、それらの機器に対してDeauth Packetを送信することで、ネットワークからの離脱を促してから無線LANネットワークを破棄する。   In step S613, the control unit 101 terminates the simple AP activated in step S610 and discards the formed wireless LAN network. Specifically, the beacon that has been transmitted is stopped. Further, when other devices are connected to the formed wireless LAN network, the wireless LAN network is discarded after prompting the user to leave the network by transmitting a Deact Packet to the devices.

ステップS614において、制御部101は、ステップS611で発見した無線LANネットワークに接続する。具体的には、発見したSSIDを持つ無線LANネットワークに対して参加要求を送信し、参加要求に対する受け付けたことを示す信号を受信する。その後、APモード/CLモード自動決定処理を終了する。   In step S614, the control unit 101 connects to the wireless LAN network discovered in step S611. Specifically, a participation request is transmitted to the wireless LAN network having the discovered SSID, and a signal indicating acceptance of the participation request is received. Thereafter, the AP mode / CL mode automatic determination process is terminated.

次にステップS615に進んだ場合について説明する。   Next, the case where it progresses to step S615 is demonstrated.

ステップS615において、制御部101は、ステップS610で形成した無線LANネットワークに、CL機器が参加したかを判断する。形成した無線LANネットワークに、CL機器が参加してきた場合は、ステップS616に進む。そうでない場合はステップS617に進む。   In step S615, the control unit 101 determines whether a CL device has joined the wireless LAN network formed in step S610. If a CL device has joined the formed wireless LAN network, the process proceeds to step S616. Otherwise, the process proceeds to step S617.

ステップS616に進んだ場合は、制御部101は、S611で開始したネットワークのスキャンを終了して、APモード/CLモード自動決定処理を終了する。   When the process proceeds to step S616, the control unit 101 ends the network scan started in step S611, and ends the AP mode / CL mode automatic determination process.

一方、ステップS617に進んだ場合は、制御部101は、ステップS611で無線LANネットワークの検索を所定回数行ったかを判断する。なお、ここで言う1回の検索とは、ビーコンの受信のために所定の時間、待ちうけることを言う。つまり、所定の時間待ちうける動作を、所定回数行ったか否かを判断する。無線LANネットワークの検索を所定回数行っていない場合は、ステップS211に戻り、検索を繰り返す。一方、無線LANネットワークの検索を所定回数行っても所望のネットワークが見つからなかった場合は、ステップS616に進み、スキャン動作を停止し、APモード/CLモード自動決定処理を終了する。   On the other hand, when the process proceeds to step S617, the control unit 101 determines whether the wireless LAN network search has been performed a predetermined number of times in step S611. Note that one search here means waiting for a predetermined time for receiving a beacon. That is, it is determined whether or not the operation of waiting for a predetermined time has been performed a predetermined number of times. If the wireless LAN network search has not been performed a predetermined number of times, the process returns to step S211 and the search is repeated. On the other hand, if the desired network is not found even after searching for the wireless LAN network a predetermined number of times, the process proceeds to step S616, the scan operation is stopped, and the AP mode / CL mode automatic determination process is terminated.

以上のように、APモード/CLモード自動決定処理では、所望の無線LANネットワークが見つかった場合はCLモードに決定する。また、所望の無線LANネットワークが見つからない場合、または所望の無線LANネットワークが見つかる前に、形成した無線LANネットワークにCL機器が参加した場合はAPモードに決定する。   As described above, in the AP mode / CL mode automatic determination process, when a desired wireless LAN network is found, the CL mode is determined. If a desired wireless LAN network is not found, or if a CL device participates in the formed wireless LAN network before the desired wireless LAN network is found, the AP mode is determined.

図6(a)の説明に戻る。   Returning to the description of FIG.

ステップS605において、制御部101は、図7の画面703を表示部106に表示させ、接続相手であるスマートデバイスの検索を行う。   In step S605, the control unit 101 displays the screen 703 of FIG. 7 on the display unit 106, and searches for a smart device that is a connection partner.

ステップS606において、制御部101は、接続相手であるスマートデバイスとの接続を行う。スマートデバイスとのアプリケーションレベルの接続が完了すると、制御部101は、図7の画面704を表示部106に表示する。この画面では、送信対象となる画像が表示され、画像送信サービスを開始する。   In step S606, the control unit 101 connects to the smart device that is the connection partner. When the application level connection with the smart device is completed, the control unit 101 displays the screen 704 in FIG. 7 on the display unit 106. On this screen, an image to be transmitted is displayed and an image transmission service is started.

以上、本実施形態のデジタルカメラ100は、APモード/CLモードを自動的に決定するか否かを、接続方法によって決定する方法について述べた。これにより、あらかじめ形成する無線LANネットワークの情報を受け渡しできる場合は、APモードに自動的に決定することが可能となる。   As described above, the digital camera 100 according to the present embodiment has described the method for determining whether to automatically determine the AP mode / CL mode by the connection method. As a result, when information on the wireless LAN network formed in advance can be transferred, it is possible to automatically determine the AP mode.

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

Claims (9)

無線通信により外部機器と通信を行う通信装置において、
無線通信手段と、
前記無線通信手段により中継装置が形成したネットワークをスキャンするスキャン手段と、
前記中継装置が形成したネットワークに前記無線通信手段を介して参加する参加手段と、
前記無線通信手段を用いて前記通信装置が中継装置となりネットワークを形成する形成手段と、
前記スキャン手段と、前記形成手段を並行して動作させるよう制御する制御手段とを有し、
前記スキャン手段と前記形成手段とが並行して動作している状態で、所定のネットワークが前記スキャン手段により発見された場合、前記制御手段は、前記形成手段で形成したネットワークを破棄すると共に、前記参加手段により、前記所定のネットワークに参加するよう制御することを特徴とした通信装置。
In a communication device that communicates with an external device by wireless communication,
Wireless communication means;
Scanning means for scanning the network formed by the relay device by the wireless communication means;
Participation means for participating in the network formed by the relay device via the wireless communication means;
Forming means for forming a network by using the wireless communication means and the communication device becomes a relay device;
The scanning means, and a control means for controlling the forming means to operate in parallel,
When a predetermined network is found by the scanning unit in a state where the scanning unit and the forming unit are operating in parallel, the control unit discards the network formed by the forming unit, and A communication apparatus that controls to participate in the predetermined network by a joining means.
前記スキャン手段によって所定のネットワークが発見されなかった場合、前記形成手段は、ネットワークを形成し続けることを特徴とする請求項1に記載の通信装置。   The communication apparatus according to claim 1, wherein if the predetermined network is not found by the scanning unit, the forming unit continues to form a network. 過去に接続したネットワークに関する情報を保持する手段を更に有し、
前記所定のネットワークは、過去に接続したことのあるネットワークと同じ情報を有するネットワークであることを特徴とする請求項1または2に記載の通信装置。
It further has means for holding information about networks connected in the past,
The communication apparatus according to claim 1, wherein the predetermined network is a network having the same information as a network that has been connected in the past.
前記形成手段で形成したネットワークに他の通信装置が参加したことを検知する検知手段を更に有し、
前記検知手段が前記形成手段で形成したネットワークに他の通信装置が参加したことを検知した場合、前記制御手段は、前記スキャン手段を停止するよう制御することを特徴とする請求項1乃至3のいずれか1項に記載の通信装置。
It further comprises detection means for detecting that another communication device has joined the network formed by the formation means,
4. The control unit according to claim 1, wherein when the detection unit detects that another communication device has joined the network formed by the forming unit, the control unit controls the scanning unit to stop. The communication apparatus of any one of Claims.
ユーザから、ネットワークを介して実行するサービスの指示を受け付ける受け付け手段を更に有し、
前記制御手段は、前記受け付け手段により前記ネットワークを介して実行するサービスの指示をユーザから受け付けたことに応じて、前記実行を指示されたサービスの種類に基づき、前記スキャン手段と前記形成手段を並行して動作させるか否かを判断することを特徴とする請求項1乃至4のいずれか1項に記載の通信装置。
A receiving unit that receives an instruction of a service to be executed from the user via the network;
The control means executes the scanning means and the forming means in parallel based on the type of service instructed to execute in response to receiving an instruction from the user by the accepting means for the service to be executed via the network. The communication apparatus according to claim 1, wherein it is determined whether or not to operate the communication apparatus.
前記無線通信手段とは異なる第二の無線通信手段を更に有し、
前記第二の無線通信手段を介して外部装置から通信を開始する指示を受け付けた場合、前記制御手段は、前記スキャン手段を動作させず、前記形成手段を動作させるよう制御することを特徴とする請求項1乃至5のいずれか1項に記載の通信装置。
A second wireless communication means different from the wireless communication means;
When receiving an instruction to start communication from an external device via the second wireless communication unit, the control unit controls the forming unit to operate without operating the scanning unit. The communication apparatus according to any one of claims 1 to 5.
前記第二の無線通信手段を介して、前記形成手段が用いる通信パラメータを前記外部装置に送信することを特徴とする請求項6に記載の通信装置。   The communication apparatus according to claim 6, wherein communication parameters used by the forming unit are transmitted to the external device via the second wireless communication unit. 無線通信により外部機器と通信を行う無線通信手段を有する通信装置の制御方法であって、
前記無線通信手段により中継装置が形成したネットワークをスキャンするスキャンステップと、
中継装置が形成したネットワークに前記無線通信手段を介して参加する参加ステップと、
前記無線通信手段を用いて前記通信装置が中継装置となりネットワークを形成する形成ステップと、
前記スキャンステップと、前記形成ステップを並行して実行する制御ステップとを有し、
前記スキャンステップと前記形成ステップとが並行して実行されている状態で、所定のネットワークが前記スキャンステップにより発見された場合、前記形成ステップで形成したネットワークを破棄すると共に、前記参加ステップを実行することにより、前記所定のネットワークに参加するよう制御することを特徴とした通信装置の制御方法。
A method for controlling a communication device having a wireless communication means for communicating with an external device by wireless communication,
A scanning step of scanning a network formed by a relay device by the wireless communication means;
A joining step of joining via a wireless communication means to a network formed by a relay device;
A forming step in which the communication device becomes a relay device and forms a network using the wireless communication means;
The scanning step, and a control step for executing the forming step in parallel,
When a predetermined network is discovered by the scanning step in a state where the scanning step and the forming step are executed in parallel, the network formed in the forming step is discarded and the joining step is executed. Thus, a control method for a communication apparatus, wherein control is performed so as to participate in the predetermined network.
コンピュータを、請求項1乃至7のいずれか1項に記載の通信装置の各手段として機能させるための、コンピュータが読み取り可能なプログラム。   A computer-readable program for causing a computer to function as each unit of the communication device according to any one of claims 1 to 7.
JP2016191329A 2016-09-29 2016-09-29 Communication equipment, its control method, and programs Active JP6918463B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2016191329A JP6918463B2 (en) 2016-09-29 2016-09-29 Communication equipment, its control method, and programs

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2016191329A JP6918463B2 (en) 2016-09-29 2016-09-29 Communication equipment, its control method, and programs

Publications (2)

Publication Number Publication Date
JP2018056829A true JP2018056829A (en) 2018-04-05
JP6918463B2 JP6918463B2 (en) 2021-08-11

Family

ID=61837304

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2016191329A Active JP6918463B2 (en) 2016-09-29 2016-09-29 Communication equipment, its control method, and programs

Country Status (1)

Country Link
JP (1) JP6918463B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2020099025A (en) * 2018-12-19 2020-06-25 Necプラットフォームズ株式会社 Wireless master device, wireless relay device, wireless communication system, wireless communication method, and program
JP2023179890A (en) * 2022-06-08 2023-12-20 キヤノン株式会社 Communication device, control method and program for communication device

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014131103A (en) * 2012-12-28 2014-07-10 Canon Inc Communication apparatus, control method thereof, and program
JP2015220569A (en) * 2014-05-16 2015-12-07 キヤノン株式会社 Communication device, control method, and program

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014131103A (en) * 2012-12-28 2014-07-10 Canon Inc Communication apparatus, control method thereof, and program
JP2015220569A (en) * 2014-05-16 2015-12-07 キヤノン株式会社 Communication device, control method, and program

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2020099025A (en) * 2018-12-19 2020-06-25 Necプラットフォームズ株式会社 Wireless master device, wireless relay device, wireless communication system, wireless communication method, and program
JP2023179890A (en) * 2022-06-08 2023-12-20 キヤノン株式会社 Communication device, control method and program for communication device
JP7596331B2 (en) 2022-06-08 2024-12-09 キヤノン株式会社 COMMUNICATION DEVICE, CONTROL METHOD AND PROGRAM FOR COMMUNICATION DEVICE

Also Published As

Publication number Publication date
JP6918463B2 (en) 2021-08-11

Similar Documents

Publication Publication Date Title
US9451527B2 (en) Communication apparatus, control method, and program
US11089481B2 (en) Communication apparatus communicating with external apparatus in a selected procedure from among a plurality of procedures to establish wireless connection, control method for communication apparatus, and recording medium
US9843999B2 (en) Communication apparatus, method for controlling the same, and computer-readable recording medium
JP6400101B2 (en) COMMUNICATION DEVICE, COMMUNICATION DEVICE CONTROL METHOD, PROGRAM
US9807222B2 (en) Communication apparatus, method of controlling same, and storage medium
US10015262B2 (en) Communication apparatus and control method thereof
JP6092622B2 (en) COMMUNICATION DEVICE, ITS CONTROL METHOD, PROGRAM
US10257337B2 (en) Communication apparatus connectable with use of close proximity wireless communication, method for controlling communication apparatus, and recording medium
JP7175634B2 (en) Communication device, control method and program
JP6385078B2 (en) COMMUNICATION DEVICE, COMMUNICATION DEVICE CONTROL METHOD, PROGRAM
JP6415232B2 (en) COMMUNICATION DEVICE, COMMUNICATION DEVICE CONTROL METHOD, PROGRAM
JP6399854B2 (en) COMMUNICATION DEVICE, COMMUNICATION DEVICE CONTROL METHOD, PROGRAM
JP6033014B2 (en) Information processing apparatus, control method thereof, and program
JP6918463B2 (en) Communication equipment, its control method, and programs
JP2018033002A (en) Wireless communication apparatus, control method of the same, and wireless communication system
JP6650793B2 (en) Communication device, communication device control method, and program
JP7703339B2 (en) COMMUNICATION DEVICE, CONTROL METHOD, AND PROGRAM
JP6433231B2 (en) COMMUNICATION DEVICE, COMMUNICATION DEVICE CONTROL METHOD, PROGRAM
JP2018142865A (en) Communication device, control method of communication device, and program
JP6386862B2 (en) COMMUNICATION DEVICE, COMMUNICATION DEVICE CONTROL METHOD, PROGRAM
JP2016025374A (en) COMMUNICATION DEVICE, COMMUNICATION DEVICE CONTROL METHOD, PROGRAM
JP2018107714A (en) Communication device, control method of communication device, and program
JP2016100724A (en) Information processing apparatus, information processing method, and program
CN118160402A (en) Wireless communication device and control method thereof
JP2014131107A (en) Radio communication apparatus, control method thereof, and program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20190926

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20200529

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20201006

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20201203

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20210224

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20210416

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20210721

R151 Written notification of patent or utility model registration

Ref document number: 6918463

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151