JP2009020649A - Storage controller - Google Patents

Storage controller Download PDF

Info

Publication number
JP2009020649A
JP2009020649A JP2007181855A JP2007181855A JP2009020649A JP 2009020649 A JP2009020649 A JP 2009020649A JP 2007181855 A JP2007181855 A JP 2007181855A JP 2007181855 A JP2007181855 A JP 2007181855A JP 2009020649 A JP2009020649 A JP 2009020649A
Authority
JP
Japan
Prior art keywords
hdd
sata
cpu
storage
transfer
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.)
Withdrawn
Application number
JP2007181855A
Other languages
Japanese (ja)
Inventor
Sadayasu Ishii
貞安 石井
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.)
Sanyo Electric Co Ltd
Original Assignee
Sanyo Electric Co Ltd
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 Sanyo Electric Co Ltd filed Critical Sanyo Electric Co Ltd
Priority to JP2007181855A priority Critical patent/JP2009020649A/en
Publication of JP2009020649A publication Critical patent/JP2009020649A/en
Withdrawn legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To provide a storage controller which can continuously record data by detecting the abnormality of an HDD and switching MASTER/SLAVE. <P>SOLUTION: A DVR 12 is connected to two SATA converters 14a, 14b via PATA cables. The SATA converter 14a is connected to a SATAHDD 16a via a SATA cable, and the SATA converter 14b is connected to a SATAHDD 16b via a SATA cable. The DVR 12 controls each of the SATA converters 14a, 14b via three cables different from the PATA cable, and sets the SATA converters 14a, 14b for a MASTERHDD and a SLAVEHDD, respectively. Additionally, the DVR 12, if it is determined that the MASTERHDD is abnormal, switches the MASTER/SLAVE for the SATA converters 14a, 14b. <P>COPYRIGHT: (C)2009,JPO&INPIT

Description

この発明は、記憶制御装置に関し、特にたとえば複数台の記憶装置へのデータ転送を制御する、記憶制御装置に関する。   The present invention relates to a storage control device, and more particularly to a storage control device that controls data transfer to a plurality of storage devices, for example.

近年、ハードディスク装置を搭載したデジタルカメラ、デジタルビデオなどが開発されており、この種の装置の一例が、特許文献1に開示されている。この背景技術によれば、デジタルカメラは制御部とATA(Advanced Technology Attachment)インターフェイスを備える。ATAインターフェイスは、1本のPATA(パラレルATA)PATAケーブルで内蔵HDD(Hard Disk Drive)と外付HDDとを接続する。ATAインターフェイスは、PATAケーブルの共有データラインを通して、内蔵HDDと外付HDDとに画像データを記録する。また、制御部は、内蔵HDDをマスタデバイスとして認識し、外付HDDをスレーブデバイスとして認識することで、内蔵HDDと外付HDDとに画像データを記録する。つまり、デジタルカメラは、ATAインターフェイスで2台のHDDを接続し、画像データを記録する。同様にして、デジタルビデオでは動画データを記録する。
特開2006−121621号公報[H04N 5/225, G06F 13/36, G06F 13/38, H04N 5/76, H04N 5/765]
In recent years, digital cameras equipped with a hard disk device, digital video, and the like have been developed, and an example of this type of device is disclosed in Patent Document 1. According to this background art, the digital camera includes a control unit and an ATA (Advanced Technology Attachment) interface. The ATA interface connects an internal HDD (Hard Disk Drive) and an external HDD with a single PATA (Parallel ATA) PATA cable. The ATA interface records image data on the internal HDD and the external HDD through the shared data line of the PATA cable. The control unit also recognizes the internal HDD as a master device and recognizes the external HDD as a slave device, thereby recording image data in the internal HDD and the external HDD. That is, the digital camera connects two HDDs with an ATA interface and records image data. Similarly, moving image data is recorded in digital video.
JP 2006-121621 A [H04N 5/225, G06F 13/36, G06F 13/38, H04N 5/76, H04N 5/765]

しかし、背景技術では、マスタデバイスとして認識したHDDの異常によって共通のデータラインを占有した場合、HDDのマスタデバイス/スレーブデバイスの認識を切り替える手段を持っていないため、動画などの連続性のあるデータを記録し続けることができないという問題がある。   However, in the background art, when a common data line is occupied due to an abnormality of the HDD recognized as the master device, there is no means for switching the recognition of the master device / slave device of the HDD. There is a problem that it is not possible to continue recording.

それゆえに、この発明の主たる目的は、記憶装置であるHDDの異常を検出して記憶装置に記憶処理を実行させるための優先順位(マスタ/スレーブ)を切り替えることで、データを転送(記録)し続けることができる、記憶制御装置を提供することである。   Therefore, a main object of the present invention is to transfer (record) data by switching an order of priority (master / slave) for detecting an abnormality of the HDD as a storage device and causing the storage device to execute storage processing. It is to provide a storage controller that can continue.

この発明に従う記憶制御装置は、第1通信規格のデータを記憶する複数の記憶装置、第2通信規格のデータを複数の記憶装置に共通のデータラインで転送する転送手段、転送手段と複数の記憶装置との間に接続され、第2通信規格のデータを第1通信規格のデータにそれぞれ変換する複数の変換手段、および複数の変換手段をデータラインとは異なる信号ラインで制御する制御手段を備える。   A storage control device according to the present invention includes a plurality of storage devices that store data of a first communication standard, a transfer unit that transfers data of a second communication standard to a plurality of storage devices through a common data line, a transfer unit, and a plurality of storages A plurality of conversion means for connecting the data of the second communication standard to the data of the first communication standard, and a control means for controlling the plurality of conversion means by a signal line different from the data line. .

また、転送手段は、複数の記憶装置の異常を検出する検出手段を含み、制御手段は、複数の記憶装置のいずれか1つに記憶処理を実行させるための優先順位を複数の変換手段に設定する設定手段、および設定手段によって設定された優先順位を検出手段によって異常が検出されたとき変更する変更手段を含む。   The transfer means includes detection means for detecting an abnormality in the plurality of storage devices, and the control means sets priority for causing the storage processing to be executed by any one of the plurality of storage devices in the plurality of conversion means. And setting means for changing the priority set by the setting means when an abnormality is detected by the detecting means.

記憶制御装置(10:実施例で相当する参照符号。以下同じ)は、複数の記憶装置(16a,16b)と転送手段(121,124)と変換手段(14a,14b)と制御手段(121, 122)とを備える。複数の記憶装置は第1通信規格のデータを記憶する。転送手段は第2通信規格のデータを複数の記憶装置に共通のデータラインで転送する。複数の変換手段は、転送手段と複数の記憶装置との間に接続され、第2通信規格のデータを第1通信規格のデータにそれぞれ変換する。制御手段は複数の変換手段をデータラインとは異なる信号ラインで制御する。   The storage control device (10: reference numerals corresponding to the embodiments; the same applies hereinafter) includes a plurality of storage devices (16a, 16b), transfer means (121, 124), conversion means (14a, 14b), and control means (121, 122). With. The plurality of storage devices store data of the first communication standard. The transfer means transfers data of the second communication standard to a plurality of storage devices through a common data line. The plurality of conversion units are connected between the transfer unit and the plurality of storage devices, and respectively convert the data of the second communication standard into the data of the first communication standard. The control means controls the plurality of conversion means with a signal line different from the data line.

また、転送手段は検出手段(S11,S15,S29)を含む。検出手段は複数の記憶装置の異常を検出する。制御手段は設定手段と変更手段とを含む。設定手段(S3)は複数の記憶装置のいずれか1つに記憶処理を実行させるための優先順位を複数の変換手段に設定する。変更手段(S75)は設定手段によって設定された優先順位を検出手段によって異常が検出されたとき変更する。   The transfer means includes detection means (S11, S15, S29). The detecting means detects an abnormality in the plurality of storage devices. The control means includes setting means and changing means. The setting means (S3) sets the priority order for causing one of the plurality of storage devices to execute the storage process for the plurality of conversion means. The changing means (S75) changes the priority set by the setting means when an abnormality is detected by the detecting means.

したがって、転送手段は、優先順位に従う変換手段が接続する記憶装置にデータ転送をする。そして、変更手段は、転送手段が優先順位に従う記憶装置へデータ転送中に、検出手段によって異常を検出した記憶装置を接続する変換手段の優先順位を変更する。これによって、他の変換手段の優先順位が一番高くなるため、転送手段は、異常を検出した記憶装置以外の記憶装置に動画などの連続したデータを転送し続ける。   Therefore, the transfer means transfers data to the storage device to which the conversion means according to the priority order is connected. Then, the changing unit changes the priority of the conversion unit that connects the storage device in which the abnormality is detected by the detection unit while the transfer unit is transferring data to the storage device according to the priority. As a result, the priority of the other conversion means becomes the highest, so that the transfer means continues to transfer continuous data such as a moving image to a storage device other than the storage device that detected the abnormality.

好ましくは、複数の変換手段は、変換手段が接続する記憶装置と転送手段とのデータ転送を停止する停止手段(141)を含み、制御手段は、検出手段によって異常が検出された記憶装置と転送手段とのデータ転送を停止手段によって停止させるデータ転送停止手段(S49, S53,S65,S79)をさらに含み、変更手段は、検出手段によって異常が検出された記憶装置を接続する変換手段とは異なる変換手段の優先順位を上げる。   Preferably, the plurality of conversion means include stop means (141) for stopping data transfer between the storage device connected to the conversion means and the transfer means, and the control means transfers data to the storage device in which the abnormality is detected by the detection means. The data transfer stop means (S49, S53, S65, S79) for stopping the data transfer with the means by the stop means is further included, and the changing means is different from the conversion means for connecting the storage device in which the abnormality is detected by the detecting means. Increase the priority of the conversion means.

したがって、検出手段が記憶装置の異常を検出した場合は、制御手段は、異常を検出した記憶装置を接続する変換手段に含まれる停止手段によって異常を検出した記憶装置と転送手段とのデータ転送を停止する。そして、異常を検出した記憶装置を接続する変換手段の優先順位を変更する。これによって、他の変換手段の優先順位が一番高くなるため、転送手段は、異常を検出した記憶装置以外の記憶装置に動画などの連続したデータを転送し続ける。   Therefore, when the detection unit detects an abnormality in the storage device, the control unit performs data transfer between the storage device in which the abnormality is detected by the stop unit included in the conversion unit that connects the storage device in which the abnormality is detected and the transfer unit. Stop. Then, the priority order of the conversion means for connecting the storage device in which the abnormality is detected is changed. As a result, the priority of the other conversion means becomes the highest, so that the transfer means continues to transfer continuous data such as a moving image to a storage device other than the storage device that detected the abnormality.

さらに好ましくは、検出手段は、複数の記憶装置が検出する自己診断情報から異常を検出する第1異常検出手段(S15)を含み、データ転送停止手段は、第1異常検出手段によって異常が検出された記憶装置と転送手段とのデータ転送を停止手段によって停止させる第1転送停止手段(S65,S79)を含み、変更手段は、第1異常検出手段によって異常が検出された記憶装置を接続する変換手段とは異なる変換手段の優先順位を上げる。   More preferably, the detection means includes first abnormality detection means (S15) for detecting an abnormality from self-diagnosis information detected by a plurality of storage devices, and the data transfer stop means detects an abnormality by the first abnormality detection means. Including a first transfer stop means (S65, S79) for stopping data transfer between the storage device and the transfer means by the stop means, and the changing means converts the storage device in which the abnormality is detected by the first abnormality detection means. The priority of the conversion means different from the means is raised.

したがって、検出手段は、複数の記憶装置が検出する自己診断情報から複数の記憶装置の異常を検出する。そして、第1転送停止手段は、第1異常検出手段によって異常を検出された記憶装置と転送手段とのデータ転送を停止する。   Therefore, the detecting means detects abnormality of the plurality of storage devices from the self-diagnosis information detected by the plurality of storage devices. The first transfer stopping unit stops data transfer between the storage device and the transfer unit in which the abnormality is detected by the first abnormality detecting unit.

