JP2006011827A - Electronic device and control method for the same - Google Patents

Electronic device and control method for the same Download PDF

Info

Publication number
JP2006011827A
JP2006011827A JP2004188098A JP2004188098A JP2006011827A JP 2006011827 A JP2006011827 A JP 2006011827A JP 2004188098 A JP2004188098 A JP 2004188098A JP 2004188098 A JP2004188098 A JP 2004188098A JP 2006011827 A JP2006011827 A JP 2006011827A
Authority
JP
Japan
Prior art keywords
storage medium
operation mode
electronic device
external storage
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.)
Pending
Application number
JP2004188098A
Other languages
Japanese (ja)
Inventor
Noribumi Tsuboi
則文 坪井
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.)
Toshiba Corp
Original Assignee
Toshiba Corp
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 Toshiba Corp filed Critical Toshiba Corp
Priority to JP2004188098A priority Critical patent/JP2006011827A/en
Publication of JP2006011827A publication Critical patent/JP2006011827A/en
Pending legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To provide an electronic device that can easily back up the contents of an external storage medium and can be effectively used as an external storage for a host device. <P>SOLUTION: The electronic device 1 can be operated in two operation modes, or an operation mode #1 and an operation mode #2. The operation mode #1 is for executing data transfer between each of a memory card 4 and a hard disk drive 11, and a computer 2 in response to an access request from the computer 2. The operation mode #2 is for automatically executing data transfer from the memory card 4 to the hard disk drive 11 by means of a data transfer control circuit 23 when the memory card 4 is loaded in a memory card slot 12. The electronic device 1 is operated in the operation mode #1 while connected to the computer 2, and operated in the operation mode #2 while disconnected from the computer 2. <P>COPYRIGHT: (C)2006,JPO&NCIPI

Description

本発明はディスク記憶装置を内蔵した携帯型の電子機器およびその制御方法に関する。   The present invention relates to a portable electronic device incorporating a disk storage device and a control method thereof.

近年、デジタルカメラが広く普及している。デジタルカメラにおいては、撮影によって得られた画像データはメモリカードに格納される。しかし、メモリカードに格納可能な画像データの量には制限がある。   In recent years, digital cameras have become widespread. In a digital camera, image data obtained by shooting is stored in a memory card. However, the amount of image data that can be stored in the memory card is limited.

そこで、最近では、メモリカードの内容をバックアップするための記録装置として、ディスク記憶装置を内蔵し、且つメモリカードを装着可能な記録装置が開発され始めている(例えば、特許文献1参照)。この特許文献1の記録装置は、メモリカードの装着を自動認知して、メモリカードの記憶内容を内蔵ディスク記憶装置に転送する機能を有している。
特開2002−269905号公報
Therefore, recently, as a recording device for backing up the contents of a memory card, a recording device having a built-in disk storage device and capable of mounting a memory card has been developed (for example, see Patent Document 1). The recording device of Patent Document 1 has a function of automatically recognizing the installation of a memory card and transferring the stored contents of the memory card to a built-in disk storage device.
JP 2002-269905 A

しかし、この種の記録装置に求められる機能は、その記録装置単独で使用される場合とコンピュータに接続して使用される場合とで大きく異なる。   However, the functions required for this type of recording apparatus differ greatly depending on whether the recording apparatus is used alone or connected to a computer.

すなわち、外出先ではメモリカードの内容を自動的にバックアップするための記録装置として機能することが要求されるものの、コンピュータに接続して使用される場合には、そのコンピュータの外部記憶装置として機能することが要求される。   In other words, it is required to function as a recording device for automatically backing up the contents of a memory card when away from home, but when used while connected to a computer, it functions as an external storage device of the computer. Is required.

ところが、自動バックアップ機能が常に有効であると、記録装置をコンピュータに接続して使用する場合においても、メモリカードの記憶内容が内蔵ディスク記憶装置に転送されてしまう。これにより、コンピュータからはメモリカードを外部記憶として有効利用することが実際上困難となる。   However, if the automatic backup function is always effective, the stored contents of the memory card are transferred to the built-in disk storage device even when the recording device is connected to a computer. This makes it practically difficult for the computer to effectively use the memory card as external storage.

本発明は上述の事情を考慮してなされたものであり、メモリカードのような外部記憶媒体の内容を容易にバックアップでき、且つホスト装置の外部記憶として有効利用することが可能な電子機器を提供することを目的とする。   The present invention has been made in consideration of the above-described circumstances, and provides an electronic device that can easily back up the contents of an external storage medium such as a memory card and can be effectively used as an external storage of a host device. The purpose is to do.

