JP2015028825A - Recording apparatus - Google Patents

Recording apparatus Download PDF

Info

Publication number
JP2015028825A
JP2015028825A JP2013157999A JP2013157999A JP2015028825A JP 2015028825 A JP2015028825 A JP 2015028825A JP 2013157999 A JP2013157999 A JP 2013157999A JP 2013157999 A JP2013157999 A JP 2013157999A JP 2015028825 A JP2015028825 A JP 2015028825A
Authority
JP
Japan
Prior art keywords
data
recording medium
external device
writing
blocks
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
JP2013157999A
Other languages
Japanese (ja)
Inventor
智裕 関口
Tomohiro Sekiguchi
智裕 関口
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Canon Inc
Original Assignee
Canon Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Canon Inc filed Critical Canon Inc
Priority to JP2013157999A priority Critical patent/JP2015028825A/en
Publication of JP2015028825A publication Critical patent/JP2015028825A/en
Pending legal-status Critical Current

Links

Landscapes

  • Television Signal Processing For Recording (AREA)
  • Signal Processing For Digital Recording And Reproducing (AREA)
  • Management Or Editing Of Information On Record Carriers (AREA)

Abstract

PROBLEM TO BE SOLVED: To prevent generation of a situation where residual capacity of an alternative block is lost and data cannot be read out even when data are written from an external apparatus.SOLUTION: Before recording data from an external apparatus to a detachable recording medium, a sort and the number of bytes of recording data are transmitted from the external apparatus (S201). Information acquisition processing of the remaining number of alternative blocks is performed (S202). The number of blocks necessary for the update of a management file and the update of a FAT file system is compared with the remaining number of alternative blocks from the acquired file sort, file size information and information of the remaining number of alternative blocks. When the remaining number of alternative blocks is larger than the number of necessary blocks (S203), writing of stream data is started (S204). When the remaining number of alternative blocks is smaller, data transfer processing is interrupted (S207), and the processing is ended.

Description

本発明は、記録装置に関し、特に、不良ブロックに対する代替ブロックを有する記録媒体にデータを記録する装置に関する。   The present invention relates to a recording apparatus, and more particularly to an apparatus for recording data on a recording medium having a substitute block for a defective block.

フラッシュメモリは自由なデータの書き込み及び消去が可能であるRAMの長所と電源が無くても記録したデータを保存するROMの長所を同時に有しているので、近年ではデジタルカメラ、PDA、MP3プレーヤーのような携帯用電子機器の記録媒体として広く使用されている。   Since flash memory has the advantages of RAM that allows free writing and erasing of data and the advantage of ROM that stores recorded data even without a power source, in recent years digital cameras, PDAs, MP3 players It is widely used as a recording medium for such portable electronic devices.

フラッシュメモリはプログラム動作または消去動作のときに高エネルギー障壁を通過するトンネリング効果、あるいは高い運動エネルギーを有するホットキャリア絶縁物を通過するホットキャリア効果を利用する。このようなプログラム動作および消去動作はフラッシュメモリセルにデータを書き込む回数を制限する要因となり、データの書き込み動作の際にセルの誤動作を誘発する原因となる。また、高集積化が要求されるメモリ装置の製造工程が有する多数の制約条件のため、セルが不良を誘発することもある。このようなフラッシュメモリの高集積化による歩留まりの低下およびスループットの低下を改善するためのさまざまな試みがなされている。   The flash memory uses a tunneling effect that passes through a high energy barrier during a program operation or an erase operation, or a hot carrier effect that passes through a hot carrier insulator having high kinetic energy. Such programming and erasing operations limit the number of times data is written to the flash memory cell, and cause a cell malfunction during the data writing operation. In addition, due to a number of constraints included in the manufacturing process of a memory device that requires high integration, a cell may induce a defect. Various attempts have been made to improve yield reduction and throughput reduction due to such high integration of flash memory.

そこで、上記のような原因により発生した不良セルを含むブロックに対する対応技術として、代替ブロックに代替する冗長技術がある。冗長技術は不良の発生したブロックのアドレスを把握して、把握したアドレスにはデータの書き込みおよび読み出し動作が行われないように阻止するものである。また、不良セルの発生した不良ブロックは所定の物理アドレスを有する代替ブロックに代替され、その代替されたブロックを通じてデータの書き込みまたは読み出し動作が行われる。   Thus, as a technique for dealing with a block including a defective cell generated due to the above-described cause, there is a redundancy technique for substituting for a substitute block. The redundancy technique grasps the address of a block in which a defect has occurred and prevents data write and read operations from being performed on the grasped address. A defective block in which a defective cell is generated is replaced with a replacement block having a predetermined physical address, and data is written or read through the replaced block.

