JP2017037531A - Communication device and control method thereof, and program - Google Patents

Communication device and control method thereof, and program Download PDF

Info

Publication number
JP2017037531A
JP2017037531A JP2015159133A JP2015159133A JP2017037531A JP 2017037531 A JP2017037531 A JP 2017037531A JP 2015159133 A JP2015159133 A JP 2015159133A JP 2015159133 A JP2015159133 A JP 2015159133A JP 2017037531 A JP2017037531 A JP 2017037531A
Authority
JP
Japan
Prior art keywords
data
external device
data format
file
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
JP2015159133A
Other languages
Japanese (ja)
Other versions
JP6666669B2 (en
Inventor
四宮 岳史
Takeshi Shinomiya
岳史 四宮
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 JP2015159133A priority Critical patent/JP6666669B2/en
Publication of JP2017037531A publication Critical patent/JP2017037531A/en
Application granted granted Critical
Publication of JP6666669B2 publication Critical patent/JP6666669B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

PROBLEM TO BE SOLVED: To provide a communication device capable of specifying data that can be processed by an external device at an appropriate timing.SOLUTION: A communication device includes: communication means that is configured to transfer data to an external device via a network in which the communication device is participating and to transmit/receive control information to/from the external device before participating in the network; and control means that controls processing using the communication means. The control means performs control so that: if first data having a first data format is selected as a transfer target before the communication means participates in the network, whether or not the external device can handle the first data format is determined through transmission/reception of the control information; if the external device can handle the first data format, the communication device participates in the network; and if the external device cannot handle the first data format, whether or not the external device can handle a second data format different from the first data format is determined through transmission/reception of the control information.SELECTED DRAWING: Figure 4

Description

本発明は、外部装置と通信を行う通信装置及びその制御方法ならびにプログラムに関する。   The present invention relates to a communication device that communicates with an external device, a control method thereof, and a program.

無線通信の普及に伴い、デジタルカメラなどの携帯型端末に無線通信機能を搭載して、外部装置に映像ファイル等のデータを送信することが提案されている(特許文献1)。例えば無線LANを用いて外部装置にデータを送信する場合、携帯型端末は、まず外部装置の属する無線LANネットワークに参加する処理を実行したうえで、外部装置と通信を確立する処理を実行する。   With the spread of wireless communication, it has been proposed to mount a wireless communication function in a portable terminal such as a digital camera and transmit data such as a video file to an external device (Patent Document 1). For example, when data is transmitted to an external apparatus using a wireless LAN, the portable terminal first executes a process of joining a wireless LAN network to which the external apparatus belongs, and then executes a process of establishing communication with the external apparatus.

特開2009−152689号公報JP 2009-152689 A

しかし、外部装置との通信を確立した後に、携帯型端末から外部装置に送信した映像ファイル等のデータを当該外部装置が適切に処理できない(例えば再生できない)ことが判明すると、それまでに実行した通信処理が無駄になってしまう。このため、外部装置が処理可能なデータを適切なタイミングで特定する必要がある。   However, after establishing communication with the external device, if it is found that the external device cannot properly process (for example, cannot reproduce) data such as a video file transmitted from the portable terminal to the external device, it has been executed Communication processing is wasted. For this reason, it is necessary to specify data that can be processed by the external device at an appropriate timing.

本発明は、上述の従来技術の問題点に鑑みてなされたものであり、適切なタイミングで外部装置が処理可能なデータを特定することが可能な通信装置及びその制御方法ならびにプログラムを提供することを目的とする。   The present invention has been made in view of the above-described problems of the prior art, and provides a communication device capable of specifying data that can be processed by an external device at an appropriate timing, a control method thereof, and a program. With the goal.

この課題を解決するため、例えば本発明の通信装置は以下の構成を備える。すなわち、
参加中のネットワークを介して外部装置へデータを転送すると共に、ネットワークに参加する前に外部装置と制御情報を送受信するように構成された通信手段と、通信手段を用いた処理を制御する制御手段と、を有し、制御手段は、通信手段がネットワークに参加する前に、第1のデータ形式を持つ第1のデータが転送対象として選択された場合に、制御情報の送受信を通じて、外部装置が第1のデータ形式を処理可能か否かを判定し、外部装置が第1のデータ形式を処理可能である場合、ネットワークに参加し、外部装置が第1のデータ形式を処理可能でない場合、制御情報の送受信を通じて、外部装置が第1のデータ形式と異なる第2のデータ形式を処理可能か否かを判定するように制御する、ことを特徴とする。
In order to solve this problem, for example, the communication device of the present invention has the following configuration. That is,
A communication means configured to transfer data to an external device via a participating network and to transmit / receive control information to / from the external device before joining the network, and a control means for controlling processing using the communication means And when the first data having the first data format is selected as a transfer target before the communication means joins the network, the control means transmits and receives control information through the transmission and reception of control information. It is determined whether or not the first data format can be processed, and if the external device can process the first data format, it participates in the network and the external device cannot process the first data format. Control is performed to determine whether or not the external device can process a second data format different from the first data format through transmission / reception of information.

本発明によれば、適切なタイミングで外部装置が処理可能なデータを特定することが可能な通信装置及びその制御方法ならびにプログラムを提供することができる。   ADVANTAGE OF THE INVENTION According to this invention, the communication apparatus which can identify the data which an external apparatus can process at an appropriate timing, its control method, and a program can be provided.

本発明の実施形態に係る通信装置の一例としてのデジタルカメラの機能構成例を示すブロック図1 is a block diagram showing a functional configuration example of a digital camera as an example of a communication apparatus according to an embodiment of the present invention. 本実施形態に係るデジタルカメラの通信機能に係るソフトウェア構成を示すブロック図1 is a block diagram showing a software configuration related to a communication function of a digital camera according to the present embodiment. 本実施形態に係るネットワーク構成の一例を示す模式図Schematic diagram showing an example of a network configuration according to the present embodiment 実施形態1に係るデジタルカメラ及び外部装置間の動作シーケンスを示す模式図Schematic diagram showing an operation sequence between the digital camera and the external device according to the first embodiment. 実施形態1に係る通信制御処理の一連の動作を示すフローチャート7 is a flowchart showing a series of operations of communication control processing according to the first embodiment. 実施形態1に係るデジタルカメラのGUI画面の一例を示す図FIG. 4 is a diagram illustrating an example of a GUI screen of the digital camera according to the first embodiment. 実施形態2に係る通信制御処理の一連の動作を示すフローチャート7 is a flowchart showing a series of operations of communication control processing according to the second embodiment. 実施形態3に係る通信制御処理の一連の動作を示すフローチャート7 is a flowchart showing a series of operations of communication control processing according to the third embodiment. 実施形態4に係る通信制御処理の一連の動作を示すフローチャート8 is a flowchart showing a series of operations of communication control processing according to the fourth embodiment.

(実施形態1)
以下、本発明の例示的な実施形態について、図面を参照して詳細に説明する。なお、以下では通信装置の一例として、通信によってデータを送受信可能な任意のデジタルカメラに本発明を適用した例を説明する。しかし、本発明は、デジタルカメラに限らず、通信によってデータを送受信可能な任意の機器にも適用可能である。これらの機器には、例えば携帯電話機、ゲーム機、タブレット端末、パーソナルコンピュータ、時計型や眼鏡型の情報端末などが含まれてよい。
(Embodiment 1)
Hereinafter, exemplary embodiments of the present invention will be described in detail with reference to the drawings. In the following, an example in which the present invention is applied to an arbitrary digital camera capable of transmitting and receiving data by communication will be described as an example of a communication device. However, the present invention is not limited to a digital camera and can be applied to any device capable of transmitting and receiving data by communication. These devices may include, for example, a mobile phone, a game machine, a tablet terminal, a personal computer, a clock-type or glasses-type information terminal.

(デジタルカメラ100の構成)
図1は、本実施形態の通信装置の一例としてデジタルカメラ100の機能構成例を示すブロック図である。なお、図1に示す機能ブロックの1つ以上は、ASICやプログラマブルロジックアレイ(PLA)などのハードウェアによって実現されてもよいし、CPUやMPU等のプログラマブルプロセッサがソフトウェアを実行することによって実現されてもよい。また、ソフトウェアとハードウェアの組み合わせによって実現されてもよい。従って、以下の説明において、異なる機能ブロックが動作主体として記載されている場合であっても、同じハードウェアが主体として実現されうる。
(Configuration of digital camera 100)
FIG. 1 is a block diagram illustrating a functional configuration example of a digital camera 100 as an example of a communication apparatus according to the present embodiment. One or more of the functional blocks shown in FIG. 1 may be realized by hardware such as an ASIC or a programmable logic array (PLA), or may be realized by a programmable processor such as a CPU or MPU executing software. May be. Further, it may be realized by a combination of software and hardware. Therefore, in the following description, even when different functional blocks are described as the operation subject, the same hardware can be realized as the subject.

撮像部101は、光学レンズ、イメージセンサ、デジタル画像処理部等を含み、撮像光学系を介して入力される被写体光学像を光電変換してアナログ信号を生成し、さらにデジタルデータに変換して画像データを生成する。例えば、1フレームが横1920画素×縦1080画素の画像データを、所定のフレームレート(例えば30フレーム毎秒)で出力することができる。このような撮像部101からの出力は、例えば動画データとしてバスを介して伝送され、記憶部103に記憶される。   The imaging unit 101 includes an optical lens, an image sensor, a digital image processing unit, and the like, photoelectrically converts a subject optical image input via the imaging optical system to generate an analog signal, and further converts it into digital data to generate an image. Generate data. For example, image data in which one frame is 1920 horizontal pixels × 1080 vertical pixels can be output at a predetermined frame rate (for example, 30 frames per second). The output from the imaging unit 101 is transmitted as, for example, moving image data via a bus and stored in the storage unit 103.

制御部102は、例えばCPUあるいはMPUを含み、記憶部103に含まれるROMに格納された制御プログラムを、記憶部103に含まれるRAMの作業エリアに展開して実行することにより、デジタルカメラ100全体を制御する。制御部102は、ネットワーク上の外部装置との間の通信パラメータの設定、ネットワークへの参加、外部装置との通信の確立等の各種制御処理を行う(制御手段)。   The control unit 102 includes, for example, a CPU or MPU, and develops and executes a control program stored in a ROM included in the storage unit 103 in a work area of a RAM included in the storage unit 103, thereby executing the entire digital camera 100. To control. The control unit 102 performs various control processes such as setting of communication parameters with an external device on the network, participation in the network, establishment of communication with the external device (control means).

記憶部103は、例えばROM、RAM、HDD、フラッシュメモリ等の各種メモリを含み、制御部102が実行する制御プログラムと、通信パラメータ等の各種情報を記憶する。また、記憶部103は、デジタルカメラ100で撮影した動画データや静止画データを記憶するデータ記憶手段として機能する。なお、記憶部103は、デジタルカメラ100で撮影した動画データや静止画データのほか、外部装置で生成されて当該装置から受信した動画データ等を記憶してもよい。   The storage unit 103 includes various memories such as ROM, RAM, HDD, and flash memory, for example, and stores a control program executed by the control unit 102 and various information such as communication parameters. The storage unit 103 functions as a data storage unit that stores moving image data and still image data captured by the digital camera 100. Note that the storage unit 103 may store moving image data generated by an external device and received from the device in addition to moving image data and still image data captured by the digital camera 100.

無線部104は、無線通信を行うための処理回路又は機能モジュールであり、制御部102の指示に応じて、例えばIEEE802.11シリーズに準拠した無線LAN通信を実行する(通信手段)。   The wireless unit 104 is a processing circuit or a functional module for performing wireless communication, and executes wireless LAN communication compliant with, for example, IEEE 802.11 series in accordance with an instruction from the control unit 102 (communication means).

表示部105は、例えばタッチパネル式のLCD又はLEDパネルからなるモニタを含む。表示部105は、記憶部103に記憶された動画データ又はデジタルカメラ100の操作のための操作画面(メニュー画面)等の視覚で認知可能な情報の出力、若しくはスピーカなどの音声出力が可能である。表示部105は視覚情報および音情報の少なくともどちらか一方を出力する機能を備える。   The display unit 105 includes a monitor including, for example, a touch panel type LCD or LED panel. The display unit 105 can output visually recognizable information such as moving image data stored in the storage unit 103 or an operation screen (menu screen) for operating the digital camera 100, or audio output such as a speaker. . The display unit 105 has a function of outputting at least one of visual information and sound information.

データ変換部106は、記憶部103に記憶された動画データや静止画データから異なる形式のデータに変換して記憶部103に記憶する(データ変換手段)。例えば、MOV形式の動画データとMP4形式の動画データを相互に変換したり、JPEG形式の静止画データとPNG形式の静止画データを相互に変換したりすることができる。データ変換部106は、例えばトランスコーダと呼ばれる専用のハードウェアによって構成されてもよい。   The data conversion unit 106 converts the moving image data or still image data stored in the storage unit 103 into data of a different format and stores the data in the storage unit 103 (data conversion unit). For example, MOV format moving image data and MP4 format moving image data can be converted to each other, or JPEG format still image data and PNG format still image data can be converted to each other. The data conversion unit 106 may be configured by dedicated hardware called a transcoder, for example.

アンテナ制御部107は、無線通信を行うためのアンテナ108を制御する制御回路又は制御モジュールを含み、無線通信を行うための信号出力等を制御する。   The antenna control unit 107 includes a control circuit or a control module that controls the antenna 108 for performing wireless communication, and controls a signal output and the like for performing wireless communication.

操作部109は、各種ボタンやタッチパネル等を含み、ユーザが各種ボタンやメニュー画面から各種入力等を行ってデジタルカメラ100を操作する。操作部109は検出したユーザ入力を制御部102に送信する。   The operation unit 109 includes various buttons, a touch panel, and the like, and the user operates the digital camera 100 by performing various inputs from various buttons and a menu screen. The operation unit 109 transmits the detected user input to the control unit 102.

(通信制御機能に係る機能ブロックの構成)
図2は、本実施形態の通信制御機能を実現する、一例としてのソフトウェアによる機能ブロック201の機能構成例を示すブロック図である。機能ブロック201の通信制御機能は、デジタルカメラ100が備えるハードウェアおよびソフトウェアにより実現される。
(Function block configuration related to communication control function)
FIG. 2 is a block diagram illustrating a functional configuration example of the functional block 201 by software as an example for realizing the communication control function of the present embodiment. The communication control function of the functional block 201 is realized by hardware and software included in the digital camera 100.

ディスカバリ制御部202は、通信相手となる外部装置を検索して機器発見(Device Discovery)処理を行う。また、GOネゴシエーション制御部203は、Wi−Fi Directプロトコル仕様に基づくGO Negotiation処理を行って、外部装置との間でどちらが無線LANアクセスポイント(又は無線LANステーション)の役割を果たすかを決定する。なお、Wi−Fi Directでは、無線LANアクセスポイント機能を提供する通信装置をP2Pグループオーナー(以下、GOともいう)、無線LANステーション機能を提供する通信装置をP2Pクライアント(以下、CLともいう)という。デジタルカメラ100がGOまたは無線LANアクセスポイントとなる場合は後述する無線LANアクセスポイント機能制御部211が起動される。一方、デジタルカメラ100がCLまたは無線LANステーションとなる場合は後述する無線LANステーション機能制御部210が起動される。このGO Negotiation処理に係るプロトコルはWi−Fi Direct仕様で規定されているため詳細は省略する。Wi−Fi DirectではGOが形成したネットワークをP2Pグループという。本実施形態でもネットワークのことをP2Pグループという場合があり、これらを同一の意味で説明する。なお、P2Pグループオーナー(GO)、P2Pクライアント(CL)および役割が未決定の通信装置群をまとめて、P2Pデバイスという。   The discovery control unit 202 searches for an external device that is a communication partner and performs device discovery processing. In addition, the GO negotiation control unit 203 performs GO Negotiation processing based on the Wi-Fi Direct protocol specification, and determines which of the external devices plays the role of a wireless LAN access point (or a wireless LAN station). In Wi-Fi Direct, a communication device that provides a wireless LAN access point function is referred to as a P2P group owner (hereinafter also referred to as GO), and a communication device that provides a wireless LAN station function is referred to as a P2P client (hereinafter also referred to as CL). . When the digital camera 100 is a GO or wireless LAN access point, a wireless LAN access point function control unit 211 described later is activated. On the other hand, when the digital camera 100 is a CL or a wireless LAN station, a wireless LAN station function control unit 210 described later is activated. Since the protocol related to this GO Negotiation process is defined in the Wi-Fi Direct specification, the details are omitted. In Wi-Fi Direct, a network formed by GO is called a P2P group. In this embodiment, the network may be referred to as a P2P group, and these will be described in the same meaning. The P2P group owner (GO), the P2P client (CL), and the communication device group whose role has not been determined are collectively referred to as a P2P device.

DHCPクライアント制御部204は、DHCPクライアントの機能を提供し、GOネゴシエーション制御部203においてデジタルカメラ100の役割が無線LANステーションとなる場合に起動される。 また、DHCPサーバ制御部205は、DHCPサーバの機能を提供し、GOネゴシエーション制御部203においてデジタルカメラ100の役割が無線LANアクセスポイントとなる場合に起動される。   The DHCP client control unit 204 provides a DHCP client function, and is activated when the role of the digital camera 100 is a wireless LAN station in the GO negotiation control unit 203. The DHCP server control unit 205 provides a DHCP server function, and is activated when the role of the digital camera 100 is a wireless LAN access point in the GO negotiation control unit 203.

WPSエンローリ制御部206は、無線LANの通信のために必要な通信パラメ―タを、他のWPSレジストラ装置から受信する。DHCPクライアント制御部204と同様に、デジタルカメラ100の役割が無線LANステーションとなる場合に動作する。WPSレジストラ制御部207は、無線LANの通信のために必要な通信パラメータを、他のWPSエンローリ装置に提供する。DHCPサーバ制御部205と同様に、デジタルカメラ100の役割が無線LANアクセスポイントとなる場合に動作する。なお、WPSレジストラによって提供される通信パラメータは、ネットワーク識別子としてのSSID、暗号鍵、暗号方式、認証鍵、認証方式等のパラメータである。   The WPS enrollee control unit 206 receives communication parameters necessary for wireless LAN communication from other WPS registrar devices. Similar to the DHCP client control unit 204, it operates when the role of the digital camera 100 is a wireless LAN station. The WPS registrar control unit 207 provides communication parameters necessary for wireless LAN communication to other WPS enrollee devices. Similar to the DHCP server control unit 205, it operates when the role of the digital camera 100 is a wireless LAN access point. Note that the communication parameters provided by the WPS registrar are parameters such as an SSID as a network identifier, an encryption key, an encryption method, an authentication key, and an authentication method.

無線LANパケット受信部208及び無線LANパケット送信部209は、上位レイヤの通信プロトコルを含むあらゆるパケットの送受信を実行する。無線LANステーション機能制御部210は、デジタルカメラ100が無線LANステーションとして動作する場合の認証処理、暗号処理等を実行して、無線LANアクセスポイントとして動作する装置が形成する無線ネットワークに参加する。   The wireless LAN packet receiving unit 208 and the wireless LAN packet transmitting unit 209 execute transmission / reception of all packets including upper layer communication protocols. The wireless LAN station function control unit 210 performs authentication processing, encryption processing, and the like when the digital camera 100 operates as a wireless LAN station, and participates in a wireless network formed by a device operating as a wireless LAN access point.

無線LANアクセスポイント機能制御部211は、デジタルカメラ100が無線LANアクセスポイント機能として動作する場合に、無線ネットワークを形成し、認証処理、暗号処理および外部装置の管理処理等を実行する。無線LANステーション機能制御部210および無線LANアクセスポイント機能制御部211は、どちらか一方が動作してもよいし、同時に動作してもよい。   When the digital camera 100 operates as a wireless LAN access point function, the wireless LAN access point function control unit 211 forms a wireless network and executes authentication processing, encryption processing, external device management processing, and the like. Either the wireless LAN station function control unit 210 or the wireless LAN access point function control unit 211 may operate or may operate simultaneously.

パケットルーティング制御部212は、無線LANアクセスポイント機能制御部211が動作しているときに、通信パケットをブリッジおよびルーティングする。   The packet routing control unit 212 bridges and routes communication packets when the wireless LAN access point function control unit 211 is operating.

データ記憶部213は、ソフトウェアプログラムおよび、無線LANパラメータや、上述したDHCPアドレステーブルおよびARPテーブル等の各種テーブルを記憶する。   The data storage unit 213 stores software programs, wireless LAN parameters, and various tables such as the above-described DHCP address table and ARP table.

サービスディスカバリ制御部214は、Wi−Fi Direct特有のサービスディスカバリ機能を実現する。サービスディスカバリ機能は、IEEE802.11uで定められた、管理フレームの一部であるアクションフレームを送受信することにより、外部装置の提供しているサービス情報を取得する。具体的には、サービスディスカバリ制御部214はSD Queryを送信し、SD Responseを返答として受信する。もしくは、サービスディスカバリ制御部214は外部装置からのSD Queryを受信し、その応答としてSD Responseを送信する。SD Responseにはサービスの種類を示す情報が含まれており、この応答を送信した装置の提供するサービスの種類、例えばファイル転送サービス、印刷サービス、動画像ストリーミングサービス等が示される。   The service discovery control unit 214 implements a service discovery function unique to Wi-Fi Direct. The service discovery function acquires service information provided by an external device by transmitting and receiving an action frame, which is a part of a management frame, defined by IEEE 802.11u. Specifically, the service discovery control unit 214 transmits an SD Query and receives an SD Response as a response. Alternatively, the service discovery control unit 214 receives an SD Query from an external device, and transmits an SD Response as a response. The SD Response includes information indicating the type of service, and indicates the type of service provided by the apparatus that has transmitted this response, such as a file transfer service, a print service, and a moving image streaming service.

P2Pインビテーション制御部215は、Wi−Fi Direct規格で定められたInvitation機能を制御する。このInvitation機能についてはWi−Fi Direct仕様に規定されているため省略するが、GOもしくはCLが役割の決まっていないP2PデバイスをP2Pクライアントとして接続を促す機能である。   The P2P invitation control unit 215 controls an invitation function defined by the Wi-Fi Direct standard. Since this invitation function is defined in the Wi-Fi Direct specification, it is omitted, but it is a function that prompts connection by using a P2P device in which the role of GO or CL is not determined as a P2P client.

サービス提供部216は、アプリケーションレイヤのファイル転送サービスを提供する。アプリケーションレイヤは、OSI参照モデルにおける第5層以上の上位レイヤにおけるサービス提供層をさす。ファイル転送サービスでは、HTTPプロトコルを利用して各種要求応答の送受信処理や、転送ファイルの送受信処理を行う。   The service providing unit 216 provides an application layer file transfer service. The application layer refers to a service providing layer in a higher layer than the fifth layer in the OSI reference model. In the file transfer service, various request / response transmission / reception processes and transfer file transmission / reception processes are performed using the HTTP protocol.

サービス利用部217は、外部装置のアプリケーションレイヤのファイル転送サービス提供部によって提供されるサービスを利用する。   The service using unit 217 uses a service provided by the file transfer service providing unit in the application layer of the external device.

セッション制御部218は、ファイル転送サービスにおける論理的な接続を管理する。ファイル転送サービスを利用する場合は、転送するデータの情報(転送データ関連情報)を送信することによってセッション生成要求を外部装置に送信し、その応答を受信する。ファイル転送サービスを提供する場合は、転送データ関連情報を受信し、この転送データ関連情報の内容に基づいてセッション生成の可否を判定し応答する。転送データ関連情報は、例えば転送するファイルの数や、合計サイズ、ファイル名で構成される情報である。セッション制御部218は、セッション生成が可能と判定された場合は、無線レイヤでの接続処理を実行する。なお、セッション管理に関わる情報のやりとりは、ファイルを転送するためのいわゆる制御情報の送受信として行われ、例えばIEEE802.11で定められた、管理フレームの一部であるパブリックアクションフレームを利用して行われる。   The session control unit 218 manages logical connections in the file transfer service. When a file transfer service is used, a session generation request is transmitted to an external device by transmitting data information to be transferred (transfer data related information), and a response is received. When the file transfer service is provided, the transfer data related information is received, and it is determined whether or not a session can be generated based on the content of the transfer data related information and responds. The transfer data related information is information including, for example, the number of files to be transferred, the total size, and the file name. When it is determined that the session can be generated, the session control unit 218 performs connection processing in the wireless layer. In addition, the exchange of information related to session management is performed as transmission / reception of so-called control information for transferring a file, and is performed using, for example, a public action frame, which is a part of a management frame defined in IEEE 802.11. Is called.

なお、図2に示す全ての機能ブロックはソフトウェアによって提供されるものに限らず、少なくとも一部がハードウェアによって提供されるようにしてもよい。そして、各機能ブロックは、相互関係を有し、複数の機能ブロックが1つの機能ブロックを構成するようにしてもよいし、何れかの機能ブロックが更に複数の機能を行うブロックに分かれてもよい。さらに、アプケリーションレイヤにおけるファイル転送サービスは、そのサービスを提供する装置と、そのサービスを利用する装置とによって実現される。本実施形態における一例ではサービスを利用する装置はデジタルカメラ100であり、サービスを提供する装置は、スマートフォン、タブレット、デジタルカメラ、ストレージ装置等であってよい。   Note that all the functional blocks shown in FIG. 2 are not limited to those provided by software, and at least some of them may be provided by hardware. Each functional block has a mutual relationship, and a plurality of functional blocks may constitute one functional block, or any functional block may be further divided into blocks that perform a plurality of functions. . Furthermore, the file transfer service in the application layer is realized by a device that provides the service and a device that uses the service. In an example of the present embodiment, the device that uses the service is the digital camera 100, and the device that provides the service may be a smartphone, a tablet, a digital camera, a storage device, or the like.

図3は、デジタルカメラ100(図3及び図4においてファイルの送信側を表すSTA−Aとも呼ぶ)と、外部装置(図3及び図4においてファイルの受信側を表すSTA−Bとも呼ぶ)とから構成される無線ネットワーク31の例を示している。いずれの装置も、図2を参照して説明した機能ブロック201の通信制御機能を実現するハードウェアおよびソフトウェア(例えば、図1に示すもの)を有する。デジタルカメラ100と外部装置は、形成された無線ネットワーク31に参加し、例えばIEEE802.11シリーズに準拠した無線通信を確立する。   3 shows a digital camera 100 (also referred to as STA-A representing a file transmission side in FIGS. 3 and 4) and an external device (also referred to as STA-B representing a file reception side in FIGS. 3 and 4). The example of the wireless network 31 comprised from this is shown. Each apparatus has hardware and software (for example, what is shown in FIG. 1) for realizing the communication control function of the functional block 201 described with reference to FIG. The digital camera 100 and the external device participate in the formed wireless network 31 and establish wireless communication conforming to, for example, the IEEE 802.11 series.

(通信制御処理に係る動作シーケンス)
図4は、STA−A(デジタルカメラ100に対応)が、その記憶部103に格納されている動画データを、STA−B(外部装置に対応)に送信する場合の、装置間の動作シーケンスを示す模式図である。また、図4の例ではSTA−Aがファイル転送サービスを利用する送信側の通信装置であり、STA−Bは、ファイル転送サービスを提供する受信側の通信装置として動作する。
(Operation sequence related to communication control processing)
FIG. 4 shows an operation sequence between apparatuses when STA-A (corresponding to the digital camera 100) transmits moving image data stored in the storage unit 103 to STA-B (corresponding to an external apparatus). It is a schematic diagram shown. In the example of FIG. 4, STA-A is a communication device on the transmission side that uses the file transfer service, and STA-B operates as a communication device on the reception side that provides the file transfer service.

S401において、STA−Aは、ユーザ操作による、転送するファイルの選択完了を受け取ると、S402において、ファイル転送サービスを提供している通信装置を検索するための問い合わせ信号(ファイル転送サービス検索)を送信する。   In step S401, when the STA-A receives the completion of selection of the file to be transferred by the user operation, in step S402, the STA-A transmits an inquiry signal (file transfer service search) for searching for a communication device that provides the file transfer service. To do.

S403において、STA−Bは、前記問い合わせ信号を受信し、検出応答信号をSTA−Aに送信する。   In S403, STA-B receives the inquiry signal and transmits a detection response signal to STA-A.

S404において、STA−Aは、検出応答を受信し、STA−Bとファイル転送サービスのための論理的な接続を確立させるため、転送データ関連情報を付加したセッション生成要求信号を送信する。例えば、転送データ関連情報は「ファイル数:1、合計サイズ:5MB、ファイル名:20130807.MOV」といったものでよい。このとき、転送するデータ形式を示すファイル名の拡張子(この例では「MOV」)は省略しないものとする。このタイミングに(即ち、無線ネットワークに参加する前に)転送データ関連情報を送信することにより、STA−Bはどのようなデータが転送されるのか事前に認識することができる。なお、以降の説明において、転送するデータとして最初に選択されたファイルを当初ファイルともいう場合がある。ファイル転送サービス検索やセッション生成要求に係る情報の送受信は、STA−A及びSTA−Bで定めた特定の周波数帯(チャンネルともいわれる)のもと、上述した管理フレームの一部であるアクションフレームを使用して行われる。   In step S404, the STA-A receives the detection response and transmits a session generation request signal to which transfer data related information is added in order to establish a logical connection for the file transfer service with the STA-B. For example, the transfer data related information may be “number of files: 1, total size: 5 MB, file name: 20130807.MOV”. At this time, the extension of the file name indicating the data format to be transferred (“MOV” in this example) is not omitted. By transmitting the transfer data related information at this timing (that is, before joining the wireless network), the STA-B can recognize in advance what data is transferred. In the following description, a file that is initially selected as data to be transferred may be referred to as an initial file. The transmission / reception of information related to the file transfer service search and the session generation request is performed by using an action frame that is a part of the management frame described above under a specific frequency band (also referred to as a channel) defined in STA-A and STA-B. Done using.

S405において、STA−Bは、STA−Aから送信されたセッション生成要求信号を受信し、転送データ関連情報に応じて、許可応答信号あるいは拒否応答信号をSTA−Aに送信する。具体的には、STA−Bは、転送データ関連情報に含まれるデータ形式を参照して、STA−Bで処理可能なデータか否かを判定する。STA−Bは処理可能と判定した場合は許可応答信号を、処理可能でないと判定した場合は拒否応答信号をSTA−Aに送信する。例えば、STA−Bが、MP4形式の動画データの再生機能を備える一方、MOV形式の動画データの再生機能を備えていない場合、受信した転送データ関連情報に含まれるファイル名の拡張子(データ形式)がMOVであるため拒否応答信号を送信する。   In S405, the STA-B receives the session generation request signal transmitted from the STA-A, and transmits a permission response signal or a rejection response signal to the STA-A according to the transfer data related information. Specifically, the STA-B refers to the data format included in the transfer data related information and determines whether the data can be processed by the STA-B. The STA-B transmits a permission response signal to the STA-A when it is determined that it can be processed, and a rejection response signal when it is determined that it cannot be processed. For example, when the STA-B has a function for reproducing moving image data in the MP4 format but does not have a function for reproducing moving image data in the MOV format, the extension of the file name included in the received transfer data related information (data format Since) is MOV, a rejection response signal is transmitted.

S405においてSTA−Bが拒否応答信号を送信した場合、STA−Aは、以下に示すS406〜S408の処理を行う。   When STA-B transmits a rejection response signal in S405, STA-A performs the following processes of S406 to S408.

S406において、STA−Aは、拒否応答信号を受信すると、S404において転送対象としていたファイル(当初ファイル)の代替として転送するファイル(代替ファイル)を選択する。具体的には、拒否応答を受けた転送データ関連情報に含まれていた当初ファイルについて、拡張子のみ異なる代替ファイルが記憶部103に存在するかを判定し、このファイルが存在する場合は当該代替ファイルを送信対象として選択する。また、STA−Aは、代替ファイルが存在しない場合、当初ファイルを変換して得られるファイルを転送対象として選択する。例えば、上述した転送データ関連情報の例では、拡張子のみ異なるファイル名(例えば「20130807.AVI」)が記憶部103に存在する場合はこのファイルを代替ファイルとして選択する。また、当該ファイルが存在しない場合はSTA−Aのデータ変換部106によってMOV形式を変換して得られる、例えばMP4形式のファイル名(例えば「20130807.MP4」)を選択する。   In S406, when the STA-A receives the rejection response signal, the STA-A selects a file (substitute file) to be transferred as an alternative to the file (initial file) that was the transfer target in S404. Specifically, with respect to the initial file included in the transfer data related information that received the rejection response, it is determined whether there is an alternative file in the storage unit 103 that differs only in extension. Select a file to send. Further, when there is no alternative file, the STA-A selects a file obtained by converting the initial file as a transfer target. For example, in the example of the transfer data related information described above, when a file name (for example, “20130807.AVI”) having a different extension only exists in the storage unit 103, this file is selected as an alternative file. If the file does not exist, the MP4 format file name (for example, “20130807.MP4”) obtained by converting the MOV format by the data conversion unit 106 of the STA-A is selected.

S407において、STA−Aは、代替ファイルを選択すると、選択した代替ファイルのデータ形式を含む転送データ関連情報を用いて再びセッション生成要求を送信する。S408において、STA−Bは、S405のときと同様に、STA−Aに許可応答信号あるいは拒否応答信号を送信する。このとき、STA−Aは拒否応答信号を受信するとS406における代替ファイル選択、及びS407におけるセッション生成要求を再び行ってSTA−Bからの応答信号を確認する。即ち、STA−Aは、STA−Bから許可応答信号を受信するまでS406〜S408の処理を繰り返して、STA−Bの処理可能なデータ形式を特定する。   In S407, when the STA-A selects an alternative file, the STA-A transmits a session generation request again using the transfer data related information including the data format of the selected alternative file. In S408, STA-B transmits a permission response signal or a rejection response signal to STA-A, as in S405. At this time, when the STA-A receives the rejection response signal, the alternative file selection in S406 and the session generation request in S407 are performed again to confirm the response signal from the STA-B. That is, STA-A repeats the processing of S406 to S408 until it receives the permission response signal from STA-B, and specifies the data format that can be processed by STA-B.

さらに、S409以降のステップについて説明する。S409以降のステップは、S408においてSTA−AがSTA−Bから許可応答信号を受信した場合の処理である。   Further, steps after S409 will be described. Steps after S409 are processing when STA-A receives the permission response signal from STA-B in S408.

S409において、STA−Aは、許可応答信号を受信するとSTA−Bとの間で、無線レイヤの接続処理を実行する。無線レイヤでの接続処理は、上述したWi−Fi Direct仕様に基づいた接続処理である。即ち、STA−AまたはSTA−Bのどちらか一方がP2Pグループオーナー(GO)となり、他方がP2Pクライアント(CL)となる。CLはGOが形成した無線ネットワークに参加する、いわゆるネットワーク参加処理を行う。但し、GOが無線ネットワークを形成した場合、GOはネットワーク参加処理を行っているものとする。   In S409, when the STA-A receives the permission response signal, the STA-A performs a wireless layer connection process with the STA-B. The connection process in the wireless layer is a connection process based on the Wi-Fi Direct specification described above. That is, either STA-A or STA-B is a P2P group owner (GO), and the other is a P2P client (CL). The CL performs a so-called network participation process for participating in a wireless network formed by the GO. However, when the GO forms a wireless network, the GO performs network participation processing.

S410において、STA−Aは、参加中のネットワークを介して、ファイル転送サービスの所定の開始処理を実行する。具体的には、DHCPによるIPアドレスの設定処理等を行ってSTA−Bとの接続を確立し、ファイル転送サービスにおけるHTTP転送に必要な詳細情報をSTA−Bから取得する処理を実行する。   In S410, the STA-A executes a predetermined start process of the file transfer service via the participating network. Specifically, an IP address setting process by DHCP is performed to establish a connection with STA-B, and a process for acquiring detailed information necessary for HTTP transfer in the file transfer service from STA-B is executed.

S411において、STA−Aは、許可応答信号を受信した際のセッション生成要求で用いた転送データ関連情報(S404あるいはS407)に基づいて、STA−Bに対するファイルの送信処理を実行する。   In S411, the STA-A executes a file transmission process for the STA-B based on the transfer data related information (S404 or S407) used in the session generation request when the permission response signal is received.

S412において、STA−Aは、ファイルの転送を終了すると、ファイル転送サービスに対する所定の終了処理を実行する。具体的には、S410で生成した情報の削除や、設定を解除する処理を実行する。   In S412, when the STA-A finishes transferring the file, the STA-A executes a predetermined end process for the file transfer service. Specifically, processing for deleting the information generated in S410 and canceling the setting are executed.

S413において、STA−Aは、STA−Bとのファイル転送サービスの論理的な接続を終了させるため、セッション終了要求信号を送信する。また、S414において、STA−Bは、セッション終了要求信号を受信して、STA−Aに許可応答信号を送信する。   In S413, the STA-A transmits a session end request signal to end the logical connection of the file transfer service with the STA-B. In S414, STA-B receives the session end request signal and transmits an authorization response signal to STA-A.

S415において、STA−Aは、許可応答信号を受信して、STA−Bとの無線レイヤの接続を切断する処理を実行する。なお、無線レイヤでの切断処理は、上述したWi−Fi Direct仕様に基づいた切断処理である。STA−AおよびSTA−Bは、以上の処理を完了すると通信制御処理に係る動作シーケンスを終了する。   In S415, the STA-A receives the permission response signal and executes a process of disconnecting the wireless layer connection with the STA-B. Note that the disconnection process in the wireless layer is a disconnection process based on the Wi-Fi Direct specification described above. When STA-A and STA-B complete the above process, the operation sequence related to the communication control process ends.

(通信制御処理に係る一連の動作)
次に、図5を参照して、デジタルカメラ100の通信制御処理に係る一連の動作を説明する。この一連の動作は、デジタルカメラ100がファイル転送サービスを利用して、記憶部103に格納されている動画データを外部装置に送信する処理である。なお、デジタルカメラ100の表示部105に転送の対象となるファイルを表示させている状態で、例えば操作部109に対するユーザからの選択操作があった場合に本処理が開始される。本処理は、制御部102が記憶部103に記憶されたプログラムを作業用領域に展開し、実行することにより実現される。
(A series of operations related to communication control processing)
Next, a series of operations related to communication control processing of the digital camera 100 will be described with reference to FIG. This series of operations is a process in which the digital camera 100 transmits the moving image data stored in the storage unit 103 to an external device using a file transfer service. Note that this processing is started when a user performs a selection operation on the operation unit 109 in a state where a file to be transferred is displayed on the display unit 105 of the digital camera 100, for example. This process is realized by the control unit 102 expanding and executing the program stored in the storage unit 103 in the work area.

S501において、制御部102は、ユーザが転送するファイルを選択するための画面(転送ファイル選択画面)を表示部105に表示する。図6は、本ステップにおいて表示部105に表示される画面の一例を示しており、その画面構成は、ユーザが操作部109により転送する所望のファイルを選択可能に構成されている。転送ファイル選択画面には、記憶部103に格納されているファイルの縮小静止画(いわゆるサムネイル画像)601〜606が一覧表示される。また、表示対象となるファイルの数に応じて画面をスクロール表示させるためのスクロール609や、選択したファイルの転送を決定する送信ボタン607及び操作を中止して前の画面に戻る中止ボタン608が表示される。   In step S <b> 501, the control unit 102 displays a screen for selecting a file to be transferred by the user (transfer file selection screen) on the display unit 105. FIG. 6 shows an example of a screen displayed on the display unit 105 in this step, and the screen configuration is configured such that the user can select a desired file to be transferred by the operation unit 109. The transfer file selection screen displays a list of reduced still images (so-called thumbnail images) 601 to 606 of the files stored in the storage unit 103. Also, a scroll 609 for scrolling the screen according to the number of files to be displayed, a send button 607 for determining transfer of the selected file, and a cancel button 608 for canceling the operation and returning to the previous screen are displayed. Is done.

再び図5を参照する。S502において、制御部102は、転送ファイル選択画面において、ユーザによりファイルが選択されたかを判定する。制御部102はファイルが選択された場合は処理をS503に進め、ファイルが選択されていない場合、処理を再びS502に戻してユーザによるファイルの選択を待つ。より具体的には、図6の画面において、ユーザが操作部109を介してサムネイル画像601〜606のいずれかを選択し、送信ボタン607を押下するのを待つ。なお、本実施形態では転送するファイルを1つ選択するものとして説明するが、複数選択して転送することもできる。   Refer to FIG. 5 again. In step S502, the control unit 102 determines whether a user has selected a file on the transfer file selection screen. If the file is selected, the control unit 102 advances the process to step S503. If the file is not selected, the control unit 102 returns the process to step S502 and waits for the user to select a file. More specifically, the user waits for the user to select one of the thumbnail images 601 to 606 via the operation unit 109 and press the send button 607 on the screen of FIG. In the present embodiment, description is made assuming that one file to be transferred is selected, but a plurality of files can be selected and transferred.

S503において、制御部102は外部装置を検出したかを判定する。より具体的には、制御部102は、ファイル転送サービスの検索処理を開始して、当該検出処理の開始から所定時間の間に外部装置からの検出応答を受信できたかを判定する。検出応答を受信できなかった場合、別途、表示部105にその旨を表示してユーザに通知するとともに、本一連の処理を終了する。一方、検出応答を受信した場合、処理をS504に進める。なお、本ステップにおいて複数の外部装置を検出した場合、制御部102は、検出応答を送信した外部装置を表示部105にリストを表示して、ファイルを転送先となる装置を選択するためのユーザ操作を受け付けるようにしてもよい。   In step S503, the control unit 102 determines whether an external device has been detected. More specifically, the control unit 102 starts a file transfer service search process, and determines whether a detection response from an external device has been received within a predetermined time from the start of the detection process. When the detection response cannot be received, this is separately displayed on the display unit 105 to notify the user, and this series of processing is terminated. On the other hand, if a detection response is received, the process proceeds to S504. When a plurality of external devices are detected in this step, the control unit 102 displays a list of external devices that have transmitted detection responses on the display unit 105, and selects a device to which a file is to be transferred. An operation may be accepted.

S504において、制御部102は、セッション生成処理を行う。具体的には、制御部102は、転送するファイルに係る転送データ関連情報を生成し、この転送データ関連情報を含んだセッション生成要求を、無線部104を介して送信する。S505において、制御部102は、セッション生成要求に対する許可応答を受信したかを判定する。具体的には、無線部104を介して受信したセッション生成要求に対する応答を判定し、この応答が許可応答である場合は処理をS509に進め、この応答が拒否応答である場合は処理をS506に進める。   In S504, the control unit 102 performs a session generation process. Specifically, the control unit 102 generates transfer data related information related to the file to be transferred, and transmits a session generation request including the transfer data related information via the wireless unit 104. In step S505, the control unit 102 determines whether a permission response to the session generation request has been received. Specifically, a response to the session generation request received via the wireless unit 104 is determined. If this response is a permission response, the process proceeds to S509. If this response is a rejection response, the process proceeds to S506. Proceed.

まず、セッション生成要求に対して拒否応答があった場合の処理(S506〜S508)について説明する。S506において、制御部102は、拡張子のみ異なるファイルが記憶部103に存在するかを判定する。具体的には、S502で選択されたファイルのファイル名とは拡張子のみが異なり、かつ、S504のセッション生成処理に用いられていないファイルが、記憶部103に存在するか否かを判定する。当該ファイルが存在する場合、処理をS504に戻し、当該ファイルの情報を用いて再びセッション生成処理を行う。一方、該当するファイルが存在しない場合は、処理をS507に進める。   First, the processing (S506 to S508) when there is a rejection response to the session generation request will be described. In step S <b> 506, the control unit 102 determines whether a file having a different extension exists in the storage unit 103. Specifically, it is determined whether or not a file that is different from the file name of the file selected in S502 only in extension and is not used in the session generation process in S504 exists in the storage unit 103. If the file exists, the process returns to S504, and the session generation process is performed again using the information of the file. On the other hand, if the corresponding file does not exist, the process proceeds to S507.

S507において、制御部102は、セッション生成処理で用いたファイルがデータ変換可能であるかを判定する。即ち、制御部102は、セッション生成処理で用いたファイルがデータ変換部106を用いて別のデータ形式を持つデータ(拡張子の異なるデータ)に変換可能かを判定する。データ変換が可能である場合は処理をS508に進め、可能でない場合は外部装置が利用可能なデータが用意できないものとして本一連の処理を終了する。   In step S507, the control unit 102 determines whether the file used in the session generation process can be converted. That is, the control unit 102 determines whether the file used in the session generation process can be converted into data having a different data format (data with different extensions) using the data conversion unit 106. If data conversion is possible, the process advances to step S508; otherwise, the series of processes is terminated assuming that data that can be used by the external apparatus cannot be prepared.

S508において、制御部102は、データ変換部106を用いてデータ変換処理を開始する。この変換処理によって生成される新たな代替ファイルのファイル名は、データ変換処理に用いたファイル名の拡張子を変更したものであり、生成されるファイルは記憶部103に記憶される。その後、制御部102は処理をS504に戻し、変換処理によって生成されたファイルの情報を用いて再びセッション生成処理を行う。即ち、制御部102は許可応答信号を受信するまで上述したS504〜S508の処理を繰り返して、外部装置が処理可能なデータ形式を特定する。   In step S <b> 508, the control unit 102 starts data conversion processing using the data conversion unit 106. The file name of the new alternative file generated by this conversion process is obtained by changing the extension of the file name used for the data conversion process, and the generated file is stored in the storage unit 103. Thereafter, the control unit 102 returns the process to S504, and performs the session generation process again using the information of the file generated by the conversion process. In other words, the control unit 102 repeats the processes of S504 to S508 described above until receiving the permission response signal, and specifies a data format that can be processed by the external apparatus.

次に、セッション生成要求に対して、許可応答があった場合の処理(S509〜S514)について説明する。   Next, processing (S509 to S514) when there is a permission response to the session generation request will be described.

S509において、制御部102は、外部装置との間でWi−Fi Direct仕様に基づいて、ネットワークへの参加を含んだ無線レイヤの接続処理を実行する。さらに、DHCPによるIPアドレス設定処理、およびファイル転送サービスにおけるHTTP転送に必要な詳細情報の取得処理等の転送サービス開始処理を実行する。   In step S509, the control unit 102 executes wireless layer connection processing including participation in the network based on the Wi-Fi Direct specification with the external device. Furthermore, a transfer service start process such as an IP address setting process by DHCP and an acquisition process of detailed information necessary for HTTP transfer in the file transfer service is executed.

S510において、制御部102は、S508でデータ変換処理を開始していた場合、そのデータ変換処理が途中であるかを判定する。制御部102は、データ変換処理が途中であると判定した場合、処理を再びS510に戻して当該変換処理の完了を待つ。一方、当該変換処理が完了していると判定した場合、処理をS511に進める。   In S510, if the data conversion process has been started in S508, the control unit 102 determines whether the data conversion process is in progress. When determining that the data conversion process is in progress, the control unit 102 returns the process to S510 again and waits for the completion of the conversion process. On the other hand, if it is determined that the conversion process has been completed, the process proceeds to S511.

S511において、制御部102は、S504で送信した転送データ関連情報に基づいて、参加中のネットワークを介した外部装置に対するファイル転送処理を実行する。S512において、制御部102は、ファイルの送信処理が終了すると、S512においてファイル転送サービスの終了処理を実行し、さらにS513においてセッション終了処理を実行する。   In step S511, the control unit 102 executes file transfer processing for the external device via the participating network based on the transfer data related information transmitted in step S504. In step S512, when the file transmission process ends, the control unit 102 executes a file transfer service end process in step S512, and further executes a session end process in step S513.

制御部102は、セッション終了処理を完了すると、さらにS513において無線レイヤの切断処理を実行し、そしてS514において、S508で生成されたデータ変換後のデータを必要に応じて記憶部103から削除する。このとき、制御部102はデータ変換後のデータを全て削除してもよいが、S505において外部装置から許可応答の得られなかったデータ形式を持つデータのみを選択的に削除するようにしてもよい。このようにすれば、記憶部103に転送可能なデータのみを記憶部103に保持しておくこともできる。制御部102は、S513及びS514の処理を完了すると、本一連の動作を終了する。   When the session end process is completed, the control unit 102 further performs a wireless layer disconnection process in S513, and deletes the data-converted data generated in S508 from the storage unit 103 as necessary in S514. At this time, the control unit 102 may delete all the data after the data conversion, but may selectively delete only the data having the data format for which the permission response has not been obtained from the external device in S505. . In this way, only data that can be transferred to the storage unit 103 can be held in the storage unit 103. When the processing of S513 and S514 is completed, the control unit 102 ends this series of operations.

(通信制御処理の具体例)
図5に示した一連の処理について、デジタルカメラ100がS505において外部装置から拒否応答信号を受信した場合の具体例を一例として説明する。
(Specific example of communication control processing)
A series of processes shown in FIG. 5 will be described as a specific example when the digital camera 100 receives a rejection response signal from the external device in S505.

なお、S502でユーザが選択したファイルのファイル名を「20130807.MOV」とし、記憶部103には当該選択されたファイルのほかに「20130807.WMV」が格納されているものとする。また、デジタルカメラ100のデータ変換部106は各種動画データをMP4形式に変換できる機能を有するものとする。さらに、外部装置は、MOV形式とWMV形式の動画データを再生することができないが、MP4形式の動画データを再生することができるものとする。   It is assumed that the file name of the file selected by the user in S502 is “20130807.MOV”, and “20130807.WMV” is stored in the storage unit 103 in addition to the selected file. In addition, the data conversion unit 106 of the digital camera 100 has a function of converting various moving image data into the MP4 format. Furthermore, the external device cannot reproduce moving image data in MOV format and WMV format, but can reproduce moving image data in MP4 format.

デジタルカメラ100は、ユーザのファイル選択に従ってファイル「20130807.MOV」の情報を付加してセッション生成処理を行う(S504に対応)。これに対して、外部装置がMOV形式の動画データを再生することができない。このため外部装置から拒否応答信号を受信すると(S505のNOに対応)、デジタルカメラ100は記憶部103を確認し、拡張子の異なるファイル「20130807.WMV」を発見する(S506のYESに対応)。   The digital camera 100 adds the information of the file “20130807.MOV” according to the user's file selection and performs session generation processing (corresponding to S504). On the other hand, the external device cannot reproduce the MOV format moving image data. Therefore, when a rejection response signal is received from the external device (corresponding to NO in S505), the digital camera 100 checks the storage unit 103 and finds a file “20130807.WMV” having a different extension (corresponding to YES in S506). .

デジタルカメラ100は、ファイル「20130807.WMV」の情報を用いて再びセッション生成処理を行う(S504に対応)が、外部装置がWMV形式の動画データを再生することができないため再び拒否応答信号を受信する(S505のNOに対応)。このとき、記憶部103には拡張子のみが異なるファイルがこれ以上存在しない(S506のNOに対応)。このため、デジタルカメラ100はデータ変換部106を用いて「20130807.WMV」をMP4形式のファイル「20130807.MP4」に変換する(S507のYES及びS508に対応)。なお、S508において、「20130807.MOV」をMP4形式に変換してもよい。   The digital camera 100 performs the session generation process again using the information of the file “20130807.WMV” (corresponding to S504), but receives the rejection response signal again because the external device cannot reproduce the WMV format moving image data. (Corresponds to NO in S505). At this time, there are no more files having different extensions only in the storage unit 103 (corresponding to NO in S506). For this reason, the digital camera 100 converts the “20130807.WMV” into the MP4 format file “20130807.MP4” using the data conversion unit 106 (corresponding to YES and S508 in S507). In S508, “20130807.MOV” may be converted into the MP4 format.

このMP4形式のファイルに基づくセッション生成処理を行うと、外部装置がMP4形式の動画データを再生することができるため、デジタルカメラ100は許可応答信号を受信する(S505のYESに対応)。以降、S509〜S513に従い、データ変換部106で変換したMP4形式の動画データを外部装置に転送し、当該転送が完了すると変換データを記憶部103から削除する(S514に対応)。   When the session generation processing based on the MP4 format file is performed, the external device can reproduce the MP4 format moving image data, and thus the digital camera 100 receives the permission response signal (corresponding to YES in S505). Thereafter, in accordance with S509 to S513, the MP4 format moving image data converted by the data conversion unit 106 is transferred to the external device, and when the transfer is completed, the converted data is deleted from the storage unit 103 (corresponding to S514).

以上説明したように本実施形態では、デジタルカメラ100が無線ネットワークに参加する前に制御情報たる転送データ関連情報を外部装置に送信し、参加中のネットワークを介して転送するデータのデータ形式を外部装置が処理可能かを判定するようにした。そして、転送するデータ形式を外部装置が処理可能でない場合、記憶部103に格納されている別の形式或いは変換可能な別の形式を持つデータを、外部装置が処理可能か判定するようにした。このようにすることで、適切なタイミングで(即ち、外部装置との無線通信を確立する前に)外部装置が処理可能なデータを特定することが可能になる。さらに、転送するデータのデータ形式が、外部装置によって処理可能なデータ形式である場合、ネットワークに参加して当該形式のデータを外部装置に転送するようにした。このようにすれば、無線通信を確立した後に、外部装置が処理できないデータを送信する場合の無駄を回避し、送信側が準備可能な形式のデータの中から外部装置が処理可能なデータを選択して送信することが可能になる。   As described above, in the present embodiment, before the digital camera 100 participates in the wireless network, the transfer data related information that is control information is transmitted to the external device, and the data format of the data transferred through the participating network is set to the external data format. It was determined whether the device can be processed. If the external device cannot process the data format to be transferred, it is determined whether the external device can process data having another format stored in the storage unit 103 or another format that can be converted. By doing so, it becomes possible to identify data that can be processed by the external apparatus at an appropriate timing (that is, before establishing wireless communication with the external apparatus). Further, when the data format of the data to be transferred is a data format that can be processed by the external device, the data in the format is transferred to the external device by participating in the network. In this way, after establishing wireless communication, it avoids waste when transmitting data that cannot be processed by the external device, and selects data that can be processed by the external device from data in a format that can be prepared by the transmission side. Can be sent.

(実施形態2)
次に実施形態2について説明する。実施形態1では、セッション生成処理において拒否応答があった場合に、データ形式の異なるファイルを転送するためにデータ変換処理を行う場合について説明した。これに対して、実施形態2ではセッション生成処理に先立って予めデータ変換を開始する。本実施形態のデジタルカメラ100の構成は、実施形態1と同一の構成であり、また、通信制御処理に係る一連の動作も上述した処理を除いて実施形態1で説明した処理と同様である。このため、本実施形態において参照する図においては、実施形態1において参照した図と同一又は同様の構成及びステップについては同一の符号を付して重複する説明は省略し、相違点について重点的に説明する。
(Embodiment 2)
Next, Embodiment 2 will be described. In the first embodiment, the case where the data conversion process is performed in order to transfer a file having a different data format when there is a rejection response in the session generation process has been described. On the other hand, in the second embodiment, data conversion is started in advance prior to the session generation process. The configuration of the digital camera 100 of the present embodiment is the same as that of the first embodiment, and the series of operations related to the communication control process is the same as the process described in the first embodiment except for the processes described above. For this reason, in the drawing referred to in the present embodiment, the same or similar configurations and steps as those in the drawing referred to in the first embodiment are denoted by the same reference numerals, and redundant description will be omitted, and differences will be emphasized. explain.

(実施形態2における通信制御処理に係る一連の動作)
次に、図7を参照して、デジタルカメラ100の通信制御処理に係る一連の動作を説明する。この一連の動作は、実施形態1と同様、デジタルカメラ100がファイル転送サービスを利用して、記憶部103に格納されている動画データを外部装置に送信する処理である。また、本処理が開始される状態及び制御部102が各処理を実行する点は実施形態1と同様である。
(A series of operations related to communication control processing in the second embodiment)
Next, a series of operations related to the communication control process of the digital camera 100 will be described with reference to FIG. Similar to the first embodiment, this series of operations is a process in which the digital camera 100 transmits the moving image data stored in the storage unit 103 to an external device using a file transfer service. The state in which this process is started and the point that the control unit 102 executes each process are the same as in the first embodiment.

制御部102は、S501〜S502の処理を実行してユーザにより所定のファイルが選択された場合にS701に処理を進める。   The control unit 102 executes the processes of S501 to S502 and advances the process to S701 when a predetermined file is selected by the user.

S701において、制御部102は、S502で選択されたファイルがデータ変換可能であるかを判定する。即ち、制御部102は、選択されたファイルがデータ変換部106を用いて別の形式を持つデータ(拡張子の異なるデータ)に変換可能かを判定する。データ変換が可能である場合は処理をS702に進め、可能でない場合は処理をS703に進める。   In step S701, the control unit 102 determines whether the file selected in step S502 can be converted. In other words, the control unit 102 determines whether the selected file can be converted into data having a different format (data with different extensions) using the data conversion unit 106. If data conversion is possible, the process proceeds to S702; otherwise, the process proceeds to S703.

S702において、制御部102は、データ変換部106を用いてデータ変換処理を開始する。この変換処理によって生成される新たな代替ファイルのファイル名は、データ変換処理に用いたファイル名の拡張子を変更したものであり、生成されるファイルは記憶部103に記憶される。なお、データ変換部106が複数の形式のデータに変換する機能を有する場合は、本ステップにおいて複数のデータ形式へ変換を開始してもよい。   In step S <b> 702, the control unit 102 starts data conversion processing using the data conversion unit 106. The file name of the new alternative file generated by this conversion process is obtained by changing the extension of the file name used for the data conversion process, and the generated file is stored in the storage unit 103. When the data conversion unit 106 has a function of converting data into a plurality of formats, conversion to a plurality of data formats may be started in this step.

S703において、制御部102は外部装置を検出したかを判定する。より具体的には、制御部102は、ファイル転送サービスの検索処理を開始して、当該検出処理の開始から所定時間の間に外部装置からの検出応答を受信できたかを判定する。検出応答を受信できなかった場合、別途、表示部105にその旨を表示してユーザに通知するとともに、他の処理を行わずにS707に処理を進める。一方、検出応答を受信した場合、処理をS704に進める。なお、本ステップにおいて複数の外部装置を検出した場合、制御部102は、検出応答を送信した外部装置を表示部105にリストを表示して、ファイルを転送先となる装置を選択するためのユーザ操作を受け付けるようにしてもよい。   In step S703, the control unit 102 determines whether an external device has been detected. More specifically, the control unit 102 starts a file transfer service search process, and determines whether a detection response from an external device has been received within a predetermined time from the start of the detection process. If the detection response cannot be received, this is separately displayed on the display unit 105 to notify the user, and the process proceeds to S707 without performing other processes. On the other hand, if a detection response has been received, the process proceeds to S704. When a plurality of external devices are detected in this step, the control unit 102 displays a list of external devices that have transmitted detection responses on the display unit 105, and selects a device to which a file is to be transferred. An operation may be accepted.

S704において、制御部102は、セッション生成処理を行う。具体的には、制御部102は、転送されるファイルに係る転送データ関連情報を生成し、この転送データ関連情報を含んだセッション生成要求を、無線部104を介して送信する。S705において、制御部102は、セッション生成要求に対する許可応答を受信したかを判定する。具体的には、無線部104を介して受信したセッション生成要求に対する応答を判定し、この応答が許可応答である場合は処理をS509に進め、この応答が拒否応答である場合は処理をS706に進める。   In step S704, the control unit 102 performs session generation processing. Specifically, the control unit 102 generates transfer data related information relating to the transferred file, and transmits a session generation request including the transfer data related information via the wireless unit 104. In step S705, the control unit 102 determines whether a permission response to the session generation request has been received. Specifically, a response to the session generation request received via the wireless unit 104 is determined. If this response is a permission response, the process proceeds to S509. If this response is a rejection response, the process proceeds to S706. Proceed.

S706において、制御部102は、拡張子のみ異なるファイルが記憶部103に存在するかを判定する。具体的には、S502で選択されたファイルのファイル名とは拡張子のみが異なり、かつ、S704のセッション生成処理に用いられていないファイルが、記憶部103に存在するか否かを判定する。このとき、記憶部103に存在するファイルには、上述したS702において変換処理が開始されたファイルも含まれる(変換処理が未完了であっても構わない)。当該ファイルが存在する場合、処理をS704に戻し、当該ファイルの情報を用いて再びセッション生成処理を行う。一方、該当するファイルが存在しない場合は、他の処理を行わずに処理をS514に進める。   In step S <b> 706, the control unit 102 determines whether a file that differs only in extension exists in the storage unit 103. Specifically, it is determined whether or not there is a file in the storage unit 103 that has only an extension different from the file name of the file selected in S502 and is not used in the session generation processing in S704. At this time, the files existing in the storage unit 103 include the files whose conversion processing has been started in S702 described above (the conversion processing may be incomplete). If the file exists, the process returns to S704, and the session generation process is performed again using the information of the file. On the other hand, if the corresponding file does not exist, the process proceeds to S514 without performing other processes.

以降の図7に示すS509〜S513の処理は、実施形態1と同様であり、制御部102は外部装置と無線レイヤでの接続処理を行ったうえでファイル転送を行う。   The subsequent processing of S509 to S513 shown in FIG. 7 is the same as that of the first embodiment, and the control unit 102 performs file transfer after performing connection processing with the external device in the wireless layer.

S707において、制御部102は、S702においてデータ変換処理を行った場合、そのデータ変換処理によって生成されたデータを削除して、本処理に係る一連の動作を終了する。   In S707, when the data conversion process is performed in S702, the control unit 102 deletes the data generated by the data conversion process, and ends the series of operations related to this process.

なお、S702においてデータ変換処理を開始した後、データ変換処理の途中に許可応答信号を受信(S705)した場合、生成中のデータを削除してもよい。即ち、制御部102は、許可応答信号を受信したデータ形式が継続中の変換処理に係るデータ形式と異なれば、当該変換処理を中止して生成中のデータを削除してもよい。このようにすれば、データ転送されないファイルに対する無駄な処理を省くことができる。   In addition, after starting the data conversion process in S702, when the permission response signal is received during the data conversion process (S705), the data being generated may be deleted. That is, if the data format that received the permission response signal is different from the data format related to the ongoing conversion process, the control unit 102 may stop the conversion process and delete the data that is being generated. In this way, useless processing for files that are not transferred can be omitted.

以上説明したように本実施形態では、転送しようとするデータに対して予めデータ変換を行うようにした。このようにすることで、外部装置から拒否応答を受信した場合に外部装置で利用可能なデータを素早く送信することが可能になる。   As described above, in this embodiment, data conversion is performed in advance on data to be transferred. In this way, when a rejection response is received from the external device, it is possible to quickly transmit data that can be used by the external device.

(実施形態3)
次に実施形態3について説明する。実施形態1では、セッション生成処理において拒否応答があった場合に、データ形式の異なるファイルを転送するためにデータ変換処理を行う場合について説明した。実施形態3では、記憶部103がさらに応答信号の履歴を記憶する履歴記憶手段としても機能し、制御部102は過去に拒否応答のなされた拡張子のファイルに対しては、データ転送関連情報を送信しない。本実施形態のデジタルカメラ100の構成は、実施形態1と同一の構成であり、また、通信制御処理に係る一連の動作も上述した処理を除いて実施形態1で説明した処理と同様である。このため、本実施形態において参照する図においては、実施形態1において参照した図と同一又は同様の構成及びステップについては同一の符号を付して重複する説明は省略し、相違点について重点的に説明する。
(Embodiment 3)
Next, Embodiment 3 will be described. In the first embodiment, the case where the data conversion process is performed in order to transfer a file having a different data format when there is a rejection response in the session generation process has been described. In the third embodiment, the storage unit 103 also functions as a history storage unit that stores a response signal history, and the control unit 102 stores data transfer related information for files with extensions that have been rejected in the past. Do not send. The configuration of the digital camera 100 of the present embodiment is the same as that of the first embodiment, and the series of operations related to the communication control process is the same as the process described in the first embodiment except for the processes described above. For this reason, in the drawing referred to in the present embodiment, the same or similar configurations and steps as those in the drawing referred to in the first embodiment are denoted by the same reference numerals, and redundant description will be omitted, and differences will be emphasized. explain.

(実施形態3における通信制御処理に係る一連の動作)
図8を参照して、デジタルカメラ100の通信制御処理に係る一連の動作を説明する。この一連の動作は、実施形態1及び2と同様、デジタルカメラ100がファイル転送サービスを利用して、記憶部103に格納されている動画データを外部装置に送信する処理である。また、本処理が開始される状態及び制御部102が各処理を実行する点は実施形態1及び2と同様である。
(A series of operations related to communication control processing in the third embodiment)
A series of operations related to the communication control process of the digital camera 100 will be described with reference to FIG. Similar to the first and second embodiments, this series of operations is a process in which the digital camera 100 transmits the moving image data stored in the storage unit 103 to an external device using a file transfer service. The state in which this process is started and the point that the control unit 102 executes each process are the same as in the first and second embodiments.

制御部102は、S501〜S503の処理を実行してユーザによるファイルの選択及び外部装置の検出処理を行い、外部装置を検出した場合に処理をS801に進める。   The control unit 102 executes the processing of S501 to S503 to perform file selection and external device detection processing by the user, and proceeds to S801 when an external device is detected.

S801において、制御部102は、S503で検出した外部装置について、過去にセッション生成処理において拒否応答を受信した履歴があるか否かを判定する。より具体的には、制御部102は、外部装置と転送対象のファイルの拡張子とを関連付けた拒否履歴を記憶部103から読み出す。拒否履歴には、例えば、外部装置を特定する識別子(例えば外部装置のMACアドレス等)と拒否応答信号を受信した際のファイルの拡張子との組が記憶され、制御部102はファイル転送サービスを提供する外部装置の識別子をキーにして拒否履歴を検索する。拒否応答の履歴がある場合はS802に処理を進め、当該履歴が無い場合はS806に処理を進める。なお、拒否応答の履歴は、後述するS808において随時更新される。   In step S801, the control unit 102 determines whether there is a history of receiving a rejection response in the session generation process in the past for the external device detected in step S503. More specifically, the control unit 102 reads from the storage unit 103 a refusal history that associates the external device with the extension of the file to be transferred. The rejection history stores, for example, a set of an identifier for identifying an external device (for example, the MAC address of the external device) and a file extension when the rejection response signal is received, and the control unit 102 determines the file transfer service. The rejection history is searched using the identifier of the provided external device as a key. If there is a history of rejection responses, the process proceeds to S802, and if there is no history, the process proceeds to S806. The rejection response history is updated at any time in S808 described later.

S802において、制御部102は、S502で選択された転送対象のファイル(即ち当初ファイル)の拡張子が、過去にセッション生成処理で拒否応答がなされた際に使用された拡張子であるか否かを判定する。転送対象のファイルの拡張子が、過去に拒否応答がなされた拡張子と一致する場合はS803に処理を進め、拒否応答の履歴のある拡張子と一致しない場合はS806に処理を進める。   In S <b> 802, the control unit 102 determines whether or not the extension of the transfer target file selected in S <b> 502 (that is, the initial file) is the extension used when a rejection response was made in the session generation process in the past. Determine. If the extension of the transfer target file matches an extension for which a rejection response has been made in the past, the process proceeds to S803. If the extension does not match an extension with a history of rejection response, the process proceeds to S806.

S803において、制御部102は、拡張子のみ異なるファイルが記憶部103に存在するかを判定する。具体的には、S502で選択されたファイルのファイル名とは拡張子のみが異なり、かつ、後述するS806のセッション生成処理に用いられていないファイルが、記憶部103に存在するか否かを判定する。当該ファイルが存在する場合、S806に処理を進めてセッション生成処理を行う。一方、該当するファイルが存在しない場合は、処理をS804に進める。なお、ファイルが存在するか否かを判定する場合に、拒否応答のなされた履歴をさらに考慮して、拒否応答がなされた拡張子と一致する拡張子のファイルがあってもファイルが存在しないと判定してもよい。   In step S <b> 803, the control unit 102 determines whether a file having a different extension exists in the storage unit 103. Specifically, it is determined whether or not there is a file in the storage unit 103 that has only an extension different from the file name of the file selected in S502 and that is not used in the session generation processing in S806 described later. To do. If the file exists, the process proceeds to S806 to perform session generation processing. On the other hand, if the corresponding file does not exist, the process proceeds to S804. When determining whether or not a file exists, further consider the history of rejection responses, and if there is a file with an extension that matches the extension for which the rejection response was made, You may judge.

S804において、制御部102は、転送対象のファイルがデータ変換可能であるかを判定する。即ち、制御部102は、転送対象のファイルがデータ変換部106を用いて別の形式を持つデータ(拡張子の異なるデータ)に変換可能かを判定する。データ変換が可能である場合は処理をS805に進め、可能でない場合は外部装置が利用可能なデータが用意できないものとして本一連の処理を終了する。   In step S804, the control unit 102 determines whether the transfer target file can be converted. In other words, the control unit 102 determines whether the transfer target file can be converted into data having a different format (data with different extensions) using the data conversion unit 106. If data conversion is possible, the process advances to step S805; otherwise, the series of processes ends, assuming that data usable by the external device cannot be prepared.

S805において、制御部102は、データ変換部106を用いてデータ変換処理を開始する。この変換処理によって生成される新たな代替ファイルのファイル名は、データ変換処理に用いたファイル名の拡張子を変更したものであり、生成されるファイルは記憶部103に記憶される。その後、制御部102は処理をS806に進めて、変換処理によって生成されたファイルの情報を用いてセッション生成処理を行う。   In step S <b> 805, the control unit 102 starts data conversion processing using the data conversion unit 106. The file name of the new alternative file generated by this conversion process is obtained by changing the extension of the file name used for the data conversion process, and the generated file is stored in the storage unit 103. Thereafter, the control unit 102 advances the process to step S806, and performs a session generation process using the file information generated by the conversion process.

なお、S804において転送対象のファイルがデータ変換可能であるかを判定する際にも、S802のように過去に拒否された拡張子を考慮するようにしてもよい。即ち、制御部102は、データ変換処理を行う際にも外部装置が対応可能な(或いはその可能性のある)形式に優先的に変換してもよい。   In S804, when it is determined whether the file to be transferred can be converted, an extension rejected in the past as in S802 may be considered. In other words, the control unit 102 may preferentially convert the data into a format that the external device can handle (or possibly have) when performing the data conversion processing.

S806において、制御部102は、セッション生成処理を行う。具体的には、制御部102は、転送されるファイルに係る転送データ関連情報を生成し、生成した転送データ関連情報を含んだセッション生成要求を、無線部104を介して送信する。S807において、制御部102は、セッション生成要求に対する許可応答を受信したかを判定する。具体的には、無線部104を介して受信したセッション生成要求に対する応答を判定し、この応答が許可応答である場合は処理をS509に進め、この応答が拒否応答である場合は処理をS808に進める。   In step S806, the control unit 102 performs session generation processing. Specifically, the control unit 102 generates transfer data related information related to the transferred file, and transmits a session generation request including the generated transfer data related information via the wireless unit 104. In step S807, the control unit 102 determines whether a permission response to the session generation request has been received. Specifically, a response to the session generation request received via the wireless unit 104 is determined. If this response is a permission response, the process proceeds to S509. If this response is a rejection response, the process proceeds to S808. Proceed.

S808において、制御部102は拒否履歴を記憶する。より具体的には、制御部102は、外部装置と転送対象のファイルの拡張子とを関連付けて、拒否履歴として記憶部103に記憶させる。その後、処理をS803に進める。   In step S808, the control unit 102 stores a rejection history. More specifically, the control unit 102 associates the external device with the extension of the file to be transferred and stores it in the storage unit 103 as a rejection history. Thereafter, the process proceeds to S803.

以降の図8に示すS509〜S514の処理は、実施形態1と同様であり、制御部102は外部装置と無線レイヤでの接続処理を行ったうえでファイル転送を行い、一連の処理を終了する。   The subsequent processing in S509 to S514 shown in FIG. 8 is the same as that in the first embodiment, and the control unit 102 performs file transfer after performing connection processing with the external device in the wireless layer, and ends a series of processing. .

以上説明したように本実施形態では、外部装置によって過去に拒否応答のあったデータ形式を、拒否履歴を用いて記憶し、ファイル転送を行う場合にはこの拒否履歴を用いてデータを選択するようにした。即ち、外部装置によって過去に拒否されていないデータ形式の動画データを選択するようにした。このようにすれば、外部装置に転送データ関連情報を送信する場合に、外部装置が処理可能でないデータ形式を用いてセッション生成処理を行う無駄を低減し、ひいては外部装置との通信量の低減や通信制御処理の高速化が可能になる。   As described above, in the present embodiment, the data format that has been previously rejected by the external device is stored using the rejection history, and data is selected using this rejection history when performing file transfer. I made it. That is, moving image data in a data format that has not been rejected in the past by an external device is selected. In this way, when transmitting transfer data related information to an external device, it is possible to reduce the waste of performing session generation processing using a data format that cannot be processed by the external device, thereby reducing the amount of communication with the external device. Communication control processing can be speeded up.

(実施形態4)
次に実施形態4について説明する。実施形態3では、拒否応答の履歴を記憶し、過去に拒否応答された拡張子のファイルに対しては、データ転送関連情報を送信しないようにした。これに対して実施形態4では、許可応答の履歴を記憶し、過去に許可応答された拡張子のファイルを優先的に用いる。本実施形態のデジタルカメラ100の構成は、実施形態3(即ち実施形態1)と同一の構成であり、また、通信制御処理に係る一連の動作も上述した処理を除いて実施形態3で説明した処理と同様である。このため、本実施形態において参照する図においては、実施形態3において参照した図と同一又は同様の構成及びステップについては同一の符号を付して重複する説明は省略し、相違点について重点的に説明する。
(Embodiment 4)
Next, a fourth embodiment will be described. In the third embodiment, a history of rejection responses is stored, and data transfer related information is not transmitted to files with extensions that have been rejected in the past. On the other hand, in the fourth embodiment, a history of permission responses is stored, and a file with an extension that has been permitted in the past is preferentially used. The configuration of the digital camera 100 of the present embodiment is the same as that of the third embodiment (that is, the first embodiment), and the series of operations related to the communication control processing has been described in the third embodiment except for the above-described processing. It is the same as the processing. For this reason, in the drawing referred to in the present embodiment, the same or similar configurations and steps as those in the drawing referred to in the third embodiment are denoted by the same reference numerals, and redundant description is omitted, and differences are emphasized. explain.

(実施形態4における通信制御処理に係る一連の動作)
図9を参照して、デジタルカメラ100の通信制御処理に係る一連の動作を説明する。この一連の動作は、実施形態1〜3と同様、デジタルカメラ100がファイル転送サービスを利用して、記憶部103に格納されている動画データを外部装置に送信する処理である。また、本処理が開始される状態及び制御部102が各処理を実行する点は実施形態1〜3と同様である。
(A series of operations related to communication control processing in Embodiment 4)
With reference to FIG. 9, a series of operations related to the communication control process of the digital camera 100 will be described. Similar to the first to third embodiments, this series of operations is a process in which the digital camera 100 uses the file transfer service to transmit the moving image data stored in the storage unit 103 to the external device. The state in which this process is started and the point that the control unit 102 executes each process are the same as in the first to third embodiments.

制御部102は、S501〜S503の処理を実行してユーザによるファイルの選択及び外部装置の検出処理を行い、外部装置を検出した場合に処理をS901に進める。   The control unit 102 executes the processing of S501 to S503, performs file selection by the user and detection processing of the external device, and proceeds to S901 when the external device is detected.

S901において、制御部102は、S503で検出した外部装置について、過去にセッション生成処理において許可応答を受信した履歴があるか否かを判定する。より具体的には、制御部102は、外部装置と転送対象のファイルの拡張子とを関連付けた許可履歴を記憶部103から読み出す。許可履歴には、例えば、外部装置を特定する識別子(例えば外部装置のMACアドレス等)と許可応答信号を受信した際のファイルの拡張子との組が記憶され、制御部102はファイル転送サービスを提供する外部装置の識別子をキーにして許可履歴を検索する。許可応答の履歴がある場合はS902に処理を進め、当該履歴が無い場合はS806に処理を進める。なお、許可応答の履歴は、後述するS905において随時更新される。   In step S901, the control unit 102 determines whether there is a history of receiving a permission response in the session generation process in the past for the external device detected in step S503. More specifically, the control unit 102 reads from the storage unit 103 a permission history that associates the external device with the extension of the file to be transferred. In the permission history, for example, a pair of an identifier for identifying an external device (for example, the MAC address of the external device) and an extension of the file when the permission response signal is received is stored. The permission history is searched using the identifier of the provided external device as a key. If there is a history of permission responses, the process proceeds to S902, and if there is no history, the process proceeds to S806. The history of the permission response is updated as needed in S905 described later.

S902において、制御部102は、S502で選択された転送対象のファイル(即ち当初ファイル)の拡張子が、過去にセッション生成処理で許可応答がなされた際に使用された拡張子であるか否かを判定する。過去に許可応答がなされた拡張子である場合はS806に処理を進め、許可応答の履歴のない拡張子である場合はS903に処理を進める。   In S902, the control unit 102 determines whether or not the extension of the file to be transferred (ie, the initial file) selected in S502 is an extension that was used when a permission response was made in the session generation process in the past. Determine. If it is an extension for which a permission response has been made in the past, the process proceeds to S806, and if the extension has no history of permission responses, the process proceeds to S903.

S903において、制御部102は、拡張子のみ異なるファイルであって、過去の許可応答がなされた拡張子のファイルが記憶部103に存在するかを判定する。具体的には、制御部102は、S502で選択されたファイルのファイル名とは拡張子のみが異なり、かつ、許可履歴に含まれる拡張子と一致するものであって、S806のセッション生成処理に用いられていないファイルが、記憶部103に存在するか否かを判定する。当該ファイルが存在する場合、S806に処理を進めてセッション生成処理を行う。一方、該当するファイルが存在しない場合は、処理をS804に進める。このS903の処理では、S502で選択されたファイルとは異なる拡張子のファイルを、許可履歴に基づき優先的に選択することになる。   In step S <b> 903, the control unit 102 determines whether there is a file in the storage unit 103 that has a different extension only and that has a past permission response. Specifically, the control unit 102 differs only in the extension from the file name of the file selected in S502 and matches the extension included in the permission history, and performs the session generation process in S806. It is determined whether an unused file exists in the storage unit 103. If the file exists, the process proceeds to S806 to perform session generation processing. On the other hand, if the corresponding file does not exist, the process proceeds to S804. In the processing of S903, a file having an extension different from that selected in S502 is preferentially selected based on the permission history.

以降のS803〜S806において、制御部102は、実施形態3と同様に、選択されたファイルとは拡張子のみ異なるファイルが記憶部103に無い場合、データ変換処理を開始してその後セッション生成処理を行う。但し、S804において転送対象のファイルがデータ変換可能であるかを判定する際にも、S902及びS903のように過去に許可された拡張子を考慮するようにしてもよい。即ち、制御部102は、データ変換処理を行う際にも外部装置が対応可能なデータ形式を優先的に用いてもよい。   In subsequent steps S803 to S806, as in the third embodiment, the control unit 102 starts the data conversion process and then performs the session generation process when there is no file in the storage unit 103 that differs only in extension from the selected file. Do. However, when it is determined in S804 whether the file to be transferred can be converted, an extension permitted in the past as in S902 and S903 may be considered. That is, the control unit 102 may preferentially use a data format that can be supported by an external device when performing data conversion processing.

S904において、制御部102は、無線部104を介して受信したセッション生成要求に対する応答が許可応答であるかを判定する。この応答が許可応答である場合は処理をS905に進め、許可応答でない場合にはS803に処理を進める。   In step S904, the control unit 102 determines whether the response to the session generation request received via the wireless unit 104 is a permission response. If this response is a permission response, the process proceeds to step S905; otherwise, the process proceeds to step S803.

S905において、制御部102は許可履歴を記憶する。より具体的には、制御部102は、外部装置と転送対象のファイルの拡張子との組み合わせを、許可履歴として記憶部103に記憶させる。その後、処理をS509に進める。   In S905, the control unit 102 stores the permission history. More specifically, the control unit 102 causes the storage unit 103 to store a combination of the external device and the extension of the file to be transferred as a permission history. Thereafter, the process proceeds to S509.

以降の図9に示すS509〜S514の処理は、実施形態1と同様であり、制御部102は外部装置と無線レイヤでの接続処理を行ったうえでファイル転送を行い、一連の処理を終了する。   The subsequent processing in S509 to S514 shown in FIG. 9 is the same as that in the first embodiment, and the control unit 102 performs file transfer after performing connection processing with the external device in the wireless layer, and ends a series of processing. .

以上説明したように本実施形態では、外部装置によって過去に許可応答のあったデータ形式を記憶し、ファイル転送を行う場合には許可応答のあったデータ形式を選択するようにした。即ち、外部装置によって過去に許可されたデータ形式を持つデータを優先的に選択するようにした。このようにすれば、外部装置に転送データ関連情報を送信する場合に、外部装置が処理可能でないデータ形式のみならず、処理可能かどうか未知である形式を用いてセッション生成処理を行う無駄を低減することが可能になる。そして、ひいては外部装置との通信量の低減や通信制御処理の高速化が可能になる。   As described above, in the present embodiment, the data format that has been permitted in the past is stored by the external device, and the data format that has been permitted in response is selected when performing file transfer. In other words, data having a data format permitted in the past by the external device is preferentially selected. In this way, when transmitting transfer data related information to an external device, not only the data format that the external device cannot process but also the waste of performing session generation processing using a format that is unknown whether it can be processed is reduced. It becomes possible to do. As a result, the amount of communication with the external device can be reduced and the speed of communication control processing can be increased.

(その他の実施形態)
上述した実施形態では、IEEE802.11準拠の無線LAN方式を例に説明したが通信方式はこれに限らない。即ち、本発明はワイヤレスUSB、MBOA、Bluetooth(登録商標)、UWB、ZigBee(登録商標)等の他の無線通信方式を用いてもよい。また、有線LAN等の有線通信媒体において実施してもよい。なお、MBOAは、Multi Band OFDM Allianceの略であり、UWBには、ワイヤレスUSB、ワイヤレス1394、WINETなどが含まれる。
(Other embodiments)
In the above-described embodiment, the wireless LAN system conforming to IEEE 802.11 has been described as an example, but the communication system is not limited to this. That is, the present invention may use other wireless communication methods such as wireless USB, MBOA, Bluetooth (registered trademark), UWB, ZigBee (registered trademark). Moreover, you may implement in wired communication media, such as wired LAN. MBOA is an abbreviation for Multi Band OFDM Alliance, and UWB includes wireless USB, wireless 1394, WINET, and the like.

さらに、上記実施形態は転送するデータとして動画データを例に説明した。しかし、本発明はこれに限定されるわけではなく、静止画データ、音声データ、文書データ、データベースなど、複数のファイル形式が存在しているデータを送信する場合に適用可能である。   Furthermore, the above embodiment has been described by taking moving image data as an example of data to be transferred. However, the present invention is not limited to this, and can be applied when transmitting data having a plurality of file formats, such as still image data, audio data, document data, and a database.

本発明は、上述の実施形態の1以上の機能を実現するプログラムを、ネットワーク又は記憶媒体を介してシステム又は装置に供給し、そのシステム又は装置のコンピュータにおける1つ以上のプロセッサがプログラムを読出し実行する処理でも実現可能である。また、1以上の機能を実現する回路(例えば、ASIC)によっても実現可能である。   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 the 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.

102…制御部、103…記憶部、104…無線部、105…表示部、109…操作部 102 ... Control unit, 103 ... Storage unit, 104 ... Wireless unit, 105 ... Display unit, 109 ... Operation unit

Claims (11)

参加中のネットワークを介して外部装置へデータを転送すると共に、前記ネットワークに参加する前に前記外部装置と制御情報を送受信するように構成された通信手段と、
前記通信手段を用いた処理を制御する制御手段と、を有し、
前記制御手段は、
前記通信手段が前記ネットワークに参加する前に、第1のデータ形式を持つ第1のデータが転送対象として選択された場合に、前記制御情報の送受信を通じて、前記外部装置が前記第1のデータ形式を処理可能か否かを判定し、
前記外部装置が前記第1のデータ形式を処理可能である場合、前記ネットワークに参加し、前記外部装置が前記第1のデータ形式を処理可能でない場合、前記制御情報の送受信を通じて、前記外部装置が前記第1のデータ形式と異なる第2のデータ形式を処理可能か否かを判定するように制御する、
ことを特徴とする通信装置。
A communication means configured to transfer data to an external device via a participating network, and to transmit / receive control information to / from the external device before joining the network;
Control means for controlling processing using the communication means,
The control means includes
When the first data having the first data format is selected as a transfer target before the communication means joins the network, the external device transmits the control information through the transmission / reception of the control information. Whether or not can be processed,
When the external device can process the first data format, the external device participates in the network, and when the external device cannot process the first data format, the external device transmits and receives the control information. Controlling to determine whether a second data format different from the first data format can be processed;
A communication device.
拡張子を含むファイル名を持つファイルとして、前記第1のデータを含む複数のデータを記憶するデータ記憶手段を更に備え、
前記制御手段は、前記第1のデータのファイル名と拡張子のみが異なるファイル名で第2のデータが前記データ記憶手段に記憶されている場合、前記第2のデータのデータ形式を前記第2のデータ形式とする
ことを特徴とする請求項1に記載の通信装置。
A data storage means for storing a plurality of data including the first data as a file having a file name including an extension;
When the second data is stored in the data storage unit with a file name that is different only in extension from the file name of the first data, the control unit changes the data format of the second data to the second data type. The communication apparatus according to claim 1, wherein the data format is as follows.
前記第1のデータを他のデータ形式に変換する変換手段を更に備え、
前記制御手段は、前記他のデータ形式を前記第2のデータ形式とする
ことを特徴とする請求項1に記載の通信装置。
Further comprising conversion means for converting the first data into another data format;
The communication device according to claim 1, wherein the control unit sets the other data format as the second data format.
拡張子を含むファイル名を持つファイルとして、前記第1のデータを含む複数のデータを記憶するデータ記憶手段と、
前記第1のデータを他のデータ形式に変換する変換手段と、を更に備え、
前記制御手段は、前記第1のデータのファイル名と拡張子のみが異なるファイル名のデータが前記データ記憶手段に記憶されていない場合、前記他のデータ形式を前記第2のデータ形式とする
ことを特徴とする請求項1に記載の通信装置。
Data storage means for storing a plurality of data including the first data as a file having a file name including an extension;
Conversion means for converting the first data into another data format,
The control means sets the other data format as the second data format when data having a file name that is different only in extension from the file name of the first data is not stored in the data storage means. The communication apparatus according to claim 1.
前記制御手段は、前記外部装置が前記第1のデータ形式を処理可能でないと判定した後に、前記変換手段を用いた変換を開始する
ことを特徴とする請求項3又は4に記載の通信装置。
5. The communication apparatus according to claim 3, wherein the control unit starts conversion using the conversion unit after determining that the external device cannot process the first data format. 6.
前記制御手段は、前記外部装置が前記第1のデータ形式を処理可能か否かを判定する前に、前記変換手段を用いた変換を開始する
ことを特徴とする請求項3に記載の通信装置。
The communication device according to claim 3, wherein the control unit starts conversion using the conversion unit before the external device determines whether or not the first data format can be processed. .
前記制御手段は、前記変換手段を用いた変換の途中に、前記外部装置が前記第1のデータ形式を処理可能であると判定した場合、この変換を中止する
ことを特徴とする請求項6に記載の通信装置。
The said control means stops this conversion, when it determines with the said external device being able to process the said 1st data format in the middle of the conversion using the said conversion means. The communication device described.
前記制御手段により前記外部装置が処理可能でないと判定されたデータ形式を前記外部装置と関連付けて記憶する履歴記憶手段を更に備え、
前記制御手段は、前記第1のデータ形式が前記外部装置と関連付けて前記履歴記憶手段に記憶されている場合、前記外部装置が前記第1のデータ形式を処理可能か否かの判定を行わずに、前記外部装置が前記第2のデータ形式を処理可能か否かを判定する
ことを特徴とする請求項1から7のいずれか1項に記載の通信装置。
A history storage means for storing the data format determined by the control means to be unprocessable by the external device in association with the external device;
The control means does not determine whether or not the external device can process the first data format when the first data format is stored in the history storage means in association with the external device. The communication apparatus according to claim 1, wherein the external apparatus determines whether or not the second data format can be processed.
前記制御手段により前記外部装置が処理可能であると判定されたデータ形式を前記外部装置と関連付けて記憶する履歴記憶手段を更に備え、
前記制御手段は、前記外部装置と関連付けて前記履歴記憶手段に記憶されているデータ形式の中から選択したデータ形式を前記第2のデータ形式とする
ことを特徴とする請求項1から7のいずれか1項に記載の通信装置。
A history storage means for storing the data format determined by the control means to be processable by the external device in association with the external device;
8. The control unit according to claim 1, wherein the control unit sets a data format selected from data formats stored in the history storage unit in association with the external device as the second data format. 8. The communication apparatus according to claim 1.
参加中のネットワークを介して外部装置へデータを転送すると共に、前記ネットワークに参加する前に前記外部装置と制御情報を送受信するように構成された通信手段を有する通信装置の制御方法であって、
制御手段が、前記通信手段を用いた処理を制御する制御工程を有し、
前記制御工程では、
前記通信手段が前記ネットワークに参加する前に、第1のデータ形式を持つ第1のデータが転送対象として選択された場合に、前記制御情報の送受信を通じて、前記外部装置が前記第1のデータ形式を処理可能か否かを判定し、
前記外部装置が前記第1のデータ形式を持つデータを処理可能である場合、前記ネットワークに参加し、前記外部装置が前記第1のデータ形式を処理可能でない場合、前記制御情報の送受信を通じて、前記外部装置が前記第1のデータ形式と異なる第2のデータ形式を処理可能か否かを判定するように制御する、
ことを特徴とする通信装置の制御方法。
A method for controlling a communication device having communication means configured to transfer data to an external device via a participating network and to transmit / receive control information to / from the external device before joining the network,
The control means has a control step of controlling processing using the communication means,
In the control step,
When the first data having the first data format is selected as a transfer target before the communication means joins the network, the external device transmits the control information through the transmission / reception of the control information. Whether or not can be processed,
When the external device can process the data having the first data format, the network joins, and when the external device cannot process the first data format, Controlling to determine whether or not the external device can process a second data format different from the first data format;
A control method for a communication apparatus.
コンピュータを、請求項1から9のいずれか1項に記載の通信装置の通信手段を除く各手段として機能させるためのプログラム。   The program for functioning a computer as each means except the communication means of the communication apparatus of any one of Claim 1 to 9.
JP2015159133A 2015-08-11 2015-08-11 Communication device, control method therefor, and program Active JP6666669B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2015159133A JP6666669B2 (en) 2015-08-11 2015-08-11 Communication device, control method therefor, and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2015159133A JP6666669B2 (en) 2015-08-11 2015-08-11 Communication device, control method therefor, and program

Publications (2)

Publication Number Publication Date
JP2017037531A true JP2017037531A (en) 2017-02-16
JP6666669B2 JP6666669B2 (en) 2020-03-18

Family

ID=58048377

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2015159133A Active JP6666669B2 (en) 2015-08-11 2015-08-11 Communication device, control method therefor, and program

Country Status (1)

Country Link
JP (1) JP6666669B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2018153997A (en) * 2017-03-17 2018-10-04 京セラドキュメントソリューションズ株式会社 Image forming device
JP2019012362A (en) * 2017-06-29 2019-01-24 キヤノン株式会社 Information processing apparatus, information processing method and program

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006345319A (en) * 2005-06-09 2006-12-21 Canon Inc Image pickup device and control method thereof
JP2007074124A (en) * 2005-09-05 2007-03-22 Murata Mach Ltd Network facsimile machine, image output system, and image output method
JP2010074381A (en) * 2008-09-17 2010-04-02 Fuji Xerox Co Ltd Recommendation setting notification system
JP2013054465A (en) * 2011-09-01 2013-03-21 Canon Inc Management server and processing method of the same
WO2014025217A1 (en) * 2012-08-08 2014-02-13 Samsung Electronics Co., Ltd. Apparatus and method of connecting service according to user intention
JP2014149809A (en) * 2013-01-11 2014-08-21 Ricoh Co Ltd Information processing system, information processing apparatus, program, and processing execution method
JP2014165602A (en) * 2013-02-22 2014-09-08 Canon Inc Communication device, control method therefor and program
JP2015531205A (en) * 2012-08-08 2015-10-29 サムスン エレクトロニクス カンパニー リミテッド Service connection apparatus and method reflecting user's intention

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006345319A (en) * 2005-06-09 2006-12-21 Canon Inc Image pickup device and control method thereof
JP2007074124A (en) * 2005-09-05 2007-03-22 Murata Mach Ltd Network facsimile machine, image output system, and image output method
JP2010074381A (en) * 2008-09-17 2010-04-02 Fuji Xerox Co Ltd Recommendation setting notification system
JP2013054465A (en) * 2011-09-01 2013-03-21 Canon Inc Management server and processing method of the same
WO2014025217A1 (en) * 2012-08-08 2014-02-13 Samsung Electronics Co., Ltd. Apparatus and method of connecting service according to user intention
JP2015531205A (en) * 2012-08-08 2015-10-29 サムスン エレクトロニクス カンパニー リミテッド Service connection apparatus and method reflecting user's intention
JP2014149809A (en) * 2013-01-11 2014-08-21 Ricoh Co Ltd Information processing system, information processing apparatus, program, and processing execution method
JP2014165602A (en) * 2013-02-22 2014-09-08 Canon Inc Communication device, control method therefor and program

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2018153997A (en) * 2017-03-17 2018-10-04 京セラドキュメントソリューションズ株式会社 Image forming device
JP2019012362A (en) * 2017-06-29 2019-01-24 キヤノン株式会社 Information processing apparatus, information processing method and program

Also Published As

Publication number Publication date
JP6666669B2 (en) 2020-03-18

Similar Documents

Publication Publication Date Title
JP6584186B2 (en) COMMUNICATION DEVICE, COMMUNICATION METHOD, AND PROGRAM
JP6584210B2 (en) COMMUNICATION DEVICE, ITS CONTROL METHOD, PROGRAM, AND STORAGE MEDIUM
JP6245907B2 (en) Communication apparatus and communication system
KR102134125B1 (en) Communication apparatus, method for controlling communication apparatus, and storage medium
JP6532333B2 (en) Communication device, communication method and program
JP6242051B2 (en) COMMUNICATION DEVICE, COMMUNICATION DEVICE CONTROL METHOD, PROGRAM
JP6338344B2 (en) COMMUNICATION DEVICE, COMMUNICATION DEVICE CONTROL METHOD, AND PROGRAM
JP6271843B2 (en) COMMUNICATION DEVICE, ITS CONTROL METHOD, PROGRAM
US10104702B2 (en) Communication apparatus, control method thereof and storage medium
JP6666669B2 (en) Communication device, control method therefor, and program
US9900829B2 (en) Communication device, method for controlling the communication device, and program
JP6157190B2 (en) COMMUNICATION DEVICE, ITS CONTROL METHOD, PROGRAM
JP2023027265A (en) Communication device, control method, and program
JP2014160319A (en) Communication apparatus, method for controlling communication apparatus, and program
JP6132588B2 (en) COMMUNICATION DEVICE, ITS CONTROL METHOD, PROGRAM
JP2017058881A (en) Communication apparatus, control method thereof, and program
JP6634907B2 (en) Communication device, wireless terminal, and program
US9602687B2 (en) Communication apparatus, method for controlling communication with an external apparatus using generated session and changed session, and program therefor
JP2014165603A (en) Communication apparatus, control method thereof, and program
JP2018007059A (en) Communication device, communication control method, and program
JP6584106B2 (en) COMMUNICATION DEVICE, ITS CONTROL METHOD, PROGRAM
JP2017085246A (en) Communication device, control method of the same, communication system, and program
JP2016178460A (en) Communication apparatus, control method of the same, and program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20180801

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20190516

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20190610

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20190802

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20200221

R151 Written notification of patent or utility model registration

Ref document number: 6666669

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151