Vehicle data processing method, device and equipment and storage medium
By storing the vehicle system data in the memory as SLC mode, and using the garbage collection mechanism to convert non-system data into TLC mode, the problem of low reading efficiency of the vehicle system data in the flashing scenario is solved, and the data stability is improved. and reading efficiency.
Patent Information
- Application Number
- CN202410744056.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-11
- Publication Date
- 2024-10-01
AI Technical Summary
In the flashing scenario, the three-layer unit mode reading efficiency of vehicle system data is low, resulting in I/O timeout and startup lag.
By trying to store vehicle system data in the memory in SLC mode, and using the garbage collection mechanism to convert non-system data into TLC mode, it ensures that more data is stored in single-layer unit mode, thereby improving data stability and reading efficiency.
It effectively improves the stability and reading efficiency of vehicle system data, and avoids the boot-up lag problem caused by the three-layer unit mode.
Smart Images

Figure CN118733481A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of data processing technology, and in particular to a method, device, equipment and storage medium for processing vehicle computer data. Background Art
[0002] At present, in order to improve the stability of data in the flashing scenario, the first round of data is usually written in single-layer unit mode. If the preset data volume is greater than one-third of the memory capacity, in the flashing scenario, all vehicle system data will be moved to three-layer unit mode. When reading system data during the boot process, the reading efficiency of the three-layer unit data will be reduced, and I / O timeouts will occur, resulting in boot jams or boot failures. Summary of the invention
[0003] In view of this, the purpose of the present invention is to overcome the deficiencies in the prior art and to provide a method, device, equipment and storage medium for processing vehicle computer data, which can be used to store the vehicle computer system data in SLC mode as much as possible in the flashing scenario to enhance the stability of the system data.
[0004] The present invention provides the following technical solutions:
[0005] In a first aspect, the present invention provides a method for processing vehicle computer data, the method comprising:
[0006] Obtain vehicle target data according to the vehicle system;
[0007] Based on the memory capacity and the target threshold, determining a first part of data and a second part of data according to the vehicle target data, the first part of data including system data and first non-system data, and the second part of data including second non-system data;
[0008] Writing the system data and the first non-system data into a memory based on a single-layer unit mode to obtain a system single-layer unit data block and a non-system single-layer unit data block respectively;
[0009] Determining the amount of data to be converted according to the vehicle computer target data and the memory capacity;
[0010] A garbage collection mechanism is started based on the system single-layer unit data block and the amount of data to be converted, and the second non-system data is written into the memory based on a multi-layer unit mode to obtain a target three-layer unit data block.
[0011] In one embodiment, the method further comprises:
[0012] The step of starting the garbage collection mechanism based on the system single-layer unit data block and the amount of data to be converted is performed in parallel with the step of writing the second non-system data to the memory based on the multi-layer unit mode, or the step of starting the garbage collection mechanism based on the system single-layer unit data block and the amount of data to be converted is completed before the step of writing the second non-system data to the memory based on the multi-layer unit mode.
[0013] In one embodiment, the writing the system data and the first non-system data into a memory based on a single-layer unit mode to obtain a system single-layer unit data block and a non-system single-layer unit data block respectively further includes:
[0014] Based on the single-layer unit mode, the system data and the first non-system data are written in sequence according to the numbers of the data blocks in the memory.
[0015] In one implementation, the determining the amount of data to be converted according to the vehicle target data and the memory capacity includes:
[0016] Determining the vehicle computer target data volume according to the vehicle computer target data;
[0017] Determine the sum of the vehicle computer target data volume and the memory capacity to obtain a target sum value;
[0018] The quotient of the target sum value and a first preset value is determined to obtain the amount of data to be converted.
[0019] In one embodiment, the starting of a garbage collection mechanism based on the system single-layer unit data block and the amount of data to be converted, and writing the second non-system data into the memory based on a multi-layer unit mode to obtain a target three-layer unit data block includes:
[0020] Determine the number of system single-layer unit data blocks according to the system data;
[0021] Determine the system single-layer unit data block number according to the number of the system single-layer unit data blocks;
[0022] Based on the system single-layer unit data block number, the system single-layer unit data block is skipped when the garbage collection mechanism is started, the mode of the non-system single-layer unit data block is converted according to the amount of data to be converted, and the second non-system data is written into the memory in sequence based on the multi-layer unit mode to obtain the target three-layer unit data block.
[0023] In one implementation, determining the number of system single-layer unit data blocks according to the system data includes:
[0024] determining a system data volume based on the system data;
[0025] determining a data block size according to the memory;
[0026] Determine the quotient of the system data volume and the data block size to obtain a target quotient value;
[0027] The product of the target quotient value and a second preset value is determined to obtain the number of single-layer unit data blocks of the system.
[0028] In one embodiment, the method further comprises:
[0029] Determine the product of the system data and a third preset value to obtain a first product;
[0030] determining a first non-system data amount and a second non-system data amount according to the first non-system data and the second non-system data;
[0031] Determine the sum of the first product, the first non-system data amount, and the second non-system data amount to obtain the total amount of vehicle computer data;
[0032] Determine the difference between the total amount of vehicle computer data and the memory capacity to obtain a target difference;
[0033] If the target difference is less than a tolerable threshold, the system data is written into the memory based on a single-level cell mode, and the first non-system data and the second non-system data are written into the memory based on a multi-level cell mode.
[0034] In one embodiment, the target threshold is one third, and determining the first part of data and the second part of data according to the vehicle target data based on the memory capacity and the target threshold includes:
[0035] The vehicle-machine target data that occupies one third of the memory capacity is determined as the first part of the data, and the remaining vehicle-machine target data is determined as the second part of the data.
[0036] In a second aspect, the present invention proposes a computer device, including a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the method for processing vehicle computer data as described in the first aspect is implemented.
[0037] In a third aspect, the present invention provides a computer-readable storage medium storing a computer program, wherein the computer program, when executed by a processor, implements the method for processing vehicle computer data as described in the first aspect.
[0038] The vehicle data processing method, device, equipment and storage medium disclosed in the present invention obtain vehicle target data according to the vehicle system; determine the first part of data and the second part of data according to the vehicle target data based on the memory capacity and the target threshold, the first part of data includes system data and first non-system data, and the second part of data includes second non-system data; write the system data and the first non-system data into the memory based on the single-layer unit mode, and obtain a system single-layer unit data block and a non-system single-layer unit data block respectively; determine the amount of data to be converted according to the vehicle target data and the memory capacity; start the garbage collection mechanism based on the system single-layer unit data block and the amount of data to be converted, and write the second non-system data into the memory based on the multi-layer unit mode, and obtain the target three-layer unit data block. In this way, by starting the garbage collection mechanism while writing data, as much vehicle data as possible can be in the single-layer unit mode, thereby improving the stability of the vehicle data and the reading efficiency.
[0039] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and understandable, preferred embodiments are given below and described in detail with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for use in the embodiments are briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present invention and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without creative work.
[0041] Figure 1 A schematic diagram showing a process of a method for processing vehicle data proposed by the present invention;
[0042] Figure 2 Another schematic flow chart of the vehicle computer data processing method proposed by the present invention is shown. DETAILED DESCRIPTION
[0043] Embodiments of the present invention are described in detail below, examples of which are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present invention, and cannot be understood as limiting the present invention.
[0044] It should be noted that when an element is referred to as being "fixed to" another element, it may be directly on the other element or there may be a central element. When an element is considered to be "connected to" another element, it may be directly connected to the other element or there may be a central element at the same time. In contrast, when an element is referred to as being "directly on" another element, there is no intermediate element. The terms "vertical", "horizontal", "left", "right" and similar expressions used herein are for illustrative purposes only.
[0045] In the present invention, unless otherwise clearly specified and limited, the terms "installed", "connected", "connected", "fixed" and the like should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium, it can be the internal connection of two elements or the interaction relationship between two elements. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0046] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. In the description of the present invention, the meaning of "plurality" is two or more, unless otherwise clearly and specifically defined.
[0047] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein in the specification of the template are only for the purpose of describing specific embodiments and are not intended to limit the present invention. The term "and / or" used herein includes any and all combinations of one or more of the related listed items.
[0048] Example 1
[0049] The disclosed embodiment provides a method for processing vehicle computer data, which is used to store the vehicle computer system data in SLC mode as much as possible in the flashing scenario to enhance the stability of the system data.
[0050] See also Figure 1 The method for processing vehicle computer data includes steps S101 to S105, and each step is described in detail below.
[0051] Step S101, obtaining vehicle target data according to the vehicle system.
[0052] In this embodiment, the vehicle target data is obtained according to the actual situation of the customer vehicle system. The vehicle target data at this time includes the system data and non-system data of the vehicle, and the non-system data is generally the vehicle map data of the vehicle. At the same time, the vehicle target data needs to be written into the memory, and the system data in the vehicle target data is generally less than one-third of the memory capacity.
[0053] Step S102, based on the memory capacity and the target threshold, determine the first part of data and the second part of data according to the vehicle target data, the first part of data includes system data and first non-system data, and the second part of data includes second non-system data.
[0054] It should be noted that during the flashing process of the vehicle computer, the system data of the vehicle computer is written into the memory first, and the non-system data is written into the memory later. At the same time, the stability of the single-level cell mode (SLC) data is higher than that of the triple-level cell (TLC) mode data. Therefore, in order to avoid the situation where most of the system data and non-system data are converted into TLC mode data, resulting in reduced data reading efficiency, this embodiment proposes to divide the vehicle computer target data into two parts of data according to the memory capacity and the preset target threshold, and then write the two parts of data into the memory in sequence.
[0055] In a specific embodiment, the target threshold is one third, and the first part of data and the second part of data are determined based on the memory capacity and the target threshold according to the vehicle target data, including: determining the vehicle target data that occupies one third of the memory capacity as the first part of data, and determining the remaining vehicle target data as the second part of data.
[0056] In this embodiment, the amount of the first part of data is determined according to the memory capacity and the target threshold, that is, the amount of data that occupies one third of the memory capacity is determined as the amount of the first part of data. The first part of data must include all system data. Since the system data in the vehicle target data is generally less than one third of the memory capacity, it is also necessary to select some non-system data, that is, the first non-system data as the first part of data, and the other vehicle target data, that is, the second non-system data as the second part of data.
[0057] Step S103: writing the system data and the first non-system data into a memory based on a single-layer unit mode to obtain a system single-layer unit data block and a non-system single-layer unit data block respectively.
[0058] In this embodiment, the system data and the first non-system data in the first part of data are sequentially written into the memory in SLC mode to obtain a system SLC data block and a non-system SLC data block. At this time, all system data are in SLC mode, which can effectively protect the system data of the vehicle computer.
[0059] In a specific embodiment, the system data and the first non-system data are written into the memory based on the single-layer unit mode to obtain a system single-layer unit data block and a non-system single-layer unit data block respectively, and also includes: based on the single-layer unit mode, the system data and the first non-system data are written in sequence according to the number of the data blocks in the memory.
[0060] In this embodiment, when writing the system data and the first non-system data into the memory based on the single-layer unit mode, it is necessary to sequentially allocate corresponding data blocks to the system data and the first non-system data according to the numbers of the data blocks in the memory.
[0061] Step S104, determining the amount of data to be converted according to the vehicle computer target data and the memory capacity.
[0062] It should be noted that, when the first part of the data, which occupies one third of the memory capacity, is written into the memory, it is expected that all the space in the memory will be filled with SLC mode data. Therefore, when the second part of the data is written into the memory, the written SLC mode data needs to be converted into TLC mode data. Because the amount of data written in a block in TLC mode is three times the amount of data written in SLC mode, that is, after every three SLC mode data blocks are converted into one TLC mode data block, two empty blocks will be released, so that the second part of the data can be written into the released empty blocks.
[0063] In this embodiment, before converting the written SLC mode data into TLC mode data, the amount of data to be converted needs to be determined, and the amount of data to be converted is related to the memory capacity and the target data amount of the vehicle computer. The amount of data to be converted also means the amount of TLC mode data that can be stored in the memory.
[0064] In a specific embodiment, determining the amount of data to be converted based on the vehicle computer target data and the memory capacity includes: determining the vehicle computer target data amount based on the vehicle computer target data; determining the sum of the vehicle computer target data amount and the memory capacity to obtain a target sum value; determining the quotient of the target sum value and a first preset value to obtain the amount of data to be converted.
[0065] In this embodiment, the total vehicle target data volume is determined according to the vehicle target data, and the sum of the vehicle target data volume and the memory capacity is determined to obtain the target sum value, and then the quotient of the target sum value and the first preset value is determined to obtain the amount of data to be converted. The calculation formula of the amount of data to be converted can be expressed as (memory capacity + vehicle target data volume) / first preset value, where the first preset value is 2. In other embodiments, the amount of data to be converted can also be calculated by other formulas.
[0066] Step S105 , starting a garbage collection mechanism based on the system single-layer unit data block and the amount of data to be converted, and writing the second non-system data into the memory based on a multi-layer unit mode to obtain a target three-layer unit data block.
[0067] In this embodiment, the garbage collection mechanism is started based on the system SLC data block and the amount of data to be converted, and the second non-system data is also written into the memory in TLC mode, so that the garbage collection mechanism converts the non-system SLC data block, so that the second non-system data is successfully written, and only part of the non-system SLC data block is converted, and finally the target TLC data block is obtained, so that as much vehicle computer data in the memory as possible is in SLC mode, thereby protecting the system data of the vehicle computer and ensuring the efficiency of data reading.
[0068] In a specific embodiment, the method also includes: the step of starting a garbage collection mechanism based on the system single-layer unit data block and the amount of data to be converted is performed in parallel with the step of writing the second non-system data to the memory based on the multi-layer unit mode, or the step of starting a garbage collection mechanism based on the system single-layer unit data block and the amount of data to be converted is completed before the step of writing the second non-system data to the memory based on the multi-layer unit mode.
[0069] In this embodiment, the step of starting the garbage collection mechanism based on the system SLC data blocks and the amount of data to be converted can be performed in parallel with the step of writing the second non-system data into the memory in TLC mode, or the step of starting the garbage collection mechanism based on the system SLC data blocks and the amount of data to be converted can be performed in advance, otherwise there will be no free data blocks in the memory for writing the second non-system data.
[0070] See also Figure 2 In a specific embodiment, the garbage collection mechanism is started based on the system single-layer unit data block and the amount of data to be converted, and the second non-system data is written into the memory based on the multi-layer unit mode to obtain the target three-layer unit data block, including steps S1051 to S1053. Each step is described in detail below.
[0071] Step S1051, determining the number of system single-layer unit data blocks according to the system data.
[0072] In this embodiment, in order to protect the system data of the vehicle computer, it is necessary to skip the system SLC data block and convert the following non-system SLC data block during garbage collection. If it is necessary to skip the system SLC data block, the number of system SLC data blocks must be determined first.
[0073] In a specific embodiment, determining the number of system single-layer unit data blocks based on the system data includes: determining the system data volume based on the system data; determining the data block size based on the memory; determining the quotient of the system data volume and the data block size to obtain a target quotient value; determining the product of the target quotient value and a second preset value to obtain the number of system single-layer unit data blocks.
[0074] In this embodiment, the system data volume is determined according to the system data, and the data block size of the memory is determined, and then the quotient of the system data volume and the data block size is determined to obtain a target quotient value, and finally the product of the target quotient value and the second preset value is determined to obtain the number of system SLC data blocks. The calculation formula for the number of system SLC data blocks can be expressed as (system data volume / data block size)×second preset value, where the second preset value is 3. In other embodiments, the number of system SLC data blocks can also be calculated by other formulas.
[0075] Step S1052: determining the system single-layer unit data block number according to the system single-layer unit data block quantity.
[0076] In this embodiment, system single-layer unit data block numbers are sequentially assigned to each system single-layer unit data block according to the number of system single-layer unit data blocks. For example, if the number of system single-layer unit data blocks is 100, then the system single-layer unit data block numbers are sequentially 1 to 100.
[0077] Step S1053, based on the system single-layer unit data block number, skip the system single-layer unit data block when starting the garbage collection mechanism, convert the non-system single-layer unit data block according to the amount of data to be converted, and write the second non-system data into the memory in sequence based on the multi-layer unit mode to obtain the target three-layer unit data block.
[0078] In this embodiment, after determining the number of each system SLC data block, each system SLC data block can be skipped according to the system SLC data block number, so that data conversion is performed only from the non-system SLC data block through the garbage collection mechanism to obtain the first TLC data block; at this time, the second non-system data is simultaneously written into the memory in TLC mode, and the second TLC data block is obtained according to the second non-system data. That is to say, while the first non-system SLC data is converted into the first TLC data block through the garbage collection mechanism, the second non-system data is sequentially written into the memory to obtain the second TLC data block. The first TLC data block and the second TLC data block together constitute the target TLC data block. In this way, the system data of the vehicle computer are all in SLC mode, which effectively protects the system data, ensures the efficiency of data reading, improves data stability, and avoids problems such as startup jams caused by too much system data in TLC mode.
[0079] In a specific embodiment, the method also includes: determining the product of the system data and a third preset value to obtain a first product; determining a first non-system data amount and a second non-system data amount based on the first non-system data and the second non-system data; determining the sum of the first product, the first non-system data amount and the second non-system data amount to obtain a total amount of vehicle data; determining a difference between the total amount of vehicle data and the memory capacity to obtain a target difference; if the target difference is less than a tolerable threshold, writing the system data into the memory based on a single-layer unit mode, and writing the first non-system data and the second non-system data into the memory based on a multi-layer unit mode.
[0080] In this embodiment, the product of the system data and the third preset value is determined to obtain a first product; the first non-system data amount and the second non-system data amount are determined according to the first non-system data and the second non-system data; the sum of the first product, the first non-system data amount and the second non-system data amount is determined to obtain the total amount of vehicle data; the difference between the total amount of vehicle data and the memory capacity is determined to obtain the target difference; if the target difference is less than the tolerable threshold, the system data is directly written to the memory in SLC mode, and the first non-system data and the second non-system data are written to the memory in TLC mode. The calculation formula of the target difference can be expressed as (system data amount × third preset value + first non-system data amount + second non-system data amount) - memory capacity, where the third preset value is 3. The target difference is less than the tolerable threshold, which means that the total amount of vehicle data is infinitely close to the memory capacity. At this time, all the first non-system data and the second non-system data need to be in TLC mode. At this time, in order to improve the efficiency of writing data, the system data can be directly written to the memory in SLC mode, and the first non-system data and the second non-system data can be written to the memory in TLC mode. The tolerable threshold can be set according to the specific application.
[0081] The method for processing vehicle computer data proposed in this embodiment obtains vehicle computer target data according to the vehicle computer system; determines a first part of data and a second part of data according to the vehicle computer target data based on the memory capacity and the target threshold, wherein the first part of data includes system data and first non-system data, and the second part of data includes second non-system data; writes the system data and the first non-system data into the memory based on the single-layer unit mode, and obtains a system single-layer unit data block and a non-system single-layer unit data block respectively; determines the amount of data to be converted according to the vehicle computer target data and the memory capacity; starts a garbage collection mechanism based on the system single-layer unit data block and the amount of data to be converted, and writes the second non-system data into the memory based on the multi-layer unit mode, and obtains a target three-layer unit data block. In this way, by starting the garbage collection mechanism while writing data, as much vehicle computer data as possible can be in the single-layer unit mode, thereby improving the stability of the vehicle computer data and the reading efficiency.
[0082] Example 2
[0083] In addition, an embodiment of the present disclosure provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the method for processing vehicle data described in Example 1 is implemented.
[0084] The device provided in the embodiment of the present disclosure can execute the steps of the vehicle data processing device method provided in Example 1, which will not be described again to avoid repetition.
[0085] Example 3
[0086] The disclosed embodiment provides a computer-readable storage medium storing a computer program. When the computer program is executed by a processor, the method for processing vehicle data described in Embodiment 1 is implemented.
[0087] In this embodiment, the computer-readable storage medium may be a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.
[0088] The computer-readable storage medium provided in this embodiment can implement the vehicle data processing device method provided in Example 1, and will not be described again here to avoid repetition.
[0089] In all examples shown and described herein, any specific values should be interpreted as merely exemplary and not as limiting, and thus other examples of the exemplary embodiments may have different values.
[0090] It should be noted that similar reference numerals and letters denote similar items in the following drawings, and therefore, once an item is defined in one drawing, further definition and explanation thereof is not required in subsequent drawings.
[0091] The above-mentioned embodiments only express several implementation methods of the present invention, and the description thereof is relatively specific and detailed, but it cannot be understood as limiting the scope of the present invention. It should be pointed out that for ordinary technicians in this field, several modifications and improvements can be made without departing from the concept of the present invention, which all belong to the protection scope of the present invention.
Claims
1. A method for processing vehicle computer data, characterized in that: The method comprises: Obtain vehicle target data according to the vehicle system; Based on the memory capacity and the target threshold, determining a first part of data and a second part of data according to the vehicle target data, the first part of data including system data and first non-system data, and the second part of data including second non-system data; Writing the system data and the first non-system data into a memory based on a single-layer unit mode to obtain a system single-layer unit data block and a non-system single-layer unit data block respectively; Determining the amount of data to be converted according to the vehicle computer target data and the memory capacity; A garbage collection mechanism is started based on the system single-layer unit data block and the amount of data to be converted, and the second non-system data is written into the memory based on a multi-layer unit mode to obtain a target three-layer unit data block.
2. The method for processing vehicle computer data according to claim 1, characterized in that: The method further comprises: The step of starting the garbage collection mechanism based on the system single-layer unit data block and the amount of data to be converted is performed in parallel with the step of writing the second non-system data to the memory based on the multi-layer unit mode, or the step of starting the garbage collection mechanism based on the system single-layer unit data block and the amount of data to be converted is completed before the step of writing the second non-system data to the memory based on the multi-layer unit mode.
3. The method for processing vehicle computer data according to claim 1, characterized in that: The step of writing the system data and the first non-system data into a memory based on a single-layer unit mode to obtain a system single-layer unit data block and a non-system single-layer unit data block respectively further includes: Based on the single-layer unit mode, the system data and the first non-system data are written in sequence according to the numbers of the data blocks in the memory.
4. The method for processing vehicle computer data according to claim 1, characterized in that: The step of determining the amount of data to be converted according to the vehicle computer target data and the memory capacity includes: Determining the vehicle computer target data volume according to the vehicle computer target data; Determine the sum of the vehicle computer target data volume and the memory capacity to obtain a target sum value; The quotient of the target sum value and a first preset value is determined to obtain the amount of data to be converted.
5. The method for processing vehicle computer data according to claim 1, characterized in that: The method of starting a garbage collection mechanism based on the system single-layer unit data block and the amount of data to be converted, and writing the second non-system data into the memory based on a multi-layer unit mode to obtain a target three-layer unit data block includes: Determine the number of system single-layer unit data blocks according to the system data; Determine the system single-layer unit data block number according to the number of the system single-layer unit data blocks; Based on the system single-layer unit data block number, the system single-layer unit data block is skipped when the garbage collection mechanism is started, the mode of the non-system single-layer unit data block is converted according to the amount of data to be converted, and the second non-system data is written into the memory in sequence based on the multi-layer unit mode to obtain the target three-layer unit data block.
6. The method for processing vehicle computer data according to claim 5, characterized in that: The determining the number of system single-layer unit data blocks according to the system data includes: determining a system data volume based on the system data; determining a data block size according to the memory; Determine the quotient of the system data volume and the data block size to obtain a target quotient value; The product of the target quotient value and a second preset value is determined to obtain the number of single-layer unit data blocks of the system.
7. The method for processing vehicle data according to claim 1, characterized in that: The method further comprises: Determine the product of the system data and a third preset value to obtain a first product; determining a first non-system data amount and a second non-system data amount according to the first non-system data and the second non-system data; Determine the sum of the first product, the first non-system data amount, and the second non-system data amount to obtain the total amount of vehicle computer data; Determine the difference between the total amount of vehicle computer data and the memory capacity to obtain a target difference; If the target difference is less than a tolerable threshold, the system data is written into the memory based on a single-level cell mode, and the first non-system data and the second non-system data are written into the memory based on a multi-level cell mode.
8. The method for processing vehicle computer data according to claim 1, characterized in that: The target threshold is one third, and the first part of data and the second part of data are determined according to the vehicle target data based on the memory capacity and the target threshold, including: The vehicle-machine target data that occupies one third of the memory capacity is determined as the first part of the data, and the remaining vehicle-machine target data is determined as the second part of the data.
9. A computer device, characterized in that: The method comprises a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the method for processing vehicle computer data as claimed in any one of claims 1 to 7 is implemented.
10. A computer-readable storage medium, characterized in that: It stores a computer program, which, when executed by a processor, implements the vehicle computer data processing method as described in any one of claims 1 to 7.