そして、上記のような冗長技術による不良セルの代替ブロックへの代替が進行し、代替ブロックを使い切った場合には、フラッシュメモリが書き込み禁止(または、単に読み取り専用)の記録媒体として動作する記録媒体が存在する(特許文献1参照)。   Then, when the replacement of the defective cell to the replacement block by the redundancy technique as described above progresses and the replacement block is used up, the flash memory operates as a write-protected (or simply read-only) recording medium. (See Patent Document 1).

また、上記のような冗長技術により得られる代替ブロックのブロック容量、代替ブロック残数、などに対する情報を、ハードディスクドライブ(HDD)のATA(Advanced Technology Attachment)インターフェースのスマート(S.M.A.R.T)関連のコマンドを用いたり(特許文献1参照)、既存のデータ書き込みコマンドや初期化コマンドのレスポンスに組み込んで(特許文献2参照)、接続先ホスト機器へ提供する仕組みが考案されている。   In addition, information on the block capacity of the replacement block, the number of remaining replacement blocks, and the like obtained by the redundancy technique as described above is used for the ATA (Advanced Technology Attachment) interface of the hard disk drive (HDD). .T) A mechanism has been devised that uses a related command (see Patent Document 1) or incorporates it in a response to an existing data write command or initialization command (see Patent Document 2) and provides it to a connected host device. .

一方、デジタルカメラなどの画像記録装置で使用される映像の記録フォーマットの一例として、デジタルカメラ用の記録フォーマットの一つであるDPOF(Digital Print Order Format)や、ハイビジョン動画記録フォーマットの一つであるAVCHD(Advanced Video Codec High Definition)など、がある。   On the other hand, as an example of a video recording format used in an image recording apparatus such as a digital camera, it is one of the recording formats for digital cameras such as DPOF (Digital Print Order Format) and a high-definition video recording format. AVCHD (Advanced Video Codec High Definition).

上記記録フォーマットを代表として、現在の画像記録フォーマットの規格の多くは、画像の記録後に管理ファイルを編集することにより、印刷指定や映像の編集などを行うことが可能とする仕様を採用している。   As a representative of the above recording formats, many of the current image recording format standards adopt specifications that enable printing designation and video editing by editing the management file after image recording. .

特開2008−117516号公報JP 2008-117516 A 特開2008−46923号公報JP 2008-46923 A

しかしながら、前述したようなデジタルカメラやビデオカメラなどの記録装置による記録媒体への書き込みを行っている際に記録媒体の代替ブロックを全て使い切った場合、記録媒体が書き込み禁止状態に遷移してしまい、管理ファイルの書換えができなくなってしまったり、ファイルシステムの更新ができなくなってしまうことで、書込み途中のデータが失われてしまったり、記録媒体内の全てのデータが失われてしまう可能性もある。   However, when all of the alternative blocks of the recording medium are used when writing to the recording medium by a recording device such as a digital camera or a video camera as described above, the recording medium transitions to a write-protected state, If the management file cannot be rewritten or the file system cannot be updated, data in the middle of writing may be lost, or all data on the recording medium may be lost. .

そのため、書込み禁止状態となる前に、記録媒体への書込み制限を行なう必要がある。しかし、外部機器と接続中においては、外部装置が記録媒体のFile Systemを管理しているため、従来の通信の方法では書込みを制限することが困難であるという問題がある。   For this reason, it is necessary to restrict writing to the recording medium before the writing is prohibited. However, since the external device manages the file system of the recording medium while connected to the external device, there is a problem that it is difficult to restrict writing by the conventional communication method.

本発明はこのような問題を解決し、外部機器からデータが書き込まれる場合でも、代替ブロック残容量が無くなってデータの読み出しができなくなることを防止することを目的とする。   An object of the present invention is to solve such a problem and prevent a situation in which the remaining capacity of an alternative block is lost and data cannot be read even when data is written from an external device.