さらに好ましくは、検出手段は、転送手段によるデータ転送処理の異常を検出する第2異常検出手段(S11,S29)を含み、データ転送停止手段は、現在記憶処理を実行中の記憶装置と転送手段とのデータ転送を停止手段によって停止させる第2転送停止手段(S49,S53, S65,S79)を含み、変更手段は、現在記憶処理を実行中の記憶装置を接続する変換手段とは異なる変換手段の優先順位を上げる。   More preferably, the detection means includes second abnormality detection means (S11, S29) for detecting an abnormality in the data transfer process by the transfer means, and the data transfer stop means includes the storage device currently executing the storage process and the transfer means. The second transfer stop means (S49, S53, S65, S79) for stopping the data transfer with the stop means, and the changing means is different from the conversion means for connecting the storage device that is currently executing the storage process. Increase the priority.

したがって、検出手段は、転送手段によるデータ転送処理の異常を検出する。そして、第2転送停止手段は、第2異常検出手段によって異常を検出された記憶装置と転送手段とのデータ転送を停止する。   Therefore, the detection unit detects an abnormality in the data transfer process by the transfer unit. The second transfer stop unit stops data transfer between the storage device and the transfer unit in which the abnormality is detected by the second abnormality detection unit.

さらに好ましくは、第1転送停止手段および/または第2転送停止手段によって停止された変換手段が接続する記憶装置の状態を表示する表示手段(20)をさらに備える。   More preferably, it further comprises display means (20) for displaying the state of the storage device connected to the conversion means stopped by the first transfer stop means and / or the second transfer stop means.

したがって、表示手段は、停止された変換手段が接続する記憶装置の状態を表示することで、使用者に停止した記憶装置の交換を促す。   Therefore, the display means prompts the user to replace the stopped storage device by displaying the state of the storage device connected to the stopped conversion means.

さらに好ましくは、制御手段は、停止された変換手段が接続する記憶装置を異常でない記憶装置に交換されたかを判定する交換判定手段(S95)、異常でない記憶装置と転送手段とのデータ転送を再開させる再開手段(S109)をさらに含む。   More preferably, the control means determines whether the storage device connected to the stopped conversion means has been replaced with a storage device that is not abnormal, and restarts data transfer between the storage device that is not abnormal and the transfer unit. And restarting means (S109).

したがって、異常でない記憶装置と転送手段とのデータ転送を再開することで、転送手段は、全て正常な複数の記憶装置にデータを転送している状態に復帰する。   Therefore, by restarting the data transfer between the storage device that is not abnormal and the transfer unit, the transfer unit returns to a state in which data is transferred to a plurality of normal storage devices.

さらに好ましくは、転送手段は、現在記憶処理を実行中の記憶装置を記憶容量の限界まで記憶処理したことを判定する限界判定手段(S35,S39)、限界判定手段によって記憶容量が限界と判定されたデータ転送中の記憶装置からデータ転送中の記憶装置以外の記憶装置と交替させる交替手段(S37,S41)をさらに含む。   More preferably, the transfer means is a limit determination means (S35, S39) that determines that the storage device that is currently executing the storage process has been processed to the limit of the storage capacity, and the limit determination means determines that the storage capacity is the limit. Further included is a replacement means (S37, S41) for replacing the storage device that is transferring data with a storage device other than the storage device that is transferring data.

したがって、記憶装置の異常が検出されない場合は、優先順位に関係なくデータ転送する記憶装置を切り替えることで、動画などの連続したデータを転送し続ける。   Therefore, when no abnormality is detected in the storage device, continuous data such as a moving image is continuously transferred by switching the storage device to which the data is transferred regardless of the priority order.

さらに好ましくは、動画を撮影する撮影手段(22)、および前記撮影手段が撮影した動画を複数の記憶装置に転送可能なデータに変換する動画変換手段(121,123)を備える。転送手段は、動画変換手段が変換したデータを複数の記憶装置に転送する。   More preferably, it includes a photographing unit (22) for photographing a moving image, and a moving image conversion unit (121, 123) for converting the moving image photographed by the photographing unit into data that can be transferred to a plurality of storage devices. The transfer unit transfers the data converted by the moving image conversion unit to a plurality of storage devices.

したがって、記憶制御装置は、撮影手段が動画を撮影し続ける場合に、動画データを転送し続ける。   Therefore, the storage control device continues to transfer the moving image data when the imaging unit continues to capture the moving image.

この発明によれば、記憶装置の異常を検出して記憶装置に記憶処理を実行させるための優先順位を切り替えることで、データを転送し続けることができる。   According to the present invention, data transfer can be continued by switching the priority order for detecting an abnormality of the storage device and causing the storage device to execute the storage process.

この発明の上述の目的、その他の目的、特徴および利点は、図面を参照して行う以下の実施例の詳細な説明から一層明らかとなろう。   The above object, other objects, features and advantages of the present invention will become more apparent from the following detailed description of embodiments with reference to the drawings.

図1を参照して、この実施例の動画記録制御装置10はDVR12を含む。DVR12はPATAケーブルを介してPATAケーブルとSATA(シリアルATA)規格のSATAケーブルとの間のデータ転送方式を変換する2つのSATA変換器14a,14bと接続される。   With reference to FIG. 1, the moving image recording control apparatus 10 of this embodiment includes a DVR 12. The DVR 12 is connected via a PATA cable to two SATA converters 14a and 14b that convert a data transfer method between the PATA cable and a SATA (Serial ATA) standard SATA cable.

SATA変換器14aはSATAケーブルを介してSATAHDD16aと接続され、SATA変換器14bはSATAケーブルを介してSATAHDD16bと接続される。   The SATA converter 14a is connected to the SATA HDD 16a via a SATA cable, and the SATA converter 14b is connected to the SATA HDD 16b via a SATA cable.

DVR12は、PATAケーブルとは違う3本のケーブルから、ATA I/O ENABLE信号(以下、ENABLE信号という),MA/SL信号およびSP(SLAVE PRESENT)信号を制御信号として出力する。   The DVR 12 outputs ATA I / O ENABLE signal (hereinafter referred to as ENABLE signal), MA / SL signal and SP (SLAVE PRESENT) signal as control signals from three cables different from the PATA cable.

SATA変換器14aはDVR12から出力されるMA/SL信号によってMASTER(マスタ)に設定され、SATA変換器14bはDVR12から出力されるMA/SL信号によってSLAVE(スレーブ)に設定される。また、MASTERに設定されたSATA変換器14aと接続されたSATAHDD16aは、MASTERHDDとして説明し、SLAVEに設定されたSATA変換器14bと接続されたSATAHDD16bは、SLAVEHDDとして説明する。   The SATA converter 14a is set to MASTER (master) by the MA / SL signal output from the DVR 12, and the SATA converter 14b is set to SLAVE (slave) by the MA / SL signal output from the DVR 12. The SATA HDD 16a connected to the SATA converter 14a set to MASTER will be described as a MASTER HDD, and the SATA HDD 16b connected to the SATA converter 14b set to SLAVE will be described as a SLAVE HDD.

CAM22は、動画を撮影し、DVR12に動画を入力する。DVR12は、入力された動画をHDDに記録できる動画データに変換し、動画データを出力する。DVR12は、SATAHDD16aに動画データを記録する。   The CAM 22 captures a moving image and inputs the moving image to the DVR 12. The DVR 12 converts the input moving image into moving image data that can be recorded in the HDD, and outputs the moving image data. The DVR 12 records moving image data on the SATA HDD 16a.

DVR12は、MASTERHDDであるSATAHDD16aの故障状態を検出した場合に、SATA変換器14a,SATA変換器14bのMASTER/SLAVEの設定を切り替えて、新たにMASTERHDDとなったSATAHDD16bに動画データを記録する。   When the DVR 12 detects a failure state of the SATA HDD 16a that is the MASTER HDD, the DVR 12 switches the MASTER / SLAVE settings of the SATA converter 14a and the SATA converter 14b, and records the moving image data on the SATA HDD 16b that newly becomes the MASTER HDD.

DISP20は、DVR12がSATAHDD16a,16bの各々を故障状態と判定した場合に、使用者へSATAHDD16a,16bの各々の情報およびSATAHDD16a,16bの各々の交換を促す文字列を表示する。   When the DVR 12 determines that each of the SATA HDDs 16a and 16b is in a failure state, the DISP 20 displays information about each of the SATA HDDs 16a and 16b and a character string that prompts the user to replace each of the SATA HDDs 16a and 16b.

図2を参照して、DVR12はCPU121を含む。CPU121は信号生成器122,動画処理回路123およびPATA制御回路124を制御する。信号生成器122は、CPU121に制御されて制御信号としてENABLE信号,MA/SL信号およびSP信号をSATA変換器14a,14bへ出力する。   Referring to FIG. 2, DVR 12 includes a CPU 121. The CPU 121 controls the signal generator 122, the moving image processing circuit 123 and the PATA control circuit 124. The signal generator 122 is controlled by the CPU 121 to output the ENABLE signal, the MA / SL signal, and the SP signal as control signals to the SATA converters 14a and 14b.

ここで、図3を参照して、ENABLE信号,MA/SL信号およびSP信号について詳しく説明する。CPU121は、SATAHDD16aを故障状態と判定した時に、信号生成器122から、故障状態と判定したSATAHDD16aと接続されるSATA変換器14aへ出力されているENABLE信号をHIGH状態にさせ、PATA制御回路124とSATA変換器14aとのデータ通信を制限する。つまり、DVR12は、ENABLE信号をHIGH状態にさせ、SATAHDD16aとのデータ通信を制限することで、SATAHDD16aを停止状態と判定する。また、CPU121は、SATAHDD16aが正常に作動している時に、信号生成器122からSATA変換器14aへ出力されているENABLE信号をLOW状態にさせ、PATA制御回路124とSATA変換器14aとのデータ通信を制限しない。   Here, the ENABLE signal, the MA / SL signal, and the SP signal will be described in detail with reference to FIG. When the CPU 121 determines that the SATA HDD 16a is in the failure state, the CPU 121 sets the ENABLE signal output from the signal generator 122 to the SATA converter 14a connected to the SATA HDD 16a determined to be in the failure state to the HIGH state, Data communication with the SATA converter 14a is restricted. That is, the DVR 12 determines that the SATA HDD 16a is in a stopped state by setting the ENABLE signal to a HIGH state and restricting data communication with the SATA HDD 16a. Further, when the SATA HDD 16a is operating normally, the CPU 121 sets the ENABLE signal output from the signal generator 122 to the SATA converter 14a to the LOW state, and data communication between the PATA control circuit 124 and the SATA converter 14a. Do not limit.

CPU121は、信号生成器122にMA/SL信号をHIGH状態にさせ、SATA変換器14aをMASTERに設定する。また、CPU121は、信号生成器122にMA/SL信号をLOW状態とさせ、SATA変換器14bをSLAVEに設定する。さらに、CPU121は、SATA変換器14aおよびSATA変換器14bを同時に、MASTERまたはSLAVEに設定することはできない。   The CPU 121 causes the signal generator 122 to set the MA / SL signal to the HIGH state, and sets the SATA converter 14a to MASTER. Further, the CPU 121 causes the signal generator 122 to set the MA / SL signal to the LOW state, and sets the SATA converter 14b to SLAVE. Further, the CPU 121 cannot set the SATA converter 14a and the SATA converter 14b to MASTER or SLAVE at the same time.

CPU121は、SLAVEに設定したSATA変換器14bとPATA制御回路124との間でデータ通信可能な場合に、信号生成器122からSATA変換器14a,14bの各々へ出力されているSP信号をHIGH状態にさせる。また、CPU121は、SLAVEに設定したSATAHDD16bを故障状態と判定した時に、信号生成器122からMASTERに設定したSATA変換器14aへ出力されているSP信号をLOW状態にさせる。   When the data communication is possible between the SATA converter 14b set to SLAVE and the PATA control circuit 124, the CPU 121 outputs the SP signal output from the signal generator 122 to each of the SATA converters 14a and 14b in the HIGH state. Let me. Further, when the CPU 121 determines that the SATA HDD 16b set to SLAVE is in the failure state, the CPU 121 sets the SP signal output from the signal generator 122 to the SATA converter 14a set to MASTER to the LOW state.

