Controller area network sleep diagnosis device and method for vehicles
By designing CAN sleep diagnostic equipment, monitoring CAN signals and recording the list and history of controllers that have not entered sleep, the problem of CAN not entering sleep in the vehicle is solved, ensuring the safety and stability of battery use, and achieving preventive problem solving.
Patent Information
- Application Number
- CN202010497195.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2019-12-17
- Filing Date
- 2020-06-04
- Publication Date
- 2025-08-15
- Estimated Expiration
- 2040-06-04
AI Technical Summary
The prior art is difficult to predict and diagnose the problem that the vehicle controller local area network (CAN) does not enter sleep mode, resulting in increased dark current, rapid discharge of the battery, and difficulty in preventing such errors during the vehicle development stage.
Design a CAN sleep diagnostic device, including a CAN signal detector, a CAN sleep diagnostic unit, a memory storage judge and a diagnostic unit, by monitoring the CAN signal, diagnose the controller that has not entered sleep, record relevant data, and analyze the cause of the problem.
During the vehicle development stage, comprehensively diagnose the problem of CAN not entering sleep, ensure safety and stability, avoid subsequent problems, and achieve preventive solutions.
Smart Images

Figure CN112977298B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to a controller area network (CAN) sleep diagnosis device and method for a vehicle. Background Art
[0002] Generally, many controllers for performing various control functions are applied in a vehicle.
[0003] Today, with the development of electronic and communication technologies and the increase in the functions required of vehicles, the number of electronic controllers has increased, and the amount of data sent and received has also increased.
[0004] Therefore, as the logic for entering a sleep mode in each controller becomes complicated, a failure in entering the sleep mode often occurs due to an error in the logic for entering the sleep mode.
[0005] In the case of a vehicle, due to the characteristics of a controller area network (CAN), when some controllers do not enter sleep, other controllers may also not enter sleep.
[0006] In this case, the value of the dark current of the vehicle increases, and thus the battery may be discharged in a short time after the vehicle stops.
[0007] Furthermore, it is difficult to predict the conditions under which errors may occur in the logic for entering sleep mode.
[0008] For example, depending on the type and timing of the signal, eg, signal B is transmitted after a certain time has passed after signal A is transmitted or signal A and signal B are transmitted simultaneously, an error may occur that the vehicle does not enter the sleep mode.
[0009] This type of error is difficult to pre-diagnose due to the conditions in many cases.
[0010] Therefore, it is necessary to develop a vehicle CAN sleep diagnostic device to diagnose the problem of not entering sleep by monitoring CAN signals, and send a list of controllers that have not entered sleep and the sending history of CAN signals at corresponding time points to the diagnostic device, so as to overcome the problem of CAN not entering sleep in advance during the vehicle development stage. Summary of the Invention
[0011] The present disclosure relates to a controller area network (CAN) sleep diagnosis device. Specific embodiments relate to a vehicle CAN sleep diagnosis device and a CAN sleep diagnosis method for the vehicle CAN sleep diagnosis device, for diagnosing and analyzing a problem in which a CAN does not enter sleep mode after a vehicle is parked.
[0012] Embodiments of the present disclosure relate to a vehicle's controller area network (CAN) sleep diagnostic device and method, which diagnoses the problem of not entering sleep by monitoring CAN signals and sending a list of controllers that have not entered sleep and the transmission history of CAN signals at corresponding time points to the diagnostic device, thereby overcoming the problem of CAN not entering sleep in advance during the vehicle development stage.
[0013] Technical problems solved by the embodiments are not limited to the above technical problems, and other technical problems not described herein will become apparent to those skilled in the art from the following description.
[0014] In one embodiment, a controller area network (CAN) sleep diagnostic device for a vehicle includes: a CAN signal detector configured to detect CAN signals from a CAN connected to multiple controllers; a CAN sleep diagnostic unit configured to diagnose whether the CAN has entered sleep; a memory storage judger configured to judge whether to store data received from the CAN signal detector and the CAN sleep diagnostic unit and store the data in a memory based on whether the CAN has entered sleep; and a diagnostic unit configured to check the data stored in the memory and diagnose a problem that the CAN has not entered sleep.
[0015] In another aspect of the present disclosure, a Controller Area Network (CAN) sleep diagnostic method of a vehicle's CAN sleep diagnostic device includes: detecting a CAN signal from the CAN connected to multiple controllers; diagnosing whether the CAN has entered sleep; determining whether to store data corresponding to the CAN signal and store the data in a memory based on whether the CAN has entered sleep; and checking the data stored in the memory and diagnosing a problem in which the CAN has not entered sleep.
[0016] In another aspect of the present disclosure, a computer-readable recording medium having recorded thereon a program for executing a CAN sleep diagnostic method of a CAN sleep diagnostic apparatus of a vehicle executes steps provided in the CAN sleep diagnostic method of the CAN sleep diagnostic apparatus of the vehicle.
[0017] In another aspect of the present disclosure, a vehicle includes: multiple controllers; and a controller area network (CAN) sleep diagnostic device, configured to diagnose a problem of the CAN not entering sleep by monitoring CAN signals from the CAN connected to the controllers, wherein the CAN sleep diagnostic device includes: a CAN signal detector, configured to detect CAN signals from the CAN connected to multiple controllers; a CAN sleep diagnostic unit, configured to diagnose whether the CAN enters sleep; a memory storage judge, configured to judge whether to store data received from the CAN signal detector and the CAN sleep diagnostic unit and store the data in a memory based on whether the CAN enters sleep; and a diagnostic unit configured to check the data stored in the memory and diagnose the problem of the CAN not entering sleep. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] The accompanying drawings are included to provide a further understanding of the present invention and are incorporated in and constitute a part of this application. The drawings illustrate embodiments of the present invention and together with the description serve to explain the principles of the present invention. In the drawings:
[0019] Figure 1 is a block diagram for explaining a controller area network (CAN) sleep diagnostic apparatus of a vehicle according to an embodiment of the present disclosure;
[0020] Figure 2 is a diagram for explaining a monitoring table of a CAN signal detector;
[0021] Figure 3 1 is a diagram for explaining a method in which the CAN sleep diagnosis unit diagnoses a condition in which the CAN sleep diagnosis unit fails to enter sleep mode;
[0022] Figure 4 is a diagram for explaining a memory storage history of a memory storage determiner;
[0023] Figure 5 is a diagram for explaining the content of data output to the diagnosis unit; and
[0024] Figure 6 and Figure 7 is a flowchart for explaining a CAN sleep diagnosis method according to an embodiment of the present disclosure. DETAILED DESCRIPTION
[0025] Hereinafter, embodiments of the present disclosure will be described in detail with reference to the accompanying drawings so that those skilled in the art can easily implement them. However, the present disclosure can be implemented in various ways and is not limited to the embodiments described herein. In the accompanying drawings, parts not related to the description of the present disclosure will be omitted for clarity, and similar parts are represented by similar reference numerals throughout the specification.
[0026] Throughout the specification, when a part "includes" a component, this does not exclude other components, and other components may be further included unless otherwise specified. The terms "unit," "device," and "module" described in the specification represent units for processing at least one function or operation, and may be implemented by hardware, software, or a combination thereof.
[0027] The same reference numbers will be used throughout the drawings to refer to the same or like parts.
[0028] In the following, reference will be made to Figures 1 to 7 A controller area network (CAN) sleep diagnosis apparatus and method for a vehicle applicable to an embodiment of the present disclosure are described in detail.
[0029] Figure 1 is a block diagram for explaining a CAN sleep diagnostic apparatus for a vehicle according to an embodiment of the present disclosure.
[0030] like Figure 1 As shown, the CAN sleep diagnostic apparatus for a vehicle according to the present disclosure may include a CAN signal detector 100 , a CAN sleep diagnostic unit 200 , a memory storage determiner 300 , and a diagnostic unit 400 .
[0031] Here, the CAN signal detector 100 may detect a CAN signal from a CAN communicatively connected to a plurality of controllers.
[0032] The CAN signal detector 100 may also detect a CAN signal changed by a driver's manipulation.
[0033] The CAN signal detector 100 may detect CAN signals and may generate a monitoring table 110 including a list of N CAN signals.
[0034] Here, when generating the monitoring table 110 , the CAN signal detector 100 may classify the detected CAN signals into operation signals before parking, operation signals during parking, and operation signals after parking to generate the monitoring table, but the present disclosure is not limited thereto.
[0035] For example, the monitoring table 110 may include the header and content of the detected CAN signals.
[0036] According to the present disclosure, a monitoring table can be configured based on signals frequently manipulated by a driver at a time point when the vehicle is parked, and the signals can be classified into operation signals before parking, operation signals during parking, and operation signals after parking.
[0037] In this way, the corresponding signals can be monitored to fully diagnose the conditions under which the problem of CAN not going to sleep occurs under normal parking conditions.
[0038] As needed, when generating the monitoring table 110 , the CAN signal detector 100 may generate different monitoring tables 110 according to the environment of the vehicle.
[0039] For example, where the vehicle includes a mood light controller or a smartphone wireless charging controller, a monitoring table including relevant signals may also be generated.
[0040] Then, the CAN sleep diagnosis unit 200 may diagnose whether the CAN enters sleep.
[0041] Here, when diagnosing whether the CAN enters sleep mode, the CAN remains active (alive) for a time T after the vehicle power is turned off. 活跃 Exceeding the scheduled time T 关闭 When the CAN is previously in sleep mode, the CAN sleep diagnosis unit 200 may diagnose that the CAN has entered sleep mode.
[0042] When diagnosing whether CAN enters sleep mode, the CAN remains active for a period of time T after the vehicle power is turned off. 活跃 Exceeding the scheduled time T 关闭 When the CAN remains active thereafter, the CAN sleep diagnosis unit 200 can diagnose that a problem has occurred in which the CAN does not enter sleep.
[0043] When diagnosing whether the CAN enters sleep, if the vehicle power is off or the CAN controller is woken up and the vehicle power is off, the CAN sleep diagnosis unit 200 can drive a timer to accumulate and measure the total active retention time of the CAN until the vehicle power is switched from the off state to the on state, and can reset the timer when the vehicle power is switched from the off state to the on state.
[0044] Here, immediately after the vehicle power is switched from the on state to the off state, or when the CAN controller (e.g., a central gateway (CGW) controller) is awakened and the vehicle power is turned off, the CAN sleep diagnostic unit 200 may drive the timer from an initial value of 0 while the CAN remains active.
[0045] The CAN sleep diagnostic unit 200 can send the measurement value of the timer to the memory storage judge 300 to store the measurement value of the timer in the memory of the memory storage judge 300 in real time, maintain the measurement value of the timer even after the CAN enters sleep, and initialize the timer when the vehicle power is switched from the off state to the on state.
[0046] That is, when diagnosing whether the CAN enters sleep, when the vehicle power is turned off or the CAN controller is awakened and the vehicle power is turned off, the CAN sleep diagnosis unit 200 can drive the timer to accumulate and measure the total active maintenance time of the CAN until the vehicle power is converted from the off state to the on state, and the timer can be reset when the vehicle power is converted from the off state to the on state.
[0047] Then, when diagnosing whether the CAN enters sleep, the CAN sleep diagnosis unit 200 may diagnose that a problem of the CAN not entering sleep occurs when the active time of the CAN exceeds a first predetermined time after the vehicle power is switched from the on state to the off state.
[0048] Here, the CAN sleep diagnostic unit 200 may set a time exceeding a maximum time among times taken for wireless update through an over-the-air (OTA) update of all controllers installed in the vehicle as the first predetermined time.
[0049] Depending on the circumstances, when the vehicle does not apply the OTA function, the CAN sleep diagnostic unit 200 can also set the time exceeding the longest time of the time taken to enter the sleep mode after the sleep conditions of each controller installed in the vehicle are met and the time when the CAN remains active due to the function of the controller when the vehicle is parked as a first predetermined time.
[0050] Then, when diagnosing whether the CAN enters sleep, when the network management (NM) message value is active at a time point when the active time of the CAN exceeds a predetermined time after the vehicle power is switched from the on state to the off state, the CAN sleep diagnosis unit 200 can diagnose that the problem of the CAN not entering sleep occurs.
[0051] Here, the CAN sleep diagnosis unit 200 can determine whether each controller is asleep through the network management (NM) message value, or can determine whether each controller is asleep by comparing the CAN identifier (ID) of the CAN message sent from each controller with the data stored in the vehicle manufacturer's CAN database.
[0052] When diagnosing whether the CAN enters sleep, if the CAN is awakened after entering sleep or wakes up and sleep is repeatedly performed after the vehicle power is switched from the on state to the off state, the CAN sleep diagnosis unit 200 can diagnose that the problem of the CAN not entering sleep occurs at a time point when the total active maintenance time of the CAN exceeds a second predetermined time when the value of the wake-up counter is equal to or greater than a specific value.
[0053] Here, the wakeup counter may start from an initial value of 0, may be counted up by one when the CAN is woken up after a CAN sleep, and may be initialized to 0 when the vehicle power is switched from an off state to an on state.
[0054] Then, the memory storage determiner 300 may determine whether to store the data received from the CAN signal detector 100 and the CAN sleep diagnosis unit 200 according to whether the CAN enters sleep, and may store the data in the memory.
[0055] Here, the memory storage determiner 300 may include a first memory 310 for storing data received from the CAN signal detector and the CAN sleep diagnosis unit; and a second memory 320 for storing data corresponding to the CAN diagnosed as not entering sleep.
[0056] The memory storage judge 300 may further include a judge, which is configured to store the first data in the first memory 310 when receiving the first data from the CAN signal detector 100, and when the CAN sleep diagnosis unit 200 diagnoses that the CAN has not entered sleep, receive the second data corresponding to the CAN diagnosed as not entering sleep and store the second data in the first memory 310, and copy the first data and the second data stored in the first memory 310 to the second memory 320.
[0057] For example, the first memory 310 may be a volatile memory, and the second memory 320 may be a non-volatile memory.
[0058] The first data may include the current value and timer measurement value of the initial CAN signal received from the CAN signal detector, and when the initial CAN signal changes, the first data may include the current value and timer measurement value of the changed CAN signal. When the CAN sleep diagnosis unit 200 diagnoses that the CAN has not entered sleep, the first data may include the current value and timer measurement value of the CAN signal corresponding to the CAN diagnosed as not entering sleep and a list of controllers that have not entered sleep.
[0059] Here, the first data may be stored in a stack structure in the form of First In Last Out (FILO), but the present disclosure is not limited thereto.
[0060] The second data may include current values and timer measurement values of CAN signals corresponding to the CANs that have not entered sleep, copied from the first memory 310 , and a list of controllers that have not entered sleep.
[0061] The memory storage judge 300 can store the current value and timer measurement value of the initial CAN signal received from the CAN signal detector in the first memory 310, and when the initial CAN signal changes, the current value and timer measurement value of the changed CAN signal can be stored in the first memory 310, and when the CAN sleep diagnosis unit 200 diagnoses that the CAN has not entered sleep, the memory storage judge 300 can store the current value and timer measurement value of the CAN signal corresponding to the CAN diagnosed as not entering sleep and a list of controllers that have not entered sleep in the first memory 310, and can copy all data stored in the first memory 310 to the second memory 320.
[0062] Here, when the diagnosis unit 400 is in communication link, the memory storage determiner 300 may provide the second data stored in the second memory 320 to the diagnosis unit 400 .
[0063] When the number of ignition ONs reaches a predetermined value, the memory storage determiner 300 may also deactivate the entire logic according to the present disclosure.
[0064] This is because it is necessary to prevent the product from operating under customer usage conditions after mass production of the product.
[0065] The memory storage determiner 300 may be a CAN controller including a central gateway (CGW) controller, but the present disclosure is not limited thereto.
[0066] For example, according to the present disclosure, a controller using CAN may be used, and in order to fully diagnose a problem in which the CAN does not enter sleep, a CAN controller such as a CGW controller may be used.
[0067] The diagnosis unit 400 may check data stored in the memory of the memory storage determiner 300 and may diagnose a problem that the CAN does not enter sleep.
[0068] Here, the diagnostic unit 400 can check the transmission history of CAN signals corresponding to the CAN that has not entered sleep and the list of controllers that have not entered sleep stored in the memory of the memory storage judge 300, and can track the problematic controllers and the conditions under which the problem occurs to analyze the cause of the problem.
[0069] As described above, according to the present disclosure, the problem of CAN not entering sleep is diagnosed by monitoring CAN signals and sending a list of controllers that have not entered sleep and the sending history of CAN signals at corresponding time points to the diagnostic device, so that the problem of CAN not entering sleep can be overcome in advance during the vehicle development stage.
[0070] That is, according to the present disclosure, during the vehicle development stage, it is possible to monitor whether the CAN has not entered sleep mode, and when a problem occurs, a list of controllers that have not entered sleep mode and the vehicle's operation history at the corresponding time point can be sent to the diagnostic device to diagnose the occurrence of the problem of the CAN not entering sleep mode and analyze the cause of the problem.
[0071] The present disclosure can propose a more advanced CAN network sleep condition, so that the problem of CAN not entering sleep can be comprehensively diagnosed under general vehicle usage conditions, and the forced sleep function is not used, thereby ensuring safety and stability, and at the same time realizing a pre-solution method of pre-diagnosing the problem of CAN not entering sleep and taking measures, rather than a post-solution method of taking measures after the problem occurs.
[0072] Therefore, according to the present disclosure, it is possible to check a list of controllers and a manipulation history of a vehicle at a time point when a CAN not going to sleep problem occurs, and to pre-diagnose the not going to sleep problem and analyze the cause of the problem in a vehicle development stage.
[0073] According to the present disclosure, in the future, considering that related problems will increasingly occur with the development of controller technology, the effects achieved by the present disclosure can be further enhanced.
[0074] Figure 2 This is a diagram for explaining a monitoring table of a CAN signal detector.
[0075] like Figure 2 As shown, the CAN signal detector according to the present disclosure can detect CAN signals and can generate a monitoring table including a list of N CAN signals.
[0076] That is, according to the present disclosure, a monitoring table can be configured based on signals frequently manipulated by the driver at the time point when the vehicle is parked, and the signals can be classified into operation signals before parking, operation signals during parking, and operation signals after parking.
[0077] In this way, the corresponding signals can be monitored to fully diagnose the conditions under which the problem of CAN not going to sleep occurs under normal parking conditions.
[0078] For example, the monitoring table may include the header and content of the detected CAN signals.
[0079] Depending on the situation, the monitoring table can be changed according to the vehicle's environment.
[0080] For example, where the vehicle includes a mood light controller or a smartphone wireless charging controller, a monitoring table including relevant signals may also be generated.
[0081] Figure 3 This is a diagram for explaining a method in which the CAN sleep diagnosis unit diagnoses that the device has not entered sleep.
[0082] like Figure 3 As shown, the CAN sleep diagnosis unit according to the present disclosure may have various types for diagnosing whether the CAN enters sleep.
[0083] As in Type 1, when the CAN continues to be active after the active time of the CAN exceeds a first predetermined time after the vehicle power is switched from the on state to the off state, the CAN sleep diagnosis unit may diagnose that a problem of the CAN not entering sleep occurs.
[0084] As in Type 2 and Type 3, when the CAN is awakened after entering sleep or repeatedly wakes up and sleeps after the vehicle power is switched from an on state to an off state, the CAN sleep diagnostic unit can also diagnose the occurrence of a problem in which the CAN does not enter sleep when the value of the wake-up counter is equal to or greater than a specific value and the total active maintenance time of the CAN exceeds a second predetermined time.
[0085] Here, the wakeup counter may start from an initial value of 0, may be counted up by one when the CAN is woken up after a CAN sleep, and may be initialized to 0 when the vehicle power is switched from an off state to an on state.
[0086] The specific value of the wake-up counter may also be set by the manufacturer to an appropriate value.
[0087] Here, the second predetermined time may also be set by the manufacturer to an appropriate value according to the characteristics of the CAN controller in the vehicle.
[0088] For example, the second predetermined time may also be set as a multiple of the first predetermined time.
[0089] Figure 3 Type 2 and type 3 may be distinguished by a wake-up counter, in which case the second predetermined time may be set differently according to each type.
[0090] When the vehicle power is turned off or the CAN controller is woken up and the vehicle power is turned off, the CAN sleep diagnostic unit can drive the timer to accumulate and measure the total active retention time of the CAN until the vehicle power is switched from the off state to the on state, and can reset the timer when the vehicle power is switched from the off state to the on state.
[0091] The measured value of the timer may be stored in a second memory which is a non-volatile memory of the memory storage determiner.
[0092] Immediately after the vehicle power transitions from the on state to the off state, or when the central gateway (CGW) controller is awakened and the vehicle power is off, the CAN sleep diagnostic unit may start driving the timer from an initial value of 0 during the CAN remain active period.
[0093] The CAN sleep diagnostic unit can send the measurement value of the timer to the memory storage judge to store the measurement value of the timer in the memory of the memory storage judge in real time, maintain the measurement value of the timer even after the CAN enters sleep, and initialize the timer when the vehicle power is switched from the off state to the on state.
[0094] Figure 4 1 is a diagram for explaining the memory storage history of the memory storage determiner.
[0095] like Figure 4 As shown, according to the memory storage judge of the present disclosure, the current value and timer measurement value of the initial CAN signal received from the CAN signal detector can be stored in the volatile memory; when the CAN signal changes, the current value and timer measurement value of the changed CAN signal can be stored in the volatile memory; when the CAN sleep diagnosis unit diagnoses that the CAN has not entered sleep, the current value and timer measurement value of the CAN signal corresponding to the CAN diagnosed as not entering sleep and a list of controllers that have not entered sleep can be stored in the volatile memory; and all data stored in the volatile memory can be copied to the non-volatile memory.
[0096] Therefore, the memory storage determiner can store the content of the CAN signal, the storage time point of the CAN signal, the timer measurement value, the content of the controller that has not entered the sleep state, etc. in the memory.
[0097] For example, data in the volatile memory may be stored in a stack structure in the form of a first-in, last-out (FILO) structure.
[0098] According to the present disclosure, nonvolatile memory can be used only at the point in time when the problem of CAN not entering sleep occurs, so the usage rate of nonvolatile memory can be reduced, but the memory can be configured and used differently according to the environment and other uses of the memory.
[0099] Figure 5 1 is a diagram for explaining the content of data output to the diagnosis unit.
[0100] like Figure 5 As shown, the diagnostic unit according to the present disclosure can check the sending history of CAN signals corresponding to the CAN that has not entered sleep mode and the list of controllers that have not entered sleep mode stored in the memory of the memory storage judge, and can track problematic controllers and the conditions under which the problem occurs to analyze the cause of the problem.
[0101] For example, Figure 5As shown, the vehicle state before key off, the operation signal after key off, and the contents of a list of controllers that have not entered sleep when a predetermined time has passed after key off may be output to the screen of the diagnosis unit.
[0102] Figure 6 and Figure 7 is a flowchart for explaining a CAN sleep diagnosis method according to an embodiment of the present disclosure.
[0103] like Figure 6 As shown, according to the present disclosure, a CAN signal may be detected from a CAN communicatively linked with a plurality of controllers ( S100 ).
[0104] Here, according to the present disclosure, CAN signals may be detected, and a monitoring table including a list of N CAN signals may be generated.
[0105] According to the present disclosure, it is possible to diagnose whether the CAN enters sleep ( S200 ).
[0106] Here, according to the present disclosure, when the active time of the CAN exceeds a first predetermined time after the vehicle power is switched from the on state to the off state, it can be diagnosed that the problem of the CAN not entering the sleep state occurs.
[0107] According to the present disclosure, depending on the situation, when the CAN is awakened after entering sleep or wakes up and sleeps repeatedly after the vehicle power is switched from an on state to an off state, it is also possible to diagnose the occurrence of a problem in which the CAN does not enter sleep at a point in time when the total active maintenance time of the CAN exceeds a second predetermined time when the value of the wake-up counter is equal to or greater than a specific value.
[0108] Then, according to the present disclosure, whether to store data corresponding to the CAN signal may be determined according to whether the CAN enters sleep mode, and the data may be stored ( S300 ).
[0109] Here, according to the present disclosure, the current value and timer measurement value of the initial CAN signal can be stored in the first memory, when the initial CAN signal changes, the current value and timer measurement value of the changed CAN signal can be stored in the first memory, and when the CAN is diagnosed as not entering sleep, the current value and timer measurement value of the CAN signal corresponding to the CAN diagnosed as not entering sleep and a list of controllers that have not entered sleep can be stored in the first memory, and all data stored in the first memory can be copied to the second memory.
[0110] Then, according to the present disclosure, data stored in the memory may be checked and a problem that the CAN does not enter sleep may be diagnosed ( S400 ).
[0111] Here, according to the present disclosure, the transmission history of CAN signals corresponding to the CANs that have not entered sleep and the list of controllers that have not entered sleep stored in the memory can be checked, and the problematic controllers and the conditions under which the problems occurred can be tracked to analyze the causes of the problems.
[0112] Figure 7 This is a flowchart for explaining a memory storage determination method of a memory storage determination device including a first memory and a second memory.
[0113] like Figure 7 As shown, the memory storage determiner may store data corresponding to an initial CAN signal from a CAN connected to a plurality of controllers in the first memory (S10).
[0114] Here, the memory storage determiner may perform an operation of storing data when the CAN controller is awakened from a sleep state or when the vehicle power is switched from an on state to an off state.
[0115] The memory storage determiner may check whether the initial CAN signal is changed ( S20 ).
[0116] Then, when the initial CAN signal is changed, the memory storage determiner may store data corresponding to the changed CAN signal in the first memory ( S20 ).
[0117] Then, when the diagnosis CAN does not enter the sleep state, the memory storage determiner may store data of the CAN signal corresponding to the CAN that does not enter the sleep state in the first memory ( S20 ).
[0118] The memory storage determiner may copy the data of the CAN signal corresponding to the CAN that has not entered the sleep state, stored in the first memory, to the second memory ( S30 ).
[0119] According to the present disclosure, a computer-readable recording medium having recorded thereon a program for executing a CAN sleep diagnostic method of a CAN sleep diagnostic apparatus for a vehicle can execute steps provided in the CAN sleep diagnostic method of the CAN sleep diagnostic apparatus for a vehicle.
[0120] According to an embodiment of the present disclosure, a vehicle may include: multiple controllers; and a CAN sleep diagnostic device, configured to diagnose the problem of CAN not entering sleep by monitoring CAN signals from CAN communicatively connected to the controllers, wherein the CAN sleep diagnostic device includes: a CAN signal detector, configured to detect CAN signals from CAN connected to multiple controllers; a CAN sleep diagnostic unit, configured to diagnose whether the CAN enters sleep; a memory storage judge, configured to judge whether to store data received from the CAN signal detector and the CAN sleep diagnostic unit and store the data in a memory based on whether the CAN enters sleep; and a diagnostic unit configured to check the data stored in the memory and diagnose the problem of CAN not entering sleep.
[0121] According to the CAN sleep diagnostic device and method of a vehicle configured as above and related to at least one embodiment of the present disclosure, the problem of not entering sleep is diagnosed by monitoring CAN signals and sending a list of controllers that have not entered sleep and the sending history of CAN signals at corresponding time points to the diagnostic device, so that the problem of CAN not entering sleep can be overcome in advance during the vehicle development stage.
[0122] That is, according to the present disclosure, during the vehicle development stage, it is possible to monitor whether the CAN has not entered sleep mode, and when a problem occurs, a list of controllers that have not entered sleep mode and the vehicle's operation history at the corresponding time point can be sent to the diagnostic device to diagnose the occurrence of the problem of the CAN not entering sleep mode and analyze the cause of the problem.
[0123] The present disclosure can propose a more advanced CAN network sleep condition, so that the problem of CAN not entering sleep can be comprehensively diagnosed under general vehicle usage conditions, thereby ensuring safety and stability, and at the same time realizing a pre-solution method of pre-diagnosing the problem of CAN not entering sleep and taking measures, rather than a post-solution method of taking measures after the problem occurs.
[0124] Therefore, according to the present disclosure, it is possible to check a list of controllers and a manipulation history of a vehicle at a time point when a CAN not going to sleep problem occurs, and to pre-diagnose the not going to sleep problem and analyze the cause of the problem in a vehicle development stage.
[0125] According to the present disclosure, in the future, considering that related problems will increasingly occur with the development of controller technology, the effects achieved by the present disclosure can be further enhanced.
[0126] Those skilled in the art will understand that the effects that can be achieved by the present disclosure are not limited to the above specific description, and other advantages of the present disclosure will be more clearly understood from the detailed description.
[0127] The present invention can also be implemented as computer-readable code in a computer-readable recording medium. A computer-readable recording medium is any type of storage device that can store any data that can be read by a computer system. Examples of computer-readable recording media include read-only memory (ROM), random access memory (RAM), CD-ROM, magnetic tape, floppy disk, and optical data storage device.
[0128] Therefore, the above exemplary embodiments are to be interpreted in all aspects as illustrative and not restrictive. The scope of the present invention should be determined by the appended claims and their legal equivalents, rather than by the above description, and all changes coming within the meaning and equivalency range of the appended claims are intended to be embraced therein.
Claims
1. A vehicle controller area network sleep diagnostic device, i.e., a vehicle CAN sleep diagnostic device, comprising: a CAN signal detector for detecting a CAN signal from a CAN connected to a plurality of controllers; CAN sleep diagnosis unit, diagnosing whether the CAN has entered sleep mode; a memory storage determiner for determining whether to store data received from the CAN signal detector and the CAN sleep diagnosis unit and storing the data in a memory according to whether the CAN enters the sleep state; as well as a diagnostic unit that checks the data stored in the memory and diagnoses a problem in which the CAN does not enter sleep mode, The CAN signal detector detects the CAN signal and generates a monitoring table including a list of N CAN signals. The CAN signal detector classifies the detected CAN signals into operation signals before parking, operation signals during parking, and operation signals after parking to generate a monitoring table.
2. The device according to claim 1, wherein In diagnosing whether the CAN enters the sleep state, the CAN sleep diagnosis unit diagnoses that the CAN enters the sleep state when the CAN enters the sleep state before the time the CAN remains active exceeds a predetermined time after vehicle power is turned off.
3. The device according to claim 1, wherein In diagnosing whether the CAN enters the sleep, the CAN sleep diagnosis unit diagnoses that a problem occurs in which the CAN does not enter the sleep when the CAN remains active after the time the CAN remains active exceeds a predetermined time after vehicle power is turned off.
4. The device according to claim 1, wherein In diagnosing whether the CAN enters the sleep state, when the vehicle power is turned off or the CAN controller is awakened and the vehicle power is turned off, the CAN sleep diagnosis unit drives a timer to accumulate and measure the total active holding time of the CAN until the vehicle power is switched from the off state to the on state, and resets the timer when the vehicle power is switched from the off state to the on state.
5. The apparatus according to claim 1, wherein In diagnosing whether the CAN enters the sleep state, the CAN sleep diagnosis unit diagnoses that a problem occurs in which the CAN does not enter the sleep state when an active time of the CAN exceeds a first predetermined time after a vehicle power source is switched from an on state to an off state.
6. The device according to claim 5, wherein The CAN sleep diagnosis unit sets a time exceeding a longest time among times taken for wireless updating through over-the-air (OTA) updating of all controllers installed in the vehicle as the first predetermined time.
7. The apparatus according to claim 5, wherein The CAN sleep diagnosis unit sets, as the first predetermined time, a time exceeding the longest time of a time taken to enter a sleep mode after a sleep condition of each controller installed in the vehicle is satisfied and a time during which the CAN remains active due to a function of a controller when the vehicle is parked.
8. The apparatus according to claim 1, wherein In diagnosing whether the CAN enters the sleep state, when a network management message value is active at a time point where the active time of the CAN exceeds a predetermined time after the vehicle power is switched from the on state to the off state, the CAN sleep diagnosis unit diagnoses that a problem of the CAN not entering the sleep state occurs.
9. The apparatus according to claim 1, wherein In diagnosing whether the CAN enters the sleep state, when the CAN enters the sleep state and is awakened or wake-up and sleep are repeatedly performed after the vehicle power is switched from the on state to the off state, the CAN sleep diagnosis unit diagnoses that a problem of the CAN not entering the sleep state occurs at a time point when the total active holding time of the CAN exceeds a second predetermined time when the value of the wake-up counter is equal to or greater than a specific value.
10. The apparatus according to claim 9, wherein The wakeup counter starts with an initial value of 0, increases by one when the CAN is woken up after sleep, and is initialized to 0 when the vehicle power source is switched from the off state to the on state.
11. The apparatus according to claim 1, wherein The memory storage determiner includes: a first memory for storing data received from the CAN signal detector and the CAN sleep diagnosis unit; A second memory storing data corresponding to the CANs diagnosed as not entering sleep mode; and A judger, when receiving first data from the CAN signal detector, stores the first data in the first memory, and when the CAN sleep diagnosis unit diagnoses that the CAN has not entered sleep, receives second data corresponding to the CAN diagnosed as not entering sleep and stores the second data in the first memory, and copies the first data and the second data stored in the first memory to the second memory.
12. The apparatus according to claim 11, wherein The first memory is a volatile memory, and the second memory is a non-volatile memory.
13. The apparatus according to claim 11, wherein the judger storing the current value of the initial CAN signal received from the CAN signal detector and the timer measurement value in the first memory, When the initial CAN signal changes, the judger stores the current value of the changed CAN signal and the timer measurement value in the first memory, and When the CAN sleep diagnosis unit diagnoses that the CAN has not entered sleep, the judge stores the current value and timer measurement value of the CAN signal corresponding to the CAN diagnosed as not entering sleep and the list of controllers that have not entered sleep in the first memory, and copies all data stored in the first memory to the second memory.
14. The apparatus according to claim 1, wherein The diagnosis unit checks the transmission history of CAN signals corresponding to the CAN that has not entered sleep and the list of controllers that have not entered sleep stored in the memory storage judge, and tracks problematic controllers and conditions under which the problem occurs to analyze the cause of the problem.
15. A controller area network sleep diagnosis method for a vehicle's controller area network sleep diagnosis device, that is, a CAN sleep diagnosis method for a vehicle's CAN sleep diagnosis device, the method comprising: detecting CAN signals from a CAN connected to the plurality of controllers, wherein the detecting the CAN signals from the CAN includes generating a monitoring table including a list of N CAN signals, the monitoring table being generated by classifying the detected CAN signals into operation signals before parking, operation signals during parking, and operation signals after parking; Diagnose whether the CAN enters sleep mode; determining whether to store data corresponding to the CAN signal according to whether the CAN enters the sleep state; When it is determined that the data corresponding to the CAN signal is to be stored, storing the data in a memory; checking the data stored in the memory; as well as A problem in which the CAN does not go to sleep is diagnosed based on the data stored in the memory.
16. The method according to claim 15, wherein Storing the data in a memory comprises: storing the current value of the initial CAN signal and the timer measurement value in a first memory; When the initial CAN signal changes, storing the current value of the changed CAN signal and the timer measurement value in the first memory; When the CAN is diagnosed as not entering the sleep state, storing the current value and the timer measurement value of the CAN signal corresponding to the CAN diagnosed as not entering the sleep state and the list of the controllers not entering the sleep state in the first memory; and All data stored in the first memory is copied to the second memory.
17. The method according to claim 15, further comprising: A transmission history of CAN signals corresponding to the CAN controllers that have not entered sleep and a list of controllers that have not entered sleep stored in the memory are checked, and problematic controllers and conditions under which the problems occur are tracked to analyze causes of the problems. 18 . A computer-readable recording medium having recorded therein a program for executing the method according to claim 15 .
19. A vehicle comprising: Multiple controllers; A controller area network, or CAN, is connected to the plurality of controllers; A CAN signal detector, configured to detect a CAN signal from the CAN; CAN sleep diagnosis unit, diagnosing whether the CAN has entered sleep mode; a memory storage determiner for determining whether to store data received from the CAN signal detector and the CAN sleep diagnosis unit and storing the data in a memory according to whether the CAN enters the sleep state; as well as a diagnostic unit that checks the data stored in the memory and diagnoses a problem in which the CAN does not enter sleep mode, The CAN signal detector detects the CAN signal and generates a monitoring table including a list of N CAN signals. The CAN signal detector classifies the detected CAN signals into operation signals before parking, operation signals during parking, and operation signals after parking to generate a monitoring table.
Citation Information
Patent Citations
Abnormality detection method and system having sleep mode check function
US20020012325A1
Vehicle diagnostic system
US20140350772A1