JP6666669B2 - Communication device, control method therefor, and program - Google Patents

Communication device, control method therefor, and program Download PDF

Info

Publication number
JP6666669B2
JP6666669B2 JP2015159133A JP2015159133A JP6666669B2 JP 6666669 B2 JP6666669 B2 JP 6666669B2 JP 2015159133 A JP2015159133 A JP 2015159133A JP 2015159133 A JP2015159133 A JP 2015159133A JP 6666669 B2 JP6666669 B2 JP 6666669B2
Authority
JP
Japan
Prior art keywords
external device
data
data format
communication
file
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.)
Active
Application number
JP2015159133A
Other languages
Japanese (ja)
Other versions
JP2017037531A (en
Inventor
四宮 岳史
岳史 四宮
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Canon Inc
Original Assignee
Canon Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Canon Inc filed Critical Canon Inc
Priority to 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

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 on 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 transmitting data to an external device using a wireless LAN, the portable terminal first executes a process of joining a wireless LAN network to which the external device belongs, and then executes a process of establishing communication with the external device.

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

しかし、外部装置との通信を確立した後に、携帯型端末から外部装置に送信した映像ファイル等のデータを当該外部装置が適切に処理できない(例えば再生できない)ことが判明すると、それまでに実行した通信処理が無駄になってしまう。このため、外部装置が処理可能なデータを適切なタイミングで特定する必要がある。   However, after establishing communication with the external device, if it is determined that the external device cannot appropriately process (eg, cannot reproduce) data such as a video file transmitted from the portable terminal to the external device, the data is executed by that time. Communication processing is wasted. Therefore, 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 related 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のデータ形式を処理可能でない場合、制御情報の送受信を再度行って、外部装置が第1のデータ形式と異なる第2のデータ形式を処理可能か否かを判定するように制御する、ことを特徴とする。
In order to solve this problem, for example, the communication device of the present invention has the following configuration. That is,
Communication means configured to transfer data to an external device via the participating network and to transmit / receive control information to / from the external device before joining the network; and control means for controlling processing using the communication means. And a request for establishing communication via the network when the first data having the first data format is selected as a transfer target before the communication means joins the network. Is sent to the external device with an inquiry as to whether the external device can process the first data format. Based on a response to the request received from the external device, the external device determines whether it is possible to process the data format, if an external device is capable of processing the first data format, participating in the network to establish communication with the external device, the external device is first If not, processing over data format, characterized by performing the transmission and reception of control information again, and controls to determine whether or not it is possible to process the second data format external device is different from the first data format, the And

本発明によれば、適切なタイミングで外部装置が処理可能なデータを特定することが可能な通信装置及びその制御方法ならびにプログラムを提供することができる。   According to the present invention, it is possible to provide 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.

本発明の実施形態に係る通信装置の一例としてのデジタルカメラの機能構成例を示すブロック図FIG. 1 is a block diagram illustrating a functional configuration example of a digital camera as an example of a communication device according to an embodiment of the present invention. 本実施形態に係るデジタルカメラの通信機能に係るソフトウェア構成を示すブロック図FIG. 2 is a block diagram illustrating a software configuration related to a communication function of the digital camera according to the embodiment. 本実施形態に係るネットワーク構成の一例を示す模式図Schematic diagram illustrating an example of a network configuration according to the present embodiment. 実施形態1に係るデジタルカメラ及び外部装置間の動作シーケンスを示す模式図FIG. 2 is a schematic diagram illustrating an operation sequence between the digital camera and the external device according to the first embodiment. 実施形態1に係る通信制御処理の一連の動作を示すフローチャート5 is a flowchart illustrating a series of operations of a communication control process 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に係る通信制御処理の一連の動作を示すフローチャート9 is a flowchart illustrating a series of operations of a communication control process according to the second embodiment. 実施形態3に係る通信制御処理の一連の動作を示すフローチャート11 is a flowchart illustrating a series of operations of a communication control process according to the third embodiment. 実施形態4に係る通信制御処理の一連の動作を示すフローチャート11 is a flowchart illustrating a series of operations of a communication control process 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. Hereinafter, as an example of a communication device, 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. However, the present invention is not limited to a digital camera, and is applicable 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 watch-type or glasses-type information terminal, and the like.

(デジタルカメラ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 device according to the present embodiment. Note that one or more of the functional blocks illustrated 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 an MPU executing software. You may. Further, the present invention 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 through an imaging optical system to generate an analog signal, and further converts the digital signal into digital data to generate an image. Generate data. For example, one frame can output image data of 1920 pixels horizontally × 1080 pixels vertically at a predetermined frame rate (for example, 30 frames per second). Such an 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 an MPU, and develops 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 and executes the program. Control. The control unit 102 performs various control processes such as setting communication parameters with an external device on the network, participating in the network, and establishing 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 a ROM, a RAM, an HDD, and a flash memory, 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. The storage unit 103 may store, in addition to moving image data and still image data captured by the digital camera 100, moving image data generated by an external device and received from the device.

無線部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, the 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 LCD or an LED panel. The display unit 105 is capable of outputting 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 and the 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 mutually converted, and JPEG still image data and PNG still image data can be mutually converted. The data conversion unit 106 may be configured by dedicated hardware called, for example, a transcoder.

アンテナ制御部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 and the like 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が備えるハードウェアおよびソフトウェアにより実現される。
(Configuration of functional blocks related to the communication control function)
FIG. 2 is a block diagram illustrating an example of a functional configuration of a functional block 201 using software that realizes 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 to be a communication partner and performs device discovery (Device Discovery) processing. Also, the GO negotiation control unit 203 performs a GO Negotiation process based on the Wi-Fi Direct protocol specification to determine which of the external devices plays a role of a wireless LAN access point (or wireless LAN station). In Wi-Fi Direct, a communication device that provides a wireless LAN access point function is called a P2P group owner (hereinafter, also referred to as GO), and a communication device that provides a wireless LAN station function is called a P2P client (hereinafter, also called 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 the 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. Also in the present embodiment, the network may be referred to as a P2P group, and these will be described in the same sense. A P2P group owner (GO), a P2P client (CL), and a 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 function of a DHCP client, and is started when the role of the digital camera 100 in the GO negotiation control unit 203 is a wireless LAN station. Further, the DHCP server control unit 205 provides a function of a DHCP server, and is activated when the role of the digital camera 100 in the GO negotiation control unit 203 becomes a wireless LAN access point.

WPSエンローリ制御部206は、無線LANの通信のために必要な通信パラメ―タを、他のWPSレジストラ装置から受信する。DHCPクライアント制御部204と同様に、デジタルカメラ100の役割が無線LANステーションとなる場合に動作する。WPSレジストラ制御部207は、無線LANの通信のために必要な通信パラメータを、他のWPSエンローリ装置に提供する。DHCPサーバ制御部205と同様に、デジタルカメラ100の役割が無線LANアクセスポイントとなる場合に動作する。なお、WPSレジストラによって提供される通信パラメータは、ネットワーク識別子としてのSSID、暗号鍵、暗号方式、認証鍵、認証方式等のパラメータである。   WPS enrollment control section 206 receives communication parameters necessary for wireless LAN communication from another WPS registrar device. Like the DHCP client control unit 204, the digital camera 100 operates when the role of the digital camera 100 is a wireless LAN station. WPS registrar control section 207 provides communication parameters necessary for wireless LAN communication to another WPS enrollee device. Like the DHCP server control unit 205, the digital camera 100 operates when the role of the digital camera 100 is a wireless LAN access point. 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 perform transmission and reception of all packets including the communication protocol of the upper layer. 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 that operates 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 performs 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 a communication packet when the wireless LAN access point function control unit 211 operates.

データ記憶部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 that 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 device that has transmitted the response, for example, a file transfer service, a print service, a moving image streaming service, and the like.

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. Although the Invitation function is defined in the Wi-Fi Direct specification, its description is omitted. However, the GO or CL is a function for prompting the connection of a P2P device whose role 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 fifth or higher layer in the OSI reference model. In the file transfer service, transmission / reception processing of various request responses and transmission / reception processing of a transfer file are performed using the HTTP protocol.

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

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

なお、図2に示す全ての機能ブロックはソフトウェアによって提供されるものに限らず、少なくとも一部がハードウェアによって提供されるようにしてもよい。そして、各機能ブロックは、相互関係を有し、複数の機能ブロックが1つの機能ブロックを構成するようにしてもよいし、何れかの機能ブロックが更に複数の機能を行うブロックに分かれてもよい。さらに、アプケリーションレイヤにおけるファイル転送サービスは、そのサービスを提供する装置と、そのサービスを利用する装置とによって実現される。本実施形態における一例ではサービスを利用する装置はデジタルカメラ100であり、サービスを提供する装置は、スマートフォン、タブレット、デジタルカメラ、ストレージ装置等であってよい。   Note that all the functional blocks shown in FIG. 2 are not limited to those provided by software, and at least a part thereof 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. . Further, 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シリーズに準拠した無線通信を確立する。   FIG. 3 shows a digital camera 100 (also referred to as STA-A representing a file transmitting side in FIGS. 3 and 4) and an external device (also referred to as a STA-B representing a file receiving side in FIGS. 3 and 4). 2 shows an example of a wireless network 31 composed of a wireless network. Each device has hardware and software (for example, the one shown in FIG. 1) that realizes 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 the devices when the STA-A (corresponding to the digital camera 100) transmits the moving image data stored in the storage unit 103 to the STA-B (corresponding to the external device). FIG. 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 S401, upon receiving the selection completion of the file to be transferred by the user operation, the STA-A transmits an inquiry signal (file transfer service search) for searching for a communication device providing the file transfer service in S402. I 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 creation request signal to which transfer data related information has been added in order to establish a logical connection with the STA-B for the file transfer service. 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 will be transferred. In the following description, a file initially selected as data to be transferred may be referred to as an initial file. The transmission and reception of the information related to the file transfer service search and the session creation request is performed based on the action frame which is a part of the management frame described above under a specific frequency band (also called a channel) defined by 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, STA-B receives the session creation request signal transmitted from STA-A, and transmits a permission response signal or a rejection response signal to STA-A according to the transfer data related information. Specifically, the STA-B determines whether or not the data can be processed by the STA-B with reference to the data format included in the transfer data related information. When the STA-B determines that processing is possible, the STA-B transmits a permission response signal to the STA-A. For example, if the STA-B has a function of playing MP4 format moving image data but does not have a function of playing MOV format moving image data, the extension (data format) of the file name included in the received transfer data related information. ) Is a MOV, a rejection response signal is transmitted.

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

S406において、STA−Aは、拒否応答信号を受信すると、S404において転送対象としていたファイル(当初ファイル)の代替として転送するファイル(代替ファイル)を選択する。具体的には、拒否応答を受けた転送データ関連情報に含まれていた当初ファイルについて、拡張子のみ異なる代替ファイルが記憶部103に存在するかを判定し、このファイルが存在する場合は当該代替ファイルを送信対象として選択する。また、STA−Aは、代替ファイルが存在しない場合、当初ファイルを変換して得られるファイルを転送対象として選択する。例えば、上述した転送データ関連情報の例では、拡張子のみ異なるファイル名(例えば「20130807.AVI」)が記憶部103に存在する場合はこのファイルを代替ファイルとして選択する。また、当該ファイルが存在しない場合はSTA−Aのデータ変換部106によってMOV形式を変換して得られる、例えばMP4形式のファイル名(例えば「20130807.MP4」)を選択する。   Upon receiving the rejection response signal in S406, the STA-A selects a file (alternative file) to be transferred as a substitute for the file (initial file) to be transferred in S404. Specifically, for the original file included in the transfer data-related information for which the rejection response has been received, it is determined whether or not an alternative file having a different extension from the storage unit 103 exists. Select files for transmission. If there is no substitute file, the STA-A selects a file obtained by converting the original 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 exists in the storage unit 103, this file is selected as an alternative file. If the file does not exist, for example, a file name in MP4 format (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 the 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 in the same manner as in S405. At this time, when the STA-A receives the rejection response signal, the STA-A confirms the response signal from the STA-B by again performing the alternative file selection in S406 and the session generation request in S407. That is, the STA-A repeats the processes of S406 to S408 until it receives the permission response signal from the STA-B, and specifies a data format that the STA-B can process.

さらに、S409以降のステップについて説明する。S409以降のステップは、S408においてSTA−AがSTA−Bから許可応答信号を受信した場合の処理である。   Further, steps after S409 will be described. The steps after S409 are processing in the case where the STA-A receives the permission response signal from the 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 step S409, upon receiving the permission response signal, the STA-A executes a wireless layer connection process with the STA-B. The connection process in the wireless layer is a connection process based on the above Wi-Fi Direct specification. That is, one of STA-A and STA-B becomes a P2P group owner (GO), and the other becomes a P2P client (CL). The CL performs a so-called network joining process of joining the wireless network formed by the GO. However, when the GO forms a wireless network, it is assumed that the GO is performing a network participation process.

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, a process of setting an IP address by DHCP or the like is performed to establish a connection with the STA-B, and a process of acquiring detailed information required for HTTP transfer in the file transfer service from the STA-B is executed.

S411において、STA−Aは、許可応答信号を受信した際のセッション生成要求で用いた転送データ関連情報(S404あるいはS407)に基づいて、STA−Bに対するファイルの送信処理を実行する。   In S411, the STA-A executes a file transmission process to 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 ends the file transfer, the STA-A executes a predetermined end process for the file transfer service. Specifically, a process of deleting the information generated in S410 and canceling the setting is 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. Also, in S414, STA-B receives the session end request signal, and transmits a permission 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 above Wi-Fi Direct specification. When STA-A and STA-B complete the above processing, they end the operation sequence relating to the communication control processing.

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

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

再び図5を参照する。S502において、制御部102は、転送ファイル選択画面において、ユーザによりファイルが選択されたかを判定する。制御部102はファイルが選択された場合は処理をS503に進め、ファイルが選択されていない場合、処理を再びS502に戻してユーザによるファイルの選択を待つ。より具体的には、図6の画面において、ユーザが操作部109を介してサムネイル画像601〜606のいずれかを選択し、送信ボタン607を押下するのを待つ。なお、本実施形態では転送するファイルを1つ選択するものとして説明するが、複数選択して転送することもできる。   FIG. 5 is referred to again. In step S502, the control unit 102 determines whether a file has been selected by the user on the transfer file selection screen. If a file has been selected, the control unit 102 advances the process to step S503. If a file has not been selected, the control unit 102 returns to step S502 again and waits for the user to select a file. More specifically, on the screen in FIG. 6, the user waits until the user selects one of the thumbnail images 601 to 606 via the operation unit 109 and presses the send button 607. In the present embodiment, one file to be transferred is described as being selected. However, 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 search process of the file transfer service, 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 has not been received, a message to that effect is separately displayed on the display unit 105 to notify the user, and the series of processing ends. On the other hand, if a detection response has been received, the process proceeds to S504. If a plurality of external devices are detected in this step, the control unit 102 displays a list of the external devices that have transmitted the detection response on the display unit 105, and prompts the user to select a device to which the 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 relating to a file to be transferred, and transmits a session generation request including the transfer data related information via the wireless unit 104. In S505, the control unit 102 determines whether a permission response to the session creation request has been received. Specifically, a response to the session generation request received via wireless unit 104 is determined, and 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, processing (S506 to S508) performed when a rejection response is made 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 is present in the storage unit 103. Specifically, it is determined whether there is a file in the storage unit 103 that differs only in the extension from the file name of the file selected in S502 and is not used in the session generation processing in S504. 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 processing can be converted. That is, the control unit 102 determines whether or not the file used in the session generation processing can be converted into data having a different data format (data having a different extension) using the data conversion unit 106. If data conversion is possible, the process proceeds to S508; otherwise, the series of processes is terminated assuming that data usable by the external device cannot be prepared.

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

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

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

S510において、制御部102は、S508でデータ変換処理を開始していた場合、そのデータ変換処理が途中であるかを判定する。制御部102は、データ変換処理が途中であると判定した場合、処理を再びS510に戻して当該変換処理の完了を待つ。一方、当該変換処理が完了していると判定した場合、処理をS511に進める。   In S510, when the data conversion process has been started in S508, the control unit 102 determines whether the data conversion process is in progress. If the control unit 102 determines that the data conversion process is in progress, it 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 a file transfer process to an external device via the participating network based on the transfer data related information transmitted in step S504. When the transmission process of the file is completed in S512, the control unit 102 executes a process of ending the file transfer service in S512, and further executes a session end process in S513.

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

(通信制御処理の具体例)
図5に示した一連の処理について、デジタルカメラ100がS505において外部装置から拒否応答信号を受信した場合の具体例を一例として説明する。
(Specific example of communication control processing)
A series of processes illustrated in FIG. 5 will be described as a specific example in a case where the digital camera 100 receives a rejection response signal from an 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 that “20130807.WMV” is stored in the storage unit 103 in addition to the selected file. The data conversion unit 106 of the digital camera 100 has a function of converting various types of moving image data into the MP4 format. Further, it is assumed that the external device cannot reproduce the moving image data in the MOV format and the WMV format, but can reproduce the moving image data in the 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 a session generation process (corresponding to S504). On the other hand, the external device cannot reproduce the MOV format moving image data. For this reason, upon receiving a rejection response signal 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. (Corresponding to NO in S505). At this time, there is no more file having only an extension in the storage unit 103 (corresponding to NO in S506). For this reason, the digital camera 100 uses the data conversion unit 106 to convert “20130807.WMV” into an MP4 format file “20130807.MP4” (corresponding to YES in S507 and S508). In step S508, “20130807.MOV” may be converted to the MP4 format.

このMP4形式のファイルに基づくセッション生成処理を行うと、外部装置がMP4形式の動画データを再生することができるため、デジタルカメラ100は許可応答信号を受信する(S505のYESに対応)。以降、S509〜S513に従い、データ変換部106で変換したMP4形式の動画データを外部装置に転送し、当該転送が完了すると変換データを記憶部103から削除する(S514に対応)。   When the session generation process based on the MP4 format file is performed, the digital camera 100 receives the permission response signal (corresponding to YES in S505) because the external device can reproduce the MP4 format moving image data. Thereafter, in accordance with S509 to S513, the MP4 format moving image data converted by the data conversion unit 106 is transferred to an 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 joins the wireless network, the digital camera 100 transmits transfer data related information, which is control information, to an external device, and changes the data format of the data to be transferred via the participating network. Determined whether the device can process. When the data format to be transferred cannot be processed by the external device, it is determined whether the external device can process data stored in the storage unit 103 and having another format or another format that can be converted. By doing so, it is possible to specify data that can be processed by the external device at an appropriate timing (that is, before establishing wireless communication with the external device). Further, when the data format of the data to be transferred is a data format that can be processed by the external device, the device joins the network and transfers the data of the format to the external device. In this way, after establishing the wireless communication, it is possible to avoid waste when transmitting data that cannot be processed by the external device, and select 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, a second embodiment will be described. In the first embodiment, a case has been described in which, when a rejection response is received in the session generation processing, data conversion processing is performed to transfer a file having a different data format. On the other hand, in the second embodiment, data conversion is started before the session generation processing. The configuration of the digital camera 100 according to the present embodiment is the same as that of the first embodiment, and a series of operations related to the communication control process is the same as the process described in the first embodiment except for the above-described process. For this reason, in the drawings referred to in the present embodiment, the same or similar configurations and steps as those in the drawings referred to in the first embodiment are denoted by the same reference numerals, and redundant description will be omitted. explain.

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

制御部102は、S501〜S502の処理を実行してユーザにより所定のファイルが選択された場合にS701に処理を進める。   The control unit 102 executes the processing of S501 to S502 and advances the processing 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. That is, the control unit 102 determines whether the selected file can be converted into data having a different format (data having a different extension) 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 S702, 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 processing is obtained by changing the extension of the file name used for the data conversion processing, and the generated file is stored in the storage unit 103. If the data conversion unit 106 has a function of converting data into a plurality of formats, the 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 search process of the file transfer service, 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 has not been received, a message to that effect 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. If a plurality of external devices are detected in this step, the control unit 102 displays a list of the external devices that have transmitted the detection response on the display unit 105, and prompts the user to select a device to which the file is to be transferred. An operation may be accepted.

S704において、制御部102は、セッション生成処理を行う。具体的には、制御部102は、転送されるファイルに係る転送データ関連情報を生成し、この転送データ関連情報を含んだセッション生成要求を、無線部104を介して送信する。S705において、制御部102は、セッション生成要求に対する許可応答を受信したかを判定する。具体的には、無線部104を介して受信したセッション生成要求に対する応答を判定し、この応答が許可応答である場合は処理をS509に進め、この応答が拒否応答である場合は処理をS706に進める。   In S704, the control unit 102 performs a session generation process. Specifically, the control unit 102 generates transfer data related information relating to a file to be transferred, 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 wireless unit 104 is determined, and 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 having a different extension is present in the storage unit 103. Specifically, it is determined whether there is a file in the storage unit 103 that differs only in the extension 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 also include the file for which the conversion process has been started in S702 described above (the conversion process 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 another process.

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

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

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

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

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

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

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 rejection history in which the external device is associated with the extension of the transfer target file. In the rejection history, for example, a set of an identifier for specifying the external device (for example, the MAC address of the external device) and the extension of the file when the rejection response signal is received is stored. The rejection history is searched using the identifier of the provided external device as a key. If there is a history of the rejection response, the process proceeds to S802; otherwise, the process proceeds to S806. The history of the rejection response is updated at any time in S808 described later.

S802において、制御部102は、S502で選択された転送対象のファイル(即ち当初ファイル)の拡張子が、過去にセッション生成処理で拒否応答がなされた際に使用された拡張子であるか否かを判定する。転送対象のファイルの拡張子が、過去に拒否応答がなされた拡張子と一致する場合はS803に処理を進め、拒否応答の履歴のある拡張子と一致しない場合はS806に処理を進める。   In step S802, the control unit 102 determines whether the extension of the transfer target file (ie, the initial file) selected in step S502 is the extension used in the past when a rejection response was made in the session generation processing. Is determined. If the extension of the transfer target file matches the extension for which a rejection response has been made in the past, the process proceeds to S803; otherwise, 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 is present in the storage unit 103. Specifically, it is determined whether or not a file that differs from the file name of the file selected in S502 only in the extension and is not used in the session generation processing in S806 described below exists in the storage unit 103. I do. If the file exists, the process advances to step S806 to perform a session generation process. On the other hand, if the corresponding file does not exist, the process proceeds to S804. When determining whether or not a file exists, it is necessary to further consider the history of the rejection response and consider that even if there is a file with an extension that matches the extension for which the rejection response was issued, the file does not exist. It may be determined.

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

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

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

S806において、制御部102は、セッション生成処理を行う。具体的には、制御部102は、転送されるファイルに係る転送データ関連情報を生成し、生成した転送データ関連情報を含んだセッション生成要求を、無線部104を介して送信する。S807において、制御部102は、セッション生成要求に対する許可応答を受信したかを判定する。具体的には、無線部104を介して受信したセッション生成要求に対する応答を判定し、この応答が許可応答である場合は処理をS509に進め、この応答が拒否応答である場合は処理をS808に進める。   In S806, the control unit 102 performs a session generation process. Specifically, the control unit 102 generates transfer data related information relating to a file to be transferred, and transmits a session generation request including the generated transfer data related information via the wireless unit 104. In S807, the control unit 102 determines whether a permission response to the session creation request has been received. Specifically, a response to the session generation request received via wireless unit 104 is determined, and 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 S808, the control unit 102 stores the refusal history. More specifically, the control unit 102 associates the extension of the transfer target file with the external device and stores the rejection history in the storage unit 103. Then, the process proceeds to S803.

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

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

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

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

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

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

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

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

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

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 S905; otherwise, the process proceeds to 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 the combination of the external device and the extension of the transfer target file as the permission history. Then, the process proceeds to S509.

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

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

(その他の実施形態)
上述した実施形態では、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 based on 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 schemes such as wireless USB, MBOA, Bluetooth (registered trademark), UWB, and ZigBee (registered trademark). Further, the present invention may be implemented in a wired communication medium such as a wired LAN. Note that MBOA is an abbreviation of Multi Band OFDM Alliance, and UWB includes wireless USB, wireless 1394, WINET, and the like.

さらに、上記実施形態は転送するデータとして動画データを例に説明した。しかし、本発明はこれに限定されるわけではなく、静止画データ、音声データ、文書データ、データベースなど、複数のファイル形式が存在しているデータを送信する場合に適用可能である。   Furthermore, in the above-described embodiment, moving image data has been described as an example of data to be transferred. However, the present invention is not limited to this, and can be applied to the case of 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 for realizing one or more functions of the above-described embodiments to a system or an apparatus via a network or a storage medium, and one or more processors in a computer of the system or the apparatus read and execute the program. This processing can be realized. Further, it can also be realized by a circuit (for example, an 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のデータ形式を処理可能でない場合、前記制御情報の送受信を再度行って、前記外部装置が前記第1のデータ形式と異なる第2のデータ形式を処理可能か否かを判定するように制御する、
ことを特徴とする通信装置。
Communication means configured to transfer data to an external device via the participating network and to transmit and receive control information to and from the external device before joining the network;
Control means for controlling processing using the communication means,
The control means includes:
If the first data having the first data format is selected as a transfer target before the communication means joins the network, the external device issues a request for establishing communication via the network to the first device. A query is added to the external device as to whether the external device can process the data format, and the external device can process the first data format based on a response to the request received from the external device. Judge whether or not
If the external device can process the first data format, it joins the network to establish communication with the external device, and if the external device cannot process the first data format, Controlling to perform transmission and reception of information again to determine whether the external device can process a second data format different from the first data format,
A communication device characterized by the above-mentioned.
拡張子を含むファイル名を持つファイルとして、前記第1のデータを含む複数のデータを記憶するデータ記憶手段を更に備え、
前記制御手段は、前記第1のデータのファイル名と拡張子のみが異なるファイル名で第2のデータが前記データ記憶手段に記憶されている場合、前記第2のデータのデータ形式を前記第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,
The control means, when the second data is stored in the data storage means with a file name different from the file name of the first data only in the extension, changes the data format of the second data to the second data. The communication device according to claim 1, wherein the communication format is a data format.
前記第1のデータを他のデータ形式に変換する変換手段を更に備え、
前記制御手段は、前記他のデータ形式を前記第2のデータ形式とする
ことを特徴とする請求項1に記載の通信装置。
A conversion unit configured to convert 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 unit may set the other data format to the second data format when data having a file name different from only the file name of the first data and an extension is not stored in the data storage unit. The communication device according to claim 1, wherein:
前記制御手段は、前記外部装置が前記第1のデータ形式を処理可能でないと判定した後に、前記変換手段を用いた変換を開始する
ことを特徴とする請求項3又は4に記載の通信装置。
5. The communication device according to claim 3, wherein the control unit starts the 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 the conversion using the conversion unit before determining whether the external device can process the first data format. .
前記制御手段は、前記変換手段を用いた変換の途中に、前記外部装置が前記第1のデータ形式を処理可能であると判定した場合、この変換を中止する
ことを特徴とする請求項6に記載の通信装置。
The control means stops the conversion when it is determined that the external device can process the first data format during the conversion using the conversion means. The communication device as described.
前記制御手段により前記外部装置が処理可能でないと判定されたデータ形式を前記外部装置と関連付けて記憶する履歴記憶手段を更に備え、
前記制御手段は、前記第1のデータ形式が前記外部装置と関連付けて前記履歴記憶手段に記憶されている場合、前記外部装置が前記第1のデータ形式を処理可能か否かの判定を行わずに、前記外部装置が前記第2のデータ形式を処理可能か否かを判定する
ことを特徴とする請求項1から7のいずれか1項に記載の通信装置。
The apparatus further includes a history storage unit configured to store a data format determined to be unprocessable by the external device by the control unit in association with the external device,
The control unit 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 unit in association with the external device. The communication device according to any one of claims 1 to 7, further comprising determining whether or not the external device can process the second data format.
前記制御手段により前記外部装置が処理可能であると判定されたデータ形式を前記外部装置と関連付けて記憶する履歴記憶手段を更に備え、
前記制御手段は、前記外部装置と関連付けて前記履歴記憶手段に記憶されているデータ形式の中から選択したデータ形式を前記第2のデータ形式とする
ことを特徴とする請求項1から7のいずれか1項に記載の通信装置。
The apparatus further includes a history storage unit that stores the data format determined to be processable by the external device by the control unit in association with the external device,
8. The control unit according to claim 1, wherein a data format selected from data formats stored in the history storage unit in association with the external device is used as the second data format. 9. The communication device according to claim 1.
参加中のネットワークを介して外部装置へデータを転送すると共に、前記ネットワークに参加する前に前記外部装置と制御情報を送受信するように構成された通信手段を有する通信装置の制御方法であって、
制御手段が、前記通信手段を用いた処理を制御する制御工程を有し、
前記制御工程では、
前記通信手段が前記ネットワークに参加する前に、第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 and receive control information to and from the external device before joining the network,
Control means has a control step of controlling processing using the communication means,
In the control step,
If the first data having the first data format is selected as a transfer target before the communication means joins the network, the external device issues a request for establishing communication via the network to the first device. A query is added to the external device as to whether the external device can process the data format, and the external device can process the first data format based on a response to the request received from the external device. Judge whether or not
If the external device can process data having the first data format, join the network to establish communication with the external device, and if the external device cannot process the first data format. Controlling the external device to transmit and receive the control information again to determine whether the external device can process a second data format different from the first data format,
A method for controlling a communication device, comprising:
コンピュータを、請求項1から9のいずれか1項に記載の通信装置の通信手段を除く各手段として機能させるためのプログラム。   A program for causing a computer to function as each unit except for the communication unit of the communication device according to claim 1.
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 JP2017037531A (en) 2017-02-16
JP6666669B2 true 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)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6681028B2 (en) * 2017-03-17 2020-04-15 京セラドキュメントソリューションズ株式会社 Image forming device
JP6921652B2 (en) * 2017-06-29 2021-08-18 キヤノン株式会社 Information processing equipment and information processing methods and programs

Family Cites Families (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
JP5299840B2 (en) * 2008-09-17 2013-09-25 富士ゼロックス株式会社 Recommended setting notification system
JP5841380B2 (en) * 2011-09-01 2016-01-13 キヤノン株式会社 Management server and processing method thereof
EP2696643B1 (en) * 2012-08-08 2020-09-30 Samsung Electronics Co., Ltd Apparatus and method of connecting service, according to user intention
KR102037256B1 (en) * 2012-08-08 2019-10-29 삼성전자주식회사 Apparatus and method for connecting service reflected in user intent
JP6364738B2 (en) * 2013-01-11 2018-08-01 株式会社リコー Information processing system, information processing apparatus, program, and process execution method
JP6271843B2 (en) * 2013-02-22 2018-01-31 キヤノン株式会社 COMMUNICATION DEVICE, ITS CONTROL METHOD, PROGRAM

Also Published As

Publication number Publication date
JP2017037531A (en) 2017-02-16

Similar Documents

Publication Publication Date Title
JP6368989B2 (en) Communication device
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
JP6338344B2 (en) COMMUNICATION DEVICE, COMMUNICATION DEVICE CONTROL METHOD, AND PROGRAM
JP6271843B2 (en) COMMUNICATION DEVICE, ITS CONTROL METHOD, PROGRAM
JP6080561B2 (en) Generator, control method, and program
US10104702B2 (en) Communication apparatus, control method thereof and storage medium
JP2014143540A (en) Communication device, control method of communication device, and program
JP6666669B2 (en) Communication device, control method therefor, and program
JP6381330B2 (en) COMMUNICATION DEVICE, COMMUNICATION DEVICE CONTROL METHOD, PROGRAM
US9900829B2 (en) Communication device, method for controlling the communication device, and program
JP6157190B2 (en) COMMUNICATION DEVICE, ITS CONTROL METHOD, PROGRAM
JP6132588B2 (en) COMMUNICATION DEVICE, ITS CONTROL METHOD, PROGRAM
JP2021190867A (en) Communication, control method therefor 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
JP2017184184A (en) Communication device, control method for communication device, 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 Written amendment

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