上述の課題を解決するため、本発明は、ホスト装置に接続可能な電子機器において、ディスク記憶装置と、外部記憶媒体を取り外し自在に装着可能な記憶媒体装着部と、前記ホスト装置からのアクセス要求に応じて、当該アクセス要求で指定される、前記記憶媒体装着部に装着された前記外部記憶媒体および前記ディスク記憶装置の一方と前記ホスト装置との間のデータ転送を実行する第1動作モード、および前記外部記憶媒体が前記記憶媒体装着部に装着されたか否かを検出し、装着されたことが検出されたことに応答して前記外部記憶媒体に記憶されているデータを前記ディスク記憶装置に保存するためのデータ転送を実行する第2動作モードの一方の動作モードで前記電子機器の動作を制御する制御手段と、前記電子機器が前記ホスト装置に接続されているか否かを判別する判別手段と、前記電子機器が前記ホスト装置に接続されている場合には前記制御手段が前記第1動作モードに設定され、前記電子機器が前記ホスト装置に接続されていない場合には前記制御手段が前記第2動作モードに設定されるように、前記判別手段の判別結果に基づいて、前記制御手段を前記第1動作モードおよび前記第2動作モードの一方の動作モードに設定する手段とを具備することを特徴とする。   In order to solve the above-described problems, the present invention relates to an electronic device connectable to a host device, a disk storage device, a storage medium mounting portion to which an external storage medium can be detachably mounted, and an access request from the host device. A first operation mode for performing data transfer between the host device and one of the external storage medium and the disk storage device mounted in the storage medium mounting unit, specified by the access request, And detecting whether or not the external storage medium is attached to the storage medium attachment unit, and in response to detecting that the external storage medium is attached, data stored in the external storage medium to the disk storage device Control means for controlling the operation of the electronic device in one operation mode of a second operation mode for executing data transfer for storage; and Determining means for determining whether the electronic device is connected to the device, and when the electronic device is connected to the host device, the control means is set to the first operation mode, and the electronic device is connected to the host device. The control means is set to the first operation mode and the second operation mode based on the determination result of the determination means so that the control means is set to the second operation mode. Means for setting to one of the operation modes.

本発明によれば、外部記憶媒体の内容を容易にバックアップでき、且つホスト装置の外部記憶として有効利用することが可能となる。   According to the present invention, the contents of the external storage medium can be easily backed up, and can be effectively used as an external storage of the host device.

以下、図面を参照して、本発明の実施形態を説明する。
図1には、本発明の一実施形態に係る電子機器の外観が示されている。本電子機器1は内蔵バッテリまたは電池によって駆動可能な携帯型電子機器であり、パーソナルコンピュータ2のようなホスト装置に接続可能に構成されている。本電子機器1は、例えばUSB(Universal Serial Bus)ケーブルのような通信ケーブル3を介して、ホスト装置に必要に応じて接続される。
Hereinafter, embodiments of the present invention will be described with reference to the drawings.
FIG. 1 shows the appearance of an electronic apparatus according to an embodiment of the present invention. The electronic device 1 is a portable electronic device that can be driven by a built-in battery or a battery, and is configured to be connectable to a host device such as a personal computer 2. The electronic device 1 is connected to a host device as necessary via a communication cable 3 such as a USB (Universal Serial Bus) cable.

本電子機器1は薄い箱形の筐体を有しており、その筐体内には、大容量のディスク記憶装置としてのハードディスクドライブ(HDD)11が内蔵されている。また本電子機器1の筐体にはメモリカードスロット12が設けられている。このメモリカードスロット12は、メモリカード4を取り外し自在に装着するためのメモリカード装着部である。メモリカード4は、例えばフラッシュEEPROMのような不揮発性メモリを内蔵している。   The electronic device 1 has a thin box-shaped housing, and a hard disk drive (HDD) 11 as a large-capacity disk storage device is built in the housing. Further, a memory card slot 12 is provided in the casing of the electronic apparatus 1. The memory card slot 12 is a memory card mounting portion for detachably mounting the memory card 4. The memory card 4 incorporates a nonvolatile memory such as a flash EEPROM.

本電子機器1の筐体には、さらに、表示部13、電源ボタン14、および各種操作ボタン群15が配置されている。表示部13は、電子機器1の動作状態などの各種ステータスを表示する。操作ボタン群15は、例えば、電子機器1の動作モードの設定操作等のために使用される。   The housing of the electronic device 1 further includes a display unit 13, a power button 14, and various operation button groups 15. The display unit 13 displays various statuses such as the operating state of the electronic device 1. The operation button group 15 is used, for example, for an operation mode setting operation of the electronic device 1.

次に、図2を参照して、本電子機器1のシステム構成を説明する。   Next, a system configuration of the electronic apparatus 1 will be described with reference to FIG.

電子機器1は、上述のハードディスクドライブ(HDD)11に加え、ハブ21、フラッシュメモリインターフェース22、データ転送制御回路23、セレクタ24、ホスト接続認識装置25、メモリカード認識装置26、および電源回路27を備えている。   The electronic device 1 includes a hub 21, a flash memory interface 22, a data transfer control circuit 23, a selector 24, a host connection recognition device 25, a memory card recognition device 26, and a power supply circuit 27 in addition to the hard disk drive (HDD) 11 described above. I have.

