CN111462353B - Gateway-based method and system for recording information of whole vehicle - Google Patents
Gateway-based method and system for recording information of whole vehicle Download PDFInfo
- Publication number
- CN111462353B CN111462353B CN202010237094.XA CN202010237094A CN111462353B CN 111462353 B CN111462353 B CN 111462353B CN 202010237094 A CN202010237094 A CN 202010237094A CN 111462353 B CN111462353 B CN 111462353B
- Authority
- CN
- China
- Prior art keywords
- gateway
- key information
- information
- state
- whole vehicle
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 36
- 238000004519 manufacturing process Methods 0.000 claims abstract description 42
- 238000003860 storage Methods 0.000 claims description 82
- 238000012544 monitoring process Methods 0.000 claims description 20
- 238000005096 rolling process Methods 0.000 claims description 9
- 230000003993 interaction Effects 0.000 claims description 3
- 238000003745 diagnosis Methods 0.000 claims description 2
- 238000010586 diagram Methods 0.000 description 20
- 230000007958 sleep Effects 0.000 description 7
- 230000008859 change Effects 0.000 description 5
- 230000006870 function Effects 0.000 description 4
- 230000004048 modification Effects 0.000 description 3
- 238000012986 modification Methods 0.000 description 3
- 238000012360 testing method Methods 0.000 description 2
- 230000005540 biological transmission Effects 0.000 description 1
- 230000007423 decrease Effects 0.000 description 1
- 230000003247 decreasing effect Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 230000005059 dormancy Effects 0.000 description 1
- 238000012806 monitoring device Methods 0.000 description 1
- 238000005457 optimization Methods 0.000 description 1
- 230000008569 process Effects 0.000 description 1
- 230000000750 progressive effect Effects 0.000 description 1
- 230000000306 recurrent effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G07—CHECKING-DEVICES
- G07C—TIME OR ATTENDANCE REGISTERS; REGISTERING OR INDICATING THE WORKING OF MACHINES; GENERATING RANDOM NUMBERS; VOTING OR LOTTERY APPARATUS; ARRANGEMENTS, SYSTEMS OR APPARATUS FOR CHECKING NOT PROVIDED FOR ELSEWHERE
- G07C5/00—Registering or indicating the working of vehicles
- G07C5/08—Registering or indicating performance data other than driving, working, idle, or waiting time, with or without registering driving, working, idle or waiting time
- G07C5/0841—Registering performance data
-
- G—PHYSICS
- G07—CHECKING-DEVICES
- G07C—TIME OR ATTENDANCE REGISTERS; REGISTERING OR INDICATING THE WORKING OF MACHINES; GENERATING RANDOM NUMBERS; VOTING OR LOTTERY APPARATUS; ARRANGEMENTS, SYSTEMS OR APPARATUS FOR CHECKING NOT PROVIDED FOR ELSEWHERE
- G07C5/00—Registering or indicating the working of vehicles
- G07C5/08—Registering or indicating performance data other than driving, working, idle, or waiting time, with or without registering driving, working, idle or waiting time
- G07C5/0808—Diagnosing performance data
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/66—Arrangements for connecting between networks having differing types of switching systems, e.g. gateways
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/12—Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Health & Medical Sciences (AREA)
- Computing Systems (AREA)
- General Health & Medical Sciences (AREA)
- Medical Informatics (AREA)
- Small-Scale Networks (AREA)
Abstract
The invention discloses a method and a system for recording vehicle information based on a gateway, which are applied to a vehicle network; the method comprises the following steps: when the gateway normally works, key information is acquired through the gateway, wherein the key information comprises: voltage information of a power supply, state information of an ignition signal, production information of a controller and error frame information of a network segment; collecting a timestamp when the gateway acquires the key information; the key information is stored along with the corresponding time stamp. According to the invention, the key information of the whole vehicle and the corresponding timestamp can be recorded through the gateway, so that when the whole vehicle breaks down, the problem of the fault can be timely solved according to the accurately recorded key information of the whole vehicle and the corresponding timestamp.
Description
Technical Field
The invention relates to the technical field of automobile electronics, in particular to a method and a system for recording whole automobile information based on a gateway.
Background
At present, with increasingly complex vehicle networks, more and more controllers are used, and faults of the whole vehicle are increasingly complex, so that under the industrial situation of rapid vehicle type iteration, the problem that faults of the whole vehicle can be rapidly solved is an important guarantee for guaranteeing normal mass production of the vehicle or quality optimization of the vehicle. The first step of solving the fault is to stably reproduce the fault, and then analyze the fault reason according to the reproduction situation, so as to solve, verify and close the fault problem.
According to the classification of occurrence frequency, the faults of the whole vehicle can be divided into two types of 100% recurrent faults and accidental faults. For 100% recurring faults, all key information (basic information for solving the faults, such as voltage state, KL15 electric state, controller production information, whether each network segment has an error frame, a timestamp and the like) under the fault condition can be easily acquired, and the quick analysis and solution of fault reasons are facilitated; for accidental faults, under the condition that the accidental frequency is extremely low (for example, the accidental frequency occurs once every few days), the state of acquiring various key information by a field environment cannot be easily damaged for keeping a fault field when the fault occurs, and further the problems cannot be analyzed, solved and closed in time.
At present, most of the key information of the accidental fault is fed back to a fault solving team in a dictation mode by a corresponding test engineer or a vehicle owner by memorizing the situation, the operation sequence and the like when the fault occurs. By means of memory, the possibility of error recording, operation sequence reversal and inaccurate recording exists when the fault situation, operation sequence and the like are recalled occasionally; key information of the fault is transmitted in a dictation mode, so that the key information transmission error caused by the reasons of misstatement or understanding and the like can occur, and a fault solution idea can be misled; by means of memory and dictation, the content of key information which can be provided is less, and the change situation of the key information under the condition of failure, such as the state of KL15, can not be reflected; some key information cannot be observed by naked eyes, such as a bus error frame, and the like, and a test engineer or a vehicle owner cannot feed back the key information. The wrong feedback of the key information cannot effectively help to solve the problem, but can cause misleading of the idea of solving the problem and prolong the period of solving the problem; the feedback of the key information is less, the change of the key information under the fault condition can not be effectively reflected, and the quick solution of the fault is not enough supported.
Therefore, how to accurately record the information of the whole vehicle is an urgent problem to be solved.
Disclosure of Invention
In view of this, the invention provides a gateway-based method for recording information of a whole vehicle, which can accurately record key information of the whole vehicle through a gateway in a whole vehicle network.
The invention provides a gateway-based method for recording vehicle information, which is applied to a vehicle network; the method comprises the following steps:
when the gateway normally works, key information is acquired through the gateway, wherein the key information comprises: voltage information of a power supply, state information of an ignition signal, production information of a controller and error frame information of a network segment;
collecting a timestamp when the gateway acquires the key information;
storing the key information and the corresponding timestamp.
Preferably, the storing the key information and the corresponding timestamp includes:
and storing the key information and the corresponding time stamp in a rolling storage mode based on the storage times of the key information.
Preferably, the method further comprises:
and setting the storage times of the key information.
Preferably, when the gateway normally works, the obtaining of the key information by the gateway includes:
monitoring the voltage value of a power supply when the gateway normally works, and acquiring the monitored voltage value of the power supply when the difference value between the monitored voltage value of the power supply and the stored voltage value is greater than or equal to a preset voltage difference value;
monitoring the state of an ignition signal when the gateway normally works, and acquiring the state information of the ignition signal when the state of the ignition signal changes;
switching the gateway from a dormant state to an awakening state, and acquiring production information of each controller in the whole vehicle network after initialization is completed;
and after the gateway is switched from the dormant state to the awakening state, monitoring whether each network segment of the whole vehicle network has an error frame or not in a dormant awakening period, and setting an error frame flag bit of the network segment when the network segment has the error frame for the first time.
Preferably, the preset difference of the voltages is 0.5V.
A gateway-based system for recording information of a whole vehicle is applied to a whole vehicle network, and comprises: gateway and intelligent terminal controller, the gateway includes: a power-down non-volatile memory; wherein:
the gateway is configured to acquire key information during normal operation, where the key information includes: voltage information of a power supply, state information of an ignition signal, production information of a controller and error frame information of a network segment;
the intelligent terminal controller is used for acquiring a timestamp when the gateway acquires the key information;
and the power-down nonvolatile memory is used for storing the key information and the corresponding time stamp.
Preferably, the power-down nonvolatile memory is specifically configured to:
and storing the key information and the corresponding time stamp in a rolling storage mode based on the storage times of the key information.
Preferably, the system further comprises:
and the diagnosis equipment is used for setting the storage times of the key information.
Preferably, the gateway is specifically configured to:
monitoring the voltage value of a power supply when the gateway normally works, and acquiring the monitored voltage value of the power supply when the difference value between the monitored voltage value of the power supply and the stored voltage value is greater than or equal to a preset voltage difference value;
monitoring the state of an ignition signal when the gateway normally works, and acquiring the state information of the ignition signal when the state of the ignition signal changes;
switching the gateway from a dormant state to an awakening state, and acquiring production information of each controller in the whole vehicle network after initialization is completed;
and after the gateway is switched from the dormant state to the awakening state, monitoring whether each network segment of the whole vehicle network has an error frame or not in a dormant awakening period, and setting an error frame flag bit of the network segment when the network segment has the error frame for the first time.
Preferably, the preset difference of the voltages is 0.5V.
In summary, the present invention discloses a method for recording information of a finished automobile based on a gateway, when information of the finished automobile needs to be recorded, firstly, when the gateway normally works, key information is obtained through the gateway, wherein the key information includes: voltage information of a power supply, state information of an ignition signal, production information of a controller and error frame information of a network segment; meanwhile, a timestamp of the key information acquired by the gateway is acquired, and then the key information and the corresponding timestamp are stored. According to the invention, the key information of the whole vehicle and the corresponding timestamp can be recorded through the gateway, so that when the whole vehicle breaks down, the problem of the fault can be timely solved according to the accurately recorded key information of the whole vehicle and the corresponding timestamp.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a flowchart of a method of recording information of a vehicle based on a gateway according to embodiment 1 of the present invention;
fig. 2 is a flowchart of a method of recording information of a vehicle based on a gateway in embodiment 2 of the present invention;
FIG. 3 is a schematic diagram illustrating the writing and reading of key information storage times according to the present disclosure;
FIG. 4 is a schematic diagram of a timestamp storage length and format according to the present disclosure;
FIG. 5 is a schematic diagram of a voltage value storage length and format of a power supply according to the present disclosure;
FIG. 6 is a schematic diagram of the state storage length and format of an ignition signal according to the present disclosure;
FIG. 7 is a schematic diagram of a length and format of a production information storage according to the present disclosure;
FIG. 8 is a schematic diagram of an error frame storage length and format according to the present disclosure;
FIG. 9 is a schematic diagram of the number of times and addresses of the key information scroll storage according to the present invention;
FIG. 10 is a schematic diagram of a vehicle network architecture according to the present disclosure;
FIG. 11 is a schematic diagram of a key information storage system according to the present disclosure;
FIG. 12 is a schematic diagram illustrating voltage variation of a power supply according to the present disclosure;
FIG. 13 is a schematic diagram illustrating voltage value storage of a power supply according to the present disclosure;
FIG. 14 is a schematic diagram of an electrical switching recording of KL15 according to the present invention;
FIG. 15 is a schematic view of a production information record according to the present disclosure;
FIG. 16 is a schematic diagram of a storage record of error frames occurring in each network segment according to the present invention;
FIG. 17 is a schematic illustration of the modification of N1 from 5 in FIG. 13 to 2 according to the present disclosure;
FIG. 18 is a schematic illustration of the modification of N1 from FIG. 13 to FIG. 7 according to the present disclosure;
fig. 19 is a schematic structural diagram of an embodiment 1 of a gateway-based system for recording information of a whole vehicle according to the present invention;
fig. 20 is a schematic structural diagram of a system embodiment 2 for recording information of a whole vehicle based on a gateway, which is disclosed by the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
As shown in fig. 1, which is a flowchart of a method of embodiment 1 of a gateway-based method for recording information of a finished automobile, the method is applied to a finished automobile network, and the method may include the following steps:
s101, when the gateway works normally, key information is obtained through the gateway, wherein the key information comprises: voltage information of a power supply, state information of an ignition signal, production information of a controller and error frame information of a network segment;
when information of the whole vehicle needs to be recorded, a gateway in the whole vehicle network can be connected with controllers of all network segments of the whole vehicle network, information interaction can be carried out between the gateway and the controllers, and when the gateway is in a normal working state, key information of the whole vehicle can be obtained through the gateway. Wherein, the key information of the whole vehicle can include: voltage information of the power supply, status information of the ignition signal (KL15), production information of the controller, and error frame information of the network segment.
It should be noted that the fact that the gateway is in the normal operating state means that the operating voltage of the gateway is in the normal operating voltage range, and when the gateway is in the sleep state or the operating voltage of the gateway exceeds the normal operating voltage range of the gateway, the gateway does not acquire the key information of the entire vehicle any more.
S102, collecting a timestamp when the gateway acquires the key information;
and acquiring a timestamp when the gateway acquires the key information while the gateway acquires the key information. For example, the gateway acquires the voltage information of the power supply at time 23 and 47 minutes, and the timestamp of the acquired voltage information of the power supply at this time is 23 and 47 minutes.
And S103, storing the key information and the corresponding time stamp.
And after the key information is acquired and the time stamp of the acquired key information is acquired at the same time, storing the acquired key information and the corresponding time stamp. Through storing key information of storage and corresponding time stamp, be convenient for when whole car breaks down, can in time solve the trouble problem according to the whole car key information of accurate record and corresponding time stamp.
In summary, in the above embodiment, when information of a whole vehicle needs to be recorded, first, when a gateway normally works, key information is obtained through the gateway, where the key information includes: voltage information of a power supply, state information of an ignition signal, production information of a controller and error frame information of a network segment; meanwhile, a timestamp of the key information acquired by the gateway is acquired, and then the key information and the corresponding timestamp are stored. According to the invention, the key information of the whole vehicle and the corresponding timestamp can be recorded through the gateway, so that when the whole vehicle breaks down, the problem of the fault can be timely solved according to the accurately recorded key information of the whole vehicle and the corresponding timestamp.
As shown in fig. 2, which is a flowchart of a method of embodiment 2 of a gateway-based method for recording information of a finished automobile, the method is applied to a finished automobile network, and the method may include the following steps:
s201, setting storage times of key information;
when the information of the whole vehicle needs to be recorded, the storage times Nx of the key information can be flexibly set according to the actual recording requirement in order to reflect the change history of the key information. Wherein N1 may represent the number of times the voltage value of the power supply is stored; n2 may represent the number of times the status information of the ignition signal is stored; n3 may indicate the number of times production information of each controller is stored; n4 may indicate the number of times the erroneous frame occurred on the respective network segment of the gateway. In an actual application process, the storage rule of the key information can be divided into a default setting mode and a specific setting mode. The default setting refers to a storage mode executed by the gateway when the storage setting is not modified, and the storage times Nx of each piece of key information in the mode can be equal to 5; the specific setting is that the diagnostic equipment reads and writes the storage times Nx outside the vehicle, so that the purposes of closing or opening the storage function and increasing or reducing the storage times of one or more items of key information are achieved, and a fault solving team can focus on recording one or more fault information according to actual needs;
as shown in fig. 3, the specific setting write and read operations are implemented by UDS (Unified diagnostic Services), using a data identifier of 0x 0001; the write operation uses diagnostic service 0x 2E; the read operation uses diagnostic service 0x 22; the data format definition of the specific setup write and read operations is as shown in fig. 3, where the key information item X represents the number of storing key information, and ranges from 0X00 to 0xFF, and 0X01 represents the voltage value of the power supply; 0x02 represents the state of the ignition signal; 0x03 denotes production information; 0x04 indicates whether each network segment has an error frame; the number of times Nx represents the number of times the key information item is stored, and ranges from 0x00 to 0XFF, with N1 representing the number of times the voltage value of the power supply is stored; n2 represents the number of times the status information of the ignition signal is stored; n3 represents the number of times of storage of the production information; n4 indicates the number of times the frame was stored in error for each segment. In a specific setting, setting the number of times Nx of storage to 0x0 indicates that the key information storage function is turned off, i.e., the key information is no longer stored.
S202, when the gateway normally works, monitoring the voltage value of the power supply, and when the difference value between the monitored voltage value of the power supply and the stored voltage value is larger than or equal to a preset voltage difference value, acquiring the monitored voltage value of the power supply;
s203, monitoring the state of the ignition signal when the gateway works normally, and acquiring the state information of the ignition signal when the state of the ignition signal changes;
s204, when the gateway is switched from the dormant state to the awakening state, and after initialization is completed, acquiring production information of each controller in the whole vehicle network;
s205, after the gateway is switched from the sleep state to the awakening state, monitoring whether error frames appear in each network segment of the whole vehicle network in a sleep awakening period, and setting an error frame flag bit of the network segment when the error frames appear in the network segment for the first time;
s206, respectively acquiring a voltage value of a power supply, state information of an ignition signal, production information of a controller and a timestamp of a network segment when a wrong frame flag bit is acquired by a gateway;
and S207, storing the key information and the corresponding time stamp in a rolling storage mode based on the storage times of the key information.
The gateway collects time through the intelligent terminal controller and is used for recording the timestamp when key information is stored. The timestamp is stored together with the key information by taking the latest time acquired during storage as the standard;
for example, as shown in fig. 4, when the power is turned on for the first time, the gateway stores a default value 00:00 of a timestamp, which is used for recording the timestamp when the time is not acquired and some key information needs to be recorded; storing the record storage time by using a 16-bit storage space, wherein the first 8 bits represent hours and are in the range of 0x00-0x24, the second 8 bits represent minutes and are in the range of 0x00-0x60, for example, 0x2347 represents that the time stamp is 23 hours and 47 minutes;
when the gateway is in a normal working state, the gateway monitors the voltage value of the power supply by polling the power supply module of the gateway, and when the difference value between the monitored voltage value of the power supply and the stored voltage value is larger than the preset voltage difference value, the monitored voltage value of the power supply is obtained. For example, when the difference Δ V between the monitored voltage value of the power supply and the stored voltage value is greater than or equal to 0.50V, the storage of the voltage value of the power supply and the corresponding time stamp storage are performed.
For example, as shown in fig. 5, at the first power-on, the gateway stores the storage voltage value with a default value of 12.00V, stores the voltage value of the power supply through a 16-bit storage space, stores the twelve-bit integer part of the voltage value of the first 8-bit storage power supply in the range of 0x00-0x99, and stores the two-bit fractional part of the voltage value of the last 8-bit storage power supply in the range of 0x00-0x99, for example, when the monitored voltage value of the power supply is 12.90V, the difference Δ V between the monitored voltage value of the power supply and the storage voltage value is greater than or equal to 0.50V, and stores 0x 1290.
When the gateway is in a normal working state, the gateway monitors the state of the ignition signal to be ON or OFF through polling, and when the state changes every time, the state of the ignition signal is stored and the corresponding timestamp is stored.
For example, as shown in fig. 6, at the first power-ON, the default value of the state of the ignition signal stored by the gateway is ON, the state of the ignition signal is stored by using a 1-bit storage space, the range is Ob0-0b1, 0b0 indicates that the state of the ignition signal is OFF, and 0b1 indicates that the state of the ignition signal is ON.
And after the gateway is switched from the dormant state to the awakening state every time and initialization is completed, acquiring the production information of each controller, including part numbers, software version numbers and hardware version numbers, and if the read production information of one or more controllers is not consistent with the stored corresponding information, storing the corresponding production information and the corresponding timestamps. In the prior art, no controller stores the production information of all controllers, and the production information of each controller is stored and read by a diagnostic device or a CANoe monitoring device. Only the current production information of the controller is read, and the historical production information of the controller is not recorded.
For example, as shown in fig. 7, when the power is first turned on, the default value of the production information of the controller stored in the gateway is 0, and the size of the storage space is related to factors such as the length and format of the production information, and needs to be determined according to actual conditions; as shown in fig. 7, the entire vehicle has M controllers, and each controller uses 48 bits for storage, wherein the first 32 bits store part numbers, the middle 8 bits store software version numbers, and the last 8 bits store hardware version numbers.
After the gateway is switched from a dormant state to an awakening state every time, the gateway polls and monitors whether error frames occur in each network segment, and when an error frame occurs in a certain network segment for the first time, corresponding error frame flag bits and corresponding timestamps are stored; in a dormancy awakening period, after a certain network segment has an error frame, the monitoring is not continued;
for example, as shown in fig. 8, when the network is powered on for the first time, the default value of the flag bit of the error frame stored by the gateway is 0x00, and the 8-bit storage space is used to store whether the error frame occurs in each network segment, where the range is 0x01-0x99, 0x01 indicates that the error frame occurs in the 1 st network segment, 0x02 indicates that the error frame occurs in the 2 nd network segment, and so on; e.g., segment 2, has an error frame, 0x02 and its corresponding timestamp are stored.
In order to save the storage space of the gateway power-down nonvolatile memory, when storing the key information and the corresponding timestamp, the key information and the corresponding timestamp can be stored by adopting a rolling storage method based on the storage times of the key information. As shown in fig. 9, after each key information is stored Nx times, the Nx +1, 2Nx +1, 3Nx +1 … … times of storage cover the 1 st time, the Nx +2, 2Nx +2, 3Nx +2 … … times of storage cover the 2 nd time, and so on.
In conclusion, the method and the device can accurately provide key information and effectively correct the thought and direction of failure solution; key information can be provided more comprehensively, and strongly related key information can be found better; the change condition of the key information can be reflected by adopting a rolling storage mode, and the change condition of the key information before and after the fault occurs can be provided; the storage of one or more key information can be closed, opened, the rolling times are increased or decreased, and the like, so that the strong related key information can be focused, the storage function of the irrelevant key information is closed, and a more detailed analysis basis is provided for fault resolution; the storage space of the power-down nonvolatile memory can be more fully utilized, only a partial storage area is used under general conditions, the whole life cycle of other storage areas cannot be used, and the partial storage space can be fully utilized to solve the problem of faults.
In order to more clearly explain the technical scheme provided by the invention, the following description is given by using a specific application example:
as shown in fig. 10, which is a schematic diagram of a vehicle network architecture disclosed in the embodiment of the present invention, the gateway has 3 buses in total. The gateway bus 1 can be externally connected with an external diagnostic instrument and can be used for an engineer to write and read key information storage times to the gateway through the diagnostic instrument; the gateway is directly connected with the intelligent terminal controller through a bus 2, and the time is acquired through the related message of the intelligent terminal controller and is used for storing time stamps of various key information; the gateway can be directly connected with each controller through the bus 2 and the bus 3, so that the gateway can read the production information of each controller conveniently.
As shown in fig. 11, which is an example of a key information storage system, the system includes a power-down nonvolatile memory for storing information collected by each collection module, and for reading specific settings of storage rules and storage contents by a diagnostic apparatus; the acquisition module 1 is used for acquiring real-time by a vehicle-mounted intelligent terminal controller and storing the real-time in a power-down nonvolatile memory if necessary; the acquisition module 2 is used for acquiring the state of the ignition switch and storing the state in the power-down nonvolatile memory when necessary; the acquisition module 3 is used for acquiring the voltage value of the power supply and storing the voltage value in the power-down nonvolatile memory when necessary; the acquisition module 4 is used for acquiring the error frame condition of each channel and storing the error frame condition in the power-down nonvolatile memory when necessary; the acquisition module 5 is used for acquiring the production information of each controller and storing the production information and the production information of the gateway into the power-down nonvolatile memory when necessary.
The power supply voltage of the whole vehicle power supply is 12.00V, the normal working voltage range of the gateway is 6.00V-18.00V, and when the gateway is in a dormant state or the voltage is higher than 18.00V or lower than 6.00V, the gateway does not monitor, record or store key information.
Gateway 11 a.m.: 03 is powered on for the first time, the stored default voltage is 12.00V, 11: 04 monitoring that the voltage value of the power supply is 14.51V, and the difference value between the voltage value of the power supply and the stored voltage value is more than or equal to 0.5V, so that the voltage value of the power supply is recorded; the voltage of the power supply gradually decreases to 11.51V by 1:08 in the next day, the voltage value of the power supply is stored as shown in FIG. 12, and the storage content is shown in FIG. 13.
As shown in fig. 14, the gateway is awakened by the message for the first time at 10:37, and the KL15 default storage state is 0b 1; in the following 10:37 detects KL15 as electrically OFF, stores KL15 state as 0b0 again; OFF is switched ON at 10:38, recording KL15 status; at 12:51, switching the ON gear to the OFF gear, and recording the KL15 state; at 20:40 night, the KL15 is switched from OFF to ON, and the KL15 state is recorded; at 21: at 10, the ON is switched to the OFF again, and the KL15 state is recorded.
As shown in fig. 15, when the gateway is powered on for the first time at 18:07, the default storage content of the production information is 0; after the initialization of the 08 gateway is finished, reading the production information of each controller, recording the read production information when the production information is inconsistent with the default storage content; and after awakening near 19:31, reading that the production information is changed, and storing the production information again.
As shown in fig. 16, at 09: 09, the gateway finds an error frame on the bus 2; error frames are found on bus 3 at 10: 38; after wake-up from sleep, at 13: 32, an error frame occurs on the bus 3, at 15: 56, an error frame appears on the bus 2, and in 19:43 minutes, an error frame appears on the bus 1; after sleep wake-up again, an error frame appears on the bus 2.
In order to save the storage space of the gateway power-down nonvolatile memory, the storage times of the key information can be flexibly set according to actual requirements when the key information and the corresponding timestamp are stored. For example, the number of times N1 of storing the voltage value of the power supply is changed from 5 to 0 by 0x2E service, that is, the recording function of the voltage value of the power supply can be turned off, so that more storage space is saved for other key items; for example, the key information storage space can be reduced by modifying the storage number N1 of the voltage value of the power supply from 5 to 2, and the storage diagram of the voltage value of the power supply will be changed from fig. 13 to fig. 17; for example, if the number of times N1 of storing the voltage value of the power supply is changed from 5 to 7, more history records of the voltage value of the power supply can be stored, and further the influence of the power supply on the fault can be focused, the storage diagram of the voltage value of the power supply will be changed from fig. 13 to fig. 18.
As shown in fig. 19, which is a schematic structural diagram of an embodiment 1 of a gateway-based system for recording information of a finished automobile, the system is applied to a finished automobile network, and the system may include: gateway and intelligent terminal controller, the gateway includes: a power-down non-volatile memory; wherein:
the gateway is used for acquiring key information through the gateway when the gateway normally works, wherein the key information comprises: voltage information of a power supply, state information of an ignition signal, production information of a controller and error frame information of a network segment;
the intelligent terminal controller is used for acquiring a timestamp when the gateway acquires the key information;
and the power-down nonvolatile memory is used for storing the key information and the corresponding time stamp.
In summary, the working principle of the gateway-based system for recording information of a whole vehicle disclosed in this embodiment is the same as that of the gateway-based method for recording information of a whole vehicle in embodiment 1, and is not described herein again.
As shown in fig. 20, which is a schematic structural diagram of an embodiment 2 of a gateway-based system for recording information of a finished automobile, the system is applied to a finished automobile network, and the system may include: gateway, intelligent terminal controller and diagnostic equipment, the gateway includes: a power-down non-volatile memory; wherein:
the diagnostic equipment is used for setting the storage times of the key information;
the gateway is used for monitoring the voltage value of the power supply during normal work, and acquiring the monitored voltage value of the power supply when the difference value between the monitored voltage value of the power supply and the stored voltage value is greater than or equal to a preset voltage difference value;
the gateway is used for monitoring the state of the ignition signal during normal work and acquiring the state information of the ignition signal when the state of the ignition signal changes;
the gateway is used for switching from a dormant state to an awakening state and acquiring the production information of each controller in the whole vehicle network after initialization is completed;
the gateway is used for monitoring whether each network segment of the whole vehicle network has error frames or not in a sleep awakening period after the sleep state is switched to the awakening state, and setting an error frame flag bit of the network segment when the network segment has the error frames for the first time;
the intelligent terminal controller is used for respectively acquiring a voltage value of a power supply, state information of an ignition signal, production information of the controller and a timestamp when a network segment error frame flag bit is acquired by the gateway;
and the power-down nonvolatile memory is used for storing the key information and the corresponding time stamp in a rolling storage mode based on the storage times of the key information.
In summary, the working principle of the gateway-based system for recording information of a whole vehicle disclosed in this embodiment is the same as that of the gateway-based method for recording information of a whole vehicle in embodiment 2, and is not described herein again.
The embodiments in the present description are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other. The device disclosed by the embodiment corresponds to the method disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the method part for description.
Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative components and steps have been described above generally in terms of their functionality in order to clearly illustrate this interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. A software module may reside in Random Access Memory (RAM), memory, Read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
Claims (10)
1. A method for recording information of a whole vehicle based on a gateway is characterized in that the method is applied to a whole vehicle network; the method comprises the following steps:
when a gateway in a finished automobile network normally works, key information is always acquired through the gateway, wherein the key information comprises: the gateway is connected with the controllers of all network segments of the whole vehicle network and carries out information interaction with all the controllers;
acquiring a timestamp when the key information is acquired by the gateway at the same time when the key information is acquired by the gateway, so that the acquisition time of each item of information included in the key information is the same as the timestamp corresponding to each item of information;
and after the key information is acquired and the time stamp of the key information is acquired at the same time, storing the key information and the corresponding time stamp.
2. The method of claim 1, wherein the storing the key information and the corresponding timestamp comprises:
and storing the key information and the corresponding time stamp in a rolling storage mode based on the storage times of the key information.
3. The method of claim 2, further comprising:
and setting the storage times of the key information.
4. The method of claim 1, wherein when the gateway in the entire vehicle network normally works, the gateway always acquires key information, and the method comprises the following steps:
monitoring the voltage value of a power supply when the gateway normally works, and acquiring the monitored voltage value of the power supply when the difference value between the monitored voltage value of the power supply and the stored voltage value is greater than or equal to a preset voltage difference value;
monitoring the state of an ignition signal when the gateway normally works, and acquiring the state information of the ignition signal when the state of the ignition signal changes;
switching the gateway from a dormant state to an awakening state, and acquiring production information of each controller in the whole vehicle network after initialization is completed;
and after the gateway is switched from the dormant state to the awakening state, monitoring whether each network segment of the whole vehicle network has an error frame or not in a dormant awakening period, and setting an error frame flag bit of the network segment when the network segment has the error frame for the first time.
5. The method of claim 4, wherein the preset difference in voltage is 0.5V.
6. The utility model provides a system for whole car information of record based on gateway which characterized in that is applied to whole car network, the system includes: gateway and intelligent terminal controller, the gateway includes: a power-down non-volatile memory; wherein:
the gateway is configured to always obtain key information when the gateway normally works, where the key information includes: the gateway is connected with the controllers of all network segments of the whole vehicle network and carries out information interaction with all the controllers;
the intelligent terminal controller is used for acquiring a timestamp when the key information is acquired by the gateway at the same time when the key information is acquired by the gateway, so that the acquisition time of each item of information included in the key information is the same as the timestamp corresponding to each item of information;
and the power-down nonvolatile memory is used for storing the key information and the corresponding time stamp after acquiring the key information and acquiring the time stamp when the key information is acquired at the same time.
7. The system of claim 6, wherein the power-down nonvolatile memory is specifically configured to:
and storing the key information and the corresponding time stamp in a rolling storage mode based on the storage times of the key information.
8. The system of claim 7, further comprising:
and the diagnosis equipment is used for setting the storage times of the key information.
9. The system of claim 6, wherein the gateway is specifically configured to:
monitoring the voltage value of a power supply when the gateway normally works, and acquiring the monitored voltage value of the power supply when the difference value between the monitored voltage value of the power supply and the stored voltage value is greater than or equal to a preset voltage difference value;
monitoring the state of an ignition signal when the gateway normally works, and acquiring the state information of the ignition signal when the state of the ignition signal changes;
switching the gateway from a dormant state to an awakening state, and acquiring production information of each controller in the whole vehicle network after initialization is completed;
and after the gateway is switched from the dormant state to the awakening state, monitoring whether each network segment of the whole vehicle network has an error frame or not in a dormant awakening period, and setting an error frame flag bit of the network segment when the network segment has the error frame for the first time.
10. The system of claim 9, wherein the preset difference in voltage is 0.5V.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010237094.XA CN111462353B (en) | 2020-03-30 | 2020-03-30 | Gateway-based method and system for recording information of whole vehicle |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010237094.XA CN111462353B (en) | 2020-03-30 | 2020-03-30 | Gateway-based method and system for recording information of whole vehicle |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111462353A CN111462353A (en) | 2020-07-28 |
CN111462353B true CN111462353B (en) | 2022-03-01 |
Family
ID=71685024
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010237094.XA Active CN111462353B (en) | 2020-03-30 | 2020-03-30 | Gateway-based method and system for recording information of whole vehicle |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111462353B (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP7322843B2 (en) * | 2020-09-23 | 2023-08-08 | 株式会社デンソー | In-vehicle repeater |
CN112363750A (en) * | 2020-11-09 | 2021-02-12 | 武汉联特科技股份有限公司 | Optical module firmware version information recording method and equipment |
CN112445201B (en) * | 2020-11-19 | 2022-06-10 | 东风汽车集团有限公司 | Remote troubleshooting and fault positioning method and device |
WO2023084624A1 (en) * | 2021-11-10 | 2023-05-19 | 三菱電機株式会社 | In-vehicle control device |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2002243591A (en) * | 2001-02-22 | 2002-08-28 | Mitsubishi Electric Corp | Failure diagnostic device for use in vehicle |
CN106569486A (en) * | 2016-11-15 | 2017-04-19 | 华晨汽车集团控股有限公司 | Fault warning evaluation system based on motor vehicle CAN network |
CN108733029A (en) * | 2018-05-31 | 2018-11-02 | 浙江吉利控股集团有限公司 | A kind of vehicle remote diagnosis system and method |
CN110488799A (en) * | 2019-09-11 | 2019-11-22 | 重庆长安汽车股份有限公司 | A kind of automotive networking suspend mode diagnostic system and method |
Family Cites Families (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP4720770B2 (en) * | 2007-04-02 | 2011-07-13 | トヨタ自動車株式会社 | Information recording system for vehicles |
KR101288610B1 (en) * | 2008-07-24 | 2013-07-22 | 주식회사 만도 | Gateway eletronic control apparatus for a vehicle and travel information recording method thereof |
CN103106705A (en) * | 2013-01-23 | 2013-05-15 | 深圳市华宝电子科技有限公司 | Driving recorder and driving recording method thereof |
CN103440218A (en) * | 2013-08-15 | 2013-12-11 | 上海固泰科技有限公司 | CAN (Control Area Network) bus monitoring method based on USB-HID (Universal Serial Bus-Human Input Device) protocol |
CN103475523B (en) * | 2013-09-10 | 2016-04-27 | 浙江大学 | With the CAN analytical system of bus error analytical capabilities |
WO2015040764A1 (en) * | 2013-12-11 | 2015-03-26 | 株式会社小松製作所 | Work machine, management system and management method |
CN104914849A (en) * | 2015-05-12 | 2015-09-16 | 安徽江淮汽车股份有限公司 | Fault recording device and method |
CN107659465B (en) * | 2017-09-13 | 2020-06-23 | 北京新能源汽车股份有限公司 | Device and method for checking error frames of CAN (controller area network) bus of whole vehicle |
CN107948285A (en) * | 2017-11-24 | 2018-04-20 | 北京新能源汽车股份有限公司 | Electric vehicle controller control method, device and system and gateway controller |
-
2020
- 2020-03-30 CN CN202010237094.XA patent/CN111462353B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2002243591A (en) * | 2001-02-22 | 2002-08-28 | Mitsubishi Electric Corp | Failure diagnostic device for use in vehicle |
CN106569486A (en) * | 2016-11-15 | 2017-04-19 | 华晨汽车集团控股有限公司 | Fault warning evaluation system based on motor vehicle CAN network |
CN108733029A (en) * | 2018-05-31 | 2018-11-02 | 浙江吉利控股集团有限公司 | A kind of vehicle remote diagnosis system and method |
CN110488799A (en) * | 2019-09-11 | 2019-11-22 | 重庆长安汽车股份有限公司 | A kind of automotive networking suspend mode diagnostic system and method |
Non-Patent Citations (1)
Title |
---|
基于独立网关的汽车网络总线系统设计;周红英,陶龙龙;《汽车实用技术》;20150430;1-3 * |
Also Published As
Publication number | Publication date |
---|---|
CN111462353A (en) | 2020-07-28 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111462353B (en) | Gateway-based method and system for recording information of whole vehicle | |
EP3584658B1 (en) | Method, system, device, and computer readable storage medium for diagnosing vehicle | |
JP4720770B2 (en) | Information recording system for vehicles | |
JP2006331976A (en) | Manufacturing and managing method of secondary battery | |
CN103718122B (en) | The method of operating of field instrumentation and field instrumentation | |
CN106324385A (en) | Test system and method of battery management system | |
CN104535471A (en) | Method and device for detecting state of filter screen of air purification equipment | |
CN112763920A (en) | Storage battery monitoring method and device and computer storage medium | |
CN103559115A (en) | SSD intelligent monitoring system based on SMART | |
CN111091261A (en) | Method for managing full life cycle of lithium battery | |
CN110568253B (en) | Voltage monitoring system and method based on FPGA | |
CN109466473B (en) | Vehicle machine fault detection method and device | |
CN112285478B (en) | Method and device for detecting vehicle static current, medium, equipment and vehicle | |
CN103295275A (en) | Method and device for recording work parameters | |
CN102023917A (en) | Computer system and monitoring device for same | |
JP2008104251A (en) | Power supply failure detection method | |
Luh et al. | Comprehensive battery aging dataset: capacity and impedance fade measurements of a lithium-ion NMC/C-SiO cell | |
CN109003352B (en) | Storage recording method of train event recorder | |
EP2839532A1 (en) | Data memory for an electrical energy store | |
CN111198775A (en) | Method and system for correcting abnormal EEPROM storage state and motor vehicle | |
JP2011175379A (en) | Microcomputer and vehicle | |
CN116466256A (en) | Battery monitoring method and device, vehicle and storage medium | |
CN114906075A (en) | Vehicle control unit troubleshooting method and system | |
CN103118240A (en) | Method and device for monitoring reset signal of each module in a system | |
CN111367765A (en) | Method and device for monitoring interface response performance, server and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
CB02 | Change of applicant information | ||
CB02 | Change of applicant information |
Address after: 4 / F, building 1, No.14 Jiuxianqiao Road, Chaoyang District, Beijing 100020 Applicant after: Beijing Jingwei Hirain Technologies Co.,Inc. Address before: 8 / F, block B, No. 11, Anxiang Beili, Chaoyang District, Beijing 100101 Applicant before: Beijing Jingwei HiRain Technologies Co.,Ltd. |
|
GR01 | Patent grant | ||
GR01 | Patent grant |