JP2021040184A - Recording device, control method, and program - Google Patents
Recording device, control method, and program Download PDFInfo
- Publication number
- JP2021040184A JP2021040184A JP2019158668A JP2019158668A JP2021040184A JP 2021040184 A JP2021040184 A JP 2021040184A JP 2019158668 A JP2019158668 A JP 2019158668A JP 2019158668 A JP2019158668 A JP 2019158668A JP 2021040184 A JP2021040184 A JP 2021040184A
- Authority
- JP
- Japan
- Prior art keywords
- recording
- execution
- recording medium
- background processing
- automatic background
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims description 98
- 238000012545 processing Methods 0.000 claims abstract description 152
- 230000008569 process Effects 0.000 claims description 70
- 230000008859 change Effects 0.000 claims description 8
- 230000006870 function Effects 0.000 claims description 4
- 230000004044 response Effects 0.000 claims 2
- 230000007704 transition Effects 0.000 claims 1
- 238000001514 detection method Methods 0.000 description 17
- 238000003384 imaging method Methods 0.000 description 8
- 230000020169 heat generation Effects 0.000 description 5
- 238000006243 chemical reaction Methods 0.000 description 4
- 230000009977 dual effect Effects 0.000 description 4
- 230000017525 heat dissipation Effects 0.000 description 3
- 230000005856 abnormality Effects 0.000 description 2
- 238000004891 communication Methods 0.000 description 2
- 230000006835 compression Effects 0.000 description 2
- 238000007906 compression Methods 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000009467 reduction Effects 0.000 description 2
- 238000012935 Averaging Methods 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 238000001816 cooling Methods 0.000 description 1
- 230000003111 delayed effect Effects 0.000 description 1
- 238000012217 deletion Methods 0.000 description 1
- 230000037430 deletion Effects 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 230000007774 longterm Effects 0.000 description 1
- 230000005055 memory storage Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000005457 optimization Methods 0.000 description 1
- 238000007781 pre-processing Methods 0.000 description 1
- 238000002360 preparation method Methods 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
Images
Abstract
Description
本発明は、記録装置、制御方法、及びプログラムに関する。 The present invention relates to recording devices, control methods, and programs.
撮像装置の記録メディアとして、NAND型フラッシュメモリが広く採用されている。NAND型フラッシュメモリは、最小単位としてデータを格納する「セル」、複数のセルから構成された「ページ」、複数のページから構成された「ブロック」という単位で構成される。1セルあたり1ビットの情報を記録する方式をSLC方式(Single Level Cell)と呼び、1セルあたり2ビットの情報を記録する方式をMLC方式(Multi Level Cell)と呼ぶ。また、1セルあたり3ビットの情報を記録する方式をTLC方式(Triple Level Cell)と呼ぶ。 NAND flash memory is widely used as a recording medium for an image pickup apparatus. The NAND flash memory is composed of a unit called a "cell" for storing data as a minimum unit, a "page" composed of a plurality of cells, and a "block" composed of a plurality of pages. A method of recording 1-bit information per cell is called an SLC method (Single Level Cell), and a method of recording 2-bit information per cell is called an MLC method (Multi Level Cell). Further, a method of recording 3 bits of information per cell is called a TLC method (Triple Level Cell).
SLC方式は、読み書き速度が最も高く、短時間に大量のデータを書き込むのに適しているが、ビット当たりの単価が高い。また、1セルあたりの容量は少ないが信頼性が高く寿命も長いため、一般的なストレージのキャッシュ領域又は産業機器ストレージの用途で使用されている。MLC方式及びTLC方式は、読み書き速度、信頼性、寿命がSLC方式と比較して劣っている。一方、1セルあたりの容量は、MLC方式ではSLC方式の2倍、TLC方式ではSLC方式の3倍であり、ビットあたりの単価が安いため、一般的なNAND型フラッシュメモリストレージとして広く使用されている。 The SLC method has the highest read / write speed and is suitable for writing a large amount of data in a short time, but the unit price per bit is high. Further, since the capacity per cell is small, but the reliability is high and the life is long, it is used in a general storage cache area or an industrial equipment storage application. The MLC method and the TLC method are inferior to the SLC method in read / write speed, reliability, and life. On the other hand, the capacity per cell is twice that of the SLC method in the MLC method and three times that of the SLC method in the TLC method, and since the unit price per bit is low, it is widely used as a general NAND flash memory storage. There is.
NAND型フラッシュメモリを使用したSSD(Solid State Drive)やカード型メディアは、SLC方式とTLC方式とを組み合わせた構成をとることが多い。この場合、メモリコントローラは、SLC方式として使用する領域をキャッシュ領域として、TLC方式として使用する領域を主たるデータ領域として管理する。メモリコントローラは、ホストコントローラから転送されてくるデータをキャッシュ領域へ書き込むことで、トップスピードでの書き込み可能となる。 SSDs (Solid State Drives) and card-type media using NAND flash memory often have a configuration in which an SLC method and a TLC method are combined. In this case, the memory controller manages the area used as the SLC method as the cache area and the area used as the TLC method as the main data area. The memory controller can write at the top speed by writing the data transferred from the host controller to the cache area.
キャッシュ領域であるSLC方式の領域は、全体の容量の中の比率が低い。そのため、メモリコントローラは、書き込みが停止している期間に次の書き込みに備え、キャッシュ領域における空き領域を確保するために、キャッシュ領域から主たるデータ領域であるTLC方式の領域へとデータを移動する。これをフラッシュキャッシュと呼ぶ。 The SLC system area, which is a cache area, has a low ratio in the total capacity. Therefore, the memory controller moves data from the cache area to the TLC system area, which is the main data area, in order to secure a free area in the cache area in preparation for the next write during the period when the write is stopped. This is called a flash cache.
SLC方式の領域をキャッシュ領域として使用することでトップスピードでの書き込みが実現する。そして、フラッシュキャッシュによりTLC方式の領域へデータを移動することにより、SLC方式の領域確保とNAND型フラッシュメモリ全体の容量の有効活用が可能となる。 Writing at top speed is realized by using the SLC method area as the cache area. Then, by moving the data to the TLC system area by the flash cache, it is possible to secure the SLC system area and effectively utilize the capacity of the entire NAND flash memory.
また、NAND型フラッシュメモリは、データ消去単位はブロック毎に制限され、かつ既存データへの上書きができない特性を持つ。ホストコントローラからNAND型フラッシュメモリ内のファイルが削除されると、メモリコントローラは内部ファイルテーブルに削除を記録する。削除されたファイルが記録されていたブロックには不要データが残り、断片化されたブロックとなる。 Further, the NAND flash memory has a characteristic that the data erasure unit is limited for each block and the existing data cannot be overwritten. When a file in NAND flash memory is deleted from the host controller, the memory controller records the deletion in the internal file table. Unnecessary data remains in the block where the deleted file was recorded, and it becomes a fragmented block.
断片化されたブロックは、新たなデータを上書きできない領域として残ってしまう。そのため、メモリコントローラは、ブロック内の有効なデータを他のブロックへ退避し、現行のブロックのデータを消去し、新たなデータの記録領域として回復する。これをガベージコレクションという。 The fragmented block remains as an area where new data cannot be overwritten. Therefore, the memory controller saves the valid data in the block to another block, erases the data in the current block, and recovers it as a new data recording area. This is called garbage collection.
メモリコントローラによる定期的なフラッシュキャッシュ及びガベージコレクションの実施により、撮像装置の記録メディアとして、大容量静止画の連写に耐えうる書き込み速度の回復、及び、書き込み容量の最大化が期待できる。 By regularly performing flash cache and garbage collection by the memory controller, it is expected that the writing speed can be recovered and the writing capacity can be maximized as a recording medium of the imaging device, which can withstand continuous shooting of large-capacity still images.
メモリコントローラによるフラッシュキャッシュ及びガベージコレクションの処理を、ホストコントローラからの書き込み・読み出しのメイン処理が無い時間にバックグラウンド処理として実施する技術が提案されている(特許文献1参照)。 A technique has been proposed in which the flash cache and garbage collection processing by the memory controller is performed as background processing when there is no main processing for writing / reading from the host controller (see Patent Document 1).
ところで、撮像装置の記録メディアには、動画記録のようにリアルタイムに生成されるデータを定期的に長時間記録するリアルタイムタスク処理に対する要求もある。この場合、ホストコントローラとなる撮像装置は、定期的なリアルタイムデータの記録と記録との間に省電期間を設けることでNAND型フラッシュメモリの発熱を抑え、長時間記録に耐えうる電力管理が必要となる。 By the way, the recording medium of the image pickup apparatus also has a demand for real-time task processing that periodically records data generated in real time for a long time, such as moving image recording. In this case, the image pickup device that serves as the host controller needs power management that can withstand long-term recording by suppressing the heat generation of the NAND flash memory by providing a power saving period between regular real-time data recording. It becomes.
しかしながら、省電期間として期待する、メイン処理がない期間にメモリコントローラがバックグラウンド処理を開始してしまうと、NAND型フラッシュメモリは省電期間なしに電力を消費することとなり、記録メディアの発熱が大きくなる。その結果、記録が停止してしまうなどの問題が発生する可能性がある。 However, if the memory controller starts background processing during the period when there is no main processing, which is expected as a power saving period, the NAND flash memory consumes power without the power saving period, and the recording media generates heat. growing. As a result, problems such as recording stoppage may occur.
一方で、バックグラウンド処理を禁止すると、記録メディアの発熱が低減されるため発熱による記録の停止を回避することができるが、記録メディアの最適化が実行されないため、書き込み速度の回復、及び、書き込み容量の最大化が期待できない。 On the other hand, if the background processing is prohibited, the heat generation of the recording medium is reduced, so that the recording stop due to the heat generation can be avoided. However, since the recording media is not optimized, the writing speed is recovered and the writing is performed. Maximum capacity cannot be expected.
本発明はこのような状況に鑑みてなされたものであり、記録媒体での省電期間における自動バックグラウンド処理の実行を許可するか否かを適切に制御する技術を提供することを目的とする。 The present invention has been made in view of such a situation, and an object of the present invention is to provide a technique for appropriately controlling whether or not to permit execution of automatic background processing in a power saving period on a recording medium. ..
上記課題を解決するために、本発明の記録装置は、
記録媒体に画像を記録するように制御する記録制御手段と、記録媒体での省電期間における自動バックグラウンド処理の実行を許可するか否かを、所定の条件を満たすか否かに応じて切り替えるように制御する制御手段と、を備え、制御手段は、記録制御手段による記録媒体への画像の記録中に、所定の条件を満たすか否かに応じて、自動バックグラウンド処理の実行を許可するか否かを切り替えるように制御することを特徴とする。
In order to solve the above problems, the recording device of the present invention is used.
The recording control means for controlling the recording of an image on the recording medium and whether or not to allow the execution of the automatic background processing during the power saving period on the recording medium are switched depending on whether or not a predetermined condition is satisfied. The control means includes, and the control means permits the execution of the automatic background processing depending on whether or not a predetermined condition is satisfied during the recording of the image on the recording medium by the recording control means. It is characterized in that it is controlled to switch whether or not.
または、
複数の記録媒体のうち、記録先に設定されている記録媒体に画像を記録するように制御する記録制御手段と、複数の記録媒体での、省電期間における自動バックグラウンド処理の実行を許可するか否かを制御する制御手段と、を備え、制御手段は、複数の記録媒体のうち、記録先として設定されている記録媒体については、自動バックグラウンド処理の実行を許可しないように制御し、記録先として設定されていない記録媒体については、自動バックグラウンド処理の実行を許可するように制御する、ことを特徴とする。
Or
Of a plurality of recording media, a recording control means for controlling recording of an image on a recording medium set as a recording destination, and a plurality of recording media are permitted to execute automatic background processing during a power saving period. A control means for controlling whether or not to perform is provided, and the control means controls the recording medium set as the recording destination among the plurality of recording media so as not to allow the execution of the automatic background processing. A recording medium that is not set as a recording destination is controlled so as to allow execution of automatic background processing.
本発明によれば、記録媒体での省電期間における自動バックグラウンド処理の実行を許可するか否かを適切に制御することが可能となる。 According to the present invention, it is possible to appropriately control whether or not the execution of the automatic background processing in the power saving period on the recording medium is permitted.
なお、本発明のその他の特徴及び利点は、添付図面及び以下の発明を実施するための形態における記載によって更に明らかになるものである。 In addition, other features and advantages of the present invention will be further clarified by the accompanying drawings and the description in the embodiment for carrying out the following invention.
以下、添付図面を参照して実施形態を詳しく説明する。尚、以下の実施形態は特許請求の範囲に係る発明を限定するものでない。実施形態には複数の特徴が記載されているが、これらの複数の特徴の全てが発明に必須のものとは限らず、また、複数の特徴は任意に組み合わせられてもよい。さらに、添付図面においては、同一若しくは同様の構成に同一の参照番号を付し、重複した説明は省略する。 Hereinafter, embodiments will be described in detail with reference to the accompanying drawings. The following embodiments do not limit the invention according to the claims. Although a plurality of features are described in the embodiment, not all of the plurality of features are essential to the invention, and the plurality of features may be arbitrarily combined. Further, in the attached drawings, the same or similar configurations are designated by the same reference numbers, and duplicate explanations are omitted.
[第1の実施形態]
図1は、記録装置の一例である撮像装置100の構成を模式的に示す図である。図1において、撮像装置内部バス101に対して、レンズ部102、撮像部103、表示部104、操作部105、撮像装置温度検出部106、放熱ファン107、及びCPU108が接続されている。また、撮像装置内部バス101に対して、画像処理部109、第1のメディア制御部110、第2のメディア制御部111、RAM112、不揮発性メモリ113、及び電源部114が接続されている。撮像装置内部バス101に接続されている各部は、撮像装置内部バス101を介して互いにデータのやり取りを行うことができるように構成されている。
[First Embodiment]
FIG. 1 is a diagram schematically showing a configuration of an
CPU108は、例えば不揮発性メモリ113に格納されるプログラムに従い、RAM112をワークメモリとして用いて、撮像装置100の各部を制御する。
The
不揮発性メモリ113には、画像データや音声データ、その他のデータ、CPU108が動作するための各種プログラムなどが格納される。不揮発性メモリ113は例えばハードディスク(HD)やROMなどで構成される。
The
画像処理部109は、CPU108の制御に基づいて、不揮発性メモリ113やRAM112に格納された画像データや、レンズ部102を通して入射した被写体光学像を撮像部103で撮像した画像データなどに対して、各種画像処理を施す。画像処理部109が行う画像処理には、A/D変換処理、D/A変換処理、画像データのエンコード処理、圧縮処理、デコード処理、拡大/縮小処理(リサイズ)、ノイズ低減処理、色変換処理などが含まれる。画像処理部109は特定の画像処理を施すための専用の回路ブロックで構成してもよい。また、画像処理の種別によっては画像処理部109を用いずにCPU108がプログラムに従って画像処理を施すことも可能である。
Based on the control of the
表示部104は、CPU108の制御に基づいて、画像やGUI(Graphical User Interface)を構成するGUI画面などを表示する。CPU108は、プログラムに従い表示制御信号を生成し、表示部104に表示するための映像信号を生成して表示部104に出力するように撮像装置100の各部を制御する。表示部104は出力された映像信号に基づいて映像を表示する。なお、撮像装置100自体が備える構成としては表示部104に表示させるための映像信号を出力するためのインタフェースまでとし、表示部104は外付けのモニタ(テレビなど)で構成してもよい。
The
操作部105は、キーボードなどの文字情報入力デバイスや、マウスやタッチパネルといったポインティングデバイス、ボタン、ダイヤル、ジョイスティック、タッチセンサ、タッチパッドなどを含む、ユーザ操作を受け付けるための入力デバイスである。なお、タッチパネルは、表示部104に重ね合わせて平面的に構成され、接触された位置に応じた座標情報が出力されるように構成された入力デバイスである。
The
電源部114は、バッテリー115とACアダプタ116が装着可能な電源入力端子を有し、コンパレータ、ロードスイッチなどで構成された電源選択回路で、電圧の高い側又はACアダプタ116を優先して電源を選択する。
The
また、電源部114は、撮像装置100とバッテリー115とを接続するバッテリーインタフェースを含む。バッテリーインタフェースは、電源、グラウンドだけでなく、バッテリー115内部のマイコン(不図示)との通信端子、バッテリー115内部の温度検出部(不図示)を含む。更に、電源部114は、撮像装置100とACアダプタ116とを接続するACアダプタインタフェースを含む。ACアダプタインタフェースは、電源、グラウンド、ACアダプタ116を検出する検出部を含む。
Further, the
また、電源部114は、撮像装置内部バス101を介してCPU108にバッテリー115及びACアダプタ116の情報を通知することができる。また、電源部114は、選択された電源から不図示のDC/DCコンバーターやシリーズレギュレータを用いて電圧をレギュレートし、撮像装置100を構成している各部へ電力を供給する。また、電源部114は、装着されたバッテリー115及びACアダプタ116それぞれの電圧をA/D変換し、その値をCPU108に通知する。
Further, the
撮像部103は、CCDセンサやCMOSセンサなどの撮像素子である。レンズ部102は、ズームレンズ、フォーカスレンズ、シャッター、絞り、測距部、A/D変換器などにより構成されるレンズユニットである。
The
撮像部103は、静止画及び動画を撮像可能である。撮像された画像の画像データは画像処理部109に送信され、各種処理を施された後、静止画ファイル又は動画ファイルとして第1の記録メディア150又は第2の記録メディア160に記録される。
The
放熱ファン107は、冷却用のファンである、撮像装置100内部の温度は撮像装置温度検出部106によって検出され、CPU108に通知される。CPU108はその温度によって放熱ファン107のファンの回転数を制御し、撮像装置100内部の温度を調整する。
The
撮像装置100は、第1のメディア制御部110及び第1のメディアインタフェース155を介して、画像処理部109によって画像処理、エンコード処理、圧縮処理が施された静止画・動画のデータを、第1の記録メディア150に記録することができる。また、撮像装置100は、第1のメディア制御部110及び第1のメディアインタフェース155を介して、第1の記録メディア150に記録された静止画・動画のデータを読み出すことができる。撮像装置100は、読み出されたデータを画像処理部109によってデコード処理することにより得られる映像を表示部104に表示する。
The
第1の記録メディア150は、撮像装置100に対して着脱可能な記録媒体であり、本実施形態においては、CFexpress規格に準拠したメモリカードとする。
The
第1のメディア制御部110は、第1のメディアインタフェース155を介して、第1のメモリコントローラ152と制御コマンドの通信も行うことができる。制御コマンドには、データの記録及び再生のためのコマンドの他に、ベンダー情報、温度情報、及び書き込み回数情報等の取得のためのコマンドなどがある。
The first
第1の記録メディア150は、第1のメモリコントローラ152、第1のNAND型メモリ部153、第1のメディア温度検出部154を含み、それぞれが第1の記録メディア内部バス151で接続されている。
The
第1のメモリコントローラ152は、第1のメディア制御部110から転送される静止画・動画のデータを第1のNAND型メモリ部153へ記録する。この際、第1のメモリコントローラ152は、第1のNAND型メモリ部153のキャッシュ領域への書き込みの制御、及び主たるデータ領域へのデータの移動の制御を実行する。また、第1のメモリコントローラ152は、第1のNAND型メモリ部153内の断片化されたデータを移動・整理して空き領域を確保するガベージコレクションを行うことができる。
The
また、第1のメモリコントローラ152は、第1のメディア温度検出部154によって検出された第1のNAND型メモリ部153の温度を取得する。第1のメモリコントローラ152は、取得した温度に応じて、第1のNAND型メモリ部153へのクロック周波数の制御、アクセス禁止・許可の制御、及びアクセス速度の制御を行う。
Further, the
第2の記録メディア160は、第2のメディア制御部111及び第2のメディアインタフェース165を介して撮像装置100と接続され、第1の記録メディア150と同様の構成及び機能を持つ。第2のメモリコントローラ162、第2のNAND型メモリ部163、及び第2のメディア温度検出部164は、それぞれ、第1のメモリコントローラ152、第1のNAND型メモリ部153、及び第1のメディア温度検出部154に対応する。第2のメモリコントローラ162、第2のNAND型メモリ部163、及び第2のメディア温度検出部164は、第2の記録メディア内部バス161で接続されている。
The
図2は、撮像装置100が実行する撮影処理のフローチャートである。本フローチャートの各ステップの処理は、特に断らない限り、CPU108が不揮発性メモリ113に格納された制御プログラムを実行して撮像装置100の各部を制御することにより実現される。撮像装置100の電源がONになる撮影待機状態になると、本フローチャートの処理が開始する。
FIG. 2 is a flowchart of a shooting process executed by the
なお、撮像装置100は、複数の記録媒体に対する画像データの記録モードとして、シングル記録モード、デュアル記録モード、及びリレー記録モードのうちのいずれかを選択することができる。シングル記録モードの場合、撮像装置100は、第1の記録メディア150及び第2の記録メディア160のうちの一方を、画像データの記録先(以下、「記録対象カード」)として選択する。デュアル記録モードの場合、撮像装置100は、第1の記録メディア150及び第2の記録メディア160の両方を記録対象カードとして扱い、第1の記録メディア150及び第2の記録メディア160の両方に同じデータを記録する。リレー記録モードの場合、撮像装置100は、第1の記録メディア150及び第2の記録メディア160のうちの一方を記録対象カードとして選択する。記録対象カードの残容量が少なくなると、撮像装置100は、第1の記録メディア150及び第2の記録メディア160のうちの記録対象カードでない方(以下、「待機カード」と呼ぶ)を新たに記録対象カードとして選択する。元の記録対象カードは、待機カードになる。換言すると、記録対象カードの残容量が少なくなると、撮像装置100は、記録対象カードと待機カードとの入れ替えを行う。
The
記録モードは、例えば操作部105を介したユーザ操作などにより、予め選択されているものとする。デュアル記録モード及びリレー記録モードは、第1の記録メディア150及び第2の記録メディア160の両方が撮像装置100に装着されている場合に選択可能である。リレー記録モードの場合、最初の記録対象カードは、例えば操作部105を介したユーザ操作などにより、予め選択されているものとする。シングル記録モードは、第1の記録メディア150及び第2の記録メディア160の少なくとも一方が撮像装置100に装着されている場合に選択可能である。シングル記録モードにおいて第1の記録メディア150及び第2の記録メディア160の両方が撮像装置100に装着されている場合、記録対象カードは、例えば操作部105を介したユーザ操作などにより、予め選択されているものとする。
It is assumed that the recording mode is selected in advance by, for example, a user operation via the
以下の説明において、第1の記録メディア150及び第2の記録メディア160のことを単に「カード」又は「メディア」と呼ぶ場合がある。
In the following description, the
最初に、S201で、CPU108は、撮像装置100に装着されている全てのカードに対して、バックグラウンド処理(BG処理)許可コマンドを送信する。BG処理許可コマンドは、省電期間(データの記録と記録との間など)における自動的なバックグラウンド処理の実行(自動バックグラウンド処理の実行)を許可するように制御するコマンドである。
First, in S201, the
本実施形態では、第1の記録メディア150及び第2の記録メディア160は、CFexpress規格に準拠したメモリカードであるものとする。そして、BG処理の許可・禁止を、NVM Express規格(NVMe規格)のNOPPME(Non−Operational Power State Permissive Mode Enable)コマンドを用いて制御するものとする。NOPPMEコマンドは、実際には、省電期間中のBG処理を直接的に制御するコマンドではなく、所定の電力を超えるBG処理を許可するか否かを指定するコマンドである。
In the present embodiment, the
NOPPMEコマンドによりEnableを示す「1」が指定された場合、メディアでは、所定の電力を超えるBG処理の実行が可能となり、その結果、省電期間におけるBG処理が実行可能となる。従って、NOPPMEコマンドにより「1」を指定することは、省電期間中のBG処理の実行を許可するように制御するBG処理許可コマンドを送信することに相当する。 When "1" indicating Enable is specified by the NOPPME command, the media can execute the BG process exceeding the predetermined power, and as a result, the BG process in the power saving period can be executed. Therefore, specifying "1" by the NOPPME command corresponds to transmitting a BG processing permission command that controls the execution of the BG processing during the power saving period.
一方、NOPPMEコマンドによりDisableを示す「0」が指定された場合、メディアでは、所定の電力を超えるBG処理の実行が不可能となり、その結果、省電期間中のBG処理が実行不可能となる。従って、NOPPMEコマンドにより「0」を指定することは、省電期間中のBG処理の実行を禁止する(許可しない)ように制御するコマンド(BG処理禁止コマンド)を送信することに相当する。 On the other hand, when "0" indicating Device is specified by the NOPPME command, the media cannot execute the BG process exceeding the predetermined power, and as a result, the BG process during the power saving period cannot be executed. .. Therefore, specifying "0" by the NOPPME command corresponds to transmitting a command (BG processing prohibition command) for controlling so as to prohibit (not allow) the execution of BG processing during the power saving period.
なお、本実施形態は、省電期間中のBG処理の許可・禁止をNVM ExpressのNOPPMEコマンドを用いて制御する構成に限定されない。また、第1の記録メディア150及び第2の記録メディア160が準拠する規格は、CFexpress規格に限定されない。他の種類のコマンドをBG処理許可コマンド及びBG処理禁止コマンドとして用いて、他の規格に準拠するメディアの省電期間中のBG処理の許可・禁止を制御する構成も、本実施形態の範囲に含まれる。
The present embodiment is not limited to the configuration in which permission / prohibition of BG processing during the power saving period is controlled by using the NOPPME command of NVM Express. Further, the standard to which the
次に、S202で、CPU108は、静止画撮影指示が行われたか否かを判定する。静止画撮影指示が行われた場合、処理はS203に進み、そうでない場合、処理はS204に進む。
Next, in S202, the
S203で、CPU108は、撮像部103を用いて静止画を生成する静止画撮影を行い、得られた静止画を記録対象カードに記録する。その後、処理はS202に戻る。
In S203, the
S204で、CPU108は、動画撮影指示が行われたか否かを判定する。動画撮影指示が行われた場合、処理はS205に進み、そうでない場合、処理はS205に進む。
In S204, the
S205で、CPU108は、記録対象カードに対してBG処理禁止コマンドを送信する。すなわち、動画記録の場合は、基本的には、記録対象カードにおけるBG処理を禁止する。待機カードについては、S201においてBG処理許可コマンドを送信しているため、BG処理は許可されている。待機カードでは画像の記録が行われないため、基本的には、BG処理を許可している。
In S205, the
S206で、CPU108は、撮像部103を用いて動画を生成する動画撮影と、記録対象カードへの動画記録とを開始する。
In S206, the
S207で、CPU108は、カード制御を行う。カード制御は、リレー記録モードにおける記録対象カードと待機カードとの入れ替え制御、記録対象カードのBG処理の許可・禁止制御、及び待機カードのBG処理の許可・禁止制御を含む。カード制御の詳細は図3を参照して後述する。
In S207, the
S208で、CPU108は、記録停止指示が行われたか否かを判定する。記録停止指示が行われた場合、処理はS209に進み、そうでない場合、処理はS207に戻る。即ち、動画記録中は、カード制御が繰り返し実行される。
In S208, the
S209で、CPU108は、動画の撮影及び記録を停止する。その後、処理はS201に戻り、再び全てのカードにBG処理許可コマンドが送信される。動画の記録停止時及び本フローチャートの処理開始時に全てのカードにBG処理許可コマンドが送信されるので、S203において静止画を記録する場合は、記録対象カードのメモリコントローラは省電期間にBG処理を実行可能である。
At S209, the
次に、図3を参照して、カード制御(図2のS207)の詳細について説明する。S301で、CPU108は、現在の記録モードがリレー記録モードであるか否かを判定する。リレー記録モードの場合、処理はS302に進み、そうでない場合、処理はS304に進む。
Next, the details of the card control (S207 in FIG. 2) will be described with reference to FIG. In S301, the
S302で、CPU108は、現在の記録対象カードの残容量が予め設定された閾値未満(第6の閾値未満)であるか否かを判定する。残容量が閾値未満の場合、処理はS303に進み、そうでない場合、処理はS304に進む。
In S302, the
S303で、CPU108は、記録対象カードと待機カードとの入れ替えを行う。なお、この時、CPU108は、記録対象カードに対してBG処理禁止コマンドを送信し、待機カードに対してBG処理許可コマンドを送信する。画像の記録が行われる記録対象カードにおいては基本的にはBG処理を禁止し、画像の記録が行われない待機カードにおいては基本的にはBG処理を許可するためである。
In S303, the
S304で、CPU108は、記録対象カードの省電期間におけるBG処理を許可するか禁止するかに関する各種条件を判定する。各種条件とは、例えば、温度条件、電源条件、及び残バッファ量/遅延時間条件である。各条件には対応する禁止フラグ(例えば、「温度条件による禁止フラグ」、「電源条件による禁止フラグ」、及び「残バッファ量/遅延時間条件による禁止フラグ」)が定義されている。各条件の判定結果に応じて、対応する禁止フラグがON又はOFFに設定される。各禁止フラグは、例えばRAM112に保持される。これらの条件及びその判定の詳細については、図4乃至図8を参照して後述する。なお、前述したとおり、図3のカード制御処理は、記録停止指示があるまで繰り返される。そのため、各種条件の判定結果に応じたBG処理の許可・禁止の制御は、動画の記録中は繰り返し実行され、各種条件の判定結果が変化する度にBG処理の許可・禁止を切り替えることになる。
In S304, the
S305で、CPU108は、S304の処理により設定された記録対象カードに関する全ての禁止フラグがOFFであるか否かを判定する。全ての禁止フラグがOFFである場合、処理はS306に進み、そうでない場合、処理はS307に進む。
In S305, the
S306で、CPU108は、記録対象カードに対してBG処理許可コマンドを送信する。
In S306, the
S307で、CPU108は、記録対象カードに対してBG処理禁止コマンドを送信する。
In S307, the
なお、デュアル記録モードの場合、両方の記録対象カードに対してBG処理許可コマンド又はBG処理禁止コマンドの送信が行われる。温度条件のようにカード毎に判定結果が異なる可能性のある条件については、カード毎に条件の判定と対応する禁止フラグの設定を行ってもよい。従って、S305の判定結果がカード毎に異なる場合もあり、この場合、1つの記録対象カードについてはS306の処理が実行され、もう1つの記録対象カードについてはS307の処理が実行される。 In the dual recording mode, the BG processing permission command or the BG processing prohibition command is transmitted to both recording target cards. For conditions such as temperature conditions where the judgment result may differ for each card, the judgment of the condition and the corresponding prohibition flag may be set for each card. Therefore, the determination result of S305 may be different for each card. In this case, the process of S306 is executed for one card to be recorded, and the process of S307 is executed for the other card to be recorded.
S308で、CPU108は、待機カードが存在するか否かを判定する。リレー記録モードの場合、及び、シングル記録モードにおいて第1の記録メディア150及び第2の記録メディア160の両方が撮像装置100に装着されている場合に、待機カードが存在する。待機カードが存在する場合、処理はS309に進み、そうでない場合、カード制御は終了して処理は図2のS208に進む。
In S308, the
S309で、CPU108は、待機カードの省電期間におけるBG処理を許可するか禁止するかに関する各種条件を判定する。各種条件とは、例えば、温度条件及び電源条件である。各条件には対応する禁止フラグ(例えば、「温度条件による禁止フラグ」及び「電源条件による禁止フラグ」)が定義されている。各条件の判定結果に応じて、対応する禁止フラグがON又はOFFに設定される。各禁止フラグは、例えばRAM112に保持される。これらの条件及びその判定の詳細については、図4及び図5を参照して後述する。
In S309, the
S310で、CPU108は、S309の処理により設定された待機カードに関する全ての禁止フラグがOFFであるか否かを判定する。全ての禁止フラグがOFFである場合、処理はS311に進み、そうでない場合、処理はS312に進む。
In S310, the
S311で、CPU108は、待機カードに対してBG処理許可コマンドを送信する。S312で、CPU108は、待機カードに対してBG処理禁止コマンドを送信する。
In S311 the
次に、図4を参照して、図3のS304及びS309において述べた各種条件の一例である温度条件の判定について説明する。 Next, with reference to FIG. 4, the determination of the temperature condition, which is an example of the various conditions described in S304 and S309 of FIG. 3, will be described.
S401で、CPU108は、各種温度閾値を取得する。具体的には、CPU108は、不揮発性メモリ113から、カメラ温度閾値TC_TH(第2の閾値)、メディア温度閾値TM_TH(第1の閾値、第7の閾値)、メディア温度有効下限TM_MIN、及びメディア温度有効上限TM_MAXを読み出す。
In S401, the
なお、各種温度閾値は、撮像装置100の動作モード又は動画の記録ビットレートなどに応じて変化してもよい。例えば、撮像装置100の動作モード及び記録ビットレートの組合せ毎に対応する各種温度閾値を持つデータテーブルを不揮発性メモリ113に予め記憶しておく。そして、CPU108は、データテーブルを参照することにより、現在の動作モード及び記録ビットレートの組合せに対応する各種温度閾値を取得する。
The various temperature threshold values may change depending on the operation mode of the
また、各種温度閾値は、記録対象カードに関する温度条件の場合(図3のS304の場合)と待機カードに関する温度条件の場合(図3のS309の場合)とで異なってもよい。 Further, the various temperature threshold values may differ depending on the temperature condition related to the recording target card (in the case of S304 in FIG. 3) and the temperature condition related to the standby card (in the case of S309 in FIG. 3).
S402で、CPU108は、撮像装置温度検出部106からカメラ温度情報TCを取得する。前述の通り、撮像装置100では、撮像装置温度検出部106によって撮像装置100の内部の温度が検出され、CPU108に通知される。
In S402, the
S403で、CPU108は、記録対象カードから(図3のS304の場合)、又は待機カードから(図3のS309の場合)、メディア温度情報TMを取得する。前述の通り、第1のメモリコントローラ152は、第1のメディア温度検出部154によって検出された第1のNAND型メモリ部153の温度を取得する。従って、CPU108は、第1の記録メディア150からメディア温度情報TMを取得する場合、第1のメモリコントローラ152を介して取得を行う。第2の記録メディア160についても同様である。
In S403, the
S404で、CPU108は、S403で取得したメディア温度TMの有効判定を行う。即ち、CPU108は、メディア温度TMが、メディア温度有効下限TM_MIN以上かつメディア温度有効上限TM_MAX以下であるか否か(所定の範囲内に含まれるか否か)を判定する。メディア温度有効下限TM_MIN以上かつメディア温度有効上限TM_MAX以下である場合、処理はS405に進み、そうでない場合、処理はS408に進む。
In S404, the
S405で、CPU108は、メディア温度TMがメディア温度閾値TM_TH以上であるか否かを判定する。メディア温度TMがメディア温度閾値TM_TH以上である場合、処理はS406に進み、そうでない場合、処理はS407に進む。
In S405, the
S406で、CPU108は、温度条件による禁止フラグをONに設定する。即ち、CPU108は、メディア温度TM又はカメラ温度TCが対応する閾値以上である場合に温度条件による禁止フラグをONに設定することにより、BG処理の実行を禁止するように制御する。これにより、メディア又はカメラの発熱を抑制し、発熱による記録の停止を抑制することが可能となる。
In S406, the
S407で、CPU108は、温度条件による禁止フラグをOFFに設定する。
In S407, the
S408で、CPU108は、カメラ温度TCがカメラ温度閾値TC_TH以上であるか否かを判定する。カメラ温度TCがカメラ温度閾値TC_TH以上である場合、処理はS406に進み、そうでない場合、処理はS407に進む。S408の処理が実行される場合(即ち、メディア温度有効下限TM_MIN以上かつメディア温度有効上限TM_MAX以下でない場合)、メディアの異常や通信の異常などの理由により、通常使用する範囲では想定されない温度情報が得られたと考えられる。従って、この場合は、メディア温度TMを用いるS405と異なり、カメラ温度TCに基づいて温度条件による禁止フラグのON/OFFが制御される。
In S408, the
ここで、図4の各ステップの処理に関する変形例について説明する。CPU108は、S402及びS403におけるカメラ温度情報TC及びメディア温度情報TMの取得に加えて、単位系の変換処理及びオフセット調整処理などの所定の前処理を行ってもよい。
Here, a modified example relating to the processing of each step of FIG. 4 will be described. In addition to the acquisition of the camera temperature information TC and the media temperature information TM in S402 and S403, the
また、複数の温度検出部を持つ構成の場合には、全ての温度検出部から温度情報を取得する構成を採用してもよいし、一部の温度検出部のみから温度情報を取得する構成を採用してもよい。或いは、複数の温度検出部から取得した温度情報について、平均化や重み付け、最大値検出、最小値検出などの所定の演算を施す構成を最小してもよい。 Further, in the case of a configuration having a plurality of temperature detection units, a configuration in which temperature information is acquired from all the temperature detection units may be adopted, or a configuration in which temperature information is acquired from only some of the temperature detection units may be adopted. It may be adopted. Alternatively, the configuration in which predetermined operations such as averaging, weighting, maximum value detection, and minimum value detection may be performed on the temperature information acquired from the plurality of temperature detection units may be minimized.
また、S405ではメディア温度TMを用いた判定が行われているが、CPU108は、メディア温度TMとカメラ温度TCの両方の温度情報を用いて判定を行ってもよい。例えば、メディア温度TMとメディア温度閾値TM_THの差分と、メディア温度TCとメディア温度閾値TC_THの差分の小さい方を判定基準として用いることができる。
Further, although the determination is performed using the media temperature TM in S405, the
次に、図5を参照して、図3のS304及びS309において述べた各種条件の一例である電源条件の判定について説明する。BG処理を実施することで撮像装置100は通常記録動作より電力を多く消費するため、電源の消費が早くなり、バッテリー115駆動の場合は、撮像装置100が所望のタイミング外で電源シャットダウンする恐れがある。そのため、撮像装置100の電源の状態を判定する電源条件による禁止フラグを用いることにより、このような問題が発生する可能性を低減することができる。また、撮像装置100に接続されるバッテリー115について、CPU108では特性の判断ができない場合や、バッテリー115の残量が変化することなどを考慮して、適切にBG処理の許可・禁止を制御することが望ましい。
Next, with reference to FIG. 5, the determination of the power supply condition, which is an example of the various conditions described in S304 and S309 of FIG. 3, will be described. Since the
なお、図4を参照して説明した温度条件についてはメディア毎に判定結果が異なる可能性があったが、電源条件の場合はメディアに応じた判定結果の相違は発生しない。そのため、図3のS309では、電源条件の判定を省略して、S304における温度条件の判定結果を、待機カードについての温度条件の判定結果として用いてもよい。 Regarding the temperature conditions described with reference to FIG. 4, the determination result may differ depending on the media, but in the case of the power supply condition, the determination result does not differ depending on the media. Therefore, in S309 of FIG. 3, the determination of the power supply condition may be omitted, and the determination result of the temperature condition in S304 may be used as the determination result of the temperature condition for the standby card.
最初に、S501で、CPU108は、電源部114から電源情報を取得する。電源情報は、撮像装置100の現在の駆動電源が、バッテリー115又はACアダプタ116のうちのどちらであるかを示す。
First, in S501, the
S502で、CPU108は、撮像装置100の現在の駆動電源がバッテリー115であるか否かを判定する。バッテリー115の場合、処理はS503に進み、そうでない場合、処理はS507に進む。
In S502, the
S503で、CPU108は、バッテリー115の特性が既知であるか否かを判定する。例えば、CPU108は、バッテリー115から識別情報(型番など)を取得し、取得した識別情報に対応する特性情報が不揮発性メモリ113に格納されている場合に、バッテリー115の特性が既知であると判断する。バッテリー115の特性が既知である場合、処理はS504に進み、そうでない場合、処理はS507に進む。
In S503, the
S504で、CPU108は、バッテリー115の電圧が、予め設定された閾値以上(第3の閾値以上)であるか否かを判定する。電圧が閾値以上の場合、つまり、バッテリー115の残量が予め設定された閾値以上で十分ある場合は、処理はS506に進む。そして、電圧が閾値未満の場合、つまり、バッテリー115の残量が予め設定された閾値未満で、バッテリー残量が低下している場合は、処理はS505に進む。なお、ここで使用する閾値は、バッテリー115の特性に応じて変化してもよい。
In S504, the
S505で、CPU108は、電源条件による禁止フラグをONに設定する。即ち、CPU108は、現在の駆動電源であるバッテリー115の電圧が閾値以上でない場合に電源条件による禁止フラグをONに設定することにより、BG処理の実行を禁止するように制御する。これにより、BG処理によるバッテリー115の残量低下を抑制し、バッテリー115の残量不足による記録の停止を抑制することが可能となる。
In S505, the
S506で、CPU108は、電源条件による禁止フラグをOFFに設定する。
In S506, the
S502において現在の駆動電源がバッテリー115でないと判定された場合、及びS503においてバッテリー115の特性が既知でないと判定された場合、S507で、CPU108は、電源条件による禁止フラグをOFFに設定する。
If it is determined in S502 that the current drive power source is not the
図5フローチャートでは、駆動電源がバッテリーであり、かつ、バッテリー115の電圧が閾値未満の場合に、禁止フラグをONに設定し、BG処理を禁止するようにした。しかし、電圧によるバッテリー115の残量を判定せずに、バッテリー駆動の場合には常にBG処理を禁止するようにしてもよい。また、駆動電源がバッテリー115のみの場合は、駆動電源の種別を判定せずに、電圧によるバッテリー115の残量に応じて、BG処理の許可・禁止を制御するようにしてもよい。次に、図6を参照して、図3のS304及びS309において述べた各種条件の一例である残バッファ量/遅延時間条件の判定について説明する。動画記録のようにリアルタイム生成されるデータを定期的に長時間記録するような場合、撮像装置100は、NAND型フラッシュメモリで構成されたメディアに対してリアルタイムデータを書き込む前に、バッファメモリに一時的に記録する。バッファメモリとしては、例えばRAM112が用いられる。所定量のリアルタイムデータがバッファメモリに記録されたところで、メディアへの記録が実行される。この時、メディア内部でBG処理が実行されていて、リアルタイムデータの記録であるメイン処理が滞ると、バッファメモリ残容量(残バッファ量)がなくなってしまい、リアルタイムデータを消失してしまう。また、メディア内部で実行されていたBG処理からメイン処理であるリアルタイムデータの記録へ遷移する際には遅延時間が発生する。この遅延時間がリアルタイムデータの書き込みに必要な時間に対して長い場合はリアルタイムデータの記録が間に合わず、リアルタイムデータを消失してしまう。そのため、RAM112のバッファメモリ容量を使い切ることなく、かつ、十分な書き込み速度を保てるようにBG処理の許可・禁止を制御する必要がある。
In the flowchart of FIG. 5, when the drive power source is a battery and the voltage of the
S601で、CPU108は、記録対象カードから遅延時間を取得する。S602で、CPU108は、撮像装置100の残バッファ量を取得する。
In S601, the
S603で、CPU108は、遅延時間が予め定められた閾値以上(第5の閾値以上)であるか否かを判定する。遅延時間が閾値以上である場合、処理はS604に進み、そうでない場合、処理はS606に進む。なお、ここで使用する閾値は、動画の記録ビットレートに応じて変化してもよい。
In S603, the
S604で、CPU108は、残バッファ量が予め定められた閾値未満(第4の閾値未満)であるか否かを判定する。残バッファ量が閾値未満である場合、処理はS605に進み、そうでない場合、処理はS606に進む。なお、ここで使用する閾値は、動画の記録ビットレートに応じて変化してもよい。
In S604, the
S605で、CPU108は、残バッファ量/遅延時間条件による禁止フラグをONに設定する。即ち、CPU108は、遅延時間が閾値以上であり残バッファ量が閾値未満である場合に残バッファ量/遅延時間条件による禁止フラグをONに設定することにより、BG処理の実行を禁止するように制御する。これにより、データを記録するメイン処理がBG処理により妨げられることが原因で記録すべき動画のリアルタイムデータが消失することを抑制することが可能となる。
In S605, the
一方、S606では、CPU108は、残バッファ量/遅延時間条件による禁止フラグをOFFに設定する。
On the other hand, in S606, the
ところで、図6から理解できるように、残バッファ量/遅延時間条件による禁止フラグの場合、残バッファ量及び遅延時間の両方に関する判定に基づいて禁止フラグのON/OFFが制御される。しかしながら、残バッファ量/遅延時間条件を残バッファ量条件と遅延時間条件とに分けて、それぞれに対応する「残バッファ量条件による禁止フラグ」と「遅延時間条件による禁止フラグ」とを設けてもよい。即ち、図3のS304及びS309において述べた各種条件の例には、残バッファ量条件及び遅延時間条件も含まれる。 By the way, as can be understood from FIG. 6, in the case of the prohibition flag based on the remaining buffer amount / delay time condition, ON / OFF of the prohibition flag is controlled based on the determination regarding both the remaining buffer amount and the delay time. However, even if the remaining buffer amount / delay time condition is divided into a remaining buffer amount condition and a delay time condition, and a "prohibition flag due to the remaining buffer amount condition" and a "prohibition flag due to the delay time condition" are provided corresponding to each. Good. That is, the examples of the various conditions described in S304 and S309 of FIG. 3 include the remaining buffer amount condition and the delay time condition.
図7は、図3のS304及びS309において述べた各種条件の一例である残バッファ量条件の判定について説明するフローチャートである。 FIG. 7 is a flowchart illustrating determination of the remaining buffer amount condition, which is an example of the various conditions described in S304 and S309 of FIG.
S701で、CPU108は、撮像装置100の残バッファ量を取得する。S702で、CPU108は、残バッファ量が予め定められた閾値未満であるか否かを判定する。残バッファ量が閾値未満である場合、S703で、CPU108は、残バッファ量条件による禁止フラグをONに設定する。残バッファ量が閾値未満でない場合、S704で、CPU108は、残バッファ量条件による禁止フラグをOFFに設定する。
In S701, the
図8は、図3のS304及びS309において述べた各種条件の一例である遅延時間条件の判定について説明するフローチャートである。 FIG. 8 is a flowchart illustrating the determination of the delay time condition, which is an example of the various conditions described in S304 and S309 of FIG.
S801で、CPU108は、記録対象カードから遅延時間を取得する。S802で、CPU108は、遅延時間が予め定められた閾値以上であるか否かを判定する。遅延時間が閾値以上である場合、S803で、CPU108は、遅延時間条件による禁止フラグをONに設定する。遅延時間が閾値以上でない場合、S804で、CPU108は、遅延時間条件による禁止フラグをOFFに設定する。
In S801, the
以上説明したように、第1の実施形態によれば、撮像装置100は、記録対象カードに静止画又は動画を記録するように制御する記録制御を行う。撮像装置100は、記録対象カードに静止画を記録する場合は、省電期間における自動バックグラウンド処理の実行を許可する。一方、撮像装置100は、記録対象カードに動画を記録する場合は、省電期間における自動バックグラウンド処理の実行を許可しないように制御する。これにより、記録媒体での省電期間における自動バックグラウンド処理の実行を許可するか否かを適切に制御することが可能となり、高速静止画記録と安定した動画記録とを両立することが可能とする。
As described above, according to the first embodiment, the
なお、上では、動画記録時に、自動BG処理の許可・禁止を制御(BG処理許可コマンド/BG処理禁止コマンドの送信)するものとした。しかし、記録開始前(撮影待機状態時や、動画撮影/静止画撮影モード切替時など)に、動画撮影モードであるかを静止画撮影モードであるかを判定し、動画撮影モードの場合は自動BG処理の実行を許可せず、静止画撮影モードの場合は自動BG処理の実行を許可するようにしてもよい。この場合、動画撮影モードの場合は、動画記録開始前に一度自動BG処理の実行を禁止する。そして、さらに、動画記録開始時及び記録中に、上で説明した各種条件(温度、電源種別、電源の残量、遅延時間、バッファ残量等)に応じて、自動BG処理の実行を許可するか否かを制御するようにするとよい。 In the above, it is assumed that the permission / prohibition of automatic BG processing is controlled (the transmission of the BG processing permission command / BG processing prohibition command) at the time of moving image recording. However, before the start of recording (when in the shooting standby state, when switching between movie shooting / still image shooting mode, etc.), it is determined whether the movie shooting mode is in the still image shooting mode, and in the case of the movie shooting mode, it is automatically set. The execution of the BG process may not be permitted, and the execution of the automatic BG process may be permitted in the still image shooting mode. In this case, in the case of the moving image shooting mode, the execution of the automatic BG processing is prohibited once before the moving image recording starts. Further, at the start of moving image recording and during recording, the execution of automatic BG processing is permitted according to various conditions (temperature, power supply type, remaining power supply, delay time, remaining buffer remaining amount, etc.) described above. It is good to control whether or not.
また、上の実施形態では、動画記録であるか否かという条件と、温度、電源、遅延時間、バッファ残量の各種条件とにより、BG処理の許可・禁止を制御した。しかし、これらのうちの1つの条件のみを用いてBG処理の許可・禁止を制御するようにしてもよい。また、これらの条件のうちのいくつかの条件を組み合わせて、BG処理の許可・禁止を制御するようにしてもよい。 Further, in the above embodiment, permission / prohibition of BG processing is controlled according to the condition of whether or not the video is recorded and various conditions of temperature, power supply, delay time, and remaining amount of buffer. However, the permission / prohibition of BG processing may be controlled by using only one of these conditions. Further, some of these conditions may be combined to control the permission / prohibition of BG processing.
また、上では、待機カードについても、各種条件の判定結果に応じてBG処理の実行の許可・禁止を制御するものとした。しかし、待機カードについては、画像の記録を行わない記録媒体であるため、各種条件の判定を行わずに、BG処理の実行を許可するようにしてもよい。また、待機カードだけでなく、記録対象カードについても各種条件の判定を行わずに、記録対象カードについてはBG処理の実行を禁止し、待機カードについては、BG処理の実行を許可するようにしてもよい。 Further, in the above, regarding the standby card, the permission / prohibition of execution of the BG process is controlled according to the determination results of various conditions. However, since the standby card is a recording medium that does not record an image, the execution of the BG process may be permitted without determining various conditions. In addition, not only the standby card but also the recording target card is not judged for various conditions, the execution of the BG processing is prohibited for the recording target card, and the execution of the BG processing is permitted for the standby card. May be good.
また、上では、動画の記録時に、記録対象カードと待機カードについて、BG処理の実行を許可・禁止を制御するものとした。しかし、動画の記録時ではなく、記録開始前(例えば、記録待機時、記録先となるカードの選択時)に、BG処理の実行を許可・禁止を制御するようにしてもよい。 Further, in the above, when recording a moving image, it is assumed that permission / prohibition of execution of BG processing is controlled for the recording target card and the standby card. However, the execution of the BG process may be controlled to be permitted or prohibited before the start of recording (for example, when the recording is on standby or when the card to be the recording destination is selected), not when the moving image is recorded.
また、撮像装置100は、記録対象カードに動画を記録する場合であっても、各種条件の判定結果によってはBG処理の実行を許可するように制御する。これにより、NAND型フラッシュメモリの最適化処理と安定した動画記録とを両立することが可能となる。
Further, the
なお、上では、静止画を記録するか動画を記録するかに基づいてBG処理の許可・禁止を制御する構成について説明したが、他の動作モードを基準にBG処理の許可・禁止を制御してもよい。例えば、長時間露出撮影モード、ハイフレーム撮影モード、タイムラプス撮影モードなどの動作モードに応じてBG処理の許可・禁止を制御してもよい。この場合、例えば、タイムラプス撮影モード等の低ビットレートの撮影モードの場合は、静止画撮影と同様にBG処理を許可し、ハイフレーム撮影モードなどの高ビットレートの撮影モードの場合は、BG処理を禁止するとよい。 In the above, the configuration for controlling the permission / prohibition of BG processing based on whether to record a still image or a moving image has been described, but the permission / prohibition of BG processing is controlled based on other operation modes. You may. For example, permission / prohibition of BG processing may be controlled according to an operation mode such as a long exposure shooting mode, a high frame shooting mode, and a time-lapse shooting mode. In this case, for example, in the case of a low bit rate shooting mode such as a time-lapse shooting mode, BG processing is permitted as in the case of still image shooting, and in the case of a high bit rate shooting mode such as a high frame shooting mode, BG processing is performed. Should be prohibited.
また、上では、静止画を記録する場合はBG処理を許可する構成について説明したが、静止画を記録する場合であっても、動画を記録する場合と同様に各種条件の判定結果によってはBG処理を禁止してもよい。 In addition, although the configuration that allows BG processing when recording a still image has been described above, even when recording a still image, BG may be determined depending on the judgment results of various conditions as in the case of recording a moving image. Processing may be prohibited.
また、図5の例では、現在の駆動電源がバッテリー115でないと判定された場合、及びバッテリー115の特性が既知でないと判定された場合のいずれについても、電源条件による禁止フラグがOFFに設定された。しかしながら、バッテリー115の特性が既知でない場合には電源条件による禁止フラグをONにする構成を採用してもよい。
Further, in the example of FIG. 5, the prohibition flag depending on the power supply condition is set to OFF in both the case where it is determined that the current drive power source is not the
[その他の実施形態]
本発明は、上述の実施形態の1以上の機能を実現するプログラムを、ネットワーク又は記憶媒体を介してシステム又は装置に供給し、そのシステム又は装置のコンピュータにおける1つ以上のプロセッサーがプログラムを読出し実行する処理でも実現可能である。また、1以上の機能を実現する回路(例えば、ASIC)によっても実現可能である。
[Other Embodiments]
The present invention supplies a program that realizes one or more functions of the above-described embodiment to a system or device via a network or storage medium, and one or more processors in the computer of the system or device reads and executes the program. It is also possible to realize the processing. It can also be realized by a circuit (for example, ASIC) that realizes one or more functions.
発明は上記実施形態に制限されるものではなく、発明の精神及び範囲から離脱することなく、様々な変更及び変形が可能である。従って、発明の範囲を公にするために請求項を添付する。 The invention is not limited to the above embodiments, and various modifications and modifications can be made without departing from the spirit and scope of the invention. Therefore, a claim is attached to make the scope of the invention public.
100 撮像装置
108 CPU
110 第1のメディア制御部
111 第2のメディア制御部
112 RAM
113 不揮発性メモリ
150 第1の記録メディア
160 第2の記録メディア
100
110 First
113
Claims (18)
前記記録媒体での省電期間における自動バックグラウンド処理の実行を許可するか否かを、所定の条件を満たすか否かに応じて切り替えるように制御する制御手段と、
を備え、
前記制御手段は、前記記録制御手段による前記記録媒体への画像の記録中に、前記所定の条件を満たすか否かに応じて、前記自動バックグラウンド処理の実行を許可するか否かを切り替えるように制御することを特徴とする記録装置。 A recording control means for controlling the recording of an image on a recording medium, and
A control means for controlling whether or not to allow execution of automatic background processing in the power saving period on the recording medium is switched according to whether or not a predetermined condition is satisfied.
With
The control means switches whether or not to allow the execution of the automatic background processing depending on whether or not the predetermined condition is satisfied during the recording of the image on the recording medium by the recording control means. A recording device characterized in that it is controlled to.
前記制御手段は、前記記録媒体または前記記録装置の温度が第1の閾値以上の場合は、前記自動バックグラウンド処理の実行を禁止するように制御し、前記記録媒体または前記記録装置の温度が前記第1の閾値未満の場合は、前記自動バックグラウンド処理の実行を許可するように制御することを特徴とする請求項1乃至3のいずれか1項に記載の記録装置。 The predetermined conditions include temperature conditions relating to the temperature of the recording medium or the recording device.
When the temperature of the recording medium or the recording device is equal to or higher than the first threshold value, the control means controls so as to prohibit the execution of the automatic background processing, and the temperature of the recording medium or the recording device is the temperature of the recording medium or the recording device. The recording device according to any one of claims 1 to 3, wherein if the value is less than the first threshold value, control is performed so as to permit execution of the automatic background processing.
前記制御手段は、前記記録装置の電源がバッテリーの場合、または、前記記録装置のバッテリーの残量が第3の閾値未満の場合に、前記自動バックグラウンド処理の実行を禁止するように制御し、前記記録装置の電源がバッテリーではない場合、または、前記記録装置のバッテリーの残量が前記第3の閾値以上の場合には、前記自動バックグラウンド処理の実行を許可するように制御することを特徴とする請求項1乃至4のいずれか1項に記載の記録装置。 The predetermined condition includes a power supply condition relating to a power supply state of the recording device.
The control means controls so as to prohibit execution of the automatic background processing when the power source of the recording device is a battery or when the remaining amount of the battery of the recording device is less than the third threshold value. When the power source of the recording device is not a battery, or when the remaining amount of the battery of the recording device is equal to or higher than the third threshold value, the control is performed so as to allow the execution of the automatic background processing. The recording device according to any one of claims 1 to 4.
前記所定の条件は、前記バッファメモリの残量に関するバッファ量条件を含み、
前記制御手段は、前記バッファメモリの残量が第4の閾値未満の場合には、前記自動バックグラウンド処理の実行を禁止するように制御し、前記バッファメモリの残量が前記第4の閾値以上の場合には、前記自動バックグラウンド処理の実行を許可するように制御することを特徴とする請求項1乃至5のいずれか1項に記載の記録装置。 The recording control means controls so that the image to be recorded on the recording medium is temporarily stored in the buffer memory and then recorded on the recording medium.
The predetermined condition includes a buffer amount condition relating to the remaining amount of the buffer memory.
The control means controls so as to prohibit the execution of the automatic background processing when the remaining amount of the buffer memory is less than the fourth threshold value, and the remaining amount of the buffer memory is equal to or more than the fourth threshold value. In the case of, the recording device according to any one of claims 1 to 5, wherein the automatic background processing is controlled so as to be permitted to be executed.
前記所定の条件は、前記遅延時間に関する遅延時間条件を含み、
前記制御手段は、前記遅延時間が第5の閾値以上の場合には、前記自動バックグラウンド処理の実行を禁止するように制御し、前記遅延時間が前記第5の閾値未満の場合には、前記自動バックグラウンド処理の実行を許可するように制御することを特徴とする請求項1乃至6のいずれか1項に記載の記録装置。 Further provided with an acquisition means for acquiring the delay time generated when the recording medium transitions from the automatic background process to the main process for recording data in the recording medium.
The predetermined condition includes a delay time condition relating to the delay time.
The control means controls so as to prohibit the execution of the automatic background processing when the delay time is equal to or greater than the fifth threshold value, and when the delay time is less than the fifth threshold value, the control means is described. The recording device according to any one of claims 1 to 6, wherein the recording device is controlled so as to permit execution of automatic background processing.
前記記録媒体または前記記録装置の温度が第1の閾値未満の場合に、前記自動バックグラウンド処理の実行を許可する温度条件、
前記記録装置の電源がバッテリーではない場合、または、前記記録装置のバッテリーの残量が第3の閾値以上の場合に、前記自動バックグラウンド処理の実行を許可する電源条件、
前記記録媒体に記録する画像を一時的にバッファメモリの残量が第4の閾値以上の場合に、前記自動バックグラウンド処理の実行を許可するバッファ量条件、
前記記録媒体において前記自動バックグラウンド処理からデータを記録するメイン処理へと遷移する際に発生する遅延時間が第5の閾値未満の場合に、前記自動バックグラウンド処理の実行を許可する遅延時間条件、
のうちの少なくとも1つを含み、
前記制御手段は、前記所定の条件に含まれる全ての条件において、前記自動バックグラウンド処理の実行を許可する条件を満たしている場合に、前記自動バックグラウンド処理の実行を許可し、前記所定の条件に含まれる条件のうち前記自動バックグラウンド処理の実行を許可する条件を満たしていない条件がある場合は、前記自動バックグラウンド処理の実行を禁止することを特徴とする請求項1乃至3のいずれか1項に記載の記録装置。 The predetermined conditions are
A temperature condition that allows execution of the automatic background processing when the temperature of the recording medium or the recording device is less than the first threshold value.
A power supply condition that allows execution of the automatic background processing when the power source of the recording device is not a battery, or when the remaining battery level of the recording device is equal to or greater than a third threshold value.
A buffer amount condition that allows execution of the automatic background processing when the remaining amount of the buffer memory for the image to be recorded on the recording medium is temporarily equal to or larger than the fourth threshold value.
A delay time condition that allows execution of the automatic background processing when the delay time that occurs when transitioning from the automatic background processing to the main processing for recording data in the recording medium is less than the fifth threshold value.
Including at least one of
The control means permits the execution of the automatic background processing when the conditions for permitting the execution of the automatic background processing are satisfied in all the conditions included in the predetermined conditions, and the predetermined conditions. If any of the conditions included in the above conditions does not satisfy the condition for permitting the execution of the automatic background processing, any one of claims 1 to 3 is characterized in that the execution of the automatic background processing is prohibited. The recording device according to item 1.
前記記録制御手段は、前記記録装置に接続される複数の記録媒体のうち、記録先として選択されている記録媒体に、画像を記録するように制御し、
前記制御手段は、前記記録先として選択されている記録媒体での前記自動バックグラウンド処理の実行を禁止するように制御し、前記記録先として選択されていない記録媒体での前記自動バックグラウンド処理の実行を許可するように制御することを特徴とする請求項1乃至3のいずれか1項に記載の記録装置。 The recording device can be connected to a plurality of recording media, and can be connected to a plurality of recording media.
The recording control means controls to record an image on a recording medium selected as a recording destination among a plurality of recording media connected to the recording device.
The control means controls so as to prohibit the execution of the automatic background processing on the recording medium selected as the recording destination, and the automatic background processing on the recording medium not selected as the recording destination. The recording device according to any one of claims 1 to 3, wherein the recording device is controlled so as to permit execution.
前記複数の記録媒体での、省電期間における自動バックグラウンド処理の実行を許可するか否かを制御する制御手段と、
を備え、
前記制御手段は、前記複数の記録媒体のうち、記録先として設定されている記録媒体については、前記自動バックグラウンド処理の実行を許可しないように制御し、記録先として設定されていない記録媒体については、前記自動バックグラウンド処理の実行を許可するように制御する、
ことを特徴とする記録装置。 A recording control means for controlling recording of an image on a recording medium set as a recording destination among a plurality of recording media,
A control means for controlling whether or not to allow execution of automatic background processing during the power saving period on the plurality of recording media.
With
The control means controls the recording medium set as the recording destination among the plurality of recording media so as not to permit the execution of the automatic background processing, and the recording medium not set as the recording destination. Controls to allow the execution of the automatic background processing,
A recording device characterized by that.
記録媒体に画像を記録するように制御する記録制御工程と、
前記記録媒体での省電期間における自動バックグラウンド処理の実行を許可するか否かを、所定の条件を満たすか否かに応じて切り替えるように制御する制御工程と、
を備え、
前記制御工程では、前記記録媒体への画像の記録中に、前記所定の条件を満たすか否かに応じて、前記自動バックグラウンド処理の実行を許可するか否かを切り替えるように制御する
ことを特徴とする制御方法。 It is a control method executed by the recording device.
A recording control process that controls the recording of images on a recording medium,
A control step that controls whether or not to allow execution of automatic background processing in the power saving period on the recording medium is switched according to whether or not a predetermined condition is satisfied.
With
In the control step, it is controlled to switch whether or not to allow the execution of the automatic background processing depending on whether or not the predetermined condition is satisfied during the recording of the image on the recording medium. Characteristic control method.
複数の記録媒体のうち、記録先に設定されている記録媒体に画像を記録するように制御する記録制御工程と、
前記複数の記録媒体での、省電期間における自動バックグラウンド処理の実行を許可するか否かを制御する制御工程と、
を備え、
前記制御工程では、前記複数の記録媒体のうち、記録先として設定されている記録媒体については、前記自動バックグラウンド処理の実行を許可しないように制御し、記録先として設定されていない記録媒体については、前記自動バックグラウンド処理の実行を許可するように制御する、
ことを特徴とする制御方法。 It is a control method executed by the recording device.
A recording control process for controlling recording of an image on a recording medium set as a recording destination among a plurality of recording media,
A control step for controlling whether or not to allow execution of automatic background processing during the power saving period on the plurality of recording media, and
With
In the control step, among the plurality of recording media, the recording medium set as the recording destination is controlled so as not to allow the execution of the automatic background processing, and the recording medium not set as the recording destination is controlled. Controls to allow the execution of the automatic background processing,
A control method characterized by that.
Priority Applications (4)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2019158668A JP7418105B2 (en) | 2019-08-30 | 2019-08-30 | Recording device, control method, and program |
EP20190003.2A EP3786804B1 (en) | 2019-08-30 | 2020-08-07 | Recording apparatus, image capturing apparatus, control method, and storage medium |
US17/003,076 US11334142B2 (en) | 2019-08-30 | 2020-08-26 | Recording apparatus, image capturing apparatus, control method, and storage medium |
CN202010884785.9A CN112449091B (en) | 2019-08-30 | 2020-08-28 | Recording apparatus, image pickup apparatus, control method, and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2019158668A JP7418105B2 (en) | 2019-08-30 | 2019-08-30 | Recording device, control method, and program |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2021040184A true JP2021040184A (en) | 2021-03-11 |
JP7418105B2 JP7418105B2 (en) | 2024-01-19 |
Family
ID=74849241
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2019158668A Active JP7418105B2 (en) | 2019-08-30 | 2019-08-30 | Recording device, control method, and program |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP7418105B2 (en) |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2001014215A (en) | 1999-07-01 | 2001-01-19 | Matsushita Electric Ind Co Ltd | Device for executing program |
US8880775B2 (en) | 2008-06-20 | 2014-11-04 | Seagate Technology Llc | System and method of garbage collection in a memory device |
US9329948B2 (en) | 2012-09-15 | 2016-05-03 | Seagate Technology Llc | Measuring cell damage for wear leveling in a non-volatile memory |
JP6193189B2 (en) | 2014-08-20 | 2017-09-06 | 株式会社東芝 | NAND background processing controller |
-
2019
- 2019-08-30 JP JP2019158668A patent/JP7418105B2/en active Active
Also Published As
Publication number | Publication date |
---|---|
JP7418105B2 (en) | 2024-01-19 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP1847911B1 (en) | Electronic device, and external device control method using said electronic device | |
CN101211212B (en) | Apparatus and methodfor processing information | |
JP2010198407A (en) | Information processor, data recording control method, and program | |
JP5003421B2 (en) | Image processing device | |
US20210279006A1 (en) | Recording control apparatus and method for controlling recording control apparatus | |
CN112449091B (en) | Recording apparatus, image pickup apparatus, control method, and storage medium | |
US8077221B2 (en) | Image capturing apparatus and control method therefor with determination whether storage medium is limited-rewriteable storage medium | |
JP7339815B2 (en) | Recording device, imaging device, control method, and program | |
JP7418105B2 (en) | Recording device, control method, and program | |
JP2016009280A (en) | Recording device | |
JP4574382B2 (en) | Information retrieval apparatus, control method therefor, program, and storage medium | |
JP2021087204A (en) | Recording device and control method thereof | |
JP2015231169A (en) | Imaging apparatus | |
JP4836233B2 (en) | Image processing apparatus, control method therefor, computer program, and storage medium | |
US11570395B2 (en) | Recording and reproducing apparatus and method of controlling recording and reproducing apparatus | |
JP6066718B2 (en) | Imaging apparatus, control method thereof, and program | |
EP3829157B1 (en) | Recording apparatus, method of controlling recording apparatus, and storage medium | |
JP2004328037A (en) | Imaging and image recording apparatus | |
JP7467197B2 (en) | Recording apparatus and control method for recording apparatus | |
JP7458755B2 (en) | Recording device and method of controlling the recording device | |
JP7263017B2 (en) | Recording control device and its control method | |
JP2021157561A (en) | Recording device and control method therefor | |
JP4701297B2 (en) | Image processing apparatus, method, and recording medium | |
JP2021145309A (en) | Recording apparatus and recording apparatus control method | |
JP5111008B2 (en) | Imaging apparatus and control method thereof |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20220801 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20230711 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20230801 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20230901 |
|
TRDD | Decision of grant or rejection written | ||
A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20231205 |
|
RD01 | Notification of change of attorney |
Free format text: JAPANESE INTERMEDIATE CODE: A7421 Effective date: 20231213 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20231228 |
|
R151 | Written notification of patent or utility model registration |
Ref document number: 7418105 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R151 |