本電子機器1は例えばUSBマスストレージクラスに対応している。ハードディスクドライブ(HDD)11およびフラッシュメモリインターフェース22の各々は、例えばUSBファンクションデバイスとして機能する。本電子機器1がコンピュータ2に接続された場合、ハードディスクドライブ(HDD)11、およびメモリカードスロット12に装着されたメモリカード4は、コンピュータ2からはそれぞれ外部ドライブとして認識される。   The electronic device 1 corresponds to, for example, a USB mass storage class. Each of the hard disk drive (HDD) 11 and the flash memory interface 22 functions as, for example, a USB function device. When the electronic apparatus 1 is connected to the computer 2, the hard disk drive (HDD) 11 and the memory card 4 installed in the memory card slot 12 are recognized as external drives by the computer 2.

ハブ21は、コンピュータ2をハードディスクドライブ(HDD)11およびフラッシュメモリインターフェース22に選択的に接続するための回路である。このハブ21は、コンピュータ2からのアクセス要求(コマンド)に応じて、そのアクセス要求で指定されるハードディスクドライブ(HDD)11およびメモリカード4の一方とコンピュータ2との間のデータ転送を実行する。   The hub 21 is a circuit for selectively connecting the computer 2 to the hard disk drive (HDD) 11 and the flash memory interface 22. In response to an access request (command) from the computer 2, the hub 21 executes data transfer between the computer 2 and one of the hard disk drive (HDD) 11 and the memory card 4 specified by the access request.

フラッシュメモリインターフェース22は、メモリカードスロット12に装着されたメモリカード4をアクセス制御するメモリカードコントローラである。このフラッシュメモリインターフェース22は、ハブ21を介してコンピュータ2から送信されるアクセス要求またはデータ転送制御回路23から送信されるアクセス要求に応じて、メモリカード4をアクセス制御する。   The flash memory interface 22 is a memory card controller that controls access to the memory card 4 mounted in the memory card slot 12. The flash memory interface 22 controls access to the memory card 4 in response to an access request transmitted from the computer 2 via the hub 21 or an access request transmitted from the data transfer control circuit 23.

データ転送制御回路23は本電子機器1の動作を制御する。このデータ転送制御回路23はプロセッサを含むマイクロコンピュータによって実現することができる。データ転送制御回路23は、フラッシュメモリインターフェース22およびハードディスクドライブ(HDD)11にそれぞれアクセス要求を発行することにより、メモリカード4に記憶されているデータをハードディスクドライブ(HDD)11に保存するためのデータ転送を制御する機能を有している。このデータ転送制御回路23によるメモリカード4からハードディスクドライブ(HDD)11へのデータ転送は、メモリカード4の記憶内容をハードディスクドライブ(HDD)11にバックアップするために行われる。このデータ転送により、メモリカード4に記憶されている全てのファイルがハードディスクドライブ(HDD)11に保存される。   The data transfer control circuit 23 controls the operation of the electronic device 1. The data transfer control circuit 23 can be realized by a microcomputer including a processor. Data transfer control circuit 23 issues access requests to flash memory interface 22 and hard disk drive (HDD) 11 to store data stored in memory card 4 in hard disk drive (HDD) 11. It has a function to control transfer. Data transfer from the memory card 4 to the hard disk drive (HDD) 11 by the data transfer control circuit 23 is performed to back up the storage contents of the memory card 4 to the hard disk drive (HDD) 11. By this data transfer, all files stored in the memory card 4 are stored in the hard disk drive (HDD) 11.

データ転送制御回路23は、本電子機器1がコンピュータ2に接続されていない状態で、メモリカードスロット12にメモリカード4が装着された時に、上述のデータ転送を自動的に実行する。このデータ転送は、メモリカード4に記憶されているデータをハードディスクドライブ(HDD)11に移動する第1転送モードおよびメモリカード4に記憶されているデータをハードディスクドライブ(HDD)11にコピーする第2転送モードのいずれか一方の転送モードで実行される。転送モードを指定する転送モード情報はデータ転送制御回路23内のメモリなどに予め記憶されている。転送モード情報が示す転送モードは、ユーザが操作ボタン群15を操作することにより、第1転送モードと第2転送モードとの間で予め自由に切り替えることが出来る。   The data transfer control circuit 23 automatically executes the above-described data transfer when the electronic device 1 is not connected to the computer 2 and the memory card 4 is inserted into the memory card slot 12. In this data transfer, a first transfer mode in which data stored in the memory card 4 is moved to the hard disk drive (HDD) 11 and a second mode in which data stored in the memory card 4 is copied to the hard disk drive (HDD) 11 are stored. It is executed in one of the transfer modes. Transfer mode information for designating a transfer mode is stored in advance in a memory in the data transfer control circuit 23 or the like. The transfer mode indicated by the transfer mode information can be freely switched in advance between the first transfer mode and the second transfer mode by the user operating the operation button group 15.

