WO2015063845A1 - データ格納装置、データ格納方法およびデータ格納プログラム - Google Patents

データ格納装置、データ格納方法およびデータ格納プログラム Download PDF

Info

Publication number
WO2015063845A1
WO2015063845A1 PCT/JP2013/079177 JP2013079177W WO2015063845A1 WO 2015063845 A1 WO2015063845 A1 WO 2015063845A1 JP 2013079177 W JP2013079177 W JP 2013079177W WO 2015063845 A1 WO2015063845 A1 WO 2015063845A1
Authority
WO
WIPO (PCT)
Prior art keywords
data
block
protection
stored
unit
Prior art date
Application number
PCT/JP2013/079177
Other languages
English (en)
French (fr)
Inventor
麻里 川原
中田 茂樹
泰孝 梅元
Original Assignee
富士通株式会社
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 富士通株式会社 filed Critical 富士通株式会社
Priority to EP13896240.2A priority Critical patent/EP3065057A4/en
Priority to PCT/JP2013/079177 priority patent/WO2015063845A1/ja
Priority to KR1020167009888A priority patent/KR101808468B1/ko
Priority to JP2015544647A priority patent/JP6107965B2/ja
Publication of WO2015063845A1 publication Critical patent/WO2015063845A1/ja
Priority to US15/081,159 priority patent/US20160210071A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/76Television signal recording
    • H04N5/765Interface circuits between an apparatus for recording and another apparatus
    • H04N5/77Interface circuits between an apparatus for recording and another apparatus between a recording apparatus and a television camera
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/062Securing storage systems
    • G06F3/0623Securing storage systems in relation to content
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F12/00Accessing, addressing or allocating within memory systems or architectures
    • G06F12/16Protection against loss of memory contents
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0638Organizing or formatting or addressing of data
    • G06F3/064Management of blocks
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0653Monitoring storage devices or systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0668Interfaces specially adapted for storage systems adopting a particular infrastructure
    • G06F3/0671In-line storage system
    • G06F3/0673Single storage device
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/433Content storage operation, e.g. storage operation in response to a pause request, caching operations
    • H04N21/4335Housekeeping operations, e.g. prioritizing content for deletion because of storage space restrictions

