JP7339815B2 - Recording device, imaging device, control method, and program - Google Patents

Recording device, imaging device, control method, and program Download PDF

Info

Publication number
JP7339815B2
JP7339815B2 JP2019158932A JP2019158932A JP7339815B2 JP 7339815 B2 JP7339815 B2 JP 7339815B2 JP 2019158932 A JP2019158932 A JP 2019158932A JP 2019158932 A JP2019158932 A JP 2019158932A JP 7339815 B2 JP7339815 B2 JP 7339815B2
Authority
JP
Japan
Prior art keywords
recording
recording medium
threshold
condition
moving image
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.)
Active
Application number
JP2019158932A
Other languages
Japanese (ja)
Other versions
JP2021040192A (en
Inventor
浩平 勝又
高士 長谷川
一彰 丸橋
壮也 藤森
卓臣 小川
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 JP2019158932A priority Critical patent/JP7339815B2/en
Priority to EP20190003.2A priority patent/EP3786804B1/en
Priority to US17/003,076 priority patent/US11334142B2/en
Priority to CN202010884785.9A priority patent/CN112449091B/en
Publication of JP2021040192A publication Critical patent/JP2021040192A/en
Application granted granted Critical
Publication of JP7339815B2 publication Critical patent/JP7339815B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Description

本発明は、記録装置、撮像装置、制御方法、及びプログラムに関する。 The present invention relates to a recording device, an imaging device, a control method, and a program.

撮像装置の記録メディアとして、NAND型フラッシュメモリが広く採用されている。NAND型フラッシュメモリは、最小単位としてデータを格納する「セル」、複数のセルから構成された「ページ」、複数のページから構成された「ブロック」という単位で構成される。1セルあたり1ビットの情報を記録する方式をSLC方式(Single Level Cell)と呼び、1セルあたり2ビットの情報を記録する方式をMLC方式(Multi Level Cell)と呼ぶ。また、1セルあたり3ビットの情報を記録する方式をTLC方式(Triple Level Cell)と呼ぶ。 A NAND flash memory is widely used as a recording medium for imaging devices. A NAND flash memory is composed of units of "cell" for storing data as a minimum unit, "page" composed of a plurality of cells, and "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). A method of recording 3-bit 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. In addition, although the capacity per cell is small, it is highly reliable and has a long life, so it is used as a general storage cache area or as an industrial equipment storage. The MLC system and the TLC system are inferior to the SLC system in read/write speed, reliability, and life. On the other hand, the capacity per cell of the MLC method is twice that of the SLC method, and that of the TLC method is three times that of the SLC method. there is

NAND型フラッシュメモリを使用したSSD(Solid State Drive)やカード型メディアは、SLC方式とTLC方式とを組み合わせた構成をとることが多い。この場合、メモリコントローラは、SLC方式として使用する領域をキャッシュ領域として、TLC方式として使用する領域を主たるデータ領域として管理する。メモリコントローラは、ホストコントローラから転送されてくるデータをキャッシュ領域へ書き込むことで、トップスピードでの書き込み可能となる。 SSDs (Solid State Drives) using NAND flash memories and card-type media often have a configuration in which the SLC method and the TLC method are combined. In this case, the memory controller manages the area used for the SLC method as a cache area and the area used for the TLC method as a main data area. By writing the data transferred from the host controller to the cache area, the memory controller can write at top speed.

キャッシュ領域であるSLC方式の領域は、全体の容量の中の比率が低い。そのため、メモリコントローラは、書き込みが停止している期間に次の書き込みに備え、キャッシュ領域における空き領域を確保するために、キャッシュ領域から主たるデータ領域であるTLC方式の領域へとデータを移動する。これをフラッシュキャッシュと呼ぶ。 The SLC 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 area, which is the main data area, in order to secure an empty area in the cache area in preparation for the next write while writing is stopped. This is called flash cache.

SLC方式の領域をキャッシュ領域として使用することでトップスピードでの書き込みが実現する。そして、フラッシュキャッシュによりTLC方式の領域へデータを移動することにより、SLC方式の領域確保とNAND型フラッシュメモリ全体の容量の有効活用が可能となる。 Top-speed writing is realized by using the SLC area as a cache area. By moving the data to the TLC area by the flash cache, it becomes possible to secure the SLC area and effectively utilize the capacity of the entire NAND flash memory.

また、NAND型フラッシュメモリは、データ消去単位はブロック毎に制限され、かつ既存データへの上書きができない特性を持つ。ホストコントローラからNAND型フラッシュメモリ内のファイルが削除されると、メモリコントローラは内部ファイルテーブルに削除を記録する。削除されたファイルが記録されていたブロックには不要データが残り、断片化されたブロックとなる。 In addition, the NAND type flash memory has the characteristic that the data erasing unit is restricted to each block and existing data cannot be overwritten. When a file in the NAND flash memory is deleted from the host controller, the memory controller records the deletion in the internal file table. Unnecessary data remains in blocks where deleted files were recorded, resulting in fragmented blocks.

断片化されたブロックは、新たなデータを上書きできない領域として残ってしまう。そのため、メモリコントローラは、ブロック内の有効なデータを他のブロックへ退避し、現行のブロックのデータを消去し、新たなデータの記録領域として回復する。これをガベージコレクションという。 Fragmented blocks remain as areas that cannot be overwritten by new data. Therefore, the memory controller saves valid data in the block to another block, erases the data in the current block, and restores it as a recording area for new data. This is called garbage collection.

メモリコントローラによる定期的なフラッシュキャッシュ及びガベージコレクションの実施により、撮像装置の記録メディアとして、大容量静止画の連写に耐えうる書き込み速度の回復、及び、書き込み容量の最大化が期待できる。 Periodic execution of flash cache and garbage collection by the memory controller is expected to restore the write speed and maximize the write capacity of the recording medium for the image pickup apparatus, which can withstand continuous shooting of large-capacity still images.

メモリコントローラによるフラッシュキャッシュ及びガベージコレクションの処理を、ホストコントローラからの書き込み・読み出しのメイン処理が無い時間にバックグラウンド処理として実施する技術が提案されている(特許文献1参照)。 A technology has been proposed in which flash cache and garbage collection processing by a memory controller is performed as background processing during a time when there is no main processing of writing/reading from a host controller (see Patent Document 1).

特許第6193189号公報Japanese Patent No. 6193189

ところで、撮像装置の記録メディアには、動画記録のようにリアルタイムに生成されるデータを定期的に長時間記録するリアルタイムタスク処理に対する要求もある。この場合、ホストコントローラとなる撮像装置は、定期的なリアルタイムデータの記録と記録との間に省電期間を設けることでNAND型フラッシュメモリの発熱を抑え、長時間記録に耐えうる電力管理が必要となる。 By the way, there is also a demand for real-time task processing in which data generated in real time, such as moving image recording, is regularly recorded for a long period of time in the recording media of imaging apparatuses. In this case, the imaging device, which serves as the host controller, needs power management that can withstand long-term recording by setting a power-saving period between regular real-time data recordings to suppress the heat generation of the NAND-type flash memory. becomes.

しかしながら、省電期間として期待する、メイン処理がない期間にメモリコントローラがバックグラウンド処理を開始してしまうと、NAND型フラッシュメモリは省電期間なしに電力を消費することとなり、記録メディアの発熱が大きくなる。その結果、記録が停止してしまうなどの問題が発生する可能性がある。 However, if the memory controller starts background processing while there is no main processing, which is expected as a power saving period, the NAND flash memory will consume power without a power saving period, and the recording media will heat up. growing. As a result, problems such as recording stop may occur.

一方で、バックグラウンド処理を禁止すると、記録メディアの発熱が低減されるため発熱による記録の停止を回避することができるが、記録メディアの最適化が実行されないため、書き込み速度の回復、及び、書き込み容量の最大化が期待できない。 On the other hand, if the background processing is prohibited, the heat generation of the recording medium is reduced, so that the stop of recording due to heat generation can be avoided. You can't expect maximum capacity.

本発明はこのような状況に鑑みてなされたものであり、記録媒体での省電期間における自動バックグラウンド処理の実行を許可するか否かを適切に制御する技術を提供することを目的とする。 SUMMARY OF THE INVENTION It is an object of the present invention to provide a technique for appropriately controlling whether or not to permit execution of automatic background processing during a power saving period on a recording medium. .

上記課題を解決するために、本発明は、第1の記録媒体に静止画又は動画を記録するように制御する記録制御手段と、前記第1の記録媒体での、省電期間における自動バックグラウンド処理の実行を許可するか否かを制御する制御手段と、を備え、前記制御手段は、前記第1の記録媒体に前記静止画を記録する場合は、前記省電期間における前記自動バックグラウンド処理の実行を許可し、前記第1の記録媒体に前記動画を記録する場合は、前記省電期間における前記自動バックグラウンド処理の実行を許可しないように制御することを特徴とする記録装置を提供する。 In order to solve the above problems, the present invention provides recording control means for controlling recording of still images or moving images on a first recording medium, and automatic background recording during a power saving period on the first recording medium. and control means for controlling whether or not to permit execution of the process, wherein the control means controls the automatic background process during the power saving period when the still image is recorded on the first recording medium. and performing control so as not to permit execution of the automatic background processing during the power saving period when recording the moving image on the first recording medium. .

本発明によれば、記録媒体での省電期間における自動バックグラウンド処理の実行を許可するか否かを適切に制御することが可能となる。 According to the present invention, it is possible to appropriately control whether or not to permit the execution of automatic background processing during the power saving period of the recording medium.

なお、本発明のその他の特徴及び利点は、添付図面及び以下の発明を実施するための形態における記載によって更に明らかになるものである。 Other features and advantages of the present invention will become more apparent from the accompanying drawings and the description in the following detailed description.

撮像装置100の構成を模式的に示す図。1 is a diagram schematically showing the configuration of an imaging device 100; FIG. 撮像装置100が実行する撮影処理のフローチャート。4 is a flowchart of imaging processing executed by the imaging apparatus 100; カード制御(図2のS207)の詳細を示すフローチャート。4 is a flowchart showing details of card control (S207 in FIG. 2); 図3のS304及びS309において述べた各種条件の一例である温度条件の判定について説明するフローチャート。FIG. 4 is a flowchart for explaining determination of a temperature condition, which is an example of various conditions described in S304 and S309 of FIG. 3; FIG. 図3のS304及びS309において述べた各種条件の一例である電源条件の判定について説明するフローチャート。FIG. 4 is a flowchart for explaining determination of power supply conditions, which is an example of various conditions described in S304 and S309 of FIG. 3; FIG. 図3のS304及びS309において述べた各種条件の一例である残バッファ量/遅延時間条件の判定について説明するフローチャート。FIG. 4 is a flowchart for explaining determination of a remaining buffer amount/delay time condition, which is an example of various conditions described in S304 and S309 of FIG. 3; FIG. 図3のS304及びS309において述べた各種条件の一例である残バッファ量条件の判定について説明するフローチャート。4 is a flowchart for explaining determination of a remaining buffer amount condition, which is an example of various conditions described in S304 and S309 of FIG. 3; 図3のS304及びS309において述べた各種条件の一例である遅延時間条件の判定について説明するフローチャート。FIG. 4 is a flowchart for explaining determination of a delay time condition, which is an example of various conditions described in S304 and S309 of FIG. 3; FIG.

以下、添付図面を参照して実施形態を詳しく説明する。尚、以下の実施形態は特許請求の範囲に係る発明を限定するものでない。実施形態には複数の特徴が記載されているが、これらの複数の特徴の全てが発明に必須のものとは限らず、また、複数の特徴は任意に組み合わせられてもよい。さらに、添付図面においては、同一若しくは同様の構成に同一の参照番号を付し、重複した説明は省略する。 Hereinafter, embodiments will be described in detail with reference to the accompanying drawings. It should be noted that the following embodiments do not limit the invention according to the scope of claims. Although multiple features are described in the embodiments, not all of these multiple features are essential to the invention, and multiple features may be combined arbitrarily. Furthermore, in the accompanying drawings, the same or similar configurations are denoted by the same reference numerals, and redundant description is 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 the configuration of an imaging device 100, which is an example of a recording device. In FIG. 1 , a lens unit 102 , an imaging unit 103 , a display unit 104 , an operation unit 105 , an imaging apparatus temperature detection unit 106 , a heat dissipation fan 107 , and a CPU 108 are connected to an imaging apparatus internal bus 101 . Also, an image processing unit 109 , a first media control unit 110 , a second media control unit 111 , a RAM 112 , a nonvolatile memory 113 , and a power supply unit 114 are connected to the imaging apparatus internal bus 101 . Each unit connected to the imaging device internal bus 101 is configured to be able to exchange data with each other via the imaging device internal bus 101 .

CPU108は、例えば不揮発性メモリ113に格納されるプログラムに従い、RAM112をワークメモリとして用いて、撮像装置100の各部を制御する。 The CPU 108 uses the RAM 112 as a work memory to control each unit of the imaging apparatus 100 according to a program stored in the nonvolatile memory 113, for example.

不揮発性メモリ113には、画像データや音声データ、その他のデータ、CPU108が動作するための各種プログラムなどが格納される。不揮発性メモリ113は例えばハードディスク(HD)やROMなどで構成される。 The nonvolatile memory 113 stores image data, audio data, other data, various programs for the CPU 108 to operate, and the like. The nonvolatile memory 113 is composed of, for example, a hard disk (HD) or ROM.

画像処理部109は、CPU108の制御に基づいて、不揮発性メモリ113やRAM112に格納された画像データや、レンズ部102を通して入射した被写体光学像を撮像部103で撮像した画像データなどに対して、各種画像処理を施す。画像処理部109が行う画像処理には、A/D変換処理、D/A変換処理、画像データのエンコード処理、圧縮処理、デコード処理、拡大/縮小処理(リサイズ)、ノイズ低減処理、色変換処理などが含まれる。画像処理部109は特定の画像処理を施すための専用の回路ブロックで構成してもよい。また、画像処理の種別によっては画像処理部109を用いずにCPU108がプログラムに従って画像処理を施すことも可能である。 Under the control of the CPU 108, the image processing unit 109 processes the image data stored in the nonvolatile memory 113 and the RAM 112, the image data obtained by capturing the optical image of the subject incident through the lens unit 102 with the imaging unit 103, and the like. Apply various image processing. Image processing performed by the image processing unit 109 includes A/D conversion processing, D/A conversion processing, image data encoding processing, compression processing, decoding processing, enlargement/reduction processing (resize), noise reduction processing, and color conversion processing. and so on. The image processing unit 109 may be composed of a dedicated circuit block for performing specific image processing. Further, depending on the type of image processing, the CPU 108 can perform image processing according to a program without using the image processing unit 109 .

表示部104は、CPU108の制御に基づいて、画像やGUI(Graphical User Interface)を構成するGUI画面などを表示する。CPU108は、プログラムに従い表示制御信号を生成し、表示部104に表示するための映像信号を生成して表示部104に出力するように撮像装置100の各部を制御する。表示部104は出力された映像信号に基づいて映像を表示する。なお、撮像装置100自体が備える構成としては表示部104に表示させるための映像信号を出力するためのインタフェースまでとし、表示部104は外付けのモニタ(テレビなど)で構成してもよい。 The display unit 104 displays an image, a GUI screen constituting a GUI (Graphical User Interface), etc. under the control of the CPU 108 . The CPU 108 controls each part of the imaging device 100 to generate a display control signal according to a program, generate a video signal to be displayed on the display unit 104 , and output the video signal to the display unit 104 . The display unit 104 displays an image based on the output image signal. Note that the imaging apparatus 100 itself includes an interface for outputting a video signal to be displayed on the display unit 104, and the display unit 104 may be configured by an external monitor (such as a television).

操作部105は、キーボードなどの文字情報入力デバイスや、マウスやタッチパネルといったポインティングデバイス、ボタン、ダイヤル、ジョイスティック、タッチセンサ、タッチパッドなどを含む、ユーザ操作を受け付けるための入力デバイスである。なお、タッチパネルは、表示部104に重ね合わせて平面的に構成され、接触された位置に応じた座標情報が出力されるように構成された入力デバイスである。 The operation unit 105 is an input device for receiving user operations, including a character information input device such as a keyboard, a pointing device such as a mouse and a touch panel, buttons, dials, joysticks, touch sensors, and touch pads. It should be noted that the touch panel is an input device that is superimposed on the display unit 104 and configured in a two-dimensional manner so as to output coordinate information according to the touched position.

電源部114は、バッテリー115とACアダプタ116が装着可能な電源入力端子を有し、コンパレータ、ロードスイッチなどで構成された電源選択回路で、電圧の高い側又はACアダプタ116を優先して電源を選択する。 The power supply unit 114 has a power supply input terminal to which the battery 115 and the AC adapter 116 can be attached. select.

また、電源部114は、撮像装置100とバッテリー115とを接続するバッテリーインタフェースを含む。バッテリーインタフェースは、電源、グラウンドだけでなく、バッテリー115内部のマイコン(不図示)との通信端子、バッテリー115内部の温度検出部(不図示)を含む。更に、電源部114は、撮像装置100とACアダプタ116とを接続するACアダプタインタフェースを含む。ACアダプタインタフェースは、電源、グラウンド、ACアダプタ116を検出する検出部を含む。 Also, the power supply unit 114 includes a battery interface that connects the imaging device 100 and the battery 115 . The battery interface includes not only power supply and ground, but also a communication terminal with a microcomputer (not shown) inside the battery 115 and a temperature detector (not shown) inside the battery 115 . Furthermore, the power supply unit 114 includes an AC adapter interface that connects the imaging device 100 and the AC adapter 116 . The AC adapter interface includes detectors for detecting power, ground, and AC adapter 116 .

また、電源部114は、撮像装置内部バス101を介してCPU108にバッテリー115及びACアダプタ116の情報を通知することができる。また、電源部114は、選択された電源から不図示のDC/DCコンバーターやシリーズレギュレータを用いて電圧をレギュレートし、撮像装置100を構成している各部へ電力を供給する。また、電源部114は、装着されたバッテリー115及びACアダプタ116それぞれの電圧をA/D変換し、その値をCPU108に通知する。 In addition, the power supply unit 114 can notify the CPU 108 of information on the battery 115 and the AC adapter 116 via the imaging apparatus internal bus 101 . Also, the power supply unit 114 regulates the voltage from the selected power supply using a DC/DC converter and a series regulator (not shown), and supplies power to each unit forming the imaging apparatus 100 . Also, the power supply unit 114 A/D-converts the voltages of the attached battery 115 and the AC adapter 116 and notifies the CPU 108 of the values.

撮像部103は、CCDセンサやCMOSセンサなどの撮像素子である。レンズ部102は、ズームレンズ、フォーカスレンズ、シャッター、絞り、測距部、A/D変換器などにより構成されるレンズユニットである。 The imaging unit 103 is an imaging device such as a CCD sensor or a CMOS sensor. A lens unit 102 is a lens unit including a zoom lens, a focus lens, a shutter, an aperture, a distance measuring unit, an A/D converter, and the like.

撮像部103は、静止画及び動画を撮像可能である。撮像された画像の画像データは画像処理部109に送信され、各種処理を施された後、静止画ファイル又は動画ファイルとして第1の記録メディア150又は第2の記録メディア160に記録される
放熱ファン107は、冷却用のファンである、撮像装置100内部の温度は撮像装置温度検出部106によって検出され、CPU108に通知される。CPU108はその温度によって放熱ファン107のファンの回転数を制御し、撮像装置100内部の温度を調整する。
The imaging unit 103 can capture still images and moving images. The image data of the captured image is transmitted to the image processing unit 109, and after being subjected to various processing, is recorded as a still image file or a moving image file in the first recording medium 150 or the second recording medium 160. Reference numeral 107 denotes a cooling fan. The temperature inside the imaging apparatus 100 is detected by an imaging apparatus temperature detection unit 106 and notified to the CPU 108 . The CPU 108 controls the number of revolutions of the heat dissipation fan 107 according to the temperature, and adjusts the temperature inside the imaging apparatus 100 .

撮像装置100は、第1のメディア制御部110及び第1のメディアインタフェース155を介して、画像処理部109によって画像処理、エンコード処理、圧縮処理が施された静止画・動画のデータを、第1の記録メディア150に記録することができる。また、撮像装置100は、第1のメディア制御部110及び第1のメディアインタフェース155を介して、第1の記録メディア150に記録された静止画・動画のデータを読み出すことができる。撮像装置100は、読み出されたデータを画像処理部109によってデコード処理することにより得られる映像を表示部104に表示する。 The image capturing apparatus 100 converts still image/moving image data, which has undergone image processing, encoding processing, and compression processing by the image processing unit 109 via the first media control unit 110 and the first media interface 155, into the first can be recorded on the recording medium 150 of Further, the imaging device 100 can read data of still images and moving images recorded on the first recording medium 150 via the first media control unit 110 and the first media interface 155 . The imaging device 100 displays on the display unit 104 an image obtained by decoding the read data by the image processing unit 109 .

第1の記録メディア150は、撮像装置100に対して着脱可能な記録媒体であり、本実施形態においては、CFexpress規格に準拠したメモリカードとする。 The first recording medium 150 is a recording medium that can be attached to and detached from the imaging device 100, and in this embodiment, is a memory card conforming to the CFexpress standard.

第1のメディア制御部110は、第1のメディアインタフェース155を介して、第1のメモリコントローラ152と制御コマンドの通信も行うことができる。制御コマンドには、データの記録及び再生のためのコマンドの他に、ベンダー情報、温度情報、及び書き込み回数情報等の取得のためのコマンドなどがある。 The first media controller 110 can also communicate control commands with the first memory controller 152 via the first media interface 155 . Control commands include, in addition to commands for recording and reproducing data, commands for acquiring vendor information, temperature information, write count information, and the like.

第1の記録メディア150は、第1のメモリコントローラ152、第1のNAND型メモリ部153、第1のメディア温度検出部154を含み、それぞれが第1の記録メディア内部バス151で接続されている。 The first recording medium 150 includes a first memory controller 152, a first NAND memory section 153, and a first medium temperature detecting section 154, which are connected by a first recording medium internal bus 151. .

第1のメモリコントローラ152は、第1のメディア制御部110から転送される静止画・動画のデータを第1のNAND型メモリ部153へ記録する。この際、第1のメモリコントローラ152は、第1のNAND型メモリ部153のキャッシュ領域への書き込みの制御、及び主たるデータ領域へのデータの移動の制御を実行する。また、第1のメモリコントローラ152は、第1のNAND型メモリ部153内の断片化されたデータを移動・整理して空き領域を確保するガベージコレクションを行うことができる。 The first memory controller 152 records the still image/moving image data transferred from the first media control unit 110 in the first NAND memory unit 153 . At this time, the first memory controller 152 executes control of writing to the cache area of the first NAND memory unit 153 and control of data movement to the main data area. In addition, the first memory controller 152 can move and organize fragmented data in the first NAND memory unit 153 to perform garbage collection to secure free space.

また、第1のメモリコントローラ152は、第1のメディア温度検出部154によって検出された第1のNAND型メモリ部153の温度を取得する。第1のメモリコントローラ152は、取得した温度に応じて、第1のNAND型メモリ部153へのクロック周波数の制御、アクセス禁止・許可の制御、及びアクセス速度の制御を行う。 Also, the first memory controller 152 acquires the temperature of the first NAND memory unit 153 detected by the first media temperature detection unit 154 . The first memory controller 152 performs clock frequency control, access prohibition/permission control, and access speed control to the first NAND memory unit 153 according to the acquired temperature.

第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 second recording medium 160 is connected to the imaging device 100 via the second media control section 111 and the second media interface 165 and has the same configuration and functions as the first recording medium 150 . The second memory controller 162, the second NAND memory unit 163, and the second media temperature detection unit 164 are respectively connected to the first memory controller 152, the first NAND memory unit 153, and the first medium. It corresponds to the temperature detection unit 154 . The second memory controller 162 , the second NAND memory section 163 and the second medium temperature detection section 164 are connected by the second recording medium internal bus 161 .

図2は、撮像装置100が実行する撮影処理のフローチャートである。本フローチャートの各ステップの処理は、特に断らない限り、CPU108が不揮発性メモリ113に格納された制御プログラムを実行して撮像装置100の各部を制御することにより実現される。撮像装置100の電源がONになる撮影待機状態になると、本フローチャートの処理が開始する。 FIG. 2 is a flowchart of imaging processing executed by the imaging device 100 . Unless otherwise specified, the CPU 108 executes a control program stored in the non-volatile memory 113 to control each section of the imaging apparatus 100 to implement the processing of each step of this flowchart. When the image capturing apparatus 100 is in a shooting standby state in which the power of the image capturing apparatus 100 is turned on, the processing of this flowchart starts.

なお、撮像装置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は、記録対象カードと待機カードとの入れ替えを行う。 Note that the imaging apparatus 100 can select any one of a single recording mode, a dual recording mode, and a relay recording mode as a recording mode of image data for a plurality of recording media. In the single recording mode, the imaging device 100 selects one of the first recording medium 150 and the second recording medium 160 as the recording destination of the image data (hereinafter referred to as "recording target card"). In the case of the dual recording mode, the imaging device 100 treats both the first recording medium 150 and the second recording medium 160 as recording target cards, and the same recording medium 150 and the second recording medium 160 are treated as cards to be recorded. Record data. In the relay recording mode, the imaging device 100 selects one of the first recording medium 150 and the second recording medium 160 as the recording target card. When the remaining capacity of the recording target card becomes low, the imaging device 100 newly records the one of the first recording medium 150 and the second recording medium 160 that is not the recording target card (hereinafter referred to as a "standby card"). Select as target card. The original recording target card becomes a standby card. In other words, when the remaining capacity of the recording target card becomes low, the imaging device 100 replaces the recording target card with the standby card.

記録モードは、例えば操作部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 has been selected in advance by a user's operation via the operation unit 105, for example. Dual recording mode and relay recording mode can be selected when both the first recording medium 150 and the second recording medium 160 are attached to the imaging device 100 . In the case of the relay recording mode, it is assumed that the first card to be recorded has been selected in advance by user operation via the operation unit 105, for example. Single recording mode can be selected when at least one of the first recording medium 150 and the second recording medium 160 is attached to the imaging device 100 . When both the first recording medium 150 and the second recording medium 160 are loaded in the imaging apparatus 100 in the single recording mode, the recording target card is selected in advance by user operation via the operation unit 105, for example. shall be

以下の説明において、第1の記録メディア150及び第2の記録メディア160のことを単に「カード」又は「メディア」と呼ぶ場合がある。 In the following description, the first recording medium 150 and the second recording medium 160 may be simply referred to as "card" or "media".

最初に、S201で、CPU108は、撮像装置100に装着されている全てのカードに対して、バックグラウンド処理(BG処理)許可コマンドを送信する。BG処理許可コマンドは、省電期間(データの記録と記録との間など)における自動的なバックグラウンド処理の実行(自動バックグラウンド処理の実行)を許可するように制御するコマンドである。 First, in S<b>201 , the CPU 108 transmits a background processing (BG processing) permission command to all cards attached to the imaging apparatus 100 . The BG processing permission command is a command for controlling to permit automatic execution of background processing (execution of automatic background processing) during a power saving period (between data recording and the like).

本実施形態では、第1の記録メディア150及び第2の記録メディア160は、CFexpress規格に準拠したメモリカードであるものとする。そして、BG処理の許可・禁止を、NVM Express規格(NVMe規格)のNOPPME(Non-Operational Power State Permissive Mode Enable)コマンドを用いて制御するものとする。NOPPMEコマンドは、実際には、省電期間中のBG処理を直接的に制御するコマンドではなく、所定の電力を超えるBG処理を許可するか否かを指定するコマンドである。 In this embodiment, the first recording medium 150 and the second recording medium 160 are assumed to be memory cards conforming to the CFexpress standard. BG processing permission/prohibition is controlled using NOPPME (Non-Operational Power State Permissive Mode Enable) command of NVM Express standard (NVMe standard). The NOPPME command is actually not a command that directly controls the BG processing during the power saving period, but a command that specifies whether or not to permit BG processing that exceeds a predetermined power.

NOPPMEコマンドによりEnableを示す「1」が指定された場合、メディアでは、所定の電力を超えるBG処理の実行が可能となり、その結果、省電期間におけるBG処理が実行可能となる。従って、NOPPMEコマンドにより「1」を指定することは、省電期間中のBG処理の実行を許可するように制御するBG処理許可コマンドを送信することに相当する。 When "1" indicating Enable is specified by the NOPPME command, the media can execute BG processing that exceeds a predetermined power consumption, and as a result, BG processing can be executed during the power saving period. Therefore, specifying "1" by the NOPPME command corresponds to transmitting a BG processing permission command for controlling to permit 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 Disable is specified by the NOPPME command, the media cannot perform BG processing exceeding a predetermined power, and as a result, BG processing cannot be performed during the power saving period. . Therefore, specifying "0" by the NOPPME command corresponds to transmitting a command (BG processing prohibition command) for prohibiting (not permitting) execution of the BG processing during the power saving period.

なお、本実施形態は、省電期間中のBG処理の許可・禁止をNVM ExpressのNOPPMEコマンドを用いて制御する構成に限定されない。また、第1の記録メディア150及び第2の記録メディア160が準拠する規格は、CFexpress規格に限定されない。他の種類のコマンドをBG処理許可コマンド及びBG処理禁止コマンドとして用いて、他の規格に準拠するメディアの省電期間中のBG処理の許可・禁止を制御する構成も、本実施形態の範囲に含まれる。 Note that this embodiment is not limited to a configuration in which permission/inhibition of BG processing during the power saving period is controlled using the NOPPME command of NVM Express. Also, the standard to which the first recording medium 150 and the second recording medium 160 conform is not limited to the CFexpress standard. A configuration for controlling permission/prohibition of BG processing during the power saving period of media conforming to other standards by using other types of commands as a BG processing permission command and a BG processing prohibition command is also within the scope of the present embodiment. included.

次に、S202で、CPU108は、静止画撮影指示が行われたか否かを判定する。静止画撮影指示が行われた場合、処理はS203に進み、そうでない場合、処理はS204に進む。 Next, in S202, the CPU 108 determines whether or not a still image shooting instruction has been issued. If a still image shooting instruction has been issued, the process proceeds to S203; otherwise, the process proceeds to S204.

S203で、CPU108は、撮像部103を用いて静止画を生成する静止画撮影を行い、得られた静止画を記録対象カードに記録する。その後、処理はS202に戻る。 In S203, the CPU 108 performs still image shooting for generating a still image using the imaging unit 103, and records the obtained still image on the recording target card. After that, the process returns to S202.

S204で、CPU108は、動画撮影指示が行われたか否かを判定する。動画撮影指示が行われた場合、処理はS205に進み、そうでない場合、処理はS205に進む。 In S204, the CPU 108 determines whether or not a moving image shooting instruction has been issued. If a moving image shooting instruction has been issued, the process proceeds to S205; otherwise, the process proceeds to S205.

S205で、CPU108は、記録対象カードに対してBG処理禁止コマンドを送信する。すなわち、動画記録の場合は、基本的には、記録対象カードにおけるBG処理を禁止する。待機カードについては、S201においてBG処理許可コマンドを送信しているため、BG処理は許可されている。待機カードでは画像の記録が行われないため、基本的には、BG処理を許可している。 In S205, the CPU 108 transmits a BG processing prohibition command to the recording target card. That is, in the case of moving image recording, BG processing is basically prohibited in the recording target card. As for the standby card, BG processing is permitted because the BG processing permission command is transmitted in S201. Since images are not recorded on the standby card, BG processing is basically permitted.

S206で、CPU108は、撮像部103を用いて動画を生成する動画撮影と、記録対象カードへの動画記録とを開始する。 In S206, the CPU 108 starts moving image shooting for generating a moving image using the imaging unit 103 and recording the moving image on the recording target card.

S207で、CPU108は、カード制御を行う。カード制御は、リレー記録モードにおける記録対象カードと待機カードとの入れ替え制御、記録対象カードのBG処理の許可・禁止制御、及び待機カードのBG処理の許可・禁止制御を含む。カード制御の詳細は図3を参照して後述する。 In S207, the CPU 108 performs card control. The card control includes switching control of the recording target card and the standby card in the relay recording mode, permission/prohibition control of the BG processing of the recording target card, and permission/prohibition control of the BG processing of the standby card. Details of card control will be described later with reference to FIG.

S208で、CPU108は、記録停止指示が行われたか否かを判定する。記録停止指示が行われた場合、処理はS209に進み、そうでない場合、処理はS207に戻る。即ち、動画記録中は、カード制御が繰り返し実行される。 In S208, the CPU 108 determines whether or not a recording stop instruction has been issued. If the recording stop instruction has been issued, the process proceeds to S209; otherwise, the process returns to S207. That is, card control is repeatedly executed during moving image recording.

S209で、CPU108は、動画の撮影及び記録を停止する。その後、処理はS201に戻り、再び全てのカードにBG処理許可コマンドが送信される。動画の記録停止時及び本フローチャートの処理開始時に全てのカードにBG処理許可コマンドが送信されるので、S203において静止画を記録する場合は、記録対象カードのメモリコントローラは省電期間にBG処理を実行可能である。 In S209, the CPU 108 stops shooting and recording moving images. After that, the process returns to S201, and the BG process permission command is sent to all the cards again. Since the BG processing permission command is sent to all cards when recording of a moving image is stopped and when the processing of this flow chart is started, when recording a still image in S203, the memory controller of the recording target card performs BG processing during the power saving period. It is viable.

次に、図3を参照して、カード制御(図2のS207)の詳細について説明する。S301で、CPU108は、現在の記録モードがリレー記録モードであるか否かを判定する。リレー記録モードの場合、処理はS302に進み、そうでない場合、処理はS304に進む。 Next, details of the card control (S207 in FIG. 2) will be described with reference to FIG. In S301, the CPU 108 determines whether the current recording mode is the relay recording mode. If it is the relay recording mode, the process proceeds to S302; otherwise, the process proceeds to S304.

S302で、CPU108は、現在の記録対象カードの残容量が予め設定された閾値未満(第6の閾値未満)であるか否かを判定する。残容量が閾値未満の場合、処理はS303に進み、そうでない場合、処理はS304に進む。 In S302, the CPU 108 determines whether or not the current remaining capacity of the recording target card is less than a preset threshold (less than a sixth threshold). If the remaining capacity is less than the threshold, the process proceeds to S303; otherwise, the process proceeds to S304.

S303で、CPU108は、記録対象カードと待機カードとの入れ替えを行う。なお、この時、CPU108は、入れ替えにより新たに記録先となった記録対象カードに対してBG処理禁止コマンドを送信し、記録先から非記録先に変更された待機カードに対してBG処理許可コマンドを送信する。新たに画像の記録が行われる記録対象カードにおいては基本的にはBG処理を禁止し、画像の記録が行われなくなった待機カードにおいては基本的にはBG処理を許可するためである。 In S303, the CPU 108 replaces the recording target card and the standby card. At this time, the CPU 108 transmits a BG processing prohibition command to the recording target card that has newly become a recording destination due to the replacement, and a BG processing permission command to the standby card that has been changed from the recording destination to the non-recording destination. to send. This is because BG processing is basically prohibited for a recording target card on which an image is newly recorded, and BG processing is basically permitted for a standby card on which image recording is no longer performed.

S304で、CPU108は、記録対象カードの省電期間におけるBG処理を許可するか禁止するかに関する各種条件を判定する。各種条件とは、例えば、温度条件、電源条件、及び残バッファ量/遅延時間条件である。各条件には対応する禁止フラグ(例えば、「温度条件による禁止フラグ」、「電源条件による禁止フラグ」、及び「残バッファ量/遅延時間条件による禁止フラグ」)が定義されている。各条件の判定結果に応じて、対応する禁止フラグがON又はOFFに設定される。各禁止フラグは、例えばRAM112に保持される。これらの条件及びその判定の詳細については、図4乃至図8を参照して後述する。なお、前述したとおり、図3のカード制御処理は、記録停止指示があるまで繰り返される。そのため、各種条件の判定結果に応じたBG処理の許可・禁止の切り替えは、動画の記録中は繰り返し実行され、各種条件の判定結果が変わる度にBG処理の許可・禁止が変更される。 In S304, the CPU 108 determines various conditions regarding whether to permit or prohibit the BG processing during the power saving period of the recording target card. Various conditions are, for example, temperature conditions, power supply conditions, and remaining buffer amount/delay time conditions. A prohibition flag corresponding to each condition (for example, "prohibition flag based on temperature condition", "prohibition flag based on power supply condition", and "prohibition flag based on remaining buffer amount/delay time condition") is defined. Depending on the determination result of each condition, the corresponding prohibition flag is set to ON or OFF. Each prohibition flag is held in the RAM 112, for example. Details of these conditions and their determination will be described later with reference to FIGS. As described above, the card control process of FIG. 3 is repeated until a recording stop instruction is given. Therefore, switching between permission and prohibition of BG processing according to the determination result of various conditions is repeatedly executed during recording of a moving image, and permission/prohibition of BG processing is changed each time the determination result of various conditions changes.

S305で、CPU108は、S304の処理により設定された記録対象カードに関する全ての禁止フラグがOFFであるか否かを判定する。全ての禁止フラグがOFFである場合、処理はS306に進み、そうでない場合、処理はS307に進む。 In S305, the CPU 108 determines whether or not all prohibition flags related to the recording target card set by the process of S304 are OFF. If all prohibition flags are OFF, the process proceeds to S306; otherwise, the process proceeds to S307.

S306で、CPU108は、記録対象カードに対してBG処理許可コマンドを送信する。 In S306, the CPU 108 transmits a BG processing permission command to the recording target card.

S307で、CPU108は、記録対象カードに対してBG処理禁止コマンドを送信する。 In S307, the CPU 108 transmits a BG processing prohibition command to the recording target card.

なお、デュアル記録モードの場合、両方の記録対象カードに対してBG処理許可コマンド又はBG処理禁止コマンドの送信が行われる。温度条件のようにカード毎に判定結果が異なる可能性のある条件については、カード毎に条件の判定と対応する禁止フラグの設定を行ってもよい。従って、S305の判定結果がカード毎に異なる場合もあり、この場合、1つの記録対象カードについてはS306の処理が実行され、もう1つの記録対象カードについてはS307の処理が実行される。 In the dual recording mode, a BG processing permission command or a BG processing prohibition command is transmitted to both recording target cards. For conditions such as the temperature condition that may result in different determination results for each card, the conditions may be determined and the corresponding prohibition flag may be set for each card. Therefore, the determination result of S305 may differ from card to 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 CPU 108 determines whether or not there is a standby card. A standby card exists in the relay recording mode and in the single recording mode when both the first recording medium 150 and the second recording medium 160 are attached to the imaging device 100 . If there is a waiting card, the process proceeds to S309; otherwise, the card control ends and the process proceeds to S208 in FIG.

S309で、CPU108は、待機カードの省電期間におけるBG処理を許可するか禁止するかに関する各種条件を判定する。各種条件とは、例えば、温度条件及び電源条件である。各条件には対応する禁止フラグ(例えば、「温度条件による禁止フラグ」及び「電源条件による禁止フラグ」)が定義されている。各条件の判定結果に応じて、対応する禁止フラグがON又はOFFに設定される。各禁止フラグは、例えばRAM112に保持される。これらの条件及びその判定の詳細については、図4及び図5を参照して後述する。 In S309, the CPU 108 determines various conditions regarding whether to permit or prohibit BG processing during the power saving period of the standby card. Various conditions are temperature conditions and power supply conditions, for example. A prohibition flag corresponding to each condition (for example, "prohibition flag by temperature condition" and "prohibition flag by power supply condition") is defined. Depending on the determination result of each condition, the corresponding prohibition flag is set to ON or OFF. Each prohibition flag is held in the RAM 112, for example. Details of these conditions and their determination will be described later with reference to FIGS.

S310で、CPU108は、S309の処理により設定された待機カードに関する全ての禁止フラグがOFFであるか否かを判定する。全ての禁止フラグがOFFである場合、処理はS311に進み、そうでない場合、処理はS312に進む。 In S310, the CPU 108 determines whether or not all prohibition flags relating to the standby cards set by the process of S309 are OFF. If all prohibition flags are OFF, the process proceeds to S311; otherwise, the process proceeds to S312.

S311で、CPU108は、待機カードに対してBG処理許可コマンドを送信する。 S312で、CPU108は、待機カードに対してBG処理禁止コマンドを送信する。 In S311, the CPU 108 transmits a BG processing permission command to the standby card. In S312, the CPU 108 transmits a BG process prohibition command to the standby card.

次に、図4を参照して、図3のS304及びS309において述べた各種条件の一例である温度条件の判定について説明する。 Next, determination of the temperature condition, which is an example of the various conditions described in S304 and S309 of FIG. 3, will be described with reference to FIG.

S401で、CPU108は、各種温度閾値を取得する。具体的には、CPU108は、不揮発性メモリ113から、カメラ温度閾値TC_TH(第2の閾値)、メディア温度閾値TM_TH(第1の閾値、第7の閾値)、メディア温度有効下限TM_MIN、及びメディア温度有効上限TM_MAXを読み出す。 In S401, the CPU 108 acquires various temperature thresholds. Specifically, the CPU 108 reads from the nonvolatile memory 113 the camera temperature threshold TC_TH (second threshold), the media temperature threshold TM_TH (first threshold, seventh threshold), the media temperature effective lower limit TM_MIN, and the media temperature Read the effective upper limit TM_MAX.

なお、各種温度閾値は、撮像装置100の動作モード又は動画の記録ビットレートなどに応じて変化してもよい。例えば、撮像装置100の動作モード及び記録ビットレートの組合せ毎に対応する各種温度閾値を持つデータテーブルを不揮発性メモリ113に予め記憶しておく。そして、CPU108は、データテーブルを参照することにより、現在の動作モード及び記録ビットレートの組合せに対応する各種温度閾値を取得する。 Note that various temperature thresholds may change according to the operation mode of the imaging device 100, the recording bit rate of a moving image, or the like. For example, a data table having various temperature threshold values corresponding to each combination of the operation mode and recording bit rate of the imaging device 100 is stored in advance in the nonvolatile memory 113 . Then, the CPU 108 obtains various temperature thresholds corresponding to the combination of the current operation mode and recording bit rate by referring to the data table.

また、各種温度閾値は、記録対象カードに関する温度条件の場合(図3のS304の場合)と待機カードに関する温度条件の場合(図3のS309の場合)とで異なってもよい。 Also, various temperature thresholds may differ between the temperature condition for the recording target card (in the case of S304 in FIG. 3) and the temperature condition for the standby card (in the case of S309 in FIG. 3).

S402で、CPU108は、撮像装置温度検出部106からカメラ温度情報TCを取得する。前述の通り、撮像装置100では、撮像装置温度検出部106によって撮像装置100の内部の温度が検出され、CPU108に通知される。 In S<b>402 , the CPU 108 acquires camera temperature information TC from the imaging device temperature detection unit 106 . As described above, in the imaging device 100 , the temperature inside the imaging device 100 is detected by the imaging device temperature detection unit 106 and notified to the CPU 108 .

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 CPU 108 acquires media temperature information TM from the recording target card (in the case of S304 in FIG. 3) or from the standby card (in the case of S309 in FIG. 3). As described above, the first memory controller 152 acquires the temperature of the first NAND memory section 153 detected by the first media temperature detection section 154 . Therefore, the CPU 108 acquires the media temperature information TM from the first recording medium 150 via the first memory controller 152 . The same applies to the second recording medium 160 as well.

S404で、CPU108は、S403で取得したメディア温度TMの有効判定を行う。即ち、CPU108は、メディア温度TMが、メディア温度有効下限TM_MIN以上かつメディア温度有効上限TM_MAX以下であるか否か(所定の範囲内に含まれるか否か)を判定する。メディア温度有効下限TM_MIN以上かつメディア温度有効上限TM_MAX以下である場合、処理はS405に進み、そうでない場合、処理はS408に進む。 In S404, the CPU 108 determines whether the media temperature TM acquired in S403 is valid. That is, the CPU 108 determines whether or not the media temperature TM is equal to or greater than the media temperature effective lower limit TM_MIN and equal to or less than the media temperature effective upper limit TM_MAX (whether it is within a predetermined range). If the media temperature effective lower limit TM_MIN or more and the media temperature effective upper limit TM_MAX or less, the process proceeds to S405; otherwise, the process proceeds to S408.

S405で、CPU108は、メディア温度TMがメディア温度閾値TM_TH以上であるか否かを判定する。メディア温度TMがメディア温度閾値TM_TH以上である場合、処理はS406に進み、そうでない場合、処理はS407に進む。 In S405, the CPU 108 determines whether or not the media temperature TM is equal to or higher than the media temperature threshold TM_TH. If the media temperature TM is greater than or equal to the media temperature threshold TM_TH, the process proceeds to S406; otherwise, the process proceeds to S407.

S406で、CPU108は、温度条件による禁止フラグをONに設定する。即ち、CPU108は、メディア温度TM又はカメラ温度TCが対応する閾値以上である場合に温度条件による禁止フラグをONに設定することにより、BG処理の実行を禁止するように制御する。これにより、メディア又はカメラの発熱を抑制し、発熱による記録の停止を抑制することが可能となる。 In S406, the CPU 108 sets the temperature condition prohibition flag to ON. That is, the CPU 108 controls to prohibit the execution of the BG processing by setting the temperature condition prohibition flag to ON when the media temperature TM or the camera temperature TC is equal to or higher than the corresponding threshold value. This makes it possible to suppress the heat generation of the media or the camera and suppress the stoppage of recording due to the heat generation.

S407で、CPU108は、温度条件による禁止フラグをOFFに設定する。 In S407, the CPU 108 sets the temperature condition prohibition flag to OFF.

S408で、CPU108は、カメラ温度TCがカメラ温度閾値TC_TH以上であるか否かを判定する。カメラ温度TCがカメラ温度閾値TC_TH以上である場合、処理はS406に進み、そうでない場合、処理はS407に進む。S408の処理が実行される場合(即ち、メディア温度有効下限TM_MIN以上かつメディア温度有効上限TM_MAX以下でない場合)、メディアの異常や通信の異常などの理由により、通常使用する範囲では想定されない温度情報が得られたと考えられる。従って、この場合は、メディア温度TMを用いるS405と異なり、カメラ温度TCに基づいて温度条件による禁止フラグのON/OFFが制御される。 In S408, the CPU 108 determines whether the camera temperature TC is equal to or higher than the camera temperature threshold TC_TH. If the camera temperature TC is greater than or equal to the camera temperature threshold TC_TH, the process proceeds to S406; otherwise, the process proceeds to S407. When the process of S408 is executed (that is, when it is not equal to or higher than the media temperature effective lower limit TM_MIN and not equal to or lower than the media temperature effective upper limit TM_MAX), the temperature information that is not assumed in the range of normal use is generated due to media abnormality, communication abnormality, or the like. It is considered to have been obtained. Therefore, in this case, unlike S405 using the media temperature TM, the ON/OFF of the prohibition flag depending on the temperature condition is controlled based on the camera temperature TC.

ここで、図4の各ステップの処理に関する変形例について説明する。CPU108は、S402及びS403におけるカメラ温度情報TC及びメディア温度情報TMの取得に加えて、単位系の変換処理及びオフセット調整処理などの所定の前処理を行ってもよい。 Here, a modified example regarding the processing of each step in FIG. 4 will be described. In addition to acquiring the camera temperature information TC and the media temperature information TM in S402 and S403, the CPU 108 may perform predetermined preprocessing such as unit system conversion processing and offset adjustment processing.

また、複数の温度検出部を持つ構成の場合には、全ての温度検出部から温度情報を取得する構成を採用してもよいし、一部の温度検出部のみから温度情報を取得する構成を採用してもよい。或いは、複数の温度検出部から取得した温度情報について、平均化や重み付け、最大値検出、最小値検出などの所定の演算を施す構成を最小してもよい。 In addition, in the case of a configuration having a plurality of temperature detection units, a configuration in which temperature information is acquired from all 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. may be adopted. Alternatively, the temperature information obtained from a plurality of temperature detection units may be subjected to predetermined calculations such as averaging, weighting, maximum value detection, and minimum value detection.

また、S405ではメディア温度TMを用いた判定が行われているが、CPU108は、メディア温度TMとカメラ温度TCの両方の温度情報を用いて判定を行ってもよい。例えば、メディア温度TMとメディア温度閾値TM_THの差分と、メディア温度TCとメディア温度閾値TC_THの差分の小さい方を判定基準として用いることができる。 Also, although the determination is made using the media temperature TM in S405, the CPU 108 may make the determination using temperature information of both the media temperature TM and the camera temperature TC. For example, the difference between the media temperature TM and the media temperature threshold TM_TH and the difference between the media temperature TC and the media temperature threshold TC_TH, whichever is smaller, can be used as the determination criterion.

次に、図5を参照して、図3のS304及びS309において述べた各種条件の一例である電源条件の判定について説明する。BG処理を実施することで撮像装置100は通常記録動作より電力を多く消費するため、電源の消費が早くなり、バッテリー115による駆動の場合は、撮像装置100が所望のタイミング外で電源シャットダウンする恐れがある。そのため、撮像装置100の電源の状態を判定する電源条件による禁止フラグを用いることにより、このような問題が発生する可能性を低減することができる。また、撮像装置100に接続されるバッテリー115について、CPU108では特性の判断ができない場合や、バッテリー115の残量が変化することなどを考慮して、適切にBG処理の許可・禁止を制御することが望ましい。 Next, with reference to FIG. 5, determination of the power supply condition, which is an example of various conditions described in S304 and S309 of FIG. 3, will be described. When the BG processing is performed, the imaging apparatus 100 consumes more power than the normal recording operation, so the power supply is consumed faster. There is Therefore, by using the power-condition-based prohibition flag for determining the power state of the imaging apparatus 100, the possibility of such a problem occurring can be reduced. Also, regarding the battery 115 connected to the imaging apparatus 100, the permission/inhibition of the BG processing should be properly controlled in consideration of the case where the CPU 108 cannot determine the characteristics or the change in the remaining amount of the battery 115. is desirable.

なお、図4を参照して説明した温度条件についてはメディア毎に判定結果が異なる可能性があったが、電源条件の場合はメディアに応じた判定結果の相違は発生しない。そのため、図3のS309では、電源条件の判定を省略して、S304における温度条件の判定結果を、待機カードについての温度条件の判定結果として用いてもよい。 Regarding the temperature condition described with reference to FIG. 4, there is a possibility that the determination result differs depending on the medium, but in the case of the power supply condition, there is no difference in the determination result depending on the medium. Therefore, in S309 of FIG. 3, the power condition determination may be omitted, and the temperature condition determination result in S304 may be used as the temperature condition determination result for the standby card.

最初に、S501で、CPU108は、電源部114から電源情報を取得する。電源情報は、撮像装置100の現在の駆動電源が、バッテリー115又はACアダプタ116のうちのどちらであるかを示す。 First, in S<b>501 , the CPU 108 acquires power supply information from the power supply unit 114 . The power supply information indicates which of the battery 115 and the AC adapter 116 is the current driving power supply for the imaging apparatus 100 .

S502で、CPU108は、撮像装置100の現在の駆動電源がバッテリー115であるか否かを判定する。バッテリー115の場合、処理はS503に進み、そうでない場合、処理はS507に進む。 In S<b>502 , the CPU 108 determines whether or not the current driving power source of the imaging apparatus 100 is the battery 115 . If battery 115, processing proceeds to S503, otherwise processing proceeds to S507.

S503で、CPU108は、バッテリー115の特性が既知であるか否かを判定する。例えば、CPU108は、バッテリー115から識別情報(型番など)を取得し、取得した識別情報に対応する特性情報が不揮発性メモリ113に格納されている場合に、バッテリー115の特性が既知であると判断する。バッテリー115の特性が既知である場合、処理はS504に進み、そうでない場合、処理はS507に進む。 In S503, the CPU 108 determines whether the characteristics of the battery 115 are known. For example, the CPU 108 acquires identification information (model number, etc.) from the battery 115, and determines that the characteristics of the battery 115 are known when characteristic information corresponding to the acquired identification information is stored in the nonvolatile memory 113. do. If the characteristics of the battery 115 are known, the process proceeds to S504; otherwise, the process proceeds to S507.

S504で、CPU108は、バッテリー115の電圧が、予め設定された閾値以上(第3の閾値以上)であるか否かを判定する。電圧が閾値以上の場合、つまり、バッテリー115の残量が予め設定された閾値以上で十分ある場合は、処理はS506に進む。そして、電圧が閾値未満の場合、つまり、バッテリー115の残量が予め設定された閾値未満で、バッテリー残量が低下している場合は、処理はS505に進む。なお、ここで使用する閾値は、バッテリー115の特性に応じて変化してもよい。 In S504, the CPU 108 determines whether or not the voltage of the battery 115 is greater than or equal to a preset threshold value (ie, greater than or equal to a third threshold value). If the voltage is equal to or higher than the threshold, that is, if the remaining amount of the battery 115 is equal to or higher than the preset threshold and is sufficient, the process proceeds to S506. Then, if the voltage is less than the threshold, that is, if the remaining amount of the battery 115 is less than the preset threshold and the remaining battery amount is low, the process proceeds to S505. Note that the threshold used here may change according to the characteristics of the battery 115 .

S505で、CPU108は、電源条件による禁止フラグをONに設定する。即ち、CPU108は、現在の駆動電源であるバッテリー115の電圧が閾値以上でない場合に電源条件による禁止フラグをONに設定することにより、BG処理の実行を禁止するように制御する。これにより、BG処理によるバッテリー115の残量低下を抑制し、バッテリー115の残量不足による記録の停止を抑制することが可能となる。 In S505, the CPU 108 sets the power condition prohibition flag to ON. That is, when the voltage of the battery 115, which is the current driving power source, is not equal to or higher than the threshold value, the CPU 108 controls to prohibit execution of the BG process by setting the power condition prohibition flag to ON. As a result, it is possible to suppress the decrease in the remaining amount of the battery 115 due to the BG processing, and to suppress the stoppage of recording due to the shortage of the remaining amount of the battery 115 .

S506で、CPU108は、電源条件による禁止フラグをOFFに設定する。 In S506, the CPU 108 sets the power condition prohibition flag to OFF.

S502において現在の駆動電源がバッテリー115でないと判定された場合、及びS503においてバッテリー115の特性が既知でないと判定された場合、S507で、CPU108は、電源条件による禁止フラグをOFFに設定する。 If it is determined in S502 that the current drive power source is not the battery 115, and if it is determined in S503 that the characteristics of the battery 115 are unknown, in S507 the CPU 108 sets the power condition prohibition flag to OFF.

図5フローチャートでは、駆動電源がバッテリーであり、かつ、バッテリー115の電圧が閾値未満の場合に、禁止フラグをONに設定し、BG処理を禁止するようにした。しかし、電圧によるバッテリー115の残量を判定せずに、バッテリー駆動の場合には常にBG処理を禁止するようにしてもよい。また、駆動電源がバッテリー115のみの場合は、駆動電源の種別を判定せずに、電圧によるバッテリー115の残量に応じて、BG処理の許可・禁止を制御するようにしてもよい。 In the flowchart of FIG. 5, when the drive power source is a battery and the voltage of the battery 115 is less than the threshold, the prohibition flag is set to ON to prohibit the BG process. However, the BG process may be always prohibited in the case of battery drive without determining the remaining amount of the battery 115 based on the voltage. Further, when the driving power supply is only the battery 115, the permission/inhibition of the BG processing may be controlled according to the remaining amount of the battery 115 based on the voltage without judging the type of the driving power supply.

次に、図6を参照して、図3のS304及びS309において述べた各種条件の一例である残バッファ量/遅延時間条件の判定について説明する。動画記録のようにリアルタイム生成されるデータを定期的に長時間記録するような場合、撮像装置100は、NAND型フラッシュメモリで構成されたメディアに対してリアルタイムデータを書き込む前に、バッファメモリに一時的に記録する。バッファメモリとしては、例えばRAM112が用いられる。所定量のリアルタイムデータがバッファメモリに記録されたところで、メディアへの記録が実行される。この時、メディア内部でBG処理が実行されていて、リアルタイムデータの記録であるメイン処理が滞ると、バッファメモリ残容量(残バッファ量)がなくなってしまい、リアルタイムデータを消失してしまう。また、メディア内部で実行されていたBG処理からメイン処理であるリアルタイムデータの記録へ遷移する際には遅延時間が発生する。この遅延時間がリアルタイムデータの書き込みに必要な時間に対して長い場合はリアルタイムデータの記録が間に合わず、リアルタイムデータを消失してしまう。そのため、RAM112のバッファメモリ容量を使い切ることなく、かつ、十分な書き込み速度を保てるようにBG処理の許可・禁止を制御する必要がある。 Next, determination of remaining buffer amount/delay time condition, which is an example of various conditions described in S304 and S309 of FIG. 3, will be described with reference to FIG. When data that is generated in real time is regularly recorded for a long period of time, such as when recording a moving image, the imaging apparatus 100 temporarily stores data in a buffer memory before writing real time data to a medium made up of a NAND flash memory. to be recorded. For example, the RAM 112 is used as the buffer memory. When a predetermined amount of real-time data has been recorded in the buffer memory, recording to the media is executed. At this time, BG processing is being executed inside the medium, and if the main processing for recording real-time data is delayed, the remaining capacity of the buffer memory (remaining buffer capacity) will be exhausted, and the real-time data will be lost. In addition, a delay time occurs when the BG processing executed inside the medium transitions to the recording of real-time data, which is the main processing. If this delay time is longer than the time required to write the real-time data, the real-time data will not be recorded in time and the real-time data will be lost. Therefore, it is necessary to control permission/inhibition of BG processing so as not to use up the buffer memory capacity of the RAM 112 and to maintain a sufficient writing speed.

S601で、CPU108は、記録対象カードから遅延時間を取得する。S602で、CPU108は、撮像装置100の残バッファ量を取得する。 In S601, the CPU 108 acquires the delay time from the recording target card. In S<b>602 , the CPU 108 acquires the remaining buffer amount of the imaging device 100 .

S603で、CPU108は、遅延時間が予め定められた閾値以上(第5の閾値以上)であるか否かを判定する。遅延時間が閾値以上である場合、処理はS604に進み、そうでない場合、処理はS606に進む。なお、ここで使用する閾値は、動画の記録ビットレートに応じて変化してもよい。 In S603, the CPU 108 determines whether or not the delay time is equal to or greater than a predetermined threshold (greater than or equal to a fifth threshold). If the delay time is greater than or equal to the threshold, the process proceeds to S604; otherwise, the process proceeds to S606. Note that the threshold used here may change according to the recording bit rate of the moving image.

S604で、CPU108は、残バッファ量が予め定められた閾値未満(第4の閾値未満)であるか否かを判定する。残バッファ量が閾値未満である場合、処理はS605に進み、そうでない場合、処理はS606に進む。なお、ここで使用する閾値は、動画の記録ビットレートに応じて変化してもよい。 In S604, the CPU 108 determines whether or not the remaining buffer amount is less than a predetermined threshold (less than a fourth threshold). If the remaining buffer amount is less than the threshold, the process proceeds to S605; otherwise, the process proceeds to S606. Note that the threshold used here may change according to the recording bit rate of the moving image.

S605で、CPU108は、残バッファ量/遅延時間条件による禁止フラグをONに設定する。即ち、CPU108は、遅延時間が閾値以上であり残バッファ量が閾値未満である場合に残バッファ量/遅延時間条件による禁止フラグをONに設定することにより、BG処理の実行を禁止するように制御する。これにより、データを記録するメイン処理がBG処理により妨げられることが原因で記録すべき動画のリアルタイムデータが消失することを抑制することが可能となる。 In S605, the CPU 108 sets ON a prohibition flag based on the remaining buffer amount/delay time condition. That is, when the delay time is equal to or greater than the threshold value and the remaining buffer amount is less than the threshold value, the CPU 108 controls to prohibit execution of the BG processing by setting the prohibition flag based on the remaining buffer amount/delay time condition to ON. do. As a result, it is possible to prevent the real-time data of moving images to be recorded from being lost due to the main processing of recording data being interrupted by the BG processing.

一方、S606では、CPU108は、残バッファ量/遅延時間条件による禁止フラグをOFFに設定する。 On the other hand, in S606, the CPU 108 sets the prohibition flag based on the remaining buffer amount/delay time condition to OFF.

ところで、図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 judgment regarding both the remaining buffer amount and the delay time. However, even if the remaining buffer amount/delay time condition is divided into the remaining buffer amount condition and the delay time condition, and a "prohibition flag based on the remaining buffer amount condition" and a "prohibition flag based on the delay time condition" corresponding to each are provided. good. That is, examples of the various conditions described in S304 and S309 of FIG. 3 also include the remaining buffer amount condition and the delay time condition.

図7は、図3のS304及びS309において述べた各種条件の一例である残バッファ量条件の判定について説明するフローチャートである。 FIG. 7 is a flowchart for explaining determination of the remaining buffer amount condition, which is an example of various conditions described in S304 and S309 of FIG.

S701で、CPU108は、撮像装置100の残バッファ量を取得する。S702で、CPU108は、残バッファ量が予め定められた閾値未満であるか否かを判定する。残バッファ量が閾値未満である場合、S703で、CPU108は、残バッファ量条件による禁止フラグをONに設定する。残バッファ量が閾値未満でない場合、S704で、CPU108は、残バッファ量条件による禁止フラグをOFFに設定する。 In S<b>701 , the CPU 108 acquires the remaining buffer amount of the imaging device 100 . In S702, the CPU 108 determines whether or not the remaining buffer amount is less than a predetermined threshold. If the remaining buffer amount is less than the threshold, in S703, the CPU 108 sets the prohibition flag based on the remaining buffer amount condition to ON. If the remaining buffer amount is not less than the threshold, in S704, the CPU 108 sets the prohibition flag based on the remaining buffer amount condition to OFF.

図8は、図3のS304及びS309において述べた各種条件の一例である遅延時間条件の判定について説明するフローチャートである。 FIG. 8 is a flowchart for explaining determination of the delay time condition, which is an example of various conditions described in S304 and S309 of FIG.

S801で、CPU108は、記録対象カードから遅延時間を取得する。S802で、CPU108は、遅延時間が予め定められた閾値以上であるか否かを判定する。遅延時間が閾値以上である場合、S803で、CPU108は、遅延時間条件による禁止フラグをONに設定する。遅延時間が閾値以上でない場合、S804で、CPU108は、遅延時間条件による禁止フラグをOFFに設定する。 In S801, the CPU 108 acquires the delay time from the recording target card. In S802, the CPU 108 determines whether or not the delay time is equal to or greater than a predetermined threshold. If the delay time is equal to or greater than the threshold, in S803, the CPU 108 sets the prohibition flag based on the delay time condition to ON. If the delay time is not equal to or greater than the threshold, in S804, the CPU 108 sets the prohibition flag based on the delay time condition to OFF.

以上説明したように、第1の実施形態によれば、撮像装置100は、記録対象カードに静止画又は動画を記録するように制御する記録制御を行う。撮像装置100は、記録対象カードに静止画を記録する場合は、省電期間における自動バックグラウンド処理の実行を許可する。一方、撮像装置100は、記録対象カードに動画を記録する場合は、省電期間における自動バックグラウンド処理の実行を許可しないように制御する。これにより、記録媒体での省電期間における自動バックグラウンド処理の実行を許可するか否かを適切に制御することが可能となり、高速静止画記録と安定した動画記録とを両立することが可能とする。 As described above, according to the first embodiment, the imaging device 100 performs recording control to record a still image or a moving image on a recording target card. The imaging device 100 permits execution of automatic background processing during the power saving period when recording a still image on the recording target card. On the other hand, the imaging apparatus 100 performs control so as not to permit execution of automatic background processing during the power saving period when recording a moving image on the recording target card. As a result, it becomes possible to appropriately control whether or not to permit the execution of automatic background processing during power-saving periods on the recording medium, making it possible to achieve both high-speed still image recording and stable video recording. do.

なお、上では、動画記録時に、自動BG処理の許可・禁止を制御(BG処理許可コマンド/BG処理禁止コマンドの送信)するものとした。しかし、記録開始前(撮影待機状態時や、動画撮影/静止画撮影モード切替時など)に、動画撮影モードであるかを静止画撮影モードであるかを判定し、動画撮影モードの場合は自動BG処理の実行を許可せず、静止画撮影モードの場合は自動BG処理の実行を許可するようにしてもよい。この場合、動画撮影モードの場合は、動画記録開始前に一度自動BG処理の実行を禁止する。そして、さらに、動画記録開始時及び記録中に、上で説明した各種条件(温度、電源種別、電源の残量、遅延時間、バッファ残量等)に応じて、自動BG処理の実行を許可するか否かを制御するようにするとよい。 In the above description, permission/inhibition of automatic BG processing is controlled (transmission of BG processing permission command/BG processing prohibition command) during moving image recording. However, before recording starts (during shooting standby, switching between movie shooting and still image shooting modes, etc.), it is determined whether the camera is in movie shooting mode or still image shooting mode. Execution of the BG processing may not be permitted, and execution of the automatic BG processing may be permitted in the case of the still image shooting mode. In this case, in the moving image shooting mode, execution of automatic BG processing is prohibited once before starting moving image recording. Further, at the start of moving image recording and during recording, execution of automatic BG processing is permitted according to the various conditions described above (temperature, power supply type, remaining power supply, delay time, remaining buffer capacity, etc.). It is preferable to control whether or not

また、上の実施形態では、動画記録であるか否かという条件と、温度、電源、遅延時間、バッファ残量の各種条件とにより、BG処理の許可・禁止を制御した。しかし、これらのうちの1つの条件のみを用いてBG処理の許可・禁止を制御するようにしてもよい。また、これらの条件のうちのいくつかの条件を組み合わせて、BG処理の許可・禁止を制御するようにしてもよい。 Further, in the above embodiment, the permission/inhibition of BG processing is controlled based on the condition of moving image recording and various conditions such as temperature, power supply, delay time, and remaining buffer capacity. However, permission/prohibition of BG processing may be controlled using only one of these conditions. Further, permission/inhibition of BG processing may be controlled by combining some of these conditions.

また、上では、待機カードについても、各種条件の判定結果に応じてBG処理の実行の許可・禁止を制御するものとした。しかし、待機カードについては、画像の記録を行わない記録媒体であるため、各種条件の判定を行わずに、BG処理の実行を許可するようにしてもよい。また、待機カードだけでなく、記録対象カードについても各種条件の判定を行わずに、記録対象カードについてはBG処理の実行を禁止し、待機カードについては、BG処理の実行を許可するようにしてもよい。 In the above description, permission/inhibition of execution of BG processing is controlled according to the determination results of various conditions also for the standby card. However, since the standby card is a recording medium on which no image is recorded, execution of BG processing may be permitted without determining various conditions. Further, the execution of the BG process is prohibited for the card to be recorded, and the execution of the BG process is permitted for the card to be recorded, without judging various conditions not only for the standby card but also for the card to be recorded. good too.

また、上では、動画の記録時に、記録対象カードと待機カードについて、BG処理の実行の許可・禁止を制御するものとした。しかし、動画の記録時ではなく、記録開始前(例えば、記録待機時、記録先となるカードの選択時)に、BG処理の実行の許可・禁止を制御するようにしてもよい。 Also, in the above description, permission/inhibition of execution of BG processing is controlled for a recording target card and a standby card when recording a moving image. However, permission/inhibition of execution of the BG processing may be controlled not when recording a moving image but before recording is started (for example, when waiting for recording or when selecting a card to be a recording destination).

また、撮像装置100は、記録対象カードに動画を記録する場合であっても、各種条件の判定結果によってはBG処理の実行を許可するように制御する。これにより、NAND型フラッシュメモリの最適化処理と安定した動画記録とを両立することが可能となる。 Further, even when recording a moving image on a recording target card, the imaging apparatus 100 performs control so as to permit the execution of BG processing depending on the determination result of various conditions. This makes it possible to achieve both optimization processing of the NAND flash memory and stable moving image recording.

なお、上では、静止画を記録するか動画を記録するかに基づいてBG処理の許可・禁止を制御する構成について説明したが、他の動作モードを基準にBG処理の許可・禁止を制御してもよい。例えば、長時間露出撮影モード、ハイフレーム撮影モード、タイムラプス撮影モードなどの動作モードに応じてBG処理の許可・禁止を制御してもよい。この場合、例えば、タイムラプス撮影モード等の低ビットレートの撮影モードの場合は、静止画撮影と同様にBG処理を許可し、ハイフレーム撮影モードなどの高ビットレートの撮影モードの場合は、BG処理を禁止するとよい。 In the above description, the configuration for controlling permission/prohibition of BG processing based on whether to record a still image or a moving image has been described. may For example, permission/inhibition of BG processing may be controlled according to operation modes such as long-exposure shooting mode, high-frame shooting mode, and 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 in the same manner as in still-image shooting, and in the case of a high-bit-rate shooting mode such as a high-frame shooting mode, BG processing is permitted. should be prohibited.

また、上では、静止画を記録する場合はBG処理を許可する構成について説明したが、静止画を記録する場合であっても、動画を記録する場合と同様に各種条件の判定結果によってはBG処理を禁止してもよい。 In the above description, the BG processing is permitted when recording a still image. processing may be prohibited.

また、図5の例では、現在の駆動電源がバッテリー115でないと判定された場合、及びバッテリー115の特性が既知でないと判定された場合のいずれについても、電源条件による禁止フラグがOFFに設定された。しかしながら、バッテリー115の特性が既知でない場合には電源条件による禁止フラグをONにする構成を採用してもよい。 In addition, in the example of FIG. 5, the prohibition flag based on the power supply condition is set to OFF when it is determined that the current drive power source is not the battery 115 and when it is determined that the characteristics of the battery 115 are not known. Ta. However, if the characteristics of the battery 115 are not known, a configuration may be adopted in which the prohibition flag based on the power supply condition is turned ON.

[その他の実施形態]
本発明は、上述の実施形態の1以上の機能を実現するプログラムを、ネットワーク又は記憶媒体を介してシステム又は装置に供給し、そのシステム又は装置のコンピュータにおける1つ以上のプロセッサーがプログラムを読出し実行する処理でも実現可能である。また、1以上の機能を実現する回路(例えば、ASIC)によっても実現可能である。
[Other embodiments]
The present invention supplies a program that implements one or more functions of the above-described embodiments to a system or device via a network or a storage medium, and one or more processors in the computer of the system or device reads and executes the program. It can also be realized by processing to It can also be implemented by a circuit (for example, ASIC) that implements one or more functions.

発明は上記実施形態に制限されるものではなく、発明の精神及び範囲から離脱することなく、様々な変更及び変形が可能である。従って、発明の範囲を公にするために請求項を添付する。 The invention is not limited to the embodiments described above, and various modifications and variations are possible without departing from the spirit and scope of the invention. Accordingly, the claims are appended to make public the scope of the invention.

100…撮像装置、CPU108…、110…第1のメディア制御部、111…第2のメディア制御部、112…RAM、113…不揮発性メモリ、150…第1の記録メディア、160…第2の記録メディア DESCRIPTION OF SYMBOLS 100... Imaging apparatus, CPU108..., 110... 1st media control part, 111... 2nd media control part, 112... RAM, 113... Non-volatile memory, 150... 1st recording medium, 160... 2nd recording media

Claims (19)

第1の記録媒体に静止画又は動画を記録するように制御する記録制御手段と、
前記第1の記録媒体での、省電期間における自動バックグラウンド処理の実行を許可するか否かを制御する制御手段と、
を備え、
前記制御手段は、前記第1の記録媒体に前記静止画を記録する場合は、前記省電期間における前記自動バックグラウンド処理の実行を許可し、前記第1の記録媒体に前記動画を記録する場合は、前記省電期間における前記自動バックグラウンド処理の実行を許可しないように制御する
ことを特徴とする記録装置。
recording control means for controlling recording of still images or moving images on the first recording medium;
control means for controlling whether or not to permit execution of automatic background processing in the power saving period in the first recording medium;
with
The control means permits execution of the automatic background processing during the power saving period when recording the still image on the first recording medium, and when recording the moving image on the first recording medium. controls not to permit execution of the automatic background processing during the power saving period.
前記制御手段は、前記第1の記録媒体に前記動画を記録する場合であっても、第1の条件が満たされていない場合には、前記省電期間における前記自動バックグラウンド処理の実行を許可するように制御する
ことを特徴とする請求項1に記載の記録装置。
The control means permits execution of the automatic background process during the power saving period if a first condition is not satisfied even when the moving image is recorded on the first recording medium. 2. The recording apparatus according to claim 1, wherein control is performed so as to
前記第1の条件が満たされていない場合は、前記第1の記録媒体の温度が第1の閾値未満である場合である、
ことを特徴とする請求項2に記載の記録装置。
if the first condition is not met, the temperature of the first recording medium is less than a first threshold;
3. The recording apparatus according to claim 2, wherein:
前記第1の閾値は、前記記録装置の動作モード、又は前記動画の記録ビットレートに応じて変化する
ことを特徴とする請求項3に記載の記録装置。
4. The recording apparatus according to claim 3, wherein the first threshold varies according to an operation mode of the recording apparatus or a recording bit rate of the moving image.
前記第1の条件が満たされていない場合は、前記記録装置の温度が第2の閾値未満である場合である、
ことを特徴とする請求項2に記載の記録装置。
if the first condition is not met, the temperature of the recording device is less than a second threshold;
3. The recording apparatus according to claim 2, wherein:
前記第1の条件が満たされていない場合は、前記第1の記録媒体の温度が所定の範囲内に含まれず、かつ、前記記録装置の温度が第2の閾値未満である場合である、
ことを特徴とする請求項2に記載の記録装置。
When the first condition is not satisfied, the temperature of the first recording medium is not within a predetermined range and the temperature of the recording device is less than a second threshold.
3. The recording apparatus according to claim 2, wherein:
前記第1の条件が満たされていない場合は、前記記録装置の電源がバッテリーでない場合である、
ことを特徴とする請求項2乃至6のいずれか1項に記載の記録装置。
If the first condition is not satisfied, the power source of the recording device is not a battery.
7. The recording apparatus according to any one of claims 2 to 6, characterized in that:
前記第1の条件が満たされていない場合は、前記記録装置の電源がバッテリーであり、かつ前記バッテリーの電圧が第3の閾値以上である場合である、
ことを特徴とする請求項2乃至6のいずれか1項に記載の記録装置。
When the first condition is not satisfied, the power source of the recording device is a battery, and the voltage of the battery is equal to or higher than a third threshold.
7. The recording apparatus according to any one of claims 2 to 6, characterized in that:
前記第3の閾値は、前記バッテリーの特性に応じて変化する
ことを特徴とする請求項8に記載の記録装置。
9. The recording apparatus according to claim 8, wherein said third threshold varies according to characteristics of said battery.
前記記録制御手段は、前記第1の記録媒体に前記動画を記録する場合、前記動画を一時的にバッファメモリに格納してから前記第1の記録媒体に記録するように制御し、
前記第1の条件が満たされていない場合は、前記バッファメモリの残り容量が第4の閾値以上である場合である、
ことを特徴とする請求項2乃至9のいずれか1項に記載の記録装置。
When recording the moving image on the first recording medium, the recording control means controls such that the moving image is temporarily stored in a buffer memory before being recorded on the first recording medium;
if the first condition is not satisfied, the remaining capacity of the buffer memory is equal to or greater than a fourth threshold;
10. The recording apparatus according to any one of claims 2 to 9, characterized in that:
前記第4の閾値は、前記動画の記録ビットレートに応じて変化する
ことを特徴とする請求項10に記載の記録装置。
11. The recording apparatus according to claim 10, wherein said fourth threshold varies according to a recording bit rate of said moving image.
前記第1の記録媒体から、前記第1の記録媒体において実行される処理が前記自動バックグラウンド処理からデータを記録するメイン処理へと遷移する際に発生する遅延時間を取得する取得手段を更に備え、
前記第1の条件が満たされていない場合は、前記遅延時間が第5の閾値未満である場合である、
ことを特徴とする請求項2乃至11のいずれか1項に記載の記録装置。
further comprising acquisition means for acquiring, from the first recording medium, a delay time that occurs when the process executed in the first recording medium transitions from the automatic background process to the main process of recording data. ,
if the first condition is not met, the delay time is less than a fifth threshold;
12. The recording apparatus according to any one of claims 2 to 11, characterized in that:
前記第5の閾値は、前記動画の記録ビットレートに応じて変化する
ことを特徴とする請求項12に記載の記録装置。
13. The recording apparatus according to claim 12, wherein said fifth threshold varies according to a recording bit rate of said moving image.
前記記録制御手段は、前記第1の記録媒体に前記動画を記録する場合に前記第1の記録媒体の残り容量が第6の閾値未満であるか否かを判定し、前記第1の記録媒体の前記残り容量が前記第6の閾値未満であると判定された場合、前記動画の記録先を第2の記録媒体に変更するように制御し、
前記制御手段は、前記第1の記録媒体が前記動画の記録先である場合において、第2の条件が満たされていない場合には、前記第2の記録媒体での、省電期間における自動バックグラウンド処理の実行を許可するように制御し、前記第2の条件が満たされている場合には、前記第2の記録媒体での、前記省電期間における前記自動バックグラウンド処理の実行を許可しないように制御する
ことを特徴とする請求項1乃至13のいずれか1項に記載の記録装置。
The recording control means determines whether or not the remaining capacity of the first recording medium is less than a sixth threshold when recording the moving image on the first recording medium. when it is determined that the remaining capacity of is less than the sixth threshold, controlling to change the recording destination of the moving image to a second recording medium;
When the first recording medium is the recording destination of the moving image and the second condition is not satisfied, the control means performs automatic backup during the power saving period on the second recording medium. control to permit the execution of the background processing, and when the second condition is satisfied, the execution of the automatic background processing in the power saving period on the second recording medium is not permitted 14. The recording apparatus according to any one of claims 1 to 13, wherein control is performed such that:
前記第2の条件が満たされていない場合は、前記第2の記録媒体の温度が第7の閾値未満である場合である、
ことを特徴とする請求項14に記載の記録装置。
if the second condition is not met, the temperature of the second recording medium is less than a seventh threshold;
15. The recording apparatus according to claim 14, characterized by:
前記制御手段は、自動バックグラウンド処理の実行を許可するか否かを、NVM Express規格のNOPPME(Non-Operational Power State Permissive Mode Enable)コマンドを用いて制御する
ことを特徴とする請求項1乃至15のいずれか1項に記載の記録装置。
15. The control means controls whether or not to permit the execution of automatic background processing using a NOPPME (Non-Operational Power State Permissive Mode Enable) command of NVM Express standards. The recording device according to any one of 1.
請求項1乃至16のいずれか1項に記載の記録装置と、
前記静止画又は前記動画を生成する撮像手段と、
を備えることを特徴とする撮像装置。
a recording apparatus according to any one of claims 1 to 16;
imaging means for generating the still image or the moving image;
An imaging device comprising:
記録装置が実行する制御方法であって、
第1の記録媒体に静止画又は動画を記録するように制御する記録制御工程と、
前記第1の記録媒体での、省電期間における自動バックグラウンド処理の実行を許可するか否かを制御する制御工程と、
を備え、
前記制御工程では、前記第1の記録媒体に前記静止画を記録する場合は、前記省電期間における前記自動バックグラウンド処理の実行を許可し、前記第1の記録媒体に前記動画を記録する場合は、前記省電期間における前記自動バックグラウンド処理の実行を許可しないように制御する
ことを特徴とする制御方法。
A control method executed by a recording device,
a recording control step of controlling to record a still image or moving image on the first recording medium;
a control step of controlling whether or not to permit execution of automatic background processing in the power saving period in the first recording medium;
with
In the control step, when recording the still image on the first recording medium, execution of the automatic background process is permitted during the power saving period, and when recording the moving image on the first recording medium. controls not to permit execution of the automatic background process during the power saving period.
コンピュータを、請求項1乃至16のいずれか1項に記載の記録装置の各手段として機能させるためのプログラム。 A program for causing a computer to function as each means of the recording apparatus according to any one of claims 1 to 16.
JP2019158932A 2019-08-30 2019-08-30 Recording device, imaging device, control method, and program Active JP7339815B2 (en)

Priority Applications (4)

Application Number Priority Date Filing Date Title
JP2019158932A JP7339815B2 (en) 2019-08-30 2019-08-30 Recording device, imaging 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
JP2019158932A JP7339815B2 (en) 2019-08-30 2019-08-30 Recording device, imaging device, control method, and program

Publications (2)

Publication Number Publication Date
JP2021040192A JP2021040192A (en) 2021-03-11
JP7339815B2 true JP7339815B2 (en) 2023-09-06

Family

ID=74848771

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2019158932A Active JP7339815B2 (en) 2019-08-30 2019-08-30 Recording device, imaging device, control method, and program

Country Status (1)

Country Link
JP (1) JP7339815B2 (en)

Citations (5)

* Cited by examiner, † Cited by third party
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
US20090319720A1 (en) 2008-06-20 2009-12-24 Seagate Technology Llc System and method of garbage collection in a memory device
JP2016045563A (en) 2014-08-20 2016-04-04 株式会社東芝 NAND background processing control device
JP2018011180A (en) 2016-07-13 2018-01-18 キヤノン株式会社 Imaging apparatus and control method thereof
JP2018085658A (en) 2016-11-25 2018-05-31 キヤノン株式会社 Imaging apparatus

Patent Citations (5)

* Cited by examiner, † Cited by third party
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
US20090319720A1 (en) 2008-06-20 2009-12-24 Seagate Technology Llc System and method of garbage collection in a memory device
JP2016045563A (en) 2014-08-20 2016-04-04 株式会社東芝 NAND background processing control device
JP2018011180A (en) 2016-07-13 2018-01-18 キヤノン株式会社 Imaging apparatus and control method thereof
JP2018085658A (en) 2016-11-25 2018-05-31 キヤノン株式会社 Imaging apparatus

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
NVM Express Base Specification,Revision 1.4,2019年06月10日,p.222,インターネット <URL : https://nvmexpress.org/wp-content/uploads/NVM-Express-1_4-2019.06.10-Ratified.pdf>

Also Published As

Publication number Publication date
JP2021040192A (en) 2021-03-11

Similar Documents

Publication Publication Date Title
CN101211212B (en) Apparatus and methodfor processing information
US9032235B2 (en) Semiconductor storage device and method for controlling the semiconductor storage device
JP5014344B2 (en) MEMORY CONTROLLER, NONVOLATILE STORAGE DEVICE, ACCESS DEVICE, AND NONVOLATILE STORAGE SYSTEM
US7478260B2 (en) System and method for setting a clock rate in a memory card
TW201712528A (en) Method, memory module, and host device for managing operational state data
US20160350025A1 (en) Data storage device
KR20170033227A (en) Solid state memory system with power management mechanism and method of operation thereof
KR20180064198A (en) Data storage device and operating method thereof
US8572307B2 (en) Memory controller, memory card, and nonvolatile memory system
JP5003421B2 (en) Image processing device
JP6137980B2 (en) Recording apparatus and control method thereof
CN112449091B (en) Recording apparatus, image pickup apparatus, control method, and storage medium
CN101221513B (en) Equipment and method for processing information
JP7339815B2 (en) Recording device, imaging device, control method, and program
US8077221B2 (en) Image capturing apparatus and control method therefor with determination whether storage medium is limited-rewriteable storage medium
JP2016009280A (en) Recording device
JP7418105B2 (en) Recording device, control method, and program
JP2015231169A (en) Imaging apparatus
JP6326799B2 (en) Electronics
JP2015015065A (en) Recording device
US11570395B2 (en) Recording and reproducing apparatus and method of controlling recording and reproducing apparatus
EP3829157B1 (en) Recording apparatus, method of controlling recording apparatus, and storage medium
JP2005057460A (en) Video and audio signal recording device
JP2004328037A (en) Imaging and image recording apparatus
JP2021157561A (en) Recording device and control method therefor

Legal Events

Date Code Title Description
RD01 Notification of change of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7421

Effective date: 20210103

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20210113

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20220802

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20230707

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20230825

R151 Written notification of patent or utility model registration

Ref document number: 7339815

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151