セレクタ24は、データ転送制御回路23の制御の下、ハードディスクドライブ(HDD)11へのコマンドおよびデータの入力元をハブ21とフラッシュメモリインターフェース22との間で切り替える。セレクタ24は、本電子機器1がコンピュータ2に接続されている場合にはハブ21を選択し、本電子機器1がコンピュータ2に接続されていない場合にはフラッシュメモリインターフェース22を選択する。   The selector 24 switches the command and data input source to the hard disk drive (HDD) 11 between the hub 21 and the flash memory interface 22 under the control of the data transfer control circuit 23. The selector 24 selects the hub 21 when the electronic device 1 is connected to the computer 2, and selects the flash memory interface 22 when the electronic device 1 is not connected to the computer 2.

ホスト接続認識装置25は、本電子機器1がコンピュータ2に接続されているか否かを判別する。この判別は、例えば、本電子機器1に対する通信ケーブル3の接続の有無を検出したり、あるいはハブ21を介してコンピュータ2との通信を試行することなどによって行うことが出来る。   The host connection recognition device 25 determines whether or not the electronic device 1 is connected to the computer 2. This determination can be made, for example, by detecting whether or not the communication cable 3 is connected to the electronic apparatus 1 or by trying to communicate with the computer 2 via the hub 21.

メモリカード認識装置26は、メモリカードスロット12へのメモリカード4の装着および取り外しを検出する。この検出は、例えば、メモリカードスロット12に設けられたカード検出端子の電位に基づいて行うことが出来る。電源27は、内蔵バッテリまたは電池から各コンポーネントに供給すべき動作電源を生成する電源回路である。   The memory card recognition device 26 detects the insertion and removal of the memory card 4 from the memory card slot 12. This detection can be performed based on the potential of the card detection terminal provided in the memory card slot 12, for example. The power supply 27 is a power supply circuit that generates an operation power supply to be supplied to each component from a built-in battery or a battery.

本電子機器1は、以下の2つの動作モードで動作することができる。   The electronic apparatus 1 can operate in the following two operation modes.

(1)動作モード#1:
動作モード#1は、コンピュータ2からのアクセス要求に応じて、当該アクセス要求で指定される、メモリカード4およびハードディスクドライブ(HDD)11の一方とコンピュータ2との間のデータ転送を実行する動作モードである。コンピュータ2に本電子機器1が接続された場合、本電子機器1の動作モードは自動的に動作モード#1に設定される。この動作モード#1においては、本電子機器1内のフラッシュメモリインターフェース22はコンピュータ2に接続された外部メモリカードリーダ/ライタとして動作し、また本電子機器1内のハードディスクドライブ(HDD)11はコンピュータ2に接続された外部ハードディスクドライブとして動作する。この場合、メモリカード4に対するアクセスは、ハードディスクドライブ(HDD)11を介さずに、コンピュータ2とメモリカード4との間で直接的に実行される。
(1) Operation mode # 1:
The operation mode # 1 is an operation mode for executing data transfer between the computer 2 and one of the memory card 4 and the hard disk drive (HDD) 11 specified by the access request in response to an access request from the computer 2 It is. When the electronic device 1 is connected to the computer 2, the operation mode of the electronic device 1 is automatically set to operation mode # 1. In this operation mode # 1, the flash memory interface 22 in the electronic device 1 operates as an external memory card reader / writer connected to the computer 2, and the hard disk drive (HDD) 11 in the electronic device 1 is a computer. 2 operates as an external hard disk drive connected to 2. In this case, access to the memory card 4 is directly executed between the computer 2 and the memory card 4 without going through the hard disk drive (HDD) 11.

(2)動作モード#2:
動作モード#2は、メモリカード4がメモリカードスロット12に装着された時に、メモリカード4に記憶されているデータをハードディスクドライブ(HDD)11に保存するデータ転送をデータ転送制御回路23によって自動的に実行する動作モードである。電子機器1にコンピュータ2が接続されていない場合、電子機器1の動作モードは自動的に動作モード#2に設定される。
(2) Operation mode # 2:
In operation mode # 2, when the memory card 4 is inserted into the memory card slot 12, the data transfer control circuit 23 automatically transfers data stored in the hard disk drive (HDD) 11 to the data stored in the memory card 4. This is the operation mode to be executed. When the computer 2 is not connected to the electronic device 1, the operation mode of the electronic device 1 is automatically set to the operation mode # 2.

図3に示されているように、電子機器1にコンピュータ2が接続されていない場合には、ハブ21の機能は、データ転送制御回路23の制御の下に停止される。また、セレクタ24は、データ転送制御回路23の制御の下に、ハードディスクドライブ(HDD)11のコマンドおよびデータの入力元をハブ21からフラッシュメモリインターフェース22に切り替える。   As shown in FIG. 3, when the computer 2 is not connected to the electronic device 1, the function of the hub 21 is stopped under the control of the data transfer control circuit 23. The selector 24 switches the command and data input source of the hard disk drive (HDD) 11 from the hub 21 to the flash memory interface 22 under the control of the data transfer control circuit 23.