本発明の記録装置は、
接続された記録媒体から代替ブロック情報を取得する代替ブロック情報取得手段と、
前記記録媒体へデータを書き込む書き込み手段と、
外部機器と接続し、データの受信、送信を行う通信手段と、
を具備する記録装置であって、
半導体メモリ領域内で発生した不良ブロックを、代替用の領域として確保される代替ブロックと置き換えを行う不良ブロック置換手段と、
を具備する記録媒体が装着された場合に、
外部機器から前記記録媒体へ書き込むためのデータを受信する前に、前記データのサイズと種類を外部機器から取得し、
外部機器から受信する前記データが特定の種類である場合には、
前記データのサイズ、または、特定の種類のデータのサイズ、と代替ブロック残容量を比較し、代替ブロック残容量が小さい場合には、外部機器からの書き込みを中止することを特徴としている。
The recording apparatus of the present invention
Alternative block information acquisition means for acquiring alternative block information from the connected recording medium;
Writing means for writing data to the recording medium;
A communication means for connecting to an external device and receiving and transmitting data;
A recording apparatus comprising:
A defective block replacement means for replacing a defective block generated in the semiconductor memory area with a replacement block secured as a replacement area;
When a recording medium equipped with
Before receiving data for writing to the recording medium from an external device, obtain the size and type of the data from the external device,
If the data received from the external device is a specific type,
The size of the data or the size of a specific type of data is compared with the alternative block remaining capacity. When the alternative block remaining capacity is small, writing from an external device is stopped.

以上説明したように、本発明によれば、代替ブロックを使い切ってしまった場合に書込みが禁止されてしまう記録媒体を使用しても、動画管理ファイル書込み中やファイルシステムの更新中に記録媒体が書き込み禁止とならないよう、代替ブロックの残容量を管理することで、データ破壊を防ぐことができる。   As described above, according to the present invention, even when a recording medium that is prohibited from being written when the alternative block is used up is used, the recording medium is not being written during the video management file writing or the file system update. Data destruction can be prevented by managing the remaining capacity of the alternative block so that writing is not prohibited.

ビデオカメラのシステム構成図である。1 is a system configuration diagram of a video camera. 外部装置との通信時のフローチャートである。It is a flowchart at the time of communication with an external device.

以下、図面を参照しながら本発明を説明する。   The present invention will be described below with reference to the drawings.

なお、ここで示す実施の形態はあくまでも一例であって、必ずしもこの実施の形態に限定されるものではない。   In addition, embodiment shown here is an example to the last, Comprising: It is not necessarily limited to this embodiment.

<第1の実施形態>
まず、本実施形態の記録装置を、図1に示すビデオカメラのシステム構成図を例に取り説明する。
<First Embodiment>
First, the recording apparatus of the present embodiment will be described taking the system configuration diagram of the video camera shown in FIG. 1 as an example.

(映像ブロック)
映像ブロックは、撮像部101、マイク102、映像処理部103から構成される。撮像部101は、光学像を電気信号に変換し、所定の形式のアナログ映像信号を作成する。その後、撮像部10)は、アナログ映像信号をデジタル映像信号にA/D変換し、A/D変換されたデジタル映像信号にガンマ補正および色バランス補正などの所定の補正処理を行い、補正処理を施したデジタル映像信号を映像処理部103へ送る。マイク102から出力される音声信号は、A/D変換によりデジタル音声信号に変換され、さらに各種雑音除去およびダイナミックレンジの制限などの補正処理を施した上で映像処理部103へ送られる。
(Video block)
The video block includes an imaging unit 101, a microphone 102, and a video processing unit 103. The imaging unit 101 converts an optical image into an electrical signal and creates an analog video signal in a predetermined format. Thereafter, the imaging unit 10) A / D converts the analog video signal into a digital video signal, performs predetermined correction processing such as gamma correction and color balance correction on the A / D converted digital video signal, and performs the correction processing. The applied digital video signal is sent to the video processing unit 103. The audio signal output from the microphone 102 is converted into a digital audio signal by A / D conversion, and further subjected to correction processing such as various noise removal and dynamic range restriction, and then sent to the video processing unit 103.

映像処理部103は、撮像部101から送られたデジタル映像信号と、マイク102から送られたデジタル音声信号と、を合成し、さらに圧縮伸長処理を施し、AVCHDやExifなどの動画および静止画の所定の画像ファイル形式に変換する。   The video processing unit 103 synthesizes the digital video signal sent from the imaging unit 101 and the digital audio signal sent from the microphone 102, further performs compression / decompression processing, and generates a moving image and a still image such as AVCHD and Exif. Convert to a predetermined image file format.

その上で、映像処理部103は、変換された動画ファイルをメモリコントローラ111を経由してフレームメモリ112に転送する。   After that, the video processing unit 103 transfers the converted moving image file to the frame memory 112 via the memory controller 111.

