JP6598555B2 - RECORDING CONTROL DEVICE, RECORDING CONTROL METHOD, AND PROGRAM - Google Patents

RECORDING CONTROL DEVICE, RECORDING CONTROL METHOD, AND PROGRAM Download PDF

Info

Publication number
JP6598555B2
JP6598555B2 JP2015150516A JP2015150516A JP6598555B2 JP 6598555 B2 JP6598555 B2 JP 6598555B2 JP 2015150516 A JP2015150516 A JP 2015150516A JP 2015150516 A JP2015150516 A JP 2015150516A JP 6598555 B2 JP6598555 B2 JP 6598555B2
Authority
JP
Japan
Prior art keywords
recording
recording control
power supply
unit
communication
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
JP2015150516A
Other languages
Japanese (ja)
Other versions
JP2017033145A (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 JP2015150516A priority Critical patent/JP6598555B2/en
Publication of JP2017033145A publication Critical patent/JP2017033145A/en
Application granted granted Critical
Publication of JP6598555B2 publication Critical patent/JP6598555B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Power Sources (AREA)

Description

本発明は有線による給電で動作する装置の記録動作を制御する技術に関する。   The present invention relates to a technique for controlling a recording operation of a device that operates by wired power feeding.

ネットワーク経由で画像データを外部に配信する監視カメラは、ネットワークの異常等によって画像の送信が行えない場合や、イベントを検知した場合に、不揮発性の記録媒体に画像を保存する機能を有することが一般的である。特に、SD(Secure Digital)メモリカードは大容量化と記録速度の向上が進んでおり、大容量の画像データをSDメモリカードに保持することが可能になってきた。   A surveillance camera that distributes image data to the outside via a network may have a function of saving an image on a non-volatile recording medium when an image cannot be transmitted due to a network abnormality or an event is detected. It is common. In particular, SD (Secure Digital) memory cards have been increased in capacity and improved in recording speed, and large-capacity image data can be held in the SD memory card.

また、監視カメラはPoE(Power over Ethernet(登録商標))やPoE+等の方式を用いて、ネットワークケーブルによって給電がなされるケースも一般的である。このような監視カメラにおいて、不揮発性記録媒体への記録処理が行われている最中にネットワークケーブルが抜かれた場合、シャットダウン処理(記録終了処理)が行われること無く電力の供給が絶たれてしまうことがある。不揮発性記録媒体への記録処理の最中にシャットダウン処理が行われず電力の供給が絶たれてしまうと、タイミングによってはファイルシステムが壊れてしまうこともある。   Moreover, the surveillance camera is generally supplied with power by a network cable using a method such as PoE (Power over Ethernet (registered trademark)) or PoE +. In such a surveillance camera, if the network cable is disconnected while the recording process to the nonvolatile recording medium is being performed, the power supply is cut off without performing the shutdown process (recording end process). Sometimes. If the shutdown process is not performed during the recording process to the nonvolatile recording medium and the power supply is cut off, the file system may be damaged depending on the timing.

この問題を解決するために、特許文献1には、商用電源からの電力供給が絶たれたときに、PoE方式で供給される電力でHDD(Hard Disk Drive)の終了処理を行う、という技術が記載されている。また、特許文献2には、AC電源とは別にHDDのみをバックアップする電源を設け、電源の瞬断を検出した際にHDDの破壊を防止する、という技術も知られている。   In order to solve this problem, Patent Document 1 discloses a technique in which when a power supply from a commercial power supply is cut off, an HDD (Hard Disk Drive) termination process is performed with power supplied by the PoE method. Are listed. Japanese Patent Application Laid-Open No. 2004-228561 also discloses a technique of providing a power source for backing up only the HDD separately from the AC power source, and preventing destruction of the HDD when a momentary power interruption is detected.

特開2012−39470号公報JP 2012-39470 A 特開2009−76155号公報JP 2009-76155 A

しかしながら、上述の特許文献1に開示された従来技術では、PoEやPoE+方式による給電とは別に商用電源が必要である。よって、商用電源を用意できない環境で使用される機器に対しては、不揮発メモリのデータが適切に記録されない可能性があるという問題がある。また、上述の特許文献2に開示された従来技術では、HDDをバックアップする電源が必要となる。   However, in the prior art disclosed in Patent Document 1 described above, a commercial power source is required separately from the power supply by the PoE or PoE + system. Therefore, there is a problem that data in the nonvolatile memory may not be properly recorded for a device used in an environment where a commercial power supply cannot be prepared. Further, in the conventional technique disclosed in Patent Document 2 described above, a power source for backing up the HDD is required.

そこで、本発明の目的は、電力供給が止まっても、適切にデータの記録を終了させることが可能な技術を提供することである。   Accordingly, an object of the present invention is to provide a technique capable of appropriately ending data recording even when power supply is stopped.

上記課題を解決するための一手段として、本発明の記録制御装置は以下の構成を備える。すなわち、記録制御装置であって、通信ケーブルで外部と通信可能な通信手段と、前記通信ケーブルと、前記通信ケーブル以外のケーブルとの少なくともいずれかで電力供給を受けることが可能な電源回路と、前記電源回路による電力供給で動作し、データを記録手段に記録する記録制御手段とを備え、前記通信手段と前記外部との通信リンクが確立している状態から確立していない状態になったときに、前記記録手段にデータを記録する処理を開始するかを前記記録制御装置に設定可能であり、前記記録制御手段は、前記通信手段と前記外部との通信リンクが確立している状態から確立していない状態になり、かつ、前記記録手段にデータを記録する処理を開始する設定ではない場合に、記録終了処理を行う。 As a means for solving the above problems, a recording control apparatus of the present invention has the following configuration. That is, the recording control apparatus, a communication unit capable of communicating with the outside via a communication cable, a power supply circuit capable of receiving power supply by at least one of the communication cable and a cable other than the communication cable, A recording control unit that operates by power supply by the power supply circuit and records data in a recording unit, and when a communication link between the communication unit and the outside has been established; In addition, it is possible to set in the recording control device whether to start processing for recording data in the recording means, and the recording control means is established from a state in which a communication link between the communication means and the outside is established. The recording end process is performed when it is not set and the setting for starting the process of recording data in the recording means is not set.

本発明によれば、電力供給が止まっても、適切にデータの記録を終了させることができる。   According to the present invention, data recording can be appropriately terminated even when power supply is stopped.

本発明の第1実施形態における記録制御装置を有する撮像装置を示す機能ブロック図である。It is a functional block diagram showing an imaging device having a recording control device in the first embodiment of the present invention. 本発明の各実施形態における記録処理について説明するためのフローチャートである。It is a flowchart for demonstrating the recording process in each embodiment of this invention. 本発明の各実施形態におけるデータの管理情報について説明するための図である。It is a figure for demonstrating the management information of the data in each embodiment of this invention. 本発明の第1実施形態における記録終了処理について説明するためのフローチャートである。It is a flowchart for demonstrating the recording end process in 1st Embodiment of this invention. 本発明の第2及び第3実施形態における記録制御装置を有する撮像装置を示す機能ブロック図である。It is a functional block diagram which shows the imaging device which has a recording control apparatus in 2nd and 3rd embodiment of this invention. 本発明の第2実施形態における記録終了処理について説明するためのフローチャートである。It is a flowchart for demonstrating the recording end process in 2nd Embodiment of this invention. 本発明の第3実施形態における記録終了処理について説明するためのフローチャートである。It is a flowchart for demonstrating the recording end process in 3rd Embodiment of this invention.

以下、本発明の実施の形態を、添付の図面に基づいて詳細に説明する。なお、以下の実施形態において示す構成は一例に過ぎず、本発明は以下の実施形態で説明する構成に限定されるものではない。なお、一例として、各実施形態の撮像装置は、ネットワークを介して映像データを送信可能な撮像装置である。このような撮像装置は、例えば、監視用途で使われる。また、一例として、各実施形態の撮像措置はファイルシステムによって記録処理が行われる不揮発性記録媒体を有し、通信ケーブルを介して給電されるものとする。   Embodiments of the present invention will be described below in detail with reference to the accompanying drawings. Note that the configurations shown in the following embodiments are merely examples, and the present invention is not limited to the configurations described in the following embodiments. As an example, the imaging device of each embodiment is an imaging device capable of transmitting video data via a network. Such an imaging device is used for monitoring purposes, for example. Further, as an example, it is assumed that the imaging measure of each embodiment has a non-volatile recording medium on which a recording process is performed by a file system, and is supplied with power via a communication cable.

<第1実施形態>
図1は、本発明の第1実施形態に係る記録制御装置を有する撮像装置の構成図である。
<First Embodiment>
FIG. 1 is a configuration diagram of an imaging apparatus having a recording control apparatus according to the first embodiment of the present invention.

本実施形態における撮像装置100は、撮像部110と記録制御装置120とを有している。撮像装置100は、被写体を撮像して動画像データを生成する。記録制御装置120は、撮像部110が撮像した画像データを外部のネットワーク機器130へ送信する機能も有している。   The imaging device 100 in the present embodiment includes an imaging unit 110 and a recording control device 120. The imaging device 100 captures a subject and generates moving image data. The recording control device 120 also has a function of transmitting image data captured by the imaging unit 110 to the external network device 130.

まず、撮像部110について説明する。撮像部110は、光学レンズ111、撮像素子112、信号処理部113、撮像制御部114、及び転送部115を有している。   First, the imaging unit 110 will be described. The imaging unit 110 includes an optical lens 111, an imaging element 112, a signal processing unit 113, an imaging control unit 114, and a transfer unit 115.

撮像素子112は、光学レンズ111を通して結像した光を受光して、その受光した光を電荷に変換して撮像信号を生成する。撮像素子112には、例えば、CMOSイメージセンサ(Complementary Metal Oxide Semiconductor Image Sensor)を用いることができる。また、撮像素子112にはCCDイメージセンサ(Charge Coupled Device Image Sensor)を用いてもよい。   The image sensor 112 receives light imaged through the optical lens 111 and converts the received light into electric charge to generate an image signal. For example, a CMOS image sensor (Complementary Metal Oxide Semiconductor Image Sensor) can be used for the image sensor 112. In addition, a CCD image sensor (Charge Coupled Device Image Sensor) may be used for the image sensor 112.

信号処理部113は、撮像素子112で変換された撮像信号をデジタル化して画像データを生成する。信号処理部113は、画像データを圧縮符号化し、符号化された画像データを生成するようにしてもよい。   The signal processing unit 113 digitizes the imaging signal converted by the imaging element 112 to generate image data. The signal processing unit 113 may compress and encode image data and generate encoded image data.

撮像制御部114は、設定された画像(フレーム)の出力周期(フレームレート)と同じ周期で画像信号を生成するよう撮像素子112を制御する。また、受光した光から変換された電荷の蓄積時間が画像の出力周期より長くする必要がある場合、撮像素子112から撮像信号が出力できない期間は、信号処理部113が有するフレームメモリに画像データを保持するように信号処理部113を制御する。   The imaging control unit 114 controls the imaging element 112 to generate an image signal with the same cycle as the output cycle (frame rate) of the set image (frame). In addition, when it is necessary to make the accumulation time of the charge converted from the received light longer than the output period of the image, the image data is stored in the frame memory of the signal processing unit 113 during the period in which the image pickup signal cannot be output from the image pickup device 112. The signal processing unit 113 is controlled to hold.

転送部115は、信号処理部113によってデジタル化された画像データを、記録制御装置120の一次記録部122に転送する。転送部115は、例えば、フレーム単位で画像データを転送する。   The transfer unit 115 transfers the image data digitized by the signal processing unit 113 to the primary recording unit 122 of the recording control device 120. The transfer unit 115 transfers image data in units of frames, for example.

撮像制御部114、信号処理部113、及び転送部115は、一又は複数のプロセッサと、RAM(Random Access Memory)等のメモリとで実現することができる。プロセッサがメモリに格納されるコンピュータプログラムを実行することで、プロセッサとメモリとが協働して、撮像制御部114、信号処理部113、及び転送部115として機能する。なお、プロセッサとして、CPUやDSP等を用いることができる。   The imaging control unit 114, the signal processing unit 113, and the transfer unit 115 can be realized by one or a plurality of processors and a memory such as a RAM (Random Access Memory). When the processor executes a computer program stored in the memory, the processor and the memory cooperate to function as the imaging control unit 114, the signal processing unit 113, and the transfer unit 115. Note that a CPU, DSP, or the like can be used as the processor.

次に記録制御装置120について説明する。
記録制御装置120は、制御部121、一次記録部122、通信部123、二次記録部124、及び電源回路125を有している。なお、制御部121は、記録制御部1及び通信制御部2としても機能する。
Next, the recording control device 120 will be described.
The recording control device 120 includes a control unit 121, a primary recording unit 122, a communication unit 123, a secondary recording unit 124, and a power supply circuit 125. The control unit 121 also functions as the recording control unit 1 and the communication control unit 2.

まず、記録制御装置120のハードウェア構成について説明する。
制御部121は、例えば、一又は複数のプロセッサと、RAM(Random Access Memory)等のメモリとで実現することができる。メモリには、例えば、ファイルシステムのプログラムや、OSプログラムがロードされる。そして、プロセッサが、メモリにロードされたコンピュータプログラムを実行することで、プロセッサとメモリとが協働して、制御部121として機能する。なお、プロセッサとして、CPUやDSP等を用いることができる。メモリは一次記録部122を使用してもよい。本実施形態では一例として制御部121をCPUで実現しているものとする。
First, the hardware configuration of the recording control apparatus 120 will be described.
The control unit 121 can be realized by, for example, one or a plurality of processors and a memory such as a RAM (Random Access Memory). For example, a file system program or an OS program is loaded into the memory. The processor executes the computer program loaded in the memory, so that the processor and the memory cooperate to function as the control unit 121. Note that a CPU, DSP, or the like can be used as the processor. The memory may use the primary recording unit 122. In the present embodiment, it is assumed that the control unit 121 is realized by a CPU as an example.

また、ファイルシステムとは、一次記録部122や二次記録部124に記録されるデータを管理する方式が規定されているプログラムのことである。ファイルシステムには、一次記録部122及び二次記録部124に記録されたデータを、ファイルやフォルダ(ディレクトリ)を用いて管理する方式が規定されている。また、ファイルシステムには、ファイルやフォルダの移動や削除を行ったりする方式、データを記録する方式、管理情報を記録する方式等も規定されている。また、一次記録部122に一次的に画像データを記録するための記録領域(キャッシュ領域)のアドレス等も規定されている。なお、キャッシュ領域は任意に設定可能である。ファイルシステムとして、例えば、FAT(File Allocation Table)、NTFS(NT File System)、ext(extended file system)3、ext4などを用いることができる。   The file system is a program that defines a method for managing data recorded in the primary recording unit 122 and the secondary recording unit 124. In the file system, a method for managing data recorded in the primary recording unit 122 and the secondary recording unit 124 using files and folders (directories) is defined. The file system also defines a method for moving and deleting files and folders, a method for recording data, a method for recording management information, and the like. In addition, an address of a recording area (cache area) for temporarily recording image data in the primary recording unit 122 is also defined. The cache area can be arbitrarily set. As the file system, for example, FAT (File Allocation Table), NTFS (NT File System), ext (extended file system) 3, ext4, or the like can be used.

一次記録部122は、例えば、RAM(Random Access Memory)等の揮発性の記録媒体で実現することができる。一次記録部122は、例えば、画像データを一次的に記録するキャッシュメモリとして機能する。   The primary recording unit 122 can be realized by a volatile recording medium such as a RAM (Random Access Memory). The primary recording unit 122 functions as, for example, a cache memory that primarily records image data.

通信部123は、例えば、イーサネット(登録商標)などの規格に準拠したネットワークインターフェイスで実現することができる。   The communication unit 123 can be realized by a network interface compliant with a standard such as Ethernet (registered trademark), for example.

二次記録部124は、例えば、SDメモリカード、HDD、光ディスク等の種々の不揮発性記録媒体で実現することができる。一次記録部122は、例えば、記録制御装置120から着脱可能となっている。本実施形態では、一例として、二次記録部124をSDメモリカードで実現しているものとする。   The secondary recording unit 124 can be realized by various nonvolatile recording media such as an SD memory card, an HDD, and an optical disk. The primary recording unit 122 is detachable from the recording control device 120, for example. In the present embodiment, as an example, it is assumed that the secondary recording unit 124 is realized by an SD memory card.

電源回路125は、例えば、コンバータやインバータ、コンデンサ、コイル、スイッチング素子等を用いて実現することができる。電源回路125は、コンデンサ等によって一時的に電荷を蓄えることができる。それによって、外部からの電源供給が止まった後も、数秒程度であれば、各部に電力を供給することができる。電荷を蓄える素子は、コンデンサに限らず、コンデンサ以外の他の素子によって、一時的に電荷を蓄えられるようにしてもよい。   The power supply circuit 125 can be realized using, for example, a converter, an inverter, a capacitor, a coil, a switching element, or the like. The power supply circuit 125 can temporarily store electric charge using a capacitor or the like. As a result, even after the external power supply is stopped, the power can be supplied to each unit within a few seconds. The element that stores the electric charge is not limited to the capacitor, and the electric charge may be temporarily stored by an element other than the capacitor.

次に記録制御装置120の動作について説明する。転送部115によって、一次記録部122のキャッシュ領域に転送された画像データは、例えば、通信制御部2による制御に従って、通信部123を通じて外部のネットワーク機器130に送信される。各実施形態において、通信部123は、外部のネットワーク機器130と、ネットワークケーブルを介して通信が確立されている。通信部123は、ネットワークケーブルを通じて、有線方式で、外部のネットワーク機器130に画像データを送信する。   Next, the operation of the recording control apparatus 120 will be described. The image data transferred to the cache area of the primary recording unit 122 by the transfer unit 115 is transmitted to the external network device 130 through the communication unit 123 according to control by the communication control unit 2, for example. In each embodiment, communication is established between the communication unit 123 and an external network device 130 via a network cable. The communication unit 123 transmits image data to the external network device 130 through a network cable in a wired manner.

なお、制御部121は、画像データに対して輝度補正や色補正等の画像処理を行ってもよい。また、制御部121は、撮像された画像からパターンマッチング等の技術を用いて人物等の物体を検出する物体検出を行ってもよい。つまり、制御部12は、画像処理部や物体検出部としても機能する。   Note that the control unit 121 may perform image processing such as luminance correction and color correction on the image data. The control unit 121 may perform object detection that detects an object such as a person from a captured image using a technique such as pattern matching. That is, the control unit 12 also functions as an image processing unit and an object detection unit.

ネットワーク対応機器130は、例えば、撮像部110によって撮像された画像を表示するモニタや、撮像部110によって撮像された画像を記録する記録装置である。   The network compatible device 130 is, for example, a monitor that displays an image captured by the imaging unit 110 or a recording device that records an image captured by the imaging unit 110.

記録制御部1は、一次記録部122のキャッシュ領域に転送された画像データを、所定の規則に従って、二次記録部124に記録する。この所定の規則は、例えば、ファイルシステムによって規定されている。ファイルシステムによって、一次記録部122に転送された画像データを二次記録部124に記録させるタイミングが規定されている。また、画像データを二次記録部124に記録させるデータ単位などが規定されている。   The recording control unit 1 records the image data transferred to the cache area of the primary recording unit 122 in the secondary recording unit 124 according to a predetermined rule. This predetermined rule is defined by, for example, a file system. The file system defines the timing at which the secondary recording unit 124 records the image data transferred to the primary recording unit 122. Further, a data unit for recording the image data in the secondary recording unit 124 is defined.

なお、記録制御部1は、ユーザによる設定に応じて、画像データを二次記録部124に記録させる場合と、画像データを二次記録部124に記録させない場合とを切り替えてもよい。また、例えば、監視カメラに適用した場合、記録制御部1は、人物の侵入などのイベントが発生した場合に、画像データを二次記録部124に記録させるようにしてもよい。また、ユーザによって設定されたタイミングで、画像データを二次記録部124に記録する処理を開始してもよい。   Note that the recording control unit 1 may switch between the case where the image data is recorded in the secondary recording unit 124 and the case where the image data is not recorded in the secondary recording unit 124 according to the setting by the user. Further, for example, when applied to a monitoring camera, the recording control unit 1 may cause the secondary recording unit 124 to record image data when an event such as a person intrusion occurs. Further, the process of recording the image data in the secondary recording unit 124 may be started at a timing set by the user.

また、記録制御部1は、一次記録部122のキャッシュ領域に記録されている画像データを二次記録部124に記録するために、ファイルシステムに基づく管理情報を作成する。記録制御部1は、この管理情報を参照しながら、記録制御を行う。   Further, the recording control unit 1 creates management information based on the file system in order to record the image data recorded in the cache area of the primary recording unit 122 in the secondary recording unit 124. The recording control unit 1 performs recording control while referring to this management information.

ここで、図3を用いて、記録制御部1が作成する管理情報の詳細について説明する。記録制御部1は、図3に示すように、ファイル名と、そのファイルに関する情報とが関連付けられた情報である。図3ではテーブル形式で管理情報を示している。   Here, the details of the management information created by the recording control unit 1 will be described with reference to FIG. As shown in FIG. 3, the recording control unit 1 is information in which a file name is associated with information related to the file. FIG. 3 shows the management information in a table format.

具体的には、管理情報は、ファイル名と、そのファイルが記録されている記録領域の先頭のLBA(Logical Block Addressing)を含む情報である。また、管理情報は先頭のLBAと、そのファイルのデータサイズと、そのファイルが作成された時刻(作成日時)と、そのファイルを最後に更新した時刻(更新日時)とが関連付けられた情報である。   Specifically, the management information is information including a file name and the first LBA (Logical Block Addressing) of the recording area in which the file is recorded. The management information is information in which the first LBA, the data size of the file, the time when the file was created (creation date and time), and the time when the file was last updated (update date and time) are associated with each other. .

なお、LBAは、記録媒体におけるアドレスを示すものであり、先頭LBAとは、ファイルが記録されている記録領域の先頭のアドレスを示すものである。LBA以外にもCHS(Cylinder Head Sector)でアドレスを指定してもよい。   The LBA indicates an address in the recording medium, and the head LBA indicates the head address of the recording area where the file is recorded. In addition to LBA, an address may be specified by CHS (Cylinder Head Sector).

図3に示す管理情報の形式は一例であり、管理情報は、少なくとも、ファイルを構成するデータが記録領域のどこに記録されているかを示す情報であればよい。図3に示す管理情報においては、先頭LBA及びデータサイズから最後のアドレスを導出することができる。例えば、ファイルに含まれるデータを、複数の記録領域に分けて記録することも一般的である。このように、ファイルに含まれる各データのアドレスが連続していない場合は、管理情報に、それぞれのデータのアドレスを示す複数のLBA情報が含むようにすればよい。   The format of the management information shown in FIG. 3 is an example, and the management information may be information indicating at least where data constituting the file is recorded in the recording area. In the management information shown in FIG. 3, the last address can be derived from the head LBA and the data size. For example, data included in a file is generally recorded in a plurality of recording areas. As described above, when the addresses of the data included in the file are not continuous, the management information may include a plurality of LBA information indicating the addresses of the respective data.

記録制御部1は、二次記録部124の記録が停止すると、新たなファイルを作成するようにしてもよいし、所定の時間(例えば3分)の画像データを記録すると、新たなファイルを作成するようにしてもよい。   The recording control unit 1 may create a new file when recording of the secondary recording unit 124 stops, or create a new file when recording image data for a predetermined time (for example, 3 minutes). You may make it do.

また、記録制御部1は、二次記録部124に記録したファイルに係る管理情報を、一次記録部122と二次記録部124の両方に記録する。一次記録部122に記録されている管理情報の内容と、二次記録部124に記録されている管理情報の内容と、実際に二次記録部124に記録されている内容とは同期させて、齟齬がないようにする必要がある。   Further, the recording control unit 1 records management information relating to the file recorded in the secondary recording unit 124 in both the primary recording unit 122 and the secondary recording unit 124. The content of the management information recorded in the primary recording unit 122, the content of the management information recorded in the secondary recording unit 124, and the content actually recorded in the secondary recording unit 124 are synchronized, It is necessary to make sure there are no wrinkles.

次に電源回路125について説明する。電源回路125は、ネットワーク機器130等の外部装置から、ネットワークケーブルを介して電力供給を受ける。例えば、PoE(Power over Ethernet(登録商標))やPoE+等の方式を用いて、ネットワークケーブルによって外部のネットワーク機器130から給電(電力の供給)を受ける。つまり、データの送受信を行うケーブルと、電力の供給が行われるケーブルとが同一となっている。   Next, the power supply circuit 125 will be described. The power supply circuit 125 receives power supply from an external device such as the network device 130 via a network cable. For example, using a method such as PoE (Power over Ethernet (registered trademark)) or PoE +, power is supplied (power is supplied) from the external network device 130 through a network cable. That is, the cable for transmitting and receiving data is the same as the cable for supplying power.

そして、電源回路125は、ネットワークケーブルを介して受電した電力を、各部に適した直流の電力に変換する。そして、電源回路125は、変換された電力を、撮像部110および記録制御装置120の各部に供給する。   The power supply circuit 125 converts the power received via the network cable into DC power suitable for each unit. Then, the power supply circuit 125 supplies the converted power to each unit of the imaging unit 110 and the recording control device 120.

また、電源回路125は、コンデンサ等によって、外部から供給された電力(電荷)を一時的に蓄えることができる。一時的に蓄えた電荷によって、外部からの電源供給が止まった後も、数秒程度であれば、各部に電力を供給することができる。コンデンサ以外の素子によって、一時的に電荷を蓄えられるようにしてもよい。なお、電源回路125には一般的な電源回路を用いることができる。撮像装置程度の電力消費量であれば、一般的な電源回路で数秒程度の動作を行うことができる。   The power supply circuit 125 can temporarily store electric power (charge) supplied from the outside by using a capacitor or the like. Even after the external power supply is stopped by the temporarily stored electric charge, it is possible to supply power to each unit within a few seconds. Charges may be temporarily stored by an element other than the capacitor. Note that a general power supply circuit can be used as the power supply circuit 125. If the power consumption is about the same as that of an imaging device, an operation of about several seconds can be performed with a general power supply circuit.

このように、本実施形態のネットワーク機器130は、撮像装置100から送信された画像データを受信するだけではなく、ネットワークケーブルを通じて撮像装置100へ給電することが可能であるものとする。   As described above, it is assumed that the network device 130 according to the present embodiment can not only receive the image data transmitted from the imaging apparatus 100 but also supply power to the imaging apparatus 100 through the network cable.

次に、図2に示すフローチャートを用いて、各実施形態における、記録制御部1による記録処理を説明する。図2に示すフローチャートは、CPUがメモリに読み込まれたプログラムに基づく処理を行うことで実行可能である。   Next, recording processing by the recording control unit 1 in each embodiment will be described using the flowchart shown in FIG. The flowchart shown in FIG. 2 can be executed by the CPU performing a process based on a program read into the memory.

電源回路125によって各部への電力の供給が開始されたりすると、記録処理が開始する。   When power supply to each unit is started by the power supply circuit 125, the recording process starts.

まず、ステップS21にて、撮像部110は撮像を行って画像データを生成する。   First, in step S21, the imaging unit 110 performs imaging to generate image data.

次のステップS22にて、記録制御装置120から外部のネットワーク機器130へと画像データを送信する。   In the next step S <b> 22, image data is transmitted from the recording control device 120 to the external network device 130.

具体的には、次のような処理を行う。まず、転送部115は、生成された画像データを、記録制御装置120の一次記録部122のキャッシュ領域に転送する。転送部115は、例えば、フレーム単位で画像データを転送する。そして、通信制御部2は、記録制御装置120の一次記録部122のキャッシュ領域へ転送された画像データを、通信部123から外部のネットワーク機器130へと送信させる。   Specifically, the following processing is performed. First, the transfer unit 115 transfers the generated image data to the cache area of the primary recording unit 122 of the recording control device 120. The transfer unit 115 transfers image data in units of frames, for example. Then, the communication control unit 2 causes the communication unit 123 to transmit the image data transferred to the cache area of the primary recording unit 122 of the recording control device 120 to the external network device 130.

なお、イーサネット(登録商標)ハブ等を介して、記録制御装置120と、複数のネットワーク機器130を接続するようにしてもよい。そのようにした場合、記録制御装置120へと給電を行うネットワーク機器と、通信部123から画像データを送信するネットワーク機器とは必ずしも同じネットワーク機器ではなくてもよい。   Note that the recording control apparatus 120 and a plurality of network devices 130 may be connected via an Ethernet (registered trademark) hub or the like. In such a case, the network device that supplies power to the recording control apparatus 120 and the network device that transmits image data from the communication unit 123 are not necessarily the same network device.

次のステップS23にて、記録制御部1は、通信部123から外部に送信される画像データを、二次記録部124に記録するか否か判断する。例えば、データをバックアップする目的で、二次記録部124にも画像データを記録する。   In the next step S <b> 23, the recording control unit 1 determines whether to record the image data transmitted from the communication unit 123 to the outside in the secondary recording unit 124. For example, the image data is recorded in the secondary recording unit 124 for the purpose of backing up the data.

具体的には、記録制御部1は、例えば、ユーザによる設定を確認して、二次記録部124に画像データを記録するか否か判断する。また、人物の侵入などのイベントが発生した場合に、画像データを二次記録部124に記録させるようにしている場合は、イベントが発生しているか否かに応じて、二次記録部124に画像データを記録するか否か判断する。   Specifically, for example, the recording control unit 1 confirms the setting by the user and determines whether to record image data in the secondary recording unit 124. Further, when an event such as an intrusion of a person occurs, when the image data is recorded in the secondary recording unit 124, the secondary recording unit 124 determines whether or not the event has occurred. It is determined whether to record image data.

なお、常に、二次記録部124に画像データを記録するようにしてもよい。その場合、ステップS23は省略可能である。   Note that image data may always be recorded in the secondary recording unit 124. In that case, step S23 can be omitted.

ステップS23にて二次記録部124に画像データを記録しないと判断した場合(No)、ステップS21に戻る。   If it is determined in step S23 that no image data is recorded in the secondary recording unit 124 (No), the process returns to step S21.

ステップS23にて二次記録部124に画像データを記録すると判断した場合(Yes)、次のステップS24にて、記録制御部1は、二次記録部124に画像データを記録する。具体的には、記録制御部1は、転送部115から転送されて、一次記録部122のキャッシュ領域に記録された画像データを、二次記録部124に記録する。   When it is determined in step S23 that image data is recorded in the secondary recording unit 124 (Yes), the recording control unit 1 records image data in the secondary recording unit 124 in the next step S24. Specifically, the recording control unit 1 records the image data transferred from the transfer unit 115 and recorded in the cache area of the primary recording unit 122 in the secondary recording unit 124.

そして、記録制御部1は、一次記録部122に記録されている管理情報と、二次記録部124に記録されている管理情報とを更新する。   Then, the recording control unit 1 updates the management information recorded in the primary recording unit 122 and the management information recorded in the secondary recording unit 124.

例えば、図3に示す管理情報を更新する場合において、movie3に画像データを追加するよう更新するときは次のようにする。つまり、記録制御部1は、データサイズを追加した画像データの分だけ増やす。そして、更新日時を更新する。画像データを初めて二次記録部124に記録する場合は、新たに管理情報を作成する。   For example, when the management information shown in FIG. 3 is updated, the update is performed as follows to add image data to movie3. That is, the recording control unit 1 increases the data size by the amount of the added image data. Then, the update date is updated. When image data is recorded in the secondary recording unit 124 for the first time, management information is newly created.

なお、二次記録部124に記録した後、一次記録部122のキャッシュ領域に記録されている画像データは削除してもよい。   Note that the image data recorded in the cache area of the primary recording unit 122 after being recorded in the secondary recording unit 124 may be deleted.

以上が、各実施形態における、記録制御部1による記録処理である。通信部123とネットワーク機器130との通信用の接続(リンク)が確立していて、通信部123とネットワーク機器130とのリンクが確立している場合は、ステップS21〜S24の記録処理を続ける。なお、リンクが確立しているとき、通信部123とネットワーク機器130とは電気的に繋がっている状態となっている。また、リンクが確立している状態では、通常は、通信部123とネットワーク機器130とは通信可能な状態であるが、間違ったIPアドレスを割り当ててしまった場合などは通信できない状態となることもあり得る。   The above is the recording process by the recording control unit 1 in each embodiment. When the communication connection (link) between the communication unit 123 and the network device 130 has been established, and the link between the communication unit 123 and the network device 130 has been established, the recording process of steps S21 to S24 is continued. When the link is established, the communication unit 123 and the network device 130 are in an electrically connected state. In addition, in a state where the link is established, the communication unit 123 and the network device 130 are normally in a communicable state. However, if a wrong IP address is assigned, the communication unit 123 and the network device 130 may be unable to communicate. possible.

次に、図4に示すフローチャートを用いて、第1実施形態における、記録制御部1による記録終了処理を説明する。図4に示すフローチャートは、CPUがメモリに読み込まれたプログラムに基づく処理を行うことで実行可能である。   Next, recording end processing by the recording control unit 1 in the first embodiment will be described using the flowchart shown in FIG. The flowchart shown in FIG. 4 can be executed by the CPU performing processing based on the program read into the memory.

ネットワークケーブルが抜かれることや、停電等によって、突然、撮像装置100への電力供給が停止することが起きることがある。そのようなことが起きると、管理情報の内容と、実際に二次記録部124に記録されている内容とが同期しなくなってしまうことがある。そうすると、画像データを正常に読み出せなくなったり、画像データが壊れてしまったりすることに繋がる。   The power supply to the imaging apparatus 100 may suddenly stop due to the network cable being disconnected or a power failure. When such a situation occurs, the content of the management information may not be synchronized with the content actually recorded in the secondary recording unit 124. If it does so, it will lead to that image data cannot be read normally, or image data will be damaged.

以下で説明する記録終了処理では、通信リンクが切断されて、ネットワーク機器とのリンクが確立していない状態(リンクダウン)になったことを検知すると記録終了処理を行う。なお、この記録終了処理は、電源回路125への電力供給がネットワークケーブルで行われている場合においてリンクが切断されたときに行われる。リンクダウンになった原因が、ネットワークケーブルが抜かれたことである場合、リンクが切断されるのとほぼ同時に電源回路125への電力供給が停止する。しかし、リンクダウンを検知することで、電圧の低下等を検知して、直接的に電力供給の停止を検知することで、内部に存在する残留電荷が消失するまで、少しの間ではあるが、動作を継続することが可能である。電圧等を直接的に検知する方法では、撮像装置自体がすぐに動作を停止してしまうため、適切に記録終了処理を行うことが難しい。   In the recording end process described below, when it is detected that the communication link is disconnected and the link with the network device is not established (link down), the recording end process is performed. This recording end process is performed when the link is disconnected when power is supplied to the power supply circuit 125 through a network cable. When the cause of the link down is that the network cable is disconnected, the power supply to the power supply circuit 125 is stopped almost simultaneously with the disconnection of the link. However, by detecting link down, it is possible to detect a decrease in voltage, etc., and to detect the stop of power supply directly, until the residual charge existing inside disappears for a while, It is possible to continue the operation. In the method of directly detecting the voltage or the like, the imaging apparatus itself stops its operation immediately, so that it is difficult to appropriately perform the recording end process.

通信部123とネットワーク機器130との通信のリンクが切れてリンクダウン状態になったことを通信制御部2が検知すると、記録終了処理が開始する。   When the communication control unit 2 detects that the communication link between the communication unit 123 and the network device 130 is broken and the link is down, the recording end process starts.

具体的には、ネットワークケーブルが抜かれると、通信部123とネットワーク機器130との通信リンクが確立されていない状態となる。通信リンクが確立されている状態では、通信部123とネットワーク機器130とは、所定の間隔でリンクパルス(信号)のやり取りをしている。リンクパルスが途切れたことを検知すると、通信部123は、リンクが確立していない状態となったことを示すリンクダウン信号を通信制御部2に入力する。   Specifically, when the network cable is disconnected, the communication link between the communication unit 123 and the network device 130 is not established. In the state where the communication link is established, the communication unit 123 and the network device 130 exchange link pulses (signals) at a predetermined interval. When detecting that the link pulse is interrupted, the communication unit 123 inputs a link down signal indicating that the link has not been established to the communication control unit 2.

通信制御部2は、リンクダウン信号が入力されると、通信部123とネットワーク機器130とのリンクが確立していない状態(リンクダウン)になったと検知する。   When the link down signal is input, the communication control unit 2 detects that the link between the communication unit 123 and the network device 130 has not been established (link down).

リンクダウンは、図2に示す記録処理を実行しているときにおいて、ステップS21〜S25のどの処理を行っている状態でも発生し得る。通信制御部2によってリンクダウンになったことを検知すると、ステップS21〜S25の記録処理を行っている最中であっても、実行中の処理を中止して、割込み処理として、図4に示す記録終了処理を行う。   The link-down can occur in any state in which the processes in steps S21 to S25 are performed when the recording process shown in FIG. 2 is being performed. When the communication control unit 2 detects that the link is down, even if the recording process of steps S21 to S25 is being performed, the process being executed is stopped and an interrupt process is illustrated in FIG. Perform recording end processing.

制御部121は、割込み処理が発生すると、実行中のプログラムに基づく処理を中止して、予め登録されたプログラムを呼び出して実行する機能を有している。割込み処理を行うときに呼び出されるプログラムをハンドラという。ステップS41〜S43の処理は、このハンドラに従って実行される。   When interrupt processing occurs, the control unit 121 has a function of stopping processing based on the program being executed and calling and executing a pre-registered program. A program that is called when interrupt processing is performed is called a handler. The processing of steps S41 to S43 is executed according to this handler.

次のステップS41にて、記録制御部1は、一次記録部122のキャッシュ領域への新たな画像データの記録を禁止する。   In the next step S 41, the recording control unit 1 prohibits recording of new image data in the cache area of the primary recording unit 122.

つまり、記録制御部1は、リンクダウンとなった後は、一次記録部122のキャッシュ領域に新たな画像データを記録しない。   That is, the recording control unit 1 does not record new image data in the cache area of the primary recording unit 122 after the link is down.

ただし、現在、記録中のデータ単位については記録するようにしてもよいし、すぐに記録を中止してもよい。いずれにしても、一次記録部122における管理情報が示す画像データの内容と、実際に二次記録部124に記録する画像データの内容とが同期するように一次記録部122における管理情報を更新すればよい。なお、現在、記録中のデータ単位についても記録を中止した方が、より早く、記録を終了することができる。   However, the data unit currently being recorded may be recorded, or recording may be stopped immediately. In any case, the management information in the primary recording unit 122 is updated so that the content of the image data indicated by the management information in the primary recording unit 122 and the content of the image data actually recorded in the secondary recording unit 124 are synchronized. That's fine. It should be noted that the recording can be terminated earlier if the recording of the data unit currently being recorded is stopped.

次のステップS42にて、記録制御部1は、一次記録部122のキャッシュ領域に記録されている画像データで、二次記録部124に記録されていない画像データがあるか判断する。   In the next step S <b> 42, the recording control unit 1 determines whether there is image data recorded in the cache area of the primary recording unit 122 but not recorded in the secondary recording unit 124.

一次記録部122のキャッシュ領域に記録されているが二次記録部124に記録されていない画像データがある場合(Yes)は次のようにする。つまり、次のステップS43にて、記録制御部1は、一次記録部122のキャッシュ領域に記録されているが、二次記録部124に記録されていない画像データを、二次記録部124に記録する。そして、記録制御部1は、一次記録部122における管理情報が示す記録済みとして管理されている画像データと、実際に二次記録部124に記録されている画像データとが同期するように、一次記録部122における管理情報を更新する。   When there is image data recorded in the cache area of the primary recording unit 122 but not recorded in the secondary recording unit 124 (Yes), the following is performed. That is, in the next step S43, the recording control unit 1 records the image data recorded in the cache area of the primary recording unit 122 but not recorded in the secondary recording unit 124 in the secondary recording unit 124. To do. Then, the recording control unit 1 performs primary processing so that the image data managed as recorded by the management information in the primary recording unit 122 and the image data actually recorded in the secondary recording unit 124 are synchronized. Management information in the recording unit 122 is updated.

また、二次記録部124における管理情報が示す記録済みとして管理されている画像データと、実際に二次記録部124に記録されている画像データとが同期するように、二次記録部124における管理情報を更新する。   Further, in the secondary recording unit 124, the image data managed as recorded and indicated by the management information in the secondary recording unit 124 and the image data actually recorded in the secondary recording unit 124 are synchronized. Update management information.

つまり、記録制御部1は、少なくとも、一次記録部122における管理情報のファイル名、先頭LBA、及びデータサイズと、二次記録部124における管理情報のファイル名、先頭LBA、及びデータサイズとが同期するように更新することとなる。   That is, the recording control unit 1 synchronizes at least the file name, head LBA, and data size of management information in the primary recording unit 122 with the file name, head LBA, and data size of management information in the secondary recording unit 124. Will be updated.

一方、一次記録部122のキャッシュ領域に記録されているが二次記録部124に記録されていない画像データがない場合(No)、記録終了処理を終了する。   On the other hand, if there is no image data recorded in the cache area of the primary recording unit 122 but not recorded in the secondary recording unit 124 (No), the recording end process is terminated.

以上のように、記録終了処理を行うことで、電源回路125が蓄えられるわずかな電荷で動作可能な時間内に、適切に記録を終了することができる。つまり、一次記録部122の管理情報が記録済みとして管理している画像データと、二次記録部124の管理情報が記録済みとして管理している画像データと、二次記録部124に実際に記録されている画像データの内容とを同期させることができる。   As described above, by performing the recording end process, it is possible to appropriately end the recording within the time in which the power supply circuit 125 can operate with a small amount of charge stored. That is, the image data managed as recorded by the management information of the primary recording unit 122, the image data managed as recorded by the management information of the secondary recording unit 124, and actually recorded in the secondary recording unit 124. It is possible to synchronize the contents of the image data being processed.

なお、ステップS41にて、リンクダウン状態になったことを検知したときに撮像装置100が行っている全ての処理を中断し、その全ての処理よりも先に、ステップS42及びS43の処理を行うようにしてもよい。   In step S41, all processes performed by the imaging apparatus 100 when it is detected that the link-down state is detected are interrupted, and steps S42 and S43 are performed prior to all the processes. You may do it.

一次記録部122のキャッシュ領域への新たな画像データの記録以外にも、制御部121による画像処理や物体検出を中止する。そして、制御部121による画像処理や物体検出処理よりも先に、ステップS42及びS43の処理を行うようにしてもよい。このようにすれば、より早く、記録終了処理を完了することができる。   In addition to recording new image data in the cache area of the primary recording unit 122, the image processing and object detection by the control unit 121 are stopped. And you may make it perform the process of step S42 and S43 prior to the image process and object detection process by the control part 121. FIG. In this way, the recording end process can be completed earlier.

以上のように、本実施形態の記録制御技術によれば、リンクダウン状態になったことを契機として記録終了処理を行うため、電圧等を検知して記録終了処理を行う場合よりも早くデータの記録を終了させることができる。   As described above, according to the recording control technique of the present embodiment, since the recording end process is performed when the link-down state is entered, the data is detected earlier than when the voltage is detected and the recording end process is performed. Recording can be terminated.

<第2実施形態>
以下、図5のブロック図、及び、図6のフローチャートを参照して、本発明の第2実施形態に係る記録制御装置を有する撮像装置について説明する。第1実施形態とは、電源回路125が外部電源140から電力供給を受けることが可能になっている点が異なる。また、記録制御部11の動作も異なる。外部電源140はネットワークケーブル以外の電源ケーブルで電源回路125に電力を供給するものである。
Second Embodiment
Hereinafter, with reference to the block diagram of FIG. 5 and the flowchart of FIG. 6, an imaging apparatus having a recording control apparatus according to the second embodiment of the present invention will be described. The difference from the first embodiment is that the power supply circuit 125 can receive power supply from the external power supply 140. The operation of the recording control unit 11 is also different. The external power supply 140 supplies power to the power supply circuit 125 through a power cable other than the network cable.

なお、第1実施形態と同様に、電源回路125はネットワーク機器130からも電力供給を受けることが可能になっている。   Note that, similarly to the first embodiment, the power supply circuit 125 can also receive power supply from the network device 130.

以下、図6に示すフローチャートを用いて、第2実施形態における、記録制御部11による記録終了処理を説明する。図6に示すフローチャートは、CPUがメモリに読み込まれたプログラムに基づく処理を行うことで実行可能である。   Hereinafter, the recording end process by the recording control unit 11 in the second embodiment will be described with reference to the flowchart shown in FIG. The flowchart shown in FIG. 6 can be executed when the CPU performs a process based on a program read into the memory.

図4に示す記録終了処理と同様に、通信部123とネットワーク機器130とのリンクが切断された(リンクダウン状態になった)ことを通信制御部2が検知すると、記録終了処理を開始する。なお、この記録終了処理は、電源回路125への電力供給がネットワークケーブルで行われている場合においてリンクが切断されたときに行われる。   Similar to the recording end process shown in FIG. 4, when the communication control unit 2 detects that the link between the communication unit 123 and the network device 130 has been disconnected (becomes a link-down state), the recording end process is started. This recording end process is performed when the link is disconnected when power is supplied to the power supply circuit 125 through a network cable.

次のステップS61にて、記録制御部11は、電源回路125が外部電源140から電力供給を受けているかどうかを確認する。   In the next step S <b> 61, the recording control unit 11 confirms whether or not the power supply circuit 125 is supplied with power from the external power supply 140.

具体的には、記録制御部11は、外部電源140から給電を受けているか否かを示す給電情報を確認する。記録制御部11は、定期的に電圧等を測定することで、給電状況を確認して、給電情報を作成しておく。給電情報は一次記録部122に記録され、定期的(数秒間隔)に更新される。電圧を検知して給電状況を確認すると時間がかかるため、このように、予め給電情報を作成しておくことで、より、迅速に、給電状況を確認することができる。   Specifically, the recording control unit 11 confirms power supply information indicating whether power is being received from the external power supply 140. The recording control unit 11 periodically measures a voltage or the like to confirm the power supply status and create power supply information. The power supply information is recorded in the primary recording unit 122 and is updated regularly (every few seconds). Since it takes time to check the power supply status by detecting the voltage, the power supply status can be confirmed more quickly by creating power supply information in advance.

ステップS62にて、記録制御部11は、確認した結果に基づいて、外部電源140から給電されているか否か判断する。外部電源から給電されている場合(Yes)、記録終了処理を終了し、図2に示す記録処理に戻る。   In step S62, the recording control unit 11 determines whether power is supplied from the external power supply 140 based on the confirmed result. When power is supplied from the external power source (Yes), the recording end process is terminated and the process returns to the recording process shown in FIG.

一方、外部電源140から給電されていない場合(No)、記録制御部11はステップS41〜S43の記録終了処理を実行する。ステップS41〜S43の記録終了処理は、図4と同様なため、説明を省略する。   On the other hand, when power is not supplied from the external power source 140 (No), the recording control unit 11 executes the recording end process in steps S41 to S43. The recording end process in steps S41 to S43 is the same as that in FIG.

外部電源140からも電力供給を受ける機能を有していても、電源ケーブルが外れていたりして、実際に電力供給を受けているとは限らない。本実施形態によれば、外部電源140からの電力供給の状況を確認して、必要に応じて記録終了処理を実行することができる。また、予め作成した給電情報を用いて給電状況を判断することで、迅速に、記録終了処理を実行することができる。   Even if the external power supply 140 has a function of receiving power supply, the power supply cable is disconnected and the power supply is not always received. According to the present embodiment, the status of power supply from the external power source 140 can be confirmed, and a recording end process can be executed as necessary. Further, by determining the power supply status using the power supply information created in advance, the recording end process can be executed quickly.

<第3実施形態>
次に、図5のブロック図、及び、図7のフローチャートを参照して、本発明の第3実施形態に係る記録制御装置を有する撮像装置について説明する。本実施形態は、第2実施形態と同様に、電源回路125が外部電源140から電力供給を受けることが可能になっている。また、記録制御部の動作も異なる。第2実施形態と同様に、外部電源140は、ネットワークケーブル以外の電源ケーブルで電源回路125に電力を供給するものである。
<Third Embodiment>
Next, an imaging apparatus having a recording control apparatus according to the third embodiment of the present invention will be described with reference to the block diagram of FIG. 5 and the flowchart of FIG. In the present embodiment, as in the second embodiment, the power supply circuit 125 can receive power supply from the external power supply 140. The operation of the recording control unit is also different. As in the second embodiment, the external power supply 140 supplies power to the power supply circuit 125 using a power cable other than the network cable.

ユーザが意図的にリンクダウン状態にした場合、その行動は記録制御装置の使用を終了する準備である可能性がある。よって、短時間(数秒〜数分)の間に、外部電源140からの給電も停止される可能性がある。そのため、本実施形態の記録制御装置120は、外部電源140からの給電が続いている場合であっても、ユーザ設定の状況によっては、割込み処理を実行して、キャッシュ領域に記録されている画像データを全て二次記録部124に記録する。そうすることで、突然、外部電源140からの給電も停止されたとしても、データを適切に保護することができる。   If the user deliberately enters the link down state, the action may be a preparation to end the use of the recording control device. Therefore, power supply from the external power supply 140 may be stopped in a short time (several seconds to several minutes). For this reason, the recording control apparatus 120 according to the present embodiment executes an interrupt process depending on the user setting status even when power supply from the external power supply 140 continues, and the image recorded in the cache area All data is recorded in the secondary recording unit 124. By doing so, even if the power supply from the external power supply 140 is suddenly stopped, the data can be appropriately protected.

以下、図7に示すフローチャートを用いて、第3実施形態における、記録制御部11による記録終了処理を説明する。図7に示すフローチャートは、CPUがメモリに読み込まれたプログラムに基づく処理を行うことで実行可能である。なお、本実施形態の記録終了処理も、電源回路125への電力供給がネットワークケーブルで行われている場合においてリンクが切断されたときに行われる。   Hereinafter, the recording end process by the recording control unit 11 in the third embodiment will be described with reference to the flowchart shown in FIG. The flowchart shown in FIG. 7 can be executed by the CPU performing a process based on the program read into the memory. Note that the recording end processing of this embodiment is also performed when the link is disconnected when power is supplied to the power supply circuit 125 via a network cable.

なお、ステップS61、S62、及び、ステップS41〜S43は、図6と同様であるため、説明を省略する。   Steps S61 and S62 and steps S41 to S43 are the same as those in FIG.

本実施形態は、ステップS62にて、外部電源から給電されていると判断した場合(Yes)の処理が異なる。   The present embodiment is different in processing when it is determined in step S62 that power is supplied from an external power source (Yes).

ステップS62にて、外部電源140から給電されていると判断した場合(Yes)、次のステップS71にて、ユーザ設定を確認する。具体的には、通信部123とネットワーク機器130との通信リンクが切断された(リンクダウン状態になった)ときに、どのような記録を行うかを示す設定を確認する。   If it is determined in step S62 that power is supplied from the external power supply 140 (Yes), the user setting is confirmed in the next step S71. Specifically, the setting indicating what kind of recording is performed when the communication link between the communication unit 123 and the network device 130 is disconnected (becomes a link-down state) is confirmed.

例えば、画像データの送信が通信障害等によって、中断したときに、外部の記録装置には記録できなくなる。そのため、二次記録部124に画像データを記録しておきたいというニーズがある。本実施形態の記録制御装置120は、通信リンクが切断された場合において二次記録部124への画像データの記録処理を行っていないときに、二次記録部124への画像データの記録を開始するか否かについて、ユーザが設定可能であるものとする。例えば、図示しない操作入力部を通じて操作入力を行うことで設定可能である。   For example, when transmission of image data is interrupted due to a communication failure or the like, it cannot be recorded in an external recording device. For this reason, there is a need to record image data in the secondary recording unit 124. The recording control apparatus 120 according to the present embodiment starts recording image data to the secondary recording unit 124 when the communication link is disconnected and the image data recording process to the secondary recording unit 124 is not performed. It is assumed that the user can set whether or not to do so. For example, it can be set by performing an operation input through an operation input unit (not shown).

次のステップS62にて、記録制御部11は、通信リンクが切断されたときに二次記録部124への画像データの記録を開始する設定であるか否か判断する。   In the next step S62, the recording control unit 11 determines whether or not the setting is to start recording of image data in the secondary recording unit 124 when the communication link is disconnected.

二次記録部124への画像データの記録を開始する設定ではない場合(No)、記録制御部11はステップS41〜S43の記録終了処理を実行する。ステップS41〜S43の記録終了処理は、図4と同様なため、説明を省略する。   If the setting is not to start recording of image data in the secondary recording unit 124 (No), the recording control unit 11 executes the recording end process of steps S41 to S43. The recording end process in steps S41 to S43 is the same as that in FIG.

記録終了処理が行われることで、通信リンクが切断された場合において二次記録部124への画像データの記録処理を既に行っている場合であっても、記録処理は終了される。これは、ユーザによって通信リンク切断時に記録を開始する設定がなされていないため、今回の通信リンクの切断に伴って、記録制御装置の使用が終了される可能性があると考えられるからである。つまり、短時間(数秒〜数分)の間に、外部電源140からの給電も停止される可能性があると考えられるからである。   By performing the recording end process, the recording process is ended even if the recording process of the image data to the secondary recording unit 124 has already been performed when the communication link is disconnected. This is because it is considered that there is a possibility that the use of the recording control apparatus may be terminated when the communication link is disconnected because the user has not been set to start recording when the communication link is disconnected. That is, it is considered that the power supply from the external power supply 140 may be stopped in a short time (several seconds to several minutes).

なお、二次記録部124への画像データの記録処理を行っていない場合において通信リンクが切断されたときであっても、記録終了処理を行ってもよい。これは、過去に撮像した画像データがまだ二次記録部124に記録されていない可能性があるためである。記録処理以外の他の処理の実行状況によっては、キャッシュ領域に記録されてから、二次記録部124に記録されるまでに数分程度かかることもある。   Note that the recording end process may be performed even when the communication link is disconnected when the recording process of the image data to the secondary recording unit 124 is not performed. This is because image data captured in the past may not be recorded in the secondary recording unit 124 yet. Depending on the execution status of processes other than the recording process, it may take about several minutes after recording in the cache area until recording in the secondary recording unit 124.

一方、二次記録部124への画像データの記録を開始する設定である場合(Yes)、記録終了処理を終了し、図2に示す記録処理に戻る。   On the other hand, if the setting is to start recording of image data in the secondary recording unit 124 (Yes), the recording end process is terminated and the process returns to the recording process shown in FIG.

これは、ユーザによって通信リンク切断時に記録を開始する設定がなされているため、今回の通信リンクの切断に伴って、記録制御装置の使用は終了されず、短時間(数分)の間に、外部電源140からの給電が停止される可能性は低いと考えられるからである。   This is because the user is set to start recording when the communication link is disconnected, so the use of the recording control device is not terminated with the disconnection of the communication link this time, and in a short time (several minutes), This is because it is considered unlikely that power supply from the external power supply 140 is stopped.

以上のように、リンクダウン状態になったことを契機として、外部電源140からの電力供給が停止される可能性があるか否か判断する。具体的には、通信リンクが切断された場合に二次記録部124への画像データの記録を開始する設定がユーザによって設定されているかどうかに基づいて判断する。   As described above, it is determined whether or not there is a possibility that the power supply from the external power supply 140 is stopped when the link-down state is entered. Specifically, the determination is made based on whether or not a setting for starting recording of image data in the secondary recording unit 124 when the communication link is disconnected is set by the user.

そうすることで、本実施形態によれば、記録終了処理を行うことが必要かどうかをより正確に判断することができる。   By doing so, according to the present embodiment, it is possible to more accurately determine whether it is necessary to perform a recording end process.

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

また、画像データを記録する技術について説明したが、画像データに限らず、種々のデータを記録する処理に適用可能である。   Further, the technique for recording image data has been described, but the present invention is not limited to image data, and can be applied to processing for recording various data.

また、本発明は以上説明した各実施形態に限定されることはなく、本発明の要旨を逸脱しない範囲において種々変更が可能である。例えば、各実施形態を組み合わせてもよい。
また、「電源回路125への電力供給がネットワークケーブルで行われている場合」とは、電力供給が止まった直後の数秒間を含むものとする。また、以上の実施形態では通信ケーブルとしてネットワークケーブルを例に説明したが、通信リンクの確立の有無によって給電の状態を識別可能なものであれば他の通信ケーブルであってもよい。
The present invention is not limited to the embodiments described above, and various modifications can be made without departing from the scope of the present invention. For example, you may combine each embodiment.
Further, “when power is supplied to the power supply circuit 125 via a network cable” includes a few seconds immediately after the power supply is stopped. In the above embodiment, the network cable is described as an example of the communication cable. However, other communication cables may be used as long as the power supply state can be identified based on the presence / absence of establishment of the communication link.

100 撮像装置
110 撮像部
120 記録制御装置
121 制御部
1、11 記録制御部
2 通信制御部
122 一次記録部
124 二次記録部
123 通信部
125 電源回路
130 ネットワーク機器
140 外部電源
DESCRIPTION OF SYMBOLS 100 Image pick-up device 110 Image pick-up part 120 Recording control apparatus 121 Control part 1, 11 Recording control part 2 Communication control part 122 Primary recording part 124 Secondary recording part 123 Communication part 125 Power supply circuit 130 Network apparatus 140 External power supply

Claims (10)

記録制御装置であって、
通信ケーブルで外部と通信可能な通信手段と、
前記通信ケーブルと、前記通信ケーブル以外のケーブルとの少なくともいずれかで電力供給を受けることが可能な電源回路と、
前記電源回路による電力供給で動作し、データを記録手段に記録する記録制御手段と
を備え、
前記通信手段と前記外部との通信リンクが確立している状態から確立していない状態になったときに、前記記録手段にデータを記録する処理を開始するかを前記記録制御装置に設定可能であり、
前記記録制御手段は、前記通信手段と前記外部との通信リンクが確立している状態から確立していない状態になり、かつ、前記記録手段にデータを記録する処理を開始する設定ではない場合に、記録終了処理を行う、
ことを特徴とする記録制御装置。
A recording control device,
A communication means capable of communicating with the outside via a communication cable;
A power supply circuit capable of receiving power supply in at least one of the communication cable and a cable other than the communication cable;
Operating with power supply by the power supply circuit, and recording control means for recording data in the recording means,
It is possible to set in the recording control device whether to start the process of recording data in the recording means when the communication means and the external communication link are established from the established state. Yes,
The recording control unit is in a state in which a communication link between the communication unit and the outside is established, but is not established, and is not set to start processing for recording data in the recording unit. , Record end processing,
A recording control apparatus.
前記電源回路は、一時的に電荷を蓄えることが可能である、
ことを特徴とする請求項1記載の記録制御装置。
The power supply circuit is capable of temporarily storing electric charges,
The recording control apparatus according to claim 1.
前記記録制御手段は、前記通信手段と前記外部との通信リンクが確立している状態から確立していない状態になり、かつ、前記電源回路への電力供給が前記通信ケーブルで行われていない場合に、前記記録終了処理を行う
ことを特徴とする請求項1記載の記録制御装置。
The recording control unit is in a state where a communication link between the communication unit and the outside is established from a state where it is not established, and power is not supplied to the power supply circuit via the communication cable. The recording control apparatus according to claim 1, wherein the recording end process is performed.
前記記録制御手段は、所定の間隔で、前記電源回路が前記通信ケーブル以外の前記ケーブルで電力供給を受けているかを示す給電情報を更新し、
前記記録制御手段は、前記給電情報を参照して、前記電源回路が前記通信ケーブル以外の前記ケーブルで電力供給を受けているか判断する
ことを特徴とする請求項3記載の記録制御装置。
The recording control unit updates power supply information indicating whether the power supply circuit is supplied with power by the cable other than the communication cable at a predetermined interval,
The recording control apparatus according to claim 3, wherein the recording control unit determines whether the power supply circuit is supplied with power by the cable other than the communication cable with reference to the power supply information.
前記記録手段は、一次記録手段の所定の記録領域に記録されたデータを、前記記録手段に記録する、
ことを特徴とする請求項1〜4のいずれか1項に記載の記録制御装置。
The recording means records data recorded in a predetermined recording area of the primary recording means on the recording means;
The recording control apparatus according to claim 1, wherein the recording control apparatus is a recording apparatus.
前記記録終了処理は、前記一次記録手段の前記所定の記録領域に新たなデータを記録させずに、前記確立していない状態になったときにおいて前記一次記録手段の所定の記録領域に記録されているが前記記録手段に記録されていないデータを、前記記録手段に記録する処理である
ことを特徴とする請求項5記載の記録制御装置。
In the recording end process, new data is not recorded in the predetermined recording area of the primary recording means, and is recorded in the predetermined recording area of the primary recording means when the state is not established. 6. The recording control apparatus according to claim 5, wherein the recording control apparatus records data that is recorded in the recording unit but is not recorded in the recording unit.
画像データを補正する画像処理手段を備え、
前記記録制御手段は、前記画像処理手段における処理よりも先に前記記録終了処理を実行する、
ことを特徴とする請求項1〜6のいずれか1項に記載の記録制御装置。
Image processing means for correcting the image data;
The recording control means executes the recording end processing prior to the processing in the image processing means;
The recording control apparatus according to claim 1, wherein the recording control apparatus is a recording apparatus.
画像データに基づく画像に含まれる物体を検出する物体検出手段を備え、
前記記録制御手段は、前記物体検出手段における処理よりも先に前記記録終了処理を実行する、
ことを特徴とする請求項1〜7のいずれか1項に記載の記録制御装置。
Comprising an object detection means for detecting an object included in the image based on the image data;
The recording control means executes the recording end processing prior to the processing in the object detection means;
The recording control apparatus according to claim 1, wherein the recording control apparatus is a recording apparatus.
記録制御装置が実行する記録制御方法であって、
電源回路が、通信ケーブルと、前記通信ケーブル以外のケーブルとの少なくともいずれかで電力供給を受ける工程と、
記録制御手段が、データを記録手段に記録する記録制御工程と、
前記記録制御手段が、記録終了処理を行う記録終了工程と
を有し、
外部との通信リンクが確立している状態から確立していない状態になったときに、前記記録手段にデータを記録する処理を開始するかを前記記録制御装置に設定可能であり、
前記外部との通信リンクが確立している状態から確立していない状態になり、かつ、前記記録手段にデータを記録する処理を開始する設定ではない場合に、前記記録終了工程において、前記記録制御手段が前記記録終了処理を行う、
ことを特徴とする記録制御方法。
A recording control method executed by the recording control apparatus,
A step in which the power supply circuit is supplied with power by at least one of a communication cable and a cable other than the communication cable;
A recording control means for recording data in the recording means;
The recording control means includes a recording end process for performing a recording end process;
When the communication link with the outside is established from the established state, it is possible to set in the recording control device whether to start the process of recording data in the recording means,
In the recording end step, the recording control is performed when the communication link with the outside has been established but has not been established, and the recording means is not set to start processing for recording data. Means performs the recording end processing;
And a recording control method.
請求項9記載の記録制御工程と記録終了工程とをコンピュータに実行させるためのプログラム。   A program for causing a computer to execute the recording control step and the recording end step according to claim 9.
JP2015150516A 2015-07-30 2015-07-30 RECORDING CONTROL DEVICE, RECORDING CONTROL METHOD, AND PROGRAM Active JP6598555B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2015150516A JP6598555B2 (en) 2015-07-30 2015-07-30 RECORDING CONTROL DEVICE, RECORDING CONTROL METHOD, AND PROGRAM

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2015150516A JP6598555B2 (en) 2015-07-30 2015-07-30 RECORDING CONTROL DEVICE, RECORDING CONTROL METHOD, AND PROGRAM

Publications (2)

Publication Number Publication Date
JP2017033145A JP2017033145A (en) 2017-02-09
JP6598555B2 true JP6598555B2 (en) 2019-10-30

Family

ID=57988834

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2015150516A Active JP6598555B2 (en) 2015-07-30 2015-07-30 RECORDING CONTROL DEVICE, RECORDING CONTROL METHOD, AND PROGRAM

Country Status (1)

Country Link
JP (1) JP6598555B2 (en)

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005316593A (en) * 2004-04-27 2005-11-10 Sony Corp Power controller and power control method
JP2010258626A (en) * 2009-04-22 2010-11-11 Canon Electronics Inc Image reading apparatus, method of controlling the same, and program

Also Published As

Publication number Publication date
JP2017033145A (en) 2017-02-09

Similar Documents

Publication Publication Date Title
JP5063280B2 (en) File transfer system, client, server
KR101808468B1 (en) Data storage device, data storage method, and recording medium
US9967473B2 (en) Information processing apparatus, information processing method, and program
CN102227131A (en) Hot backup system of NVR and method thereof
CN106326031A (en) Information processing apparatus, information processing system, control method for the information processing apparatus
KR20150085311A (en) Multi managing apparatus interlocking sensor of image data
US11190648B2 (en) Imaging system, imaging control method therefor, imaging control apparatus, radiation detector, and storage medium
US20150062344A1 (en) Monitoring Camera Device and Monitoring Camera System
JP6598555B2 (en) RECORDING CONTROL DEVICE, RECORDING CONTROL METHOD, AND PROGRAM
JP5094655B2 (en) Imaging device
JP7319820B2 (en) Communication device and its control method and program
JP6602106B2 (en) COMMUNICATION DEVICE, ITS CONTROL METHOD, AND PROGRAM
US11048456B2 (en) Image forming apparatus and event detection system
JP6341657B2 (en) COMMUNICATION DEVICE, ITS CONTROL METHOD, SYSTEM, PROGRAM, AND STORAGE MEDIUM
JP5065201B2 (en) Imaging device
US9852760B2 (en) Image recording apparatus, control method of the same, and recording medium
JP6216138B2 (en) Image management system and center device
JP2017073737A (en) Communication device, control method for communication device, and program
JP2008236692A (en) Imaging apparatus and picked-up image data processing method therefor
JP2017033613A (en) Recording control device, recording control method, and program
JP2008141537A5 (en)
JP6598646B2 (en) Image management apparatus, imaging apparatus, control method of image management apparatus, and program
JP2021005839A (en) Imaging apparatus and program of the same
JP2005223543A (en) Electronic camera apparatus
KR20190012567A (en) Surveillance system providing object situation information

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20180703

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20181204

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20190131

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20190507

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20190705

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20191001

R151 Written notification of patent or utility model registration

Ref document number: 6598555

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151