動画処理回路123は、CPU121に制御されて、CAM22から入力された動画をHDDに記録できる動画データに変換し、PATA制御回路124に動画データを出力する。PATA制御回路124は、CPU121に制御されて動画データをPATA準拠のデータ転送モードで転送する。   The moving image processing circuit 123 is controlled by the CPU 121 to convert the moving image input from the CAM 22 into moving image data that can be recorded on the HDD, and outputs the moving image data to the PATA control circuit 124. The PATA control circuit 124 is controlled by the CPU 121 to transfer moving image data in a PATA-compliant data transfer mode.

また、PATA制御回路124は、CPU121に制御されて、MASTERHDDであるSATAHDD16aにアクセスする。さらに、PATA制御回路124は、アクセスしたMASTERHDDであるSATAHDD16aに動画データを転送することで、MASTERHDDであるSATAHDD16aに動画データを記録する。そして、PATA制御回路124は、SATAHDD16a,16bのいずれか、もしくは各々の故障状態を検出した場合に、CPU121へSATAHDD16a,16bの故障状態情報を出力する。よって、CPU121は、PATA制御回路124からの出力によってSATAHDD16a,16bの故障状態を判定し、信号生成器122を制御する。   Further, the PATA control circuit 124 is controlled by the CPU 121 to access the SATA HDD 16a that is a MASTER HDD. Further, the PATA control circuit 124 records the moving image data on the SATA HDD 16a that is the MASTER HDD by transferring the moving image data to the SATA HDD 16a that is the accessed MASTER HDD. When the PATA control circuit 124 detects either one of the SATA HDDs 16 a and 16 b or each of the failure states, the PATA control circuit 124 outputs the failure state information of the SATA HDDs 16 a and 16 b to the CPU 121. Therefore, the CPU 121 determines the failure state of the SATA HDDs 16 a and 16 b based on the output from the PATA control circuit 124 and controls the signal generator 122.

つまり、DVR12はMA/SL信号によって、SATA変換器14aをMASTERに設定し、SATA変換器14bをSLAVEに設定する。また、DVR12は、MASTERHDDであるSATAHDD16aにアクセスをして、MASTERHDDであるSATAHDD16aに動画データを記録する。さらに、DVR12は、MASTERに設定したSATA変換器14aと接続されるSATAHDD16aの故障状態と判定した時に、MA/SL信号でSATA変換器14aおよびSATA変換器14bのMASTER/SLAVEの設定を切り替えて、新たにMASTERに設定したSATA変換器14bと接続されるSATAHDD16bに動画データを記録する。   That is, the DVR 12 sets the SATA converter 14a to MASTER and sets the SATA converter 14b to SLAVE by the MA / SL signal. Further, the DVR 12 accesses the SATA HDD 16a that is the MASTER HDD, and records moving image data in the SATA HDD 16a that is the MASTER HDD. Further, when the DVR 12 determines that the SATA HDD 16a connected to the SATA converter 14a set to MASTER is in a failure state, the DVR 12 switches the MASTER / SLAVE setting of the SATA converter 14a and the SATA converter 14b with the MA / SL signal. The moving image data is recorded on the SATA HDD 16b connected to the SATA converter 14b newly set to MASTER.

ここで、HDDの記憶容量が限界の状態であることをFULL状態として、PATA制御回路124が、動画データを記録中のMASTERHDDであるSATAHDD16aがFULL状態であると判定したときを説明する。PATA制御回路124は、CPU121にSATAHDD16aのFULL状態情報を出力する。また、CPU121は、PATA制御回路124を制御して、SLAVEに設定したSATA変換器14bと接続されるSATAHDD16bに動画データを記録する。   Here, the case where the PATA control circuit 124 determines that the SATA HDD 16a, which is the MASTER HDD that is recording the moving image data, is in the FULL state, assuming that the storage capacity of the HDD is in the limit state. The PATA control circuit 124 outputs FULL state information of the SATA HDD 16 a to the CPU 121. Further, the CPU 121 controls the PATA control circuit 124 to record moving image data on the SATA HDD 16b connected to the SATA converter 14b set to SLAVE.

さらに、CPU121は、SLAVEに設定したSATA変換器14bと接続されるSATAHDD16bのFULL状態情報を検出すると、PATA制御回路124にMASTERに設定したSATA変換器14aが接続するSATAHDD16aに再びアクセスさせて動画データを上書き記録させる。また、PATA制御回路124は、上書き記録によってSATAHDD16aの記憶容量の限界まで記録すると、FULL状態としてCPU121へSATAHDD16aのFULL状態情報を出力する。   Further, when the CPU 121 detects the FULL state information of the SATA HDD 16b connected to the SATA converter 14b set to SLAVE, the CPU 121 makes the PATA control circuit 124 access again to the SATA HDD 16a connected to the SATA converter 14a set to MASTER. Overwrite recording. In addition, when the PATA control circuit 124 records to the limit of the storage capacity of the SATA HDD 16a by overwrite recording, the PATA control circuit 124 outputs the FULL state information of the SATA HDD 16a to the CPU 121 as a FULL state.

つまり、DVR12は、MASTERHDDであるSATAHDD16aにアクセスした時にMASTERHDDであるSATAHDD16aのFULL状態情報を検出しても、SLAVEHDDであるSATAHDD16bにアクセスを切り替えず、MASTERHDDであるSATAHDD16aに動画データを上書き記録する。さらに、DVR12は、MASTERHDDであるSATAHDD16aの記憶容量の限界まで上書き記録すると、MASTERHDDであるSATAHDD16aのFULL状態情報を検出して、SLAVEHDDであるSATAHDD16bにアクセスして上書き記録する。よって、DVR12は、SATAHDD16aとSATAHDD16bと交互にアクセスすることで動画データを記録し続ける。   That is, even when the DVR 12 detects the FULL status information of the SATA HDD 16a that is the MASTER HDD when accessing the SATA HDD 16a that is the MASTER HDD, the DVR 12 does not switch the access to the SATA HDD 16b that is the SLAVE HDD, but overwrites and records the moving image data to the SATA HDD 16a that is the MASTER HDD. Further, when the DVR 12 performs overwrite recording to the limit of the storage capacity of the SATA HDD 16a that is the MASTER HDD, the DVR 12 detects the FULL status information of the SATA HDD 16a that is the MASTER HDD, and accesses and overwrites the SATA HDD 16b that is the SLAVE HDD. Therefore, the DVR 12 continues to record moving image data by alternately accessing the SATA HDD 16a and the SATA HDD 16b.

図4を参照して、SATA変換器14aは通信制御回路141を含む。通信制御回路141は、ENABLE信号に基づいて、DVR12に接続されているPATAケーブル内のデータ通信を制御する。また、SATA変換器14bも同様の構成とする。   Referring to FIG. 4, SATA converter 14 a includes a communication control circuit 141. The communication control circuit 141 controls data communication in the PATA cable connected to the DVR 12 based on the ENABLE signal. The SATA converter 14b has the same configuration.

変換回路142はPATAケーブルのデータ転送方式をSATAケーブルのデータ転送方式に変換し、SATAケーブルのデータ転送方式をPATAケーブルのデータ転送方式に変換する。また、変換回路142は、MA/SL信号およびSP信号に基づいて、SATAケーブルのデータ転送方式をPATAケーブルのデータ転送方式に変換する。   The conversion circuit 142 converts the data transfer method of the PATA cable into the data transfer method of the SATA cable, and converts the data transfer method of the SATA cable into the data transfer method of the PATA cable. The conversion circuit 142 converts the data transfer method of the SATA cable into the data transfer method of the PATA cable based on the MA / SL signal and the SP signal.

ここで、2台のPATA規格のHDDをPATAケーブルによってHDD制御側とPATA接続する場合を考える。2台のPATA規格のHDDはそれぞれ、MASTERおよびSLAVEに設定される。これによって、HDD制御部は、MASTERに設定されたPATA規格のHDDとSLAVEに設定されたPATA規格のHDDを識別して、PATA規格のHDDに情報を記録させている。しかし、本実施例で使用しているSATAHDD16a,16bはSATA準拠のシリアルHDDのためMASTER/SLAVEの設定をすることができない。   Here, consider a case where two PATA-standard HDDs are connected to the HDD control side via a PATA cable. Two PATA-standard HDDs are set to MASTER and SLAVE, respectively. Accordingly, the HDD control unit identifies the PATA standard HDD set to MASTER and the PATA standard HDD set to SLAVE, and records information in the PATA standard HDD. However, since the SATA HDDs 16a and 16b used in the present embodiment are SATA-compliant serial HDDs, MASTER / SLAVE cannot be set.

ところが、変換回路142は、MA/SL信号およびSP信号に基づいて、SATAケーブルの信号からPATAケーブルの信号への変換をするので、HDD制御部であるPATA制御回路124は、PATA接続したSATA変換器14a,14bのMASTER/SLAVEを識別できるようになる。   However, since the conversion circuit 142 converts the SATA cable signal to the PATA cable signal based on the MA / SL signal and the SP signal, the PATA control circuit 124 as the HDD control unit performs the PATA connection SATA conversion. The master / slave of the devices 14a and 14b can be identified.

つまり、SATA変換器14aとSATAHDD16a、およびSATA変換器14bとSATAHDD16bをそれぞれ1台のPATA規格のHDDとして考えると、使用者は、2台のPATA規格のHDDがDVR12にPATAケーブルで接続されているとみなすことができる。また、SATA変換器14aおよびSATA変換器14bは、どちらがMASTERに設定されてもよい。   That is, if the SATA converter 14a and the SATA HDD 16a, and the SATA converter 14b and the SATA HDD 16b are each considered as one PATA standard HDD, the user connects two PATA standard HDDs to the DVR 12 with a PATA cable. Can be considered. Either the SATA converter 14a or the SATA converter 14b may be set to MASTER.

SATAHDD16a,16bは、HDDの自己診断情報であるSMART(Self- Monitoring Analysis and Reporting Technology)情報と、SATAHDD16a,16bからDVR12への通信が異常となったことを通知するERRSTATUS信号を出力する。また、SMART情報はSATAHDD16a,16bのレジスタ18a,18bそれぞれに格納される。ここで、SATAHDD16a,16bの故障状態の一例を以下に示す。   The SATA HDDs 16a, 16b output SMART (Self-Monitoring Analysis and Reporting Technology) information, which is HDD self-diagnosis information, and an ERRSTATUS signal for notifying that the communication from the SATA HDDs 16a, 16b to the DVR 12 has become abnormal. The SMART information is stored in the registers 18a and 18b of the SATA HDDs 16a and 16b, respectively. Here, an example of a failure state of the SATA HDDs 16a and 16b is shown below.

1.SMTERR状態
2.ERRSTATUS状態
3.無応答状態
SMTERR状態とは、PATA制御回路124がSATAHDD16a,16bのレジスタ18a,18bそれぞれに格納されたSMART情報の異常情報を読み出した状態をいう。ERRSTATUS状態とは、PATA制御回路124からSATAHDD16aまたはSATAHDD16bへのデータ転送中に検出され、PATA制御回路124がデータ転送中のSATAHDD16aまたはSATAHDD16bからデータ記録失敗の通知をされた状態をいう。無応答状態とは、PATA制御回路124からSATAHDD16a,16bの各々へのアクセス中に検出され、PATA制御回路124がSATAHDD16a,16bの各々から応答がない状態を30秒間継続して検出した状態という。また、SATAHDD16a,16bが故障せず正常に動画データを記録し続ける状態を正常状態という。
1. SMTERR state 2. ERRORSTATUS state Non-response state The SMTERR state is a state in which the PATA control circuit 124 has read out abnormal information of SMART information stored in the registers 18a and 18b of the SATA HDDs 16a and 16b, respectively. The ERRSTATUS state is a state that is detected during data transfer from the PATA control circuit 124 to the SATAHDD 16a or SATAHDD 16b, and the PATA control circuit 124 is notified of a data recording failure from the SATAHDD 16a or SATAHDD 16b that is transferring data. The no-response state is a state that is detected during access from the PATA control circuit 124 to each of the SATA HDDs 16a and 16b, and that the PATA control circuit 124 continuously detects no response from each of the SATA HDDs 16a and 16b for 30 seconds. A state in which the SATA HDDs 16a and 16b continue to record moving image data normally without failure is referred to as a normal state.