Definitions

  • the present invention relates to a data storage device, a data storage method, and a data storage program.
  • a technique for storing data when a predetermined event is detected For example, there is a monitoring system that stores video data when an abnormality occurs.
  • video data captured by a camera is cyclically overwritten and stored in a storage unit using a flash memory such as a compact flash (registered trademark), for example.
  • a flash memory such as a compact flash (registered trademark)
  • overwriting is prohibited and protected from video data a predetermined time before the abnormality detection stored in the storage unit.
  • the data of the block in which the data to be protected by the storage unit is written is read, the protection flag of the header information is updated, and the data is written again to the storage unit.
  • An object of one aspect is to provide a data storage device, a data storage method, and a data storage program that can suppress an increase in the number of data rewrites.
  • the data storage device includes a storage unit, a registration unit, and a management unit.
  • the storage unit the storage area is divided into a plurality of blocks, and among the plurality of blocks of the storage unit provided with an upper limit on the number of times data is rewritten in each block, the blocks that are not to be protected are sequentially overwritten, Stores sequentially input data.
  • the registration unit displays protection information instructing data protection and block information indicating a block in which data is stored a predetermined time before the protection trigger is detected.
  • the data is stored in the block by the storage unit.
  • the management unit manages a block from a block in which data before a predetermined time is stored to a block in which data is stored when an end trigger instructing the end of protection is detected as a block to be protected.
  • FIG. 1 is a diagram illustrating an example of a schematic configuration of the entire data storage system.
  • FIG. 2 is a diagram illustrating an example of the overall configuration of the data storage device.
  • FIG. 3 is a diagram schematically showing the configuration of the storage area of the storage unit.
  • FIG. 4 is a diagram illustrating an example of a data configuration of the block management information.
  • FIG. 5 is a diagram illustrating an example of a data configuration of file management information.
  • FIG. 6 is a diagram illustrating an example of a flow of storing video data.
  • FIG. 7 is a diagram illustrating an example of a flow of storing video data.
  • FIG. 8 is a diagram illustrating an example of a flow of storing video data.
  • FIG. 9 is a diagram illustrating an example of a flow of storing video data.
  • FIG. 10 is a diagram illustrating an example of a flow of storing video data.
  • FIG. 11 is a diagram illustrating an example of a flow of storing video data.
  • FIG. 12 is a diagram illustrating an example of a flow of storing video data.
  • FIG. 13 is a diagram illustrating an example of a flow of releasing data protection.
  • FIG. 14 is a diagram schematically showing a flow of releasing data protection.
  • FIG. 15 is a diagram for explaining the number of data rewrites.
  • FIG. 16 is a flowchart illustrating a procedure of data storage processing.
  • FIG. 17 is a diagram illustrating a computer that executes a data storage program.
  • the data storage system 10 is a system for storing video data when a predetermined event occurs.
  • FIG. 1 is a diagram illustrating an example of a schematic configuration of the entire data storage system.
  • the data storage system 10 includes a camera 11, a data storage device 12, and a storage device 13.
  • the camera 11 is connected to the data storage device 12.
  • the data storage device 12 and the storage device 13 are communicably connected via a network 14 and can exchange various kinds of information.
  • the network 14 there is an arbitrary communication network such as a local area network (LAN), a virtual private network (VPN), and a mobile communication network regardless of wired or wireless.
  • 1 exemplifies the case where the data storage system 10 includes one camera 11 and one data storage device 12.
  • the disclosed system is not limited to this, and the camera 11 and the data storage device 12 can be arbitrarily set.
  • the number of The data storage system 10 may have a plurality of storage devices 13. In the example of FIG. 1, the case where one camera 11 is connected to the data storage device 12 is illustrated. However, the disclosed system is not limited to this, and a plurality of cameras 11 are connected to the data storage device 12. May be.
  • the camera 11 is a photographing device for photographing video.
  • the camera 11 is arranged so that the monitoring target is within the shooting range.
  • the example of FIG. 1 shows a case where a river is a monitoring target.
  • the camera 11 is arranged so that the river is within the shooting range. Note that the monitoring target is not limited to a river and may be any.
  • the camera 11 continuously captures images at a predetermined frame rate, and outputs video data of the continuously captured images to the data storage device 12.
  • the data storage device 12 is a device for storing video data.
  • the data storage device 12 receives video data output from the camera 11.
  • the data storage device 12 transfers the input video data to the storage device 13.
  • the data storage device 12 temporarily stores the input video data. For example, when a predetermined event is detected, the data storage device 12 protects the data from a predetermined time before the event is detected, and stores the video data when the event is detected in the storage medium. .
  • the camera 11 and the data storage device 12 are connected to a power supply device that accumulates power, such as UPS (Uninterruptible Power Supply), and can supply the accumulated power.
  • UPS Uninterruptible Power Supply
  • the storage device 13 is a device that stores video data.
  • the storage device 13 is, for example, a computer such as a server computer.
  • the storage device 13 includes a large-capacity storage device 13A such as a disk array device, for example.
  • the storage device 13A has a storage capacity capable of accumulating video data transferred from the plurality of data storage devices 12 for a predetermined retention period.
  • the storage device 13 stores the video data transferred from the data storage device 12 in the storage device 13A and stores it for a predetermined storage period.
  • FIG. 2 is a diagram illustrating an example of the overall configuration of the data storage device.
  • the data storage device 12 includes an input unit 20, a communication I / F (interface) unit 21, an operation unit 22, a card slot 23, a memory 24, and a control unit 25.
  • the input unit 20 is an interface for inputting video data.
  • the input unit 20 is connected to the camera 11 and receives video data output from the camera 11.
  • Examples of the input unit 20 include input terminals such as a composite video terminal, a separate video terminal, a component video terminal, a D video terminal, and an HDMI (registered trademark) (High Definition Multimedia Interface) terminal.
  • the input unit 20 may be a general-purpose terminal such as a USB (Universal Serial Bus).
  • the communication I / F unit 21 is an interface that controls communication with other devices.
  • the communication I / F unit 21 transmits / receives various information to / from other apparatuses via the network 14.
  • the communication I / F unit 21 transmits video data to the storage device 13.
  • a network interface card such as a LAN card can be employed.
  • the operation unit 22 is an interface that accepts various operations.
  • the operation unit 22 includes an operation panel, and an input device such as a mouse and a keyboard.
  • the operation unit 22 receives an operation input from an administrator or the like who manages the system, and outputs operation information indicating the received operation content to the control unit 25.
  • the card slot 23 is an interface for inputting / outputting data to / from the storage unit 30.
  • the card slot 23 is detachable from the storage unit 30.
  • the card slot 23 writes / reads data to / from the storage unit 30 attached.
  • the storage unit 30 is a storage medium in which a nonvolatile semiconductor memory such as a flash memory is incorporated and data can be rewritten.
  • the storage unit 30 holds the written data.
  • An example of the storage unit 30 is a memory card such as an SD memory card (Secure Digital memory card) or a compact flash (registered trademark).
  • SD memory card Secure Digital memory card
  • compact flash registered trademark
  • the storage area is divided into a plurality of blocks, and data is written in units of blocks.
  • the compact flash (registered trademark) has a storage area divided into blocks of a predetermined size such as 16 KB (KBytes), 32 KB, and 64 KB, and data is written for each block.
  • FIG. 3 is a diagram schematically showing the configuration of the storage area of the storage unit.
  • the storage unit 30 has a storage area divided into 15 blocks. Each block has a block number for identifying the block.
  • block numbers 1 to 15 are defined for the blocks. In the following, when the blocks having the block numbers 1 to 15 are distinguished from each other, the block numbers are given and described. Note that the example of FIG. 3 schematically shows the storage area of the storage unit 30, and the number of blocks is not limited to this.
  • Each block can store data of a predetermined size. In this embodiment, data to be written in each block is divided into a header part and a data part. The data part is an area for storing video data.
  • the header part is an area for storing various types of header information related to the data stored in the data part.
  • the header portion stores a use flag, a TOP flag, a sequence number, a protection flag, a TOP block, and time as header information. Details of each header information will be described later.
  • the memory 24 is a storage device that temporarily stores various data.
  • the memory 24 is a volatile semiconductor memory capable of rewriting data, such as a RAM (Random Access Memory).
  • the memory 24 temporarily stores various data used in the processing of the control unit 25.
  • the memory 24 stores block management information 40 and file management information 41.
  • the block management information 40 is data in which header information of each block of the storage unit 30 installed in the card slot 23 is stored.
  • the data storage device 12 reads the header information of each block of the storage unit 30 from the storage unit 30 via the card slot 23 each time, the data storage device 12 has many accesses to the storage unit 30. In general, access to data stored in the storage unit 30 takes time compared to access to data stored in the memory 24. Therefore, the data storage device 12 according to the present embodiment stores a copy of the header information of each block of the storage unit 30 installed in the card slot 23 in the block management information 40.
  • the block management information 40 is created by reading out header information from each block of the installed storage unit 30 when the storage unit 30 is newly installed in the card slot 23. Further, the block management information 40 is updated to the same header information when the header information is updated from each block of the attached storage unit 30. Note that the block management information 40 does not have to hold all of the header information, but may hold the header information used for processing.
  • FIG. 4 is a diagram showing an example of the data configuration of the block management information.
  • the block management information 40 includes items of “block number”, “use flag”, “TOP flag”, “sequence number”, “protection flag”, “TOP block”, and “time”.
  • the block number item is an area for storing a block number indicating which block the record is. In this embodiment, numbers 1 to 15 corresponding to blocks 1 to 15 shown in FIG. 3 are stored in the block number item.
  • the record with the block number “1” indicates that the information is related to block 1.
  • the use flag item is an area for storing information indicating whether or not valid data is stored in the block.
  • the TOP flag item is an area for storing information indicating whether the data stored in the block is the head data of the file.
  • ON is stored when the data stored in the block is the head data of the file, and OFF is stored when the data is not the head data of the file.
  • the item of sequence number is an area for storing the sequence number of data stored in the block.
  • data having a size larger than the block size is divided into data having a size for each block and stored. When the data is divided into data for each block, consecutive sequence numbers for identifying the data are sequentially given to the block data.
  • the sequence number item stores the sequence number assigned to the block data.
  • the item of the protection flag is an area for storing information indicating whether the data is to be protected. In the protection flag item, ON is stored when data is to be protected, and OFF is stored when the data is not data to be protected.
  • the TOP block item is an area for storing the first block number in which data to be protected is stored.
  • the top block number storing data to be protected is stored in the TOP block item.
  • the time item is an area for storing a time associated with the block data. For example, data stored over time such as video data includes information that can specify the date and time when the video was recorded. For example, the video data includes information on the time when shooting started and the time elapsed since the beginning of the data.
  • the time item stores the recording start time and recording end time of the data stored in the block.
  • the block with block number 1 indicates that data is stored because the use flag is ON, and the top data of the file is stored because the TOP flag is ON.
  • the block of block number 1 has a sequence number of 1, the protection flag and the TOP block are blank, and the time of stored data is from 10:00:30 to 10:00:59.
  • the file management information 41 is data storing management information for managing a block in which data to be made into one file is stored.
  • the data storage device 12 manages a block in which data to be made into one file is stored using file management information 41 separately from the block management information 40.
  • FIG. 5 is a diagram showing an example of the data structure of the file management information.
  • the file management information 41 has items of “blocks belonging” and “protection information”.
  • the item of the block to which it belongs is an area for storing a block number of a block that manages stored data as one file.
  • the item of protection information is an area for storing information indicating whether the file is data to be protected. In the protection information item, ON is stored when data is to be protected, and OFF is stored when data is not to be protected.
  • the data of the blocks with block numbers 1, 2, 3, and 4 are managed as one file, and the protection information is “OFF”, indicating that the data is not data to be protected. .
  • the data storage device 12 can also manage block data as one file using the block management information 40 described above.
  • the data storage device 12 can identify a start block and an end block from the block management information 40 described above, and can manage block data between the start block and the end block as data of one file.
  • the start block is a block whose TOP flag is ON in the block management information 40.
  • the start block is a block having a smaller sequence number in two blocks in which the sequence numbers are not consecutive when the sequence numbers of the respective blocks are referred to cyclically in the order of the block numbers.
  • the end block is the block immediately before the start block in the order of the block numbers.
  • the file management information 41 is created from the block management information 40 at a predetermined timing, for example, when the storage unit 30 is newly installed in the card slot 23 and the block management information 40 is created.
  • a start block and an end block are specified from the block management information 40, and block data between the start block and the end block is registered as data of one file.
  • the control unit 25 is a device that controls the data storage device 12.
  • an electronic circuit such as a CPU (Central Processing Unit) or an MPU (Micro Processing Unit), or an integrated circuit such as an ASIC (Application Specific Integrated Circuit) or FPGA (Field Programmable Gate Array) can be adopted.
  • the control unit 25 has an internal memory for storing programs defining various processing procedures and control data, and executes various processes using these.
  • the control unit 25 functions as various processing units by operating various programs.
  • the control unit 25 includes a conversion unit 50, a transfer unit 51, a storage unit 52, a detection unit 53, a registration unit 54, a management unit 55, and an update unit 56.
  • the conversion unit 50 performs various conversions. For example, the conversion unit 50 converts video data input from the camera 11 into video data in a predetermined data format. For example, the conversion unit 50 converts the video data input from the camera 11 into MPEG2 (Moving Picture Experts Group phase 2) format and compresses the data. In this embodiment, the conversion unit 50 converts video data input from the camera 11 into, for example, video data in the MPEG2 format of 6 Mbps.
  • MPEG2 Motion Picture Experts Group phase 2
  • the transfer unit 51 performs various transfers. For example, the transfer unit 51 transfers the video data shot by the camera 11 and converted by the conversion unit 50 to the storage device 13. As a result, the video data is transferred to the storage device 13 via the network 14 and stored in the storage device 13A.
  • the storage unit 52 performs various types of storage. For example, the storage unit 52 divides video data captured by the camera 11 and converted by the conversion unit 50 into block size data and stores the data in the storage unit 30. For example, based on the block management information 40, the storage unit 52 repeatedly overwrites a block that is not a protection target among a plurality of blocks in the storage unit 30, and stores sequentially input video data. For example, the storage unit 52 sequentially stores the video data converted by the conversion unit 50 in the memory 24. Then, when the size of the video data stored in the memory 24 becomes the size of the data unit stored in the block of the storage unit 30, the storage unit 52 generates header information related to the stored video data. The accumulated data may be for one block, but a plurality of blocks may be accumulated.
  • the storage unit 52 sets the use flag to ON, sets the sequence number to the data serial number, sets the time to the recording start time and recording end time of the accumulated data, sets the protection flag to OFF, and sets no TOP block. Header information is generated as a blank indicating. Further, when the accumulated video data is the head of the file, the storage unit 52 sets the TOP flag to ON. Then, the storage unit 52 sets the generated header information in the header part, and sequentially sets the data in which the accumulated video data is set in the data part, in order of the block numbers, to the blocks not to be protected. Store.
  • the detection unit 53 performs various types of detection. For example, the detection unit 53 detects a protection trigger that instructs data protection. For example, the detection unit 53 detects the occurrence of an earthquake as a protection trigger. For example, the detection unit 53 detects that an earthquake has occurred when an acceleration greater than or equal to a predetermined value continues from an acceleration sensor (not shown) connected to the data storage device 12 for a predetermined time or longer. The detection unit 53 may detect the occurrence of an earthquake from the video data input from the camera 11. For example, the detection unit 53 detects the amount of blur in the horizontal direction and the vertical direction between video frames of video data input from the camera 11.
  • the detection unit 53 compares the frames and detects the amount of blur in the horizontal direction and the vertical direction from the change in the position of the object between the frames. And the detection part 53 detects that the earthquake generate
  • the registration unit 54 performs various registrations. For example, when the detection trigger is detected by the detection unit 53, the registration unit 54 converts the information for protecting the data before a predetermined time when the protection trigger is detected into the data stored in the block by the storage unit 52. sign up. For example, the registration unit 54 changes the protection flag in the header portion of the data stored in the block by the storage unit 52 to ON, and changes the TOP block to the block in which the data before the predetermined time when the protection trigger is detected is stored. Change to block number. Data including the changed protection flag and the TOP block is stored in the block by the storage unit 52.
  • the management unit 55 performs various types of management. For example, the management unit 55 manages information on the block management information 40 and the file management information 41. For example, when data is stored in the block of the storage unit 30 by the storage unit 52, the management unit 55 updates the header information of the block number record in which the data of the block management information 40 is stored with the header information of the stored data. . Further, the management unit 55 updates the file management information 41 and registers the block number of the block in which the data of the file is stored for each file. In addition, when a protection trigger is detected, the management unit 55 stores data when an end trigger instructing the end of protection is detected from a block storing data for a predetermined time before the protection trigger is detected. Up to the block to be protected is managed as a block to be protected.
  • the update unit 56 performs various updates. For example, when the cancellation of data protection is instructed, the update unit 56 updates the protection flag of the block storing the data for which the protection flag is ON to OFF. For example, when the protection trigger is detected and the protection flag is turned ON, the update unit 56 copies the data stored in the block by the storage unit 52 and stores it in the memory 24. Then, when the cancellation is instructed, the update unit 56 updates the protection flag of the data stored in the memory 24 to OFF, and overwrites the data of the block whose protection flag is turned ON with the updated data.
  • 6 to 12 are diagrams showing an example of the flow of storing video data.
  • the video data captured by the camera 11 is sequentially input to the data storage device 12.
  • the video data input from the camera 11 is converted into video data in a predetermined data format by the conversion unit 50, and is stored in the storage unit 30 by being divided into block size data by the storage unit 52.
  • the management unit 55 updates the header information of the record of the block number storing the data of the block management information 40 with the header information of the stored data. Further, the management unit 55 registers the block number of the block storing the data of the file in the file management information 41 for each file.
  • the example of FIG. 6 shows a state in which the video data is stored in the blocks 1 to 4 after the storage unit 30 is initialized.
  • the use flag of the block management information 40 is OFF indicating non-storage, and is updated to ON when data is first stored after initialization.
  • the use flags of blocks 1 to 4 are set to ON, and the use flags of blocks 5 to 15 are set to OFF.
  • the TOP flag stores ON when the data stored in the block is the head data of the file, and turns OFF when the data is not the head data of the file.
  • the sequence number indicates the order of data.
  • the time indicates the recording start time and recording end time of the stored data. In the example of FIG. 6, among the blocks 1 to 4 with consecutive sequence numbers, only the block 1 has the TOP flag ON, so the data of the blocks 1 to 4 is one file with the data of the block 1 at the top. Has been.
  • the block number of the block in which the data for one file is stored is stored.
  • the protection information of the file management information 41 is turned off when overwriting is permitted, and turned on when overwriting is prohibited and protected.
  • data as one file is stored in the blocks with the block numbers 1 to 4 and the protection information is OFF, which indicates that overwriting is permitted.
  • the data storage device 12 protects the data by prohibiting overwriting from data a predetermined time before the protection trigger is detected.
  • the registration unit 54 changes the protection flag in the header portion of the data stored in the memory 24 to ON, and the TOP block stores data before a predetermined time when the protection trigger is detected. Change to the block number of the selected block.
  • the storage section 52 sets the stored video data in the data section and sets the header information in the header section. And stored in the storage unit 30.
  • FIG. 7 shows a state in which a protection trigger is detected while data for block 5 is being accumulated.
  • the predetermined time before the start of protection is, for example, one minute before.
  • a protection flag with a block number of 5 is turned ON, and a block number 3 in which data one minute before is stored in the TOP block is registered.
  • the management unit 55 updates the file management information 41 so that the protection data becomes another file.
  • the file management information 41 is updated so that the block numbers 1 and 2 are one file and the block numbers 3, 4, and 5 are another file. Further, the protection information is turned on for the files of block numbers 3, 4, and 5, and overwriting is prohibited.
  • the data storage device 12 stores the video data captured by the camera 11 in the storage unit 30 as protection data until a protection end trigger is detected.
  • FIG. 8 shows a state in which data is stored as protected data up to block 8.
  • data is further stored in blocks of block numbers 6-8.
  • the management unit 55 registers the block numbers 3 to 8 in the file management information 41 as one file with the protection information ON.
  • the data storage device 12 cancels the protection flag from the data of the block next to the block of data stored in the memory 24 and stores the data in the storage unit 30 as another file.
  • the protection end trigger may be received by the operation unit 22 from an administrator or the like. Further, the protection termination trigger may be received from another device via the network 14. Further, the protection end trigger may be generated in a certain period after the protection trigger is detected.
  • the management unit 55 sets the protection data as one file and updates the file management information 41 so that the subsequent data becomes another file.
  • FIG. 9 shows a state in which a protection end trigger is detected while data for the block 8 is being accumulated, and the protection flag is removed from the data for the block 9 and the data is accumulated.
  • the TOP flag is set to ON in the block of block number 9.
  • the management unit 55 registers the block number of 9 in the file management information 41 as another file with the protection information OFF.
  • the data storage device 12 stores the video data captured by the camera 11 in the storage unit 30 in the order of block numbers.
  • FIG. 10 shows a state where data is stored up to block 15.
  • the use flag is turned ON in the block of block number 15, and data is stored.
  • the management unit 55 registers the block numbers 9 to 15 in the file management information 41 as one file with the protection information OFF.
  • the storage unit 52 refers to the file management information 41 and stores the data in the writing target block when the protection information of the file including the block number of the writing target block is OFF and is not data to be protected. On the other hand, if the protection information of the file including the block number of the block to be written is ON and the data to be protected is stored, the storage unit 52 cyclically increments the block number and writes the block of the next block number Find the target block. Then, the storage unit 52 refers to the file management information 41 and determines again whether or not the write target block is data to be protected.
  • the example of FIG. 11 shows a state where data is stored again in the blocks 1 and 2.
  • data is overwritten and stored in the blocks of block numbers 1 and 2 whose protection information is OFF.
  • the sequence numbers of block numbers 1 and 2 are continuous from the sequence number of block number 15. From this, it can be determined that the data of the block with the block numbers 1 and 2 is continuous with the data of the block with the block number 15.
  • the management unit 55 registers the overwritten block numbers 1 and 2 in the file management information 41 as the same file data as the block numbers 9 to 15.
  • the protection information is ON for the blocks with the block numbers 3 to 8. For this reason, in the state shown in FIG. 11, the storage unit 52 stores data with the block of block number 9 after block numbers 3 to 8 as the block to be written.
  • the example of FIG. 12 shows a state where data is stored again in the block 9.
  • the sequence number of block number 9 is continuous from the sequence number of block number 2. From this, it can be determined that the data of the block with the block number 9 is continuous with the data of the block with the block number 2.
  • the management unit 55 registers the overwritten block number 9 in the file management information 41 so as to be another file.
  • the management unit 55 may register data in the file management information 41 as the same file data as the block numbers 10 to 15, 1, and 2.
  • the data storage device 12 sequentially overwrites the blocks that are not to be protected, and stores sequentially input data in the storage unit 30.
  • FIG. 13 is a diagram illustrating an example of a flow of releasing data protection.
  • the protection flag of the block in which the data for which the protection flag is turned on by the updating unit 56 is stored is updated to OFF.
  • the update unit 56 updates the protection flag of the block with the block number 5 for which the protection flag is ON to OFF for each of the storage unit 30 and the block management information 40. Further, the update unit 56 updates the protection information of the file including the block number 5 of the file management information 41 to OFF.
  • FIG. 14 is a diagram schematically showing a flow of releasing data protection.
  • the storage unit 52 sequentially stores data in the memory 24, and stores the data in the storage unit 30 when the size of the data stored in the memory 24 becomes the size of the data unit stored in the block of the storage unit 30.
  • the protection flag is changed to ON for the data stored in the memory 24 when the protection trigger is detected, and data before a predetermined time when the protection trigger is detected is stored in the TOP block. Stores the block number of the stored block.
  • the update unit 56 stores the data stored in the block in the memory 24 and backs it up. Then, when the cancellation is instructed, the storage unit 52 updates the backup data protection flag stored in the memory 24 to OFF, and updates the data of the block in which the protection flag ON data is stored. Overwrite. In the example of FIG.
  • the data with the protection flag set to ON is written for the block 5, so the data of the block 5 is backed up in the memory 24.
  • the protection flag of the data of the block 5 stored in the memory 24 is updated to OFF, and the data of the block 5 is overwritten.
  • FIG. 15 is a diagram for explaining the number of data rewrites.
  • a flag for protecting the stored data is stored in each block of the storage unit 30
  • a flag indicating protection is written in the data of each block.
  • a flag indicating that the block data is protected is written to the data of the block 2 to the block 8.
  • the stored block data is read and overwritten by rewriting the flag, so that the number of data rewrites increases.
  • the flag is rewritten for the blocks 2 to 4, so the number of data rewrites increases.
  • the protection flag of the header information of the data to be stored next time is set to ON, the block number for starting protection is set to the TOP block, and the data is stored in the storage unit 30.
  • the protection flag of the header information of the data to be stored next time is set to ON, the block number for starting protection is set to the TOP block, and the data is stored in the storage unit 30.
  • the data flag of each block is rewritten to a state indicating the protection release. For example, in the example on the left side of FIG. 15, the data flags of block 2 to block 8 are rewritten, and the number of data rewrites increases.
  • the protection flag is updated to OFF only for the block in which the data for which the protection flag is ON is stored.
  • the data flag is rewritten only in the block 5 and the data in the other blocks is not rewritten.
  • FIG. 16 is a flowchart illustrating a procedure of data storage processing. This data storage process is executed at a predetermined timing, for example, when input of video data from the camera 11 is started.
  • the conversion unit 50 converts the video data input from the camera 11 into video data in a predetermined data format. (S10).
  • the registering unit 54 determines whether or not the storage unit 30 has already stored the protection data in which the protection rough is turned on (S11). When the protection data is not stored (No at S11), the registration unit 54 determines whether or not a protection trigger is detected (S12). When the protection trigger is detected (Yes at S12), the registration unit 54 changes the protection flag in the header portion of the data stored in the memory 24 to ON, and the TOP block is changed to a predetermined time before the protection trigger is detected. The block number of the block in which the data is stored is changed (S13). Then, the storage unit 52 stores and accumulates the converted data in the memory 24 (S14).
  • the storage unit 52 determines whether data corresponding to the size of the data unit stored in the block of the storage unit 30 has been accumulated in the memory 24 (S15). When data is not accumulated (No at S15), the process proceeds to S10 described above. On the other hand, when data is accumulated (Yes at S15), the registration unit 54 determines whether or not the data has the protection flag turned on (S16). If the protection flag is ON (YES at S16), the updating unit 56 copies the data and backs it up in the memory 24 (S17), and proceeds to S18. On the other hand, when the data is not the data with the protection flag turned ON (No at S16), the process proceeds to S18.
  • the storage unit 52 refers to the file management information 41 to determine whether or not the block to which data is to be written is the protection target block in the order of the cyclic block numbers (S18). If it is a block to be protected (Yes at S18), the storage unit 52 identifies the block to be protected in the order of the cyclic block number (S19), and proceeds to the above-described S18. On the other hand, if it is not a block to be protected (No at S18), the storage unit 52 adds header information and stores the accumulated data in the block to be written (S20).
  • the storage unit 52 determines whether or not the data input is completed (S21). If the data input is completed (Yes at S21), the process is terminated. On the other hand, if the data input has not ended (No at S21), the process proceeds to S10 described above.
  • the update unit 56 determines whether or not an instruction to cancel the protection of the data is given (S22).
  • the update unit 56 updates the protection flag of the data backed up in the memory 24 to OFF (S23). Then, the update unit 56 overwrites the data of the block in which the protection flag is turned ON with the updated data (S24), and proceeds to the process of S14 described above.
  • the management unit 55 determines whether or not a protection end trigger is detected (S25). When the protection end trigger is not detected (No at S25), the process proceeds to S14 described above. On the other hand, if a protection end trigger is detected (Yes at S25), the management unit 55 sets the data up to the accumulated data as the protected data file, and registers the data from the next block as a new file in the file management information 41. Control (S26), and the process proceeds to S14 described above.
  • the data storage device 12 has a storage area divided into a plurality of blocks, and a block that is not a protection target among a plurality of blocks of the storage unit 30 that has an upper limit on the number of times data is rewritten in each block. Are sequentially overwritten to store sequentially input data.
  • the data storage device 12 stores protection information instructing data protection and a block in which data for a predetermined time before the protection trigger is detected is stored. The block information shown is registered in the data stored in the block.
  • the data storage device 12 manages from the block in which the data before a predetermined time is stored to the block in which the data is stored when an end trigger instructing the end of protection is detected as a block to be protected. . Thereby, the data storage device 12 can suppress an increase in the number of data rewrites.
  • the data storage device 12 can protect data to be protected and store sequentially input data in the storage unit 30.
  • the data storage device 12 when the data storage device 12 is instructed to cancel the protection of the data, the data storage device 12 updates the protection information of the block in which the protection information is stored to the release state. Thereby, the data storage device 12 can suppress an increase in the number of data rewrites even when releasing the protection of the data.
  • the data storage device 12 stores the data stored in the block in the memory 24 when the protection trigger is detected.
  • the data storage device 12 updates the protection information of the data stored in the memory 24 to the release state, and overwrites the data of the block in which the protection information is stored with the updated data.
  • the data storage device 12 does not have to read out the data of the block in which the protection information is stored from the storage unit 30 when releasing the protection of the data, and thus the processing load can be reduced.
  • the data storage device 12 does not have to read the data of the block in which the protection information is stored from the storage unit 30, for example, the data is stored in the storage unit 30 in competition with the data storage process in the storage unit 30. It can suppress that it is not accumulated.
  • any protection trigger may be used.
  • the disclosed apparatus is not limited to this. Any data may be input sequentially.
  • the sequentially input data may be seismic waveform data detected by a seismometer, audio data input from a microphone or the like, or data combining these.
  • each component of each illustrated apparatus is functionally conceptual and does not necessarily need to be physically configured as illustrated.
  • the specific state of distribution / integration of each device is not limited to the one shown in the figure, and all or a part thereof may be functionally or physically distributed or arbitrarily distributed in arbitrary units according to various loads or usage conditions.
  • the conversion unit 50, the transfer unit 51, the storage unit 52, the detection unit 53, the registration unit 54, the management unit 55, and the update unit 56 illustrated in FIG. 2 may be appropriately integrated or divided.
  • Each processing function performed by each processing unit may be realized in whole or in part by a CPU and a program that is analyzed and executed by the CPU, or may be realized by hardware using wired logic. .
  • FIG. 17 is a diagram illustrating a computer that executes a data storage program.
  • the computer 300 includes a CPU 310, a ROM (Read Only Memory) 320, an HDD (Hard Disk Drive) 330, and a RAM (Random Access Memory) 340. These units 310 to 340 are connected via a bus 400.
  • the ROM 320 stores in advance a data storage program 320a that performs the same function as each processing unit of the above embodiment.
  • the data storage program 320a that performs the same functions as the conversion unit 50, transfer unit 51, storage unit 52, detection unit 53, registration unit 54, management unit 55, and update unit 56 of the above-described embodiment is stored. Note that the data storage program 320a may be separated as appropriate.
  • the HDD 330 stores various data.
  • the HDD 330 stores various data used for OS and characteristic estimation.
  • the CPU 310 reads out the data storage program 320a from the ROM 320 and executes it, thereby executing the same operation as each processing unit of the embodiment. That is, the data storage program 320a performs the same operations as those of the conversion unit 50, transfer unit 51, storage unit 52, detection unit 53, registration unit 54, management unit 55, and update unit 56 of the embodiment.
  • the data storage program 320a is not necessarily stored in the ROM 320 from the beginning.
  • the data storage program 320a may be stored in the HDD 330.
  • a program is stored in a “portable physical medium” such as a flexible disk (FD), a CD-ROM (Compact Disk Read Only Memory), a DVD (Digital Versatile Disk), a magneto-optical disk, or an IC card inserted into the computer 300.
  • FD flexible disk
  • CD-ROM Compact Disk Read Only Memory
  • DVD Digital Versatile Disk
  • IC card inserted into the computer 300.
  • the computer 300 may read and execute the program from these.
  • the program is stored in “another computer (or server)” connected to the computer 300 via a public line, the Internet, a LAN, a WAN, or the like. Then, the computer 300 may read and execute the program from these.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Television Signal Processing For Recording (AREA)
  • Storage Device Security (AREA)
  • Techniques For Improving Reliability Of Storages (AREA)

