Information processing device, information processing program, and information processing method
By dividing file data and metadata into separate blocks and updating only the file data when sizes match, the solution reduces storage wear and maintains update time information in the file data, addressing premature storage unit wear in information processing devices.
Patent Information
- Application Number
- JP2023023614
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-02-17
- Publication Date
- 2024-08-29
- Estimated Expiration
- 2043-02-17
AI Technical Summary
Existing information processing devices require rewriting at least two data blocks for every file update, leading to an increased number of writes and premature wear of the storage unit.
The solution involves dividing file data and metadata into separate data blocks and determining if the data size is the same before updating, allowing updates to the actual file data without updating metadata, and inserting update time information into the file data.
This approach reduces the number of rewrites to the storage unit, prolonging its lifespan and enabling update time information retrieval from the actual file data.
Smart Images

Figure 2024117487000001_ABST
Abstract
Description
[Technical field]
[0001] The present invention relates to an information processing device, an information processing program, and an information processing method. [Background technology]
[0002] The information processing device of Patent Document 1 includes an execution unit and a storage unit. The execution unit stores metadata, including information on the update time and data size of the data, and file data having actual file data in the storage unit. At this time, the execution unit divides each of the metadata and the actual file data into separate data blocks and stores them in the storage unit. [Prior art documents] [Patent documents]
[0003] [Patent Document 1] JP 2020-197787 A Summary of the Invention [Problem to be solved by the invention]
[0004] In an information processing device such as that of Patent Document 1, at least two data blocks are rewritten to store metadata and actual file data every time file data is updated. In an information processing device such as that of Patent Document 1, the minimum unit of rewriting is two data blocks, so the number of writes to the storage unit tends to be large. As a result, there is a risk that the storage unit will reach the end of its life early. [Means for solving the problem]
[0005] An information processing device for solving the above problem includes an execution unit and a memory unit, and the memory unit is capable of storing file data having metadata and actual file data including information on update time and data size by dividing the metadata and the actual file data into different data blocks, and the execution unit executes the following: determining whether the data size of the file data to be updated is the same as the data size of the file data already stored in the memory unit, and if the data sizes are the same, updating the actual file data without updating the metadata, and when updating the actual file data without updating the metadata, updating the actual file data by inserting information on the update time into the actual file data.
[0006] An information processing program for solving the above problem is targeted at an information processing device having an execution unit and a memory unit, the memory unit is capable of storing file data having metadata and actual file data including information on update time and data size by dividing the metadata and the actual file data into different data blocks, and causes the execution unit to determine whether the data size of the file data to be updated is the same as the data size of the file data already stored in the memory unit, and if the data sizes are the same, update the actual file data without updating the metadata, and when updating the actual file data without updating the metadata, update the actual file data by inserting information on the update time into the actual file data.
[0007] An information processing method for solving the above problem targets an information processing device having an execution unit and a memory unit, wherein the memory unit is capable of storing file data having metadata and actual file data including information on update time and data size by dividing the metadata and the actual file data into different data blocks, and the execution unit determines whether the data size of the file data to be updated is the same as the data size of the file data already stored in the memory unit, and if the data sizes are the same, updates the actual file data without updating the metadata, and when updating the actual file data without updating the metadata, updates the actual file data by inserting information on the update time into the actual file data. Effect of the Invention
[0008] According to the above configuration, it is possible to obtain update time information from actual file data stored in the storage unit while preventing the storage unit from reaching the end of its life prematurely. [Brief description of the drawings]
[0009] [Figure 1] FIG. 1 is a schematic configuration diagram of a vehicle. [Diagram 2] 13 is a flowchart showing storage control. [Diagram 3] 13 is a flowchart showing read control. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0010] <Vehicle Overview> Hereinafter, one embodiment of the present invention will be described with reference to Figures 1 to 3. First, a schematic configuration of a vehicle 100 will be described.
[0011] 1, the vehicle 100 includes a central ECU 10, a meter ECU 20, a multimedia ECU 30, an advanced driving assistance ECU 40, and a DCM 50. The vehicle 100 also includes a first external bus 61, a second external bus 62, a third external bus 63, and a fourth external bus 64. "ECU" is an abbreviation for Electronic Control Unit. "DCM" is an abbreviation for Data Communication Module.
[0012] The central ECU 10 controls the entire vehicle 100. The central ECU 10 includes a CPU 11, a ROM 12, a RAM 13, and a storage 14. The central ECU 10 also includes a communication I / F 15, an input / output I / F 16, and an internal bus 17. The internal bus 17 connects the CPU 11, the ROM 12, the RAM 13, the storage 14, the communication I / F 15, and the input / output I / F 16 so that they can communicate with each other. The ROM 12 stores various programs and various data in advance. The ROM 12 also stores an information processing program 12A in advance as one of the various programs. The RAM 13 is a volatile memory. The RAM 13 temporarily stores various programs and various data. The CPU 11 uses the RAM 13 as a working area to read out the programs in the ROM 12 and executes various processes. The CPU 11 also reads out the information processing program 12A and executes various processes in the information processing method. In this embodiment, the CPU 11 is an execution unit, and the central ECU 10 is an information processing device.
[0013] The storage 14 can store various programs and various data. The storage 14 is an electrically rewritable non-volatile memory. The storage 14 is a NAND-type flash memory. An example of the storage 14 is an eMMC (embedded Multi Media Card). The storage 14 has a maximum number of writes. Here, the number of writes to the storage 14 corresponds to the number of times some data has been written to the same memory cell. Therefore, writing here includes not only writing information to an empty memory cell, but also overwriting the memory contents of a memory cell to which information has already been written. In addition, the maximum number of writes to the storage 14 is the number of times that one memory cell can be written. Therefore, the total capacity that can be written to the storage 14, including overwriting of data, is a value obtained by multiplying the capacity of the memory cell, the number of memory cells, and the number of times that data can be written. In this embodiment, the storage 14 is a memory unit.
[0014] The communication I / F 15 is an interface for connecting with the meter ECU 20, the multimedia ECU 30, the advanced driving assistance ECU 40, and the DCM 50. The communication I / F 15 also functions as an interface for connecting with an engine ECU, a transmission ECU, a body ECU, etc. (not shown). The input / output I / F 16 is an interface for connecting with a group of sensors and a group of devices provided in the vehicle 100.
[0015] The DCM 50 is connected to the communication I / F 15 of the central ECU 10 via a first external bus 61. The DCM 50 is capable of wireless communication with devices outside the vehicle 100 via a wireless communication network (not shown). Therefore, the central ECU 10 is capable of wireless communication with devices outside the vehicle 100 via the first external bus 61 and the DCM 50.
[0016] The meter ECU 20 executes processes related to various meters including an odometer 71 described later. The meter ECU 20 includes a CPU 21, a ROM 22, a RAM 23, and a storage 24. The meter ECU 20 also includes a communication I / F 25, an input / output I / F 26, and an internal bus 27. The internal bus 27 connects the CPU 21, the ROM 22, the RAM 23, the storage 24, the communication I / F 25, and the input / output I / F 26 so that they can communicate with each other. The ROM 22 stores various programs and various data in advance. The RAM 23 is a volatile memory. The RAM 23 temporarily stores various programs and various data. The CPU 21 executes various processes by reading out the programs in the ROM 22 using the RAM 23 as a working area.
[0017] The storage 24 can store various programs and various data. The storage 24 is an electrically rewritable non-volatile memory. The storage 24 is a NOR type flash memory. Here, the above-mentioned storage 14 is a NAND type flash memory. Therefore, the upper limit number of writes predetermined for the storage 24, which is a NOR type flash memory, is greater than the upper limit number of writes predetermined for the storage 14 by one or more orders of magnitude.
[0018] The communication I / F 25 is an interface for connecting to the central ECU 10. The communication I / F 25 is connected to the communication I / F 15 of the central ECU 10 via a second external bus 62. Therefore, the meter ECU 20 can communicate with the central ECU 10. The input / output I / F 26 is an interface for connecting to a group of sensors and a group of devices provided in the vehicle 100.
[0019] The multimedia ECU 30 controls a navigation device, an audio device, etc. (not shown). The multimedia ECU 30 is connected to the communication I / F 15 of the central ECU 10 via a third external bus 63. The internal configuration of the multimedia ECU 30 is generally similar to that of the meter ECU 20, and therefore a description thereof will be omitted. The advanced driving assistance ECU 40 executes various applications to realize various driving assistance functions. The various applications include an application for following a vehicle traveling ahead of the vehicle 100 while maintaining a constant distance from the vehicle ahead, and an application for automatically applying the brakes to reduce damage caused by a collision with the vehicle 100. The advanced driving assistance ECU 40 is connected to the communication I / F 15 of the central ECU 10 via a fourth external bus 64. The internal configuration of the advanced driving assistance ECU 40 is generally similar to that of the meter ECU 20, and therefore a description thereof will be omitted.
[0020] The vehicle 100 includes a sensor group including a plurality of sensors. One of the sensors included in the sensor group is an odometer 71. The odometer 71 detects a total mileage TDD of the vehicle 100. The total mileage TDD is the total distance traveled by the vehicle 100 from its manufacture to the present time. The odometer 71 is connected to the input / output I / F 26 of the meter ECU 20.
[0021] The CPU 11 of the central ECU 10 acquires various data from the meter ECU 20, the multimedia ECU 30, the advanced driving assistance ECU 40, the DCM 50, etc. at each predetermined control cycle. The various data includes the total mileage TDD, etc.
[0022] <Memory Control> Next, the storage control executed by the CPU 11 of the central ECU 10 will be described with reference to Fig. 2. The CPU 11 of the central ECU 10 executes the storage control every time various data are acquired. At this time, the CPU 11 of the central ECU 10 executes the storage control for each of the same types of data. In this embodiment, the CPU 11 of the central ECU 10 executes the storage control by reading out the information processing program 12A. Note that, as an example, the storage control when the CPU 11 acquires the total mileage TDD via the meter ECU 20 will be described below.
[0023] 2, when the CPU 11 of the central ECU 10 starts the storage control, it executes the process of step S11. In step S11, the CPU 11 judges whether or not it is the first storage control for the acquired data, for example, the total mileage TDD. For example, when the total mileage TDD is not stored in the storage 14, the CPU 11 judges that it is the first storage control for the acquired total mileage TDD. In step S11, when the CPU 11 judges that it is the first storage control (S11: YES), the CPU 11 advances the process to step S21.
[0024] In step S21, the CPU 11 divides the acquired total mileage TDD as file data into data blocks of a predetermined size and stores the data in the storage 14. Here, the file data includes metadata including information on the update time and data size, and actual file data. Therefore, specifically, the CPU 11 stores the actual file data including the acquired total mileage TDD information in, for example, a first data block in the storage 14. The CPU 11 also stores metadata including information on the update time, which is the time when the total mileage TDD was stored, and information on the data size corresponding to the total mileage TDD, in a second data block in the storage 14. In other words, the storage 14 can divide and store the metadata and the actual file data in different data blocks. After step S21, the CPU 11 ends the current storage control.
[0025] On the other hand, in the above-mentioned step S11, if the CPU 11 determines that this is not the first storage control, that is, that this is the second or subsequent storage control (S11: NO), the CPU 11 advances the process to step S12.
[0026] In step S12, the CPU 11 determines whether or not the data size of the acquired file data of the total mileage TDD is the same as the data size of the file data of the total mileage TDD already stored in the storage 14. In other words, the process of step S12 is a process of determining whether or not the data size of the file data to be updated is the same as the data size of the file data already stored in the storage unit. As a specific example, when the absolute value of the difference between the data sizes of the two file data is equal to or less than a predetermined threshold value, the CPU 11 determines that the data sizes of the two file data are the same. In step S12, when the CPU 11 determines that the data sizes of the two file data are the same (S12: YES), the CPU 11 advances the process to step S22.
[0027] In step S22, when updating the file data of the acquired total mileage TDD, the CPU 11 updates only the actual file data stored in the storage 14 without updating the metadata stored in the storage 14. When updating the actual file data in this way, the CPU 11 updates the actual file data stored in the storage 14 by inserting information on the acquired total mileage TDD and information on the update time, which is the time when the total mileage TDD was stored. At this time, the CPU 11 updates the actual file data stored in the storage 14 by inserting information on the update time at the end of the actual file data stored in the storage 14. After step S22, the CPU 11 ends the current storage control.
[0028] On the other hand, if the CPU 11 determines in step S12 that the data sizes of the two file data are different (S12: NO), the CPU 11 advances the process to step S23.
[0029] In step S23, when updating the file data of the acquired total mileage TDD, the CPU 11 updates both the metadata and the actual file data stored in the storage 14. That is, the CPU 11 updates the actual file data stored in the storage 14 by putting information of the acquired total mileage TDD into the data. The CPU 11 also updates the metadata stored in the storage 14 by putting information of the update time, which is the time when the total mileage TDD was stored, and information of the data size corresponding to the total mileage TDD. After step S23, the CPU 11 ends the current storage control.
[0030] <Read Control> Next, the read control executed by the CPU 11 of the central ECU 10 will be described with reference to Fig. 3. The CPU 11 of the central ECU 10 executes the read control every time acquisition of various file data stored in the storage 14 is requested. At this time, the CPU 11 of the central ECU 10 executes the read control for each file data of the same type. In this embodiment, the CPU 11 of the central ECU 10 executes the read control by reading the information processing program 12A. Note that, hereinafter, as an example, the read control when acquiring file data of the total mileage TDD stored in the storage 14 will be described.
[0031] 3, when the CPU 11 of the central ECU 10 starts the read control, it executes the process of step S61. In step S61, the CPU 11 determines whether or not the file data acquired from the storage 14 is stored as the same data size. For example, when the update time in the actual file data of the file data stored in the storage 14 is later than the update time in the metadata, the CPU 11 determines that the file data acquired from the storage 14 is stored as the same data size. In step S61, when the CPU 11 determines that the file data is stored as the same data size (S61: YES), the CPU 11 advances the process to step S71.
[0032] In step S71, the CPU 11 accesses the real file data of the file data stored in the storage 14, thereby acquiring information on the total mileage TDD and the update time from the real file data. That is, the CPU 11 acquires the update time in the real file data as the latest update time. The CPU 11 also accesses the metadata of the file data stored in the storage 14, thereby acquiring information on the data size from the metadata. After step S71, the CPU 11 ends the current read control.
[0033] On the other hand, if the CPU 11 determines in step S61 that the file data has been stored as a data size that is different (S61: NO), the CPU 11 advances the process to step S72.
[0034] In step S72, the CPU 11 accesses the actual file data of the file data stored in the storage 14, thereby acquiring information on the total mileage TDD from the actual file data. The CPU 11 also accesses the metadata of the file data stored in the storage 14, thereby acquiring information on the update time and data size from the metadata. That is, the CPU 11 acquires the update time in the metadata as the latest update time. After step S72, the CPU 11 ends the current read control.
[0035] <Action of this embodiment> For example, the CPU 11 repeatedly acquires the total mileage TDD via the meter ECU 20, and the CPU 11 repeatedly executes storage control for the total mileage TDD. At this time, if the data size of the file data of the total mileage TDD repeatedly acquired is the same, for example, a positive determination is made in step S12 of the storage control, and the process proceeds to step S22. Then, in step S22, when updating the file data of the acquired total mileage TDD, the metadata stored in the storage 14 is not updated, and only the actual file data stored in the storage 14 is updated. Then, when the actual file data is updated as described above, the information of the acquired total mileage TDD and the information of the update time, which is the time when the total mileage TDD was stored, are inserted into the actual file data stored in the storage 14 and updated.
[0036] <Effects of this embodiment> (1) According to this embodiment, if it is determined in step S12 of the storage control that the data sizes of the file data are the same, only the actual file data stored in the storage 14 is updated in step S22. Therefore, the minimum unit of data blocks in the storage 14 to be rewritten in association with an update of the file data is one. This reduces the number of times the data blocks in the storage 14 are rewritten, and therefore it is possible to prevent the storage 14 from reaching the end of its life prematurely. Moreover, since the actual file data to be updated includes information on the update time, it is possible to obtain the information on the update time from the actual file data stored in the storage 14 by read control.
[0037] (2) In step S22, when updating the real file data, the CPU 11 updates the real file data by inserting update time information at the end of the real file data stored in the storage 14. As a result, the address of other data in the real file data, for example, the total mileage TDD, does not change depending on whether or not update time information is inserted in the real file data stored in the storage 14. As a result, even if update time information is inserted in the real file data, there is no change in the address designation for reading out other data in the real file data.
[0038] (3) In the storage control, for example, if the data sizes of the file data of the total mileage TDD repeatedly acquired are different, a negative determination is made in step S12 of the storage control, and the process proceeds to step S23. Then, in step S23, the CPU 11 updates both the metadata and the actual file data stored in the storage 14 when updating the acquired file data of the total mileage TDD. Therefore, if it is determined in step S12 of the storage control that the data sizes of the file data are different, the update time information and the data size information included in the metadata stored in the storage 14 are updated. As a result, the update time and data size information can be acquired from the metadata stored in the storage 14 by the read control.
[0039] <Example of change> This embodiment can be modified as follows: This embodiment and the following modifications can be combined with each other to the extent that there is no technical contradiction.
[0040] In the above embodiment, the storage control may be changed. For example, in step S22, the way in which the file data is updated may be changed. As a specific example, when updating only the actual file data without updating the metadata stored in the storage 14, the CPU 11 may update the actual file data by inserting information about the update time at the beginning of the text in the actual file data stored in the storage 14.
[0041] For example, in step S23, the way in which the file data is updated may be changed. As a specific example, similar to step S22, when updating the file data of the acquired total mileage TDD, the CPU 11 may update only the actual file data stored in the storage 14 without updating the metadata stored in the storage 14. Even in this case, in the read control, the CPU 11 can obtain information on the total mileage TDD and the update time from the actual file data by accessing the actual file data of the file data stored in the storage 14. Furthermore, the CPU 11 can obtain the data size of the file data by analyzing the file data obtained as described above.
[0042] In the above embodiment, the configuration of the vehicle 100 may be changed. For example, the information processing device is not limited to the central ECU 10. As a specific example, instead of the central ECU 10, the CPU 21 of the meter ECU 20 may execute various processes in the information processing method by executing the information processing program 12A stored in the ROM 22. That is, the central ECU 10, the meter ECU 20, the multimedia ECU 30, the advanced driving assistance ECU 40, etc. may be adopted as the information processing device.
[0043] For example, the execution unit and the storage unit may be located in different ECUs. As a specific example, the CPU 11 of the central ECU 10 may be the execution unit, and the storage 24 of the meter ECU 20 may be the storage unit. In this case, the information processing device is the central ECU 10 and the meter ECU 20. [Explanation of symbols]
[0044] 10...Central ECU, 11...CPU, 12...ROM, 12A...Information processing program, 13...RAM, 14...Storage, 15...Communication I / F, 16...Input / output I / F, 17...Internal bus, 20...Meter ECU, 21...CPU, 22...ROM, 23...RAM, 24...Storage, 25...Communication I / F, 26...Input / output I / F, 27...Internal bus, 30...Multimedia ECU, 40...Advanced driving assistance ECU, 50...DCM, 61...First external bus, 62...Second external bus, 63...Third external bus, 64...Fourth external bus, 71...Odometer, 100...Vehicle.
Claims
1. An execution unit and a storage unit, the storage unit is capable of storing file data having metadata and actual file data including information on update time and data size, the metadata and the actual file data being divided into different data blocks; The execution unit is determining whether or not the data size of the file data to be updated is the same as the data size of the file data already stored in the storage unit; If the data size is the same, updating the actual file data without updating the metadata; When updating the actual file data without updating the metadata, updating the actual file data by inserting information about the update time into the actual file data; Run Information processing device.
2. The execution unit is When updating the actual file data without updating the metadata, updating the actual file data by inserting information about the update time at the end of the actual file data; Run The information processing device according to claim 1 .
3. The execution unit is if the data sizes are different, updating both the metadata and the actual file data; Run 3. The information processing device according to claim 1 or 2.
4. The present invention is directed to an information processing device including an execution unit and a storage unit, the storage unit is capable of storing file data having metadata and actual file data including information on update time and data size, the metadata and the actual file data being divided into different data blocks; The execution unit, determining whether or not the data size of the file data to be updated is the same as the data size of the file data already stored in the storage unit; If the data size is the same, updating the actual file data without updating the metadata; When updating the actual file data without updating the metadata, updating the actual file data by inserting information about the update time into the actual file data; Run Information processing program.
5. The present invention is directed to an information processing device including an execution unit and a storage unit, the storage unit is capable of storing file data having metadata and actual file data including information on update time and data size, the metadata and the actual file data being divided into different data blocks; The execution unit, determining whether or not the data size of the file data to be updated is the same as the data size of the file data already stored in the storage unit; If the data size is the same, updating the actual file data without updating the metadata; When updating the actual file data without updating the metadata, updating the actual file data by inserting information about the update time into the actual file data; Run Information processing methods.
Citation Information
Patent Citations
Information processing device
JP2020197787A
File transferring system, transmitting device and receiving apparatus
WO2006046445A1