先述した通り、SATAHDD16a,16bの故障状態はPATA制御回路124によって検出される。そのため、CPU121は、PATA制御回路124からの出力によってSATAHDD16a,16bの故障状態を判定する。   As described above, the failure state of the SATA HDDs 16a and 16b is detected by the PATA control circuit 124. Therefore, the CPU 121 determines the failure state of the SATA HDDs 16a and 16b based on the output from the PATA control circuit 124.

SATAHDD16aはSATA変換器14aへ出力されているENABLE信号がHIGH状態にされると停止状態と判定される。同様にして、SATAHDD16bはSATA変換器14bへ出力されているENABLE信号がHIGH状態にされると停止状態と判定される。また、DVR12は、MASTERに設定したSATA変換器14aと接続されるSATAHDD16aを停止状態と判定すると、MASTERであるHDDが停止状態である判定する。同様にして、DVR12は、SLAVEに設定したSATA変換器14bと接続されるSATAHDD16bを停止状態と判定すると、SLAVEであるHDDが停止状態であると判定する。   The SATA HDD 16a is determined to be in the stopped state when the ENABLE signal output to the SATA converter 14a is set to the HIGH state. Similarly, the SATA HDD 16b is determined to be in a stopped state when the ENABLE signal output to the SATA converter 14b is set to the HIGH state. When the DVR 12 determines that the SATA HDD 16a connected to the SATA converter 14a set to MASTER is in the stopped state, the DVR 12 determines that the HDD that is the MASTER is in the stopped state. Similarly, when the DVR 12 determines that the SATA HDD 16b connected to the SATA converter 14b set to SLAVE is in the stopped state, the DVR 12 determines that the HDD that is the SLAVE is in the stopped state.

図5〜図8を参照して、正常状態とSMTERR状態またはSMART情報取得時の無応答状態とERRSTATUS状態またはコマンド送信時の無応答状態との3つの状態に分けて動画データを記録する処理を説明する。   Referring to FIG. 5 to FIG. 8, the process of recording moving image data is divided into three states: a normal state, a SMTERR state or a no-response state when SMART information is acquired, and an ERRSTATUS state or a no-response state during command transmission. explain.

まず、正常状態の動画データを記録する処理について図5,図6を参照して具体的に説明すると、CPU121はステップS1でSATA変換器14aおよびSATA変換器14bがMASTER/SLAVEの設定がされているか否かを判定する。そして、NOと判定すると、CPU121は、ステップS3でSATA変換器14aをMASTERに設定し、SATA変換器14bをSLAVEに設定する。ここで、SATAHDD16aとSATAHDD16bとの状態、およびENABLE信号とMA/SL信号とSP信号の出力内容をまとめた結果を表1に示す。   First, the processing for recording the moving image data in the normal state will be specifically described with reference to FIGS. 5 and 6. In step S1, the CPU 121 sets the SATA converter 14a and the SATA converter 14b to MASTER / SLAVE. It is determined whether or not. If NO is determined, the CPU 121 sets the SATA converter 14a to MASTER in step S3, and sets the SATA converter 14b to SLAVE. Here, Table 1 shows a summary of the states of the SATA HDD 16a and the SATA HDD 16b, and the output contents of the ENABLE signal, the MA / SL signal, and the SP signal.

Figure 2009020649
Figure 2009020649

CPU121は続いて、PATA制御回路124にステップS5でMASTERHDDであるSATAHDD16aへアクセスを開始させる。CPU121は続いて、ステップS7で変数ERRの値を初期化する。変数ERRは、ERRSTATUS状態または無応答状態の時にインクリメントされる。   Subsequently, the CPU 121 causes the PATA control circuit 124 to start access to the SATA HDD 16a that is the MASTER HDD in step S5. Subsequently, the CPU 121 initializes the value of the variable ERR in step S7. The variable ERR is incremented when in an ERRSTATUS state or a no-response state.

CPU121は続いて、ステップS9でPATA制御回路124に各HDDのSMART情報を取得させる。CPU121は続いて、ステップS11で各HDDが無応答状態か否かを判定する。ここでは、CPU121は、NOと判定するため、ステップS13で変数ERRの値を初期化する。CPU121は続いて、ステップS15でSMTERR状態か否かを判定する。ここでは、CPU121は、NOと判定するため、ステップS17でMASTERHDDであるSATAHDD16aにアクセス中か否かを判定する。ここでは、CPU121は、YESと判定するため、ステップS19でPATA制御回路124にMASTERHDDであるSATAHDD16aへコマンドを送信させる。CPU121は続いて、ステップS29でERRSTATUS状態または無応答状態か否かを判定する。ここでは、CPU121は、NOと判定するため、ステップS31で変数ERRの値を初期化する。   Subsequently, the CPU 121 causes the PATA control circuit 124 to acquire SMART information of each HDD in step S9. Subsequently, in step S11, the CPU 121 determines whether each HDD is in a non-response state. Here, the CPU 121 initializes the value of the variable ERR in step S13 in order to determine NO. Subsequently, the CPU 121 determines whether or not the SMTERR state is set in step S15. Here, in order to determine NO, the CPU 121 determines whether or not the SATA HDD 16a that is the MASTER HDD is being accessed in step S17. Here, in order to determine YES, the CPU 121 causes the PATA control circuit 124 to transmit a command to the SATA HDD 16a that is the MASTER HDD in step S19. Subsequently, in step S29, the CPU 121 determines whether or not it is in the ERRSTATUS state or the no-response state. Here, the CPU 121 initializes the value of the variable ERR in step S31 in order to determine NO.

CPU121は続いて、ステップS33でMASTERHDDであるSATAHDD16aにアクセス中か否かを判定する。ここでは、CPU121は、YESと判定するため、ステップS35でMASTERHDDであるSATAHDD16aがFULL状態か否かを判定する。ここで、NOと判定すると、CPU121は、ステップS9に戻る。CPU121は、ステップS35でYESと判定すると、ステップS37でPATA制御回路124にSLAVEHDDであるSATAHDD16bへアクセスを開始させる。   Subsequently, in step S33, the CPU 121 determines whether or not the SATA HDD 16a that is the MASTER HDD is being accessed. Here, in order to determine YES, the CPU 121 determines in step S35 whether or not the SATA HDD 16a that is the MASTER HDD is in the FULL state. If the determination is NO, the CPU 121 returns to step S9. If the CPU 121 determines YES in step S35, it causes the PATA control circuit 124 to start accessing the SATAHDD 16b, which is the SLAVE HDD, in step S37.

CPU121は続いて、ステップS9に戻り、上述したMASTERHDDであるSATAHDD16aにアクセスする処理と同様にしてステップS9−S15の処理を行う。CPU121は続いて、ステップS17でNOと判定して、ステップS21でSLAVEHDDであるSATAHDD16bにコマンドを送信する。CPU121は続いて、MASTERHDDであるSATAHDD16aにアクセスする処理と同様にSLAVEHDDであるSATAHDD16bに対してステップS29−S31の処理を行う。CPU121は続いて、ステップS33でNOと判定して、ステップS39へ進む。ここで、NOと判定すると、CPU121は、ステップS9に戻る。さらにCPU121は、ステップS39でYESと判定すると、ステップS41でPATA制御回路124にMASTERHDDであるSATATHDD16aへアクセスを開始させる。   Subsequently, the CPU 121 returns to step S9, and performs the processes of steps S9 to S15 in the same manner as the process of accessing the SATA HDD 16a that is the MASTER HDD described above. Subsequently, the CPU 121 determines NO in step S17, and transmits a command to the SATA HDD 16b that is the SLAVE HDD in step S21. Subsequently, the CPU 121 performs the processes of steps S29 to S31 on the SATA HDD 16b that is the SLAVE HDD in the same manner as the process of accessing the SATA HDD 16a that is the MASTER HDD. Subsequently, the CPU 121 determines NO in step S33 and proceeds to step S39. If the determination is NO, the CPU 121 returns to step S9. If the CPU 121 determines YES in step S39, the CPU 121 causes the PATA control circuit 124 to start accessing the SATA HDD 16a that is the MASTER HDD in step S41.

ここで、動画データを記録するHDDがMASTERHDDであるSATAHDD16aからSLAVEHDDであるSATAHDD16bに変更され、再びMASTERHDDであるSATAHDD16a変更された状態となるが、CPU121は、MASTERHDDであるSATAHDD16aをFULL状態とは判定しない。よって、CPU121は、PATA制御回路124にMASTERHDDであるSATAHDD16aの記録済み記録領域へ動画データを再記録させる。さらに、CPU121は、再びMASTERHDDであるSATAHDD16aからSLAVEHDDであるSATAHDD16bに変更されても、MASTERHDDであるSATAHDD16aと同様にして、動画データを再記録させる。つまり、正常状態においてCPU121は、PATA制御回路124にMASTERHDDであるSATAHDD16aへのアクセスとSLAVEHDDであるSATAHDD16bへのアクセスを繰り返し行わせることで動画データを記録させ続ける。   Here, the HDD for recording the moving image data is changed from the SATA HDD 16a that is the MASTER HDD to the SATA HDD 16b that is the SLAVE HDD, and the SATA HDD 16a that is the MASTER HDD is changed again, but the CPU 121 does not determine that the SATA HDD 16a that is the MASTER HDD is in the FULL state. . Therefore, the CPU 121 causes the PATA control circuit 124 to re-record the moving image data in the recorded recording area of the SATA HDD 16a that is the MASTER HDD. Further, even if the CPU 121 is changed again from the SATA HDD 16a that is the MASTER HDD to the SATA HDD 16b that is the SLAVE HDD, the CPU 121 rerecords the moving image data in the same manner as the SATA HDD 16a that is the MASTER HDD. That is, in a normal state, the CPU 121 keeps recording moving image data by causing the PATA control circuit 124 to repeatedly access the SATA HDD 16a that is the MASTER HDD and the SATA HDD 16b that is the SLAVE HDD.

続いて、SMTERR状態またはSMART情報取得時の無応答状態の動画データを記録する処理について図5〜図8を参照して具体的に説明すると、CPU121はステップS1でSATA変換器14aおよびSATA変換器14bがMASTER/SLAVEの設定がされているか否かを判定する。そして、NOと判定すると、CPU121は、ステップS3でSATA変換器14aをMASTERに設定し、SATA変換器14bをSLAVEに設定する。CPU121は続いて、ステップS5でPATA制御回路124にMASTERHDDであるSATAHDD16aへアクセスを開始させる。CPU121は続いて、ステップS7で変数ERRの値を初期化する。CPU121は続いて、ステップS9でPATA制御回路124に各HDDとのSMART情報を取得させる。   Next, the process of recording the moving image data in the SMMTER state or the non-response state at the time of SMART information acquisition will be specifically described with reference to FIGS. 5 to 8. In step S <b> 1, the CPU 121 performs SATA converter 14 a and SATA converter 14b determines whether MASTER / SLAVE is set. If NO is determined, the CPU 121 sets the SATA converter 14a to MASTER in step S3, and sets the SATA converter 14b to SLAVE. Subsequently, in step S5, the CPU 121 causes the PATA control circuit 124 to start access to the SATA HDD 16a that is a MASTER HDD. Subsequently, the CPU 121 initializes the value of the variable ERR in step S7. Subsequently, in step S9, the CPU 121 causes the PATA control circuit 124 to acquire SMART information with each HDD.