また、映像処理部103は、表示部107および音声出力部109に表示するために、撮像部101およびマイク102により転送されたデジタル映像信号およびデジタル音声信号を表示圧縮処理部106と音声圧縮処理部108に転送する。   The video processing unit 103 also displays the digital video signal and the digital audio signal transferred by the imaging unit 101 and the microphone 102 for display on the display unit 107 and the audio output unit 109. Forward to.

表示圧縮処理部106は、スルー画像用に設定された所定の圧縮方法によりデジタル映像信号に対して再圧縮を行い表示部107に出力して、ユーザが撮影画像を確認するためのスルー画像を表示部107に表示する。   The display compression processing unit 106 re-compresses the digital video signal by a predetermined compression method set for the through image and outputs it to the display unit 107 to display a through image for the user to check the captured image. Displayed on the unit 107.

また、音声圧縮処理部108は、音声表示用に設定された所定の圧縮方法によりデジタル音声信号に対して再圧縮を行い音声出力部109に出力して、ユーザが撮影時の音声を確認するためのスルー音声を音声出力部109に表示する。   Also, the audio compression processing unit 108 re-compresses the digital audio signal by a predetermined compression method set for audio display and outputs it to the audio output unit 109 so that the user can confirm the audio at the time of shooting. Are displayed on the audio output unit 109.

なお、ここでのデジタル映像信号およびデジタル音声信号に対する再圧縮処理は、デジタル音声信号に対して、例えば、画面サイズ変換、ビットレート変換、およびフレームレート変換を行い、また、デジタル音声信号に対して、例えば、音声ビットレート変換を行うものとする。   Note that the recompression processing for the digital video signal and digital audio signal here performs, for example, screen size conversion, bit rate conversion, and frame rate conversion for the digital audio signal, and also for the digital audio signal. For example, audio bit rate conversion is performed.

(記録ブロック)
記録ブロックは、着脱可能記録媒体インターフェース113、着脱可能記録媒体114、内蔵記録媒体インターフェース115、内蔵記録媒体116から構成され、各種データの記録を行う。
(Recording block)
The recording block includes a detachable recording medium interface 113, a detachable recording medium 114, a built-in recording medium interface 115, and a built-in recording medium 116, and records various data.

着脱可能記録媒体114は、フラッシュメモリカード、カセットテープ、光磁気ディスクなどの形態で既に実施されており、本実施の形態では、一例としてフラッシュメモリカードを着脱可能記録媒体114とする。着脱可能記録媒体114とシステムバス110との間は、着脱可能記録媒体インターフェース113によって接続され、着脱可能記録媒体114の物理的、電気的特性のインターフェースとなる。また、着脱可能記録媒体インターフェース113は、着脱可能記録媒体114の装着を検出することも可能である。   The removable recording medium 114 has already been implemented in the form of a flash memory card, a cassette tape, a magneto-optical disk, and the like. In this embodiment, the flash memory card is used as the removable recording medium 114 as an example. The detachable recording medium 114 and the system bus 110 are connected by a detachable recording medium interface 113 to provide an interface of physical and electrical characteristics of the detachable recording medium 114. Further, the removable recording medium interface 113 can also detect the mounting of the removable recording medium 114.

内蔵記録媒体116は、フラッシュメモリモジュール、HDD(ハードディスクドライブ)などの形態で既に実施されており、本実施の形態では、一例としてフラッシュメモリモジュールとする。内蔵記録媒体116とシステムバス110との間は、内蔵記録媒体インターフェース115によって接続され、内蔵記録媒体116の物理的、電気的特性のインターフェースとなる。   The built-in recording medium 116 has already been implemented in the form of a flash memory module, HDD (hard disk drive), etc., and in this embodiment, it is a flash memory module as an example. The built-in recording medium 116 and the system bus 110 are connected by a built-in recording medium interface 115 and serve as an interface of physical and electrical characteristics of the built-in recording medium 116.

なお、動画および静止画ファイルの記録先記録媒体は、動画記録前にユーザがユーザ操作部105を操作することにより設定することができる。この場合に、システムコントローラ104は、記録媒体の選択状態設定を保存し、記録時には記録媒体の選択状態設定を参照して内蔵記録媒体116および着脱可能記録媒体114のいずれかに決定して記録処理を行う。   Note that the recording destination recording medium for moving images and still image files can be set by the user operating the user operation unit 105 before recording the moving images. In this case, the system controller 104 stores the recording medium selection state setting, and at the time of recording, refers to the recording medium selection state setting to determine either the built-in recording medium 116 or the detachable recording medium 114 to perform the recording process. I do.