Abstract

 データ格納装置(12)は、格納部(52)と、登録部(54)と、管理部(55)とを有する。格納部(52)は、記憶領域が複数のブロックに分けられ、各ブロックのデータの書換回数に上限が設けられた記憶部(30)の複数のブロックのうち、保護対象とされていないブロックに順次上書きを繰り返して、順次入力されるデータを格納する。登録部(54)は、データの保護を指示する保護トリガが検出された際に、データの保護を指示する保護情報および当該保護トリガが検出される所定時間前のデータが格納されたブロックを示すブロック情報を、ブロックに格納されるデータに登録する。管理部(55)は、所定時間前のデータが格納されたブロックから、保護の終了を指示する終了トリガが検出された際にデータが格納されるブロックまでを保護対象であるブロックとして管理する。

Description

データ格納装置、データ格納方法およびデータ格納プログラム
 本発明は、データ格納装置、データ格納方法およびデータ格納プログラムに関する。
 従来より、所定のイベントが検出された際のデータを保存する技術がある。例えば、異常が発生した際の映像データを保存する監視システムがある。このような監視システムでは、カメラにより撮影された映像データを、例えば、コンパクトフラッシュ(登録商標)等のフラッシュメモリを用いた記憶部に循環的に上書き保存する。そして、監視システムでは、異常が検出された際に、記憶部に保存された異常検出時よりも所定時間前の映像データから上書きを禁止して保護する。書込み済のデータを保護するには、記憶部の保護するデータが書かれたブロックのデータを読出し、ヘッダ情報の保護フラグを更新して記憶部に再度書き込む。