CPU121は続いて、ステップS11で無応答状態か否かを判定する。ここでは、CPU121は、YESと判定するため、ステップS23で変数ERRの値をインクリメントする。CPU121はさらに続いて、ステップS25で変数ERRの値が3未満であるか否かを判定する。ここでは、CPU121は、YESと判定するので、ステップS27で各HDDを再起動させる。そして、CPU121はステップS9に戻りステップS11,ステップS23,ステップS25,ステップS27の処理を変数ERRの値が3以上と判定する、またはステップにてS11にて無応答状態と判定するまで繰り返し行う。   Subsequently, the CPU 121 determines whether or not there is a no-response state in step S11. Here, the CPU 121 increments the value of the variable ERR in step S23 to determine YES. Subsequently, the CPU 121 determines whether or not the value of the variable ERR is less than 3 in step S25. Here, since the CPU 121 determines YES, each HDD is restarted in step S27. Then, the CPU 121 returns to step S9 and repeats the processing of step S11, step S23, step S25, and step S27 until the value of the variable ERR is determined to be 3 or more, or until it is determined in step S11 that there is no response.

無応答状態のHDDは再起動されることで無応答状態でなくなる可能性がある。したがって、CPU121は、無応答状態を1度目の判定でHDDの無応答状態と判定せず、3度目の判定でHDDの無応答状態と判定する。   There is a possibility that the HDD in the non-response state is not in the non-response state by being restarted. Therefore, the CPU 121 determines that the non-response state is the HDD non-response state by the first determination, and determines the HDD non-response state by the third determination.

CPU121は、変数ERRの値が3以上と判定すると、ステップS25でNOと判定するため、ステップS61へ進む。ここで、ステップS11でNOと判定すると、CUP121は、MASTERHDDであるSATAHDD16aが無応答状態ではない、または無応答状態でなくなったとみなして、ステップS13で変数ERRの値を初期化し、ステップS15でSMTERR状態か否かを判定する。ここでは、CPU121は、YESと判定して、ステップS61へ進む。   When determining that the value of the variable ERR is 3 or more, the CPU 121 proceeds to step S61 in order to determine NO in step S25. If NO is determined in step S11, the CUP 121 considers that the SATA HDD 16a that is the MASTER HDD is not in the no-response state or has not been in the no-response state, initializes the value of the variable ERR in step S13, and in step S15, the SMTERR It is determined whether or not it is in a state. Here, the CPU 121 determines YES and proceeds to step S61.

CPU121は、ステップS61でMASTERHDDであるSATAHDD16aおよびSLAVEHDDであるSATAHDD16bがSMTERR状態またはSMART情報取得時の無応答状態か否かを判定する。ここで、CPU121は、YESと判定すると、ステップS85で信号生成器122からSATA変換器14aおよびSATA変換器14bへ出力されているENABLE信号をHIGH状態にさせ、MASTERHDDであるSATAHDD16aとSLAVEHDDであるSATAHDD16bを停止させる。そして、動画データを記録する処理はS85の処理が完了した後に終了する。   In step S61, the CPU 121 determines whether the SATA HDD 16a that is the MASTER HDD and the SATA HDD 16b that is the SLAVE HDD are in the SMTERR state or the no-response state when SMART information is acquired. If the CPU 121 determines YES, it sets the ENABLE signal output from the signal generator 122 to the SATA converter 14a and the SATA converter 14b to a HIGH state in step S85, and the SATAHDD 16a that is the MASTERHDD and the SATAHDD 16b that is the SLAVEHDD. Stop. Then, the process of recording the moving image data ends after the process of S85 is completed.

さらに、CPU121は、DISP20にMASTERHDDであるSATAHDD16aとSLAVEHDDであるSATAHDD16bとの故障状態を表示させる。ここで、CPU121がSATAHDD16aとSATAHDD16bとをSMETERR状態と判定した時の、DISP20の表示例を図9(A)に示す。   Further, the CPU 121 causes the DISP 20 to display the failure status of the SATA HDD 16a that is the MASTER HDD and the SATA HDD 16b that is the SLAVE HDD. Here, FIG. 9A shows a display example of the DISP 20 when the CPU 121 determines that the SATA HDD 16a and the SATA HDD 16b are in the SMETERR state.

そして、ステップS61でCPU121は、NOと判定すると、ステップS63でSMTERR状態またはSMART情報取得時の無応答状態のHDDがMASTERHDDであるSATAHDD16aであるか否かを判定する。ここで、CPU121は、NOと判定すると、ステップS65で信号生成器122からSATA変換器14bへ出力されているENABLE信号をHIGH状態にさせ、SLAVEHDDであるSATAHDD16bを停止させる。さらに、CPU121は信号生成器122からMASTERに設定したSATA変換器14aへ出力されているSP信号をLOW状態にさせる。そして、CPU121は、DISP20にSLAVEHDDであるSATAHDD16bの故障状態を表示させる。ここで、CPU121がSATAHDD16bをSMTERR状態と判定した時の、DISP20の表示例を図9(B)に示す。さらに、SATAHDD16aとSATAHDD16bの状態、およびENABLE信号とMA/SL信号とSP信号の出力内容をまとめた結果を表2に示す。   If the CPU 121 determines NO in step S61, it determines in step S63 whether the HDD in the SMMTERR state or the non-response state at the time of SMART information acquisition is the SATA HDD 16a that is the MASTER HDD. If the CPU 121 determines NO, it sets the ENABLE signal output from the signal generator 122 to the SATA converter 14b to the HIGH state in step S65, and stops the SATA HDD 16b that is the SLAVE HDD. Further, the CPU 121 causes the SP signal output from the signal generator 122 to the SATA converter 14a set to MASTER to be in the LOW state. Then, the CPU 121 causes the DISP 20 to display a failure state of the SATA HDD 16b that is the SLAVE HDD. FIG. 9B shows a display example of the DISP 20 when the CPU 121 determines that the SATA HDD 16b is in the SMTERR state. Further, Table 2 shows the results of summarizing the states of the SATA HDD 16a and SATA HDD 16b, and the output contents of the ENABLE signal, the MA / SL signal, and the SP signal.

Figure 2009020649
Figure 2009020649

CPU121は続いて、ステップS67でMASTERHDDであるSATAHDD16aへアクセス中か否かを判定する。ここでは、CPU121はYESと判定して、ステップS73へ進む。CPU121は続いて、ステップS73でMASTERHDDであるSATAHDD16aが停止しているか否かを判定する。ここでは、CPU121はNOと判定して、ステップS87へ進む。CPU121は続いて、ステップS87でPATA制御回路124にMASTERHDDであるSATAHDD16aのSMART情報を取得させる。CPU121は続いて、ステップS89でMASTERHDDであるSATAHDD16aが無応答状態か否かを判定する。ここでCPU121は、YESと判定すると、ステップS105で変数ERRの値をインクリメントする。CPU121はさらに続いて、ステップS107で変数ERRの値が3未満であるか否かを判定する。   Subsequently, in step S67, the CPU 121 determines whether or not the SATA HDD 16a that is the MASTER HDD is being accessed. Here, the CPU 121 determines YES and proceeds to step S73. Subsequently, in step S73, the CPU 121 determines whether or not the SATA HDD 16a that is the MASTER HDD is stopped. Here, the CPU 121 determines NO, and proceeds to step S87. In step S87, the CPU 121 causes the PATA control circuit 124 to acquire SMART information of the SATA HDD 16a that is the MASTER HDD. Subsequently, in step S89, the CPU 121 determines whether or not the SATA HDD 16a that is the MASTER HDD is in a no-response state. If the CPU 121 determines YES, it increments the value of the variable ERR in step S105. Subsequently, the CPU 121 determines whether or not the value of the variable ERR is less than 3 in step S107.

ここでは、CPU121は、YESと判定し、ステップS117でアクセス中のHDDを再起動させる。すなわち、ここではMASTERHDDであるSATATHDD16aを再起動させる。そして、CPU121はステップS87に戻る。   Here, the CPU 121 determines YES, and restarts the accessed HDD in step S117. That is, here, the SATA HDD 16a which is the MASTER HDD is restarted. Then, the CPU 121 returns to step S87.

CPU121は、変数ERRの値が3以上と判定すると、ステップS107でNOと判定して、ステップS119へ進む。ここで、ステップS89でNOと判定すると、CPU121は、MASTERHDDであるSATAHDD16aが無応答状態ではない、または変数ERRが3未満のうちに無応答状態から無応答状態ではない状態へと変化したと判定して、ステップS91で変数ERRの値を初期化し、ステップS93でMASTERHDDであるSATAHDD16aがSMTERR状態か否かを判定する。ここでは、CPU121はYESと判定し、ステップS119へ進む。   When determining that the value of the variable ERR is 3 or more, the CPU 121 determines NO in step S107 and proceeds to step S119. If NO is determined in step S89, the CPU 121 determines that the SATA HDD 16a that is the MASTER HDD is not in the non-response state or has changed from the non-response state to the non-response state while the variable ERR is less than 3. In step S91, the value of the variable ERR is initialized. In step S93, it is determined whether the SATA HDD 16a that is the MASTER HDD is in the SMTERR state. Here, the CPU 121 determines YES and proceeds to step S119.

CPU121は続いて、ステップS119で信号生成器122からSATA変換器14aへ出力されているENABLE信号をHIGH状態にさせ、MASTERHDDであるSATAHDD16aを停止させる。ステップS119の時点では、SATAHDD16aおよびSATAHDD16bは停止されている。そのため、動画データを記録する処理はS119の処理が完了した後に終了する。さらに、CPU121は、SATAHDD16bの故障状態とあわせて、DISP20にMASTERHDDであるSATAHDD16aの故障状態を表示させる。   Subsequently, in step S119, the CPU 121 sets the ENABLE signal output from the signal generator 122 to the SATA converter 14a to the HIGH state, and stops the SATA HDD 16a that is the MASTER HDD. At the time of step S119, the SATA HDD 16a and the SATA HDD 16b are stopped. Therefore, the process of recording moving image data ends after the process of S119 is completed. Further, the CPU 121 causes the DISP 20 to display the failure state of the SATA HDD 16a, which is the MASTER HDD, together with the failure state of the SATA HDD 16b.

ここで、ステップS93でNOと判定すると、ステップS95で停止されたSATAHDD16bが交換されたか否かを判定する。ここで、CPU121はNOと判定すると、ステップS97でMASTERHDDであるSATAHDD16aにコマンドを送信する。CPU121は続いて、ステップS99でERRSTATUS状態または無応答状態か否かを判定する。ここでは、CPU121は、NOと判定して、ステップS101で変数ERRの値を初期化する。CPU121は続いて、ステップS103でMASTERHDDであるSATAHDD16aがFULL状態か否かを判定する。ここで、CPU121は、NOと判定すると、ステップS87に戻る。CPU121は、ステップS103でYESと判定すると、ステップS119でMASTERHDDであるSATAHDD16aを停止させる。そして、動画データを記録する処理はS119の処理が完了した後に終了する。さらに、CPU121は、SATAHDD16bの故障状態とあわせて、DISP20にMASTERHDDであるSATAHDD16aの状態を表示させる。   If NO is determined in step S93, it is determined whether or not the SATA HDD 16b stopped in step S95 has been replaced. If the CPU 121 determines NO, it sends a command to the SATA HDD 16a that is the MASTER HDD in step S97. Subsequently, in step S99, the CPU 121 determines whether or not it is in the ERRSTATUS state or the no-response state. Here, the CPU 121 determines NO, and initializes the value of the variable ERR in step S101. Subsequently, in step S103, the CPU 121 determines whether the SATA HDD 16a that is the MASTER HDD is in the FULL state. If the CPU 121 determines NO, it returns to step S87. If the CPU 121 determines YES in step S103, the CPU 121 stops the SATA HDD 16a that is the MASTER HDD in step S119. Then, the process of recording the moving image data ends after the process of S119 is completed. Further, the CPU 121 displays the status of the SATA HDD 16a which is the MASTER HDD on the DISP 20 together with the failure status of the SATA HDD 16b.

ここで、ステップS95でCPU121は、YESと判定すると、ステップS109で信号生成器122から交換されたSATA規格のHDDを接続されるSATA変換器14bへ出力されているENABLE信号をLOW状態にさせ、SLAVEHDDであるSATAHDD16bを作動させる。さらに、CPU121は信号生成器122からSATA変換器14aへ出力されているSP信号をHIGH状態にさせる。つまり、SATAHDD16a,16bが故障せず正常に動画データを記録する状態となるため、CPU121は、ステップS9に戻り先述した正常状態の処理を行う。   If the CPU 121 determines YES in step S95, the ENABLE signal output to the SATA converter 14b connected to the SATA standard HDD exchanged from the signal generator 122 in step S109 is set to the LOW state. The SATA HDD 16b that is the SLAVE HDD is operated. Further, the CPU 121 causes the SP signal output from the signal generator 122 to the SATA converter 14a to be in a HIGH state. That is, since the SATA HDDs 16a and 16b are in a state in which the moving image data is normally recorded without failure, the CPU 121 returns to step S9 and performs the normal state processing described above.