着脱可能記録媒体114へ記録を行う際は、まずシステムコントローラ104が着脱可能記録媒体インターフェース113からの情報を参照して着脱可能記録媒体114の検出を行い、着脱可能記録媒体114が検出された場合には、着脱可能記録媒体114が記録可能であるかを状態判別する。着脱可能記録媒体114が記録可能である場合は、システムコントローラ104が、フレームメモリ112から転送する画像ファイルにつき着脱可能記録媒体インターフェース113により物理層レベルのインターフェースをとり、その上で画像ファイルを着脱可能記録媒体114に記録する。ただし、メモリコントローラ111が画像ファイルデータをDMA(Direct Memory Access)転送により直接着脱可能記録媒体IFへ転送を行っても良いものとする。   When recording on the removable recording medium 114, the system controller 104 first detects the removable recording medium 114 with reference to the information from the removable recording medium interface 113, and the removable recording medium 114 is detected. First, it is determined whether or not the removable recording medium 114 is recordable. When the detachable recording medium 114 is recordable, the system controller 104 can interface the physical layer level with the detachable recording medium interface 113 for the image file transferred from the frame memory 112, and the image file can be attached or detached thereon. Recording is performed on the recording medium 114. However, the memory controller 111 may transfer the image file data directly to the removable recording medium IF by DMA (Direct Memory Access) transfer.

内蔵記録媒体116へ記録を行う際は、まずシステムコントローラ104が内蔵記録媒体116が記録可能であるかを状態判別する。内蔵記録媒体116が記録可能である場合は、システムコントローラ104が、フレームメモリ112から転送する画像ファイルにつき内蔵記録媒体インターフェース115により物理層レベルのインターフェースをとり、その上で画像ファイルを内蔵記録媒体116に記録する。ただし、メモリコントローラ111が画像ファイルをDMA転送により直接着脱可能記録媒体インターフェース115へデータ転送しても良いものとする。   When recording on the internal recording medium 116, the system controller 104 first determines whether the internal recording medium 116 is recordable. When the built-in recording medium 116 is recordable, the system controller 104 uses the built-in recording medium interface 115 for the image file to be transferred from the frame memory 112 to provide a physical layer level interface, and then the image file is stored on the built-in recording medium 116. To record. However, the memory controller 111 may transfer the image file directly to the removable recording medium interface 115 by DMA transfer.

(再生表示ブロック)
再生表示ブロックは、音声出力部109、表示部107から構成されており、他のブロックから入力されるデータをアナログ信号としてユーザへ出力する。本実施の形態では、音声出力部109は、スピーカおよびヘッドフォン出力端子を選択して切替え可能の構成とする。また、本実施の形態では、表示部107は液晶パネルとする。ただし、画像および音声の表示形式によって本件が限定されることはない。
(Playback display block)
The reproduction display block includes an audio output unit 109 and a display unit 107, and outputs data input from other blocks to the user as an analog signal. In this embodiment, the audio output unit 109 is configured to be able to select and switch a speaker and a headphone output terminal. In this embodiment mode, the display portion 107 is a liquid crystal panel. However, this case is not limited by the display format of images and sounds.

(システムブロック)
システムブロックは、システムコントローラ104、ユーザ操作部105、システムバス110から構成される。システムコントローラ104は、中央処理装置、メモリ手段などで構成されている。ユーザは、ユーザ操作部105を操作することで、各種の要求を入力可能である。ユーザ操作部105は、撮影モード選択用のモードダイヤルや、選択用の十字キー、記録開始、終了、動画および静止画の記録方式の切換など、を制御する撮影ボタンなどで構成されている。
(System block)
The system block includes a system controller 104, a user operation unit 105, and a system bus 110. The system controller 104 includes a central processing unit and memory means. The user can input various requests by operating the user operation unit 105. The user operation unit 105 includes a mode dial for selecting a shooting mode, a cross key for selection, a recording start and end, a shooting button for controlling switching of recording methods for moving images and still images, and the like.

システムコントローラ104は、ユーザの要求とビデオカメラ1内の各部の状態を基に動作を決定し、各部を制御する。システムバス110は、システムコントローラ104がビデオカメラ1内の各部を制御するための制御信号や、データの受け渡しに使用する。   The system controller 104 determines the operation based on the user's request and the state of each part in the video camera 1 and controls each part. The system bus 110 is used by the system controller 104 to exchange control signals and data for controlling each unit in the video camera 1.