次に、図4乃至図6のフローチャートを参照して、本電子機器1の動作を説明する。   Next, the operation of the electronic apparatus 1 will be described with reference to the flowcharts of FIGS.

図4は、本電子機器1の動作モードを切り替える処理を説明するフローチャートである。ホスト接続認識装置25は、本電子機器1がコンピュータ2に接続されているかどうかを判別する(ステップS101)。この判別結果は、ホスト接続認識装置25からデータ転送制御回路23に通知される。   FIG. 4 is a flowchart for describing processing for switching the operation mode of the electronic apparatus 1. The host connection recognition device 25 determines whether or not the electronic device 1 is connected to the computer 2 (step S101). This determination result is notified from the host connection recognition device 25 to the data transfer control circuit 23.

本電子機器1がコンピュータ2に接続されている場合(ステップS101のYES)、データ転送制御回路23は、ハブ21の機能を有効にし、またセレクタ24にハードディスクドライブ(HDD)11のコマンドおよびデータの入力元としてハブ21を選択させることにより、本電子機器1の動作モードを動作モード#1に設定する(ステップS102)。   When the electronic apparatus 1 is connected to the computer 2 (YES in step S101), the data transfer control circuit 23 enables the function of the hub 21, and also sends the command and data of the hard disk drive (HDD) 11 to the selector 24. By selecting the hub 21 as the input source, the operation mode of the electronic device 1 is set to the operation mode # 1 (step S102).

一方、本電子機器1がコンピュータ2に接続されていない場合(ステップS101のNO)、データ転送制御回路23は、ハブ21の機能を無効にし、またセレクタ24にハードディスクドライブ(HDD)11のコマンドおよびデータの入力元としてフラッシュメモリインターフェース22を選択させることにより、本電子機器1の動作モードを動作モード#2に設定する(ステップS103)。   On the other hand, when the electronic device 1 is not connected to the computer 2 (NO in step S101), the data transfer control circuit 23 invalidates the function of the hub 21, and also sends the command of the hard disk drive (HDD) 11 to the selector 24 and By selecting the flash memory interface 22 as a data input source, the operation mode of the electronic device 1 is set to the operation mode # 2 (step S103).

図5のフローチャートは、動作モード#1における本電子機器1の動作を示している。   The flowchart in FIG. 5 shows the operation of the electronic apparatus 1 in the operation mode # 1.

本電子機器1は、コンピュータ2から送信される、ハードディスクドライブ(HDD)11またはメモリカード4に対するアクセス要求(コマンド)を受信する(ステップS111)。このアクセス要求には、ハードディスクドライブ(HDD)11およびフラッシュメモリインターフェース22のいずれか一方をアクセス対象の外部ドライブとして指定するドライブ指定情報が含まれている。ハブ21は、このドライブ指定情報に応じて、アクセス対象の外部ドライブがハードディスクドライブ(HDD)11およびフラッシュメモリインターフェース22のいずれであるかを判別する(ステップS112)。   The electronic apparatus 1 receives an access request (command) for the hard disk drive (HDD) 11 or the memory card 4 transmitted from the computer 2 (step S111). This access request includes drive designation information for designating either the hard disk drive (HDD) 11 or the flash memory interface 22 as an external drive to be accessed. The hub 21 determines whether the external drive to be accessed is the hard disk drive (HDD) 11 or the flash memory interface 22 according to the drive designation information (step S112).

アクセス対象の外部ドライブがハードディスクドライブ(HDD)11であれば、ハブ21は、ハードディスクドライブ(HDD)11とコンピュータ2とを接続する。これにより、ハードディスクドライブ(HDD)11に対するアクセスが実行される(ステップS113)。ステップS113では、ハードディスクドライブ(HDD)11とコンピュータ2との間のデータ転送がハブ21を介して実行される。一方、アクセス対象の外部ドライブがフラッシュメモリインターフェース22であれば、ハブ21は、フラッシュメモリインターフェース22とコンピュータ2とを接続する。これにより、フラッシュメモリインターフェース22によってメモリカード4に対するアクセスが実行される(ステップS114)。このステップS114では、メモリカード4とコンピュータ2との間のデータ転送がハブ21を介して実行される。   If the external drive to be accessed is a hard disk drive (HDD) 11, the hub 21 connects the hard disk drive (HDD) 11 and the computer 2. Thereby, access to the hard disk drive (HDD) 11 is executed (step S113). In step S 113, data transfer between the hard disk drive (HDD) 11 and the computer 2 is executed via the hub 21. On the other hand, if the external drive to be accessed is the flash memory interface 22, the hub 21 connects the flash memory interface 22 and the computer 2. Thereby, access to the memory card 4 is executed by the flash memory interface 22 (step S114). In step S <b> 114, data transfer between the memory card 4 and the computer 2 is executed via the hub 21.