特開2011-172256号公報 特開2000-196996号公報
 しかしながら、書込み済のデータを保護するために、保護するデータが書かれたブロックのデータを読出し、ヘッダ情報の保護フラグを更新して再度書き込んだ場合、データの書換回数が増加してしまうという問題点がある。フラッシュメモリを用いた記憶部は、データの書換回数に上限がある。このため、データの書換回数が増加すると、エラーが発生して映像データを保存できない場合がある。
 一側面では、データの書換回数の増加を抑制できるデータ格納装置、データ格納方法およびデータ格納プログラムを提供することを目的とする。
 本発明の一側面によれば、データ格納装置は、格納部と、登録部と、管理部とを有する。格納部は、記憶領域が複数のブロックに分けられ、各ブロックのデータの書換回数に上限が設けられた記憶部の複数のブロックのうち、保護対象とされていないブロックに順次上書きを繰り返して、順次入力されるデータを格納する。登録部は、データの保護を指示する保護トリガが検出された際に、データの保護を指示する保護情報および当該保護トリガが検出される所定時間前のデータが格納されたブロックを示すブロック情報を、格納部によりブロックに格納されるデータに登録する。管理部は、所定時間前のデータが格納されたブロックから、保護の終了を指示する終了トリガが検出された際にデータが格納されるブロックまでを保護対象であるブロックとして管理する。
 データの書換回数の増加を抑制できる。
