Vehicle control device
The vehicle control device addresses the high processing load issue by acquiring diagnostic log information in response to external requests, optimizing memory diagnosis and ensuring reliable non-volatile memory lifespan determination and efficient storage operations.
Patent Information
- Application Number
- PCT/JP2023/015799
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-04-20
- Publication Date
- 2024-10-24
AI Technical Summary
The high processing load on in-vehicle electronic control units due to constant monitoring of non-volatile memory access status limits the ability to efficiently determine the lifespan of non-volatile memory, which is crucial for reliable vehicle data storage and communication.
A vehicle control device that connects to external devices, utilizing a command processing unit to issue commands for data input/output and diagnostic log acquisition, reducing processing load by acquiring diagnostic log information only in response to external communication requests, thereby minimizing excessive log acquisition commands and optimizing memory diagnosis.
This approach reduces the processing load on in-vehicle control units, allows for accurate determination of non-volatile memory lifespan, and enhances the reliability and longevity of memory storage while preventing resource competition between write and read operations.
Smart Images

Figure JP2023015799_24102024_PF_FP_ABST
Abstract
Description
Vehicle control device
[0001] The present invention relates to a vehicle control device.
[0002] As automobiles become more sophisticated and connected, data-based service businesses are gaining attention. With the increasing integration of multiple vehicle control units (ECUs) installed in vehicles, the amount of data handled by the ECUs is on the rise. To utilize vehicle data, data from both inside and outside the vehicle must be stored in onboard storage, and non-volatile memory can be used for this storage. For example, as communication between the ECU and the outside world increases, opportunities for utilizing vehicle data increase, leading to an increase in the frequency of access to onboard non-volatile memory and the amount of data.
[0003] Nonvolatile memory has a limited number of rewrite cycles (P / E cycles), and its lifespan varies greatly depending on the actual environment, such as access frequency, usage, and temperature. Therefore, it is essential to understand the lifespan of nonvolatile memory under actual usage conditions. For example, Patent Document 1 discloses a method for understanding the lifespan of nonvolatile memory.
[0004] The abstract of Patent Document 1 discloses that "the wear state of memory in use is determined at an appropriate frequency by a memory diagnostic device. The memory diagnostic device comprises an access status observation unit, a wear information acquisition unit, and a wear state determination unit. The access status observation unit observes the access status to the memory. The wear information acquisition unit acquires wear information from the memory at a frequency according to the observed access status. The wear state determination unit determines the wear state of the memory based on the wear information acquired by the wear information acquisition unit."
[0005] WO2020 / 161981
[0006] The technology described in Patent Document 1 constantly monitors the status of access to memory. Therefore, when this technology is applied to an on-board electronic control unit (a processing device such as an SoC or a microcomputer), there is a problem that the processing load becomes high due to the limited processing capacity of the on-board electronic control unit.
[0007] The present invention has been made in consideration of the above points, and its purpose is to provide a vehicle control device that reduces the processing load of an on-board electronic control device, can acquire diagnostic log information of non-volatile memory in a real environment, and can grasp the lifespan of the non-volatile memory.
[0008] In order to solve the above problem, the vehicle control device of the present invention is a vehicle control device connected to a communication device that communicates with an external device, and includes: a memory unit consisting of a non-volatile memory; a command processing unit that issues commands to the memory unit; an input / output unit that inputs and outputs information to and from the memory unit based on commands issued by the command processing unit; an external-vehicle communication request processing unit that processes an external-vehicle communication request with the external device; and a log acquisition unit that acquires diagnostic log information output from the memory unit by the input / output unit, wherein the log acquisition unit determines whether or not it is necessary to acquire the diagnostic log information of the memory unit using the external-vehicle communication request with the external device as a trigger, and when it is determined by the log acquisition unit that it is necessary to acquire the diagnostic log information of the memory unit, the command processing unit issues a second command to acquire the diagnostic log information of the memory unit in addition to a first command that inputs and outputs information in accordance with the external-vehicle communication request with the external device.
[0009] According to the present invention, it is possible to reduce the processing load of a vehicle control device, to grasp the lifespan of a nonvolatile memory, and to realize high reliability of the nonvolatile memory. Further features related to the present invention will become apparent from the description of this specification and the accompanying drawings. Furthermore, problems, configurations, and effects other than those described above will become apparent from the description of the following embodiments.
[0010] 1 is a diagram showing an example of the configuration of an information and communication system to which a vehicle control device according to a first embodiment of the present invention is applied. FIG. 2 is a diagram showing an example of the operation flow of a vehicle control device according to the first embodiment of the present invention. FIG. 3 is a diagram showing an example of the operation flow of a log acquisition unit of a vehicle control device according to the first embodiment of the present invention. FIG. 4 is a diagram showing an example of the configuration of an information and communication system to which a vehicle control device according to a second embodiment of the present invention is applied. FIG. 5 is a graph showing the relationship between information acquired by the log acquisition unit of a vehicle control device according to the second embodiment of the present invention and the number of times the information has been acquired. FIG. 6 is a diagram showing an example of the configuration of an information and communication system to which a vehicle control device according to a third embodiment of the present invention is applied. FIG. 7 is a diagram showing an example of the operation flow of a log acquisition unit of a vehicle control device according to the third embodiment of the present invention. FIG. 8 is a diagram showing an example of a diagnostic timing in a diagnostic unit of a vehicle control device according to the third embodiment of the present invention. FIG. 9 is a diagram explaining an example of a diagnostic method in a diagnostic unit of a vehicle control device according to a fourth embodiment of the present invention. FIG. 10 is a diagram showing an example of the configuration of an information and communication system to which a vehicle control device according to a fifth embodiment of the present invention is applied. FIG. 11 is a diagram showing an example of the configuration of an information and communication system to which a vehicle control device according to a sixth embodiment of the present invention is applied. FIG. 12 is a diagram showing an example of the configuration of an information and communication system to which a vehicle control device according to a seventh embodiment of the present invention is applied.
[0011] Hereinafter, an embodiment of a storage status monitoring system for a vehicle control device according to the present embodiment will be described with reference to the drawings. However, the embodiment described below is merely an example, and it is not intended to exclude various modifications and applications of techniques not explicitly stated in the embodiment. In other words, the present embodiment can be implemented with various modifications within the scope of its purpose. Furthermore, each figure does not intend to include only the components shown in the figure, but may include other functions, etc.
[0012] First Embodiment FIG. 1 is a diagram showing an example of the configuration of an information communication system to which a vehicle control device according to a first embodiment is applied.
[0013] The vehicle control device 100 configures an information and communication system in cooperation with an external device disposed outside the vehicle. In this embodiment, an example is described in which the external device is the server 300, but the external device may be configured as a PC or a cloud. In the information and communication system, data is transmitted and received between the server 300 and the vehicle control device 100, and, for example, update programs are provided from the server 300 to the vehicle control device 100, and vehicle information is provided from the vehicle control device 100 to the server 300.
[0014] Communication between the vehicle control device 100 and the server 300 is performed by a communication unit (communication device) 200 arranged inside the vehicle. The communication unit 200 performs wired communication with the vehicle control device 100 and wireless communication with the server 300.
[0015] The vehicle control device 100 is configured with an ECU (Electronic Control Unit) equipped with a SoC (System on Chip) and non-volatile memory. The SoC has a microprocessor, I / O, and memory for storing programs and data. In the vehicle control device 100, the SoC microprocessor executes programs in the memory, thereby realizing each function shown in FIG. 1.
[0016] The vehicle control device 100 has, as its functions, a storage unit 110, an input / output unit 120, a command processing unit 130, an exterior-of-vehicle communication request processing unit 140, and a log acquisition unit 150.
[0017] The storage unit 110 has a nonvolatile memory such as a NAND flash memory. The storage unit 110 stores vehicle information and sensor information used for vehicle control, information provided by the server 300, and the like in a writable and readable manner. The storage unit 110 also records, as log information, commands such as write, read, and erase, as well as information such as the total amount of accessed data (total amount of written data and total amount of read data), the number of errors, and memory temperature.
[0018] The input / output unit 120 accesses the storage unit 110 based on a command issued by the command processing unit 130 and inputs and outputs information to and from the storage unit 110 .
[0019] The command processing unit 130 issues commands to the storage unit 110. The command processing unit 130 issues commands to read and write sensor information and vehicle information to the storage unit 110. The command processing unit 130 can also issue a request command (hereinafter referred to as a first command) for inputting and outputting information in response to an exterior-vehicle communication request with the server 300, and a log acquisition command (hereinafter referred to as a second command) for acquiring diagnostic log information from the storage unit 110.
[0020] The command processing unit 130 issues a first command when there is a request for out-of-vehicle communication between the vehicle control device 100 and the server 300. Then, when the log acquisition unit 150 determines that it is necessary to acquire diagnostic log information from the storage unit 110, the command processing unit 130 issues a second command in addition to the first command. The second command is, for example, an instruction to acquire diagnostic log information such as the results of a self-test of the storage unit 110 or S.M.A.R.T. (Self-Monitoring, Analysis, and Reporting Technology) from the storage unit 110.
[0021] The outside-vehicle communication request processing unit 140 communicates with the communication unit 200 to send and receive information to and from the server 300, and performs processing in response to an outside-vehicle communication request from the server 300. When communicating with the server 300, the outside-vehicle communication request processing unit 140 notifies the log acquisition unit 150 and the command processing unit 130 that the outside-vehicle communication request with the server 300 has been received.
[0022] The log acquisition unit 150 determines whether or not it is necessary to acquire diagnostic log information from the storage unit 110, triggered by a request for extra-vehicle communication with the server 300. The result of this determination is input to the command processing unit 130 and is used by the command processing unit 130 to determine whether or not to issue an additional second command. The log acquisition unit 150 can use, for example, the number of communications with the server 300, the type of the first command, etc. to determine whether or not it is necessary to acquire diagnostic log information. The log acquisition unit 150 acquires diagnostic log information output from the storage unit 110.
[0023] 2 is a diagram showing an example of an operation flow of the vehicle control device according to the first embodiment. Note that the following example will be described taking as an example a case where an exterior-vehicle communication request is received from the server 300.
[0024] When the exterior-of-vehicle communication request processing unit 140 of the vehicle control device 100 determines that there is an exterior-of-vehicle communication request from the server 300 (YES in S101), it notifies the command processing unit 130 and the log acquisition unit 150 that there is an exterior-of-vehicle communication request (S102).
[0025] When the command processing unit 130 of the vehicle control device 100 receives the notification that there is an outside-vehicle communication request, it determines a first command for inputting and outputting information in response to the communication request (S103).
[0026] On the other hand, when the log acquisition unit 150 of the vehicle control device 100 receives the notification of the presence of an exterior-of-vehicle communication request, the log acquisition unit 150 uses the notification as a trigger to determine whether or not it is necessary to acquire diagnostic log information from the storage unit 110 (S104) (acquisition determination step). The log acquisition unit 150 determines whether or not to acquire diagnostic log information from the storage unit 110 based on, for example, the number of communications with the server 300 or the type of the first command determined in S103.
[0027] FIG. 3 is a diagram illustrating an example of an operation flow of the log acquisition unit of the vehicle control device according to the first embodiment of the present invention.
[0028] The log acquisition unit 150 acquires at least one piece of information, namely, the number of communications with the server 300 and the type of the first command (S201). Then, it determines whether at least one of the above-mentioned conditions (1) and (2) is met: (1) the number of communications with the server 300 is equal to or greater than a predetermined value, and (2) the type of the first command is erase among read, write, and erase (S202). If at least one of the conditions is met, it determines that acquisition of diagnostic log information is necessary (S203). If neither condition is met, it determines that acquisition of diagnostic log information is unnecessary (S204).
[0029] 2, if it is determined in S104 that diagnostic log information needs to be acquired (YES in S104), the log acquisition unit 150 notifies the command processing unit 130 that log acquisition is required (S105). On the other hand, if it is determined in S104 that diagnostic log information does not need to be acquired (NO in S104), the log acquisition unit 150 notifies the command processing unit 130 that log acquisition is not required (S106).
[0030] The command processing unit 130 of the vehicle control device 100 determines whether or not it has received a notification from the log acquisition unit 150 that log acquisition is required (S107). If it has received a notification that log acquisition is required (YES in S107), it issues the first command determined in step S103 with a second command added, which instructs the acquisition of diagnostic log information from the storage unit 110 (S108). On the other hand, if it has received a notification from the log acquisition unit 150 that log acquisition is not required (NO in S107), it issues only the first command (S109).
[0031] When the input / output unit 120 receives a first command from the command processing unit 130, it accesses the storage unit 110 to input and output information to and from the storage unit 110, and acquires the requested data requested by the first command from the storage unit 110. Then, if a second command is added to the first command, the input / output unit 120 acquires the requested data from the storage unit 110 and, at the same time, acquires the diagnostic log information requested by the second command (diagnostic log information acquisition step), and provides it to the command processing unit 130.
[0032] The request data acquired from the storage unit 110 and provided to the command processing unit 130 is transmitted to the server 300 by the exterior-vehicle communication request processing unit 140. Meanwhile, the diagnostic log information acquired from the storage unit 110 and provided to the command processing unit 130 is stored in the log acquisition unit 150 and is used by the log acquisition unit 150 to determine whether to acquire diagnostic log information from the next time onwards.
[0033] The above example is an example in which a communication request is made from the server 300 to the vehicle control device 100, but the same can be considered for the case of communication from the vehicle control device 100 to the server 300.
[0034] According to the vehicle control device 100 of this embodiment, with the above-described configuration and operation flow, a determination is made as to whether or not to acquire diagnostic log information from the memory unit 110, which consists of non-volatile memory, in response to a request for external vehicle communication with the server 300. This allows the diagnostic log information to be acquired at irregular intervals, and the acquired diagnostic log information to be used to diagnose the deterioration state of the memory unit 110 and determine its lifespan.
[0035] Writing and reading data generated within the vehicle to non-volatile memory, whether on a regular or irregular basis, can be anticipated during the design stage. However, with regard to communication with the outside of the vehicle, which is becoming increasingly common, access is performed after the design stage, and it is difficult to anticipate the irregularity and volume of data during the design stage. In the vehicle control device 100 of this embodiment, diagnostic log information from the storage unit 500 is acquired in response to a request for communication with the server 300 outside the vehicle, so that irregular diagnosis can be performed, and diagnosis tailored to the actual situation can be performed.
[0036] Since nonvolatile memory deteriorates with each operation (write, read, erase), it is necessary to select the issuance of a log acquisition command when an external communication request is made after the vehicle is designed, rather than issuing the log acquisition command excessively. According to the vehicle control device 100 of this embodiment, it is possible to suppress the issuance of excessive log acquisition commands (second commands).
[0037] In order to monitor the lifespan of the storage unit 110, which is made up of a nonvolatile memory, the vehicle control device 100 of this embodiment acquires diagnostic log information (including diagnostic test results) from the storage unit 110. In this case, rather than monitoring all access data to the storage unit 110 as in the conventional case and acquiring the diagnostic log information at a frequency or timing determined according to the observed access status, the vehicle control device 100 determines whether to acquire the diagnostic log information when communication with the server 300 occurs.
[0038] This reduces the processing load on the vehicle control device 100, which is an on-board electronic control device, and enables the amount of data communication with the server 300 and the type of command (sequential write, random write, sequential read, random read, etc.) to be grasped, diagnostic log information for non-volatile memory in a real environment to be obtained, and the lifespan of the non-volatile memory to be grasped.
[0039] In the prior art, the access status (data volume) to the nonvolatile memory was constantly monitored to determine the frequency of diagnosis. In information devices such as servers, in addition to having abundant computing resources, memory utilization is a priority, but in a vehicle control unit (ECU) such as the present embodiment, vehicle control is the top priority, and it is necessary to prevent vehicle control resources from being taken up by memory diagnosis.
[0040] Furthermore, in order to grasp the lifespan of the nonvolatile memory, a read operation is required to read diagnostic log information and self-test results from the nonvolatile memory. However, the read operation accelerates the deterioration of the nonvolatile memory, and there is a problem in that the access efficiency decreases due to a conflict between the read operation and a write operation (such as writing a vehicle data log) that should be prioritized in the on-board storage. In order to efficiently diagnose the nonvolatile memory, it is necessary to reduce the number of times that a diagnostic command (read) is issued and to avoid a conflict between the write operation and the read operation. In other words, the number and timing of issuing commands are important.
[0041] According to the vehicle control device 100 of this embodiment, a second command is added to the first command in response to a request for vehicle-exterior communication with the server 300, and diagnostic log information is acquired by the second command along with the request data by the first command. The timing for processing the vehicle-exterior communication request is a timing when vehicle information or sensor information is not being written. In other words, the bus within the ECU is occupied when acquiring diagnostic log information from the storage unit 110. However, by adding the second command to the first command and issuing it, the timing for this occupation can be synchronized with the timing for communication processing with the server 300, and can be shifted from the timing for processing the vehicle-exterior communication request.
[0042] This allows the ECU bus to be used without interfering with the vehicle control that the vehicle control device prioritizes or the recording (write operation) of in-vehicle data to the storage unit 110, and enables efficient reading of diagnostic log information at a timing suitable for diagnosing the storage unit 110. Therefore, efficient memory diagnosis is possible while suppressing a decrease in access efficiency to the storage unit 110, and it is possible to achieve both a long life and high reliability of the storage unit 110.
[0043] Furthermore, according to the vehicle control device 100 of this embodiment, diagnostic log information can be acquired at irregular intervals, eliminating the need for constant monitoring as in the past, thereby preventing consumption of computing resources in the electronic control device (devices such as a CPU, SoC, microcomputer, etc.) and realizing a reduction in the processing load of the on-board electronic control device.
[0044] Second Embodiment Next, a second embodiment of the present invention will be described. A characteristic feature of this embodiment is that a diagnosis unit 160 that diagnoses the deterioration state of the storage unit 110, which is made of a non-volatile memory, is added to the vehicle control device 100.
[0045] 4 is a diagram showing an example of the configuration of an information communication system to which the vehicle control device according to this embodiment is applied. In this embodiment, components similar to those in the first embodiment described above are designated by the same reference numerals, and detailed descriptions thereof will be omitted.
[0046] The diagnostic unit 160 diagnoses the degradation state of the storage unit 110 based on the diagnostic log information of the storage unit 110 acquired by the log acquisition unit 150 (diagnosis step). The diagnostic unit 160 diagnoses the degradation state of the storage unit 110 taking into account the total amount of data written to and read from the storage unit 110, as well as the number of errors and temperature information. The log acquisition unit 150 can determine whether or not to acquire diagnostic log information of the storage unit 110 based on the diagnosis result of the diagnostic unit 160.
[0047] 5 is a diagram showing an example of the operation flow of the diagnosing unit of the vehicle control device according to this embodiment. The diagnosing unit 160 monitors the deterioration of the lifespan of the storage unit 110 based on the diagnostic log information acquired by the log acquisition unit 150, and adjusts the frequency of issuing the second command based on the deterioration of the lifespan. The diagnosing unit 160 acquires the diagnostic log information from the storage unit 110 using the second command (S211). Then, based on the acquired diagnostic log information, it determines whether a malfunction has occurred in the storage unit 110 or whether a refresh operation of the storage unit 110 is necessary (S212).
[0048] If a malfunction has occurred in the storage unit 110 or if a refresh operation of the storage unit 110 is required, the frequency of issuing the second command is increased (S213).On the other hand, if there is no malfunction in the storage unit 110 and a refresh operation is not required, the frequency of issuing the second command is decreased (S214).
[0049] 6A and 6B are graphs showing the relationship between the number of times diagnostic log information is acquired and the information acquired by the log acquisition unit of the vehicle control device according to the second embodiment of the present invention. Fig. 6A shows the relationship between the number of times diagnostic log information is acquired and the cumulative number of errors, Fig. 6B shows the relationship between the number of times diagnostic log information is acquired and the total amount of written data, Fig. 6C shows the relationship between the number of times diagnostic log information is acquired and the number of times the power is turned on, and Fig. 6D shows the relationship between the number of times diagnostic log information is acquired and temperature information.
[0050] For example, if the total amount of access data to the memory unit 110 is small and the number of errors is increasing, the diagnostic unit 160 diagnoses that there may be a malfunction in the memory unit 110 and sends an instruction to the log acquisition unit 150 to increase the frequency of issuing the second command.
[0051] Furthermore, when the total amount of access data to storage unit 110 is large and the temperature of storage unit 110 continues to be high, diagnosing unit 160 determines that storage unit 110 has deteriorated and that a refresh operation (such as data movement) of storage unit 110 is necessary, and instructs log acquisition unit 150 to increase the frequency of issuing second commands. When log acquisition unit 150 receives an instruction from diagnosing unit 160 to increase the frequency of issuing second commands, it adds the second commands to the first commands to increase the frequency of issuance.
[0052] Furthermore, if there is no increase in the number of times the vehicle control device 100 is powered on, the diagnosis unit 160 determines that the period during which the power has not been turned on is long and that a refresh operation of the storage unit 110 is necessary, and sends an instruction to the log acquisition unit 150 to increase the frequency of issuing the second command. When the log acquisition unit 150 receives an instruction from the diagnosis unit 160 to increase the frequency of issuing the second command, it adds the second command to the first command and increases the frequency of issuing the second command.
[0053] According to the vehicle control device 100 of this embodiment, the log acquisition unit 150 can determine whether or not it is necessary to acquire diagnostic log information by using the deterioration information from the diagnosis unit 160. Therefore, the timing of diagnosing the storage unit 110 can be increased or decreased depending on the deterioration state of the storage unit 110. Therefore, the frequency of access to the storage unit 110 can be appropriately controlled, and it is possible to achieve both a longer life and higher reliability of the storage unit 110.
[0054] Third Embodiment Next, a third embodiment of the present invention will be described. A distinctive feature of this embodiment is that the log acquisition unit 150 acquires time information.
[0055] 7 is a diagram showing an example of the configuration of an information communication system to which the vehicle control device according to this embodiment is applied. In this embodiment, components similar to those in the above-described embodiments are designated by the same reference numerals, and detailed descriptions thereof will be omitted.
[0056] The log acquisition unit 150 is configured to acquire time information. By acquiring the time information, the log acquisition unit 150 can calculate the elapsed time since the previous issuance of the second command. This increases the number of factors in determining whether to add a second command, and allows second commands to be added at time intervals.
[0057] 8 is a diagram showing an example of the operation flow of the log acquisition unit of the vehicle control device according to this embodiment. When the log acquisition unit 150 receives a notification of an exterior-vehicle communication request from the exterior-vehicle communication request processing unit 140 (S221), it acquires information on the deterioration diagnosis result of the storage unit 110 from the diagnosis unit 160 (S222). Then, it calculates the elapsed time since the previous issuance of the second command using the time information (S223). Then, it determines whether or not it is necessary to acquire diagnostic log information based on the deterioration diagnosis result of the storage unit 110 by the diagnosis unit 160 and the elapsed time (S224).
[0058] If the elapsed time since the previous log acquisition determination process is equal to or longer than a predetermined time, the log acquisition unit 150 determines that acquisition of diagnostic log information is necessary and can issue a second command. As a result, even when communication with the outside of the vehicle is not possible due to poor communication or when the vehicle is in a tunnel, for example, the log acquisition unit 150 can issue the second command and acquire diagnostic log information. Furthermore, if an outside-vehicle communication request is received from the server 300 at intervals shorter than the predetermined time, the log acquisition unit 150 can determine that acquisition of diagnostic log information is not necessary, thereby reducing the frequency of access to the storage unit 110 and achieving a longer lifespan.
[0059] The log acquisition unit 150 can adjust the timing of diagnosis, that is, the timing of issuing the second command, based on the time information. The log acquisition unit 150 can diagnose the deterioration state of the storage unit 110 by issuing the second command less frequently when the storage unit 110 still has some time left until the end of its life, and by issuing the second command more frequently when the storage unit 110 is approaching the end of its life.
[0060] 9 is a diagram showing an example of the diagnosis timing in the diagnosis unit of the vehicle control device according to this embodiment. The horizontal axis of the graph shown in FIG. 9 represents the number of rewrites (P / E cycles) of the storage unit 110, and the vertical axis represents the data retention time of the storage unit 110. As shown in the graph in FIG. 9, it can be seen that the data retention of the storage unit 110 decreases as the storage unit 110 approaches the end of its life (upper limit of specifications). Therefore, by increasing the frequency of the diagnosis timing as the storage unit 110 approaches the end of its life, it is possible to accurately diagnose the deterioration state of the storage unit 110.
[0061] [Fourth Embodiment] Next, a fourth embodiment of the present invention will be described. A characteristic feature of this embodiment is that the command history of the first command is used to diagnose deterioration of the storage unit 110. In this embodiment, the same components as those in the above-described embodiments are denoted by the same reference numerals, and detailed description thereof will be omitted.
[0062] The diagnosis unit 160 is configured to acquire a command history of first commands. The command history may be read from the command processing unit 130 or from the storage unit 110. The command history includes information on the type of first commands issued in the past and the date and time of issuance.
[0063] The diagnostic unit 160 assigns weights to indicate the degree of degradation impact corresponding to the type of first command, and diagnoses that the memory unit 110 is deteriorating if, for example, a number of first commands of a type with a large degree of degradation impact occur.
[0064] The diagnosis unit 160 outputs the degradation impact level to the log acquisition unit 150. The log acquisition unit 150 determines whether or not it is necessary to acquire diagnostic log information from the storage unit 110 based on the degradation impact level and the command history. When the cumulative value of the degradation impact level exceeds a threshold, the log acquisition unit 150 determines that it is necessary to acquire diagnostic log information from the storage unit 110, and issues an additional second command.
[0065] 10 is a diagram illustrating an example of a diagnostic method in the diagnostic unit of the vehicle control device according to this embodiment. In the example shown in FIG. 10, there are three types of commands: erase, write, and read. The weights indicating the degree of degradation influence of each command are set to 3 for erase, 2 for write, and 1 for read. The log acquisition unit 150 additionally issues a second command when the cumulative degree of degradation influence exceeds a threshold value of 5.
[0066] According to the vehicle control device 100 of this embodiment, the log acquisition unit 150 determines whether or not to acquire diagnostic log information from the storage unit 110 based on the command history and the degree of degradation impact. Therefore, it is possible to diagnose the storage unit 110 according to the degree of degradation impact.
[0067] Fifth Embodiment Fig. 11 is a diagram showing an example of the configuration of an information and communication system to which a vehicle control device according to this embodiment is applied. In the above-described embodiments, an example has been described in which there is one storage unit 110, but the vehicle control device 100 may have multiple storage units 110, 111. Even when multiple storage units 110, 111 are included, the same components as those in the above-described embodiments can acquire logs from each storage unit 110, 111 and acquire degradation information from each storage unit 110, 111. In this embodiment, the above-described configuration allows the system to be realized even when there are multiple storage units 110, 111, without changing or adding to the configuration for acquiring degradation information.
[0068] 12 is a diagram showing an example of the configuration of an information communication system to which a vehicle control device according to this embodiment is applied. When a vehicle control device (ECU) 100 includes a plurality of electronic control units (SoCs), each of which is connected to a storage unit 110, 112, the out-of-vehicle communication request processing unit 140, the log acquisition unit 150, and the diagnosis unit 160 may be provided in one or both of the plurality of electronic control units.
[0069] In this embodiment, the above configuration makes it possible to obtain degradation information for each storage unit 110, 112 using either one, and therefore the effects shown in the first to third embodiments can be achieved without additional resources.
[0070] Seventh Embodiment FIG. 13 is a diagram illustrating an example of the configuration of an information and communication system to which a vehicle control device according to this embodiment is applied. This example illustrates a case in which a vehicle control device (ECU) 100 includes multiple electronic control units (SoCs) that share a storage unit 110. The out-of-vehicle communication request processing unit 140, the log acquisition unit 150, and the diagnosis unit 160 may be provided in either or both of the multiple electronic control units. Alternatively, the multiple electronic control units may be connected to the storage unit 110 via a switch device. In this embodiment, the above configuration allows degradation information from the shared storage unit 110 to be acquired in response to a command from either of the multiple electronic control units, thereby reducing the resources of the electronic control units.
[0071] Although the embodiments of the present invention have been described in detail above, the present invention is not limited to the configurations of the above-described embodiments, and various design modifications can be made without departing from the spirit of the present invention as defined in the claims. For example, the above-described embodiments have been described in detail to clearly explain the present invention, and the present invention is not necessarily limited to those including all of the described configurations. Furthermore, it is possible to replace part of the configuration of one embodiment with the configuration of another embodiment, or to add the configuration of another embodiment to the configuration of one embodiment. Furthermore, it is possible to add, delete, or replace part of the configuration of each embodiment with other configurations.
[0072] 100... Vehicle control device, 200... Communication unit (communication device), 300... Server / PC / Cloud, 110, 111, 112... Storage unit, 120, 121... Input / output unit, 130, 131... Command processing unit, 140... Exterior-vehicle communication request processing unit, 150... Log acquisition unit, 160... Diagnosis unit
Claims
1. A vehicle control device connected to a communication device that communicates with an external device, comprising: a storage unit having a non-volatile memory; a command processing unit that issues commands to the storage unit; an input / output unit that performs input / output of information between the storage unit and the command processing unit issued by the command processing unit; an external-vehicle communication request processing unit that processes an external-vehicle communication request with the external-vehicle device; and a log acquisition unit that acquires diagnostic log information output from the storage unit by the input / output unit, wherein the log acquisition unit determines whether or not it is necessary to acquire the diagnostic log information of the storage unit using the external-vehicle communication request with the external-vehicle device as a trigger, and when it is determined by the log acquisition unit that it is necessary to acquire the diagnostic log information of the storage unit, the command processing unit issues a first command that inputs / outputs information in response to the external-vehicle communication request with the external-vehicle device, in addition to the first command.
2. The vehicle control device according to claim 1, further comprising a diagnostic unit that diagnoses a deterioration state of the life of the memory unit based on diagnostic log information of the memory unit acquired by the log acquisition unit.
3. The vehicle control device according to claim 1, characterized in that the log acquisition unit determines whether or not it is necessary to acquire diagnostic log information from the memory unit based on at least one of the number of communications with an external device and the type of command.
4. The vehicle control device described in claim 2, characterized in that the diagnostic unit determines whether or not a malfunction has occurred in the memory unit based on the total amount of access data to the memory unit and the number of errors in the memory unit, and the log acquisition unit increases the frequency of issuing the second command by adding it to the first command when it is determined that a malfunction has occurred in the memory unit.
5. The vehicle control device described in claim 2, characterized in that the diagnostic unit determines whether the memory unit has deteriorated based on the total amount of access data to the memory unit and the temperature of the memory unit, and the log acquisition unit increases the frequency of issuing the second command in addition to the first command when it is determined that the memory unit has deteriorated.
6. The vehicle control device according to claim 1, characterized in that the log acquisition unit determines whether or not it is necessary to acquire diagnostic log information from the memory unit based on the degree of deterioration impact corresponding to the type of command and the history of the command.
7. The vehicle control device according to claim 2, wherein the log acquisition unit determines whether or not to acquire diagnostic log information from the storage unit based on a diagnosis result from the diagnosis unit.
8. An information and communication system having a server which is an external device, and a vehicle control device connected to a communication device which communicates with the server, wherein the vehicle control device has: a storage unit consisting of a non-volatile memory; a command processing unit which issues commands to the storage unit; an input / output unit which performs input / output of information between the storage unit and the command issued by the command processing unit; an external-vehicle communication request processing unit which processes an external-vehicle communication request with the server; and a log acquisition unit which acquires diagnostic log information of the storage unit using the external-vehicle communication request with the server as a trigger, wherein the log acquisition unit determines whether or not it is necessary to acquire the diagnostic log information of the storage unit using the external-vehicle communication request with the external-vehicle device as a trigger, and when it is determined by the log acquisition unit that it is necessary to acquire the diagnostic log information of the storage unit, the command processing unit issues a second command to acquire the diagnostic log information of the storage unit in addition to a first command for inputting / outputting information in response to the external-vehicle communication request with the external-vehicle device.
9. A method for diagnosing deterioration of a non-volatile memory provided in a vehicle control device connected to a communication device that communicates with an external device, comprising: an acquisition determination step of determining whether or not it is necessary to acquire diagnostic log information of a storage unit consisting of the non-volatile memory, triggered by a request for external communication with the external device; a diagnostic log information acquisition step of acquiring the diagnostic log information of the storage unit when it is determined in the acquisition determination step that the diagnostic log information should be acquired; and a diagnosis step of diagnosing the deterioration state of the storage unit based on the diagnostic log information acquired in the diagnostic log information acquisition step.
Citation Information
Patent Citations
Memory diagnosis device and memory diagnosis method
WO2020161981A1
Vehicle control system
JP2004156590A