ここで、ステップS67でCPU121は、NOと判定すると、ステップS69で変数ERRの値を初期化する。CPU121はさらに続いて、ステップS71でPATA制御回路124にMASTERHDDであるSATAHDD16aへアクセスを開始させ、ステップS73以降の処理を行う。つまり、正常状態でアクセスするHDDがMASTERHDDであるSATAHDD16aからSLAVEHDDであるSATAHDD16bへ代わり、SLAVERHDDであるSATAHDD16bがSMTERR状態またはSMART情報取得時の無応答状態となった場合に、CPU121はステップS69−S71の処理をする。   If the CPU 121 determines NO in step S67, it initializes the value of the variable ERR in step S69. In step S71, the CPU 121 further causes the PATA control circuit 124 to start accessing the SATA HDD 16a that is the MASTER HDD, and performs the processing from step S73. That is, when the SATA HDD 16b that is the SAVE HDD is changed from the SATA HDD 16a that is the MASTER HDD to the SATA HDD 16b that is the SLAVE HDD instead of the SATA HDD 16b that is the MASTER HDD in the normal state, the CPU 121 performs steps S69 to S71. Process.

ここで、ステップS63でCPU121は、YESと判定すると、ステップS79で信号生成器122からSATA変換器14aへ出力されているENABLE信号をHIGH状態にさせ、MASTERHDDであるSATAHDD16aを停止させる。そして、CPU121は、DISP20にMASTERHDDであるSATAHDD16aの故障状態を表示させる。CPU121は続いて、ステップS81でSLAVEHDDであるSATAHDD16bへアクセス中か否かを判定する。ここでは、CPU121は、NOと判定して、ステップS83で変数ERRの値を初期化する。CPU121は続いて、ステップS73でMASTERHDDであるSATAHDD16aが停止されているか否かを判定する。   If the CPU 121 determines YES in step S63, the ENABLE signal output from the signal generator 122 to the SATA converter 14a is set to the HIGH state in step S79, and the SATAHDD 16a that is the MASTERHDD is stopped. Then, the CPU 121 causes the DISP 20 to display a failure state of the SATA HDD 16a that is the MASTER HDD. In step S81, the CPU 121 determines whether the SATA HDD 16b that is the SLAVE HDD is being accessed. Here, CPU 121 determines NO and initializes the value of variable ERR in step S83. Subsequently, in step S73, the CPU 121 determines whether or not the SATA HDD 16a that is the MASTER HDD is stopped.

ここでは、CPU121は、YESと判定するため、ステップS75で信号生成器122からSATA変換器14bへ出力されているMA/SL信号をLOW状態にさせ、SATA変換器14aへ出力されているMA/SL信号をHIGH状態にさせる。そして、CPU121は信号生成器122からMASTERに設定したSATA変換器14bへ出力されているSP信号をLOW状態にさせる。つまり、CPU121は、SATAHDD16bをMASTERHDDとする。ここで、SATAHDD16aとSATAHDD16bの状態、およびENABLE信号とMA/SL信号とSP信号の出力内容をまとめた結果を表3に示す。   Here, since the CPU 121 determines YES, in step S75, the MA / SL signal output from the signal generator 122 to the SATA converter 14b is set to the LOW state, and the MA / SL output to the SATA converter 14a is set. The SL signal is set to the HIGH state. Then, the CPU 121 sets the SP signal output from the signal generator 122 to the SATA converter 14b set to MASTER to a LOW state. That is, the CPU 121 sets the SATA HDD 16b as a MASTER HDD. Table 3 shows the results of summarizing the states of the SATA HDD 16a and SATA HDD 16b and the output contents of the ENABLE signal, the MA / SL signal, and the SP signal.

Figure 2009020649
Figure 2009020649

CPU121は続いて、ステップS77でPATA制御回路124にMASTERHDDであるSATAHDD16bへアクセスを開始させ、ステップS87以降の処理を行う。   Subsequently, in step S77, the CPU 121 causes the PATA control circuit 124 to start access to the SATA HDD 16b that is the MASTER HDD, and performs the processing from step S87.

ここで、ステップS81でCPU121は、YESと判定すると、ステップS73以降の処理を行う。つまり、正常状態でアクセスするHDDがMASTERHDDであるSATAHDD16aからSLAVEHDDであるSATAHDD16bへ代わり、MASTERHDDであるSATAHDD16aがSMTERR状態またはSMART情報取得時の無応答状態となった場合に、CPU121は変数ERRの初期化はせずにステップS73以降の処理を行う。   Here, if CPU121 determines with YES at step S81, it will perform the process after step S73. That is, the CPU 121 initializes the variable ERR when the SATA HDD 16a, which is the MASTER HDD, is changed from the SATA HDD 16a, which is the MASTER HDD, to the SATA HDD 16a, which is the MASTER HDD, instead of the SATA HDD 16a in the normal state. The process after step S73 is performed without doing.

CPU121は、ステップS69およびステップS83で変数ERRの値を初期化するので、SMTERR状態またはSMART情報取得時の無応答状態からERRSTATUS状態またはコマンド送信時の無応答状態が起きた場合もHDDの故障状態を判定することができる。   Since the CPU 121 initializes the value of the variable ERR in step S69 and step S83, the failure state of the HDD also occurs when the ERRSTATUS state or the no-response state at the time of command transmission occurs from the SMTERR state or the no-response state at the time of SMART information acquisition. Can be determined.

また、CPU121は、ステップS69およびステップS83で変数ERRの値を初期化するので、SMTERR状態またはSMART情報取得時の無応答状態から正常状態へ変化しても、SMTERR状態またはSMART情報取得時の無応答状態からを再び判定することができる。   In addition, since the CPU 121 initializes the value of the variable ERR in step S69 and step S83, even if the SMRT state or the no-response state at the time of SMART information acquisition is changed to the normal state, there is no change in the SMART state or SMART information acquisition. From the response state can be determined again.

さらに続いて、ERRSTATUS状態またはコマンド送信時の無応答状態の動画データを記録する処理について図5〜図8を参照して具体的に説明すると、CPU121はステップS1でSATA変換器14aとSATA変換器14bとがMASTER/SLAVEの設定がされているか否かを判定する。そして、CPU121は、NOと判定すると、ステップS3でSATA変換器14aをMASTERに設定し、SATA変換器14bをSLAVEに設定する。CPU121は続いて、ステップS5でPATA制御回路124にMASTERHDDであるSATAHDD16aへアクセスを開始させる。CPU121は続いて、ステップS7で変数ERRの値を初期化する。CPU121は続いて、ステップS9でPATA制御回路124に各HDDとのSMART情報を取得させる。   Next, the process of recording moving image data in the ERRSTATUS state or in the non-response state at the time of command transmission will be described in detail with reference to FIGS. 5 to 8. The CPU 121 in step S1 includes the SATA converter 14a and the SATA converter. 14b determines whether MASTER / SLAVE is set. If the CPU 121 determines NO, it sets the SATA converter 14a to MASTER and sets the SATA converter 14b to SLAVE in step S3. Subsequently, in step S5, the CPU 121 causes the PATA control circuit 124 to start access to the SATA HDD 16a that is a MASTER HDD. Subsequently, the CPU 121 initializes the value of the variable ERR in step S7. Subsequently, in step S9, the CPU 121 causes the PATA control circuit 124 to acquire SMART information with each HDD.

CPU121は続いて、ステップS11で無応答状態か否かを判定する。ここでは、CPU121は、NOと判定して、ステップS13で変数ERRの値を初期化する。CPU121は続いて、ステップS15でSMTERR状態か否かを判定する。ここでは、CPU121は、NOと判定して、ステップS17でMASTERHDDであるSATAHDD16aにアクセス中か否かを判定する。ここでは、CPU121は、YESと判定して、ステップS19でPATA制御回路124にMASTERHDDであるSATAHDD16aへコマンドを送信させる。CPU121は続いて、ステップS29でERRSTATUS状態または無応答状態か否かを判定する。ここでは、CPU121は、YESと判定して、ステップS43で変数ERRの値をインクリメントする。CPU121はさらに続いて、ステップS45で変数ERRの値が3未満であるか否かを判定する。ここでは、CPU121は、YESと判定して、ステップS59でアクセス中のHDDを再起動させる。すなわち、ここではMASTERHDDであるSATATHDD16aを再起動させる。そして、CPU121はステップS9に戻る。   Subsequently, the CPU 121 determines whether or not there is a no-response state in step S11. Here, CPU 121 determines NO and initializes the value of variable ERR in step S13. Subsequently, the CPU 121 determines whether or not the SMTERR state is set in step S15. Here, the CPU 121 determines NO, and determines whether or not the SATA HDD 16a that is the MASTER HDD is being accessed in step S17. Here, the CPU 121 determines YES, and causes the PATA control circuit 124 to transmit a command to the SATA HDD 16a that is the MASTER HDD in step S19. Subsequently, in step S29, the CPU 121 determines whether or not it is in the ERRSTATUS state or the no-response state. Here, the CPU 121 determines YES, and increments the value of the variable ERR in step S43. Subsequently, the CPU 121 determines whether or not the value of the variable ERR is less than 3 in step S45. Here, the CPU 121 determines YES and restarts the accessed HDD in step S59. That is, here, the SATA HDD 16a which is the MASTER HDD is restarted. Then, the CPU 121 returns to step S9.

ERRSTATUS状態または無応答状態のHDDは再起動されることで正常状態へ変化する可能性がある。つまり、CPU121は、ERRSTATUS状態または無応答状態を1度目の判定でHDDのERRSTATUS状態または無応答状態と判定せず、3度目の判定でHDDのERRSTATUS状態または無応答状態と判定する。   There is a possibility that the HDD in the ERRSTATUS state or the no-response state is changed to a normal state by being restarted. That is, the CPU 121 determines that the ERRSTATUS state or the no-response state is the HDD ERRSTATUS state or the no-response state by the first determination, and determines the HDD is the ERRSTATUS state or the no-response state by the third determination.

変数ERRの値が3以上と判定すると、CPU121は、ステップS45でNOと判定して、ステップS47でMASTERHDDであるSATAHDD16aへアクセス中か否かを判定する。ここでは、CPU121は、YESと判定するため、ステップS49で信号生成器122からSATA変換器14aへ出力されているENABLE信号をHIGH状態にさせ、MASTERHDDであるSATAHDD16aを停止させる。そして、CPU121は、DISP20にMASTERHDDであるSATAHDD16aの故障状態を表示させる。   When determining that the value of the variable ERR is 3 or more, the CPU 121 determines NO in step S45, and determines in step S47 whether or not the SATA HDD 16a that is the MASTER HDD is being accessed. Here, in order to determine YES, the CPU 121 makes the ENABLE signal output from the signal generator 122 to the SATA converter 14a HIGH in step S49, and stops the SATA HDD 16a that is the MASTER HDD. Then, the CPU 121 causes the DISP 20 to display a failure state of the SATA HDD 16a that is the MASTER HDD.

CPU121はさらに続いて、ステップS51で変数ERRの値を初期化する。CPU121はさらに続いて、ステップS73でMASTERHDDであるSATAHDD16aが停止しているか否かを判定する。ここでは、CPU121は、YESと判定するため、ステップS75で信号生成器122からSATA変換器14bへ出力されているMA/SL信号をLOW状態にさせ、MASTERに設定したSATA変換器14bへ出力されているSP信号をLOW状態にさせる。つまり、CPU121は、SATAHDD16bをMASTERHDDとする。   Subsequently, the CPU 121 initializes the value of the variable ERR in step S51. In step S73, the CPU 121 further determines whether the SATA HDD 16a that is the MASTER HDD is stopped. Here, in order to determine YES, the CPU 121 sets the MA / SL signal output from the signal generator 122 to the SATA converter 14b in step S75 to a LOW state, and outputs it to the SATA converter 14b set to MASTER. The SP signal being turned on is made LOW. That is, the CPU 121 sets the SATA HDD 16b as a MASTER HDD.

