JPH0963192A - Data recording device and data recording method - Google Patents
Data recording device and data recording methodInfo
- Publication number
- JPH0963192A JPH0963192A JP23467995A JP23467995A JPH0963192A JP H0963192 A JPH0963192 A JP H0963192A JP 23467995 A JP23467995 A JP 23467995A JP 23467995 A JP23467995 A JP 23467995A JP H0963192 A JPH0963192 A JP H0963192A
- Authority
- JP
- Japan
- Prior art keywords
- data
- recording
- recording medium
- file
- recorded
- 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
Links
Landscapes
- Signal Processing For Digital Recording And Reproducing (AREA)
Abstract
(57)【要約】
【課題】 データ記録中に記録媒体が取り出された場合
にも、記録媒体へのデータの記録を正常に再開すること
ができるデータ記録装置を提供する。
【解決手段】 全体制御部11は、記録媒体の挿入口を
覆う蓋が開いたことを検出すると、記録媒体への画像デ
ータの記録動作を直ちに停止して、FATおよびディレ
クトリの連鎖を完結し、ファイル名やファイルサイズ等
の記録の状態に関する情報およびボリュームシリアルナ
ンバをRAM12に記憶する。記録媒体10が取り出さ
れ、開口部に再び挿入されると、RAM12に記憶した
情報を参照して記録媒体の同一性を判断し、一致する場
合には、RAM12から前記ファイル名やファイルサイ
ズ等の記録の状態に関する情報を読み出し、記録を再開
する。
(57) [PROBLEMS] To provide a data recording device capable of normally restarting recording of data on a recording medium even when the recording medium is taken out during data recording. When detecting that a lid covering an insertion port of a recording medium is opened, a general control unit immediately stops the recording operation of image data on the recording medium to complete a chain of FAT and a directory. The RAM 12 stores information about the recording state such as the file name and file size and the volume serial number. When the recording medium 10 is taken out and re-inserted into the opening, the information stored in the RAM 12 is referred to determine the identity of the recording medium. Information regarding the state of recording is read and recording is restarted.
Description
【0001】[0001]
【発明の属する技術分野】本発明は着脱可能な記録媒体
にデータを記録するデータ記録装置およびデータ記録方
法に関し、特に、データ記録中の記録媒体の取り出しに
より、記録媒体に記録されたデータが失われることを防
止するためのデータ保護機能を備えたデータ記録装置お
よびデータ記録方法に関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a data recording device and a data recording method for recording data on a removable recording medium, and more particularly, when the recording medium is taken out during data recording, the data recorded on the recording medium is lost. The present invention relates to a data recording device and a data recording method having a data protection function for preventing the data from being exposed.
【0002】[0002]
【従来の技術】従来、着脱可能な記録媒体にデータを記
録するデータ記録装置においては、以下の2つの記録媒
体の取り出し(イジェクト)方式が公知である。2. Description of the Related Art Conventionally, in a data recording device for recording data on a removable recording medium, the following two recording medium ejecting methods are known.
【0003】即ち、(1)フロッピーディスク(3.5
インチ、5.25インチ他)を記録媒体として用いる場
合の機械的機構方式による記録媒体の取り出し方式。That is, (1) floppy disk (3.5
Inch, 5.25 inch, etc.) is a method of taking out the recording medium by a mechanical mechanism method when the recording medium is used.
【0004】(2)光磁気ディスクを記録媒体として用
いる場合の所謂ローディング方式により記録媒体の取り
出し方式。(2) A method of taking out the recording medium by a so-called loading method when the magneto-optical disk is used as the recording medium.
【0005】このような記録媒体の取り出し方式を有す
るデータ記録装置においては、例えば表示手段にデータ
記録中であることを表示することにより、データ記録中
の記録媒体の取り出しを防止するようにしていた。In the data recording apparatus having such a recording medium ejecting method, the recording medium is prevented from being ejected during data recording, for example, by displaying on the display means that data is being recorded. .
【0006】[0006]
【発明が解決しようとする課題】上記従来のデータ記録
装置においては、表示手段における表示により、使用者
に注意を促して、データ記録中の記録媒体の取り出しを
防止するようにしていたが、この方法では、使用者が前
記表示に気づかずに誤ってデータ記録中に記録媒体を取
り出すことがあり、この場合には、記録途中のデータが
記録媒体に残るため、前記記録媒体へのデータの書き込
みを再開する際に正常にデータを書き込むことができな
くなる場合があった。In the above-mentioned conventional data recording apparatus, the display on the display means warns the user to prevent the recording medium from being taken out during data recording. In the method, the user may erroneously take out the recording medium during data recording without noticing the display. In this case, since the data being recorded remains in the recording medium, the writing of the data to the recording medium is performed. There was a case where data could not be written normally when restarting.
【0007】本発明は、データ記録中に記録媒体が取り
出された場合にも、記録媒体へのデータの記録を正常に
再開することができるデータ記録装置を提供することを
目的とする。An object of the present invention is to provide a data recording apparatus which can normally resume recording of data on a recording medium even if the recording medium is taken out during data recording.
【0008】[0008]
【課題を解決するための手段】請求項1記載の発明は、
記録媒体を装着する装着手段と、該装着手段により装着
された記録媒体にデータを記録する記録手段と、前記装
着手段に装着された記録媒体を装置外部に排出する排出
手段と、該排出手段に対して記録媒体の装置外部への排
出を指示する排出指示手段とを備えたデータ記録装置に
おいて、データ記録中に前記記録媒体の排出が指示され
た場合、該記録媒体に記録されたデータを保護するデー
タ保護手段を備えたことを特徴とする。According to the first aspect of the present invention,
Mounting means for mounting the recording medium, recording means for recording data on the recording medium mounted by the mounting means, discharging means for discharging the recording medium mounted on the mounting means to the outside of the apparatus, and the discharging means. On the other hand, in a data recording apparatus having a discharge instruction means for instructing the discharge of the recording medium to the outside of the apparatus, when the discharge of the recording medium is instructed during data recording, the data recorded on the recording medium is protected. It is characterized in that it is provided with a data protection means.
【0009】請求項2記載の発明は、請求項1記載のデ
ータ記録装置において、前記データ保護手段は、前記記
録媒体を装置外部に排出するための予備状態を検出する
検出手段と、該検出手段の出力に応じて、前記データの
記録動作を中断する中断手段と、該中断した時点までに
記録したデータをファイルとして管理するためのファイ
ル管理データを作成するファイル管理データ作成手段と
を含むことを特徴とする。According to a second aspect of the present invention, in the data recording apparatus according to the first aspect, the data protection means detects a preliminary state for ejecting the recording medium to the outside of the apparatus, and the detection means. In response to the output of the data, the interrupting means for interrupting the recording operation of the data, and the file management data creating means for creating the file management data for managing the data recorded up to the interrupted time as a file. Characterize.
【0010】請求項3記載の発明は、請求項1記載のデ
ータ記録装置において、前記データ保護手段は、前記記
録媒体を装置外部に排出するための予備状態を検出する
検出手段と、該検出手段の出力に応じて、前記データの
記録動作を中断する中断手段と、該中断した時点までに
記録したデータを前記記録媒体から消去する消去手段と
を含むことを特徴とする。According to a third aspect of the present invention, in the data recording apparatus according to the first aspect, the data protection means detects a preliminary state for ejecting the recording medium to the outside of the apparatus, and the detection means. In accordance with the output of the data recording device, the data recording operation is interrupted, and the data recorded up to the time of the interruption is erased from the recording medium.
【0011】請求項4記載の発明は、請求項2または請
求項3記載のデータ記録装置において、前記検出手段が
検出する予備状態は、前記装着手段に装着された記録媒
体を覆う蓋部が開けられた状態であることを特徴とす
る。According to a fourth aspect of the present invention, in the data recording apparatus according to the second or third aspect, the preliminary state detected by the detecting means is such that a lid portion that covers the recording medium mounted on the mounting means is opened. It is characterized in that it is in a state where
【0012】請求項5記載の発明は、請求項2乃至請求
項4のいずれかに記載のデータ記録装置において、前記
排出指示手段は少なくとも2段階の第1および第2スト
ロークを有する排出指示スイッチから成り、前記検出手
段が検出する予備状態は、前記排出指示スイッチが前記
第1ストロークと第2ストロークとの間まで押し込まれ
た状態であることを特徴とする。According to a fifth aspect of the present invention, in the data recording apparatus according to any of the second to fourth aspects, the discharge instruction means is a discharge instruction switch having at least two stages of first and second strokes. It is characterized in that the preliminary state detected by the detection means is a state in which the discharge instruction switch is pushed in between the first stroke and the second stroke.
【0013】請求項6記載の発明は、請求項1記載のデ
ータ記録装置において、前記データ保護手段は、前記排
出手段に対して前記排出指示手段により前記記録媒体の
排出が指示されたことを検出する検出手段と、該検出手
段の出力に応じて、前記排出手段による記録媒体の排出
を所定期間禁止して前記記録動作を中断する中断手段
と、前記所定期間中に前記中断した時点までに記録した
データをファイルとして管理するためのファイル管理デ
ータを作成するファイル管理データ作成手段とを含むこ
とを特徴とする。According to a sixth aspect of the present invention, in the data recording apparatus according to the first aspect, the data protection means detects that the ejection means has instructed the ejection means to eject the recording medium. Detecting means, and an interruption means for interrupting the ejection of the recording medium by the ejection means for a predetermined period according to the output of the detection means to interrupt the recording operation, and recording by the interruption point during the predetermined period. File management data creating means for creating file management data for managing the created data as a file.
【0014】請求項7記載の発明は、請求項6記載のデ
ータ記録装置において、前記ファイル管理データ作成手
段が作成するファイル管理データは、ファイルアロケー
ションテーブル、ディレクトリ、および記録媒体固有の
ボリュームシリアルナンバーを含むことを特徴とする。According to a seventh aspect of the present invention, in the data recording apparatus according to the sixth aspect, the file management data created by the file management data creating means is a file allocation table, a directory, and a volume serial number unique to the recording medium. It is characterized by including.
【0015】請求項8記載の発明は、請求項1記載のデ
ータ記録装置において、前記データ保護手段は、前記排
出手段に対して前記排出指示手段により記録媒体の排出
が指示されたことを検出する検出手段と、該検出手段の
出力に応じて、前記排出手段による記録媒体の排出を所
定期間禁止して前記記録動作を中断する中断手段と、前
記所定期間中に前記中断した時点までに記録したデータ
を消去する消去手段とを含むことを特徴とする。According to an eighth aspect of the invention, in the data recording apparatus according to the first aspect, the data protection means detects that the ejection means has instructed the ejection means to eject the recording medium. The detection means, the interruption means for prohibiting the ejection of the recording medium by the ejection means for a predetermined period according to the output of the detection means, and the recording operation are interrupted, and the recording is performed by the interruption point during the predetermined period. And an erasing means for erasing data.
【0016】請求項9記載の発明は、記録媒体を装着
し、該装着された記録媒体にデータを記録し、前記記録
媒体の装置外部への排出を指示するデータ記録方法にお
いて、データ記録中に前記記録媒体の排出が指示された
場合、該記録媒体に記録されたデータを保護することを
特徴とする。According to a ninth aspect of the present invention, there is provided a data recording method for mounting a recording medium, recording data on the mounted recording medium, and instructing the discharge of the recording medium to the outside of the apparatus. When the ejection of the recording medium is instructed, the data recorded on the recording medium is protected.
【0017】[0017]
【発明の実施の形態】以下に図面を参照して本発明の実
施の形態を詳細に説明する。BEST MODE FOR CARRYING OUT THE INVENTION Embodiments of the present invention will be described in detail below with reference to the drawings.
【0018】(第1の実施の形態)図1は、本発明の第
1の実施の形態に係るデータ記録装置の概略構成を示す
ブロック図である。本実施の形態のデータ記録装置は、
被写体画像を電気信号の画像データに変換して、記録媒
体に記録する、所謂電子カメラである。(First Embodiment) FIG. 1 is a block diagram showing the schematic arrangement of a data recording apparatus according to the first embodiment of the present invention. The data recording device of the present embodiment is
This is a so-called electronic camera that converts a subject image into image data of an electric signal and records the image data on a recording medium.
【0019】同図に示すように、データ記録装置は、レ
ンズ1、シャッタ2、撮像素子3、第1の信号処理回路
4、A/D変換器5、第2の信号処理回路6、DRAM
(記憶保持動作が必要な随時読出し・書込みメモリ)
7、EEPROM(電気的に消去書き込み可能なプログ
ラマブルROM)8、媒体制御I/F(インタフェー
ス)部9、記録媒体10、全体制御部11、RAM1
2、タイミング発生部13、および外部I/F部14か
ら構成され、全体制御部11、第2の信号処理回路6、
DRAM7、EEPROM8、媒体制御I/F部9、お
よび外部I/F部14はそれぞれバスを介して接続され
ている。As shown in the figure, the data recording device includes a lens 1, a shutter 2, an image sensor 3, a first signal processing circuit 4, an A / D converter 5, a second signal processing circuit 6, and a DRAM.
(A read / write memory that requires a memory hold operation)
7, EEPROM (electrically erasable and programmable programmable ROM) 8, medium control I / F (interface) unit 9, recording medium 10, overall control unit 11, RAM 1
2, a timing generation unit 13, and an external I / F unit 14, and an overall control unit 11, a second signal processing circuit 6,
The DRAM 7, the EEPROM 8, the medium control I / F unit 9, and the external I / F unit 14 are connected to each other via a bus.
【0020】撮像素子3は、レンズ1およびシャッタ2
を介して結像された被写体画像をアナログ画像データに
変換する。第1の信号処理回路4は撮像素子3から出力
される画像データに各種の補正およびクランプ等の処理
を行う。A/D変換器5は第1の信号処理回路4により
処理された画像データをディジタル画像データに変換す
る。第2の信号処理回路6はA/D変換器5によりディ
ジタル信号に変換された画像データに圧縮等の処理を行
う。The image pickup device 3 includes a lens 1 and a shutter 2.
The subject image formed via the is converted into analog image data. The first signal processing circuit 4 performs various kinds of correction and clamping processing on the image data output from the image sensor 3. The A / D converter 5 converts the image data processed by the first signal processing circuit 4 into digital image data. The second signal processing circuit 6 performs processing such as compression on the image data converted into a digital signal by the A / D converter 5.
【0021】DRAM7は第2の信号処理回路6により
圧縮等の処理が行われた画像データを少なくとも1画面
分、一時的に記憶する。EEPROM8はFLASHメ
モリ等から構成され、画像データを少なくとも1画面分
記憶する。媒体制御I/F部9は記録媒体10とデータ
記録装置各部との間で、画像データの受け渡しを行う。
記録媒体10はハードディスクやFLASHメモリ等の
着脱可能な記録媒体であり、画像データの記録または読
み出しを行う。The DRAM 7 temporarily stores at least one screen of image data that has been subjected to processing such as compression by the second signal processing circuit 6. The EEPROM 8 is composed of a FLASH memory or the like, and stores image data for at least one screen. The medium control I / F unit 9 transfers image data between the recording medium 10 and each unit of the data recording apparatus.
The recording medium 10 is a removable recording medium such as a hard disk or a FLASH memory, and records or reads image data.
【0022】全体制御部11は装置全体の制御を行う。
RAM12は全体制御部11内において使用される各種
データを記憶する。タイミング発生部13は、各種タイ
ミング信号を撮像素子3やA/D変換器5に出力する。
外部I/F部14は画像データを図示しない外部のコン
ピュータ等に伝送する。The overall controller 11 controls the entire apparatus.
The RAM 12 stores various data used in the overall control unit 11. The timing generator 13 outputs various timing signals to the image sensor 3 and the A / D converter 5.
The external I / F unit 14 transmits the image data to an external computer or the like (not shown).
【0023】次に、図2を参照して記録媒体10におけ
る画像データの記録方式を説明する。図2は記録媒体1
0に生成される管理領域およびファイル領域の構成を示
す図である。記録媒体10は管理領域とファイル領域と
に分割され、一組の管理領域およびファイル領域をドラ
イブという。記録媒体10には1または複数のドライブ
が生成される。同図に示すように、1つのドライブは、
固有の識別番号(以下、ボリュームシリアルナンバーと
称する)および固有の識別名(以下、ボリュームラベル
と称する)を有する。Next, a method of recording image data on the recording medium 10 will be described with reference to FIG. FIG. 2 shows a recording medium 1
It is a figure which shows the structure of the management area | region and file area | region produced | generated by 0. The recording medium 10 is divided into a management area and a file area, and a set of the management area and the file area is called a drive. One or more drives are generated on the recording medium 10. As shown in the figure, one drive is
It has a unique identification number (hereinafter referred to as volume serial number) and a unique identification name (hereinafter referred to as volume label).
【0024】管理領域は、予約領域、ファイルアロケー
ションテーブル(以下、FATと称する)、およびディ
レクトリ等のファイルを管理するための各種領域から構
成されている。The management area is composed of a reserved area, a file allocation table (hereinafter referred to as FAT), and various areas for managing files such as directories.
【0025】また、ファイル領域は実際の画像データを
記録するための領域であり、このファイル領域のアクセ
ス単位をクラスタと称する。各ファイルはそのデータサ
イズに応じた数のクラスタから構成される。The file area is an area for recording actual image data, and an access unit of this file area is called a cluster. Each file is composed of a number of clusters according to its data size.
【0026】FATは各々のクラスタに対応するエント
リを有し、各々のエントリには継続するクラスタに対応
するエントリの値が記録されている。継続するエントリ
がない場合(ファイルの最後のクラスタに対応するエン
トリである場合)には、そのことを示す値が記録され
る。ディレクトリにはファイル名、ファイルサイズ、フ
ァイルの先頭クラスタに対応するエントリの値、および
日付等が記録される。The FAT has an entry corresponding to each cluster, and the value of the entry corresponding to the continuous cluster is recorded in each entry. When there is no continuing entry (when the entry corresponds to the last cluster of the file), a value indicating that is recorded. The file name, file size, the value of the entry corresponding to the first cluster of the file, the date, etc. are recorded in the directory.
【0027】尚、FATは管理領域内の複数の場所に重
複して記録されることが多い。これは、FATのデータ
が読めなくなると、その記録媒体に記録された情報の読
み出しが不能となるため、信頼性を確保するために行わ
れる。これに限らず、FATに関しては、信頼性を確保
するための何らかの手段が取られていることが多い。The FAT is often recorded in duplicate at a plurality of locations in the management area. This is done in order to ensure reliability because when the FAT data becomes unreadable, the information recorded on the recording medium cannot be read. Not limited to this, with respect to FAT, some measure is often taken to ensure reliability.
【0028】次に、データ記録装置の基本的動作を図3
を参照して説明する。図3はデータ記録装置による撮影
時の動作を示すフローチャートである。Next, the basic operation of the data recording device is shown in FIG.
This will be described with reference to FIG. FIG. 3 is a flowchart showing the operation of the data recording device at the time of shooting.
【0029】まず、全体制御部11に、不図示のスイッ
チ等による撮像記録命令が入力されると(または、不図
示の外部のコンピュータ等からの撮像記録命令コマンド
が外部I/F部14を介して入力されると)、全体制御
部11は撮像記録動作を実行する。First, when an image capturing / recording command is input to the overall control unit 11 by a switch or the like (not shown) (or an image capturing / recording command command from an external computer or the like not shown is transmitted via the external I / F unit 14). Input), the overall control unit 11 executes an imaging recording operation.
【0030】即ち、シャッタ2を駆動して露光を行い
(ステップS300)、撮像素子3からの画像データ
(アナログ信号)の読み出しを行う(ステップS30
1)。この画像データは、第1の信号処理回路4により
色補正等の各種処理が行われ(ステップS302)、A
/D変換器5によりディジタル信号に変換され(ステッ
プS303)、第2の信号処理部6を介してバッファメ
モリとしてのDRAM7に入力され、一旦記憶される。
DRAM7に記憶された画像データは、再び第2の信号
処理回路6に入力され、圧縮処理された後、再びDRA
M7に入力され、記憶される(ステップS304)。That is, the shutter 2 is driven to perform exposure (step S300), and image data (analog signal) is read from the image sensor 3 (step S30).
1). This image data is subjected to various kinds of processing such as color correction by the first signal processing circuit 4 (step S302), A
The signal is converted into a digital signal by the / D converter 5 (step S303), is input to the DRAM 7 as a buffer memory via the second signal processing unit 6, and is temporarily stored.
The image data stored in the DRAM 7 is input to the second signal processing circuit 6 again, is subjected to compression processing, and is then again processed by the DRA.
It is input to M7 and stored (step S304).
【0031】尚、上述した処理においては、A/D変換
器5によりディジタル信号に変換された画像データを第
2の信号処理部6でリアルタイムで圧縮処理し、DRA
M7に記憶するようにしてもよい。また、圧縮処理を省
略することも可能である。In the above-mentioned processing, the image data converted into the digital signal by the A / D converter 5 is compressed in real time by the second signal processing unit 6, and DRA
You may make it memorize | store in M7. It is also possible to omit the compression process.
【0032】次に、上記ステップS304においてDR
AM7に記憶された画像データは、媒体制御I/F部9
を介して記録媒体10に入力され、FATが参照され
て、記録媒体10の前記ファイル領域内で情報が記録さ
れていない領域に記録される(ステップS305)。Next, in step S304, DR
The image data stored in the AM 7 is stored in the medium control I / F unit 9
Is input to the recording medium 10 via the FAT, the FAT is referred to, and the information is recorded in the area of the recording medium 10 in which no information is recorded (step S305).
【0033】前記ファイル領域における画像データの記
録を終了すると、記録した画像データのためのディレク
トリを生成すると共に、FATを更新する(ステップS
306)。即ち、全体制御部11は、FATの値によっ
てファイル領域の内、既にデータが記録されている領域
を検出し、前記検出した領域以外の領域に前記DRAM
7に一旦記憶された画像データを伝送して記録すると共
に、新たに記録した画像データのクラスタに対応するエ
ントリに、クラスタのつながりを示す値を記録する。When the recording of the image data in the file area is completed, a directory for the recorded image data is generated and the FAT is updated (step S).
306). That is, the overall control unit 11 detects an area in which data is already recorded in the file area based on the FAT value, and the DRAM is provided in an area other than the detected area.
The image data once stored in 7 is transmitted and recorded, and a value indicating the connection of clusters is recorded in the entry corresponding to the cluster of the newly recorded image data.
【0034】次に、図4乃至図6を参照して、データ記
録装置の特徴的動作を説明する。図4は本実施の形態の
データ記録装置としての電子カメラを背面から見た斜視
図である。Next, the characteristic operation of the data recording device will be described with reference to FIGS. FIG. 4 is a perspective view of an electronic camera as a data recording device according to the present embodiment as seen from the back side.
【0035】同図において、20はデータ記録装置本
体、21はレリーズスイッチ、22は記録媒体を挿入す
るための開口部、23は記録媒体を取り出すためのイジ
ェクトスイッチ、24は蓋25の開閉を検出するための
検出スイッチ、25は前記開口部22、イジェクトスイ
ッチ23、および検出スイッチ24を覆う蓋である。こ
の蓋25の開閉により検出スイッチ24がオン・オフ
し、これにより全体制御部11が蓋25の開閉を検出す
る。In the figure, 20 is the main body of the data recording device, 21 is a release switch, 22 is an opening for inserting a recording medium, 23 is an eject switch for taking out the recording medium, and 24 is the opening / closing of the lid 25. A detection switch 25 for performing the operation is a lid that covers the opening 22, the eject switch 23, and the detection switch 24. The opening / closing of the lid 25 turns on / off the detection switch 24, whereby the overall control unit 11 detects opening / closing of the lid 25.
【0036】図5および図6は、データ記録装置のデー
タ記録動作中に(上記図3のステップS305,S30
6における処理の実行中に)、蓋25が開けられたこと
を全体制御部11が検出した場合の処理を示すフローチ
ャートである。5 and 6 show the data recording operation of the data recording device (steps S305 and S30 in FIG. 3).
6 is a flowchart showing a process in the case where the overall control unit 11 detects that the lid 25 has been opened during the execution of the process in (6).
【0037】全体制御部11は、検出スイッチ24のオ
ンにより、蓋25が開いたことを検出すると、記録媒体
10における画像データの記録動作を直ちに停止して
(ステップS400)、FATおよびディレクトリの連
鎖を完結する(ステップS401)。Upon detecting that the lid 25 is opened by turning on the detection switch 24, the overall control section 11 immediately stops the recording operation of the image data on the recording medium 10 (step S400), and links the FAT and the directory. Is completed (step S401).
【0038】即ち、FATに関しては、途中まで記録し
た画像データに対応するFAT連鎖を完結し、ファイル
の最後を示す値を記録する。また、ディレクトリに関し
ては、ファイルサイズに関する情報を、記録した画像デ
ータのサイズにあわせる等の処理を行う。尚、上述した
FATおよびディレクトリに関する処理の順序は任意で
ある。That is, regarding the FAT, the FAT chain corresponding to the image data recorded halfway is completed, and the value indicating the end of the file is recorded. Further, regarding the directory, processing such as matching the information about the file size with the size of the recorded image data is performed. Incidentally, the order of the above-mentioned FAT and directory processing is arbitrary.
【0039】次に、ファイル名やファイルサイズ等の記
録の状態に関する情報、およびボリュームシリアルナン
バをRAM12に記憶し(ステップS402)、DRA
M7内の画像データをEEPROM8に全て複写する
(ステップS403)。この状態で所定時間経過後には
全体制御部11の少なくとも一部を除いて、媒体および
電子カメラ本体の電源を落としつつ(ステップS40
4)、蓋25が再び閉じられるか、記録媒体10が取り
出されるかのいずれかの操作が使用者により行われるの
を待つ(ステップS405)。Next, the information regarding the recording state such as the file name and the file size, and the volume serial number are stored in the RAM 12 (step S402), and the DRA is stored.
All the image data in M7 is copied to the EEPROM 8 (step S403). After a lapse of a predetermined time in this state, the medium and the electronic camera body are powered off except for at least a part of the overall control unit 11 (step S40).
4) Wait for the user to perform either operation of closing the lid 25 again or removing the recording medium 10 (step S405).
【0040】蓋25が再び閉じられた場合には、前記所
定時間の経過により電源が落ちていればこれを入れ(ス
テップS406)、前記RAM12内に記憶した前記記
録の状態に関する情報と記録媒体中の各データとを比較
して、記録媒体10への画像データの記録を再開する
(ステップS407,S408)。When the lid 25 is closed again, the power is turned off after the elapse of the predetermined time (step S406), and the information about the recording state stored in the RAM 12 and the recording medium are stored. Then, the recording of the image data on the recording medium 10 is restarted (steps S407 and S408).
【0041】即ち、まず記録媒体10に記憶されたファ
イルの中から、前記記録途中のファイルを探す。次に、
ファイルサイズから記録を継続すべきEEPROM8中
の画像データのアドレスを割り出し、このアドレスから
順次記録を継続すると共にFATを更新する。That is, first, the file in the middle of recording is searched from the files stored in the recording medium 10. next,
The address of the image data in the EEPROM 8 where the recording should be continued is determined from the file size, and the recording is continued from this address and the FAT is updated.
【0042】そして、RAM12内に記憶しておいたフ
ァイル名やファイルサイズ等の記憶の状態、更にはドラ
イブ固有(媒体固有)のボリュームシリアルナンバーを
抹消し、記録を中断した画像データの記録媒体への記録
を完了し(ステップS409)、処理を終了する。Then, the storage state such as the file name and file size stored in the RAM 12 and the volume serial number specific to the drive (medium specific) are deleted, and the image data recording medium for which recording is interrupted is erased. Recording is completed (step S409), and the process ends.
【0043】また、記録媒体10が取り出された場合に
は、開口部22に記録媒体が挿入されるまで待機する
(ステップS410)。開口部22に記録媒体が挿入さ
れると、これにより割り込みが発生し(ステップS41
1)、全体制御部11は、データ記録装置本体の電源が
落ちている場合にはこれを入れる(ステップS41
2)。When the recording medium 10 is taken out, the process waits until the recording medium is inserted into the opening 22 (step S410). When a recording medium is inserted into the opening 22, this causes an interrupt (step S41).
1) When the power of the data recording apparatus main body is turned off, the overall control unit 11 turns it on (step S41).
2).
【0044】次に、上記途中まで記録した画像データの
ボリュームシリアルナンバーをRAM12から読み出
し、このボリュームシリアルナンバーと上記新たに挿入
された記録媒体のボリュームシリアルナンバーとを比較
し(ステップS413)、これが一致した場合、即ち取
り出された記録媒体10が再び挿入された場合には、R
AM12から前記ファイル名やファイルサイズ等の記録
の状態に関する情報を読み出し、記録を再開する(ステ
ップS414,S415)。Next, the volume serial number of the image data recorded halfway is read from the RAM 12, and this volume serial number is compared with the volume serial number of the newly inserted recording medium (step S413), and they match. If the recording medium 10 taken out is reinserted, that is, R
Information regarding the recording state such as the file name and file size is read from the AM 12 and recording is restarted (steps S414 and S415).
【0045】即ち、まず記録媒体に格納されたファイル
のファイル名の中から、前記記録を中断した画像データ
のファイルを探す。次に、そのファイルのファイルサイ
ズに関する情報から、記録を継続すべきEEPROM8
中のアドレスを割り出し、このアドレスから順次画像デ
ータの記録を継続すると共にFATを更新する。That is, first, the file name of the file stored in the recording medium is searched for the image data file in which the recording is interrupted. Next, based on the information about the file size of the file, the EEPROM 8 that should continue recording
The internal address is calculated, and the image data is continuously recorded from this address, and the FAT is updated.
【0046】そして、RAM12内のファイル名やファ
イルサイズ等の記録の状態に関する情報、およびボリュ
ームシリアルナンバーを抹消し、記録を中断した画像デ
ータの記録媒体への記録を完了し(ステップS41
6)、処理を終了する。Then, the information about the recording state such as the file name and the file size in the RAM 12 and the volume serial number are erased, and the recording of the interrupted image data on the recording medium is completed (step S41).
6), end the process.
【0047】また、上記途中まで記録した画像データの
ボリュームシリアルナンバと、新たに挿入された記録媒
体のボリュームシリアルナンバーとが一致しない場合、
即ち前記取り出された記録媒体とは異なる記録媒体が挿
入された場合には、その記録媒体に、画像データを新し
いファイルとして全て記録する(ステップS417)。If the volume serial number of the image data recorded halfway and the volume serial number of the newly inserted recording medium do not match,
That is, when a recording medium different from the taken-out recording medium is inserted, all the image data is recorded as a new file in the recording medium (step S417).
【0048】記録が完了すると、RAM12内の前記記
録の状態等のデータを全て抹消し(ステップS41
8)、処理を終了する。When the recording is completed, all the data such as the recording state in the RAM 12 is erased (step S41).
8), the process ends.
【0049】以上説明したように、本実施の形態のデー
タ記録装置においては、開口部22を覆う蓋25が画像
データの記録途中に開けられた場合には、画像データの
記録を中断し、FATおよびディレクトリ等のファイル
管理用データを完成してRAM12に記憶するので、デ
ータ記録途中に記録媒体10を取り出した場合にも、記
録媒体10への画像データの記録を正常に再開すること
ができる。As described above, in the data recording apparatus of this embodiment, when the lid 25 covering the opening 22 is opened during the recording of the image data, the recording of the image data is interrupted and the FAT is stopped. Since the file management data such as the directory and the like are completed and stored in the RAM 12, the recording of the image data on the recording medium 10 can be normally resumed even if the recording medium 10 is taken out during the data recording.
【0050】尚、上記実施の形態においては、再度開口
部22に挿入された記録媒体が、取り出されたものと同
一であるか否かをボリュームシリアルナンバーを比較す
ることにより判定していたが、これに限られるものでは
なく、ボリュームラベルを比較することにより判定して
もよい。また、更に信頼性を上げるために、ボリューム
シリアルナンバー及びボリュームラベルの両方を用い
て、同一性を調べるようにしてもよい。In the above embodiment, it is judged by comparing the volume serial numbers whether or not the recording medium inserted in the opening 22 is the same as the one taken out. The present invention is not limited to this, and the determination may be made by comparing the volume labels. Further, in order to further improve reliability, both the volume serial number and the volume label may be used to check the identity.
【0051】(第2の実施の形態)次に、図7および図
8を参照して本発明の第2の実施の形態を説明する。
尚、本実施の形態のデータ記録装置の基本的構成は図
1、図2および図4により示したものと同一であり、基
本的動作は図3により示したものと同一であるので、そ
の符号を流用して説明する。(Second Embodiment) Next, a second embodiment of the present invention will be described with reference to FIGS. 7 and 8.
The basic structure of the data recording apparatus of this embodiment is the same as that shown in FIGS. 1, 2 and 4, and the basic operation is the same as that shown in FIG. Will be described.
【0052】図7および図8は、データ記録装置の記録
動作中に(上記図3のステップS305,S306にお
ける処理の実行中に)、蓋25が開けられた場合の処理
を示すフローチャートである。7 and 8 are flowcharts showing the processing when the lid 25 is opened during the recording operation of the data recording apparatus (during the processing in steps S305 and S306 in FIG. 3).
【0053】全体制御部11は、データ記録動作中に、
蓋25が開いたことを検出スイッチ24の出力により検
出すると、画像データの記録動作を直ちに停止して(ス
テップS500)、FATおよびディレクトリに関する
処理を行う(ステップS501)。During the data recording operation, the overall control unit 11
When the opening of the lid 25 is detected by the output of the detection switch 24, the recording operation of the image data is immediately stopped (step S500), and the processing regarding the FAT and the directory is performed (step S501).
【0054】即ち、FATに関しては、その時点までに
記録した画像データのFAT領域の対応するエントリに
未使用(使用可能)を意味する所定のデータを記録す
る。That is, as to the FAT, predetermined data which means unused (usable) is recorded in the corresponding entry of the FAT area of the image data recorded up to that point.
【0055】また、ディレクトリに関しては、ディレク
トリ中の記録途中のファイルに関するデータ(ファイル
名やファイルサイズ等の記録の状態、およびファイルの
作成日付等)を全て未使用(使用可能)を意味する所定
のデータに書き換える。これにより記録途中のファイル
は消去されたことになる。尚、上述したFATおよびデ
ィレクトリに関する処理を行う順序は任意である。As for the directory, all the data (recording status such as file name and file size, and file creation date) relating to the file in the middle of recording in the directory is unused (usable). Rewrite with data. As a result, the file being recorded is erased. The order in which the above-mentioned FAT and directory processing is performed is arbitrary.
【0056】次に、記録媒体10に記録しなければなら
ない画像データが存在することを示すデータをRAM1
2に記憶する(ステップS502)。このデータの形態
は任意である。Next, data indicating that there is image data to be recorded on the recording medium 10 is stored in the RAM 1
2 (step S502). The form of this data is arbitrary.
【0057】次に、DRAM7内の画像データをEEP
ROM8に全て複写する(ステップS503)。この状
態で、所定時間経過後には全体制御部11の少なくとも
一部を除いて、媒体および電子カメラ本体の電源を落と
しつつ(ステップS504)、蓋25が再び閉じられる
か、記録媒体10が取り出されるかのいずれかの操作を
使用者が行うのを待つ(ステップS505)。Next, the image data in the DRAM 7 is EEP
All are copied to the ROM 8 (step S503). In this state, after a lapse of a predetermined time, power of the medium and the electronic camera body is turned off except for at least a part of the overall control unit 11 (step S504), the lid 25 is closed again, or the recording medium 10 is taken out. The user waits for any one of the operations (step S505).
【0058】蓋25が再び閉じられた場合には、前記所
定時間の経過によりデータ記録装置の電源が落ちた場合
にはこれを入れ(ステップS506)、記録媒体10に
画像データを新しいファイルとして始めから全て記録す
る(ステップS507)。記録が完了すると、RAM1
2に記憶した前記記録媒体10に記録しなければならな
い画像データが存在することを示すデータを抹消する
(ステップS508)。When the lid 25 is closed again, if the power of the data recording device is turned off after the elapse of the predetermined time, this is turned on (step S506), and the image data is started as a new file on the recording medium 10. All are recorded (step S507). When recording is completed, RAM1
Data indicating that there is image data to be recorded in the recording medium 10 stored in No. 2 is deleted (step S508).
【0059】蓋25が閉じられることなく記録媒体10
が取り出された場合には、開口部22に再び記録媒体1
0が挿入されるまで待機する(ステップS509)。開
口部22に記録媒体が挿入されると、割り込みが発生し
(ステップS510)、全体制御部11は、前記所定時
間の経過によりデータ記録装置の電源が落ちた場合には
これを入れ(ステップS511)、画像データを記録媒
体10に新しいファイルとして始めから全て記録する
(ステップS512)。記録が完了すると、RAM12
から前記記録媒体10に記録しなければならない画像デ
ータが存在することを示すデータを抹消し(ステップS
513)、処理を終了する。The recording medium 10 is not closed by the lid 25.
When the recording medium 1 is removed, the recording medium 1
It waits until 0 is inserted (step S509). When a recording medium is inserted into the opening 22, an interrupt occurs (step S510), and the overall control unit 11 turns on the power of the data recording device when the predetermined time has elapsed (step S511). ), All the image data is recorded as a new file on the recording medium 10 from the beginning (step S512). When recording is completed, RAM12
From the data indicating that there is image data to be recorded on the recording medium 10 (step S
513), the processing ends.
【0060】以上説明したように、本実施の形態のデー
タ記録装置によれば、開口部22を覆う蓋25が画像デ
ータの記録途中に開けられた場合には、画像データの記
録を中断して、途中まで記録したファイルのFATおよ
びディレクトリに未使用を意味する所定のデータを記憶
し、前記ファイルを消去したこととするので、データ記
録途中に記録媒体10を取り出した場合にも、記録媒体
10へのデータ記録を正常に再開することができる。ま
た、消去せずにファイル管理用データを完成させ1つの
ファイルとしてそのまま残しておいても同様の効果が得
られる。再記録時は、別名で、または、同一名で(上書
き)始めからすべて記録してもよい。As described above, according to the data recording apparatus of the present embodiment, when the lid 25 covering the opening 22 is opened during the recording of the image data, the recording of the image data is interrupted. Since it is assumed that predetermined data that means unused is stored in the FAT of a partially recorded file and the directory is erased, even when the recording medium 10 is taken out during data recording, the recording medium 10 Data recording to can be resumed normally. Further, the same effect can be obtained by completing the file management data without erasing and leaving it as one file. When re-recording, all may be recorded from the beginning with another name or with the same name (overwriting).
【0061】(第3の実施の形態)次に、図9を参照し
て本発明の第3の実施の形態を説明する。図9は本実施
の形態のデータ記録装置としての電子カメラを背面から
見た斜視図である。尚、本実施の形態のデータ記録装置
のその他の基本的構成は、図1、図2により示したもの
と同一であり、基本的動作は図3により示したものと同
一であるので、その符号を流用して説明する。(Third Embodiment) Next, a third embodiment of the present invention will be described with reference to FIG. FIG. 9 is a perspective view of an electronic camera as a data recording device according to the present embodiment as viewed from the back. The other basic configuration of the data recording apparatus of the present embodiment is the same as that shown in FIGS. 1 and 2, and the basic operation is the same as that shown in FIG. Will be described.
【0062】図9において、30はデータ記録装置本
体、31はレリーズスイッチ、32は記録媒体10を挿
入するための開口部である。33は、上記図4のイジェ
クトスイッチ23および検出スイッチ24の機能を兼ね
備えた兼用スイッチである。該兼用スイッチ33は、2
段階のストロークを有し、第1のストロークで上記検出
スイッチ24がオンした場合(図4の蓋25が開いたこ
とを検出した場合)と同様に機能し、第2のストローク
で図4のイジェクトスイッチ23が押下された場合と同
様に機能する。In FIG. 9, 30 is a data recording apparatus main body, 31 is a release switch, and 32 is an opening for inserting the recording medium 10. Reference numeral 33 denotes a dual-purpose switch having the functions of the eject switch 23 and the detection switch 24 shown in FIG. The dual-purpose switch 33 is 2
It has a stepped stroke, and functions in the same manner as when the detection switch 24 is turned on in the first stroke (when it is detected that the lid 25 in FIG. 4 is opened), and in the second stroke, the eject in FIG. The same functions as when the switch 23 is pressed.
【0063】即ち、兼用スイッチ33が第1のストロー
クまで押し込まれると、全体制御部11は記録媒体10
の取り出しが指示される予備的状態になったと判断し、
第2のストロークまで押し込まれると、全体制御部11
は、機械的機構により記録媒体10のイジェクトを実行
する。That is, when the dual-purpose switch 33 is pushed to the first stroke, the overall control section 11 causes the recording medium 10 to move.
Judging that it is in a preliminary state where the removal of
When pushed to the second stroke, the overall control unit 11
Performs ejection of the recording medium 10 by a mechanical mechanism.
【0064】本実施の形態のデータ記録装置において
は、上記第1のストロークまで兼用スイッチ33が押し
込まれた状態が、上記第1および第2の実施例において
蓋25が開けられた状態と同一であり、また、第1のス
トロークから元の状態に戻った場合は、記録媒体10が
取り出されることなく蓋25が再び閉じられた場合と同
一であり、また、第2のストロークまで兼用スイッチ3
3が押し込まれた場合は、蓋25が再び閉じられること
なく記録媒体10が取り出された場合と同一であるの
で、その動作の詳細説明は省略する。In the data recording apparatus of this embodiment, the state in which the dual-purpose switch 33 is pushed up to the first stroke is the same as the state in which the lid 25 is opened in the first and second examples. Yes, when returning to the original state from the first stroke, it is the same as when the lid 25 is closed again without taking out the recording medium 10, and the dual-purpose switch 3 is used until the second stroke.
When 3 is pushed in, it is the same as when the recording medium 10 is taken out without the lid 25 being closed again, so the detailed description of the operation is omitted.
【0065】(第4の実施の形態)次に、図10および
図11を参照して本発明の第4の実施の形態を説明す
る。図10は、本実施の形態のデータ記録装置としての
電子カメラを背面から見た斜視図である。尚、本実施の
形態のデータ記録装置のその他の基本的構成は図1、図
2により示したものと同一であり、基本的動作は図3に
より示したものと同一であるので、その符号を流用して
説明する。(Fourth Embodiment) Next, a fourth embodiment of the present invention will be described with reference to FIGS. FIG. 10 is a perspective view of an electronic camera as a data recording device according to the present embodiment as viewed from the back. The other basic configuration of the data recording device of the present embodiment is the same as that shown in FIGS. 1 and 2, and the basic operation is the same as that shown in FIG. It will be diverted and explained.
【0066】図10において、40はデータ記録装置本
体、41はレリーズスイッチ、42は記録媒体10を挿
入するための開口部、43はイジェクトスイッチであ
る。In FIG. 10, reference numeral 40 is a data recording device main body, 41 is a release switch, 42 is an opening for inserting the recording medium 10, and 43 is an eject switch.
【0067】本実施の形態のデータ記録装置において
は、イジェクトスイッチ43の状態が全体制御部11で
検出できるようになっている。イジェクトスイッチ43
がオンされたことが全体制御部11で検出されると、ロ
ーディング機構により記録媒体のイジェクトが実行され
る。In the data recording apparatus of this embodiment, the state of the eject switch 43 can be detected by the overall control section 11. Eject switch 43
When the overall control unit 11 detects that the switch has been turned on, the loading mechanism causes the recording medium to be ejected.
【0068】図11は、データ記録装置のデータ記録中
(前記図3のステップS305,S306における処理
の実行中)に、イジェクトスイッチ43が押下されたと
きの処理を示すフローチャートである。FIG. 11 is a flow chart showing the process when the eject switch 43 is pressed during the data recording of the data recording device (during the process in steps S305 and S306 in FIG. 3).
【0069】全体制御部11は、イジェクトスイッチ4
3が押下されたことを検出すると、記録媒体10への画
像データの記録動作を直ちに停止し(ステップS60
0)、FATおよびディレクトリに関する処理を行う
(ステップS601)。即ち、FATに関しては、途中
まで記録した画像データに対応するFAT連鎖を完結
し、ファイルの最後を示す値を記録する。また、ディレ
クトリに関しては、ディレクトリ中のファイルサイズに
関する情報を既に記録した画像データのサイズにあわせ
る等の処理を行うことにより、ディレクトリを完結す
る。尚、FATおよびディレクトリに対する処理の順序
は任意である。The overall control unit 11 uses the eject switch 4
When it is detected that 3 is pressed, the operation of recording the image data on the recording medium 10 is immediately stopped (step S60).
0), processing for FAT and directory is performed (step S601). That is, as for the FAT, the FAT chain corresponding to the image data recorded halfway is completed, and the value indicating the end of the file is recorded. Further, regarding the directory, the directory is completed by performing processing such as matching the information regarding the file size in the directory with the size of the image data already recorded. The order of processing the FAT and the directory is arbitrary.
【0070】次に、途中まで記録した画像データの記録
の状態およびボリュームシリアルナンバーをRAM12
に記憶する(ステップS602)。次に、DRAM7内
の画像データをEEPR0M8に全て複写し(ステップ
S603)た後、記録媒体10を排出する(ステップS
604)。記録媒体10を排出してから所定時間経過
後、全体制御部11の少なくとも一部を除いて媒体およ
びデータ記録装置本体の電源を落とし(ステップS60
5)、再び開口部42に記録媒体が挿入されるまで待機
する(ステップS606)。Next, the recording state of the image data recorded halfway and the volume serial number are recorded in the RAM 12.
(Step S602). Next, after copying all the image data in the DRAM 7 to the EEPR0M8 (step S603), the recording medium 10 is ejected (step S).
604). After a lapse of a predetermined time after ejecting the recording medium 10, the medium and the data recording apparatus main body are turned off except at least a part of the overall control unit 11 (step S60).
5) Then, it waits until the recording medium is inserted into the opening 42 again (step S606).
【0071】ここで、開口部42に、前記取り出された
記録媒体10、または別の記録媒体が挿入された場合の
動作は、上記図6により示した第1の実施の形態と同一
であるので、その詳細説明は省略する。Here, the operation when the recording medium 10 taken out or another recording medium is inserted into the opening 42 is the same as that of the first embodiment shown in FIG. The detailed description is omitted.
【0072】以上説明したように、本実施の形態のデー
タ記録装置においては、画像データの記録途中にイジェ
クトスイッチ43が押下された場合には、画像データの
記録を中断し、FATおよびディレクトリを完結した後
で、記録媒体のイジェクトを実行するので、データ記録
途中に記録媒体を取り出した場合にも、記録媒体へのデ
ータの記録を正常に再開することができる。As described above, in the data recording apparatus of this embodiment, when the eject switch 43 is pressed during the recording of the image data, the recording of the image data is interrupted and the FAT and the directory are completed. After that, the recording medium is ejected, so that even if the recording medium is taken out during the recording of the data, the recording of the data on the recording medium can be normally restarted.
【0073】尚、本実施の形態においては、記録媒体の
同一性をボリュームシリアルナンバーを比較する方法に
より判定していたが、これに限られるものではなく、ボ
リュームラベルを比較することにより判定してもよい。
また、更に信頼性を上げるためには、ボリュームシリア
ルナンバー及びボリュームラベルの両方を用いて、記録
媒体の同一性を調べるようにしてもよい。Incidentally, in the present embodiment, the identity of the recording medium is judged by the method of comparing the volume serial numbers, but the present invention is not limited to this, and it is judged by comparing the volume labels. Good.
Further, in order to further improve the reliability, the identity of the recording medium may be checked by using both the volume serial number and the volume label.
【0074】(第5の実施の形態)次に、図12を参照
して本発明の第5の実施の形態を説明する。尚、本実施
の形態のデータ記録装置の基本的構成は、図1、図2、
および図10により示したものと同一であり、基本的動
作は図3により示したものと同一であるので、その符号
を流用して説明する。(Fifth Embodiment) Next, a fifth embodiment of the present invention will be described with reference to FIG. The basic configuration of the data recording device of this embodiment is as shown in FIGS.
10 is the same as that shown in FIG. 10 and the basic operation is the same as that shown in FIG.
【0075】図12は、データ記録装置の記録動作中に
(上記図3のステップS305,S306における処理
の実行中に)、イジェクトスイッチ43が押下された場
合の処理を示すフローチャートである。FIG. 12 is a flow chart showing the processing when the eject switch 43 is pressed during the recording operation of the data recording apparatus (during the processing in steps S305 and S306 in FIG. 3).
【0076】全体制御部11は、画像データの記録動作
中にイジェクトスイッチ43が押下されたことを検出す
ると、画像データの記録動作を直ちに停止して(ステッ
プS700)、FATおよびディレクトリに関する処理
(ファイル消去)を行う(ステップS701)。即ち、
FATに関しては、その時点までに記録した画像データ
のFAT領域の対応するエントリに、未使用(使用可
能)を意味する所定のデータを記録する。次に、ディレ
クトリ中の記録途中のファイルに関するデータ(ファイ
ル名、ファイルサイズ、およびファイルの作成日付等)
を全て未使用(使用可能)を意味する所定のデータに書
き換える。これにより記録途中のファイルは消去された
ことになる。尚、FATおよびディレクトリに関する処
理を行う順序は任意である。When the overall control unit 11 detects that the eject switch 43 has been pressed during the image data recording operation, it immediately stops the image data recording operation (step S700), and performs the FAT and directory processing (file (Erasing) is performed (step S701). That is,
Regarding FAT, predetermined data that means unused (usable) is recorded in the corresponding entry of the FAT area of the image data recorded up to that point. Next, data about files in the directory that are being recorded (file name, file size, file creation date, etc.)
Are all rewritten to predetermined data meaning unused (usable). As a result, the file being recorded is erased. It should be noted that the order of performing the processing regarding the FAT and the directory is arbitrary.
【0077】次に、記録媒体10に記録しなければなら
ない画像データが存在することを示すデータをRAM1
2に記憶する(ステップS702)。このデータの形態
は任意である。Next, data indicating that there is image data to be recorded on the recording medium 10 is stored in the RAM 1
2 (step S702). The form of this data is arbitrary.
【0078】次に、DRAM7内の画像データをEEP
ROM8に全て複写し(ステップS703)た後、記録
媒体10を排出する(ステップS704)。イジェクト
スイッチ43が押下されてから所定時間経過後、全体制
御部11の少なくとも一部を除いて、媒体および電子カ
メラ本体の電源を落とし(ステップS705)、再び記
録媒体10が挿入されるまで待機する(ステップS70
6)。Next, the image data in the DRAM 7 is EEP
After copying everything to the ROM 8 (step S703), the recording medium 10 is ejected (step S704). After a predetermined time has elapsed since the eject switch 43 was pressed, the power of the medium and the electronic camera body is turned off except for at least a part of the overall control unit 11 (step S705), and the process waits until the recording medium 10 is inserted again. (Step S70
6).
【0079】ここで、取り出された記録媒体10、ある
いは別の記録媒体が再び挿入され、割り込みが発生した
場合の動作は図8により示した第2の実施の形態と同一
であるので、その説明は省略する。Here, the operation when the recording medium 10 taken out or another recording medium is inserted again and an interrupt occurs is the same as that of the second embodiment shown in FIG. Is omitted.
【0080】以上説明したように、本実施の形態のデー
タ記録装置においては、画像データの記録途中にイジェ
クトスイッチ43が押下された場合には、画像データの
記録を中断して、途中まで記録したファイルのFATお
よびディレクトリに未使用を意味する所定のデータを記
憶し、前記ファイルを消去したこととするので、データ
記録途中に記録媒体10を取り出した場合にも、記録媒
体10へのデータ記録を正常に再開することができる。
また、消去せずにファイル管理用データを完成させ1つ
のファイルとしてそのまま残しておいても同様の効果が
得られる。再記録時は、別名で、または、同一名で(上
書き)始めからすべて記録してもよい。As described above, in the data recording apparatus of the present embodiment, when the eject switch 43 is pressed during the recording of the image data, the recording of the image data is interrupted and the recording is performed halfway. Since it is assumed that predetermined data that means unused is stored in the FAT of the file and the directory and the file is erased, even if the recording medium 10 is taken out during the data recording, the data recording on the recording medium 10 is performed. You can resume normally.
Further, the same effect can be obtained by completing the file management data without erasing and leaving it as one file. When re-recording, all may be recorded from the beginning with another name or with the same name (overwriting).
【0081】本発明全般第1〜第5の実施の形態におい
ては、記録した画像データをDRAM7からEEPR0
M8に複写する(ステップS403,503,603,
703)ようにしていたが、DRAM7の電源をバック
アップすることにより、EEPROM8を省略すること
も可能である。また、同様の効果が得られればDRAM
でなくとも良い。In the first to fifth embodiments of the present invention, the recorded image data is transferred from the DRAM 7 to the EEPR0.
Copy to M8 (steps S403, 503, 603,
703), but the EEPROM 8 can be omitted by backing up the power supply of the DRAM 7. Further, if the same effect is obtained, the DRAM
It doesn't have to be.
【0082】[0082]
【発明の効果】請求項1記載の発明によれば、データ記
録中に排出指示手段により排出手段に対して記録媒体の
排出が指示された場合、データ保護手段により前記記録
媒体に記録されたデータが保護されるので、データ記録
中に記録媒体が取り出された場合にも、記録媒体へのデ
ータの記録を正常に再開することができる。According to the first aspect of the invention, when the ejecting means instructs the ejecting means to eject the recording medium during data recording, the data recorded on the recording medium by the data protecting means. Since the data is protected, it is possible to normally resume the recording of the data on the recording medium even when the recording medium is taken out during the data recording.
【0083】請求項2記載の発明によれば、検出手段に
より記録媒体を装置外部に排出するための予備状態が検
出され、該検出手段の出力に応じて、中断手段により前
記データの記録動作が中断され、ファイル管理データ作
成手段により前記記録動作が中断された時点までに記録
したデータをファイルとして管理するためのファイル管
理データが作成されるので、データ記録中に記録媒体が
取り出された場合にも、記録媒体へのデータの記録を正
常に再開することができる。According to the second aspect of the present invention, the detection means detects the preliminary state for ejecting the recording medium to the outside of the apparatus, and the interruption means performs the data recording operation according to the output of the detection means. Since the file management data for managing the data recorded up to the time when the recording operation is interrupted and the recording operation is interrupted by the file management data creating means is created, when the recording medium is taken out during the data recording. Also, recording of data on the recording medium can be normally resumed.
【0084】請求項3記載の発明によれば、検出手段に
より記録媒体を装置外部に排出するための予備状態が検
出され、該検出手段の出力に応じて、中断手段により前
記データの記録動作が中断され、消去手段により、前記
中断した時点までに記録したデータが前記記録媒体から
消去される。According to the third aspect of the invention, the detection means detects the preliminary state for ejecting the recording medium to the outside of the apparatus, and the interruption means determines the recording operation of the data according to the output of the detection means. The data recorded up to the time of the interruption is erased from the recording medium by the erasing means.
【0085】請求項4記載の発明によれば、検出手段に
より、前記装着手段に装着された記録媒体を覆う蓋部が
開けられた状態が、記録媒体を装置外部に排出するため
の予備状態として検出されるので、データ記録中に記録
媒体が取り出された場合にも、記録媒体へのデータの記
録を正常に再開することができる。According to the fourth aspect of the present invention, the state in which the detection unit opens the lid that covers the recording medium mounted on the mounting unit is a preliminary state for ejecting the recording medium to the outside of the apparatus. Since it is detected, even if the recording medium is taken out during the data recording, the recording of the data on the recording medium can be normally restarted.
【0086】請求項5記載の発明によれば、前記排出指
示手段は少なくとも2段階の第1および第2ストローク
を有する排出指示スイッチから成り、検出手段により、
前記排出指示スイッチが前記第1ストロークと第2スト
ロークとの間まで押し込まれた状態が、記録媒体を装置
外部に排出するための予備状態として検出されるので、
データ記録中に記録媒体が取り出された場合にも、記録
媒体へのデータの記録を正常に再開することができる。According to the fifth aspect of the present invention, the discharge instruction means comprises a discharge instruction switch having at least two stages of first and second strokes.
Since the state in which the ejection instruction switch is pushed between the first stroke and the second stroke is detected as a preliminary state for ejecting the recording medium to the outside of the apparatus,
Even when the recording medium is taken out during the data recording, the recording of the data on the recording medium can be normally resumed.
【0087】請求項6記載の発明によれば、検出手段に
より、排出手段に対して排出指示手段により記録媒体の
排出が指示されたことが検出され、該検出手段の出力に
応じて、中断手段により前記排出手段による記録媒体の
排出を所定期間禁止して前記記録動作が中断され、ファ
イル管理データ作成手段により前記所定期間中に前記中
断した時点までに記録したデータをファイルとして管理
するためのファイル管理データが作成されるので、デー
タ記録中に記録媒体が取り出された場合にも、記録媒体
へのデータの記録を正常に再開することができる。According to the sixth aspect of the invention, the detecting means detects that the ejecting means has instructed the ejecting means to eject the recording medium, and the interrupting means is output according to the output of the detecting means. A file for managing the data recorded by the file management data creation unit as a file by prohibiting the ejection of the recording medium by the ejection unit for a predetermined period and interrupting the recording operation. Since the management data is created, even if the recording medium is taken out during the data recording, the recording of the data on the recording medium can be normally restarted.
【0088】請求項7記載の発明によれば、ファイル管
理データ作成手段により、ファイルアロケーションテー
ブル、ディレクトリ、および記録媒体固有のボリューム
シリアルナンバーを含むファイル管理データが作成され
るので、データ記録中に記録媒体が取り出された場合に
も、記録媒体へのデータの記録を正常に再開することが
できる。According to the invention described in claim 7, the file management data creating means creates the file management data including the file allocation table, the directory, and the volume serial number unique to the recording medium. Even when the medium is taken out, the recording of the data on the recording medium can be normally resumed.
【0089】請求項8記載の発明によれば、検出手段に
より、前記排出手段に対して前記排出指示手段により記
録媒体の排出が指示されたことが検出され、該検出手段
の出力に応じて、中断手段により前記排出手段による記
録媒体の排出を所定期間禁止して前記記録動作が中断さ
れ、前記所定期間中に前記中断した時点までに記録した
データが消去手段により消去されるので、データ記録中
に記録媒体が取り出された場合にも、記録媒体へのデー
タの記録を正常に再開することができる。According to the eighth aspect of the present invention, the detecting means detects that the ejecting means has instructed the ejecting means to eject the recording medium, and according to the output of the detecting means. Since the suspending means prohibits the discharging means from discharging the recording medium for a predetermined period of time, the recording operation is interrupted, and the data recorded up to the interrupted point during the predetermined period of time is erased by the erasing means, so that the data is being recorded Even when the recording medium is taken out, the recording of data on the recording medium can be normally resumed.
【図1】本発明の第1の実施の形態に係るデータ記録装
置の概略構成を示すブロック図である。FIG. 1 is a block diagram showing a schematic configuration of a data recording device according to a first embodiment of the present invention.
【図2】記録媒体に記憶される1つのドライブの構成を
示す説明図である。FIG. 2 is an explanatory diagram showing a configuration of one drive stored in a recording medium.
【図3】本発明の第1の実施の形態に係るデータ記録装
置の基本的動作を示すフローチャートである。FIG. 3 is a flowchart showing a basic operation of the data recording device according to the first embodiment of the present invention.
【図4】同装置を背面から見た斜視図である。FIG. 4 is a perspective view of the same device as seen from the back side.
【図5】同装置の特徴的動作を示すフローチャートであ
る。FIG. 5 is a flowchart showing a characteristic operation of the device.
【図6】同装置の特徴的動作を示すフローチャートであ
る。FIG. 6 is a flowchart showing a characteristic operation of the device.
【図7】本発明の第2の実施の形態に係るデータ記録装
置の特徴的動作を示すフローチャートである。FIG. 7 is a flowchart showing a characteristic operation of the data recording device according to the second embodiment of the present invention.
【図8】本発明の第2の実施の形態に係るデータ記録装
置の特徴的動作を示すフローチャートである。FIG. 8 is a flowchart showing a characteristic operation of the data recording device according to the second embodiment of the present invention.
【図9】本発明の第3の実施の形態に係るデータ記録装
置を背面から見た斜視図である。FIG. 9 is a perspective view of a data recording device according to a third embodiment of the present invention as seen from the back side.
【図10】本発明の第4の実施の形態に係るデータ記録
装置を背面から見た斜視図である。FIG. 10 is a rear perspective view of a data recording device according to a fourth embodiment of the present invention.
【図11】同装置の特徴的動作を示すフローチャートで
ある。FIG. 11 is a flowchart showing a characteristic operation of the device.
【図12】本発明の第5の実施の形態の特徴的動作を示
すフローチャートである。FIG. 12 is a flowchart showing a characteristic operation of the fifth exemplary embodiment of the present invention.
1 レンズ 2 シャッター 3 撮像素子 4 第1の信号処理回路 5 A/D変換器 6 第2の信号処理回路 7 DRAM 8 EEPROM 9 媒体制御I/F部 10 記録媒体 11 全体制御部 12 RAM 13 タイミング発生部 14 外部I/F部 1 Lens 2 Shutter 3 Image Sensor 4 First Signal Processing Circuit 5 A / D Converter 6 Second Signal Processing Circuit 7 DRAM 8 EEPROM 9 Medium Control I / F Unit 10 Recording Medium 11 Overall Control Unit 12 RAM 13 Timing Generation 14 External I / F
Claims (9)
手段により装着された記録媒体にデータを記録する記録
手段と、前記装着手段に装着された記録媒体を装置外部
に排出する排出手段と、該排出手段に対して記録媒体の
装置外部への排出を指示する排出指示手段とを備えたデ
ータ記録装置において、データ記録中に前記記録媒体の
排出が指示された場合、該記録媒体に記録されたデータ
を保護するデータ保護手段を備えたことを特徴とするデ
ータ記録装置。1. Mounting means for mounting a recording medium, recording means for recording data on the recording medium mounted by the mounting means, and discharging means for discharging the recording medium mounted on the mounting means to the outside of the apparatus. In a data recording apparatus having a discharge instruction means for instructing the discharge means to discharge the recording medium to the outside of the apparatus, if the discharge of the recording medium is instructed during data recording, the data is recorded on the recording medium. A data recording device comprising a data protection means for protecting the stored data.
装置外部に排出するための予備状態を検出する検出手段
と、 該検出手段の出力に応じて、前記データの記録動作を中
断する中断手段と、 該中断した時点までに記録したデータをファイルとして
管理するためのファイル管理データを作成するファイル
管理データ作成手段とを含むことを特徴とする請求項1
記載のデータ記録装置。2. The data protection means includes a detection means for detecting a preliminary state for ejecting the recording medium to the outside of the apparatus, and an interruption means for interrupting the data recording operation according to the output of the detection means. And a file management data creating means for creating file management data for managing the data recorded up to the point of interruption as a file.
The described data recording device.
装置外部に排出するための予備状態を検出する検出手段
と、 該検出手段の出力に応じて、前記データの記録動作を中
断する中断手段と、 該中断した時点までに記録したデータを前記記録媒体か
ら消去する消去手段とを含むことを特徴とする請求項1
記載のデータ記録装置。3. The data protection means detects a preliminary state for ejecting the recording medium to the outside of the apparatus, and an interruption means for interrupting the data recording operation according to the output of the detection means. And erasing means for erasing the data recorded up to the point of interruption from the recording medium.
The described data recording device.
記装着手段に装着された記録媒体を覆う蓋部が開けられ
た状態であることを特徴とする請求項2または請求項3
記載のデータ記録装置。4. The preliminary state detected by the detection means is a state in which a lid portion that covers the recording medium mounted on the mounting means is opened.
The described data recording device.
第1および第2ストロークを有する排出指示スイッチか
ら成り、前記検出手段が検出する予備状態は、前記排出
指示スイッチが前記第1ストロークと第2ストロークと
の間まで押し込まれた状態であることを特徴とする請求
項2乃至請求項4のいずれかに記載のデータ記録装置。5. The discharge instruction means comprises a discharge instruction switch having at least two stages of first and second strokes, and the preliminary state detected by the detection means is such that the discharge instruction switch detects the first stroke and the second stroke. The data recording device according to any one of claims 2 to 4, wherein the data recording device is in a state of being pressed into a stroke.
対して前記排出指示手段により前記記録媒体の排出が指
示されたことを検出する検出手段と、 該検出手段の出力に応じて、前記排出手段による記録媒
体の排出を所定期間禁止して前記記録動作を中断する中
断手段と、 前記所定期間中に前記中断した時点までに記録したデー
タをファイルとして管理するためのファイル管理データ
を作成するファイル管理データ作成手段とを含むことを
特徴とする請求項1記載のデータ記録装置。6. The data protection means detects the ejection means instructing the ejection means to eject the recording medium, and the ejection means according to the output of the detection means. Interruption means for prohibiting the ejection of the recording medium by the means for a predetermined period and interrupting the recording operation, and a file for creating file management data for managing the data recorded up to the interruption point during the predetermined period as a file The data recording device according to claim 1, further comprising management data creating means.
するファイル管理データは、ファイルアロケーションテ
ーブル、ディレクトリ、および記録媒体固有のボリュー
ムシリアルナンバーを含むことを特徴とする請求項6Z
載のデータ記録装置。7. The file management data created by the file management data creating means includes a file allocation table, a directory, and a volume serial number unique to a recording medium.
On-board data recording device.
対して前記排出指示手段により記録媒体の排出が指示さ
れたことを検出する検出手段と、 該検出手段の出力に応じて、前記排出手段による記録媒
体の排出を所定期間禁止して前記記録動作を中断する中
断手段と、 前記所定期間中に前記中断した時点までに記録したデー
タを消去する消去手段とを含むことを特徴とする請求項
1記載のデータ記録装置。8. The data protection means includes a detection means for detecting that the discharge instruction means has instructed the discharge means to discharge a recording medium, and the discharge means according to the output of the detection means. 7. An interruption means for prohibiting the ejection of the recording medium by a predetermined period to interrupt the recording operation, and an erasing means for erasing the data recorded up to the interruption point during the predetermined period. 1. The data recording device according to 1.
体にデータを記録し、前記記録媒体の装置外部への排出
を指示するデータ記録方法において、データ記録中に前
記記録媒体の排出が指示された場合、該記録媒体に記録
されたデータを保護することを特徴とするデータ記録方
法。9. A data recording method of mounting a recording medium, recording data on the mounted recording medium, and instructing discharge of the recording medium to the outside of the apparatus, wherein the recording medium is discharged during data recording. A data recording method, which protects data recorded on the recording medium when instructed.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP23467995A JPH0963192A (en) | 1995-08-21 | 1995-08-21 | Data recording device and data recording method |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP23467995A JPH0963192A (en) | 1995-08-21 | 1995-08-21 | Data recording device and data recording method |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH0963192A true JPH0963192A (en) | 1997-03-07 |
Family
ID=16974764
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP23467995A Pending JPH0963192A (en) | 1995-08-21 | 1995-08-21 | Data recording device and data recording method |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH0963192A (en) |
Cited By (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| EP0926670A3 (en) * | 1997-10-21 | 2001-03-21 | Sony Corporation | Recording apparatus, recording method, playback apparatus, playback method, recording/playback apparatus, recording/playback method, presentation medium and recording medium |
| WO2002093573A1 (en) * | 2001-05-11 | 2002-11-21 | Sony Corporation | Recorder |
| JP2002354398A (en) * | 2001-05-22 | 2002-12-06 | Nikon Corp | Electronic camera |
| JP2007237693A (en) * | 2006-03-10 | 2007-09-20 | Oki Data Corp | Image processing device |
| EP1837879A2 (en) | 2006-03-21 | 2007-09-26 | Media Tek Inc. | Dubbing method using a label for identifying the dubbing status |
-
1995
- 1995-08-21 JP JP23467995A patent/JPH0963192A/en active Pending
Cited By (12)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| EP0926670A3 (en) * | 1997-10-21 | 2001-03-21 | Sony Corporation | Recording apparatus, recording method, playback apparatus, playback method, recording/playback apparatus, recording/playback method, presentation medium and recording medium |
| US6430122B1 (en) | 1997-10-21 | 2002-08-06 | Sony Corporation | Recording and reproducing system having resume function |
| US6574172B2 (en) | 1997-10-21 | 2003-06-03 | Sony Corporation | Recording and reproducing system having resume function |
| EP1536421A1 (en) * | 1997-10-21 | 2005-06-01 | Sony Corporation | Recording apparatus and recording method with reservation information |
| US7385884B2 (en) | 1997-10-21 | 2008-06-10 | Sony Corporation | Apparatus and method for recording reservation information into a removable storage medium |
| WO2002093573A1 (en) * | 2001-05-11 | 2002-11-21 | Sony Corporation | Recorder |
| US7057984B2 (en) | 2001-05-11 | 2006-06-06 | Sony Corporation | Recorder apparatus, method, and processing program for recording data from a position continuously succeeding a recorded area |
| US7161878B2 (en) | 2001-05-11 | 2007-01-09 | Sony Corporation | Recording apparatus for an optical disk |
| JP2002354398A (en) * | 2001-05-22 | 2002-12-06 | Nikon Corp | Electronic camera |
| JP2007237693A (en) * | 2006-03-10 | 2007-09-20 | Oki Data Corp | Image processing device |
| EP1837879A2 (en) | 2006-03-21 | 2007-09-26 | Media Tek Inc. | Dubbing method using a label for identifying the dubbing status |
| EP1837879A3 (en) * | 2006-03-21 | 2007-10-10 | Media Tek Inc. | Dubbing method using a label for identifying the dubbing status |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US7406254B2 (en) | Information signal processing apparatus | |
| USRE41155E1 (en) | Image recording apparatus | |
| JPH0876933A (en) | Hard disk format operation control device | |
| JPH0963192A (en) | Data recording device and data recording method | |
| US8077221B2 (en) | Image capturing apparatus and control method therefor with determination whether storage medium is limited-rewriteable storage medium | |
| US6631427B2 (en) | Data recording apparatus and method including control data invalidating function | |
| KR20000063020A (en) | Digital camera | |
| JP4058259B2 (en) | Storage medium access device and storage medium access control method | |
| JP3839856B2 (en) | Data processing device | |
| EP0680046A2 (en) | Information storage device | |
| JP4184709B2 (en) | Data processing system, data processing method, and data processing program | |
| JP2004328073A (en) | Image data writing method | |
| JP4612816B2 (en) | Recording / reproducing apparatus and control method | |
| JP3919261B2 (en) | Memory control device and memory access method | |
| EP1168815A3 (en) | Data processing apparatus using recording medium which needs data erasing processing before recording of data | |
| JP2001126039A (en) | Recording device | |
| JP4495391B2 (en) | Digital camera | |
| JP2000066947A (en) | Data recording apparatus and method | |
| JPH07287640A (en) | Recording medium, recording unit, and recording system using the recording medium or recording unit | |
| JP2006202051A (en) | Data processing apparatus and data processing method | |
| JP2005005784A (en) | Recording medium storage apparatus and camera | |
| JP2002118784A (en) | Electronic camera | |
| JP4082988B2 (en) | Imaging device | |
| JP3840242B2 (en) | Image processing apparatus and control method thereof | |
| JPH09297827A (en) | Digital camera |