図6のフローチャートは、動作モード#2における本電子機器1の動作を示している。   The flowchart of FIG. 6 shows the operation of the electronic apparatus 1 in the operation mode # 2.

データ転送制御回路23は、メモリカード認識装置26からの通知を監視することによって、メモリカードスロット12にメモリカード4が装着されたがどうかを判別する(ステップS121)。メモリカードスロット12にメモリカード4が装着された時、データ転送制御回路23は、メモリカード4に記憶されたデータをハードディスクドライブ(HDD)11に保存するためのデータ転送を自動的に開始する(ステップS122)。このステップS122では、メモリカード4に記憶されている全てのデータファイルがハードディスクドライブ(HDD)11に転送される。   The data transfer control circuit 23 monitors the notification from the memory card recognition device 26 to determine whether or not the memory card 4 is inserted in the memory card slot 12 (step S121). When the memory card 4 is inserted into the memory card slot 12, the data transfer control circuit 23 automatically starts data transfer for storing the data stored in the memory card 4 in the hard disk drive (HDD) 11 ( Step S122). In step S122, all data files stored in the memory card 4 are transferred to the hard disk drive (HDD) 11.

以上のように、本電子機器1においては、コンピュータ2に接続されているか否かによって自動的に動作モードの切替えが行われる。本電子機器1がコンピュータ2に接続されておらず単独で動作する場合には、メモリカード4の装着が検出されたときにメモリカード4からハードディスクドライブ(HDD)11へのデータ転送が自動的に実行される。したがって、ユーザによる特別な操作無しで、メモリカード4の内容を容易にバックアップすることが可能となる。また、本電子機器1がコンピュータ2に接続されている場合には、メモリカード4を装着しても、メモリカード4からハードディスクドライブ(HDD)11への自動データ転送は実行されず、コンピュータ2からのアクセス要求に応じて、メモリカード4およびハードディスクドライブ(HDD)11に対するアクセスが個別に実行される。よって、メモリカード4およびハードディスクドライブ(HDD)11の双方をコンピュータ2の外部ドライブとしてそれぞれ使用することができる。   As described above, in the electronic apparatus 1, the operation mode is automatically switched depending on whether or not it is connected to the computer 2. When the electronic device 1 is not connected to the computer 2 and operates alone, data transfer from the memory card 4 to the hard disk drive (HDD) 11 is automatically performed when the installation of the memory card 4 is detected. Executed. Therefore, the contents of the memory card 4 can be easily backed up without any special operation by the user. When the electronic apparatus 1 is connected to the computer 2, even if the memory card 4 is inserted, automatic data transfer from the memory card 4 to the hard disk drive (HDD) 11 is not executed. In response to the access request, the memory card 4 and the hard disk drive (HDD) 11 are individually accessed. Therefore, both the memory card 4 and the hard disk drive (HDD) 11 can be used as external drives for the computer 2.

なお、メモリカードに限らず、例えば、小型磁気ディスクを搭載した記憶装置などのような可搬型の様々な外部記憶媒体を利用することができる。   In addition, not only a memory card but various portable external storage media, such as a storage device mounted with a small magnetic disk, can be used.

また本発明は上記実施形態そのままに限定されるものではなく、実施段階ではその要旨を逸脱しない範囲で構成要素を変形して具体化できる。また、上記実施形態に開示されている複数の構成要素の適宜な組み合わせにより、種々の発明を形成できる。例えば、実施形態に示される全構成要素から幾つかの構成要素を削除してもよい。さらに、異なる実施形態にわたる構成要素を適宜組み合わせてもよい。   Further, the present invention is not limited to the above-described embodiment as it is, and can be embodied by modifying the constituent elements without departing from the scope of the invention in the implementation stage. In addition, various inventions can be formed by appropriately combining a plurality of components disclosed in the embodiment. For example, some components may be deleted from all the components shown in the embodiment. Furthermore, constituent elements over different embodiments may be appropriately combined.

本発明の一実施形態に係る電子機器の外観を示す斜視図。1 is a perspective view illustrating an appearance of an electronic apparatus according to an embodiment of the invention. 同実施形態の電子機器のシステム構成を示すブロック図。2 is an exemplary block diagram showing the system configuration of the electronic apparatus of the embodiment. FIG. 同実施形態の電子機器がコンピュータに接続されていない場合の動作を説明するための図。FIG. 6 is an exemplary view for explaining an operation when the electronic apparatus of the embodiment is not connected to a computer. 同実施形態の電子機器によって実行されるモード切替え動作を説明するためのフローチャート。6 is an exemplary flowchart for explaining a mode switching operation executed by the electronic apparatus of the embodiment. 同実施形態の電子機器が第1動作モードに設定されている場合に実行される処理手順を示すフローチャート。6 is an exemplary flowchart illustrating a processing procedure which is executed when the electronic apparatus of the embodiment is set in a first operation mode. 同実施形態の電子機器が第2動作モードに設定されている場合に実行される処理手順を示すフローチャート。6 is an exemplary flowchart illustrating a processing procedure which is executed when the electronic apparatus of the embodiment is set in a second operation mode.