また、システムコントローラ104は、映像処理部103に対して警告表示を指示することで、前述したスルー画像に警告表示を重畳して表示部107に警告表示を表示し、また、音声出力部109に警告音を表示することができる。   Further, the system controller 104 instructs the video processing unit 103 to display a warning, so that the warning display is displayed on the display unit 107 by superimposing the warning display on the through image, and the audio output unit 109 is displayed. A warning sound can be displayed.

(通信ブロック)
通信ブロックは、通信部117、システムバス110から構成され、ビデオカメラ1は、USB (Universal Sperial Bus)規格で規定された、デバイス機器として動作する。通信部117は外部装置2と通信を行ない、接続された外部装置2へのデータ送信や、外部装置2からコマンドやデータの受信を行う。なお、以下実施の形態ではUSBを例に取って説明する。
(Communication block)
The communication block includes a communication unit 117 and a system bus 110, and the video camera 1 operates as a device device defined by the USB (Universal Spatial Bus) standard. The communication unit 117 communicates with the external device 2 to transmit data to the connected external device 2 and receive commands and data from the external device 2. In the following embodiments, USB will be described as an example.

外部装置2の一例として、PC(Personal Computer)を用いるが、例えばレコーダやDVDライター等の機器でもよい。外部装置2は、USB規格で規定されたホスト機器として動作する。また、外部装置2は図示されないビデオカメラ1と通信を行う通信部、表示部、CPU、RAM等を含む。   As an example of the external device 2, a PC (Personal Computer) is used, but a device such as a recorder or a DVD writer may be used. The external device 2 operates as a host device defined by the USB standard. The external device 2 includes a communication unit that communicates with a video camera 1 (not shown), a display unit, a CPU, a RAM, and the like.

接続ケーブルの一例として、USB規格に準拠した接続ケーブルを用いる。以下、USB規格に準拠した接続ケーブルを「USBケーブル」という。USBケーブルは、VBUS、D+、D−、GNDの4つのラインで構成されている。   As an example of the connection cable, a connection cable conforming to the USB standard is used. Hereinafter, a connection cable compliant with the USB standard is referred to as a “USB cable”. The USB cable is composed of four lines: VBUS, D +, D-, and GND.

次に外部装置2との通信時のフローチャートを図2に示す。本実施例では、外部装置2からビデオカメラ1の着脱可能記録媒体114に、動画データを転送する場合を例にとる。   Next, a flowchart at the time of communication with the external apparatus 2 is shown in FIG. In this embodiment, a case where moving image data is transferred from the external device 2 to the removable recording medium 114 of the video camera 1 is taken as an example.

ビデオカメラ1と外部装置2をUSBケーブルで接続し、通信を確立した後、ビデオカメラ1は、外部装置2から、これからデータ転送されるファイルの種類およびファイルサイズを受信する(S201)。ファイルの種類としては、ストリームデータ、および管理ファイルをデータ転送する例をあげる。この場合、ファイルの種類は、(i)ストリームデータ、(ii)管理情報、となり、ファイルサイズは、(i)100MB、(ii)1KBとする。   After the video camera 1 and the external device 2 are connected with a USB cable and communication is established, the video camera 1 receives from the external device 2 the type and file size of the file to be transferred (S201). Examples of file types include stream data and management file data transfer. In this case, the file type is (i) stream data and (ii) management information, and the file size is (i) 100 MB and (ii) 1 KB.

本実施例での外部装置2であるPCには、前記データ転送を行う前にファイルの種類およびファイルサイズ情報を送信するためのアプリケーションを予めインストールしておくことで、これらの通信を実現する。   These communications are realized by installing in advance an application for transmitting file type and file size information to the PC, which is the external device 2 in this embodiment, before performing the data transfer.