図1は、データ格納システムの全体の概略構成の一例を示す図である。 図2は、データ格納装置の全体構成の一例を示す図である。 図3は、記憶部の記憶領域の構成を概略的に示した図である。 図4は、ブロック管理情報のデータ構成の一例を示す図である。 図5は、ファイル管理情報のデータ構成の一例を示す図である。 図6は、映像データの格納の流れの一例を示す図である。 図7は、映像データの格納の流れの一例を示す図である。 図8は、映像データの格納の流れの一例を示す図である。 図9は、映像データの格納の流れの一例を示す図である。 図10は、映像データの格納の流れの一例を示す図である。 図11は、映像データの格納の流れの一例を示す図である。 図12は、映像データの格納の流れの一例を示す図である。 図13は、データ保護の解除の流れの一例を示す図である。 図14は、データ保護の解除の流れを模式的に示した図である。 図15は、データの書換回数を説明するための図である。 図16は、データ格納処理の手順を示すフローチャートである。 図17は、データ格納プログラムを実行するコンピュータを示す図である。
 以下に、本発明にかかるデータ格納装置、データ格納方法およびデータ格納プログラムの実施例を図面に基づいて詳細に説明する。なお、この実施例によりこの発明が限定されるものではない。そして、各実施例は、処理内容を矛盾させない範囲で適宜組み合わせることが可能である。以下の実施例では、映像データを格納する場合を例に説明する。
 実施例1に係るデータ格納システム10について説明する。データ格納システム10は、所定のイベントが発生した際の映像データを格納するシステムである。以下では、所定のイベントとして、地震を検出し、地震が発生した際の映像データを格納する場合を例に説明する。図1は、データ格納システムの全体の概略構成の一例を示す図である。図1に示すように、データ格納システム10は、カメラ11と、データ格納装置12と、蓄積装置13とを備えている。カメラ11は、データ格納装置12と接続されている。また、データ格納装置12と蓄積装置13は、ネットワーク14を介して通信可能に接続され、各種の情報を交換することが可能とされている。かかるネットワーク14の一態様としては、有線または無線を問わず、LAN(Local Area Network)やVPN(Virtual Private Network)、移動体通信網などの任意の通信網が挙げられる。なお、図1の例では、データ格納システム10は、カメラ11およびデータ格納装置12を1つ有する場合を例示したが、開示のシステムはこれに限定されず、カメラ11およびデータ格納装置12を任意の数とすることができる。また、データ格納システム10は、蓄積装置13を複数有してもよい。また、図1の例では、データ格納装置12に1台のカメラ11を接続した場合を例示したが、開示のシステムはこれに限定されず、データ格納装置12に複数台のカメラ11を接続してもよい。
 カメラ11は、映像を撮影する撮影デバイスである。カメラ11は、監視対象が撮影範囲内となるように配置される。図1の例は、河川を監視対象とした場合を示している。カメラ11は、河川が撮影範囲内となるように配置される。なお、監視対象は、河川に限定されるものではなく、何れであってもよい。カメラ11は、所定のフレームレートで画像を連続的に撮影し、連続的に撮影された画像の映像データをデータ格納装置12へ出力する。
 データ格納装置12は、映像データを格納する装置である。データ格納装置12は、カメラ11から出力された映像データが入力する。データ格納装置12は、入力した映像データを蓄積装置13へ転送する。また、データ格納装置12は、入力した映像データを一時的に記憶する。そして、例えば、データ格納装置12は、所定のイベントが検出された際に、イベントが検出される所定時間前からデータを保護して、イベントが検出された際の映像データを記憶媒体に保存する。なお、カメラ11およびデータ格納装置12には、例えば、UPS(Uninterruptible Power Supply)などの電力を蓄積し、蓄積した電力を供給可能な電源装置が接続されている。カメラ11およびデータ格納装置12は、停電等が発生して商用電源から電力が供給されなくなった場合でも、電源装置から供給される電力により、映像の撮影および撮影された映像データの格納を行うことが可能とされている。
 蓄積装置13は、映像データを蓄積する装置である。蓄積装置13は、例えば、サーバ・コンピュータなどのコンピュータである。蓄積装置13は、例えば、ディスクアレイ装置などの大容量の記憶装置13Aを備えている。記憶装置13Aは、複数のデータ格納装置12から転送された映像データを所定の保存期間、蓄積可能な記憶容量を有する。蓄積装置13は、データ格納装置12から転送された映像データを記憶装置13Aに蓄積して所定の保存期間、保存する。
 次に、実施例1に係るデータ格納装置12の構成について説明する。図2は、データ格納装置の全体構成の一例を示す図である。図2に示すように、データ格納装置12は、入力部20と、通信I/F(インタフェース)部21と、操作部22と、カードスロット23と、メモリ24と、制御部25とを有する。
 入力部20は、映像データを入力するためのインタフェースである。入力部20は、カメラ11が接続され、カメラ11から出力された映像データが入力する。かかる入力部20の一態様としては、コンポジット映像端子、セパレート映像端子、コンポーネント映像端子、D映像端子、HDMI(登録商標)(High Definition Multimedia Interface)端子などの入力端子が挙げられる。なお、入力部20は、USB(Universal Serial Bus)などの汎用の端子であってもよい。
 通信I/F部21は、他の装置との間で通信制御を行うインタフェースである。通信I/F部21は、ネットワーク14を介して他の装置と各種情報を送受信する。例えば、通信I/F部21は、映像データを蓄積装置13へ送信する。かかる通信I/F部21の一態様としては、LANカードなどのネットワークインタフェースカードを採用できる。
 操作部22は、各種の操作を受け付けるインタフェースである。例えば、操作部22としては、操作パネルや、マウス、キーボードなどの入力デバイスが挙げられる。操作部22は、システムを管理する管理者などからの操作入力を受け付け、受け付けた操作内容を示す操作情報を制御部25へ出力する。
 カードスロット23は、記憶部30との間でデータを入出力するインタフェースである。カードスロット23は、記憶部30が着脱可能とされている。カードスロット23は、装着された記憶部30に対してデータの書き込みおよび読み込みを行う。
 記憶部30は、例えば、フラッシュメモリなどの不揮発性の半導体メモリが内蔵され、データの書き換えが可能とされた記憶媒体である。記憶部30は、書き込まれたデータを保持する。かかる記憶部30の一態様としては、SDメモリカード(Secure Digital memory card)、コンパクトフラッシュ(登録商標)などのメモリカードが挙げられる。このような記憶部30は、記憶領域が複数のブロックに分けられており、ブロック単位でデータの書き込みが行われる。例えば、コンパクトフラッシュ(登録商標)は、記憶領域が16KB(KBytes)や、32KB、64KBなど所定のサイズ毎のブロックに分けられており、ブロック毎にデータの書き込みが行われる。
 図3は、記憶部の記憶領域の構成を概略的に示した図である。図3の例では、記憶部30は、記憶領域が15個のブロックに分かれている。この各ブロックには、それぞれを識別するブロック番号が定められている。図3の例では、ブロックに1~15のブロック番号が定められている。以下では、ブロック番号が1~15のブロックをそれぞれ区別する場合、ブロック番号を付して記載する。なお、図3の例は、記憶部30の記憶領域を概略的に示したものであり、ブロック数はこれに限定されるものではない。各ブロックは、所定のサイズのそれぞれのデータの記憶が可能とされている。本実施例では、各ブロックに書き込むデータをヘッダ部とデータ部に分けている。データ部は、映像データを格納する領域である。ヘッダ部は、データ部に格納したデータに関する各種のヘッダ情報を格納する領域である。本実施例では、ヘッダ部に、ヘッダ情報として、使用フラグ、TOPフラグ、シーケンス番号、保護フラグ、TOPブロック、時刻が格納される。それぞれのヘッダ情報の詳細は、後述する。
 図2に戻り、メモリ24は、各種のデータを一時的に記憶する記憶装置である。メモリ24は、例えば、RAM(Random Access Memory)など、データを書き換え可能な揮発性の半導体メモリである。メモリ24は、制御部25の処理で使用される各種のデータを一時的に記憶する。例えば、メモリ24は、ブロック管理情報40と、ファイル管理情報41とを記憶する。
 ブロック管理情報40は、カードスロット23に装着された記憶部30の各ブロックのヘッダ情報を記憶したデータである。データ格納装置12は、記憶部30の各ブロックのヘッダ情報を、カードスロット23を介して記憶部30からその都度読み取った場合、記憶部30へのアクセスが多くなる。また、一般的に、記憶部30に記憶されたデータへのアクセスは、メモリ24に記憶されたデータへのアクセスに比べて時間がかかる。このため、本実施例に係るデータ格納装置12は、カードスロット23に装着された記憶部30の各ブロックのヘッダ情報のコピーをブロック管理情報40に格納する。ブロック管理情報40は、カードスロット23に新たに記憶部30が装着された際に、装着された記憶部30の各ブロックからヘッダ情報が読み出されて作成される。また、ブロック管理情報40は、装着された記憶部30の各ブロックからヘッダ情報が更新される場合、同じヘッダ情報に更新される。なお、ブロック管理情報40には、ヘッダ情報の全てを保持しなくてもよく、処理に用いられるヘッダ情報を保持すればよい。
 図4は、ブロック管理情報のデータ構成の一例を示す図である。図4に示すように、ブロック管理情報40は、「ブロック番号」、「使用フラグ」、「TOPフラグ」、「シーケンス番号」、「保護フラグ」、「TOPブロック」、「時刻」の各項目を有する。ブロック番号の項目は、レコードが何れのブロックの情報であるかを示すブロック番号を記憶する領域である。本実施例では、ブロック番号の項目に、図3に示したブロック1~ブロック15に対応して1~15の番号が格納されている。ブロック番号「1」のレコードは、ブロック1に関する情報であることを示す。使用フラグの項目は、ブロックに有効なデータが格納されているか否かを示す情報を記憶する領域である。使用フラグの項目には、ブロックに格納されているデータが有効な場合、ONが格納され、削除されたデータなど無効なデータである場合、OFFが格納される。TOPフラグの項目は、ブロックに格納されているデータがファイルの先頭のデータであるかを示す情報を記憶する領域である。TOPフラグの項目には、ブロックに格納されているデータがファイルの先頭のデータである場合、ONが格納され、ファイルの先頭のデータではない場合、OFFが格納される。シーケンス番号の項目は、ブロックに格納されているデータのシーケンス番号を記憶する領域である。本実施例に係るデータ格納装置12では、ブロックのサイズよりも大きなサイズのデータをブロック毎のサイズのデータに分割して記憶させる。データをブロック毎のデータに分割する際、ブロックのデータには、データを識別する連続したシーケンス番号が順に付与される。シーケンス番号の項目は、ブロックのデータに付与されたシーケンス番号が格納される。保護フラグの項目は、保護するデータであるかを示す情報を記憶する領域である。保護フラグの項目には、保護するデータである場合、ONが格納され、保護するデータではない場合、OFFが格納される。TOPブロックの項目は、保護するデータが格納された先頭のブロック番号を記憶する領域である。TOPブロックの項目には、保護するデータが格納された先頭のブロック番号が格納される。時刻の項目は、ブロックのデータに対応付ける時刻を記憶する領域である。例えば、映像データのような経時的に記憶されたデータには、映像が記録された日時を特定可能な情報が含まれている。例えば、映像データには、撮影を開始した時刻やデータの先頭からの経過時刻の情報が含まれている。時刻の項目には、ブロックに格納されたデータの記録開始時刻および記録終了時刻を格納する。図4の例では、ブロック番号1のブロックは、使用フラグがONであることからデータが格納され、TOPフラグがONであることからファイルの先頭のデータが格納されていることを示す。また、ブロック番号1のブロックは、シーケンス番号が1であり、保護フラグおよびTOPブロックが空白とされ、格納されたデータの時刻が10:00:30~10:00:59であることを示す。
 図2に戻り、ファイル管理情報41は、1つのファイルとするデータが格納されたブロックを管理する管理情報を記憶したデータである。本実施例に係るデータ格納装置12は、管理を容易にするため、ブロック管理情報40とは別にファイル管理情報41を用いて1つのファイルとするデータが格納されたブロックを管理する。
 図5は、ファイル管理情報のデータ構成の一例を示す図である。図5に示すように、ファイル管理情報41は、「属するブロック」、「保護情報」の各項目を有する。属するブロックの項目は、格納されたデータを1つのファイルとして管理するブロックのブロック番号を記憶する領域である。保護情報の項目は、ファイルが保護するデータであるかを示す情報を記憶する領域である。保護情報の項目には、保護するデータである場合、ONが格納され、保護するデータではない場合、OFFが格納される。図5の例では、ブロック番号1、2、3、4のブロックのデータを1つのファイルとして管理しており、保護情報が「OFF」であることから、保護するデータではないことを示している。
 なお、データ格納装置12は、上述のブロック管理情報40を用いて1つのファイルとするブロックのデータを管理することも可能である。例えば、データ格納装置12は、上述のブロック管理情報40から、開始ブロックと終了ブロックを特定し、開始ブロックと終了ブロックの間のブロックのデータを1つのファイルのデータとして管理することもできる。例えば、開始ブロックは、ブロック管理情報40において、TOPフラグがONとなっているブロックである。また、開始ブロックは、ブロック番号の順に循環的に各ブロックのシーケンス番号を参照した場合に、シーケンス番号が連続しない2つのブロックにおけるシーケンス番号が小さい方のブロックである。終了ブロックは、ブロック番号の順で、開始ブロックの1つ前のブロックである。
 ファイル管理情報41は、所定のタイミング、例えば、カードスロット23に新たに記憶部30が装着されてブロック管理情報40が作成された際に、当該ブロック管理情報40から作成される。例えば、ファイル管理情報41には、ブロック管理情報40から開始ブロックと終了ブロックを特定し、開始ブロックと終了ブロックの間のブロックのデータを1つのファイルのデータとして登録される。
 図2に戻り、制御部25は、データ格納装置12を制御するデバイスである。制御部25としては、CPU(Central Processing Unit)、MPU(Micro Processing Unit)等の電子回路や、ASIC(Application Specific Integrated Circuit)、FPGA(Field Programmable Gate Array)等の集積回路を採用できる。制御部25は、各種の処理手順を規定したプログラムや制御データを格納するための内部メモリを有し、これらによって種々の処理を実行する。制御部25は、各種のプログラムが動作することにより各種の処理部として機能する。例えば、制御部25は、変換部50と、転送部51と、格納部52と、検出部53と、登録部54と、管理部55と、更新部56とを有する。
 変換部50は、各種の変換を行う。例えば、変換部50は、カメラ11から入力する映像データを所定のデータ形式の映像データに変換する。例えば、変換部50は、カメラ11から入力する映像データをMPEG2(Moving Picture Experts Group phase 2)の形式に変換してデータの圧縮を行う。本実施例では、変換部50は、カメラ11から入力する映像データを、例えば、6MbpsのMPEG2の形式の映像データに変換する。
 転送部51は、各種の転送を行う。例えば、転送部51は、カメラ11により撮影され、変換部50により変換された映像データを蓄積装置13へ転送する。これにより、映像データは、ネットワーク14を介して蓄積装置13へ転送され、記憶装置13Aに蓄積される。
 格納部52は、各種の格納を行う。例えば、格納部52は、カメラ11により撮影され、変換部50により変換された映像データをブロックのサイズのデータに分けて記憶部30に格納する。例えば、格納部52は、ブロック管理情報40に基づき、記憶部30の複数のブロックのうち、保護対象とされていないブロックに順次上書きを繰り返して、順次入力される映像データを格納する。例えば、格納部52は、変換部50により変換された映像データを順次メモリ24に格納する。そして、格納部52は、メモリ24に蓄積された映像データのサイズが記憶部30のブロックに格納するデータ部のサイズとなると、蓄積された映像データに関するヘッダ情報を生成する。この蓄積するデータは、1ブロック分あればよいが、複数ブロック分を蓄積してもよい。例えば、格納部52は、使用フラグをONとし、シーケンス番号をデータの通番とし、時刻を蓄積されたデータの記録開始時刻および記録終了時刻とし、保護フラグをOFFとし、TOPブロックを設定がないことを示す空白として、ヘッダ情報を生成する。また、蓄積された映像データがファイルの先頭となる場合、格納部52は、TOPフラグをONとする。そして、格納部52は、生成したヘッダ情報をヘッダ部に設定するとともに、蓄積された映像データをデータ部に設定したデータを、ブロック番号の順に循環的に、保護対象とされていないブロックに順次格納する。
 検出部53は、各種の検出を行う。例えば、検出部53は、データの保護を指示する保護トリガを検出する。例えば、検出部53は、保護トリガとして、地震の発生を検出する。例えば、検出部53は、データ格納装置12に接続された図示しない加速度センサから所定以上の加速度が所定時間以上継続した場合、地震が発生したと検出する。なお、検出部53は、カメラ11から入力する映像データから地震の発生を検出してもよい。例えば、検出部53は、カメラ11から入力する映像データの映像のフレーム間の水平方向および垂直方向のブレ量を検出する。例えば、検出部53は、フレームを比較し、フレーム間での物体の位置の変化から水平方向および垂直方向のブレ量を検出する。そして、検出部53は、検出した水平方向および垂直方向のブレ量が震度を示す所定のブレ量の範囲に該当する状態が所定時間以上継続した場合、地震が発生したと検出する。
 登録部54は、各種の登録を行う。例えば、登録部54は、検出部53により保護トリガが検出された際に、保護トリガが検出される所定時間前のデータを保護するための情報を、格納部52によりブロックに格納されるデータに登録する。例えば、登録部54は、格納部52によりブロックに格納されるデータのヘッダ部の保護フラグをONに変更し、TOPブロックを、保護トリガが検出される所定時間前のデータが格納されたブロックのブロック番号に変更する。変更された保護フラグおよびTOPブロックを含んだデータは、格納部52によりブロックに格納される。
 管理部55は、各種の管理を行う。例えば、管理部55は、ブロック管理情報40およびファイル管理情報41の情報を管理する。例えば、管理部55は、格納部52により記憶部30のブロックにデータが格納されると、格納したデータのヘッダ情報でブロック管理情報40のデータを格納したブロック番号のレコードのヘッダ情報を更新する。また、管理部55は、ファイル管理情報41を更新して、ファイル毎に、当該ファイルのデータが格納されたブロックのブロック番号を登録する。また、管理部55は、保護トリガが検出されると、保護トリガが検出される所定時間前のデータが格納されたブロックから、保護の終了を指示する終了トリガが検出された際のデータが格納されるブロックまでを保護対象であるブロックとして管理する。
 更新部56は、各種の更新を行う。例えば、更新部56は、データの保護の解除が指示された場合、保護フラグがONとされたデータが格納されたブロックの保護フラグをOFFに更新する。例えば、更新部56は、保護トリガが検出されて、保護フラグがONとされ、格納部52により、ブロックに格納されるデータをコピーしてメモリ24に格納する。そして、更新部56は、解除が指示された場合、メモリ24に記憶されたデータの保護フラグをOFFに更新し、更新したデータで保護フラグがONとされたブロックのデータを上書きする。
 次に、本実施例に係るデータ格納装置12による映像データの格納の流れを説明する。図6~図12は、映像データの格納の流れの一例を示す図である。
 データ格納装置12には、カメラ11により撮影された映像データが順次入力する。データ格納装置12では、カメラ11から入力する映像データを変換部50により所定のデータ形式の映像データに変換し、格納部52によりブロックのサイズのデータに分けて記憶部30に格納する。管理部55は、格納部52により記憶部30のブロックにデータが格納されると、格納したデータのヘッダ情報でブロック管理情報40のデータを格納したブロック番号のレコードのヘッダ情報を更新する。また、管理部55は、ファイル毎に、当該ファイルのデータが格納されたブロックのブロック番号をファイル管理情報41に登録する。
 図6の例は、記憶部30を初期化した後にブロック1~4に映像データを記憶させた状態を示している。ブロック管理情報40の使用フラグは、例えば、記憶部30が初期化された場合、未格納を示すOFFとされており、初期化後、データを最初に格納する際にONに更新される。図6の例は、ブロック1~4の使用フラグがONとされ、ブロック5~15の使用フラグがOFFとされている。TOPフラグは、ブロックに格納されているデータがファイルの先頭のデータである場合、ONが格納され、ファイルの先頭のデータではない場合、OFFとされる。シーケンス番号は、データの順番を示している。時刻は、格納されたデータの記録開始時刻および記録終了時刻を示している。図6の例では、シーケンス番号が連続したブロック1~4のうち、ブロック1のみTOPフラグがONであることから、ブロック1~4のデータは、ブロック1のデータを先頭とした1つのファイルとされている。
 ファイル管理情報41の属するブロックは、1つのファイルとするデータが格納されたブロックのブロック番号が格納される。ファイル管理情報41の保護情報は、上書きを許可する場合、OFFとされ、上書きを禁止して保護する場合、ONとされる。図6の例では、ブロック番号1~4のブロックに1つのファイルとするデータが格納され、保護情報がOFFであることから、上書きを許可されていることを示している。
 データ格納装置12は、保護トリガが検出されると、保護トリガが検出される所定時間前のデータから上書きを禁止してデータを保護する。登録部54は、保護トリガが検出されると、メモリ24に蓄積中のデータのヘッダ部の保護フラグをONに変更し、TOPブロックを、保護トリガが検出される所定時間前のデータが格納されたブロックのブロック番号に変更する。格納部52は、メモリ24に蓄積されたデータのサイズが記憶部30のブロックに格納するデータ部のサイズとなると、蓄積された映像データをデータ部に設定し、ヘッダ情報をヘッダ部に設定して記憶部30に格納する。
 図7の例は、ブロック5用のデータを蓄積中に保護トリガが検出された状態を示している。本実施例では、保護を開始する所定時間前を、例えば、1分前としている。ブロック管理情報40には、ブロック番号が5の保護フラグがONとされ、TOPブロックに1分前のデータが格納されたブロック番号3が登録されている。
 管理部55は、保護データが別なファイルとなるようにファイル管理情報41を更新する。図7の例は、ブロック番号1、2が1つのファイルとし、ブロック番号3、4、5が別の1つのファイルとなるようにファイル管理情報41を更新する。また、ブロック番号3、4、5のファイルについては、保護情報をONとして上書きを禁止する。
 データ格納装置12は、保護終了のトリガが検出されるまで、カメラ11により撮影された映像データを、保護データとして記憶部30に格納する。
 図8の例は、ブロック8まで保護データとしてデータを蓄積した状態を示している。図8の例は、ブロック番号6~8のブロックにデータがさらに格納されている。管理部55は、3~8のブロック番号を、保護情報をONとして1つのファイルとしてファイル管理情報41に登録する。
 データ格納装置12は、保護終了のトリガが検出されると、メモリ24に蓄積中のデータのブロックの次のブロックのデータから保護フラグを解除し、別なファイルとしてデータを記憶部30に格納する。保護終了のトリガは、管理者等から操作部22により受け付けてもよい。また、保護終了のトリガは、ネットワーク14を介して他の装置から受け付けたよい。また、保護終了のトリガは、保護トリガが検出されてから一定の期間で発生するものとしてよい。管理部55は、保護終了のトリガが検出されると、保護データを1つのファイルとし、以降のデータが別なファイルとなるようにファイル管理情報41を更新する。
 図9の例は、ブロック8用のデータの蓄積中に保護終了のトリガが検出され、ブロック9のデータから保護フラグを解除してデータを蓄積した状態を示している。図9の例は、ブロック番号9のブロックでTOPフラグがONとされている。管理部55は、9のブロック番号を、保護情報をOFFとして別なファイルとしてファイル管理情報41に登録する。
 データ格納装置12は、カメラ11により撮影された映像データを、ブロック番号の順に記憶部30に格納する。
 図10の例は、ブロック15までデータを格納した状態を示している。図10の例は、ブロック番号15のブロックで使用フラグがONとされ、データが格納されている。管理部55は、9~15のブロック番号を、保護情報をOFFとして1つのファイルとしてファイル管理情報41に登録する。
 データ格納装置12は、ブロック番号の最も大きい最終のブロックにデータを格納すると、書き込み対象のブロックをブロック番号の最も小さい最初のブロックとして、書き込み対象のブロックを循環させる。格納部52は、ファイル管理情報41を参照して、書き込み対象のブロックのブロック番号を含むファイルの保護情報がOFFであり、保護するデータではない場合、書き込み対象のブロックにデータを格納する。一方、格納部52は、書き込み対象のブロックのブロック番号を含むファイルの保護情報がONであり、保護するデータである場合、ブロック番号を循環的にインクリメントして、次のブロック番号のブロックを書き込み対象のブロックを求める。そして、格納部52は、ファイル管理情報41を参照して、書き込み対象のブロックが保護するデータであるか否かの判定を再度行う。
 図11の例は、ブロック1、2に再度データを格納した状態を示している。図11の例は、保護情報がOFFであるブロック番号1、2のブロックにデータが上書きして格納されている。ブロック番号1、2のシーケンス番号は、ブロック番号15のシーケンス番号から連続している。このことから、ブロック番号1、2のブロックのデータは、ブロック番号15のブロックのデータと連続したデータであることが判別できる。管理部55は、上書きしたブロック番号1、2を、ブロック番号9~15と同じファイルのデータとしてファイル管理情報41に登録する。
 ファイル管理情報41において、ブロック番号3~8のブロックは、保護情報がONとされている。このため、図11に示す状態の場合、格納部52は、ブロック番号3~8の後のブロック番号9のブロックを書き込み対象のブロックとしてデータを格納する。
 図12の例は、ブロック9に再度データを格納した状態を示している。図12の例は、ブロック番号9のシーケンス番号は、ブロック番号2のシーケンス番号から連続している。このことから、ブロック番号9のブロックのデータは、ブロック番号2のブロックのデータと連続したデータであることが判別できる。管理部55は、上書きしたブロック番号9を別なファイルとなるようにファイル管理情報41に登録する。なお、管理部55は、ブロック番号10~15、1、2と同じファイルのデータとしてファイル管理情報41に登録してもよい。
 データ格納装置12は、このように、保護対象とされていないブロックに順次上書きを繰り返して、順次入力されるデータを記憶部30に格納する。
 次に、本実施例に係るデータ格納装置12によるデータの保護を解除する流れを説明する。図13は、データ保護の解除の流れの一例を示す図である。
 データ格納装置12には、データの保護の解除が指示された場合、更新部56により保護フラグがONとされたデータが格納されたブロックの保護フラグをOFFに更新する。図13の例では、更新部56は、記憶部30およびブロック管理情報40のそれぞれについて、保護フラグがONとされたブロック番号5のブロックの保護フラグをOFFに更新する。また、更新部56は、ファイル管理情報41のブロック番号5を含んだファイルの保護情報をOFFに更新する。
 次に、本実施例に係るデータ格納装置12によるデータの保護を解除する流れを説明する。図14は、データ保護の解除の流れを模式的に示した図である。
 格納部52は、データを順次メモリ24に蓄積し、メモリ24に蓄積されたデータのサイズが記憶部30のブロックに格納するデータ部のサイズとなると、記憶部30に格納する。保護トリガが検出された場合、保護トリガが検出された際にメモリ24に蓄積されていたデータについて、保護フラグがONに変更され、TOPブロックに、保護トリガが検出される所定時間前のデータが格納されたブロックのブロック番号が格納される。更新部56は、この保護トリガが検出された際にブロックに格納されるデータをメモリ24に格納してバックアップする。そして、格納部52は、解除が指示された場合、メモリ24に記憶されたバックアップのデータの保護フラグをOFFに更新し、更新したデータで保護フラグがONのデータが格納されたブロックのデータを上書きする。図14の例では、ブロック5について保護フラグをONとしたデータを書き込んだため、ブロック5のデータがメモリ24にバックアップされている。そして、解除が指示された場合、メモリ24に記憶されたブロック5のデータの保護フラグがOFFに更新されて、ブロック5のデータが上書きされている。
 次に、本実施例に係るデータ格納装置12によるデータの書換回数について説明する。図15は、データの書換回数を説明するための図である。例えば、記憶部30の各ブロックに、格納されたデータを保護するためのフラグを格納する場合は、それぞれのブロックのデータに保護することを示すフラグを書き込む。この場合、図15の左側に示すように、例えば、ブロック2からブロック8を保護する場合、ブロック2からブロック8のデータにブロックのデータに保護することを示すフラグを書き込むことになる。この場合、例えば、既に記憶部30に記憶されたブロックのデータを保護するには、記憶されたブロックのデータを読み出してフラグを書き換えて上書き行うため、データの書換回数が増加する。例えば、図15の左側の例において、既にブロック2~4にデータが格納済みである場合、ブロック2~4については、フラグを書き換えるため、データの書換回数が増加する。
 一方、本実施例では、保護トリガが検出された際に、次回格納するデータのヘッダ情報の保護フラグをONとし、保護を開始するブロック番号をTOPブロックに設定してデータを記憶部30に格納する。これにより、例えば、既に記憶部30に記憶されたブロックのデータについては、データの書き換えを行わなくてもよいため、データの書換回数の増加を抑制できる。例えば、図15の右側の例において、既にブロック2~4にデータが格納済みである場合でも、ブロック2~4については、データの書き換えをしないため、データの書換回数の増加を抑制できる。
 また、例えば、記憶部30の各ブロックに、格納されたデータを保護するためのフラグを格納する場合は、保護を解除する場合、それぞれのブロックのデータのフラグを保護解除を示す状態に書き換える。例えば、図15の左側の例では、ブロック2からブロック8のデータのフラグを書き換えることになり、データの書換回数が増加する。
 一方、本実施例では、保護フラグがONとされたデータが格納されたブロックのみ保護フラグをOFFに更新する。例えば、図15の右側の例では、ブロック5のみデータのフラグを書き換え、他のブロックのデータを書き換えないため、データの書換回数の増加を抑制できる。
 次に、本実施例に係るデータ格納装置12がデータを格納するデータ格納処理の流れを説明する。図16は、データ格納処理の手順を示すフローチャートである。このデータ格納処理は、所定のタイミング、例えば、カメラ11から映像データの入力が開始したタイミングで実行される。
 図16に示すように、変換部50は、カメラ11から入力する映像データを所定のデータ形式の映像データに変換する。(S10)。登録部54は、記憶部30に既に、保護不ラフをONとした保護データが格納されているか否かを判定する(S11)。保護データが格納されていない場合(S11否定)、登録部54は、保護トリガが検出されたか否かを判定する(S12)。保護トリガが検出された場合(S12肯定)、登録部54は、メモリ24に蓄積中のデータのヘッダ部の保護フラグをONに変更し、TOPブロックを、保護トリガが検出される所定時間前のデータが格納されたブロックのブロック番号を変更する(S13)。そして、格納部52は、変換されたデータをメモリ24に格納して蓄積する(S14)。
 一方、保護トリガが検出されない場合(S12否定)、上述のS14の処理へ移行する。
 格納部52は、記憶部30のブロックに格納するデータ部のサイズ分のデータがメモリ24に蓄積されたか否かを判定する(S15)。データが蓄積されていない場合(S15否定)、上述のS10へ移行する。一方、データが蓄積された場合(S15肯定)、登録部54は、保護フラグがONとされたデータであるか否かを判定する(S16)。保護フラグがONとされたデータである場合(S16肯定)、更新部56は、データをコピーしてメモリ24にバックアップし(S17)、S18の処理へ移行する。一方、保護フラグがONとされたデータではない場合(S16否定)、S18の処理へ移行する。
 格納部52は、ファイル管理情報41を参照して、循環的なブロック番号の順でデータの書き込み対象となるブロックが保護対象のブロックであるか否かを判定する(S18)。保護対象のブロックである場合(S18肯定)、格納部52は、循環的なブロック番号の順に保護対象のブロックを特定して(S19)、上述のS18へ移行する。一方、保護対象のブロックではない場合(S18否定)、格納部52は、ヘッダ情報を付加して、蓄積されたデータを、書き込み対象のブロックに格納する(S20)。
 格納部52は、データの入力が終了した否かを判定する(S21)。データの入力が終了した場合(S21肯定)、処理を終了する。一方、データの入力が終了していない場合(S21否定)、上述のS10の処理へ移行する。
 一方、保護データが格納されている場合(S11肯定)、更新部56は、データの保護の解除が指示されたか否か判定する(S22)。データの保護の解除が指示された場合(S22肯定)、更新部56は、メモリ24にバックアップしたデータの保護フラグをOFFに更新する(S23)。そして、更新部56は、更新したデータで保護フラグがONとされたブロックのデータを上書し(S24)、上述のS14の処理へ移行する。
 一方、データの保護の解除が指示されていない場合(S22否定)、管理部55は、保護終了のトリガが検出されたか否かを判定する(S25)。保護終了のトリガが検出されていない場合(S25否定)、上述のS14の処理へ移行する。一方、保護終了のトリガが検出された場合(S25肯定)、管理部55は、蓄積されたデータまでを保護データのファイルとし、次のブロックのデータから新規ファイルとしてファイル管理情報41に登録するよう制御し(S26)、上述のS14の処理へ移行する。
 このように、データ格納装置12は、記憶領域が複数のブロックに分けられ、各ブロックのデータの書換回数に上限が設けられた記憶部30の複数のブロックのうち、保護対象とされていないブロックに順次上書きを繰り返して、順次入力されるデータを格納する。また、データ格納装置12は、データの保護を指示する保護トリガが検出された際に、データの保護を指示する保護情報および当該保護トリガが検出される所定時間前のデータが格納されたブロックを示すブロック情報を、ブロックに格納されるデータに登録する。そして、データ格納装置12は、所定時間前のデータが格納されたブロックから、保護の終了を指示する終了トリガが検出された際にデータが格納されるブロックまでを保護対象であるブロックとして管理する。これにより、データ格納装置12は、データの書換回数の増加を抑制できる。また、データ格納装置12は、保護対象のデータを保護して、順次入力されるデータを記憶部30に格納できる。
 また、データ格納装置12は、データの保護の解除が指示された場合、保護情報が格納されたブロックの保護情報を解除状態に更新する。これにより、データ格納装置12は、データの保護の解除する際にも、データの書換回数の増加を抑制できる。
 また、データ格納装置12は、保護トリガが検出された際にブロックに格納されるデータをメモリ24に格納する。そして、データ格納装置12は、解除が指示された場合、メモリ24に記憶されたデータの保護情報を解除状態に更新し、更新したデータで保護情報が格納されたブロックのデータを上書きする。これにより、データ格納装置12は、データの保護の解除する際に、保護情報が格納されたブロックのデータを記憶部30から読み出さなくてもよいため、処理負荷を軽減できる。また、データ格納装置12は、保護情報が格納されたブロックのデータを記憶部30から読み出さなくてもよいため、例えば、記憶部30へのデータ格納の処理と競合してデータが記憶部30に蓄積でいなくなることを抑制できる。
 さて、これまで開示の装置に関する実施例について説明したが、開示の技術は上述した実施例以外にも、種々の異なる形態にて実施されてよいものである。そこで、以下では、本発明に含まれる他の実施例を説明する。
 例えば、上記の実施例では、データの保護を指示する保護トリガとして、地震を検出する場合について説明したが、開示の装置はこれに限定されない。保護トリガは、何れでもよい。例えば、ネットワーク14の通信断や、特定の物体の検出や特定の状況となったことを保護トリガとして、映像を保護するものとしてもよい。
 また、上記の実施例では、順次入力されるデータとして映像データを記憶部30に格納し、保護トリガの検出した際に保護する場合について説明したが、開示の装置はこれに限定されない。順次入力されるデータは、何れでもよい。例えば、順次入力されるデータは、地震計により検出される地震波形のデータやマイク等から入力される音声データであってもよく、これらを組み合わせたデータであってもよい。
 また、図示した各装置の各構成要素は機能概念的なものであり、必ずしも物理的に図示の如く構成されていることを要しない。すなわち、各装置の分散・統合の具体的状態は図示のものに限られず、その全部または一部を、各種の負荷や使用状況などに応じて、任意の単位で機能的または物理的に分散・統合して構成することができる。例えば、図2に示す変換部50、転送部51、格納部52、検出部53、登録部54、管理部55および更新部56の各処理部が適宜統合または分割されてもよい。また、各処理部にて行なわれる各処理機能は、その全部または任意の一部が、CPUおよび当該CPUにて解析実行されるプログラムにて実現され、あるいは、ワイヤードロジックによるハードウェアとして実現され得る。