符号の説明Explanation of symbols

1…電子機器、2…コンピュータ、4…メモリカード、11…ハードディスクドライブ、12…メモリカードスロット、21…ハブ、22…フラッシュメモリインターフェース、23…データ転送制御回路、25…ホスト接続認識装置、26…メモリカード認識装置。   DESCRIPTION OF SYMBOLS 1 ... Electronic device, 2 ... Computer, 4 ... Memory card, 11 ... Hard disk drive, 12 ... Memory card slot, 21 ... Hub, 22 ... Flash memory interface, 23 ... Data transfer control circuit, 25 ... Host connection recognition apparatus, 26 ... Memory card recognition device.

Claims (5)

ホスト装置に接続可能な電子機器において、
ディスク記憶装置と、
外部記憶媒体を取り外し自在に装着可能な記憶媒体装着部と、
前記ホスト装置からのアクセス要求に応じて、当該アクセス要求で指定される、前記記憶媒体装着部に装着された前記外部記憶媒体および前記ディスク記憶装置の一方と前記ホスト装置との間のデータ転送を実行する第1動作モード、および前記外部記憶媒体が前記記憶媒体装着部に装着されたか否かを検出し、装着されたことが検出されたことに応答して前記外部記憶媒体に記憶されているデータを前記ディスク記憶装置に保存するためのデータ転送を実行する第2動作モードの一方の動作モードで前記電子機器の動作を制御する制御手段と、
前記電子機器が前記ホスト装置に接続されているか否かを判別する判別手段と、
前記電子機器が前記ホスト装置に接続されている場合には前記制御手段が前記第1動作モードに設定され、前記電子機器が前記ホスト装置に接続されていない場合には前記制御手段が前記第2動作モードに設定されるように、前記判別手段の判別結果に基づいて、前記制御手段を前記第1動作モードおよび前記第2動作モードの一方の動作モードに設定する手段とを具備することを特徴とする電子機器。
In an electronic device that can be connected to a host device,
A disk storage device;
A storage medium mounting part that can detachably mount an external storage medium;
In response to an access request from the host device, data transfer between the host device and one of the external storage medium and the disk storage device mounted in the storage medium mounting unit specified by the access request is performed. The first operation mode to be executed and whether or not the external storage medium is attached to the storage medium attachment unit are detected, and stored in the external storage medium in response to the detection of attachment. Control means for controlling the operation of the electronic device in one operation mode of the second operation mode for executing data transfer for storing data in the disk storage device;
Determining means for determining whether or not the electronic device is connected to the host device;
The control means is set to the first operation mode when the electronic device is connected to the host device, and the control means is set to the second operation mode when the electronic device is not connected to the host device. Means for setting the control means to one of the first operation mode and the second operation mode based on the determination result of the determination means so that the operation mode is set. Electronic equipment.
前記外部記憶媒体に記憶されているデータを前記ディスク記憶装置に移動する第1転送モードおよび前記外部記憶媒体に記憶されているデータを前記ディスク記憶装置にコピーする第2転送モードの一方を指定する転送モード情報を記憶する手段をさらに具備し、
前記制御手段は、前記第2動作モードにおいて、前記外部記憶媒体に記憶されているデータを前記ディスク記憶装置に保存するためのデータ転送を前記転送モード情報で指定される前記第1転送モードおよび前記第2転送モードの一方の転送モードで実行することを特徴とする請求項1記載の電子機器。
Specifies one of a first transfer mode in which data stored in the external storage medium is moved to the disk storage device and a second transfer mode in which data stored in the external storage medium is copied to the disk storage device Means for storing transfer mode information;
In the second operation mode, the control means includes the first transfer mode specified by the transfer mode information and data transfer for storing data stored in the external storage medium in the disk storage device; The electronic device according to claim 1, wherein the electronic device is executed in one transfer mode of the second transfer mode.
前記制御手段は、前記第1動作モードにおいて、前記外部記憶媒体が前記記憶媒体装着部に装着されたか否かを検出し、装着されたことが検出されたことに応答して前記ホスト装置に前記外部記憶媒体の存在を通知するための手段を含むことを特徴とする請求項1記載の電子機器。   In the first operation mode, the control unit detects whether or not the external storage medium is attached to the storage medium attachment unit, and responds to the detection of attachment to the host device. 2. The electronic apparatus according to claim 1, further comprising means for notifying the presence of an external storage medium. 外部記憶媒体を取り外し自在に装着可能な記憶媒体装着部とディスク記憶装置とを備えた電子機器の動作を制御する制御方法であって、
前記電子機器がホスト装置に接続されているか否かを判別するステップと、
前記電子機器が前記ホスト装置に接続されていることが判別された場合、前記電子機器の動作モードを、前記ホスト装置からのアクセス要求に応じて、当該アクセス要求で指定される、前記記憶媒体装着部に装着された前記外部記憶媒体および前記ディスク記憶装置の一方と前記ホスト装置との間のデータ転送を実行する第1動作モードに設定するステップと、
前記電子機器が前記ホスト装置に接続されていないことが判別された場合、前記電子機器の動作モードを、前記外部記憶媒体が前記記憶媒体装着部に装着されたか否かを検出し、装着されたことが検出されたことに応答して前記外部記憶媒体に記憶されているデータを前記ディスク記憶装置に保存するためのデータ転送を実行する第2動作モードに設定するステップとを具備することを特徴とする制御方法。
A control method for controlling the operation of an electronic device including a storage medium mounting unit and a disk storage device in which an external storage medium can be detachably mounted,
Determining whether the electronic device is connected to a host device; and
When it is determined that the electronic device is connected to the host device, the operation mode of the electronic device is specified by the access request according to the access request from the host device. Setting to a first operation mode for executing data transfer between the host device and one of the external storage medium and the disk storage device mounted in a section;
When it is determined that the electronic device is not connected to the host device, the operation mode of the electronic device is detected by detecting whether the external storage medium is attached to the storage medium attachment unit. And setting to a second operation mode for executing data transfer for storing data stored in the external storage medium in the disk storage device in response to detection of Control method.
前記電子機器には、前記外部記憶媒体に記憶されているデータを前記ディスク記憶装置に移動する第1転送モードおよび前記外部記憶媒体に記憶されているデータを前記ディスク記憶装置にコピーする第2転送モードの一方を指定する転送モード情報が記憶されており、
前記外部記憶媒体に記憶されているデータを前記ディスク記憶装置に保存するためのデータ転送は、前記転送モード情報で指定される前記第1転送モードおよび前記第2転送モードの一方の転送モードで実行されることを特徴とする請求項4記載の制御方法。
The electronic device includes a first transfer mode for moving data stored in the external storage medium to the disk storage device, and a second transfer for copying data stored in the external storage medium to the disk storage device. Transfer mode information that specifies one of the modes is stored,
Data transfer for saving the data stored in the external storage medium to the disk storage device is executed in one of the first transfer mode and the second transfer mode specified by the transfer mode information. The control method according to claim 4, wherein:
JP2004188098A 2004-06-25 2004-06-25 Electronic device and control method for the same Pending JP2006011827A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2004188098A JP2006011827A (en) 2004-06-25 2004-06-25 Electronic device and control method for the same

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2004188098A JP2006011827A (en) 2004-06-25 2004-06-25 Electronic device and control method for the same

