File recording apparatus
The file recording device addresses CPU load issues by pre-determining file deletion orders based on attributes, enhancing efficiency and reducing delays in data processing.
Patent Information
- Application Number
- JP2024099286
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2024-06-20
- Publication Date
- 2026-01-08
AI Technical Summary
Existing file recording devices face high search processing loads on the CPU when determining which files to delete as storage capacity approaches full, leading to inefficiencies and delays in data processing.
A file recording device that pre-determines the deletion order of files based on attributes such as recording date and size, storing this information ahead of time, allowing for immediate deletion when capacity is full without repeated searches.
Reduces CPU processing load and time lag by enabling efficient file deletion based on pre-determined orders, ensuring continuous data recording without interruptions.
Smart Images

Figure 2026001784000001_ABST
Abstract
Description
[Technical Field]
[0001] The present invention relates to a file recording device configured such that when the number of files recorded in the file recording device increases and the storage capacity of the file recording device is about to become full, the device does not search for files to be deleted each time, but generates deletion order information of files to be deleted in advance before the storage capacity becomes full or is about to become full, stores this deletion order information, and when the storage capacity becomes full or is about to become full and deletion becomes necessary, the device sequentially deletes the files to be deleted according to the stored deletion order information. [Background technology]
[0002] In recent years, business computers and business recording devices have become especially required to process large amounts of data, and data volumes are approaching the storage capacity of the recording devices in a relatively short period of time. When a recording device becomes full of data, new data cannot be recorded, resulting in processing stalls. Therefore, recording devices are configured to delete recorded data that has already been processed and no longer needs to be stored when the storage capacity of the recording device approaches full capacity. In this case, conventionally, the system searches for data to be deleted (e.g., stored in file format) each time the storage capacity approaches full capacity, deletes any data found as a result of the search, and reserves storage space for new data.
[0003] One example of such technology is the invention disclosed in Patent Document 1. This invention provides a data recording device that can search for and delete the oldest data file recorded in memory whenever it is determined that the remaining memory capacity is less than a specified capacity. [Prior art documents] [Patent documents]
[0004] [Patent Document 1] Japanese Patent Application Laid-Open No. 2004-46676 Summary of the Invention [Problem to be solved by the invention]
[0005] However, in the above invention, when it is determined that the remaining capacity of the external memory is less than a specified value, the oldest data file recorded in the external memory is searched for and deleted each time, which poses a major problem in that the search processing load on the data recording device (especially the CPU) becomes high. [Means for solving the problem]
[0006] In view of the above-mentioned problems, the present invention aims to provide a file recording device that can list and store multiple files in a single search, determine a deletion order based on the file attributes of the stored files, and delete files in accordance with that deletion order.
[0007] Specifically, the present invention provides a file recording device having a file storage unit that stores multiple files, a file deletion unit that deletes files in accordance with a file deletion order described below, a file recording unit that records files in the file storage unit, a control unit that controls the recording and deletion of files, a deletion order determination rule storage unit that stores deletion order determination rules that are rules for determining the deletion order of files based on the file attributes of the stored files, a file deletion order determination unit that determines the deletion order of multiple files based on the stored deletion order determination rules outside of the time when the file deletion unit is deleting files, and a file deletion order storage unit that stores the determined file deletion order.
[0008] In addition to the above features, the present invention also provides a file recording device in which the file attribute is one of the following: file recording date and time information, information derived from the file recording date and time information, file size information indicating the size of the file, and information derived from the file size information.
[0009] In addition to the above features, the present invention provides a file recording device having a deletion start condition holding unit that holds a deletion start condition, which is a condition for outputting a deletion trigger depending on the comparison result in the comparison unit described below, a remaining capacity acquisition unit that acquires the remaining capacity from the total capacity of the files held in the file holding unit, a comparison unit that compares the acquired remaining capacity with a predetermined first specified capacity, and a deletion control unit that outputs a deletion trigger when the comparison result in the comparison unit satisfies the deletion start condition.
[0010] In addition to the above features, the present invention also provides a file recording device having a deletion termination condition holding unit that holds a deletion termination condition, which is a condition for outputting a deletion termination trigger depending on the comparison result in the comparison unit, and a deletion termination control unit that outputs a deletion termination trigger when the comparison result in the comparison unit satisfies the deletion termination condition.
[0011] Furthermore, to realize the above-mentioned file recording device, a method executed by a CPU in the file recording device, which is a computer, and an operating program for the file recording device written in a manner that can be read and executed by the file recording device, which is a computer, are provided.
[0012] Specifically, the present invention provides a method executed by a CPU in a file recording device that is a computer, the method having a file retention step of retaining multiple files, a file deletion step of deleting files in accordance with a file deletion order described below, a file recording step of recording files in the file retention step, a control step of controlling the recording and deletion of files, a deletion order determination rule retention step of retaining a deletion order determination rule that is a rule for determining the deletion order of files based on the file attributes of the retained files, a file deletion order determination step of determining the deletion order of multiple files based on the retained deletion order determination rule outside of the time when files are being deleted in the file deletion step, and a file deletion order retention step of retaining the determined file deletion order.
[0013] In addition to the above features, the present invention also provides a method executed by a CPU in a file recording device that is a computer, in which the file attribute is one of the following: file recording date and time information, information derived from the file recording date and time information, file size information indicating the size of the file, and information derived from the file size information.
[0014] In addition to the above features, the present invention also provides a method executed by a CPU in a file recording device that is a computer, the method comprising: a deletion start condition holding step for holding a deletion start condition that is a condition for outputting a deletion trigger depending on the comparison result in the comparison step described below; a remaining capacity acquisition step for acquiring a remaining capacity from the total capacity of the files held in the file holding step; a comparison step for comparing the acquired remaining capacity with a predetermined first specified capacity; and a deletion control step for outputting a deletion trigger when the comparison result in the comparison step satisfies the deletion start condition.
[0015] In addition to the above-mentioned features, the present invention also provides a method executed by a CPU in a file recording device that is a computer, the method having a deletion termination condition holding step that holds a deletion termination condition, which is a condition for outputting a deletion termination trigger depending on the comparison result in the comparison step, and a deletion termination control step that outputs a deletion termination trigger when the comparison result in the comparison step satisfies the deletion termination condition.
[0016] Specifically, the present invention provides an operating program for a file recording device that is written in a manner that can be read and executed by a file recording device that is a computer having a file retention step for retaining multiple files, a file deletion step for deleting files in accordance with a file deletion order described below, a file recording step for recording files in the file retention step, a control step for controlling the recording and deletion of files, a deletion order determination rule retention step for retaining deletion order determination rules that are rules for determining the deletion order of files based on the file attributes of the retained files, a file deletion order determination step for determining the deletion order of multiple files based on the retained deletion order determination rules outside of the time when files are being deleted in the file deletion step, and a file deletion order retention step for retaining the determined file deletion order.
[0017] In addition to the above features, the present invention also provides an operating program for a file recording device that is written in a manner that can be read and executed by a computer that is a file recording device, and the file attribute is one of the following: file recording date and time information, information derived from the file recording date and time information, file size information indicating the size of the file, and information derived from the file size information.
[0018] In addition to the above features, the present invention also provides an operating program for a file recording device that is written in a manner that can be read and executed by a computer that has the following features: a deletion start condition holding step that holds a deletion start condition, which is a condition for outputting a deletion trigger depending on the comparison result in the comparison step described below; a remaining capacity acquisition step that acquires the remaining capacity from the total capacity of the files held in the file holding step; a comparison step that compares the acquired remaining capacity with a predetermined first specified capacity; and a deletion control step that outputs a deletion trigger when the comparison result in the comparison step satisfies the deletion start condition.
[0019] In addition to the above features, the present invention also provides an operating program for a file recording device that is written in a manner that can be read and executed by a computer that has a deletion termination condition holding step that holds a deletion termination condition, which is a condition for outputting a deletion termination trigger depending on the comparison result in the comparison step, and a deletion termination control step that outputs a deletion termination trigger when the comparison result in the comparison step satisfies the deletion termination condition. [Effects of the Invention]
[0020] As described above, in the present invention, there is no need to search for files to be deleted every time the storage capacity approaches full capacity, so files can be deleted immediately when deletion is necessary, reducing the time lag until the start of the next process. [Brief explanation of the drawings]
[0021] [Figure 1] FIG. 1 is a diagram showing a hardware configuration applied to the present invention. [Figure 2] FIG. 1 is a diagram showing the functional configuration of a file recording device according to a first embodiment. [Figure 3] FIG. 1 is a diagram showing the hardware configuration of a file recording device according to a first embodiment. [Figure 4] FIG. 10 is a diagram showing a processing flow when using a file recording device according to the first embodiment. [Figure 5] FIG. 10 is a diagram showing the functional configuration of a file recording device according to a second embodiment. [Figure 6] FIG. 10 is a diagram showing the hardware configuration of a file recording device according to a second embodiment. [Figure 7] FIG. 10 is a diagram showing a processing flow when a file recording device according to a second embodiment is used. [Figure 8] FIG. 10 is a diagram showing the functional configuration of a file recording device according to a third embodiment. [Figure 9] FIG. 10 is a diagram showing the hardware configuration of a file recording device according to a third embodiment. [Figure 10] FIG. 10 is a diagram showing a processing flow when a file recording device according to a third embodiment is used. [Figure 11]A diagram showing an example of the configuration of the recording area on an SD card. [Figure 12] FIG. 10 is a diagram showing an example of a directory structure in a file recording device; [Figure 13] FIG. 10 is a diagram showing an example of a file search in a file recording device; [Figure 14] FIG. 10 is a diagram illustrating an example of file sorting processing in a file recording device. [Figure 15] A diagram showing an example of the configuration of the recording area of an SD card. <Hardware that can constitute the present invention>
[0022] FIG. 1 is a diagram showing a hardware configuration applied to the present invention. The present invention is, in principle, an invention that utilizes a computer, but it can also be realized by software, hardware, or the combination of software and hardware. The hardware that realizes all or part of the constituent elements of the present invention is composed of the basic components of a computer, such as a CPU, memory, bus, input / output devices, various peripheral devices, and a user interface. The various peripheral devices include storage devices, internet interfaces, internet devices, displays, keyboards, mice, speakers, cameras, videos, televisions, various sensors for monitoring production status in laboratories or factories (e.g., flow rate sensors, temperature sensors, weight sensors, liquid volume sensors, infrared sensors, shipment counters, package counters, foreign body inspection devices, defective product counters, radiation inspection devices, surface condition inspection devices, circuit inspection devices, motion sensors, worker work status monitoring devices (e.g., video, ID, PC work volume)), CD drives, DVD drives, Blu-ray drives, USB memory, USB memory interfaces, removable hard disks, general hard disks, projectors, SSDs, telephones, fax machines, copiers, printers, movie editing devices, and various sensor devices. The system does not necessarily have to be configured in a single enclosure; it can also be configured by connecting multiple enclosures via communication. Communication can be via LAN, WAN, Wi-Fi, Bluetooth (registered trademark), infrared communication, or ultrasonic communication. Furthermore, some of the components may be installed across borders. Furthermore, each of the multiple units may be operated by a different entity, or may be operated by a single entity. The system of the present invention may be operated by a single entity or multiple entities. The invention may also be configured as a system that includes, in addition to the present system, a terminal used by a third party, and a terminal used by yet another third party. These terminals may also be installed across borders. Furthermore, in addition to the present system and the terminals, devices may be provided for storing related information about third parties, registering related persons, and creating a database for recording the contents of registration. These may be provided in the present system, or may be provided outside the present system so that the present system can be configured to utilize this information.
[0023] As shown in this diagram, the computer is configured on a motherboard and comprises a chipset, CPU, non-volatile memory, main memory, various buses, BIOS, various interfaces such as USB, HDMI (registered trademark), and LAN, a real-time clock, etc. These operate in cooperation with an operating system, device drivers (for various interfaces such as USB and HDMI (registered trademark), and various built-in devices such as cameras, microphones, speakers or headphones, and displays), various programs, etc. The various programs and data that make up the present invention are configured to efficiently utilize these hardware resources to execute various processes. Chipset
[0024] A "chipset" is a set of large-scale integrated circuits (LSI) mounted on a computer's motherboard that integrates a communication function, or bridge function, between the CPU's external bus and the standard bus that connects memory and peripheral devices. Two chipset configurations are used, or one chipset configuration. The northbridge is located on the side closest to the CPU and main memory, and the southbridge is located on the side farther away, which interfaces with relatively slow external I / O.
[0025] (Northbridge) The northbridge includes a CPU interface, memory controller, and graphics interface. Most of the functions of a conventional northbridge can be performed by the CPU. The northbridge connects to the main memory slot via a memory bus, and to the graphics card slot via a high-speed graphics bus (AGP, PCI Express).
[0026] (Southbridge) The southbridge connects to the PCI interface (PCI slot) via the PCI bus and handles I / O functions such as ATA (SATA), USB, and Ethernet interfaces, as well as sound functions. Incorporating circuits to support features such as PS / 2 ports, floppy disk drives, serial ports, parallel ports, and ISA buses, which do not require or are not capable of high-speed operation, would hinder the speed of the chipset itself, so these can be separated from the southbridge chip and placed in a separate LSI called a super I / O chip. Buses are used to connect the CPU (MPU) to peripheral devices and various control units. Buses are connected by the chipset. The memory bus used to connect to main memory may instead use a channel structure for increased speed. A serial bus or a parallel bus can be used as the bus. While a serial bus transfers data one bit at a time, a parallel bus transmits the original data or multiple bits extracted from the original data as a single block over multiple communication paths simultaneously. A dedicated line for the clock signal runs parallel to the data line, synchronizing data demodulation on the receiving side. It is also used as a bus to connect the CPU (chipset) to external devices, and includes GPIB, IDE / (Parallel) ATA, SCSI, PCI, etc. Because there is a limit to how fast it can be made, in PCI Express, an improved version of PCI, and Serial ATA, an improved version of Parallel ATA, the data line can be a serial bus.
[0027] CPU
[0028] A CPU sequentially reads, interprets, and executes a sequence of instructions called a program stored in main memory, outputting signal-based information to the main memory. The CPU functions as the center of computation within a computer. A CPU consists of a CPU core, which is the center of computation, and its peripheral components, including registers, cache memory, an internal bus connecting the cache memory to the CPU core, a DMA controller, a timer, and an interface with the bus connecting to the north bridge. A single CPU (chip) may have multiple CPU cores. Processing may also be performed by a graphics interface (GPU) or FPU in addition to the CPU. While the embodiments are described as being of a two-core type, this is not limiting. Programs may also be embedded within the CPU.
[0029] <Non-volatile memory>
[0030] (HDD)
[0031] The basic structure of a hard disk drive consists of a magnetic disk, a magnetic head, and an arm on which the magnetic head is mounted. The external interface can be SATA (formerly ATA). A high-performance controller, such as SCSI, is used to support communication between hard disk drives. For example, when copying a file to another hard disk drive, the controller can read the sectors, transfer them to the other hard disk drive, and write them. This does not access the host CPU's memory, so there is no increase in the CPU load.
[0032] <Main memory>
[0033] The CPU directly accesses and executes various programs in main memory. Main memory is volatile memory and uses DRAM. Programs in main memory are expanded from non-volatile memory to main memory upon receiving a program startup command. The CPU then executes the program according to various execution commands and execution procedures within the program.
[0034] Operating System (OS)
[0035] An operating system is used to manage computer resources for use by applications, to manage various device drivers, and to manage the computer itself (the hardware). In small computers, firmware is sometimes used as the operating system.
[0036] ≪BIOS≫
[0037] The BIOS causes the CPU to execute procedures for starting up the computer hardware and running the operating system. It is most typically the hardware that the CPU reads first when it receives a computer startup command. The BIOS contains the address of the operating system stored on the disk (non-volatile memory), and the BIOS loaded into the CPU sequentially loads the operating system into main memory, putting it into operation. The BIOS also has a check function that checks the presence or absence of various devices connected to the bus. The check results are stored in main memory and made available to the operating system as appropriate. The BIOS may also be configured to check for external devices, etc. The above applies to all embodiments.
[0038] As shown in the figure, the present invention can basically be configured with a general-purpose computer program and various devices. The computer basically operates by loading a program recorded in non-volatile memory into main memory, and then executing processing using the main memory, CPU, and various devices. Communication with devices is performed via an interface connected to a bus line. Possible interfaces include a display interface, keyboard, and communication buffer. Below, an embodiment of the present invention will be described with reference to the illustrated examples.
[0039] <Fulfillment of the Laws of Nature of the Invention>
[0040] The present invention functions through the cooperation of a computer, communications equipment, and software. Specifically, it relates to a file recording device that records files that compile multiple types of measurement data acquired from various devices and equipment external to the file recording device, and deletes files under specific conditions. Therefore, from this perspective, when the claimed invention is assessed based on the computer and other resources described in the claims and specification, as well as the common general knowledge related to those matters, the claimed invention as a whole utilizes the laws of nature and is a computer-software-related invention.
[0041] <The significance of utilizing the laws of nature required by patent law>
[0042] The Patent Act requires that an invention be industrially applicable and contribute to the development of industry. This requirement ensures that the invention is industrially applicable. In other words, the invention must be industrially useful; that is, the effects of the invention declared in the application must be reproducible with a certain degree of certainty through the practice of the invention. From this perspective, the application of the laws of nature is interpreted as the use of the laws of nature to achieve the functions of each of the invention's defining features (invention elements), which constitute the invention's effects. Furthermore, the effect of an invention is sufficient if it has the potential to provide a specific utility to users who use the invention, and should not be viewed in terms of how users feel or think about that utility. Therefore, even if the effect users gain from the system is a psychological effect, that effect itself does not fall within the scope of the required application of the laws of nature. DETAILED DESCRIPTION OF THE INVENTION
[0043] Hereinafter, embodiments of the present invention will be described with reference to the accompanying drawings. The relationships between the embodiments and the claims are as follows: The explanation of embodiment 1 mainly relates to claims 1, 5, and 9, the explanation of embodiment 2 mainly relates to claims 3, 7, and 11, and the explanation of embodiment 3 mainly relates to claims 4, 8, and 12. The present invention should not be limited to these embodiments in any way, and may be embodied in various forms without departing from the spirit of the invention.
[0044] <Embodiment 1 (corresponding mainly to claims 1, 5, and 9)> <Outline of Embodiment 1> The present invention is configured to determine deletable files and their deletion order according to predetermined rules before determining that the storage capacity of a recording device is becoming full due to the files being recorded, through a process such as a search. By retaining this information, files are deleted according to the retained deletion order when it is determined that the storage capacity is becoming full. In other words, this invention relates to a file recording device that does not require a search or other process each time it is determined that the device is becoming full. Note that, as a premise, searching for files to be deleted requires reading all of the attribute information of recorded files and comparing them with each other. However, by performing this process in advance, deletion can be achieved simply by reading the deletion file list when the time to delete is reached. In other words, there is a premise that the time to "read all file attributes" + the time to "compare the attributes of all read files" >> the time to "read the deletion file list." This is technically common knowledge for all recording devices.
[0045] <Functional Configuration of Embodiment 1> 2 is a diagram showing the functional configuration of a file recording device 200 in embodiment 1. This embodiment includes a file storage unit 201, a file deletion unit 202, a file recording unit 203, a control unit 204, a deletion order determination rule storage unit 205, a file deletion order determination unit 206, and a file deletion order storage unit 207.
[0046] <Configuration of Embodiment 1: File Storage Unit> The 'file storage unit' 201 is configured to have the function of storing multiple files. Here, a "file" refers to a collection of the smallest unit of data that can be written to or read from a recording medium (e.g., an SD card). In the present invention, a collection of various data (e.g., flow rate, temperature, DC voltage, DC current, etc.) that indicate the operating status of the equipment or device to be monitored is stored in a file. A file holds metadata as management information, which refers to information other than the content of the file itself. Typical management information includes, but is not limited to, the following information, and various information can be adopted as management information (file attributes) depending on the purpose of use, such as the OS or firmware that manages the file. File name: A name used to identify a file. It can be a name made up of text characters or an identification made up of a combination of alphanumeric characters. Created and modified: When the file was created and last modified. File Size: The amount of data in the file in bytes. Ownership and Access Permissions: The user who owns the file and the permissions that allow other users to access the file. File Type: The file format or extension (e.g., .txt, .jpg, .pdf). File location: The path to the directory where the file is saved. This information is useful for managing files, searching, deleting, and setting security. Other examples of management information include information about the origin of the data stored in the file, such as which measuring device the measurement data came from, or which sensor the measurement data came from, information about whether the data has already been transferred, information about whether the data has been processed, information about the type of data (temperature, current value, voltage value, flow rate value, pressure value, values related to magnetic field and electric field, etc.), and information about the type of bus used for transfer.
[0047] For example, typical photo and image files are JPEG (.jpg), PNG (.png), BMP (.bmp), GIF (.gif), etc. Of course, the system may be configured to handle other formats as well. For example, typical video files may be in MP4 (.mp4) format, AVI (.avi) format, MOV (.mov) format, MKV (.mkv) format, etc. Of course, the device may be configured to handle other formats as well. For example, typical music and audio files are MP3 (.mp3), WAV (.wav), AAC (.aac), FLAC (.flac), etc. Of course, the device may be configured to handle other formats as well. For example, typical document-related files may be in PDF (.pdf) format, Word document (.doc, .docx) format, Excel spreadsheet (.xls, .xlsx) format, text file (.txt) format, etc. Of course, the system may be configured to handle other formats as well.
[0048] <Configuration of Embodiment 1: File Deletion Unit> The 'file deletion unit' 202 is configured to have the function of deleting files in accordance with the file deletion order described below. For example, based on file recording date and time information, which is one of the file attributes of the stored files described later, deletion order information may be used to arrange multiple files in order of oldest to newest, and files may be deleted starting with the oldest file.Furthermore, based on file size information, which is one of the file attributes of the stored files described later, deletion order information may be used to arrange multiple files in order of largest to oldest, and files may be deleted according to the file deletion order, such that the largest file is deleted first.
[0049] <Configuration of Embodiment 1: File Recording Unit> The "file recording unit" 203 is configured to have the function of recording files in the file holding unit 201. An example of the files recorded here is the long-term recording of time-varying data transmitted from a measuring device operating in a laboratory or factory. For example, it could be a record of the actual heating profile of a high-temperature furnace, or the pressure and flow rate of a fluid flowing through a pipe. One example is a case in which a large amount of information is temporarily stored in a recording device of a measuring device near the site, and when the amount or number of stored files reaches a predetermined number, it is transferred to a second recording device, and the information is processed through multiple transfers. In this case, since the files once transferred have already served their purpose, a predetermined number of files are deleted in bulk when the storage capacity of the recording device approaches full capacity. The purpose of consolidating files is to improve the deletion efficiency of the recording device's computer (file deletion unit) and to eliminate delays in recording new files that are continuously recorded. The "file" is the same as the "file storage unit" described above.
[0050] <Embodiment 1: Description of Configuration: Control Unit> The 'controller' 204 is configured to have a function for controlling the recording and deletion of files. For example, the "control unit" 204 may control the above-mentioned file deleting unit 202 to delete files in accordance with the file deletion order described below. Also, the "control unit" 204 may control the above-mentioned file recording unit 203 to record files in the file holding unit 201.
[0051] <Configuration of the First Embodiment: Deletion Order Determination Rule Storage Unit> The 'deletion order determination rule storage unit' 205 is configured to have a function of storing deletion order determination rules, which are rules for determining the deletion order of files based on the file attributes of multiple files stored in the file storage unit 201. Here, "file attributes" are the same as those described above in the "file storage unit," but may be configured to include, for example, any one of the following: recording date and time information of the file (e.g., including at least information on the year, month, day, hour, minute, and second when the file was recorded), information derived from the recording date and time information of the file, file size information indicating the size of the file (e.g., 512k bytes or 1M bytes), and information derived from the file size information. The "deletion order determination rule" may be, for example, a rule that deletes the oldest file first using deletion order information that sorts multiple files in order from oldest to newest based on file recording date and time information, or a rule that deletes the largest file first using deletion order information that sorts multiple files in order from largest to newest based on file size information. Here, "file recording date and time information" is usually information expressed in years, months, days, hours, minutes, and seconds, and "information derived from file recording date information" includes information indicating the time elapsed since recording, ranking information indicating the age of the file since recording, and information obtained by converting the time elapsed since recording using some kind of function. "File size information indicating the size of a file" refers to information that expresses the size of a file in units of bits or bytes, while "derived information of file size information" refers to information that expresses the size of a file using units other than bits or bytes. Also included in this derived information are values obtained by converting file size information using some kind of function, and information indicating the time required for transfer using a specific transfer protocol.
[0052] <Configuration of First Embodiment: File Deletion Order Determination Unit> The 'file deletion order determination unit' 206 is configured to have the function of determining the deletion order of a plurality of files based on the stored deletion order determination rules, outside of the time when the file deletion unit 202 is deleting files. For example, the deletion order of multiple files may be determined based on the rule that, when the file deletion unit 202 is not deleting files, multiple files are sorted in order of oldest to newest based on the file recording date and time information, and the oldest file is deleted first. Alternatively, the deletion order of multiple files may be determined based on the rule that, when the file deletion unit 202 is not deleting files, multiple files are sorted in order of largest to smallest size based on file size information, and the largest file is deleted first. As described above, the deletion order may be determined using multiple elements (file recording date and time, file size information) by substituting a value obtained by converting file recording date and time information using a predetermined function and a value obtained by converting file size information using another predetermined function into a ranking function, and determining the order of files to be deleted according to the order of values output from the function. It is also possible to provide an exception rule, for example, to exclude files that have not yet been transferred from the deletion order determination population.
[0053] The phrase "outside the time when the file deletion unit is deleting files" refers to the purpose of avoiding the increased overall processing time that would be caused by the heavy load on the CPU of the file recording device if the file deletion process and the file deletion priority determination process were performed simultaneously. In other words, performing the file deletion priority determination process outside of the file deletion process is expected to level out the CPU processing load on the file recording device. The determined deletion priority may be information that lists file names in descending order of deletion priority. It is recommended to insert a separator, such as a colon ":", between file names. It is also preferable to configure the system so that deleted file names are deleted from the list. It is also preferable that this information on deletion priority is stored in the main memory as a file that can be read by the control unit.
[0054] <Configuration of First Embodiment: File Deletion Order Maintaining Unit> The 'file deletion order storage unit' 207 is configured to have the function of storing the determined file deletion order. For example, the file deletion order may be determined based on the rule that the files are sorted in order of oldest to newest based on the file recording date and time information, and the oldest file is deleted first.Alternatively, the file deletion order may be determined based on the rule that the files are sorted in order of largest to smallest size based on file size information, and the largest file is deleted first.
[0055] Generally, file attribute information is basically file header information, but directory information recorded on an SD card or hard disk, i.e., area management information on an SD card or hard disk, also falls under file attribute information. Therefore, the term "based on file attribute information" in this embodiment also includes cases where the deletion order is determined indirectly based on area management information (directory information, path information, etc.) recorded on an SD card or hard disk, without directly reading the management information recorded in the file.
[0056] As a modification of the first embodiment, the following configuration may be adopted. FIG. 12 is a diagram showing an example of a directory structure in the file recording device of the present invention. In this diagram, a root directory " / " 1201 is placed first, and a data directory "Data / " 1202 is placed below it. Next, a group directory "Group / " 1203 is placed below the data directory "Data / " 1202. Furthermore, a plurality of date directories 1204 (for example, "20240101 / ") are placed below the group directory "Group / " 1203. Here, the date directory 1204 is configured based on year, month, and date information, and a plurality of recording files 1205 are held below it. Furthermore, the names of the plurality of recording files are configured to include information on the year, month, day, hour, minute, and second. For example, if the recording file name is "Data_20240101093015", it is understood that the recording file was recorded at 09:30:15 on January 1, 2024. By representing the recording file name in this way using information about the year, month, day, hour, minute, and second, it is designed to make comparison easier.
[0057] FIG. 13 is a diagram showing an example of a file search in the file recording device of the present invention. The file recording device of the present invention performs a search using the date directory "20240101 / " as key information, and finds the oldest recorded file (here, "Data_20240101141500" 1205, recorded on January 1, 2024 at 14:15:00). It also obtains time information from the file name of the recorded file. Similarly, it also obtains files 1206 to 1208 stored under the date directory "20240101 / ".
[0058] FIG. 14 is a diagram showing an example of file sorting processing in the file recording device of the present invention. In this diagram, for example, time information is obtained from the recording file name, and based on this, the files are sorted in order of oldest (for example, ascending order) and stored as a list 1401.
[0059] By performing this pre-processing, when the record file deletion process is actually executed, the record files can be configured to be deleted in the order of oldest to newest (deletion order) as listed in this list. In other words, by storing multiple record files in a single search, it is expected that the frequency of record file searches will be reduced and the processing load on the file recording device (especially the CPU) will be reduced.
[0060] Here, the difference in processing time between the invention described in Patent Document 1 and the invention of this embodiment will be explained using specific numerical values. For example, in the invention described in Patent Document 1, it takes about one second to search through 2,000 files to find the oldest file. Therefore, when deleting 50 files, the oldest file is searched through each search, which takes about 50 seconds in total. On the other hand, in the present embodiment, a single search process can store multiple files including deletion order information for 50 files in one second. In other words, the processing time can be shortened by the number of files that can be stored. For example, the time required to process 200 files takes about 200 seconds with the invention described in Patent Document 1, but can be reduced to about 4 seconds with the invention of this embodiment. Such a difference in processing time is very significant, and it can be seen that the file recording device of the present invention is faster and more efficient, and can reduce the processing load on the file recording device (especially the CPU).
[0061] <Embodiment 1: File Recording Device: Hardware Configuration> The hardware configuration of the file recording device according to this embodiment will be described with reference to the drawings.
[0062] 3 is a diagram showing the hardware configuration of a file recording device according to this embodiment. As shown in this diagram, the file recording device according to this embodiment comprises a "CPU (Central Processing Unit)" 301 that performs various types of arithmetic processing, and a "main memory" 302. It also comprises a "non-volatile memory" 303 that stores predetermined information, and a "network I / F (interface)" 304 that transmits and receives information to and from external devices and equipment. These components are interconnected by a data communication path such as a "bus" 305, and perform information transmission and processing.
[0063] Here, the "main memory" reads out programs that perform various processes to be executed by the "CPU," and also provides a work area for the programs. Furthermore, multiple addresses are assigned to the "main memory" and "non-volatile memory," and programs executed by the "CPU" can exchange data and perform processing by identifying and accessing these addresses. In this embodiment, the programs stored in the "main memory" are a file retention program, a file deletion program, a file recording program, a control program, a deletion order determination rule retention program, a file deletion order determination program, and a file deletion order retention program. Furthermore, the "main memory" and "non-volatile memory" store file information, file attribute information, deletion order determination rules, file deletion order information, and the like.
[0064] The "CPU" executes a file retention program stored in the "main memory" to retain multiple files and store file information and file attribute information in the "main memory" or "non-volatile memory." It also executes a file deletion program stored in the "main memory" to delete files according to the file deletion order described below and store file deletion order information in the "main memory" or "non-volatile memory." The file recording program stored in the "main memory" records files and stores file information and file attribute information in the "main memory" or "non-volatile memory." It also executes a control program stored in the "main memory" to control the file deletion program and file recording program. It also executes a deletion order determination rule retention program stored in the "main memory" to retain deletion order determination rules, which are rules for determining the deletion order of files based on the file attributes of the retained files, and store the deletion order determination rules in the "main memory" or "non-volatile memory." It also executes a file deletion order determination program stored in the "main memory" to determine the deletion order of multiple files based on the retained deletion order determination rules when the file deletion program is not deleting files. In addition, the file deletion order holding program stored in the "main memory" is executed to hold the determined file deletion order, and the file deletion order information is stored in the "main memory" and the "non-volatile memory."
[0065] <Embodiment 1 File Recording Device: Processing Flow> 4 is a diagram showing the processing flow when using the file recording device of this embodiment. As shown in the diagram, the processing method comprises a file storage step S401, a file deletion step S402, a file recording step S403, a control step S404, a deletion order determination rule storage step S405, a file deletion order determination step S406, and a file deletion order storage step S407. These processing methods are executed by a file recording device having a file storage unit that stores multiple files, a file deletion unit that deletes files in accordance with a file deletion order described below, a file recording unit that records files in the file storage unit, a control unit that controls the recording and deletion of files, a deletion order determination rule storage unit that stores deletion order determination rules that are rules for determining the deletion order of files based on the file attributes of the stored files, a file deletion order determination unit that determines the deletion order of multiple files based on the stored deletion order determination rules outside of the time when the file deletion unit is deleting files, and a file deletion order storage unit that stores the determined file deletion order.
[0066] The "file storage step" S401 is a stage in which a plurality of files are stored.
[0067] The "file deletion step" S402 is a step in which files are deleted in accordance with the file deletion order described below.
[0068] The "file recording step" S403 is a step in which a file is recorded.
[0069] The "control step" S404 is a step for controlling the recording and deletion of files.
[0070] The "deletion order determination rule storage step" S405 is a stage for storing deletion order determination rules, which are rules for determining the deletion order of files based on the file attributes of the stored files.
[0071] The "file deletion order determination step" S406 is a stage in which the deletion order of a plurality of files is determined based on the stored deletion order determination rules, outside the time when the file deletion step is deleting files.
[0072] The "file deletion order maintaining step" S407 is a step for maintaining the determined file deletion order.
[0073] <Summary> As described above, the present invention can provide a file recording device that can list and store multiple files in a single search, determine the deletion order based on the file attributes of the stored files, and delete files according to that deletion order.
[0074] <Embodiment 2 (corresponding mainly to claims 3, 7, and 11)> <Outline of Embodiment 2> The invention of this embodiment is based on the first embodiment, and compares the total size of the acquired files with a first predetermined capacity, and outputs a deletion trigger if the comparison result satisfies a stored deletion start condition. To achieve this, the invention also provides a method executed by a CPU in a file recording device, which is a computer, and an operating program for the file recording device, which is written in a readable and executable format for the file recording device, which is a computer. Hereafter, descriptions of the functional configuration, hardware configuration, and processing flow that are the same as those of the first embodiment will be omitted where appropriate.
[0075] <Functional Configuration of Second Embodiment> 5 is a diagram showing the functional configuration of a file recording device 500 in embodiment 2. In this embodiment, the file recording device 500 includes a deletion start condition holding unit 508, a total capacity acquisition unit 509, a comparison unit 510, and a deletion control unit 511.
[0076] <Configuration of Second Embodiment: Deletion Start Condition Storage Unit> The "deletion start condition storage unit" 508 is configured to have a function of storing a deletion start condition, which is a condition for outputting a deletion trigger in accordance with the comparison result in the comparison unit described later. For example, the deletion start condition may be maintained based on whether the remaining capacity calculated from the total capacity of the files (described later) exceeds a predetermined first predetermined capacity. In other words, the deletion start condition is whether the following conditional expression is satisfied: "total capacity of files > first predetermined capacity" or "total capacity of files ≥ first predetermined capacity."
[0077] <Configuration of Second Embodiment: Total Capacity Acquisition Unit> The 'total capacity acquisition unit' 509 is configured to have a function of acquiring the total capacity of the files stored in the file storage unit. For example, if the file attributes include capacity information indicating the capacity of the file, the file attributes of each of multiple files may be read and the total capacity of the files may be obtained by adding up the capacity information.
[0078] <Embodiment 2: Description of Configuration: Comparison Unit> The "comparison unit" 510 is configured to have the function of comparing the acquired total capacity with a first predetermined capacity. The comparison unit is preferably configured to start the comparison operation at the end of the file recording operation by the file recording unit in the file holding unit. However, since files may be configured to be recorded continuously, if the recording process starts during the comparison operation, the comparison process is configured to start again after the recording process has finished. In other words, it is preferable to configure the comparison process so that it does not interfere with the file recording process as much as possible. Note that if such retry processes occur a predetermined number of times in succession, it is preferable to configure the comparison process to be performed simultaneously and in parallel even during the recording process. This is because there is a high risk of exceeding the storage capacity of the file recording unit during multiple retry processes. Furthermore, if such processes overlap, it is possible to configure the file recording process from the outside to be stored in a cache memory, for example, during the overlapping period, so that the file recording unit exclusively performs the comparison process. The amount of cache memory capacity to be prepared can be determined based on the usage environment of the file recording device. Here, the "predetermined first predetermined capacity" is preferably predetermined as, for example, a first predetermined capacity of the recording area capacity of a recording medium. Specifically, assuming that the recording area capacity of a recording medium is 100 MB, the "first predetermined capacity" may be set to 90 MB, which corresponds to 90% of the entire recording area. This "first predetermined capacity" is preferably set in advance as one of the parameters by the user of the file recording system. Generally, if deletion is initiated when the recorded area reaches approximately 80% to 90% of the total storage capacity, the predetermined first predetermined capacity would be 80% or 90% of the total capacity. The first predetermined capacity may also be configured to be changeable by the user. It may also be configured to be automatically changed depending on the data reception speed, etc.
[0079] <Configuration of the Second Embodiment: Deletion Control Unit> The "deletion control unit" 511 is configured to have a function of outputting a deletion trigger when the comparison result in the comparison unit satisfies the deletion start condition. For example, if the deletion start condition is whether the conditional expression "total file capacity > first specified capacity" is satisfied, the system may be configured to output a deletion trigger if the actual total file capacity is 92 MB, which is greater than the first specified capacity of 90 MB.
[0080] As a modification of the second embodiment, the following configuration may be adopted. 11 is a diagram showing an example of the configuration of the recording area of an SD card. The file recording device of the present invention uses an SD card as the recording medium. In this case, after recording file 1101 is written to recording area 1102 of the SD card, used area 1103 (corresponding to the total file capacity) is compared with first predetermined capacity 1105. If the conditional expression "total file capacity > first predetermined capacity," which is the deletion start condition, is met, a deletion trigger is output, and the oldest files among the multiple files recorded in used area 1103 are deleted in this order. In this way, used area 1103, i.e., the total file capacity, is reduced. Note that if files are deleted just short of the first predetermined capacity, a situation will arise in which they will have to be deleted again soon when the next file is written, so it is preferable to delete files to a level well below the first predetermined capacity.
[0081] <Embodiment 2: File Recording Device: Hardware Configuration> The hardware configuration of the file recording device according to this embodiment will be described with reference to the drawings.
[0082] 6 is a diagram showing the hardware configuration of a file recording device according to this embodiment. As shown in this diagram, the file recording device according to this embodiment comprises a "CPU (Central Processing Unit)" 601 that performs various types of arithmetic processing, and a "main memory" 602. It also comprises a "non-volatile memory" 603 that stores predetermined information, and a "network I / F (interface)" 604 that transmits and receives information to and from external devices and equipment. These components are interconnected by a data communication path such as a "bus" 605, and perform information transmission and processing.
[0083] Here, the "main memory" reads out programs that perform various processes to be executed by the "CPU," and also provides a work area for the programs. The "main memory" and "non-volatile memory" are each assigned multiple addresses, and programs executed by the "CPU" can exchange data and perform processing by identifying and accessing these addresses. In this embodiment, the programs stored in the "main memory" include a deletion start condition storage program, a total capacity acquisition program, a comparison program, and a deletion control program. In addition to the same information as in embodiment 1, the "main memory" and "non-volatile memory" also store deletion start condition information, total file capacity information, "first predetermined capacity" information, deletion trigger information, and the like.
[0084] The "CPU" executes a deletion start condition retention program stored in the "main memory" to retain a deletion start condition, which is a condition for outputting a deletion trigger depending on the comparison result of a comparison program described below, and stores deletion start condition information in the "main memory" or "non-volatile memory." It also executes a total capacity acquisition program stored in the "main memory" to acquire the total capacity of the retained files and store the total file capacity information in the "main memory" or "non-volatile memory." It also executes a comparison program stored in the "main memory" to compare the acquired total capacity with a predetermined first specified capacity and store the first specified capacity in the "main memory" or "non-volatile memory." It also executes a deletion control program stored in the "main memory" to output a deletion trigger when the comparison result of the comparison program satisfies the deletion start condition, and store the deletion trigger information in the "main memory" or "non-volatile memory."
[0085] <Embodiment 2 File Recording Device: Processing Flow> 7 is a diagram showing a processing flow when using a file recording device according to this embodiment. As shown in the figure, the processing method comprises a deletion start condition holding step S708, a total capacity acquisition step S709, a comparison step S710, and a deletion control step S711. These processing methods are executed by a file recording device having a deletion start condition holding unit that holds a deletion start condition, which is a condition for outputting a deletion trigger in response to a comparison result by a comparison unit (described later), a total capacity acquisition unit that acquires the total capacity of files held in the file holding unit, a comparison unit that compares the acquired total capacity with a first predetermined capacity, and a deletion control unit that outputs a deletion trigger when the comparison result by the comparison unit satisfies the deletion start condition.
[0086] The "deletion start condition holding step" S708 is a stage for holding a deletion start condition, which is a condition for outputting a deletion trigger depending on the comparison result in the comparison step described later.
[0087] The "total capacity acquisition step" S709 is a step for acquiring the total capacity of the files held.
[0088] The "comparison step" S710 is a step of comparing the acquired total volume with a first predetermined volume.
[0089] The "deletion control step" S711 is a step in which a deletion trigger is output when the comparison result in the comparison step satisfies the deletion start condition.
[0090] <Summary> As described above, the present invention provides a file recording device that can compare the total capacity of stored files with a predetermined first specified capacity, and output a deletion trigger if the comparison result satisfies the deletion start condition.
[0091] <Embodiment 3 (corresponding mainly to claims 4, 8, and 12)> <Outline of Embodiment 3> The invention of this embodiment is based on embodiment 1 or embodiment 2, and outputs a deletion end trigger when the comparison result in the comparison unit satisfies the deletion end condition. To achieve this, a method executed by a CPU in a file recording device, which is a computer, and an operating program for the file recording device, which is written in a readable and executable manner for the file recording device, which is a computer, are also provided. Hereinafter, descriptions of the functional configuration, hardware configuration, and processing flow that are the same as those in embodiment 1 and embodiment 2 will be omitted as appropriate.
[0092] <Functional Configuration of Third Embodiment> 8 is a diagram showing the functional configuration of a file recording device 800 in embodiment 3. In this embodiment, a deletion end condition holding unit 812 and a deletion end control unit 813 are provided.
[0093] <Configuration of Third Embodiment: Deletion End Condition Storage Unit> The 'deletion end condition storage unit' 812 is configured to have a function of storing a deletion end condition, which is a condition for outputting a deletion end trigger according to the comparison result in the comparison unit. For example, the deletion termination condition may be set based on the total file size being smaller than a predetermined second predetermined size. That is, the deletion termination condition is the following condition: "total file size<second predetermined size" or "total file size≦second predetermined size." Here, the "predetermined second predetermined capacity" is preferably predetermined as, for example, a second predetermined capacity of the recording area capacity of the recording medium. Specifically, assuming that the recording area capacity of the recording medium is 100 MB, the "second predetermined capacity" may be set to a value smaller than the "first predetermined capacity," i.e., 80 MB, which corresponds to 80% of the entire recording area. It is desirable that the user of the file recording system be able to set this "second predetermined capacity" in advance as one of the parameters. Generally, if deletion is to end when the recorded area reaches approximately 70% to 80% of the total storage capacity, the predetermined second predetermined capacity would be 70% or 80% of the total capacity. The second predetermined capacity may also be configured to be changeable by the user. It may also be configured to be automatically changed depending on factors such as the data reception speed.
[0094] <Configuration of the Third Embodiment: Deletion End Control Unit> The "deletion end control unit" 813 is configured to have a function of outputting a deletion end trigger when the comparison result in the comparison unit satisfies the deletion end condition. For example, if the deletion termination condition is whether the conditional expression "total file capacity < second specified capacity" is satisfied, the system may be configured to output a deletion termination trigger if the actual total file capacity of 70 MB is compared with the second specified capacity of 80 MB and the actual total file capacity of 70 MB is found to be smaller than the second specified capacity of 80 MB.
[0095] As a modification of the third embodiment, the following configuration may be adopted. 15 is a diagram showing an example of the configuration of the recording area of an SD card. The file recording device of the present invention uses an SD card as the recording medium. In this case, the recording files 1506 and 1507 are deleted from the used area 1502 of the SD card 1501, and the file names of the files are deleted from the list 1508. In this case, by comparing the used area (corresponding to the total capacity of the files) 1502 with the second predetermined capacity 1505, it is determined that the deletion termination condition, "total capacity of the files < second predetermined capacity," is met, and therefore the deletion termination trigger is output, thereby terminating the deletion of multiple files recorded in the used area 1502. Note that the control unit may become busy while recording large amounts of data at high speed, so in such cases the device can be configured to temporarily suspend the deletion process. This suspension is distinct from the termination of deletion.
[0096] Third Embodiment File Recording Device: Hardware Configuration The hardware configuration of the file recording device according to this embodiment will be described with reference to the drawings.
[0097] 9 is a diagram showing the hardware configuration of a file recording device in this embodiment. As shown in this diagram, the file recording device in this embodiment is equipped with a "CPU (Central Processing Unit)" 901 that performs various types of arithmetic processing, and a "main memory" 902. It also has a "non-volatile memory" 903 that stores predetermined information, and a "network I / F (interface)" 904 that transmits and receives information to and from external devices and equipment. These are then interconnected by a data communication path such as a "bus" 905, and perform the transmission and reception of information and processing.
[0098] Here, the "main memory" reads out programs that perform various processes to be executed by the "CPU," and also provides a work area for the programs. The "main memory" and "non-volatile memory" are each assigned multiple addresses, and programs executed by the "CPU" can exchange data and perform processing by identifying and accessing these addresses. In this embodiment, the programs stored in the "main memory" include a deletion termination condition storage program and a deletion termination control program. The "main memory" and "non-volatile memory" also store deletion termination condition information, total file capacity information, "second predetermined capacity" information, deletion termination trigger information, and the like.
[0099] The "CPU" executes a deletion termination condition holding program stored in the "main memory" to hold the deletion termination conditions, which are conditions for outputting a deletion termination trigger according to the comparison results of the comparison program, and stores the deletion termination condition information, total file capacity information, and "second predetermined capacity" information in the "main memory" and "non-volatile memory." The "CPU" also executes a deletion termination control program stored in the "main memory" to output a deletion termination trigger when the comparison results of the comparison program satisfy the deletion termination conditions, and stores the deletion termination trigger information in the "main memory" and "non-volatile memory."
[0100] <Embodiment 3 File Recording Device: Processing Flow> 10 is a diagram showing the processing flow when using the file recording device of this embodiment. As shown in the figure, the processing method comprises a deletion termination condition holding step S1012 and a deletion termination control step S1013. These processing methods are executed by a file recording device having a deletion termination condition holding unit that holds a deletion termination condition, which is a condition for outputting a deletion termination trigger in accordance with the comparison result in the comparison unit, and a deletion termination control unit that outputs the deletion termination trigger when the comparison result in the comparison unit satisfies the deletion termination condition.
[0101] The "deletion termination condition holding step" S1012 is a stage for holding a deletion termination condition, which is a condition for outputting a deletion termination trigger depending on the comparison result in the comparison step.
[0102] The "deletion termination control step" S1013 is a stage in which a deletion termination trigger is output when the comparison result in the comparison step satisfies the deletion termination condition.
[0103] <Summary> As described above, the present invention can provide a file recording device that can output a deletion end trigger when the comparison result in the comparison section satisfies the deletion end condition.
[0104] The present invention can also be applied to the following data recording system: For example, when recording a large amount of data transmitted at high speed, the first memory to be used is a high-speed writable memory capable of recording all transmitted data, and when a certain amount of data has accumulated in this high-speed writable memory, a predetermined amount of data is transferred to a memory with the next fastest writing speed for recording, and when a predetermined amount of data has accumulated in the memory with the next fastest writing speed, a predetermined amount of data is transferred to a memory with the next fastest writing speed.
[0105] <Appendix 1> a data recording unit that is composed of a first memory, a second memory, a third memory, and a data acquisition unit that acquires periodic data to be recorded in the first memory, and whose write speeds are in the order "first memory write speed>second memory write speed>third memory write speed"; a first memory recording unit that records the data acquired by the data acquisition unit in a first memory; a first capacity determination unit that determines whether the amount of data recorded by the first memory recording unit has reached a predetermined capacity A; a second memory recording unit that records at least a portion of the data recorded in the first memory in a second memory when the determination result of the first capacity determination unit is that the capacity has reached a predetermined capacity A; a second capacity determination unit that determines whether the amount of data recorded by the second memory recording unit has reached a predetermined capacity B; a third memory recording unit that records at least a part of the data recorded in the second memory in a third memory when the second capacity determination unit determines that the capacity has reached a predetermined capacity B; A data recording system having:
[0106] <Appendix 2> A data recording system as described in Appendix 1, wherein the size of data that the second memory recording unit records in the second memory at one time is a predetermined capacity A, and the size of data that the third memory recording unit records in the third memory at one time is a predetermined capacity B.
[0107] <Appendix 3> A data recording system as described in Appendix 1 or Appendix 2, which controls the writing process by the first memory recording unit, the writing process by the second memory recording unit, and the writing process by the third memory recording unit to be performed according to predetermined priorities.
[0108] <Appendix 4> A data recording system as described in Appendix 1 or Appendix 2, wherein the first memory is a volatile memory, the second memory is a flash memory, and the third memory is an SD card, and the predetermined capacity A is an integer multiple of a page, which is the physical memory management unit of the second memory.
[0109] <Appendix 5> The first memory recording unit data receiving means for receiving a plurality of data having different cycles; a recording area dividing means for dividing the recording area of the first memory at the ratio of the period; a data writing means for writing data of the same period into each of the divided recording areas; 2. The data recording system of claim 1, comprising:
[0110] <Appendix 6> A method executed by a CPU in a data recording system that is a computer, comprising: a data recording step including a first memory, a second memory, a third memory, and a data acquisition step for acquiring periodic data to be recorded in the first memory, wherein the write speeds of the first memory, second memory, and third memory are in the order of "first memory write speed>second memory write speed>third memory write speed"; a first memory recording step of recording the data acquired in the data acquisition step in a first memory; a first capacity determination step of determining whether the amount of data recorded by the first memory recording step has reached a predetermined capacity A; a second memory recording step of recording at least a part of the data recorded in the first memory in a second memory when the determination result in the first capacity determination step is that the predetermined capacity A has been reached; a second capacity determination step of determining whether the amount of data recorded by the second memory recording step has reached a predetermined capacity B; a third memory recording step of recording at least a part of the data recorded in the second memory in a third memory when the determination result in the second capacity determination step is that the predetermined capacity B has been reached; A method having the following.
[0111] <Appendix 7> A method executed by a CPU in a data recording system that is a computer, comprising: The method described in Appendix 6, wherein the size of data recorded at one time in the second memory in the second memory recording step is the predetermined capacity A, and the size of data recorded at one time in the third memory in the third memory recording step is the predetermined capacity B.
[0112] <Appendix 8> A method executed by a CPU in a data recording system that is a computer, comprising: The method according to claim 6 or 7, wherein the writing process by the first memory recording step, the writing process by the second memory recording step, and the writing process by the third memory recording step are controlled to be performed in accordance with a predetermined priority.
[0113] <Appendix 9> A method executed by a CPU in a data recording system that is a computer, comprising: The method according to claim 6 or 7, wherein the first memory is a volatile memory, the second memory is a flash memory, and the third memory is an SD card, and the predetermined capacity A is an integer multiple of a page, which is a physical memory management unit of the second memory.
[0114] <Appendix 10> A method executed by a CPU in a data recording system that is a computer, comprising: The first memory recording step includes: a data receiving substep of receiving a plurality of data having different cycles; a recording area dividing sub-step of dividing the recording area of the first memory at the ratio of the period; a data writing sub-step of writing data of the same cycle into each divided recording area; 7. The method of claim 6, comprising:
[0115] <Appendix 11> a data recording step including a first memory, a second memory, a third memory, and a data acquisition step for acquiring periodic data to be recorded in the first memory, wherein the write speeds of the first memory, second memory, and third memory are in the order of "first memory write speed>second memory write speed>third memory write speed"; a first memory recording step of recording the data acquired in the data acquisition step in a first memory; a first capacity determination step of determining whether the amount of data recorded by the first memory recording step has reached a predetermined capacity A; a second memory recording step of recording at least a part of the data recorded in the first memory in a second memory when the determination result in the first capacity determination step is that the predetermined capacity A has been reached; a second capacity determination step of determining whether the amount of data recorded by the second memory recording step has reached a predetermined capacity B; a third memory recording step of recording at least a part of the data recorded in the second memory in a third memory when the determination result in the second capacity determination step is that the predetermined capacity B has been reached; An operating program for a data recording system that is written in a readable and executable manner by a data recording system that is a computer having the program.
[0116] <Appendix 12> An operating program for a data recording system written in a readable and executable manner by a data recording system that is a computer as described in Appendix 11, wherein the size of data recorded at one time in the second memory in the second memory recording step is the predetermined capacity A, and the size of data recorded at one time in the third memory in the third memory recording step is a predetermined capacity B.
[0117] <Appendix 13> An operating program for a data recording system, the operating program being written in a readable and executable manner for a data recording system that is the computer according to claim 11 or 12, which controls the writing process by the first memory recording step, the writing process by the second memory recording step, and the writing process by the third memory recording step to be performed in accordance with a predetermined priority.
[0118] <Appendix 14> An operating program for a data recording system written in a readable and executable manner by a data recording system that is a computer according to Appendix 11 or Appendix 12, wherein the first memory is a volatile memory, the second memory is a flash memory, and the third memory is an SD card, and the predetermined capacity A is an integer multiple of a page, which is a physical memory management unit of the second memory.
[0119] <Appendix 15> The first memory recording step includes: a data receiving substep of receiving a plurality of data having different cycles; a recording area dividing sub-step of dividing the recording area of the first memory at the ratio of the period; a data writing sub-step of writing data of the same cycle into each divided recording area; 12. An operating program for a data recording system, the operating program being written in a readable and executable manner by a data recording system that is a computer according to claim 11. [Explanation of symbols]
[0120] File recorder: 200 File storage unit: 201 File deletion section: 202 File recording section: 203 Control unit: 204 Deletion order determination rule storage unit: 205 File deletion order determination unit: 206 File deletion order holder: 207
Claims
1. a file storage unit that stores a plurality of files; a file deletion unit that deletes the files in accordance with a file deletion order to be described later; a file recording unit that records a file in the file storage unit; a control unit for controlling recording and deletion of files; a deletion order determination rule storage unit that stores a deletion order determination rule, which is a rule for determining the deletion order of files based on the file attributes of the stored files; a file deletion order determination unit that determines the deletion order of a plurality of files based on a stored deletion order determination rule when the file deletion unit is not deleting files; a file deletion order holding unit that holds the determined file deletion order; A file recording device having:
2. 2. The file recording device according to claim 1, wherein the file attribute is any one of file recording date and time information, information derived from the file recording date and time information, file size information indicating the size of the file, and information derived from the file size information.
3. a deletion start condition holding unit that holds a deletion start condition, which is a condition for outputting a deletion trigger in response to a comparison result by a comparison unit described later; a remaining capacity acquisition unit that acquires a remaining capacity from the total capacity of the files stored in the file storage unit; a comparison unit that compares the acquired remaining capacity with a first predetermined capacity; a deletion control unit that outputs a deletion trigger when a comparison result in the comparison unit satisfies a deletion start condition; 3. The file recording device according to claim 1, further comprising:
4. a deletion termination condition storage unit that stores a deletion termination condition that is a condition for outputting a deletion termination trigger in response to a comparison result by the comparison unit; a deletion termination control unit that outputs a deletion termination trigger when a comparison result in the comparison unit satisfies a deletion termination condition; 4. The file recording device according to claim 3, further comprising:
5. A method executed by a CPU in a file recording device that is a computer, comprising: a file retention step for retaining a plurality of files; a file deletion step of deleting the files in accordance with a file deletion order to be described later; a file recording step of recording a file in the file holding step; a control step for controlling recording and deletion of files; a deletion order determination rule holding step for holding a deletion order determination rule which is a rule for determining the deletion order of files based on the file attributes of the held files; a file deletion order determination step for determining a deletion order of a plurality of files based on a stored deletion order determination rule outside the time when the files are being deleted in the file deletion step; a file deletion order maintaining step for maintaining the determined file deletion order; A method having the following.
6. A method executed by a CPU in a file recording device that is a computer, comprising:
6. The method according to claim 5, wherein the file attribute is any one of file recording date and time information, information derived from the file recording date and time information, file size information indicating the size of the file, and information derived from the file size information.
7. A method executed by a CPU in a file recording device that is a computer, comprising: a deletion start condition holding step for holding a deletion start condition, which is a condition for outputting a deletion trigger in accordance with a comparison result in a comparison step described later; a remaining capacity acquisition step of acquiring a remaining capacity from the total capacity of the files held in the file holding step; a comparison step of comparing the acquired remaining capacity with a first predetermined capacity; a deletion control step of outputting a deletion trigger when a comparison result in the comparison step satisfies a deletion start condition; 7. The method of claim 5 or claim 6, further comprising:
8. A method executed by a CPU in a file recording device that is a computer, comprising: a deletion termination condition holding step for holding a deletion termination condition that is a condition for outputting a deletion termination trigger in accordance with a comparison result in the comparison step; a deletion termination control step of outputting a deletion termination trigger when a comparison result in the comparison step satisfies a deletion termination condition; 8. The method of claim 7 further comprising:
9. a file retention step for retaining a plurality of files; a file deletion step of deleting the files in accordance with a file deletion order to be described later; a file recording step of recording a file in the file holding step; a control step for controlling recording and deletion of files; a deletion order determination rule holding step for holding a deletion order determination rule which is a rule for determining the deletion order of files based on the file attributes of the held files; a file deletion order determination step for determining a deletion order of a plurality of files based on a stored deletion order determination rule outside the time when the files are being deleted in the file deletion step; a file deletion order maintaining step for maintaining the determined file deletion order; An operating program for a file recording device that is written so as to be readable and executable by a file recording device that is a computer having the file recording device.
10. An operating program for a file recording device written in a manner that can be read and executed by a file recording device that is a computer as described in claim 9, wherein the file attribute is one of file recording date and time information, information derived from the file recording date and time information, file size information indicating the size of the file, and information derived from the file size information.
11. a deletion start condition holding step for holding a deletion start condition, which is a condition for outputting a deletion trigger in accordance with a comparison result in a comparison step described later; a remaining capacity acquisition step of acquiring a remaining capacity from the total capacity of the files held in the file holding step; a comparison step of comparing the acquired remaining capacity with a first predetermined capacity; a deletion control step of outputting a deletion trigger when a comparison result in the comparison step satisfies a deletion start condition; 11. An operating program for a file recording device, the operating program being written so as to be readable and executable by the file recording device that is a computer according to claim 9 or 10.
12. a deletion termination condition holding step for holding a deletion termination condition that is a condition for outputting a deletion termination trigger in accordance with a comparison result in the comparison step; a deletion termination control step of outputting a deletion termination trigger when a comparison result in the comparison step satisfies a deletion termination condition; 12. An operating program for a file recording device, which is written so as to be readable and executable by the file recording device that is a computer according to claim 11.
Citation Information
Patent Citations
Data recording apparatus and waveform recording apparatus
JP2004046676A