[データ格納プログラム]
 また、上記の実施例で説明した各種の処理は、あらかじめ用意されたプログラムをパーソナルコンピュータやワークステーションなどのコンピュータシステムで実行することによって実現することもできる。そこで、以下では、上記の実施例と同様の機能を有するプログラムを実行するコンピュータシステムの一例を説明する。図17は、データ格納プログラムを実行するコンピュータを示す図である。
 図17に示すように、コンピュータ300は、CPU310、ROM(Read Only Memory)320、HDD(Hard Disk Drive)330、RAM(Random Access Memory)340を有する。これら310~340の各部は、バス400を介して接続される。
 ROM320には上記実施例の各処理部と同様の機能を発揮するデータ格納プログラム320aが予め記憶される。例えば、上記実施例の変換部50、転送部51、格納部52、検出部53、登録部54、管理部55および更新部56と同様の機能を発揮するデータ格納プログラム320aを記憶させる。なお、データ格納プログラム320aについては、適宜分離してもよい。
 HDD330には、各種データを記憶する。例えば、HDD330は、OSや特性の推定に用いる各種データを記憶する。
 そして、CPU310が、データ格納プログラム320aをROM320から読み出して実行することで、実施例の各処理部と同様の動作を実行する。すなわち、データ格納プログラム320aは、実施例の変換部50、転送部51、格納部52、検出部53、登録部54、管理部55および更新部56と同様の動作を実行する。
 なお、上記したデータ格納プログラム320aについては、必ずしも最初からROM320に記憶させることを要しない。データ格納プログラム320aはHDD330に記憶させてもよい。
 例えば、コンピュータ300に挿入されるフレキシブルディスク(FD)、CD-ROM(Compact Disk Read Only Memory)、DVD(Digital Versatile Disk)、光磁気ディスク、ICカードなどの「可搬用の物理媒体」にプログラムを記憶させておく。そして、コンピュータ300がこれらからプログラムを読み出して実行するようにしてもよい。
 さらには、公衆回線、インターネット、LAN、WANなどを介してコンピュータ300に接続される「他のコンピュータ(またはサーバ)」などにプログラムを記憶させておく。そして、コンピュータ300がこれらからプログラムを読み出して実行するようにしてもよい。
  10  データ格納システム
  11  カメラ
  12  データ格納装置
  20  入力部
  22  操作部
  23  カードスロット
  24  メモリ
  25  制御部
  30  記憶部
  40  ブロック管理情報
  41  ファイル管理情報
  50  変換部
  51  転送部
  52  格納部
  53  検出部
  54  登録部
  55  管理部
  56  更新部