Publications (1)

Publication Number Publication Date
JP2006011827A true JP2006011827A (en) 2006-01-12

Family

ID=35779026

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2004188098A Pending JP2006011827A (en) 2004-06-25 2004-06-25 Electronic device and control method for the same

Country Status (1)

Country Link
JP (1) JP2006011827A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011213079A (en) * 2010-04-02 2011-10-27 Roland Dg Corp Computer program for manufacturing products by using a plurality of devices

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011213079A (en) * 2010-04-02 2011-10-27 Roland Dg Corp Computer program for manufacturing products by using a plurality of devices

Similar Documents

Publication Publication Date Title
JP4125328B2 (en) Electronic device, control method of peripheral device by electronic device, program, and storage medium
US8225010B2 (en) Data recording apparatus and method
US20060236015A1 (en) Information processing apparatus and operation control method
US7293187B2 (en) Image sensing apparatus and power managing method
US5832285A (en) Battery powered computer capable of switching to a suspend mode based on the connection status of an external device
TW200841246A (en) Apparatus, method, computer program and recording medium for processing information
US20050097241A1 (en) Portable storage device
JP2006011827A (en) Electronic device and control method for the same
EP1470471B1 (en) Storage apparatus and control method
JP5104944B2 (en) Hardware resource management device
JP2010117949A (en) Information processor, method for controlling the same, and program
JP2007164738A (en) Data storage device and image processing device
JP6435650B2 (en) Electronic device and program
JP2918036B2 (en) Portable storage devices
JP5270180B2 (en) Media reader / writer
JP4974699B2 (en) Image input device
JP2007114914A (en) Recording medium and electronic equipment
JP2006093950A (en) Method of controlling start of system
JP2006155024A (en) Hub function controller
KR100576179B1 (en) Portable complex device
JP2002366264A (en) Equipment and system for radio communication
JP5359309B2 (en) Electronics
KR20070115084A (en) Computer device and computer card install method
JP2006195770A (en) Peripheral processing system, semiconductor storage device, external device, processing method, and program
JP2006146640A (en) Peripheral processing system, connection apparatus, external apparatus, processing method, and program