次に、システムコントローラ104は着脱可能記録媒体インターフェース113経由で、代替ブロック残数の情報取得処理を行う(S202)。取得したファイルの種類、ファイルサイズ情報と、代替ブロック残数情報から、管理ファイルの更新とファイルシステム、例えばFAT(ファイルアロケーションテーブル)、の更新において必要なブロック数と、代替ブロック残数を比較し、代替ブロック残数の方が多ければ(S203)、ストリームデータの書込みを開始する(S204)。また、代替ブロック残数の方が少なければ、データ転送処理を中断し(S207)処理を終了する。例えば、フラッシュメモリのブロックサイズ(代替ブロックサイズ)が2MBである場合、1KBの管理ファイルの更新に必要なブロック数は1となる。また、ファイルクローズ時のファイルシステム更新に必要なブロック数(ファイルシステム更新ブロック数)は、ファイルシステムにFAT32を使用した場合には、ファイルエントリの書込みとFAT(ファイルアロケーションテーブル)の更新に必要となるブロック数、となる。なお、システムの簡易化のために、所定の固定値としてファイルシステムの更新に必要なブロック数を予め定めておいても良い。   Next, the system controller 104 performs information acquisition processing for the number of remaining alternative blocks via the removable recording medium interface 113 (S202). Based on the acquired file type, file size information, and alternative block remaining number information, the number of blocks required for updating the management file and updating the file system, eg, FAT (file allocation table), is compared with the remaining number of alternative blocks. If the alternative block remaining number is larger (S203), writing of stream data is started (S204). If the alternative block remaining number is smaller, the data transfer process is interrupted (S207) and the process is terminated. For example, when the block size (alternative block size) of the flash memory is 2 MB, the number of blocks necessary for updating the management file of 1 KB is 1. In addition, the number of blocks (file system update block number) required for file system update when the file is closed is required for writing file entries and updating FAT (file allocation table) when FAT32 is used for the file system. The number of blocks. For simplification of the system, the number of blocks necessary for updating the file system may be determined in advance as a predetermined fixed value.

ストリームデータ書込み中(S205)に不良ブロックが発生し、代替ブロックを代替したことで、代替ブロック残数が管理ファイル+FATの更新に必要なブロック数より少なくなった場合は(S206)、記録処理を中断しデータの転送を終了する(S207)。   If a bad block occurs during stream data writing (S205) and the replacement block is replaced, and the remaining number of replacement blocks is less than the number of blocks necessary for updating the management file + FAT (S206), the recording process is performed. The transfer is interrupted and the data transfer ends (S207).

以上、本発明をその好適な実施形態に基づいて詳述してきたが、本発明はこれら特定の実施形態に限られるものではなく、この発明の要旨を逸脱しない範囲の様々な形態も本発明に含まれる。上述の実施形態の一部を適宜組み合わせてもよい。   Although the present invention has been described in detail based on preferred embodiments thereof, the present invention is not limited to these specific embodiments, and various forms within the scope of the present invention are also included in the present invention. included. A part of the above-described embodiments may be appropriately combined.

また、上述の実施形態の機能を実現するソフトウェアのプログラムを、記録媒体から直接、或いは有線/無線通信を用いてプログラムを実行可能なコンピュータを有するシステム又は装置に供給し、そのプログラムを実行する場合も本発明に含む。   Also, when a software program that realizes the functions of the above-described embodiments is supplied from a recording medium directly to a system or apparatus having a computer that can execute the program using wired / wireless communication, and the program is executed Are also included in the present invention.

従って、本発明の機能処理をコンピュータで実現するために、該コンピュータに供給、インストールされるプログラムコード自体も本発明を実現するものである。つまり、本発明の機能処理を実現するためのコンピュータプログラム自体も本発明に含まれる。   Accordingly, the program code itself supplied and installed in the computer in order to implement the functional processing of the present invention by the computer also realizes the present invention. That is, the computer program itself for realizing the functional processing of the present invention is also included in the present invention.

その場合、プログラムの機能を有していれば、オブジェクトコード、インタプリタにより実行されるプログラム、OSに供給するスクリプトデータ等、プログラムの形態を問わない。   In this case, the program may be in any form as long as it has a program function, such as an object code, a program executed by an interpreter, or script data supplied to the OS.

プログラムを供給するための記録媒体としては、例えば、ハードディスク、磁気テープ等の磁気記録媒体、光/光磁気記録媒体、でもよい。   The recording medium for supplying the program may be, for example, a magnetic recording medium such as a hard disk or a magnetic tape, or an optical / magneto-optical recording medium.

1 ‥‥ビデオカメラ
2 ‥‥外部装置
103‥‥映像処理部
104‥‥システムコントローラ
111‥‥メモリコントローラ
1 ... Video camera 2 ... External device 103 ... Video processing unit 104 ... System controller 111 ... Memory controller

Claims (4)