Claims (5)

  1.  記憶領域が複数のブロックに分けられ、各ブロックのデータの書換回数に上限が設けられた記憶部の前記複数のブロックのうち、保護対象とされていないブロックに順次上書きを繰り返して、順次入力されるデータを格納する格納部と、
     データの保護を指示する保護トリガが検出された際に、データの保護を指示する保護情報および当該保護トリガが検出される所定時間前のデータが格納されたブロックを示すブロック情報を、前記格納部によりブロックに格納されるデータに登録する登録部と、
     前記所定時間前のデータが格納されたブロックから、保護の終了を指示する終了トリガが検出された際にデータが格納されるブロックまでを保護対象であるブロックとして管理する管理部と、
     を有することを特徴とするデータ格納装置。
  2.  データの保護の解除が指示された場合、前記保護情報が格納されたブロックの前記保護情報を解除状態に更新する更新部
     をさらに有することを特徴とする請求項1記載のデータ格納装置。
  3.  前記更新部は、前記保護トリガが検出された際に前記格納部によりブロックに格納されるデータをメモリに格納し、前記解除が指示された場合、前記メモリに記憶されたデータの保護情報を解除状態に更新し、更新したデータで前記保護情報が格納されたブロックのデータを上書きする
     ことを特徴とする請求項2記載のデータ格納装置。
  4.  記憶領域が複数のブロックに分けられ、各ブロックのデータの書換回数に上限が設けられた記憶部の前記複数のブロックのうち、保護対象とされていないブロックに順次上書きを繰り返して、順次入力されるデータを格納し、
     データの保護を指示する保護トリガが検出された際に、データの保護を指示する保護情報および当該保護トリガが検出される所定時間前のデータが格納されたブロックを示すブロック情報を、格納されるデータに登録し、
     前記所定時間前のデータが格納されたブロックから、保護の終了を指示する終了トリガが検出された際にデータが格納されるブロックまでを保護対象であるブロックとして管理する
     処理をコンピュータが実行することを特徴とするデータ格納方法。
  5.  記憶領域が複数のブロックに分けられ、各ブロックのデータの書換回数に上限が設けられた記憶部の前記複数のブロックのうち、保護対象とされていないブロックに順次上書きを繰り返して、順次入力されるデータを格納し、
     データの保護を指示する保護トリガが検出された際に、データの保護を指示する保護情報および当該保護トリガが検出される所定時間前のデータが格納されたブロックを示すブロック情報を、格納されるデータに登録し、
     前記所定時間前のデータが格納されたブロックから、保護の終了を指示する終了トリガが検出された際にデータが格納されるブロックまでを保護対象であるブロックとして管理する
     処理をコンピュータに実行させることを特徴とするデータ格納プログラム。