CPU121は続いて、ステップS77でPATA制御回路124にMASTERHDDであるSATAHDD16bへアクセスを開始させ、ステップS87でPATA制御回路124にMASTERHDDであるSATAHDD16bのSMART情報を取得させる。CPU121は続いて、ステップS89でMASTERHDDであるSATAHDD16bが無応答状態か否かを判定する。ここでは、CPU121は、NOと判定して、ステップS91で変数ERRの値を初期化する。CPU121は続いて、ステップS93でMASTERHDDであるSATAHDD16bがSMTERR状態か否かを判定する。ここでは、CPU121は、NOと判定して、ステップS95で停止されたSATAHDD16aが交換されたか否かを判定する。ここでは、CPU121は、NOと判定して、ステップS97でPATA制御回路124にMASTERHDDであるSATAHDD16bへコマンドを送信させる。   Subsequently, in step S77, the CPU 121 causes the PATA control circuit 124 to start accessing the SATAHDD 16b that is the MASTERHDD, and in step S87, causes the PATA control circuit 124 to acquire the SMART information of the SATAHDD 16b that is the MASTERHDD. Subsequently, in step S89, the CPU 121 determines whether or not the SATA HDD 16b that is the MASTER HDD is in a non-response state. Here, CPU 121 determines NO, and initializes the value of variable ERR in step S91. Subsequently, in step S93, the CPU 121 determines whether or not the SATA HDD 16b that is the MASTER HDD is in the SMTERR state. Here, the CPU 121 determines NO and determines whether or not the SATA HDD 16a stopped in step S95 has been replaced. Here, the CPU 121 determines NO, and causes the PATA control circuit 124 to transmit a command to the SATA HDD 16b that is the MASTER HDD in step S97.

CPU121は続いて、ステップS99でERRSTATUS状態または無応答状態か否かを判定する。ここで、CPU121は、YESと判定すると、ステップS111で変数ERRの値をインクリメントする。CPU121はさらに続いて、ステップS113で変数ERRの値が3未満であるか否かを判定する。ここでは、CPU121は、YESと判定して、ステップS115でアクセス中のHDDを再起動させる。すなわち、ここではMASTERHDDであるSATATHDD16bを再起動さえる。そして、CPU121は、ステップS87に戻る。   Subsequently, in step S99, the CPU 121 determines whether or not it is in the ERRSTATUS state or the no-response state. If the CPU 121 determines YES, it increments the value of the variable ERR in step S111. Subsequently, the CPU 121 determines whether or not the value of the variable ERR is less than 3 in step S113. Here, the CPU 121 determines YES and restarts the accessed HDD in step S115. That is, the SATA HDD 16b which is the MASTER HDD is restarted here. Then, the CPU 121 returns to step S87.

変数ERRの値が3以上と判定すると、CPU121は、ステップS113でNOと判定して、ステップS119でMASTERHDDであるSATAHDD16bを停止させる。そして、動画データを記録する処理はS119の処理が完了した後に終了する。さらに、CPU121は、SATAHDD16aの故障状態とあわせて、DISP20にMASTERHDDであるSATAHDD16bの故障状態を表示させる。   If it is determined that the value of the variable ERR is 3 or more, the CPU 121 determines NO in step S113, and stops the SATAHDD 16b that is the MASTERHDD in step S119. Then, the process of recording the moving image data ends after the process of S119 is completed. Further, the CPU 121 causes the DISP 20 to display the failure state of the SATA HDD 16b, which is the MASTER HDD, together with the failure state of the SATA HDD 16a.

ここで、ステップS95でCPU121は、YESと判定すると、ステップS109で信号生成器122からSATA変換器14aへ出力されているENABLE信号をLOW状態にさせ、SLAVEHDDであるSATAHDD16aを作動させる。さらに、CPU121は信号生成器122からSATA変換器14bへ出力されているSP信号をHIGH状態にさせる。つまり、SATAHDD16a,16bが故障せず正常に動画データを記録する状態となるため、CPU121は、先述した正常状態の処理を行う。ここで、SATAHDD16aとSATAHDD16bの状態、およびENABLE信号とMA/SL信号とSP信号の出力内容をまとめた結果を表4に示す。   If the CPU 121 determines YES in step S95, the ENABLE signal output from the signal generator 122 to the SATA converter 14a is set to the LOW state in step S109, and the SATAHDD 16a that is the SLAVE HDD is operated. Further, the CPU 121 sets the SP signal output from the signal generator 122 to the SATA converter 14b to a HIGH state. That is, since the SATA HDDs 16a and 16b are in a state in which moving image data is normally recorded without failure, the CPU 121 performs the normal state process described above. Here, Table 4 shows the results of summarizing the states of the SATA HDD 16a and SATA HDD 16b, and the output contents of the ENABLE signal, the MA / SL signal, and the SP signal.

Figure 2009020649
Figure 2009020649

ここで、ステップS47でCPU121は、NOと判定すると、ステップS53で信号生成器122からSATA変換器14bへ出力されているENABLE信号をHIGH状態にさせ、SLAVEHDDであるSATAHDD16bを停止させる。さらに、CPU121は信号生成器122からMASTERに設定したSATA変換器14aへ出力されているSP信号をLOW状態にさせる。そして、CPU121は、DISP20にSLAVEHDDであるSATAHDD16bの故障状態を表示させる。CPU121はさらに続いてステップS55で変数ERRの値を初期化する。CPU121はさらに続いてステップS57でPATA制御回路124にMSTERHDDであるSATAHDD16aへアクセスを開始させる。CPU121はさらに続いて、ステップS73でMASTERHDDであるSATAHDD16aが停止されているか否かを判定する。ここでは、CPU121は、NOと判定して、ステップS87へ進む。CPU121は続いて、ステップS87でPATA制御回路124にMASTERHDDであるSATAHDD16aのSMART情報を取得させ、ステップS89以降の処理を行う。   If the CPU 121 determines NO in step S47, the ENABLE signal output from the signal generator 122 to the SATA converter 14b is set to the HIGH state in step S53, and the SATA HDD 16b that is the SLAVE HDD is stopped. Further, the CPU 121 causes the SP signal output from the signal generator 122 to the SATA converter 14a set to MASTER to be in the LOW state. Then, the CPU 121 causes the DISP 20 to display a failure state of the SATA HDD 16b that is the SLAVE HDD. Subsequently, the CPU 121 initializes the value of the variable ERR in step S55. In step S57, the CPU 121 further causes the PATA control circuit 124 to start accessing the SATA HDD 16a that is the MSTER HDD. Subsequently, in step S73, the CPU 121 determines whether or not the SATA HDD 16a that is the MASTER HDD is stopped. Here, the CPU 121 determines NO and proceeds to step S87. Subsequently, in step S87, the CPU 121 causes the PATA control circuit 124 to acquire SMART information of the SATA HDD 16a that is the MASTER HDD, and performs the processing from step S89.

つまり、ステップS47でNOと判定する時は、正常状態でアクセスするHDDがMASTERHDDであるSATAHDD16aからSLAVEHDDであるSATAHDD16bへ代わり、SLAVEHDDであるSATAHDD16bがERRSTATUS状態またはコマンド送信時の無応答状態となる時である。   That is, when NO is determined in step S47, the HDD accessed in the normal state is changed from the SATA HDD 16a that is the MASTER HDD to the SATA HDD 16b that is the SLAVE HDD, and the SATA HDD 16b that is the SLAVE HDD becomes the ERRSTATUS state or the no-response state at the time of command transmission. is there.

ここで、ステップS99でCPU121は、NOと判定すると、ステップS101で変数ERRの値を初期化する。また、ステップS99でCPU121は、YESと判定すると、MASTERHDDであるSATAHDD16aがERRSTATUS状態または無応答状態ではないとみなすか、MASTERHDDであるSATAHDD16aがERRSTATUS状態または無応答状態から変数ERRが3未満のうちに正常状態へと変化したとみなす。また、ステップS29の処理もステップS99と同様である。   If CPU 121 determines NO in step S99, it initializes the value of variable ERR in step S101. If the CPU 121 determines YES in step S99, the SATAHDD 16a that is the MASTERHDD is regarded as not being in the ERRSTATUS state or the no-response state, or the variable ERR is less than 3 from the ERRSTATUS state or the no-response state in the SATAHDD 16a that is the MASTERHDD. It is considered that it has changed to a normal state. Further, the process of step S29 is the same as that of step S99.

ステップS101での変数ERRの値を初期化する処理は、MASTERHDDであるSATAHDD16aがERRSTATUS状態または無応答状態が正常状態へ変化した後に、再びSATAHDD16aがERRSTATUS状態または無応答状態へ変化した場合に正しく回数をカウントするために必要な処理となる。また、ステップS31の処理は、ステップS101と同様である。   The process of initializing the value of the variable ERR in step S101 is performed correctly when the SATAHDD 16a, which is the MASTERHDD, changes from the ERRSTATUS state or the no-response state to the normal state and then again changes to the ERRSTATUS state or the no-response state. This is the process necessary to count Moreover, the process of step S31 is the same as that of step S101.

ステップS31で変数ERRの値を初期化するので、CPU121は、ERRSTATUS状態またはコマンド送信時の無応答状態からSMTERR状態またはSMART情報取得時の無応答状態を判定することができる。   Since the value of the variable ERR is initialized in step S31, the CPU 121 can determine the SMTERR state or the no-response state when acquiring SMART information from the ERRSTATUS state or the no-response state at the time of command transmission.

また、ステップS31で変数ERRの値を初期化するので、CPU121は、ERRSTATUS状態または無応答状態から正常状態へ変化しても、ERRSTATUS状態または無応答状態を再び判定することができる。   In addition, since the value of the variable ERR is initialized in step S31, the CPU 121 can determine again the ERRSTATUS state or the no-response state even when the ERRSTATUS state or the no-response state changes to the normal state.

このように本実施例では、SATAHDD16a,16bのいずれかが故障状態の場合に、DVR12は、MA/SL信号によってSATA変換器14a,14bのMASTERおよびSLAVEの設定を切り替えることができるため、動画データを記録し続けることができる。また、DVR12は、SATAHDD16aまたはSATAHDD16bが故障状態の場合に、故障状態のSATAHDD16aまたはSATAHDD16bを停止し、動画データを記録し続けることができる。   As described above, in this embodiment, when any of the SATA HDDs 16a and 16b is in a failure state, the DVR 12 can switch the MASTER and SLAVE settings of the SATA converters 14a and 14b by the MA / SL signal. Can continue to record. Further, when the SATA HDD 16a or the SATA HDD 16b is in a failure state, the DVR 12 can stop the SATA HDD 16a or the SATA HDD 16b in the failure state and continue to record moving image data.

さらに、DVR12は、SATAHDD16a,16bが故障状態の場合に、DISP20によって故障状態のSATAHDD16a,16bの情報および故障状態のSATAHDD16a,16bの交換を促す文字列を表示することができる。   Further, when the SATA HDDs 16a and 16b are in a failure state, the DVR 12 can display information on the failed SATA HDDs 16a and 16b and a character string that prompts replacement of the failed SATA HDDs 16a and 16b by the DISP 20.

さらに、DVR12は、SATAHDD16a,16bが正常状態の場合に、アクセスするSATAHDDを切り替えることで、動画データを記録し続けることができる。そして、故障状態のSATAHDD16aまたは16bを使用者が交換すれば、DVR12はSATAHDD16aまたは16bを正常状態と判定することができる。   Furthermore, the DVR 12 can continue to record moving image data by switching the SATA HDD to be accessed when the SATA HDDs 16a and 16b are in a normal state. If the user replaces the failed SATA HDD 16a or 16b, the DVR 12 can determine that the SATA HDD 16a or 16b is in a normal state.

