JP2016076933A - Recording medium and method for controlling the same - Google Patents

Recording medium and method for controlling the same Download PDF

Info

Publication number
JP2016076933A
JP2016076933A JP2015211102A JP2015211102A JP2016076933A JP 2016076933 A JP2016076933 A JP 2016076933A JP 2015211102 A JP2015211102 A JP 2015211102A JP 2015211102 A JP2015211102 A JP 2015211102A JP 2016076933 A JP2016076933 A JP 2016076933A
Authority
JP
Japan
Prior art keywords
ptp
recording medium
module
dsc
memory card
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2015211102A
Other languages
Japanese (ja)
Other versions
JP6204958B2 (en
Inventor
吉田 昌史
Masashi Yoshida
昌史 吉田
小川 康行
Yasuyuki Ogawa
康行 小川
荻原 聡
Satoshi Ogiwara
聡 荻原
相沢 隆志
Takashi Aizawa
隆志 相沢
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 JP2015211102A priority Critical patent/JP6204958B2/en
Publication of JP2016076933A publication Critical patent/JP2016076933A/en
Application granted granted Critical
Publication of JP6204958B2 publication Critical patent/JP6204958B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

PROBLEM TO BE SOLVED: To provide a recording medium with a radio communication function available for various applications and an imaging device capable of effectively utilizing the recording medium and a method for controlling the imaging device.SOLUTION: A recording medium includes radio communication means configured so as to be attachable/detachable to/from host equipment for performing radio communication with external equipment different from the host equipment. The recording medium includes a PTP(Picture Transfer Protocol) Responder module which performs communication based on a PTP via the radio communication means with the external equipment, and allows the recording medium to function as a Responder in the PTP. Then, which of the PTP Responder module included in the recording medium and the PTP Responder module included in the host equipment should be used for performing PTP communication via the radio communication means with the external equipment is switched in accordance with a set mode.SELECTED DRAWING: Figure 5

Description

本発明は記録媒体及びそれを用いる撮像装置に関する。   The present invention relates to a recording medium and an imaging apparatus using the recording medium.

デジタルカメラなどの撮像装置では、撮影で得られた画像データを保存するための記録媒体として、半導体メモリカードが広く用いられている。記録された画像データをパーソナルコンピュータ(以下PC)、プリンタ、テレビジョン受像器などの外部装置に転送する場合、デジタルカメラと外部装置の両方が有するデジタルインタフェースをケーブルで接続するのが一般的である(特許文献1参照)。   In an imaging apparatus such as a digital camera, a semiconductor memory card is widely used as a recording medium for storing image data obtained by photographing. When transferring recorded image data to an external device such as a personal computer (hereinafter referred to as a PC), a printer, or a television receiver, it is common to connect the digital interfaces of both the digital camera and the external device with a cable. (See Patent Document 1).

このように、デジタルカメラと外部装置との間でデータ転送を行う場合、従来はケーブルのような物理的な伝送路上で、予め決められた通信プロトコルに従ってデータ交換を行っていた。   As described above, when data is transferred between a digital camera and an external device, conventionally, data exchange is performed according to a predetermined communication protocol on a physical transmission path such as a cable.

たとえば、PCとデジタルカメラのデータ交換プロトコルとしては、USBのStill Imaging Device Classで規定されているPTP(Picture Transfer Protocol)や、マスストレージデバイスクラスで定義されているプロトコルを利用することが多い。   For example, as a data exchange protocol between a PC and a digital camera, a PTP (Picture Transfer Protocol) defined by a USB Still Imaging Device Class or a protocol defined by a mass storage device class is often used.

特に、OSレベルでPTPをサポートしているWindows(登録商標)やMac OS(登録商標)が稼働するPCでは、デジタルカメラを接続すると、それがデジタルカメラであることを認識する。そして、例えばデータ転送アプリケーションを自動で起動し、データ転送を開始する等の動作が可能であり、ユーザの負荷軽減と、利便性の向上を実現している。   In particular, a PC running Windows (registered trademark) or Mac OS (registered trademark) that supports PTP at the OS level recognizes that it is a digital camera when it is connected. Then, for example, an operation such as automatically starting a data transfer application and starting data transfer is possible, thereby reducing the load on the user and improving convenience.

また、デジタルカメラとプリンタを直接接続して印刷するダイレクトプリントの手順等を定めた、PictBridgeという規格も提案されている。PictBridge規格においても装置間の通信にはPTPを利用しているため、デジタルカメラがPTPによる通信をサポートしていれば、ユーザはデジタルカメラを接続する外部装置がPCでもプリンタでも同様に操作すればよい。   In addition, a standard called PictBridge has been proposed which defines a direct printing procedure for printing by directly connecting a digital camera and a printer. Even in the PictBridge standard, communication between devices uses PTP, so if the digital camera supports PTP communication, the user can operate the external device connected to the digital camera in the same way, whether it is a PC or a printer. Good.

近年では、デジタルカメラから外部機器へ画像データをより簡単に転送できるよう、無線通信機能を有するメモリカードが販売されている。このメモリカードをデジタルカメラに装着して用いると、無線通信可能な外部機器に自動的に画像データを転送することが可能であり、ユーザはケーブルの接続や明示的な転送指示を行う必要がない。   In recent years, memory cards having a wireless communication function have been sold so that image data can be more easily transferred from a digital camera to an external device. When this memory card is attached to a digital camera and used, image data can be automatically transferred to an external device capable of wireless communication, and the user does not need to connect a cable or give an explicit transfer instruction. .

特開2005−223710号公報JP 2005-223710 A

従来の無線通信機能付きメモリカードは、IEEE802.11x規格に準拠した無線通信機能を有し、無線LANに接続することによって画像データの転送を行うことに特化している。そのため、PTPのような、デジタルカメラと外部機器との通信プロトコルを用いたアプリケーション、例えばダイレクトプリントには対応できない。また、無線通信機能付きメモリカードが外部機器と行う通信は、デジタルカメラの動作とは基本的に独立しており、例えばデジタルカメラが無線通信機能付きメモリカードを通信アダプタとして用いて、外部機器と通信することはできなかった。   A conventional memory card with a wireless communication function has a wireless communication function conforming to the IEEE802.11x standard and specializes in transferring image data by connecting to a wireless LAN. Therefore, an application using a communication protocol between a digital camera and an external device such as PTP, for example, direct printing cannot be supported. In addition, the communication performed by the memory card with the wireless communication function with the external device is basically independent of the operation of the digital camera. For example, the digital camera uses the memory card with the wireless communication function as a communication adapter to communicate with the external device. Could not communicate.

このように、従来の無線通信機能付きメモリカードはその用途が限られており、無線通信機能が有効に活用されていない面があった。本発明はこのような従来技術の課題に鑑みてなされたものであり、様々な用途に利用可能な無線通信機能付き記録媒体を提供することを1目的とする。また、このような無線通信機能付き記録媒体を用いる撮像装置の提供も本発明の1目的である。   Thus, the conventional memory card with a wireless communication function has a limited use, and the wireless communication function has not been effectively utilized. The present invention has been made in view of the problems of the prior art, and an object of the present invention is to provide a recording medium with a wireless communication function that can be used for various purposes. It is another object of the present invention to provide an imaging apparatus using such a recording medium with a wireless communication function.

上述の目的の1つは、ホスト機器に着脱可能な記録媒体であって、ホスト機器と異なる外部機器と、無線通信を行うための無線通信手段と、無線通信手段を通じて、外部機器とPTP(Picture Transfer Protocol)に準拠した通信を行い、記録媒体をPTPにおけるResponderとして機能させるPTP Responderモジュールと、無線通信手段を通じた外部機器とのPTP通信を、記録媒体が有するPTP Responderモジュールを用いて行うか、記録媒体が装着されたホスト機器が有する、ホスト機器をResponderとして機能させるPTP Responderモジュールを用いて行うかを、ホスト機器から設定されたモードに応じて切り替えるコントローラとを有することを特徴とする記録媒体によって達成される。   One of the above-described objects is a recording medium that can be attached to and detached from the host device. The external device is different from the host device, wireless communication means for performing wireless communication, and through the wireless communication means, the external device and the PTP (Picture The PTP Responder module that performs communication conforming to the Transfer Protocol) and causes the recording medium to function as a Responder in PTP and the PTP communication with the external device through the wireless communication means, using the PTP Responder module that the recording medium has, A recording medium comprising: a controller that switches whether or not to use a PTP Responder module that causes the host device to function as a Responder in a host device to which the recording medium is mounted, according to a mode set by the host device. Achieved by:

このような構成により、本発明によれば、様々な用途に利用可能な無線通信機能付き記録媒体と、このような記録媒体を用いる撮像装置を提供することができる。   With such a configuration, according to the present invention, it is possible to provide a recording medium with a wireless communication function that can be used for various purposes, and an imaging apparatus using such a recording medium.

本発明の実施形態に係る撮像装置の一例としてのデジタルスチルカメラの機能構成例を示すブロック図。1 is a block diagram illustrating an example of a functional configuration of a digital still camera as an example of an imaging apparatus according to an embodiment of the present invention. 本発明の実施形態に係る外部装置の一例としての汎用コンピュータ装置の機能構成例を示すブロック図。The block diagram which shows the function structural example of the general purpose computer apparatus as an example of the external device which concerns on embodiment of this invention. 本発明の実施形態に係る外部装置の別の一例としてのプリンタの制御系の機能構成例を示すブロック図。FIG. 5 is a block diagram illustrating a functional configuration example of a control system of a printer as another example of an external apparatus according to an embodiment of the invention. 図1におけるメモリカード120の機能構成例を示すブロック図。FIG. 2 is a block diagram illustrating a functional configuration example of a memory card 120 in FIG. 1. 図1におけるメモリカード120の状態遷移図。The state transition diagram of the memory card 120 in FIG. 本発明の実施形態におけるDSC100とメモリカード120に実装されるソフトウェアモジュールとその階層関係を説明する図。The figure explaining the software module mounted in DSC100 and the memory card 120 in the embodiment of the present invention, and its hierarchical relationship. 本発明の実施形態に係るDSC100において、メモリカード120のApplicationモードを設定するためのGUI画面の例を示す図。The figure which shows the example of the GUI screen for setting Application mode of the memory card 120 in DSC100 which concerns on embodiment of this invention. 本発明の実施形態に係る、PullモードにおけるDSC100、メモリカード120、PC200の動作を示すシーケンス図。The sequence diagram which shows operation | movement of DSC100, the memory card 120, and PC200 in Pull mode based on embodiment of this invention. 本発明の実施形態に係る、Path ThroughモードによるPTPセッションの開始後までのDSC100、メモリカード120、PC200の動作を示すシーケンス図。The sequence diagram which shows operation | movement of DSC100, the memory card 120, and PC200 until after the start of the PTP session by Path Through mode based on embodiment of this invention. 本発明の実施形態に係る、Path ThroughモードによるPTPセッションの開始後、外部機器からオブジェクトの送受信要求があった場合ならびにイベント発生時のDSC100、メモリカード120、PC200の動作を示すシーケンス図。FIG. 6 is a sequence diagram showing operations of the DSC 100, the memory card 120, and the PC 200 when there is an object transmission / reception request from an external device and an event occurs after the start of a PTP session in the Path Through mode according to the embodiment of the present invention. 図10の変形例を示すシーケンス図。The sequence diagram which shows the modification of FIG. 本発明の実施形態に係る、DSC100、メモリカード120、プリンタ300のDPSモードにおける動作(DPS Discovery)を示すシーケンス図。The sequence diagram which shows the operation | movement (DPS Discovery) in DPS mode of DSC100, the memory card 120, and the printer 300 based on embodiment of this invention. 本発明の実施形態に係る、DSC100、メモリカード120、プリンタ300のDPSモードにおける動作(DPS Discovery)を示すシーケンス図。The sequence diagram which shows the operation | movement (DPS Discovery) in DPS mode of DSC100, the memory card 120, and the printer 300 based on embodiment of this invention. 本発明の実施形態に係る、DSC100、メモリカード120、プリンタ300のDPSモードにおける動作(DPS ConfigurePrintService)を示すシーケンス図。The sequence diagram which shows the operation | movement (DPS ConfigurePrintService) in DPS mode of DSC100, the memory card 120, and the printer 300 based on embodiment of this invention. DPS ConfigurePrintService、GetCapability、StartJobで送信されるスクリプトの例を示す図。The figure which shows the example of the script transmitted by DPS ConfigurePrintService, GetCapability, StartJob. 本発明の実施形態に係る、DSC100、メモリカード120、プリンタ300のDPSモードにおける動作(DPS_GetFileInfo及びDPS_GetFile)を示すシーケンス図。The sequence diagram which shows the operation | movement (DPS_GetFileInfo and DPS_GetFile) in DPS mode of DSC100, the memory card 120, and the printer 300 based on embodiment of this invention. 本発明の実施形態に係る、DSC100、メモリカード120、プリンタ300のDPSモードにおける動作(DPS_NotifyDeviceStatus)を示すシーケンス図。The sequence diagram which shows the operation | movement (DPS_NotifyDeviceStatus) in DPS mode of DSC100, the memory card 120, and the printer 300 based on embodiment of this invention. DPS_NotifyDeviceStatus、DPS_NotifyJobStatusで送信されるスクリプトの例を示す図。The figure which shows the example of the script transmitted by DPS_NotifyDeviceStatus and DPS_NotifyJobStatus.

次に、添付図面を参照して、本発明の例示的な実施形態について詳細に説明する。なお、以下では、無線通信機能付きメモリカードを用いる撮像装置の一例としてデジタルスチルカメラ(DSC)を説明するが、デジタルビデオカメラやカメラ付き携帯電子機器など、カメラまたはカメラを備える任意の機器に適用可能である。また、DSCと無線通信してサービスを提供したりDSCが有する画像データ利用する外部機器の例として、以下では汎用コンピュータ装置(PC)およびプリンタを説明する。しかし、外部機器は、いわゆるスマートフォンやタブレット端末、または他のデジタルカメラなど、PTP(Picture Transfer Protocol)をサポートする任意の機器であってよい。   Reference will now be made in detail to the exemplary embodiments of the present invention, examples of which are illustrated in the accompanying drawings. In the following description, a digital still camera (DSC) will be described as an example of an imaging device that uses a memory card with a wireless communication function. However, the present invention is applicable to a digital video camera, a camera-equipped portable electronic device, or any device equipped with a camera. Is possible. In addition, a general-purpose computer device (PC) and a printer will be described below as examples of external devices that provide services by wirelessly communicating with a DSC or use image data that the DSC has. However, the external device may be any device that supports PTP (Picture Transfer Protocol), such as a so-called smartphone, tablet terminal, or other digital camera.

図1は、DSC100の機能構成例を示すブロック図である。
制御部101は、例えばCPU,MPUなどプログラマブルなプロセッサであり、DSC100全体の制御を司る。不揮発性メモリ102は制御部101の処理手順(プログラム)や、DSC100の各種設定やメニュー画面などのGUI(Graphical User Interface)データなどを記憶する。RAM103は制御部101のワークエリアとして使用される。操作部104はボタン並びにスイッチ群であり、ユーザがDSC100に各種指示を与えるために用いられる。表示部105は例えばLCD(Liquid Crystal Display)であり、撮影した画像や、各種設定を行う際のメニュー画面を表示するために使用される。光学ユニット106は主としてレンズ(ズームレンズ、フォーカスレンズなど)及びその駆動を行うアクチュエータ等で構成される。撮像素子107はCCDイメージセンサやCMOSイメージセンサである。ドライバ108は制御部101の制御下において光学ユニット106を制御する。コネクタ109は着脱可能な記録媒体であるメモリカード120を接続するためのコネクタである。後述するように、本実施形態におけるメモリカード120は無線通信機能を有する。インタフェース(I/F)110は例えばUSB,IEEE1934,HDMI(登録商標)などのデジタルインタフェースであり、有線接続により外部機器と接続するために用いられる。
FIG. 1 is a block diagram illustrating a functional configuration example of the DSC 100.
The control unit 101 is a programmable processor such as a CPU or MPU, and controls the entire DSC 100. The nonvolatile memory 102 stores processing procedures (programs) of the control unit 101, GUI (Graphical User Interface) data such as various settings of the DSC 100 and menu screens, and the like. The RAM 103 is used as a work area for the control unit 101. The operation unit 104 is a group of buttons and switches, and is used by the user to give various instructions to the DSC 100. The display unit 105 is an LCD (Liquid Crystal Display), for example, and is used to display a captured image and a menu screen for performing various settings. The optical unit 106 mainly includes a lens (such as a zoom lens and a focus lens) and an actuator that drives the lens. The image sensor 107 is a CCD image sensor or a CMOS image sensor. The driver 108 controls the optical unit 106 under the control of the control unit 101. A connector 109 is a connector for connecting a memory card 120 which is a detachable recording medium. As will be described later, the memory card 120 in this embodiment has a wireless communication function. The interface (I / F) 110 is a digital interface such as USB, IEEE 1934, or HDMI (registered trademark), and is used for connecting to an external device by wired connection.

図2は本実施形態における外部装置の一例としての汎用コンピュータ装置(PC)200の構成例を示すブロック図である。
図において、表示装置201は、LCD等から構成され、各種のGUIやデータなどを表示する。キーボード203及びポインティングデバイス204は、文字などを入力したり、GUIにおけるアイコンやボタンなどを指し示したりするためなどに用いられる。CPU205はPC200全体の制御を司る。
FIG. 2 is a block diagram illustrating a configuration example of a general-purpose computer device (PC) 200 as an example of an external device according to the present embodiment.
In the figure, a display device 201 is composed of an LCD or the like, and displays various GUIs and data. The keyboard 203 and the pointing device 204 are used for inputting characters and pointing to icons and buttons in the GUI. The CPU 205 controls the entire PC 200.

ROM206(Read Only Memory)はCPU205が実行するプログラム(主にブートプログラム)やパラメータ等を記憶している。RAM(Random Access Memory)207は各種プログラムをCPU205が実行する時のワークエリア、エラー処理時の一時退避エリア等として用いられる。   A ROM 206 (Read Only Memory) stores a program (mainly a boot program) executed by the CPU 205, parameters, and the like. A RAM (Random Access Memory) 207 is used as a work area when the CPU 205 executes various programs, a temporary save area during error processing, and the like.

ハードディスクドライプ(HDD)208はOSやアプリケーションプログラムなど、CPU205が実行するプログラムを記憶したり、ユーザデータを記憶したりする。また、仮想記憶領域としても用いられる。本実施形態において説明するPC200の各種機能を実現するプログラムは、HDD208に記憶されているものとする。   A hard disk drive (HDD) 208 stores programs executed by the CPU 205 such as an OS and application programs, and stores user data. It is also used as a virtual storage area. It is assumed that programs that realize various functions of the PC 200 described in the present embodiment are stored in the HDD 208.

リムーバブルメディアドライプ(RMD)209は、着脱可能な記録媒体の読み書き又は読み出しを行う装置である。RMD209の具体例としては、フレキシブルディスクドライブ、光ディスクドライブ、光磁気ディスクドライブ、メモリカードリーダ、着脱式HDDなどがある。   A removable media drive (RMD) 209 is a device that reads / writes or reads a removable recording medium. Specific examples of the RMD 209 include a flexible disk drive, an optical disk drive, a magneto-optical disk drive, a memory card reader, and a removable HDD.

USB/IEEE1394 I/F210は、プリンタを始めとした各種周辺機器を有線接続するためのインタフェースの一例である。
無線通信I/F211はPC200を無線通信ネットワークに接続するためのインタフェースである。バス212はアドレスバス、データバスおよび制御バスからなり、上述した各ユニット間を接続する。
The USB / IEEE 1394 I / F 210 is an example of an interface for connecting various peripheral devices such as a printer by wire.
The wireless communication I / F 211 is an interface for connecting the PC 200 to the wireless communication network. The bus 212 includes an address bus, a data bus, and a control bus, and connects the above-described units.

図3は、本実施形態における外部装置の一例であるプリンタ300の制御系の構成例を示すブロック図である。
図において、制御部301は例えばCPU,MPUなどプログラマブルなプロセッサであり、DSC100全体の制御を司る。不揮発性メモリ102は制御部101の処理手順(プログラム)やフォント、プリンタ300の各種設定やメニュー画面などのGUIデータなどを記憶する。RAM303は制御部301のワークエリアとして使用される。操作パネル304はボタン並びにスイッチ群であり、ユーザがプリンタ300に各種指示を与えるために用いられる。表示部308は例えばLCDであり、プリントする画像データや、各種設定を行う際のメニュー画面を表示するために使用される。USB/IEEE1394 I/F305はホスト機器(PC200など)と有線接続を行うためのインタフェースである。無線通信インタフェース307は、無線通信ネットワークに接続するためのインタフェースである。306はプリンタエンジン部であり、実施形態では、熱エネルギーを利用してインク液を吐出するプリントエンジンであるが、記録方式はこれにより限定されるものではない。
FIG. 3 is a block diagram illustrating a configuration example of a control system of the printer 300 which is an example of the external apparatus according to the present embodiment.
In the figure, a control unit 301 is a programmable processor such as a CPU or MPU, and controls the entire DSC 100. The non-volatile memory 102 stores processing procedures (programs) and fonts of the control unit 101, various settings of the printer 300, GUI data such as a menu screen, and the like. The RAM 303 is used as a work area for the control unit 301. The operation panel 304 is a group of buttons and switches, and is used by the user to give various instructions to the printer 300. The display unit 308 is, for example, an LCD, and is used to display image data to be printed and a menu screen for performing various settings. The USB / IEEE1394 I / F 305 is an interface for performing a wired connection with a host device (such as the PC 200). The wireless communication interface 307 is an interface for connecting to a wireless communication network. Reference numeral 306 denotes a printer engine unit. In the embodiment, the printer engine unit 306 is a print engine that discharges ink using thermal energy. However, the recording method is not limited thereto.

図4は、図1におけるメモリカード120の機能構成例を示すブロック図である。メモリカード120は、カードコントローラ1201、無線通信部1202、メモリ部1203を有している。
カードコントローラ1201は、例えばCPU,ROM,RAMなどを有し、後述するメモリカード120の動作を実現する。無線通信部1202の制御、無線通信ネットワーク上の外部機器とのPTP通信、ホスト機器としてのDSC100とのPTP通信、DSC100における記録媒体としての動作、などはカードコントローラ1201の制御により実現される。
FIG. 4 is a block diagram showing a functional configuration example of the memory card 120 in FIG. The memory card 120 includes a card controller 1201, a wireless communication unit 1202, and a memory unit 1203.
The card controller 1201 includes, for example, a CPU, a ROM, a RAM, and the like, and realizes the operation of the memory card 120 described later. Control of the wireless communication unit 1202, PTP communication with an external device on the wireless communication network, PTP communication with the DSC 100 as a host device, operation as a recording medium in the DSC 100, and the like are realized by control of the card controller 1201.

無線通信部1202は、IEEE 802.11xやBluetooth(登録商標)等の無線通信規格に準拠した無線通信機能を有し、無線通信ネットワーク上の外部機器との通信を実現する。本実施形態では無線通信部1202がIEEE 802.11a/b/g/n規格に準拠した無線通信機能を有するものとする。   The wireless communication unit 1202 has a wireless communication function based on a wireless communication standard such as IEEE 802.11x or Bluetooth (registered trademark), and realizes communication with an external device on the wireless communication network. In this embodiment, it is assumed that the wireless communication unit 1202 has a wireless communication function based on the IEEE 802.11a / b / g / n standard.

メモリ部1203は例えばNAND型の不揮発性メモリを含み、カードコントローラ1201を通じて書き込まれた静止画、動画、音声などのデータを記憶する。なお、メモリカード120はDSC100の記録媒体として機能するための所定のファイルシステム、例えばDCF(Design rule for Camera File system)に準拠してファイルの記録を行うものとする。   The memory unit 1203 includes, for example, a NAND nonvolatile memory, and stores data such as still images, moving images, and audio written through the card controller 1201. Note that the memory card 120 records a file in accordance with a predetermined file system for functioning as a recording medium of the DSC 100, for example, a DCF (Design Rule for Camera File system).

図5は、本実施形態のメモリカード120の状態遷移図である。後述するように、メモリカード120は、ホスト機器であるDSC100からのコマンドにより、Applicationモードを切り替え可能である。ここでは、Applicationモードとして、DLNA(Digital Living Network Alliance)モード、プル(Pull)モード、パススルー(Path Through)モード、DPS(Digital Photo Solutions for Imaging Devices)モードのいずれかが設定可能であるものとする。   FIG. 5 is a state transition diagram of the memory card 120 of the present embodiment. As will be described later, the application mode of the memory card 120 can be switched by a command from the DSC 100 as the host device. Here, it is assumed that one of DLNA (Digital Living Network Alliance) mode, Pull mode, Pass Through mode, and DPS (Digital Photo Solutions for Imaging Devices) mode can be set as the Application mode. .

DLNAモードは、DLNAガイドラインに準拠した家電などのネットワークに無線接続し、ネットワーク上の家電製品、例えばテレビなどと通信を行う動作モードである。
Pullモードは、メモリカード120がホスト機器であるDSC100とは基本的に独立して、無線通信ネットワーク上の外部機器とPTP通信するモードである。
Path Throughモードは、メモリカード120があたかもDSC100の無線通信アダプタとして機能し、DSC100と無線通信ネットワーク上の外部機器とのPTP通信を可能とする動作モードである。
DPSモードは、無線ネットワーク上に存在するプリンタを用いたダイレクトプリントを実現する動作モードである。
The DLNA mode is an operation mode in which a wireless connection is made to a network such as a home appliance that complies with the DLNA guidelines, and communication is performed with a home appliance such as a television.
The pull mode is a mode in which the memory card 120 performs PTP communication with an external device on the wireless communication network basically independently of the DSC 100 as a host device.
The Path Through mode is an operation mode in which the memory card 120 functions as a wireless communication adapter of the DSC 100 and enables PTP communication between the DSC 100 and an external device on the wireless communication network.
The DPS mode is an operation mode that realizes direct printing using a printer that exists on a wireless network.

なお、図5に示すように、これらのApplicationモード間での直接遷移はできず、必ずNo Applicationモードを経由してApplicationモードが変更されるように構成されている。No Applicationモードの場合、メモリカード120は、ネットワーク接続の維持に必要な動作や接続可能なネットワークの探索などを行う。   Note that, as shown in FIG. 5, direct transition between these Application modes is not possible, and the Application mode is always changed via the No Application mode. In the case of the No Application mode, the memory card 120 performs an operation necessary for maintaining a network connection, a search for a connectable network, and the like.

図6は、本実施形態におけるDSC100とメモリカード120に実装される代表的なソフトウェアモジュールとその階層関係を説明する図である。例えば図6に示す各ソフトウェアモジュールは、DSC100については不揮発性メモリ102、メモリカード120についてはカードコントローラ1201内の不揮発性メモリの中のプログラム記憶領域に格納されている。なお、図6に示すソフトウェアモジュールのうち、1つ以上がハードウェアロジックによって実現されても良い。   FIG. 6 is a diagram for explaining a typical software module mounted on the DSC 100 and the memory card 120 and its hierarchical relationship in the present embodiment. For example, each software module shown in FIG. 6 is stored in the program storage area in the nonvolatile memory 102 for the DSC 100 and in the nonvolatile memory in the card controller 1201 for the memory card 120. Note that one or more of the software modules shown in FIG. 6 may be realized by hardware logic.

図6に示すように、本実施形態では、PTPにおいてInitiatorからの要求に応答するPTP Responderとして機器(DSC100、メモリカード120)を動作させるためのPTP Responderモジュールを、DSC100及びメモリカード120の両方が有する。なお、PTP Responderモジュール110,120は、PTPの上位互換プロコトルであるMTP(Media Transfer Protocol)に対応しているMTP Responderであってもよい。   As shown in FIG. 6, in the present embodiment, both the DSC 100 and the memory card 120 have a PTP Responder module for operating a device (DSC 100, memory card 120) as a PTP Responder responding to a request from the initiator in PTP. Have. The PTP Responder modules 110 and 120 may be MTP Responders that support MTP (Media Transfer Protocol), which is an upward compatible protocol for PTP.

DSC100とメモリカード120との通信はCard I/Oモジュール130,131を用いて行われる。本実施形態のCard I/Oモジュール130,131はSDIO(Secure Digital Input/Output)に準拠した通信を行うものとするが、他の通信方式を用いても構わない。Card I/Oモジュール130,131はPTP Responder110,125または後述するPTP-IPモジュール123からのPTPオペレーションを、Card I/Oモジュール130,131に対応するコマンドとして通信することにより、DSC100とメモリカード120とのPTPオペレーションの受け渡しを実現する。   Communication between the DSC 100 and the memory card 120 is performed using Card I / O modules 130 and 131. The Card I / O modules 130 and 131 of the present embodiment perform communication compliant with SDIO (Secure Digital Input / Output), but other communication methods may be used. The Card I / O modules 130 and 131 communicate the PTP operation from the PTP Responders 110 and 125 or the PTP-IP module 123 to be described later as commands corresponding to the Card I / O modules 130 and 131, so that the DSC 100 and the memory card 120 are communicated. To deliver PTP operations.

もちろん本実施形態におけるメモリカード120は、撮像で得られた画像データの記録などに用いられる通常の記録媒体として用いることもできる。この場合、Card I/Oモジュール130,131は、メモリ部1203にアクセスするインタフェース(メモリインタフェース)用の通信モジュールとして用いられる。なお、PTPオペレーションを取り扱う通信方式と、メモリ部1203にアクセスするための通信方式とを異なるものとしてもよい。例えば、メモリカード120を通常の記録媒体として用いる場合は、SDメモリモードの通信方式を用い、PTPオペレーションの受け渡しにはSDIOモードの通信方式を用いることができる。   Of course, the memory card 120 in this embodiment can also be used as a normal recording medium used for recording image data obtained by imaging. In this case, the Card I / O modules 130 and 131 are used as communication modules for an interface (memory interface) that accesses the memory unit 1203. Note that the communication method for handling the PTP operation and the communication method for accessing the memory unit 1203 may be different. For example, when the memory card 120 is used as a normal recording medium, an SD memory mode communication method can be used, and an SDIO mode communication method can be used for delivery of PTP operations.

そして、メモリカード120に設定されたApplicationモードに応じて、PTP Responderモジュール110,125の一方が、メモリカード120が有するPTP-IPモジュール123、TCP/IPモジュール122およびWireless LANモジュール121を用いて外部装置と無線通信する。また、各Applicationモードにおける動作を実現するための、Card I/Oモジュールにおける通信コマンドを新たに定義する。この通信コマンドは、
・DSC100からメモリカード120にApplicationモードを設定するコマンド、
・DSC100からメモリカード120に対し、メモリカード120が外部装置から受信したPTPオペレーションやデータの転送を要求するコマンド、
・DSC100内のモジュールからのPTPオペレーションやデータの、外部装置への転送を要求するコマンド、
・メモリカード120が外部装置から受信したデータをメモリ部1203に書き込むように要求するコマンド、
・メモリカード120のメモリ部1203に保存されたデータを外部装置に対して送信するように要求するコマンド、
などである。
Then, according to the Application mode set in the memory card 120, one of the PTP Responder modules 110 and 125 is externally connected using the PTP-IP module 123, the TCP / IP module 122, and the Wireless LAN module 121 that the memory card 120 has. Wirelessly communicate with the device. In addition, a communication command in the Card I / O module for realizing the operation in each Application mode is newly defined. This communication command is
A command for setting the Application mode from the DSC 100 to the memory card 120,
A command that requests the memory card 120 to transfer the PTP operation or data received from the external device to the memory card 120 from the DSC 100;
A command for requesting transfer of PTP operation or data from a module in the DSC 100 to an external device,
A command for requesting the memory card 120 to write the data received from the external device to the memory unit 1203;
A command for requesting data stored in the memory unit 1203 of the memory card 120 to be transmitted to an external device;
Etc.

なお、PTPでは、メモリ部1203に記録されているオブジェクト(データファイル、ディレクトリ)の各々を指定するためにObjectHandleを用いる。従って、メモリ部1203のファイル構成に応じてオブジェクトごとにObjectHandleを割り当てる必要がある。PTP Responderモジュール110,125は、各オブジェクトにObjectHandleを割り当て、ObjectHandleの集合体であるObjectHandleArrayの作成、管理を行う。また、PTP Responderモジュール110,125は、メモリカードが複数存在する場合などには、StorageID等の発行、管理も行う。   In PTP, ObjectHandle is used to designate each object (data file, directory) recorded in the memory unit 1203. Therefore, it is necessary to allocate ObjectHandle for each object according to the file configuration of the memory unit 1203. The PTP Responder modules 110 and 125 assign an ObjectHandle to each object, and create and manage an ObjectHandleArray that is a collection of ObjectHandle. Further, the PTP Responder modules 110 and 125 also issue and manage StorageID and the like when there are a plurality of memory cards.

また、前述したとおり制御部101は、通常のメモリカードと同様、ファイルのフルパスを指定してメモリカード120にデータを読み書きすることもできる。例えば、PTPオペレーションによりObjectHandleで指定されたオブジェクトの読み書きを要求された場合、制御部101はObjectArrayを参照することで、メモリカード120に対してディレクトリパスを用いたアクセスが可能である。ここで、ディレクトリパスはルートディレクトリからのパス(フルパス又は絶対パス)である。   As described above, the control unit 101 can also read / write data from / to the memory card 120 by designating the full path of the file, as in the case of a normal memory card. For example, when reading / writing of an object specified by ObjectHandle is requested by a PTP operation, the control unit 101 can access the memory card 120 using a directory path by referring to the ObjectArray. Here, the directory path is a path from the root directory (full path or absolute path).

DPSモジュール111とその上位のPictBridge Application 112は、DSC100からプリンタに直接(PCを介在せずに)プリントを実行させるダイレクトプリントの規格であるPictBridgeに準拠した動作を実現するためのソフトウェアモジュールである。
Applicationモジュール113は、上述した各Applicationモードに応じた動作を実現する。
DLNA Applicationモジュール114及びDLNAモジュール129は、DLNAに準拠した動作を提供する。DLNAはPTPを用いないため、本実施形態では説明を省略する。
The DPS module 111 and its higher-level PictBridge Application 112 are software modules for realizing an operation compliant with PictBridge, which is a direct printing standard for causing the DSC 100 to execute printing directly (without a PC).
The Application module 113 realizes an operation corresponding to each Application mode described above.
The DLNA Application module 114 and the DLNA module 129 provide operations compliant with DLNA. Since DLNA does not use PTP, description thereof is omitted in this embodiment.

メモリカード120において、Wireless LANモジュール121はIEEE 802.11xに準拠した物理層を提供する。また、TCP/IPモジュール122は、トランスポート層を提供する。PTP-IPモジュール123は、PTPをTCP上で通信するためのモジュールである。   In the memory card 120, the Wireless LAN module 121 provides a physical layer compliant with IEEE 802.11x. The TCP / IP module 122 provides a transport layer. The PTP-IP module 123 is a module for communicating PTP over TCP.

Discovery for DPSモジュール127は、DPSモードにおけるディスカバリを行うためのモジュールであり、本実施形態ではUPnP(Universal Plug and Play)を用いてディスカバリする。   The Discovery for DPS module 127 is a module for performing discovery in the DPS mode. In this embodiment, discovery is performed using UPnP (Universal Plug and Play).

Discovery for PTP-IPモジュール123は、Pullモード及びPath Throughモードにおけるディスカバリ処理におけるアドバタイズなどを行うためのモジュールであり、本実施形態ではUPnP(Universal Plug and Play)並びにBonjourの両方のプロトコルでディスカバリする。
以下の説明では、モジュール自体が処理の主体・客体となるような記載が含まれるが、実際には対応するモジュールを用いて制御部101、カードコントローラ1201が処理を実行する。
The Discovery for PTP-IP module 123 is a module for performing advertisement in discovery processing in the Pull mode and Path Through mode. In this embodiment, discovery is performed using both UPnP (Universal Plug and Play) and Bonjour protocols.
The following description includes a description in which the module itself is the subject or object of processing, but actually, the control unit 101 and the card controller 1201 execute processing using the corresponding module.

以下、各ApplicationモードにおけるDSC100及びメモリカード120の動作について説明する。
具体的な動作を説明する前に、メモリカード120に設定するApplicationモードの設定方法について説明する。図7は、DSC100においてメモリカード120のApplicationモードを設定するためのGUI画面の例を示す図である。制御部101は、操作部104からの指示に応じて図7の設定画面を表示部105に表示させる。ユーザは4つの選択肢から接続を希望する機器の種類を操作部104に含まれる例えば方向キーを用いて選択状態とし、決定ボタンを押下することで接続先機器の種類を設定することができる。制御部101は操作部104の操作内容とGUI画面の内容から指示の内容を検出し、指示された動作を実行する。
Hereinafter, operations of the DSC 100 and the memory card 120 in each Application mode will be described.
Before describing the specific operation, a method for setting the Application mode set in the memory card 120 will be described. FIG. 7 is a diagram illustrating an example of a GUI screen for setting the application mode of the memory card 120 in the DSC 100. The control unit 101 causes the display unit 105 to display the setting screen illustrated in FIG. 7 in response to an instruction from the operation unit 104. The user can select the type of device desired to be connected from the four options by using, for example, a direction key included in the operation unit 104, and press the enter button to set the type of the connection destination device. The control unit 101 detects the content of the instruction from the operation content of the operation unit 104 and the content of the GUI screen, and executes the instructed operation.

例えば図7に示す例では、接続先機器としてPCが選択状態にあり、この状態で決定ボタンが押下されると制御部101はメモリカード120をPullモードに設定する。決定ボタンの押下時に他の選択肢が選択状態にあれば、それぞれに対応したApplicationモードを制御部101はメモリカード120に設定する。後述するように、ApplicationモードはCard I/Oモジュール130,131を通じて通信されるコマンドにより、制御部101からカードコントローラ1201に通知され、カードコントローラ1201が通知されたモードに応じて動作する。   For example, in the example illustrated in FIG. 7, the PC is selected as the connection destination device, and when the determination button is pressed in this state, the control unit 101 sets the memory card 120 to the pull mode. If other options are selected when the enter button is pressed, the control unit 101 sets the corresponding application mode in the memory card 120. As will be described later, the application mode is notified from the control unit 101 to the card controller 1201 by a command communicated through the card I / O modules 130 and 131, and the card controller 1201 operates according to the notified mode.

なお、Applicationモードの設定方法は図7に示す例に限定されない。例えば、まずDLNAを用いるかPTPを用いるかをユーザに選択させるメニューを用意し、PTPを用いることが選択された場合にPullモード、DPSモード、Path Throughモードを選択させるメニューを表示してもよい。   The application mode setting method is not limited to the example shown in FIG. For example, first, a menu for allowing the user to select whether to use DLNA or PTP may be prepared, and when using PTP is selected, a menu for selecting the Pull mode, DPS mode, and Path Through mode may be displayed. .

このように、本実施形態によれば、ユーザが接続を希望する機器の種類に応じて、DSC100の制御部101がメモリカード120のカードコントローラ1201にApplicationモードの設定を行う。そして、DSC100及びメモリカード120は設定したApplicationモードに従った動作を行う。   As described above, according to the present embodiment, the control unit 101 of the DSC 100 sets the application mode in the card controller 1201 of the memory card 120 according to the type of device that the user desires to connect. Then, the DSC 100 and the memory card 120 perform an operation according to the set Application mode.

(Pullモードの動作)
図8は、PullモードにおけるDSC100、メモリカード120、外部機器の一例としてのPC200の動作を示すシーケンス図である。なお、特に断らない限り、図8に示すDSC100とメモリカード120との間の通信はCard I/Oモジュール130,131の間でやり取りされるコマンドを示す。このPullモードでは、メモリカード120側のPTP Responderモジュール125がPTP-IPモジュール123と通信することにより、外部機器内のPTP Initiatorとの通信を実現する。すなわち、図6の矢印140に示すモジュール間通信が行われる。なお、以下の説明ではPC200がPTPにおけるInitiatorとして動作するものとする。PC200との通信はPTP-IPモジュール123が行う。
(Pull mode operation)
FIG. 8 is a sequence diagram showing operations of the DSC 100, the memory card 120, and the PC 200 as an example of an external device in the pull mode. Unless otherwise specified, communication between the DSC 100 and the memory card 120 shown in FIG. 8 indicates commands exchanged between the Card I / O modules 130 and 131. In this Pull mode, the PTP Responder module 125 on the memory card 120 side communicates with the PTP-IP module 123, thereby realizing communication with the PTP Initiator in the external device. That is, inter-module communication indicated by the arrow 140 in FIG. 6 is performed. In the following description, it is assumed that the PC 200 operates as an initiator in PTP. Communication with the PC 200 is performed by the PTP-IP module 123.

ここでは、メモリカード120が装着されたDSC100の電源がONであり、メモリカード120は無線通信部1202によって通信可能なネットワークを探索し、通信可能なネットワークがあれば自動接続するものとする。そして、図8のS801において、メモリカード120はPC200と同じネットワークに接続したものとして説明する。   Here, it is assumed that the DSC 100 to which the memory card 120 is mounted is turned on, the memory card 120 searches for a network that can be communicated by the wireless communication unit 1202, and automatically connects if there is a communicable network. Then, in S801 of FIG. 8, the memory card 120 is described as being connected to the same network as the PC 200.

メモリカード120のカードコントローラ1201は、無線通信部1202がネットワーク接続に成功すると、それをホスト機器であるDSC100の制御部101に通知する。   When the wireless communication unit 1202 succeeds in network connection, the card controller 1201 of the memory card 120 notifies the control unit 101 of the DSC 100 that is the host device.

S802:ネットワークに接続されたことが通知されると、DSC100の制御部101は、PTP_SetDeviceInformationコマンドを用いて、PTPのDevice Discoveryにおいてネットワークにアドバタイズすべき情報や、PTPオペレーションでInitiatorに通知する情報をメモリカード120に送信する。PTP_SetDeviceInformationコマンドでは、装置の名前や型番、製造者、UUID (Universally Unique Identifier)、シリアル番号などを通知することができる。通知する情報が複数ある場合、制御部101は情報ごとにPTP_SetDeviceInformationコマンドを繰り返し送信する。
なお、カードコントローラ1201はDSC100からPTP_SetDeviceInformationコマンドによる情報を受け取らない場合においても、カードコントローラ1201内部に保持される初期値を用いて、PTPのDevice Discovery等を行うことも可能である。
S802: When notified of the connection to the network, the control unit 101 of the DSC 100 uses the PTP_SetDeviceInformation command to store information to be advertised to the network in PTP Device Discovery and information to be notified to the initiator through the PTP operation. Send to card 120. The PTP_SetDeviceInformation command can notify the device name, model number, manufacturer, UUID (Universally Unique Identifier), serial number, and the like. When there are a plurality of pieces of information to be notified, the control unit 101 repeatedly transmits a PTP_SetDeviceInformation command for each piece of information.
Even when the card controller 1201 does not receive information by the PTP_SetDeviceInformation command from the DSC 100, it is also possible to perform PTP Device Discovery using the initial value held in the card controller 1201.

カードコントローラ1201は、メモリカード120のApplicationモードが設定される前に受信したPTP_SetDeviceInformationコマンドで通知された情報を、カードコントローラ1201内のメモリに保存されたDeviceInfo DataSetに反映する。   The card controller 1201 reflects the information notified by the PTP_SetDeviceInformation command received before the application mode of the memory card 120 is set in the DeviceInfo DataSet stored in the memory in the card controller 1201.

S803:DSC100の制御部101は、Device Discoveryに必要な情報をメモリカード120に通知し終わると、PTP_SwitchModeコマンドを発行して、メモリカード120のApplicationモードを設定する。ここでは、PTP_SwitchMode(pull)を発行し、メモリカード120にPullモードを設定している。   S803: When the control unit 101 of the DSC 100 finishes notifying the memory card 120 of information necessary for Device Discovery, it issues a PTP_SwitchMode command to set the application mode of the memory card 120. Here, PTP_SwitchMode (pull) is issued, and the pull mode is set in the memory card 120.

なお、Pullモードはメモリカード120と外部機器(PC200)との通信にDSC100が原則として関与しないモードである。例えばPullモードにおいてカードコントローラ1201は、予めデータ転送先として登録されているPC200やインターネット上のサーバと接続可能になると、メモリ部1203内のデータを自動転送するように設定されていて良い。従って、Pullモードのメモリカード120については、DSC100からメモリカード120のメモリ部1203の内容を変更する操作を禁止する。具体的には、メモリ部1203にDSC100からアクセスするためのメモリインタフェースの使用を禁止する。   The Pull mode is a mode in which the DSC 100 is not involved in principle in communication between the memory card 120 and the external device (PC 200). For example, in the pull mode, the card controller 1201 may be set to automatically transfer data in the memory unit 1203 when it can be connected to a PC 200 or a server on the Internet registered in advance as a data transfer destination. Therefore, for the memory card 120 in the pull mode, an operation for changing the contents of the memory unit 1203 of the memory card 120 from the DSC 100 is prohibited. Specifically, the use of a memory interface for accessing the memory unit 1203 from the DSC 100 is prohibited.

S804:カードコントローラ1201は、Discovery for PTP-IPモジュール123及び、無線通信部1202を用い、接続しているネットワーク上でDevice Discovery (Advertise)を行う。ここでは、カードコントローラ1201は、S802でDSC100から受信したデバイス情報をネットワーク上にアドバタイズする。   S804: The card controller 1201 performs Device Discovery (Advertise) on the connected network using the Discovery for PTP-IP module 123 and the wireless communication unit 1202. Here, the card controller 1201 advertises the device information received from the DSC 100 in S802 on the network.

S805:カードコントローラ1201は、PTPにおけるInitiatorとして動作するPC200から接続要求を受けると、PTP Responderモジュール125とPC200側のPTP InitiatorモジュールとのPTP-IPコネクションを確立する。   S805: Upon receiving a connection request from the PC 200 that operates as an initiator in PTP, the card controller 1201 establishes a PTP-IP connection between the PTP Responder module 125 and the PTP initiator module on the PC 200 side.

S806:カードコントローラ1201は、外部機器(PC200)とのPTP-IPコネクションが確立したことを、割り込み信号ISR(PTPIP Connected)を用いてDSC100の制御部101に通知する。制御部101は、この時点でメモリインタフェースの使用が禁止されていなければ、禁止する。従って、撮影操作や画像データの削除動作等は禁止される。あるいは内蔵メモリに記録可能な範囲での撮影操作は許可してもよい。   S806: The card controller 1201 notifies the control unit 101 of the DSC 100 that the PTP-IP connection with the external device (PC 200) has been established using an interrupt signal ISR (PTPIP Connected). If the use of the memory interface is not prohibited at this time, the control unit 101 prohibits the use. Accordingly, shooting operations, image data deletion operations, and the like are prohibited. Alternatively, a shooting operation within a range that can be recorded in the built-in memory may be permitted.

S807:その後、メモリカード120と外部機器(PC200)とは、Responderであるメモリカード120からデータを転送するためのPTPセッションを開始する。例えば、メモリカードの情報を要求するGetDeviceInfoオペレーションに引き続くセッション開始のためのOpenSessionオペレーションでセッションが開始される。その後、メモリカード120で有効なStorageIDを要求するGetStorageIDsオペレーション、StorageIDで特定したメディアに含まれるオブジェクトの数を要求するGetNumObjectsオペレーションなどが発行される。PTPを用いたメモリカード120からのデータ転送手順は公知であるため、詳細についての説明は省略する。   S807: Thereafter, the memory card 120 and the external device (PC 200) start a PTP session for transferring data from the memory card 120 as a responder. For example, a session is started by an OpenSession operation for starting a session following a GetDeviceInfo operation that requests information on a memory card. Thereafter, a GetStorageIDs operation for requesting a valid StorageID in the memory card 120, a GetNumObjects operation for requesting the number of objects included in the medium specified by the StorageID, and the like are issued. Since the data transfer procedure from the memory card 120 using PTP is publicly known, detailed description thereof is omitted.

S808:セッションが終了すると、カードコントローラ1201は、PTP Responderモジュール125と、PC200のPTP InitiatorモジュールとのPTP-IPコネクションを切断する。   S808: When the session ends, the card controller 1201 disconnects the PTP-IP connection between the PTP Responder module 125 and the PTP Initiator module of the PC 200.

S809:カードコントローラ1201は、PTP-IPコネクションの切断を、割り込み信号ISR(PTPIP Disconnected)によって制御部101に通知する。制御部101はこの通知を受けると、メモリインタフェースの使用禁止を解除する。   S809: The card controller 1201 notifies the control unit 101 of disconnection of the PTP-IP connection by an interrupt signal ISR (PTPIP Disconnected). Upon receiving this notification, the control unit 101 cancels the prohibition of use of the memory interface.

S810:制御部101は、メモリカード120の動作モードをNo Applicationモードに戻すため、PTP_SwitchMode(exit)コマンドを発行する。カードコントローラ1201は、このコマンドに従い、メモリカード120をNo Applicationモードとし、No Applicationモードにおける動作を開始する。なお、メモリインタフェースの使用禁止の解除はS809の後でなく、S810の後でも良い。   S810: The control unit 101 issues a PTP_SwitchMode (exit) command to return the operation mode of the memory card 120 to the No Application mode. In accordance with this command, the card controller 1201 places the memory card 120 in the No Application mode and starts operation in the No Application mode. Note that the prohibition of use of the memory interface may be canceled after S810 instead of S809.

S811:カードコントローラ1201は、例えばDSC100の電源がOFFされたり、無線通信機能を無効化する指示がなされたりした場合など、必要に応じてネットワーク接続を終了することができる。   S811: The card controller 1201 can terminate the network connection as necessary, for example, when the power of the DSC 100 is turned off or an instruction to invalidate the wireless communication function is given.

(Path Throughモードの動作)
次に、Path ThroughモードにおけるDSC100、メモリカード120、外部機器の一例としてのPC200の動作を説明する。Path Throughモードは、DSC100と外部機器との間のPTPセッションを実現するモードである。このPath Throughモードでは、DSC100側のPTP Responderモジュール110がPTP-IPモジュール123とCard I/Oモジュール130,131を介して通信することにより、InitiatorであるPC200との通信を実現する。すなわち、図6の矢印141に示すモジュール間通信が行われる。PC200との通信はPTP-IPモジュール123が行う。
(Operation in Path Through mode)
Next, operations of the DSC 100, the memory card 120, and the PC 200 as an example of an external device in the Path Through mode will be described. The Path Through mode is a mode for realizing a PTP session between the DSC 100 and an external device. In this Path Through mode, the PTP Responder module 110 on the DSC 100 side communicates with the PTP-IP module 123 via the Card I / O modules 130 and 131, thereby realizing communication with the PC 200 as an initiator. That is, inter-module communication indicated by an arrow 141 in FIG. Communication with the PC 200 is performed by the PTP-IP module 123.

図9は、Path ThroughモードによるPTPセッションの開始後までのDSC100、メモリカード120、外部機器の一例としてのPC200の動作を示すシーケンス図である。なお、特に断らない限り図9に示すDSC100とメモリカード120との間の通信はCard I/Oモジュール130,131の間でやり取りされるコマンドを示す。なお、DSC100がメモリカード120からPTPオペレーションに関するコマンドを受信した場合、Card I/Oモジュール130はコマンドをPTPオペレーションとしてPTP Responderモジュール110に渡すこととする。図8と同じ動作については参照数字を共通とし、説明を省略する。   FIG. 9 is a sequence diagram illustrating operations of the DSC 100, the memory card 120, and the PC 200 as an example of an external device until after the start of the PTP session in the Path Through mode. Unless otherwise specified, the communication between the DSC 100 and the memory card 120 shown in FIG. 9 indicates a command exchanged between the Card I / O modules 130 and 131. When the DSC 100 receives a command related to the PTP operation from the memory card 120, the Card I / O module 130 passes the command to the PTP Responder module 110 as a PTP operation. The same operations as those in FIG. 8 have the same reference numerals, and the description thereof is omitted.

PTP-IPコネクションの確立が割り込み信号ISR(PTP IP Connected)でDSC100の制御部101に通知されるまでの手順は、S901においてPTP_SwitchModeコマンドでPath Troughモードが設定される点を除きPullモードと同様である。なお、S802におけるPTP_SetDeviceInformationコマンドによるディスカバリ情報の設定は、既に行われている場合には繰り返し行う必要はない。   The procedure until the establishment of the PTP-IP connection is notified to the control unit 101 of the DSC 100 by the interrupt signal ISR (PTP IP Connected) is the same as the Pull mode except that the Path Trough mode is set by the PTP_SwitchMode command in S901. is there. Note that the setting of discovery information by the PTP_SetDeviceInformation command in S802 need not be repeated if it has already been performed.

先に述べたように、Path Throughモードでは、メモリカード120が外部機器(PC200)とDSC100とのPTP通信における中継機器のように機能する。そのため、PC200(のPTP Initiatorモジュール)から見た場合、Pullモードの場合と変わりがない。しかし、Path ThroughモードにおいてPTP通信を行うPTP Responderモジュールはメモリカード120内のPTP Responderモジュール125ではなく、DSC100内のPTP Responderモジュール110である。そのため、カードコントローラ1201はPTP-IPモジュール123が、PTP Responderモジュール125ではなく、DSC100内のPTP Responderモジュール110とPTP通信するように切り替える。   As described above, in the Path Through mode, the memory card 120 functions as a relay device in PTP communication between the external device (PC 200) and the DSC 100. Therefore, when viewed from the PC 200 (its PTP Initiator module), it is the same as in the pull mode. However, the PTP Responder module that performs PTP communication in the Path Through mode is not the PTP Responder module 125 in the memory card 120 but the PTP Responder module 110 in the DSC 100. Therefore, the card controller 1201 switches so that the PTP-IP module 123 performs PTP communication with the PTP Responder module 110 in the DSC 100 instead of the PTP Responder module 125.

また、Path Throughモードが設定された場合、PTP_SwitchMode(Exit)を受信するまで、カードコントローラ1201はDSC100からのコマンドや指示があった場合を除き、メモリ部1203へのアクセスを禁止する。   When the Path Through mode is set, the card controller 1201 prohibits access to the memory unit 1203 unless a command or instruction is received from the DSC 100 until PTP_SwitchMode (Exit) is received.

まず、Path Throughモードでの動作を、GetDeviceInfoオペレーションについて説明する。
S902:カードコントローラ1201は、PC200のPTP Initiatorモジュールからオペレーションを受信したことを、割り込み信号ISR(Operation)により制御部101に通知する。ここでは、受信したオペレーションの種類や内容は伝えられず、オペレーションを受信したことだけが通知される。
First, the operation in the Path Through mode will be described for the GetDeviceInfo operation.
S902: The card controller 1201 notifies the control unit 101 that an operation has been received from the PTP Initiator module of the PC 200 using an interrupt signal ISR (Operation). Here, the type and contents of the received operation are not communicated, and only the operation is received is notified.

S903:制御部101は、通知に応答して、オペレーションの内容を取得するためにPTP_GetInfomationコマンドを発行する。
S904:カードコントローラ1201は、受信したオペレーション(GetDeviceInfo)を制御部101に送信する。これにより、DSC100のPTP Responderモジュール110がPC200のPTP InitiatorモジュールからのPTPオペレーションを受信する。
S903: In response to the notification, the control unit 101 issues a PTP_GetInfomation command to acquire the contents of the operation.
S904: The card controller 1201 transmits the received operation (GetDeviceInfo) to the control unit 101. As a result, the PTP Responder module 110 of the DSC 100 receives the PTP operation from the PTP Initiator module of the PC 200.

S905:制御部101は、GetDeviceInfoオペレーションに対して応答すべきDeviceInfoをPTP_SendDataコマンドを用いてカードコントローラ1201に送信する。これにより、メモリカード120内のPTP-IPモジュール123を介してPC200へDeviceInfoが送信される。   S905: The control unit 101 transmits DeviceInfo to be responded to the GetDeviceInfo operation to the card controller 1201 using the PTP_SendData command. As a result, DeviceInfo is transmitted to the PC 200 via the PTP-IP module 123 in the memory card 120.

S906:DeviceInfoの送信完了をカードコントローラ1201から制御部101に通知する。
S907:制御部101は、ResponseをPTP Initiatorモジュールに送信するため、PTP_SendDataコマンドを用いてカードコントローラ1201にResponseの情報を送信する。
S908:PTP-IPモジュール123からPTP InitiatorモジュールにResponseが送信され、送信完了をカードコントローラ1201から制御部101に通知する。
S906: Notifying the control unit 101 of the completion of DeviceInfo transmission from the card controller 1201.
S907: The control unit 101 transmits Response information to the card controller 1201 using a PTP_SendData command in order to transmit Response to the PTP Initiator module.
S908: Response is transmitted from the PTP-IP module 123 to the PTP Initiator module, and the completion of transmission is notified from the card controller 1201 to the control unit 101.

なお、S906〜S908において送信されるResponseは、PTPオペレーションを受信した場合に返送することが決められている情報であり、エラーコードやOKといった処理結果がInitiator側に通知される。   Note that Response transmitted in S906 to S908 is information that is determined to be returned when a PTP operation is received, and a processing result such as an error code or OK is notified to the initiator side.

S910及びS911:PC200からのOpenSessionオペレーション、GetStorageIDオペレーションについても、GetDeviceInfoオペレーションを受信した場合と同様にして、制御部101から応答がなされる。   S910 and S911: For the OpenSession operation and the GetStorageID operation from the PC 200, a response is made from the control unit 101 in the same manner as when the GetDeviceInfo operation is received.

以下、データの転送要求が行われるまで必要なPTPオペレーションの処理が行われる。図10は、Path ThroughモードによるPTPセッションの開始後、外部機器からオブジェクトの送受信要求があった場合ならびにイベント発生時のDSC100、メモリカード120、外部機器の一例としてのPC200の動作を示すシーケンス図である。   Thereafter, necessary PTP operation processing is performed until a data transfer request is made. FIG. 10 is a sequence diagram showing operations of the DSC 100, the memory card 120, and the PC 200 as an example of the external device when an object transmission / reception request is issued from the external device after the start of the PTP session in the Path Through mode and when an event occurs. is there.

まず、オブジェクト送信要求に対する処理を説明する。
S1001:カードコントローラ1201が、PTP-IPモジュール123を通じてPC200からGetObjectオペレーションを受信する。
S1002:S902〜S904と同様にして、制御部101がカードコントローラ1201からGetObjectオペレーションを受信する。
First, processing for an object transmission request will be described.
S1001: The card controller 1201 receives a GetObject operation from the PC 200 through the PTP-IP module 123.
S1002: Similar to S902 to S904, the control unit 101 receives a GetObject operation from the card controller 1201.

S1003:制御部101は、メモリインタフェースを通じ、PTPを用いずに、GetObjectオペレーションのObjectHandleで指定されたオブジェクトを、ディレクトリパスを指定してメモリ部1203から読み出す。なお、この読み出しにはPTP Responderモジュール110は用いず、いわゆる通常のメモリカードからの処理が行われる。上述の通り、ObjectHandleArrayを参照することで、ObjectHandleに対応するディレクトリパスを知ることができる。   S1003: The control unit 101 reads the object specified by the ObjectHandle of the GetObject operation from the memory unit 1203 via the memory interface, specifying the directory path, without using PTP. Note that this reading does not use the PTP Responder module 110, but performs processing from a so-called normal memory card. As described above, the directory path corresponding to ObjectHandle can be known by referring to ObjectHandleArray.

S1004:制御部101は、読み出したオブジェクトを、PTP_SendDataコマンドを用いてカードコントローラ1201に送信する。
S1005:カードコントローラ1201は、PTP-IPモジュール123を用いて、GetObjectオペレーションにより要求されたオブジェクトをPC200のPTP Initiatorモジュールへ送信する。
S1006,S1007:GetObjectオペレーションに対するResponseCodeが、カードコントローラ1201及びPTP-IPモジュール123を介して、制御部101からPC200のPTP Initiatorモジュールへ送信される。
S1004: The control unit 101 transmits the read object to the card controller 1201 using the PTP_SendData command.
S1005: The card controller 1201 uses the PTP-IP module 123 to transmit the object requested by the GetObject operation to the PTP Initiator module of the PC 200.
S1006, S1007: ResponseCode for the GetObject operation is transmitted from the control unit 101 to the PTP Initiator module of the PC 200 via the card controller 1201 and the PTP-IP module 123.

次に、オブジェクト受信要求について説明する。
S1011:メモリカード120のPTP-IPモジュール123が、PC200からSendObjectオペレーションを受信する。
S1012:S902〜S904と同様にして、制御部101がカードコントローラ1201からSendObjectオペレーションを受信する。
Next, the object reception request will be described.
S1011: The PTP-IP module 123 of the memory card 120 receives a SendObject operation from the PC 200.
S 1012: In the same manner as S 902 to S 904, the control unit 101 receives a SendObject operation from the card controller 1201.

S1013:カードコントローラ1201は、PTP-IPモジュール123を通じて、PC200からオブジェクトを受信する。受信したオブジェクトはメモリカード120内(例えばカードコントローラ1201内のRAM)にバッファリングする。   S 1013: The card controller 1201 receives an object from the PC 200 through the PTP-IP module 123. The received object is buffered in the memory card 120 (for example, RAM in the card controller 1201).

S1014:カードコントローラ1201は割り込み信号ISR(Data)により、オブジェクトを受信したことを制御部101に通知する。制御部101は、PTP_ReceiveDataコマンドを発行し、カードコントローラ1201からオブジェクトを受信する。   S1014: The card controller 1201 notifies the control unit 101 that the object has been received by an interrupt signal ISR (Data). The control unit 101 issues a PTP_ReceiveData command and receives an object from the card controller 1201.

S1015:制御部101は、Card I/Oモジュール130,131を通じ、受信したオブジェクトをディレクトリパス(フルパス又は絶対パス)を指定してメモリ部1203に書き込む。なお、この書き込みにはPTP Responder110は用いず、いわゆる通常のメモリカードへの書き込み処理が行われる。なお、オブジェクトを書き込むディレクトリはSendObjectオペレーションに先立つSendObjectInfoオペレーションでPC200側から指定されているか、もしくはPTP Responderモジュール110がSendObjectInfoオペレーションを受信した際に決定する。書き込みするパス名(ファイル名含む)は例えば、DCFに従って決定することができる。   S1015: The control unit 101 writes the received object in the memory unit 1203 by specifying a directory path (full path or absolute path) through the Card I / O modules 130 and 131. Note that the PTP Responder 110 is not used for this writing, and a so-called normal memory card writing process is performed. The directory in which the object is written is determined from the PC 200 side in the SendObjectInfo operation prior to the SendObject operation, or is determined when the PTP Responder module 110 receives the SendObjectInfo operation. The path name (including the file name) to be written can be determined according to the DCF, for example.

S1016,S1017:SendObjectオペレーションに対するResponseCodeが、カードコントローラ1201及びPTP-IPモジュール123を介して、制御部101からPC200のPTP Initiatorモジュールへ送信される。   S1016, S1017: ResponseCode for the SendObject operation is transmitted from the control unit 101 to the PTP Initiator module of the PC 200 via the card controller 1201 and the PTP-IP module 123.

次に、イベントパケットの送信時の動作について説明する。イベントパケットは、ResponderからInitiatorにデータ(PTPパケット)を送信したい場合(例えばエラーを知らせたい場合など)に、Initiatorにデータ取得要求(GetObject)の発行を依頼するパケットである。   Next, an operation when an event packet is transmitted will be described. The event packet is a packet that requests the initiator to issue a data acquisition request (GetObject) when it is desired to transmit data (PTP packet) from the Responder to the initiator (for example, when an error is to be notified).

S1021:制御部101は、PTP_SendDataコマンドを用いて、パケット種別をイベントパケットとして、ObjectHandleを送信する。
S1022:カードコントローラ1201は受信したデータがイベントパケットであることを認識し、受信したObjectHandleを含んだRequestObjectTransferイベントをPTP-IPモジュール123を通じてPC200のPTP Initiatorモジュールに送信する。
その後、Initiator側から、RequestObjectTransferイベントに含まれたObjectHandleを指定したGetObjectオペレーションが発行される。
S1021: The control unit 101 transmits an ObjectHandle using the PTP_SendData command and the packet type as an event packet.
S1022: The card controller 1201 recognizes that the received data is an event packet, and transmits a RequestObjectTransfer event including the received ObjectHandle to the PTP Initiator module of the PC 200 through the PTP-IP module 123.
After that, a GetObject operation specifying the ObjectHandle included in the RequestObjectTransfer event is issued from the initiator side.

図10の手順では、メモリカード120内のデータをPC200に送信する場合、メモリカード120からPTPを用いずにDSC100にデータを読み出し、DSC100からメモリカード120にPTPオペレーションでデータを送信する必要があった。また、PC200から受信したデータをメモリカード120に書き込む場合も、メモリカード120にバッファリングされているデータをPTPオペレーションでDSC100が取得し、PTPを用いずにメモリカード120に書き込む必要があった。この、メモリカードとDSC間でのデータの往復を省略する変形例について、図11に示すシーケンス図を用いて説明する。図11において、図10と同じ手順については参照数字を共通とし、説明を省略する。   In the procedure of FIG. 10, when data in the memory card 120 is transmitted to the PC 200, it is necessary to read data from the memory card 120 to the DSC 100 without using PTP, and to transmit data from the DSC 100 to the memory card 120 by PTP operation. It was. In addition, when data received from the PC 200 is written to the memory card 120, the DSC 100 needs to acquire the data buffered in the memory card 120 by the PTP operation and write it to the memory card 120 without using PTP. A modified example in which the round trip of data between the memory card and the DSC is omitted will be described with reference to the sequence diagram shown in FIG. In FIG. 11, the same steps as those in FIG.

まず、GetObjectオペレーションに対する動作について説明する。
S1101:制御部101はS1002のやりとりでGetObjectオペレーションを受信する。制御部101は、GetObjectオペレーションで指定されたObjectHandleに対応するディレクトリパス(フルパス又は絶対パス)をPTP_SendFileコマンドで送信する。
First, the operation for the GetObject operation will be described.
S1101: The control unit 101 receives a GetObject operation in the exchange of S1002. The control unit 101 transmits the directory path (full path or absolute path) corresponding to the ObjectHandle specified by the GetObject operation using the PTP_SendFile command.

S1005:カードコントローラ1201は、PTP_SendFileコマンドで指定されたディレクトリパスに対応するオブジェクトをメモリ部1203から読み出す。そして、カードコントローラ1201は、PTP-IPモジュール123を通じて、読み出したオブジェクトをPC200のPTP_Initiatorモジュールに送信する。   S1005: The card controller 1201 reads an object corresponding to the directory path specified by the PTP_SendFile command from the memory unit 1203. Then, the card controller 1201 transmits the read object to the PTP_Initiator module of the PC 200 through the PTP-IP module 123.

S1102:制御部101は、ResponseCodeを作成するため、Read PTP Progerssコマンドを送信し、GetObjectオペレーションで要求されたオブジェクトの送信結果を取得する。カードコントローラ1201は、PTP-IPモジュール123を通じて送信結果を返送する。   S1102: The control unit 101 transmits a Read PTP Progerss command to create a ResponseCode, and acquires the transmission result of the object requested by the GetObject operation. The card controller 1201 returns the transmission result through the PTP-IP module 123.

S1006:制御部101は、GetObjectオペレーションで要求されたオブジェクトの送信結果に基づいてResponseCodeを作成し、PTP_SendDataコマンドでカードコントローラ1201に送信する。   S1006: The control unit 101 creates a ResponseCode based on the transmission result of the object requested by the GetObject operation, and transmits it to the card controller 1201 using the PTP_SendData command.

S1007:カードコントローラ1201は、PTP_SendDataコマンドで送信されたデータ(ResponseCode)を、PTP-IPモジュール123を通じてPC200のPTP_Initiatorモジュールに送信する。   S1007: The card controller 1201 transmits the data (ResponseCode) transmitted by the PTP_SendData command to the PTP_Initiator module of the PC 200 through the PTP-IP module 123.

次に、SendObjectオペレーションに対する動作について説明する。
S1101:制御部101はS1012のやりとりでSendObjectオペレーションを受信する。
S1013:カードコントローラ1201が、PTP-IPモジュール123を通じてPC200からオブジェクトを受信する。受信したオブジェクトはメモリカード120内(例えばカードコントローラ1201内のRAM)にバッファリングする。
Next, the operation for the SendObject operation will be described.
S1101: The control unit 101 receives a SendObject operation in the exchange of S1012.
S 1013: The card controller 1201 receives an object from the PC 200 through the PTP-IP module 123. The received object is buffered in the memory card 120 (for example, RAM in the card controller 1201).

S1111:カードコントローラ1201は割り込み信号ISR(Data)により、オブジェクトを受信したことを制御部101に通知する。
S1112:制御部101は、受信したオブジェクトの書き込み場所及びファイル名を示したディレクトリパス(フルパス又は絶対パス)をPTP_ReceiveFileコマンドでカードコントローラ1201に送信する。カードコントローラ1201は、バッファリングされたオブジェクトを、メモリ部1203内の、PTP_ReceiveFileコマンドで指定されたディレクトリパスに書き込む。
S1111: The card controller 1201 notifies the control unit 101 that an object has been received by an interrupt signal ISR (Data).
S1112: The control unit 101 transmits the directory path (full path or absolute path) indicating the write location and file name of the received object to the card controller 1201 using the PTP_ReceiveFile command. The card controller 1201 writes the buffered object to the directory path specified by the PTP_ReceiveFile command in the memory unit 1203.

S1114:制御部101は、ResponseCodeを作成するため、Read PTP Progerssコマンドを送信し、SendObjectオペレーションで要求されたオブジェクトの受信(書き込み)結果を取得する。カードコントローラ1201は、受信(書き込み)結果を返送する。この返送もPTPを用いずに行われる。   S1114: The control unit 101 transmits a Read PTP Progerss command to create a ResponseCode, and obtains the reception (write) result of the object requested by the SendObject operation. The card controller 1201 returns a reception (write) result. This return is also done without using PTP.

S1016:制御部101は、SendObjectオペレーションで要求されたオブジェクトの受信(書き込み)結果に基づいてResponseCodeを作成し、PTP_SendDataコマンドでカードコントローラ1201に送信する。
S1017:カードコントローラ1201は、PTP_SendDataコマンドで送信されたデータ(ResponseCode)を、PTP-IPモジュール123を通じてPC200のPTP_Initiatorモジュールに送信する。
S1016: The control unit 101 creates a ResponseCode based on the reception (write) result of the object requested by the SendObject operation, and transmits it to the card controller 1201 using the PTP_SendData command.
S1017: The card controller 1201 transmits the data (ResponseCode) transmitted by the PTP_SendData command to the PTP_Initiator module of the PC 200 through the PTP-IP module 123.

(DPSモードの動作)
次に、DPSモードにおけるDSC100、メモリカード120、外部機器の一例としてのプリンタ300の動作を説明する。DPSモードは、DSC100とプリンタとの間でPTPセッションによるダイレクトプリントを実現するモードである。従って、PTP通信はDSC100のPTP Responderモジュール110とプリンタ300のPTP Initiatorモジュールとの間で行われ、メモリカード120は基本的にはPath Throughモードと同様、中継機器のように機能する。このDPSモードでは、DSC100側のPTP Responderモジュール110がPTP-IPモジュール123とCard I/Oモジュール130,131を介して通信することにより、Initiatorとの通信を実現する。すなわち、図6の矢印141で示すモジュール間通信が行われる。
なお、以下の説明ではプリンタ300がPTPにおけるInitiatorとして動作するものとする。プリンタ300との通信はPTP-IPモジュール123が行う。
(DPS mode operation)
Next, operations of the DSC 100, the memory card 120, and the printer 300 as an example of an external device in the DPS mode will be described. The DPS mode is a mode for realizing direct printing using a PTP session between the DSC 100 and the printer. Therefore, PTP communication is performed between the PTP Responder module 110 of the DSC 100 and the PTP Initiator module of the printer 300, and the memory card 120 basically functions like a relay device, as in the Path Through mode. In the DPS mode, the PTP Responder module 110 on the DSC 100 side communicates with the PTP-IP module 123 via the Card I / O modules 130 and 131, thereby realizing communication with the initiator. That is, inter-module communication indicated by the arrow 141 in FIG. 6 is performed.
In the following description, it is assumed that the printer 300 operates as an initiator in PTP. Communication with the printer 300 is performed by the PTP-IP module 123.

アプリケーション層であるPictBridge Applicationモジュール112が、ダイレクトプリントプロトコル層であるDPSモジュール111とその下位層の各モジュールを用いてダイレクトプリント機能を実現する。DPSモジュール111の下位層とは、PTP-Responder、PTP-IP、TCP/IP、WirelessLANの各モジュールである。   The PictBridge Application module 112, which is an application layer, implements a direct print function using the DPS module 111, which is a direct print protocol layer, and each lower layer module. The lower layers of the DPS module 111 are PTP-Responder, PTP-IP, TCP / IP, and WirelessLAN modules.

以下では、CIPA DC-001-2003に記載された標準的なシーケンスに従い、PictBridge対応機器同士が接続を行って、最初のプリントを行うまでの標準的なケースについて具体的な動作を説明する。   In the following, a specific operation will be described for a standard case from when PictBridge compatible devices connect to each other according to the standard sequence described in CIPA DC-001-2003 until the first print is performed.

以下に説明する処理は、メモリカード120とプリンタ300との間でみれば、従来DSC100とプリンタ300とをUSB接続してPictBridgeに準拠したダイレクトプリントを実行する際に行われていたやりとりと同一である。本実施形態では、Path Throughモードと同様、DPSモードに設定されたメモリカード120を通じて、従前と同様のやりとりをDSC100とプリンタ300との間で実現することを特徴とする。   The processing described below is the same as the exchange performed between the memory card 120 and the printer 300 in the past when the DSC 100 and the printer 300 are connected to each other by USB to execute direct printing conforming to PictBridge. is there. In the present embodiment, similar to the Path Through mode, the same exchange as before is realized between the DSC 100 and the printer 300 through the memory card 120 set in the DPS mode.

まず、図12A及び図12Bに示すシーケンスチャートを用いて、DPS Dicovery動作を説明する。なお、特に断らない限り、図12Aに示すDSC100とメモリカード120との間の通信はCard I/Oモジュール130,131の間でやり取りされるコマンドを示す。なお、DSC100がメモリカード120からPTPオペレーションに関するコマンドを受信した場合、Card I/Oモジュール130は受信したコマンドをPTPオペレーションとしてPTP Responderモジュール110に渡すこととする。ここでも、S801において、メモリカード120が接続可能なネットワークを探索し、自動的に接続を行っているものとする。また、接続できた時点でDSC100には割り込み信号が送信される。   First, the DPS discovery operation will be described using the sequence chart shown in FIGS. 12A and 12B. Unless otherwise specified, communication between the DSC 100 and the memory card 120 shown in FIG. 12A indicates a command exchanged between the Card I / O modules 130 and 131. When the DSC 100 receives a command related to the PTP operation from the memory card 120, the Card I / O module 130 passes the received command to the PTP Responder module 110 as a PTP operation. Here again, in S801, it is assumed that a network to which the memory card 120 can be connected is searched and the connection is automatically made. In addition, an interrupt signal is transmitted to the DSC 100 when connection is established.

S1201:図7に示したようなGUIからプリンタへの接続が指示されると、制御部101はPTP Applicaitonモジュール113によってPTP_SwitchMode(DPS)コマンドを発行し、メモリカード120をDPSモードに設定する。カードコントローラ1201は、DPSモードへの設定を認識すると、Path Throughモードと同様、DSC100からの指示があった場合を除き、メモリ部1203へのアクセスを禁止する。   S1201: When a connection from the GUI as shown in FIG. 7 is instructed, the control unit 101 issues a PTP_SwitchMode (DPS) command by the PTP Applicaiton module 113 to set the memory card 120 to the DPS mode. When the card controller 1201 recognizes the setting to the DPS mode, the card controller 1201 prohibits access to the memory unit 1203 except when there is an instruction from the DSC 100 as in the Path Through mode.

S1202:DSC100からの指示に応じて、カードコントローラ1201は、Discovery for DPSモジュール127を用いてPictBridge Printer Discoveryを行う。DPSモードにおけるディスカバリは、PullモードやPath Throughモードでのディスカバリがアドバタイズ(存在の開示)であるのに対し、プリンタの探索である。従って、DPSモードへの設定前のPTP_SetDeviceInformationコマンドは必ずしも必要ない。本実施形態で、カードコントローラ1201はDiscovery for DPSモジュール127を用いて、UPnPプロトコルでディスカバリを行う。ディスカバリにより、ネットワーク上に存在する、DPSに対応したプリンタの識別情報(UUID)及び名称等が取得され、プリンタリストが生成される。
なお、ディスカバリは例えば定期的に実行し、探索結果に変化があった場合には、カードコントローラ1201から割り込み信号ISRによってDSC100に通知することができる。
S1202: In response to an instruction from the DSC 100, the card controller 1201 performs PictBridge Printer Discovery using the Discovery for DPS module 127. The discovery in the DPS mode is a search for a printer, whereas the discovery in the pull mode or the path through mode is advertisement (disclosure of existence). Therefore, the PTP_SetDeviceInformation command before setting to the DPS mode is not always necessary. In this embodiment, the card controller 1201 uses the Discovery for DPS module 127 to perform discovery using the UPnP protocol. Through the discovery, the identification information (UUID) and name of the printer corresponding to the DPS existing on the network are acquired, and a printer list is generated.
Discovery is executed periodically, for example, and when there is a change in the search result, the card controller 1201 can notify the DSC 100 by an interrupt signal ISR.

S1203:PictBridge Printer Discoveryにより、DPSに対応したプリンタが探索できたら、カードコントローラ1201は、割り込み信号ISRによって制御部101に通知する。
S1204:制御部101は、DPS_GetPrintListコマンドを発行し、プリンタリストを要求する。
S1205:カードコントローラ1201は、生成したプリンタリストを制御部101に送信する。
S1203: If a printer compatible with DPS can be found by PictBridge Printer Discovery, the card controller 1201 notifies the control unit 101 by an interrupt signal ISR.
S1204: The control unit 101 issues a DPS_GetPrintList command and requests a printer list.
S 1205: The card controller 1201 transmits the generated printer list to the control unit 101.

S1206:制御部101は、受信したプリンタリストから、ユーザがプリンタを選択するためのGUI画面を作成し、表示部105に表示する。GUIの様式に制限は無いが、ユーザがプリンタを特定できる情報を提示する。
ユーザが操作部104を通じてリスト中のプリンタ一つを選択し、決定ボタンを押下すると、制御部101はどのプリンタが選択されたか認識する。そして、制御部101は、選択されたプリンタの識別情報(UUID)を指定したDPS_ConnectPrinterコマンドを送信する。
S1206: The control unit 101 creates a GUI screen for the user to select a printer from the received printer list and displays it on the display unit 105. There is no limitation on the GUI format, but information that allows the user to identify the printer is presented.
When the user selects one printer in the list through the operation unit 104 and presses the enter button, the control unit 101 recognizes which printer has been selected. Then, the control unit 101 transmits a DPS_ConnectPrinter command specifying the identification information (UUID) of the selected printer.

S1207:PTP-IPモジュール123は、DPS_ConnectPrinterコマンドで指定されたUUIDに対応するプリンタとPTP-IPコネクションを確立する。コネクションの確立は割り込み信号ISR(PTPIP Connected)によりカードコントローラ1201から制御部101に通知される。   S1207: The PTP-IP module 123 establishes a PTP-IP connection with the printer corresponding to the UUID specified by the DPS_ConnectPrinter command. The establishment of the connection is notified from the card controller 1201 to the control unit 101 by an interrupt signal ISR (PTPIP Connected).

S1208:PTP-IPのコネクションが確立すると、GetDeviceInfo、OpenSession、GetNumObjects、GetObjectHandlesの各オペレーションが順次Initiator(プリンタ300)から発行される。   S1208: When a PTP-IP connection is established, GetDeviceInfo, OpenSession, GetNumObjects, and GetObjectHandles operations are sequentially issued from the initiator (printer 300).

S1209:Path Throughモードの説明で述べたように、Initiatorからのオペレーション受信は割り込み信号ISR(Operation)によりResponderであるDSC100に通知される。そして、DSC100はPTP_GetInformationコマンドを発行してメモリカード120が受信したPTPオペレーションを取得し、取得したオペレーションに応答するデータを作成する。DSC100は作成したデータをPTP_SendDataコマンドによりメモリカード120に送信し、PTP-IPモジュール123がプリンタ300に送信する。このような手順を、上述した各オペレーションについて順次実行する。   S1209: As described in the explanation of the Path Through mode, the operation reception from the initiator is notified to the DSC 100 as the responder by the interrupt signal ISR (Operation). Then, the DSC 100 issues a PTP_GetInformation command, acquires the PTP operation received by the memory card 120, and creates data that responds to the acquired operation. The DSC 100 transmits the created data to the memory card 120 using the PTP_SendData command, and the PTP-IP module 123 transmits the data to the printer 300. Such a procedure is sequentially executed for each operation described above.

なお、Path Throughモードと同様、DPSモードにおいても、ResponderであるDSC100がメモリカード120内に記録されているオブジェクトの管理を行う。そのため、PTPにおいてオブジェクトの特定に必要なObjectHandleの割り当てや、オブジェクトの数などの情報を取得、管理する必要がある。図12Aでは、Initiatorであるプリンタ300からのGetNumObjectsオペレーションに応答する際に、メモリカード120内のオブジェクトを計数し、応答すべきNumObjectsを生成している(S1210)。同様に、GetObjectHandlesオペレーションに応答する際に、メモリカード120内の各オブジェクトについてObjectHandleを割り当て、その集合体であるObjectHandleArrayを作成している(図12B:S1211)。
もちろん、これらの情報は例えば電源投入時に生成し、その後は変更が検出された時点で更新するようにしてもよい。
Note that, similarly to the Path Through mode, in the DPS mode, the DSC 100 as a responder manages the objects recorded in the memory card 120. Therefore, it is necessary to acquire and manage information such as ObjectHandle allocation and the number of objects necessary for specifying an object in PTP. In FIG. 12A, when responding to the GetNumObjects operation from the printer 300 as an initiator, the objects in the memory card 120 are counted and NumObjects to be responded are generated (S1210). Similarly, when responding to the GetObjectHandles operation, an ObjectHandle is assigned to each object in the memory card 120 to create an ObjectHandleArray that is an aggregate thereof (FIG. 12B: S1211).
Of course, such information may be generated, for example, when the power is turned on, and then updated when a change is detected.

S1213,S1212:PictBridge規格では、DPS Discoveryにおいて、ResponderからはDDISCVRY.DPS、InitiatorからはHDISCVRY.DPSという所定のファイルの存在を通知しあうことで互いがPictBridge対応機器であることを確認する。これらスクリプトファイルの交換により、プリンタ300がPictBridge 対応機器であることを認識すると、PictBridge Applicationモジュールが以後の制御を行う。   S1213, S1212: In the PictBridge standard, in DPS Discovery, the presence of a predetermined file called DDISCVRY.DPS from Responder and HDISCVRY.DPS from the initiator are notified to each other, thereby confirming that they are PictBridge compatible devices. When the printer 300 recognizes that the printer 300 is a PictBridge-compatible device by exchanging these script files, the PictBridge Application module performs subsequent control.

次に、図13に示すシーケンス図を用いて、DPS_ConfigurePrintServiceの動作について説明する。このDPS_ConfigurePrintServiceでは、プリンタ300が有するPrintServiceの開始をDSC100が要求する。また、機器情報の交換が行われる。   Next, the operation of DPS_ConfigurePrintService will be described using the sequence diagram shown in FIG. In this DPS_ConfigurePrintService, the DSC 100 requests the start of the PrintService that the printer 300 has. In addition, device information is exchanged.

図13の処理は、本質的に
DSC100からプリンタ300に対してスクリプト”DREQUEST.DPS”を送信(S1301)、
DSC100からプリンタ300に対してDPSスクリプト”ConfigurePrintService”を送信(S1302)、
プリンタ300からDSC100に対してスクリプト”HRESPONSE.DPS”を送信(S1303)、
プリンタ300からDSC100に対してDPSスクリプト”ConfigurePrintService result”を送信(S1304)、
するものである。
The process of FIG. 13 essentially transmits a script “DREQUEST.DPS” from the DSC 100 to the printer 300 (S1301).
A DPS script “ConfigurePrintService” is transmitted from the DSC 100 to the printer 300 (S1302).
A script “HRESPONSE.DPS” is transmitted from the printer 300 to the DSC 100 (S1303).
A DPS script “ConfigurePrintService result” is transmitted from the printer 300 to the DSC 100 (S1304).
To do.

“DREQUEST.DPS”はDSC100からプリンタ300に対して、S1302でのDPSスクリプトの送信を開始することを通知するためのものである。また”HRESPONSE.DPS”はプリンタ300からDSC100に対して、S1304でのDPSスクリプトの送信を開始することを通知するためのものである。
DPSスクリプト”ConfigurePrintService”は、図14(a)に示すように、DSC100の装置情報(メーカ名、製品名、シリアル番号等)などを示すXML形式のスクリプトである。同様に、DPSスクリプト”ConfigurePrintService result”はプリンタ300に関する情報(メーカ名、製品名、シリアル番号等)を示すXML形式のスクリプトである。
“DREQUEST.DPS” is used to notify the DSC 100 to the printer 300 that transmission of the DPS script in S1302 is started. “HRESPONSE.DPS” is used to notify the DSC 100 that the printer 300 starts transmission of the DPS script in S1304.
As shown in FIG. 14A, the DPS script “ConfigurePrintService” is an XML format script indicating device information (manufacturer name, product name, serial number, etc.) of the DSC 100. Similarly, the DPS script “ConfigurePrintService result” is an XML-format script indicating information related to the printer 300 (manufacturer name, product name, serial number, etc.).

DPS_ConfigurePrintServiceシーケンスに引き続き、DPS_GetCapability, DPS_StartJobシーケンスが行われる。このシーケンスは、S1302で送信されるDPSスクリプトがそれぞれ”GetCapability”、”StartJob”に、S1304で送信されるDPSスクリプトがそれぞれ”GetCapability result”、”StartJob result”になる以外、図13と同一であるため説明を省略する。   Following the DPS_ConfigurePrintService sequence, DPS_GetCapability and DPS_StartJob sequences are performed. This sequence is the same as FIG. 13 except that the DPS scripts sent in S1302 are “GetCapability” and “StartJob”, respectively, and the DPS scripts sent in S1304 are “GetCapability result” and “StartJob result”, respectively. Therefore, explanation is omitted.

DPS_GetCapabilityは、DSC100からプリンタ300へ、プリンタ300に設定可能な能力を問い合わせるシーケンスである。PictBriege Applicationモジュール112は、プリンタ300からの応答内容に応じた設定用のGUIを生成し、ユーザに設定させることができる。図14(b)に、DPS_GetCapabilityシーケンスでやりとりされるDPSスクリプト”GetCapability”及び”GetCapability result”の例を示す。   DPS_GetCapability is a sequence for inquiring the capability of the printer 300 from the DSC 100 to the printer 300. The PictBriege Application module 112 can generate a setting GUI corresponding to the response content from the printer 300 and allow the user to set the GUI. FIG. 14B shows an example of DPS scripts “GetCapability” and “GetCapability result” exchanged in the DPS_GetCapability sequence.

StartJobは、例えばDSC100のユーザからプリント開始指示が操作部104を通じてなされたことにより、DSC100からプリンタ300に、各種印刷設定情報とともに印刷開始を要求するシーケンスである。図14(c)に、StartJobシーケンスでやりとりされるDPSスクリプト”StartJob”及び”StartJob result”の例を示す。   StartJob is a sequence for requesting a print start from the DSC 100 to the printer 300 together with various print setting information when, for example, a print start instruction is issued from the user of the DSC 100 through the operation unit 104. FIG. 14C shows an example of DPS scripts “StartJob” and “StartJob result” exchanged in the StartJob sequence.

次のシーケンスはDPS_GetFileInfo及びDPS_GetFileである。図15において、S1501がDPS_GetFileInfoシーケンスであり、プリンタ300がこれから取得する(DSC100がプリントしようとする)データの情報を取得している。取得される情報は、画像の大きさ(画素数)やファイル名などである。そして、S1502で示すDPS_GetFileシーケンスにより、DPS_GetFileInfoシーケンスで情報を取得したファイルをDSC100からプリンタ300が取得する。   The next sequence is DPS_GetFileInfo and DPS_GetFile. In FIG. 15, S1501 is a DPS_GetFileInfo sequence, and information of data that the printer 300 will acquire (the DSC 100 intends to print) is acquired. The acquired information is the size of the image (number of pixels), the file name, and the like. Then, the printer 300 acquires the file whose information is acquired by the DPS_GetFileInfo sequence from the DSC 100 by the DPS_GetFile sequence shown in S1502.

なお、要求されたデータをDSC100が送信する際、図15では図13のS1003と同様に、メモリカード120から一旦DSC100に読み込み、メモリカード120を介して送信するものとしている。しかし、図11に示したように、メモリカード120からDSC100に読み込みせずに、DSC100からディレクトリパスを指定してメモリカード120から送信させるようにしてもよい。   Note that when the DSC 100 transmits the requested data, in FIG. 15, as in S <b> 1003 of FIG. 13, the data is once read from the memory card 120 to the DSC 100 and transmitted via the memory card 120. However, as shown in FIG. 11, the directory path may be designated from the DSC 100 and transmitted from the memory card 120 without being read from the memory card 120 to the DSC 100.

プリントするデータの転送が終了すると、プリンタ300は設定に基づいてプリント処理を実行する。また、プリンタ300は、装置の状態をDPS_NotifyDeviceStatusシーケンスでDSC100に通知することができる。   When the transfer of the data to be printed is completed, the printer 300 executes a printing process based on the setting. Further, the printer 300 can notify the DSC 100 of the status of the apparatus by using a DPS_NotifyDeviceStatus sequence.

図16に示すシーケンス図を用いて、DPS_NotifyDeviceStatusの動作について説明する。このDPS_NotifyDeviceStatusでは、プリンタ300の状態をプリンタ300がDSC100に送信する。   The operation of DPS_NotifyDeviceStatus will be described using the sequence diagram shown in FIG. With this DPS_NotifyDeviceStatus, the printer 300 transmits the status of the printer 300 to the DSC 100.

図16の処理は、
プリンタ300からDSC100に対してスクリプト”HREQUEST.DPS”を送信(S1601)、
プリンタ300からDSC100に対してDPSスクリプト”NotifyDeviceStatus (Printing)”を送信(S1602)、
DSC100からプリンタ300に対してスクリプト”DRESPONSE.DPS”を送信(S1603)、
DSC100からプリンタ300に対してDPSスクリプト”NotifyDeviceStatus result”を送信(S1604)、
するものである。
The process of FIG.
A script “HREQUEST.DPS” is transmitted from the printer 300 to the DSC 100 (S1601).
A DPS script “NotifyDeviceStatus (Printing)” is transmitted from the printer 300 to the DSC 100 (S1602).
The script “DRESPONSE.DPS” is transmitted from the DSC 100 to the printer 300 (S1603).
A DPS script “NotifyDeviceStatus result” is transmitted from the DSC 100 to the printer 300 (S1604).
To do.

“HREQUEST.DPS”はプリンタ300からDSC100に対して、S1602でのDPSスクリプトの送信を開始することを通知するためのものである。また”DRESPONSE.DPS”はDSC100からプリンタ300に対して、S1604でのDPSスクリプトの送信を開始することを通知するためのものである。   “HREQUEST.DPS” is used to notify the DSC 100 that the printer 300 starts transmission of the DPS script in S1602. “DRESPONSE.DPS” is used to notify the DSC 100 to the printer 300 that transmission of a DPS script in S1604 is started.

DPSスクリプト”NotifyDeviceStatus”は、図17(a)に示すように、プリンタ300の状況(プリント中かどうか、新しいジョブを受け付け可能かどうか、エラーが発生しているかどうか、エラーの原因は何か、等)を示すXML形式のスクリプトである。DPSスクリプト”NotifyDeviceStatus result”はDSC100から単に応答として返されるXML形式のスクリプトである。   As shown in FIG. 17A, the DPS script “NotifyDeviceStatus” indicates the status of the printer 300 (whether printing is in progress, whether a new job can be accepted, whether an error has occurred, what is the cause of the error, Etc.) is an XML format script. The DPS script “NotifyDeviceStatus result” is an XML script that is simply returned from the DSC 100 as a response.

また、プリンタ300がプリント中のジョブの状態をDSC100に通知する場合には、図16と同様のシーケンスであるNotifyJobStatusを用いることができる。NotifyJobStatusは、S1602で送信されるDPSスクリプトが”NotifyJobStatus()”(括弧内にはジョブの状態を示す記述が入る)に、S1604で送信されるDPSスクリプトが"NotifyJobStatus result”になる以外、図16と同一であるため説明を省略する。   When the printer 300 notifies the DSC 100 of the status of the job being printed, NotifyJobStatus, which is a sequence similar to that in FIG. 16, can be used. NotifyJobStatus is the same as that shown in FIG. 16 except that the DPS script transmitted in S1602 is “NotifyJobStatus ()” (a description indicating the job status is entered in parentheses) and the DPS script transmitted in S1604 is “NotifyJobStatus result”. Since it is the same, description is abbreviate | omitted.

図17(b)に、NotifyJobStatusシーケンスでやりとりされるスクリプト”NotifyJobStatus”及び”NotifyJobStatus result”の例を示す。この例では、”NotifyJobStatus”において、現在4/6ページが印刷中であることなどが通知される。”NotifyJobStatus result”は応答を目的としたスクリプトである。   FIG. 17B shows an example of scripts “NotifyJobStatus” and “NotifyJobStatus result” exchanged in the NotifyJobStatus sequence. In this example, “NotifyJobStatus” notifies that 4/6 page is currently being printed. “NotifyJobStatus result” is a script for the purpose of response.

以上説明したように、本実施形態によれば、無線通信機能付きメモリカードにPTP Responderを持たせ、ホスト機器(DSC)が有するPTP ResponderとどちらがPTP-IPモジュールを用いて外部機器とPTP通信するかを切り替え可能にした。そのため、メモリカードがホスト機器と独立して外部機器とPTPによるデータ転送を行うことも、ホスト機器がメモリカードを無線アダプタのように用いて外部機器とPTP通信することも可能となる。その結果、無線通信機能付きメモリカードを、PTPに対応した既存の機器を用いた幅広い用途に利用することが可能となる。   As described above, according to the present embodiment, the memory card with the wireless communication function is provided with the PTP Responder, and the PTP Responder of the host device (DSC) and the PTP-IP module are used for PTP communication with the external device. It was possible to switch. Therefore, the memory card can perform PTP data transfer with an external device independently of the host device, or the host device can perform PTP communication with the external device using the memory card as a wireless adapter. As a result, the memory card with a wireless communication function can be used for a wide range of applications using existing devices compatible with PTP.

なお、Pullモード、DPSモード、Path Throughモードの中では、Pullモードの汎用性が高いと考えられる。そこで、DSC100はメモリカード120がネットワークに接続された場合には、まずPTP_SwitchMode(pull)コマンドを自動的に発行するようにしてもよい。DLNAを用いるかPTPを用いるかをユーザに選択させる場合であれば、PTPを用いることが選択されたことに応じてPTP_SwitchMode(pull)コマンドを自動的に発行するようにしてもよい。   Note that the Pull mode, DPS mode, and Path Through mode are considered to be highly versatile. Therefore, the DSC 100 may automatically issue a PTP_SwitchMode (pull) command first when the memory card 120 is connected to the network. If the user selects whether to use DLNA or PTP, a PTP_SwitchMode (pull) command may be automatically issued in response to selection of using PTP.

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

101…制御部、102…不揮発性メモリ、103…RAM、104…操作部、105…表示部、106…光学ユニット、107…撮像素子、108…ドライバ、109…コネクタ、120…メモリカード DESCRIPTION OF SYMBOLS 101 ... Control part, 102 ... Non-volatile memory, 103 ... RAM, 104 ... Operation part, 105 ... Display part, 106 ... Optical unit, 107 ... Image sensor, 108 ... Driver, 109 ... Connector, 120 ... Memory card

本発明は記録媒体及びその制御方法に関する。 The present invention relates to a control method of the recording medium and its.

このように、従来の無線通信機能付きメモリカードはその用途が限られており、無線通信機能が有効に活用されていない面があった。本発明はこのような従来技術の課題に鑑みてなされたものであり、様々な用途に利用可能な無線通信機能付き記録媒体及びその制御方法を提供することを1目的とする Thus, the conventional memory card with a wireless communication function has a limited use, and the wireless communication function has not been effectively utilized. The present invention has been made in view of the problems of the prior art, and an object of the present invention is to provide a recording medium with a wireless communication function that can be used for various purposes and a control method therefor .

上述の目的の1つは、ホスト機器に着脱可能な記録媒体であって、ホスト機器と異なる外部機器と無線通信を行うための無線通信手段と、記録媒体が有する無線通信プロトコルを用いて外部機器と無線通信を行うための無線制御手段と、記録媒体が有する画像送信プロトコルを用いて外部機器への画像の送信を制御する画像送信制御手段と、記録媒体のモードを、記録媒体が有する無線通信プロトコルを用いて外部機器との通信を行い、かつ記録媒体が有する画像送信プロトコルを用いて外部機器への画像の送信を行う第1の通信モードと、記録媒体が有する無線通信プロトコルを用いて外部機器との通信を行い、かつホスト機器が有する画像送信プロトコルを用いて外部機器への画像の送信を行う第2の通信モードとを含む複数の通信モードのうちいずれかに切り替える第1の切り替え手段とを有する記録媒体によって達成される。 One of the above-described objects is a recording medium that can be attached to and detached from the host device, the wireless communication means for performing wireless communication with an external device different from the host device, and the external device using the wireless communication protocol that the recording medium has A wireless control means for performing wireless communication with the recording medium, an image transmission control means for controlling transmission of an image to an external device using an image transmission protocol possessed by the recording medium, and a wireless communication function of the recording medium. A first communication mode for communicating with an external device using a protocol and transmitting an image to the external device using an image transmission protocol of the recording medium; and an external device using a wireless communication protocol of the recording medium A plurality of communication modes including a second communication mode for communicating with a device and transmitting an image to an external device using an image transmission protocol of the host device. It is achieved by a recording medium having a first switching means for switching to any one of.

このような構成により、本発明によれば、様々な用途に利用可能な無線通信機能付き記録媒体及びその制御方法を提供することができる。 With such a configuration, according to the present invention, it is possible to provide a recording medium with a wireless communication function that can be used for various purposes and a control method therefor.

Claims (6)

ホスト機器に着脱可能な記録媒体であって、
前記ホスト機器と異なる外部機器と、無線通信を行うための無線通信手段と、
前記無線通信手段を通じて、前記外部機器とPTP(Picture Transfer Protocol)に準拠した通信を行い、前記記録媒体を前記PTPにおけるResponderとして機能させるPTP Responderモジュールと、
前記無線通信手段を通じた前記外部機器とのPTP通信を、前記記録媒体が有する前記PTP Responderモジュールを用いて行うか、前記記録媒体が装着されたホスト機器が有する、前記ホスト機器を前記Responderとして機能させるPTP Responderモジュールを用いて行うかを、前記ホスト機器から設定されたモードに応じて切り替えるコントローラとを有することを特徴とする記録媒体。
A recording medium detachable from a host device,
A wireless communication means for performing wireless communication with an external device different from the host device;
A PTP Responder module that performs communication based on PTP (Picture Transfer Protocol) with the external device through the wireless communication means, and causes the recording medium to function as a Responder in the PTP;
PTP communication with the external device through the wireless communication means is performed using the PTP Responder module included in the recording medium, or the host device equipped with the recording medium has the host device functioning as the Responder A recording medium comprising: a controller that switches whether to use a PTP Responder module to be performed according to a mode set by the host device.
前記無線通信手段を通じた前記外部機器とのPTP通信を、前記ホスト機器を前記Responderとして機能させるPTP Responderモジュールを用いて行う場合、前記外部機器からPTPオペレーションやデータを受信すると、前記ホスト機器に割り込み信号で通知し、前記ホスト機器からの要求に応答して前記受信したPTPオペレーションやデータを前記ホスト機器に送信することを特徴とする請求項1記載の記録媒体。   When PTP communication with the external device through the wireless communication means is performed using a PTP Responder module that causes the host device to function as the Responder, when receiving a PTP operation or data from the external device, the host device is interrupted. 2. The recording medium according to claim 1, wherein the recording medium is notified by a signal, and the received PTP operation and data are transmitted to the host device in response to a request from the host device. 前記無線通信手段を通じた前記外部機器とのPTP通信を、前記ホスト機器を前記Responderとして機能させるPTP Responderモジュールを用いて行う場合、前記ホスト機器から前記外部機器へ送信すべきデータを受信すると、該受信したデータを、前記PTPに準拠した通信により前記無線通信手段を通じて前記外部機器に送信することを特徴とする請求項1又は請求項2に記載の記録媒体。   When performing PTP communication with the external device through the wireless communication means using a PTP Responder module that causes the host device to function as the Responder, when receiving data to be transmitted from the host device to the external device, The recording medium according to claim 1, wherein the received data is transmitted to the external device through the wireless communication unit by communication conforming to the PTP. 前記無線通信手段を通じた前記外部機器とのPTP通信を、前記ホスト機器を前記Responderとして機能させるPTP Responderモジュールを用いて行う場合、前記ホスト機器からの指示を除き、前記記録媒体が有するメモリへのアクセスを禁止することを特徴とする請求項1乃至請求項3のいずれか1項に記載の記録媒体。   When PTP communication with the external device through the wireless communication means is performed using a PTP Responder module that causes the host device to function as the Responder, except for an instruction from the host device, the memory to the recording medium has The recording medium according to any one of claims 1 to 3, wherein access is prohibited. 前記無線通信手段を通じた前記外部機器とのPTP通信を、前記記録媒体を前記Responderとして機能させるPTP Responderモジュールを用いて行う場合、前記記録媒体が有するメモリへの前記ホスト機器によるアクセスを禁止することを特徴とする請求項1乃至請求項4のいずれか1項に記載の記録媒体。   When PTP communication with the external device through the wireless communication means is performed using a PTP Responder module that causes the recording medium to function as the Responder, the host device is prohibited from accessing the memory of the recording medium. The recording medium according to claim 1, wherein the recording medium is a recording medium. 撮像装置であって、
請求項1乃至請求項5のいずれか1項に記載の記録媒体を着脱可能に装着するための装着手段と、
前記撮像装置を前記Responderとして機能させるPTP Responderモジュールとを有し、
前記ホスト機器として動作することを特徴とする撮像装置。
An imaging device,
Mounting means for detachably mounting the recording medium according to any one of claims 1 to 5,
A PTP Responder module that allows the imaging device to function as the Responder;
An imaging apparatus that operates as the host device.
JP2015211102A 2015-10-27 2015-10-27 Recording medium and control method thereof Expired - Fee Related JP6204958B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2015211102A JP6204958B2 (en) 2015-10-27 2015-10-27 Recording medium and control method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2015211102A JP6204958B2 (en) 2015-10-27 2015-10-27 Recording medium and control method thereof

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP2011265311A Division JP5832260B2 (en) 2011-12-02 2011-12-02 Recording medium and imaging apparatus using the same

Publications (2)

Publication Number Publication Date
JP2016076933A true JP2016076933A (en) 2016-05-12
JP6204958B2 JP6204958B2 (en) 2017-09-27

Family

ID=55950115

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2015211102A Expired - Fee Related JP6204958B2 (en) 2015-10-27 2015-10-27 Recording medium and control method thereof

Country Status (1)

Country Link
JP (1) JP6204958B2 (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001077878A (en) * 1999-06-29 2001-03-23 Sony Corp Communication equipment, communication method and communication terminal equipment
JP2002329180A (en) * 2001-04-27 2002-11-15 Toshiba Corp Memory card having radio communication function and its data communication method
JP2007081889A (en) * 2005-09-14 2007-03-29 Canon Inc Wireless communication unit
JP2007081566A (en) * 2005-09-12 2007-03-29 Canon Inc Repeater and repeating method
JP2010067060A (en) * 2008-09-11 2010-03-25 Toshiba Corp Memory card and method for controlling memory card
JP2011087202A (en) * 2009-10-19 2011-04-28 Sony Corp Storage device and data communication system
JP2011114740A (en) * 2009-11-30 2011-06-09 Sanyo Electric Co Ltd Content processing apparatus
US20110185098A1 (en) * 2008-05-26 2011-07-28 Sk Telecom Co., Ltd. Memory card supplemented with wireless communication module, terminal for using same, memory card including wpan communication module, and wpan communication method using same

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001077878A (en) * 1999-06-29 2001-03-23 Sony Corp Communication equipment, communication method and communication terminal equipment
JP2002329180A (en) * 2001-04-27 2002-11-15 Toshiba Corp Memory card having radio communication function and its data communication method
JP2007081566A (en) * 2005-09-12 2007-03-29 Canon Inc Repeater and repeating method
JP2007081889A (en) * 2005-09-14 2007-03-29 Canon Inc Wireless communication unit
US20110185098A1 (en) * 2008-05-26 2011-07-28 Sk Telecom Co., Ltd. Memory card supplemented with wireless communication module, terminal for using same, memory card including wpan communication module, and wpan communication method using same
JP2010067060A (en) * 2008-09-11 2010-03-25 Toshiba Corp Memory card and method for controlling memory card
JP2011087202A (en) * 2009-10-19 2011-04-28 Sony Corp Storage device and data communication system
JP2011114740A (en) * 2009-11-30 2011-06-09 Sanyo Electric Co Ltd Content processing apparatus

Also Published As

Publication number Publication date
JP6204958B2 (en) 2017-09-27

Similar Documents

Publication Publication Date Title
US20080043110A1 (en) Image Input Device, Control Method Thereof and Image Input System
US10225455B2 (en) Communication apparatus, information processing apparatus, methods and computer-readable storage medium
JP6395522B2 (en) COMMUNICATION DEVICE, COMMUNICATION DEVICE CONTROL METHOD, PROGRAM
JP5875363B2 (en) Recording medium and imaging apparatus using the same
JP7262191B2 (en) ELECTRONIC DEVICE AND CONTROL METHOD AND PROGRAM THEREOF AND INFORMATION PROCESSING SYSTEM
US20190253582A1 (en) Method for establishing wireless connection of image forming device by using mobile terminal, and image forming device for performing same
JP5832260B2 (en) Recording medium and imaging apparatus using the same
JP6204958B2 (en) Recording medium and control method thereof
JP5972115B2 (en) Imaging apparatus, control method thereof, and program
JP6306866B2 (en) COMMUNICATION DEVICE, ITS CONTROL METHOD, AND PROGRAM
JP6877999B2 (en) Communication device, control method of communication device, program
JP5038125B2 (en) Communication apparatus and data communication method
JP2020057899A (en) Wireless communication system and wireless communication terminal control method
JP2020091787A (en) Communication device and control method thereof
WO2016035293A1 (en) Communication apparatus, information processing apparatus, methods and computer-readable storage medium
JP6956515B2 (en) Communication systems, communication devices and their control methods and programs
JP2017055366A (en) Communication device, control method therefor and program
JP2007081736A (en) Imaging apparatus and its control method
JP6174868B2 (en) Electronic device and control method thereof
JP2015115011A (en) Communication apparatus, apparatus setting device, imaging device and control method, system, and program therefor
JP2018200542A (en) Information processor, server device, information processing system, method for processing information, and program
JP5370524B2 (en) Digital camera, transmission method, and program
JP2023125841A (en) Communication apparatus, communication control method, and program
JP2019067133A (en) Information processing device, control method of information processing device, and program
JP2018136609A (en) Information processing system, information processing device, information processing method and program

Legal Events

Date Code Title Description
A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20160808

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20160810

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20161005

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20170327

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20170627

A911 Transfer to examiner for re-examination before appeal (zenchi)

Free format text: JAPANESE INTERMEDIATE CODE: A911

Effective date: 20170707

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20170901

R151 Written notification of patent or utility model registration

Ref document number: 6204958

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151

LAPS Cancellation because of no payment of annual fees