PCT/JP2013/079177 2013-10-28 2013-10-28 データ格納装置、データ格納方法およびデータ格納プログラム WO2015063845A1 (ja)

Priority Applications (5)

Application Number Priority Date Filing Date Title
EP13896240.2A EP3065057A4 (en) 2013-10-28 2013-10-28 DATA MEMORY DEVICE, DATA MEMORY METHOD, AND DATA MEMORY PROGRAM
PCT/JP2013/079177 WO2015063845A1 (ja) 2013-10-28 2013-10-28 データ格納装置、データ格納方法およびデータ格納プログラム
KR1020167009888A KR101808468B1 (ko) 2013-10-28 2013-10-28 데이터 저장 장치, 데이터 저장 방법 및 기록매체
JP2015544647A JP6107965B2 (ja) 2013-10-28 2013-10-28 データ格納装置、データ格納方法およびデータ格納プログラム
US15/081,159 US20160210071A1 (en) 2013-10-28 2016-03-25 Data storing apparatus, and data storing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/JP2013/079177 WO2015063845A1 (ja) 2013-10-28 2013-10-28 データ格納装置、データ格納方法およびデータ格納プログラム

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US15/081,159 Continuation US20160210071A1 (en) 2013-10-28 2016-03-25 Data storing apparatus, and data storing method

Publications (1)

Publication Number Publication Date
WO2015063845A1 true WO2015063845A1 (ja) 2015-05-07

Family

ID=53003496

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/JP2013/079177 WO2015063845A1 (ja) 2013-10-28 2013-10-28 データ格納装置、データ格納方法およびデータ格納プログラム

Country Status (5)

Country Link
US (1) US20160210071A1 (ja)
EP (1) EP3065057A4 (ja)
JP (1) JP6107965B2 (ja)
KR (1) KR101808468B1 (ja)
WO (1) WO2015063845A1 (ja)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105740172A (zh) * 2016-01-26 2016-07-06 浪潮(北京)电子信息产业有限公司 一种块设备数据缓存掉电保护的方法及系统
JP2018096775A (ja) * 2016-12-12 2018-06-21 三菱電機株式会社 監視制御装置

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11892996B1 (en) 2019-07-16 2024-02-06 Splunk Inc. Identifying an indexing node to process data using a resource catalog
US11829415B1 (en) 2020-01-31 2023-11-28 Splunk Inc. Mapping buckets and search peers to a bucket map identifier for searching
US11615082B1 (en) 2020-07-31 2023-03-28 Splunk Inc. Using a data store and message queue to ingest data for a data intake and query system
US11449371B1 (en) 2020-07-31 2022-09-20 Splunk Inc. Indexing data at a data intake and query system based on a node capacity threshold
US11609913B1 (en) 2020-10-16 2023-03-21 Splunk Inc. Reassigning data groups from backup to searching for a processing node
US11809395B1 (en) * 2021-07-15 2023-11-07 Splunk Inc. Load balancing, failover, and reliable delivery of data in a data intake and query system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH1066061A (ja) * 1996-08-22 1998-03-06 Olympus Optical Co Ltd 画像情報記録装置
JP2000196996A (ja) 1989-07-04 2000-07-14 Fuji Photo Film Co Ltd ディジタルカメラおよび再生装置ならびにメモリカ―ド
JP2011172256A (ja) 2011-03-30 2011-09-01 Fujitsu Ltd ビデオデータ保管装置及びビデオデータ保管方法
JP2012169754A (ja) * 2011-02-10 2012-09-06 Yazaki Corp 移動体用情報記録装置
JP2013182573A (ja) * 2012-03-05 2013-09-12 Fujitsu Ten Ltd ドライブレコーダ、データ記録方法、及びプログラム

Family Cites Families (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5592641A (en) * 1993-06-30 1997-01-07 Intel Corporation Method and device for selectively locking write access to blocks in a memory array using write protect inputs and block enabled status
JPH08249237A (ja) * 1995-03-14 1996-09-27 Fuji Film Micro Device Kk データの誤書き込み防止システム
JP2991980B2 (ja) * 1996-11-07 1999-12-20 三菱電機株式会社 映像記録装置
US7158167B1 (en) * 1997-08-05 2007-01-02 Mitsubishi Electric Research Laboratories, Inc. Video recording device for a targetable weapon
JPH11110299A (ja) * 1997-09-30 1999-04-23 Sanyo Electric Co Ltd マイクロコンピュータ
US7380140B1 (en) * 1998-12-30 2008-05-27 Spyrus, Inc. Providing a protected volume on a data storage device
US6421080B1 (en) * 1999-11-05 2002-07-16 Image Vault Llc Digital surveillance system with pre-event recording
JP2001222731A (ja) * 2000-02-10 2001-08-17 Denso Corp ドライブレコーダ
US20030081127A1 (en) 2001-10-30 2003-05-01 Kirmuss Charles Bruno Mobile digital video recording with pre-event recording
JP4584044B2 (ja) * 2005-06-20 2010-11-17 ルネサスエレクトロニクス株式会社 半導体装置
US20070217761A1 (en) * 2006-03-07 2007-09-20 Coban Research And Technologies, Inc. Method for video/audio recording using unrestricted pre-event/post-event buffering with multiple bit and frame rates buffer files
JP5481082B2 (ja) * 2009-03-23 2014-04-23 カヤバ工業株式会社 ドライブレコーダ

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000196996A (ja) 1989-07-04 2000-07-14 Fuji Photo Film Co Ltd ディジタルカメラおよび再生装置ならびにメモリカ―ド
JPH1066061A (ja) * 1996-08-22 1998-03-06 Olympus Optical Co Ltd 画像情報記録装置
JP2012169754A (ja) * 2011-02-10 2012-09-06 Yazaki Corp 移動体用情報記録装置
JP2011172256A (ja) 2011-03-30 2011-09-01 Fujitsu Ltd ビデオデータ保管装置及びビデオデータ保管方法
JP2013182573A (ja) * 2012-03-05 2013-09-12 Fujitsu Ten Ltd ドライブレコーダ、データ記録方法、及びプログラム

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP3065057A4

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105740172A (zh) * 2016-01-26 2016-07-06 浪潮(北京)电子信息产业有限公司 一种块设备数据缓存掉电保护的方法及系统
JP2018096775A (ja) * 2016-12-12 2018-06-21 三菱電機株式会社 監視制御装置

Also Published As

Publication number Publication date
US20160210071A1 (en) 2016-07-21
KR20160055270A (ko) 2016-05-17
KR101808468B1 (ko) 2018-01-18
EP3065057A1 (en) 2016-09-07
JP6107965B2 (ja) 2017-04-05
EP3065057A4 (en) 2016-11-09
JPWO2015063845A1 (ja) 2017-03-09

Similar Documents

Publication Publication Date Title
JP6107965B2 (ja) データ格納装置、データ格納方法およびデータ格納プログラム
TWI439939B (zh) 有效率的將資料載入計算系統之記憶體中
CN109634775A (zh) 自动连续检查点
JP4583270B2 (ja) 記録装置
US11570350B2 (en) Device, control method, and storage medium
TW201435612A (zh) 儲存空間擴展系統及方法
US20110102633A1 (en) Image sensing apparatus
JP2012123770A (ja) 車両記録装置とイメージ記録方法
CN107423095B (zh) 适配硬件的数据处理方法、装置、存储介质和计算机设备
US11343461B2 (en) Device, control method, and computer-readable storage medium
JP6451102B2 (ja) 動画修復装置、動画修復方法、および、動画修復装置用のプログラム
CN106254806B (zh) 一种录像数据保护方法和装置
US10921997B2 (en) Information capture device and control method thereof
TWI519166B (zh) 影像錄製系統、裝置與錄影時的資料存取方法
JP2008176608A (ja) データバックアップ装置及びデータバックアップ方法
US11810221B2 (en) Device, system, control method, and non-transitory computer-readable storage medium
CN101261871B (zh) 信息记录设备和信息记录方法
CN109426589B (zh) 一种文件修复方法及装置
US9824718B2 (en) Recording and playback device
JP2011164963A (ja) 情報記録装置、撮像装置、情報更新方法及びプログラム
JP5962502B2 (ja) 映像データ格納装置、映像データ格納プログラムおよび映像データ格納システム
JP2011160386A (ja) 画像ファイル処理装置、方法、及びプログラム
JP6782826B1 (ja) 画像判定装置、画像判定方法及び画像判定プログラム
US20100161690A1 (en) File retrieval system and electronic device using the same
JP2000358218A5 (ja)

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 13896240

Country of ref document: EP

Kind code of ref document: A1

REEP Request for entry into the european phase

Ref document number: 2013896240

Country of ref document: EP

ENP Entry into the national phase

Ref document number: 2015544647

Country of ref document: JP

Kind code of ref document: A

ENP Entry into the national phase

Ref document number: 20167009888

Country of ref document: KR

Kind code of ref document: A

NENP Non-entry into the national phase

Ref country code: DE