なお、本実施例は、CPU121がSATAHDD16aまたはSTATAHDD16bの異常を誤判定し、動画データを記憶するHDDを切り替えても異常状態が継続する可能性がある。そのため、動画データを記憶するHDDを切り替えても異常状態が継続する場合に、DVR12は、再び動画データを記憶するHDDを切り替えて動画データの記録を試みることも考えられる。また、動画データを記録し続けるだけでなく、動画データを再生し続けることも可能である。さらに、動画記録装置だけでなく、サーバーなどの常に作動し続けることが求められる装置に用いてもよい。また、記録するのは動画データだけでなく、音声データなどでもよい。   In the present embodiment, there is a possibility that the abnormal state may continue even if the CPU 121 erroneously determines the abnormality of the SATA HDD 16a or the STATA HDD 16b and switches the HDD that stores the moving image data. Therefore, if the abnormal state continues even when the HDD that stores the moving image data is switched, the DVR 12 may switch the HDD that stores the moving image data and try to record the moving image data again. In addition to continuing to record moving image data, it is also possible to continue reproducing moving image data. Furthermore, it may be used not only for moving image recording apparatuses but also for apparatuses such as servers that are required to keep operating. Further, not only moving image data but also audio data may be recorded.

この発明の一実施例を示すブロック図である。It is a block diagram which shows one Example of this invention. 図1実施例に適用されるDVRの構成の一例を示すブロック図である。It is a block diagram which shows an example of a structure of DVR applied to the FIG. 1 Example. ENABLE信号,MA/SL信号およびSP信号との出力状態を表す図である。It is a figure showing the output state of an ENABLE signal, MA / SL signal, and SP signal. 図1実施例に適用されるSATA変換器の構成の一例を示すブロック図である。It is a block diagram which shows an example of a structure of the SATA converter applied to the FIG. 1 Example. 図1実施例に適用されるCPUの処理動作の一部を示すフロー図である。It is a flowchart which shows a part of processing operation of CPU applied to the FIG. 1 Example. 図1実施例に適用されるCPUの処理動作の他の一部を示すフロー図である。It is a flowchart which shows a part of other processing operation of CPU applied to the FIG. 1 Example. 図1実施例に適用されるCPUの処理動作のその他の一部を示すフロー図である。FIG. 10 is a flowchart showing still another portion of the processing operation of the CPU applied to the embodiment in FIG. 1. 図1実施例に適用されるCPUの処理動作のさらにその他の一部を示すフロー図である。FIG. 10 is a flowchart showing yet another portion of the processing operation of the CPU applied to the embodiment in FIG. 1. (A) は図1実施例に適用されるDISPに表示される表示例を示す図解図であり、(B) は図1実施例に適用されるDISPに表示される表示例を示す図解図である。(A) is an illustrative view showing a display example displayed on the DISP applied to the FIG. 1 embodiment, and (B) is an illustrative view showing a display example displayed on the DISP applied to the FIG. 1 embodiment. is there.

符号の説明Explanation of symbols

10 … 動画記録装置
12 … DVR
14a〜14b … SATA変換器
16a〜16b … SATAHDD
18 … レジスタ
20 … DISP
22 … CAM
10 ... Movie recording device 12 ... DVR
14a to 14b ... SATA converters 16a to 16b ... SATAHDD
18 ... Register 20 ... DISP
22… CAM

Claims (8)

第1通信規格のデータを記憶する複数の記憶装置、
第2通信規格のデータを前記複数の記憶装置に共通のデータラインで転送する転送手段、
前記転送手段と前記複数の記憶装置との間に接続され、前記第2通信規格のデータを前記第1通信規格のデータにそれぞれ変換する複数の変換手段、および
前記複数の変換手段をデータラインとは異なる信号ラインで制御する制御手段を備え、
前記転送手段は、前記複数の記憶装置の異常を検出する検出手段を含み、
前記制御手段は、
前記複数の記憶装置のいずれか1つに記憶処理を実行させるための優先順位を前記複数の変換手段に設定する設定手段、および
前記設定手段によって設定された優先順位を前記検出手段によって異常が検出されたとき変更する変更手段を含む、記憶制御装置。
A plurality of storage devices for storing data of the first communication standard;
Transfer means for transferring data of the second communication standard to the plurality of storage devices via a common data line;
A plurality of conversion means connected between the transfer means and the plurality of storage devices and respectively converting the data of the second communication standard into the data of the first communication standard; and the plurality of conversion means as data lines Has control means to control with different signal lines,
The transfer means includes detection means for detecting an abnormality in the plurality of storage devices,
The control means includes
A setting unit for setting a priority for causing one of the plurality of storage devices to execute a storage process in the plurality of conversion units; and an abnormality detected by the detection unit for the priority set by the setting unit A storage control device comprising a changing means for changing when it is done.
前記複数の変換手段は、変換手段が接続する記憶装置と転送手段とのデータ転送を停止する停止手段を含み、
前記制御手段は、前記検出手段によって異常が検出された記憶装置と転送手段とのデータ転送を前記停止手段によって停止させるデータ転送停止手段をさらに含み、
前記変更手段は、前記検出手段によって異常が検出された記憶装置を接続する変換手段とは異なる変換手段の優先順位を上げる、請求項1記載の記憶制御装置。
The plurality of conversion means includes stop means for stopping data transfer between the storage device and the transfer means connected to the conversion means,
The control means further includes a data transfer stop means for stopping the data transfer between the storage device in which an abnormality is detected by the detection means and the transfer means by the stop means,
The storage control device according to claim 1, wherein the changing unit raises the priority of a conversion unit different from the conversion unit that connects the storage unit in which an abnormality is detected by the detection unit.
前記検出手段は、前記複数の記憶装置が検出する自己診断情報から異常を検出する第1異常検出手段を含み、
前記データ転送停止手段は、前記第1異常検出手段によって前記異常が検出された記憶装置と転送手段とのデータ転送を前記停止手段によって停止させる第1転送停止手段を含み、
前記変更手段は、前記第1異常検出手段によって異常が検出された記憶装置を接続する変換手段とは異なる変換手段の優先順位を上げる、請求項2記載の記憶制御装置。
The detection means includes first abnormality detection means for detecting an abnormality from self-diagnosis information detected by the plurality of storage devices,
The data transfer stop means includes first transfer stop means for stopping data transfer between the storage device in which the abnormality is detected by the first abnormality detection means and the transfer means by the stop means,
The storage control device according to claim 2, wherein the changing unit raises the priority of a conversion unit different from the conversion unit that connects the storage device in which the abnormality is detected by the first abnormality detection unit.
前記検出手段は、前記転送手段によるデータ転送処理の異常を検出する第2異常検出手段を含み、
前記データ転送停止手段は、現在記憶処理を実行中の記憶装置と転送手段とのデータ転送を前記停止手段によって停止させる第2転送停止手段を含み、
前記変更手段は、現在記憶処理を実行中の記憶装置を接続する変換手段とは異なる変換手段の優先順位を上げる、請求項2または3記載の記憶制御装置。
The detection means includes second abnormality detection means for detecting an abnormality in data transfer processing by the transfer means,
The data transfer stop means includes second transfer stop means for stopping data transfer between the storage device currently executing storage processing and the transfer means by the stop means,
The storage control device according to claim 2, wherein the changing unit increases the priority of a conversion unit different from the conversion unit that connects the storage device that is currently executing the storage process.
前記第1転送停止手段および/または前記第2転送停止手段によって停止された変換手段が接続する記憶装置の状態を表示する表示手段をさらに備える、請求項4記載の記憶制御装置。   5. The storage control device according to claim 4, further comprising display means for displaying a status of the storage device connected to the conversion means stopped by the first transfer stop means and / or the second transfer stop means. 前記制御手段は、前記停止された変換手段が接続する記憶装置を異常でない記憶装置に交換されたかを判定する交換判定手段、
前記異常でない記憶装置と転送手段とのデータ転送を再開させる再開手段をさらに含む、請求項5記載の記憶制御装置。
The control means is a replacement determination means for determining whether the storage device connected by the stopped conversion means has been replaced with a storage device that is not abnormal.
The storage control device according to claim 5, further comprising restarting means for restarting data transfer between the storage device that is not abnormal and the transfer means.
前記転送手段は、前記現在記憶処理を実行中の記憶装置を記憶容量の限界まで記憶処理したことを判定する限界判定手段、
前記限界判定手段によって記憶容量が限界と判定された前記データ転送中の記憶装置から前記データ転送中の記憶装置以外の記憶装置と交替させる交替手段をさらに含む、請求項1ないし6のいずれかに記載の記憶制御装置。
The transfer means is a limit determination means for determining that the storage device that is currently executing the storage process has been stored to the limit of the storage capacity,
7. The apparatus according to claim 1, further comprising: a replacement unit that replaces the storage device that has been determined to have a storage capacity limited by the limit determination unit with a storage device other than the storage device that is transferring the data. The storage control device described.
動画を撮影する撮影手段、
および前記撮影手段が撮影した動画を前記複数の記憶装置に転送可能なデータに変換する動画変換手段を備え、
前記転送手段は、
前記動画変換手段が変換したデータを前記複数の記憶装置に転送する、請求項7記載の記憶制御装置。
Shooting means for shooting videos,
And moving image conversion means for converting the moving image shot by the shooting means into data transferable to the plurality of storage devices,
The transfer means includes
The storage control device according to claim 7, wherein the data converted by the moving image conversion unit is transferred to the plurality of storage devices.
JP2007181855A 2007-07-11 2007-07-11 Storage controller Withdrawn JP2009020649A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2007181855A JP2009020649A (en) 2007-07-11 2007-07-11 Storage controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2007181855A JP2009020649A (en) 2007-07-11 2007-07-11 Storage controller

Publications (1)

Publication Number Publication Date
JP2009020649A true JP2009020649A (en) 2009-01-29

Family

ID=40360250

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2007181855A Withdrawn JP2009020649A (en) 2007-07-11 2007-07-11 Storage controller

Country Status (1)

Country Link
JP (1) JP2009020649A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011076662A (en) * 2009-09-30 2011-04-14 Mitsubishi Electric Corp Information recording device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011076662A (en) * 2009-09-30 2011-04-14 Mitsubishi Electric Corp Information recording device

Similar Documents

Publication Publication Date Title
JP5256209B2 (en) Improve user experience using aggregated device usage data
US20100118180A1 (en) Imaging device
US20120140112A1 (en) Imaging device and control method therefor, and program for the same
CN104853071B (en) Display control unit and display methods
CN102157172A (en) Data recording apparatus and control method thereof
JP5277562B2 (en) Electronic device, electronic camera and data transfer program
US9159368B2 (en) Recording and reproducing apparatus and method thereof
JP2000137796A (en) Information input system and its control method, and storage medium
JP2007215054A (en) Electronic apparatus capable of recording conference information
JP2000209536A (en) Recorded image management method and electronic image pickup device
JP2009020649A (en) Storage controller
JP5094655B2 (en) Imaging device
KR102137891B1 (en) Server managing Method, Server, and Recording medium using User Specialized Operating Mechanism on BMC environment
JP2007074213A (en) Camera system, camera, and external storage apparatus
JP2021087204A (en) Recording device and control method thereof
CN101365086B (en) Record/reproduction apparatus and record mode setting method for the same
KR102427570B1 (en) Monitoring server for monitoring video recording device
JP6168238B2 (en) Video recording / reproducing apparatus, surveillance recorder apparatus, and video recording / reproducing method
JPH0496845A (en) Data preserving method for shared memory system
KR101286328B1 (en) Multimedia storage card system
US11334520B2 (en) Communication apparatus capable of transferring selected data item, method for controlling the same and non-transitory computer-readable storage medium
US20230007174A1 (en) Image pickup signal processing apparatus, image pickup signal processing method, and storage medium
JP2009187155A (en) Monitoring device, monitoring method, and monitoring program
JP2021145309A (en) Recording apparatus and recording apparatus control method
JP3907665B2 (en) Electronic camera system, electronic camera, and control method

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20100701

A761 Written withdrawal of application

Free format text: JAPANESE INTERMEDIATE CODE: A761

Effective date: 20101203