不良ブロックのための代替ブロックを含む複数のブロックを有する記録媒体にデータを書き込む書き込み手段と、
前記記録媒体から前記代替ブロックの残容量の情報を取得する手段と、
外部機器と通信を行い、前記外部機器から前記記録媒体に書き込むためのデータを受信する通信手段と、
外部機器から前記記録媒体へ書き込むためのデータを受信する前に、前記データのサイズと種類を外部機器から取得し、外部機器から受信する前記データが特定の種類である場合には、
前記データのサイズ、または、特定の種類のデータのサイズ、と前記代替ブロックの残容量を比較し、代替ブロック残容量が小さい場合には、外部機器からの書き込みを中止する制御手段とを備えることを特徴とする記録装置。
Writing means for writing data to a recording medium having a plurality of blocks including replacement blocks for bad blocks;
Means for acquiring information on the remaining capacity of the alternative block from the recording medium;
A communication means for communicating with an external device and receiving data for writing to the recording medium from the external device;
Before receiving data to be written to the recording medium from an external device, obtain the size and type of the data from the external device, and if the data received from the external device is a specific type,
A control unit that compares the size of the data or the size of a specific type of data with the remaining capacity of the replacement block and, when the remaining capacity of the replacement block is small, includes a control unit that stops writing from an external device. A recording apparatus.
前記制御手段は、外部機器から受信するデータが特定の種類である場合、受信する前記データのサイズ、または、特定の種類のデータのサイズ、および、ファイルシステム更新の書込み容量、と代替ブロック残容量を比較し、前記代替ブロック残容量が小さい場合には、外部機器からの書き込みを中止することを特徴とする請求項1に記載の記録装置。   When the data received from the external device is of a specific type, the control means receives the size of the data to be received or the size of the specific type of data, the write capacity of the file system update, and the alternative block remaining capacity The recording apparatus according to claim 1, wherein when the alternative block remaining capacity is small, writing from an external device is stopped. 前記特定の種類のデータは、動画像データにおける管理ファイルであることを特徴とする請求項1又は請求項2に記載の記録装置。   The recording apparatus according to claim 1, wherein the specific type of data is a management file in moving image data. 外部機器からのデータ転送の順序が前記特定の種類以外のデータ、前記特定の種類のデータ、である場合、特定の種類以外のデータを前記記録媒体に書き込み中に、特定の種類のデータサイズ、および、ファイルシステムの更新の書込み容量、と代替ブロック残容量を比較し、代替ブロックが小さくなった場合には、前記記録媒体への書込みを中断することを特徴とする請求項1乃至請求項3の何れか1項に記載の記録装置。
When the order of data transfer from the external device is data other than the specific type, data of the specific type, while writing data other than the specific type to the recording medium, the data size of the specific type, 4. The file system update write capacity and the alternative block remaining capacity are compared, and when the alternative block becomes smaller, the writing to the recording medium is interrupted. The recording apparatus according to any one of the above.
JP2013157999A 2013-07-30 2013-07-30 Recording apparatus Pending JP2015028825A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2013157999A JP2015028825A (en) 2013-07-30 2013-07-30 Recording apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2013157999A JP2015028825A (en) 2013-07-30 2013-07-30 Recording apparatus

Publications (1)

Publication Number Publication Date
JP2015028825A true JP2015028825A (en) 2015-02-12

Family

ID=52492444

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2013157999A Pending JP2015028825A (en) 2013-07-30 2013-07-30 Recording apparatus

Country Status (1)

Country Link
JP (1) JP2015028825A (en)

Similar Documents

Publication Publication Date Title
US8209467B2 (en) Recording apparatus, recording method, program for recording method, and storage medium that stores program for recording method
JP2010198407A (en) Information processor, data recording control method, and program
US8625968B2 (en) Recording apparatus and control method thereof
US20130232314A1 (en) Communication management apparatus, communication management method, and computer program product
JP5473623B2 (en) Data recording apparatus and control method thereof
JP5523128B2 (en) Recording apparatus and control method thereof
JP4314461B2 (en) Information processing apparatus, imaging apparatus, and information processing method
JP2006311368A (en) Camera having copy/move function in one operation
JP2015028825A (en) Recording apparatus
JP2008077780A (en) Recording device, recording method and recording program, recording and reproducing device, recording and reproducing method and recording and reproducing program, and imaging device
JP2008003820A (en) Nonvolatile storage device and adapter device
JP2008141725A (en) Camera, and file management method used for the camera
JP4854601B2 (en) Recording device
JP2007059004A (en) Information processor and method, program, and recording medium
JP2010098599A (en) Imaging device, method of controlling the same, and program
JP2006260158A (en) Information processing apparatus, information processing method and program
JP5103198B2 (en) Information recording / reproducing device
JP2007279873A (en) Data recorder
US20100195466A1 (en) Electronic device, data recording method and data recording system
WO2021090608A1 (en) Information processing device and file generation method
JP4972909B2 (en) Data recording device
JP5950798B2 (en) Recording apparatus and control method thereof
JP2006128822A (en) Information storage device
JP2007082141A (en) Digital video camera capable of identifying incorporated recording medium by external device
JP2007072839A (en) Recording control device and method, and program