CN111596638B - Vehicle troubleshooting method, device, equipment and computer readable storage medium - Google Patents

Vehicle troubleshooting method, device, equipment and computer readable storage medium Download PDF

Info

Publication number
CN111596638B
CN111596638B CN201910127072.5A CN201910127072A CN111596638B CN 111596638 B CN111596638 B CN 111596638B CN 201910127072 A CN201910127072 A CN 201910127072A CN 111596638 B CN111596638 B CN 111596638B
Authority
CN
China
Prior art keywords
data
frame
memory address
vehicle
control system
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
Application number
CN201910127072.5A
Other languages
Chinese (zh)
Other versions
CN111596638A (en
Inventor
苏得生
储北东
陶建卫
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
NANJING TACKING AUTOMOBILE ELECTRONIC Co.,Ltd.
Original Assignee
Nanjing Tacking Automobile Electronic Co ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Nanjing Tacking Automobile Electronic Co ltd filed Critical Nanjing Tacking Automobile Electronic Co ltd
Priority to CN201910127072.5A priority Critical patent/CN111596638B/en
Publication of CN111596638A publication Critical patent/CN111596638A/en
Application granted granted Critical
Publication of CN111596638B publication Critical patent/CN111596638B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B23/00Testing or monitoring of control systems or parts thereof
    • G05B23/02Electric testing or monitoring
    • G05B23/0205Electric testing or monitoring by means of a monitoring system capable of detecting and responding to faults
    • G05B23/0218Electric testing or monitoring by means of a monitoring system capable of detecting and responding to faults characterised by the fault detection method dealing with either existing or incipient faults
    • G05B23/0221Preprocessing measurements, e.g. data collection rate adjustment; Standardization of measurements; Time series or signal analysis, e.g. frequency analysis or wavelets; Trustworthiness of measurements; Indexes therefor; Measurements using easily measured parameters to estimate parameters difficult to measure; Virtual sensor creation; De-noising; Sensor fusion; Unconventional preprocessing inherently present in specific fault detection methods like PCA-based methods

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Testing And Monitoring For Control Systems (AREA)

Abstract

The application relates to a vehicle troubleshooting method, a device, equipment and a computer readable storage medium, wherein the method comprises the following steps: and communicating with a control system of the vehicle through a UDS diagnostic protocol, and setting a configuration frame in the control system. And performing data writing operation on the configuration frame, writing a target memory address in the configuration frame, wherein the target memory address is used for controlling a system to acquire data in a corresponding memory, writing the acquired data into a sending frame carrying a preset identifier, and uploading the sending frame with the data written into to a vehicle network. And acquiring a transmission frame with a preset identifier from a vehicle network, and reading data from the acquired transmission frame for troubleshooting. The detection personnel can obtain the relevant data in the corresponding memory of the control system only by configuring the memory address, and can conveniently and quickly troubleshoot various unpredictable faults and quickly locate the fault problem.

Description

Vehicle troubleshooting method, device, equipment and computer readable storage medium
Technical Field
The present application relates to the field of vehicle safety detection technologies, and in particular, to a vehicle troubleshooting method, device, apparatus, and computer-readable storage medium.
Background
With the improvement of living standard of people, automobiles gradually enter thousands of households to become the most main transportation means, and the safety of automobile driving is one of the important indexes of automobiles. Taking an automobile as an example, the integration level of an Electronic Control Unit (ECU) of a modern automobile is higher and higher, and software running in the ECU is more and more complex. Vehicle-mounted environment and working conditions are varied, and various faults are inevitable. In order to quickly locate a fault, an ECU generally integrates Universal Diagnostic Services (UDS), which can be integrated into a predictable fault development stage, and can be reported or queried in time when a fault occurs later.
For unpredictable faults, the traditional vehicle fault detection mode is to perform troubleshooting analysis By means of Read Memory By Address Service of the UDS, but the Service is of a question-and-answer type, that is, a diagnostic tool sends a piece of data to tell the Memory Address and length Read By the ECU, and then the ECU replies the data of the corresponding Memory, so that the real-time performance is poor, and the condition of quick change cannot be captured. The traditional vehicle fault detection mode has the defect of low fault detection reliability.
Disclosure of Invention
In view of the above, there is a need to provide a vehicle troubleshooting method, apparatus, device, and computer-readable storage medium that can improve reliability of vehicle troubleshooting in view of the above problems.
A vehicle troubleshooting method comprising: communicating with a control system of a vehicle through a UDS diagnostic protocol, and setting a configuration frame in the control system; performing data writing operation on the configuration frame, and writing a target memory address in the configuration frame; the target memory address is used for the control system to acquire data in a corresponding memory, write the acquired data into a sending frame carrying a preset identifier, and upload the sending frame with the data written into to a vehicle network; and acquiring the transmission frame with the preset identifier from the vehicle network, and reading data from the acquired transmission frame for troubleshooting.
According to the vehicle troubleshooting method, the memory address is configured by utilizing the communication between the UDS diagnostic protocol and the control system of the vehicle, so that the control system can acquire the data write-in sending frame in the corresponding memory according to the configured memory address and upload the data write-in sending frame to the vehicle network, and the sending frame uploaded by the control system is captured from the vehicle network to acquire the data in the sending frame for troubleshooting. The detection personnel can obtain the relevant data in the corresponding memory of the control system only by configuring the memory address, and can conveniently and quickly troubleshoot various unpredictable faults and quickly locate the fault problem.
In one embodiment, the configuration frame includes an identification field, an open or close flag field, and a memory address field.
The format of the configuration frame is configured to include an identification column, an open or close flag column and a memory address column, which are respectively used for storing corresponding data, so that data identification and reading are facilitated, and the data processing reliability is improved.
In one embodiment, the performing a data write operation on the configuration frame, and writing a target memory address in the configuration frame includes: and setting the opening or closing mark column of the configuration frame to be in an opening state through a 2E service of a UDS diagnostic protocol, writing a target memory address in the memory address column, enabling the control system to read data in a corresponding memory according to the target memory address and write a sending frame carrying a preset identifier, and uploading the sending frame to a vehicle network at a fixed period.
When troubleshooting is needed, the opening or closing sign column of the configuration frame is set to be in an opening state through the 2E service of the UDS diagnostic protocol, so that a subsequent control system can write and upload data conveniently, and when troubleshooting is not needed, the control system does not need to write data, so that the operation convenience of vehicle troubleshooting is improved.
In one embodiment, the setting, by the 2E service of the UDS diagnostic protocol, an open or close flag column of the configuration frame to an open state, and writing a target memory address in the memory address column includes: setting the opening or closing sign fields of a plurality of configuration frames to be in an opening state through a 2E service of a UDS diagnostic protocol, and writing a target memory address in the memory address field of each configuration frame; or setting an opening or closing mark column of the configuration frame to be in an opening state through a 2E service of a UDS diagnostic protocol, and writing a plurality of target memory addresses in the memory address column.
The method can acquire a plurality of target memory data by setting a plurality of configuration frames or writing a plurality of target memory addresses in the same configuration frame, can be selected according to actual conditions, realizes the acquisition of a plurality of memory data, and is simple, convenient and quick to operate.
In one embodiment, acquiring a transmission frame with the preset identifier from the vehicle network, and reading data from the acquired transmission frame for troubleshooting includes: after the sending frame with the preset identification is obtained from the vehicle network, reading data in the sending frame; sending the data with the change frequency smaller than the preset frequency threshold value in the read data to a display for displaying; and processing and analyzing the data with the change frequency larger than or equal to a preset frequency threshold in the read data.
And detecting the change frequency of the data acquired from the vehicle network, and directly sending the data with the change frequency smaller than a preset threshold value to a display for displaying. And the data with the change frequency greater than or equal to the preset threshold value is processed, so that detection of detection personnel is facilitated, and the operation convenience of vehicle troubleshooting is further improved.
In one embodiment, the control system is an ECU. And configuring a target memory address for the ECU of the vehicle, acquiring relevant information in the ECU for troubleshooting, and improving the driving safety of the vehicle.
A vehicle troubleshooting apparatus comprising:
the system comprises a configuration frame setting module, a control system and a display module, wherein the configuration frame setting module is used for communicating with the control system of the vehicle through a UDS diagnostic protocol and setting a configuration frame in the control system;
a memory address writing module, configured to perform data writing operation on the configuration frame, and write a target memory address in the configuration frame; the target memory address is used for the control system to acquire data in a corresponding memory, write the acquired data into a sending frame carrying a preset identifier, and upload the sending frame with the data written into to a vehicle network;
and the diagnostic data acquisition module is used for acquiring the sending frame with the preset identifier from the vehicle network and reading data from the acquired sending frame for troubleshooting.
According to the vehicle troubleshooting device, a detector can obtain relevant data in the corresponding memory of the control system only by configuring the memory address, various unpredictable faults can be conveniently and quickly checked, and the fault problem can be quickly positioned.
In one embodiment, the configuration frame includes an identification field, an open or close flag field, and a memory address field.
The format of the configuration frame is configured to include an identification column, an open or close flag column and a memory address column, which are respectively used for storing corresponding data, so that data identification and reading are facilitated, and the data processing reliability is improved.
In one embodiment, the diagnostic data acquisition module comprises:
the first acquisition unit is used for reading data in a transmission frame after the transmission frame with a preset identifier is acquired from a vehicle network;
the second acquisition unit is used for sending the data with the change frequency smaller than the preset frequency threshold value in the read data to the display for displaying;
and the third acquisition unit is used for processing and analyzing the data of which the change frequency is greater than or equal to a preset frequency threshold in the read data.
And detecting the change frequency of the data acquired from the vehicle network, and directly sending the data with the change frequency smaller than a preset threshold value to a display for displaying. And the data with the change frequency greater than or equal to the preset threshold value is processed, so that detection of detection personnel is facilitated, and the operation convenience of vehicle troubleshooting is further improved.
A vehicle troubleshooting apparatus comprising a memory storing a computer program and a processor implementing the steps of the above method when the processor executes the computer program.
According to the vehicle troubleshooting equipment, a detector can obtain relevant data in the corresponding memory of the control system only by configuring the memory address, various unpredictable faults can be conveniently and quickly checked, and the fault problem can be quickly positioned.
In one embodiment, the vehicle troubleshooting apparatus further comprises a display coupled to the processor. The data read from the sending frame by the processor is displayed by the display so that the data can be conveniently checked by detection personnel, and the detection convenience of vehicle troubleshooting is improved.
In one embodiment, the processor is connected to the control system via a bus. And the bus is used for communicating with the control system to configure the target memory address, so that the operation is simple, convenient and reliable.
One or more non-transitory computer-readable storage media containing computer-executable instructions that, when executed by one or more processors, cause the processors to perform the above-described methods.
According to the non-volatile computer-readable storage medium containing the computer executable instructions, detection personnel can obtain related data in the corresponding memory of the control system only by configuring the memory address, various unpredictable faults can be conveniently and quickly checked, the fault problem can be quickly positioned, and compared with a traditional vehicle fault detection mode, the reliability of vehicle fault checking is improved.
Drawings
FIG. 1 is a flow diagram of a vehicle troubleshooting method in one embodiment;
FIG. 2 is a flow diagram of acquiring a transmitted frame with a predetermined identifier from a vehicle network and reading data from the acquired transmitted frame for troubleshooting in one embodiment;
FIG. 3 is a diagram illustrating data read from an acquired transmitted frame in one embodiment;
FIG. 4 is a block diagram showing the structure of a vehicle troubleshooting apparatus according to an embodiment;
FIG. 5 is a block diagram of the diagnostic data acquisition module in one embodiment;
FIG. 6 is a block diagram showing the construction of a vehicle troubleshooting apparatus in one embodiment;
FIG. 7 is a block diagram showing the construction of a vehicle troubleshooting apparatus in another embodiment;
FIG. 8 is a schematic diagram of the connection between a computer-readable storage medium and a processor according to some embodiments of the invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
In one embodiment, a vehicle troubleshooting method is provided that is suitable for troubleshooting a control system of an automobile. As shown in fig. 1, the method includes:
step S110: and communicating with a control system of the vehicle through a UDS diagnostic protocol, and setting a configuration frame in the control system.
The specific type of control system is not exclusive and in one embodiment the control system is an ECU. And configuring a target memory address for the ECU of the vehicle, acquiring relevant information in the ECU for troubleshooting, and improving the driving safety of the vehicle. For ease of understanding, the following explanation will be given taking the control system as an ECU as an example.
Specifically, the upper computer can be used for connecting an ECU of the vehicle and a vehicle network, and setting of a configuration frame and subsequent data capture are performed. The upper computer can be a single chip microcomputer or a processor of computer equipment, and the processor is used for setting configuration frames and capturing data, and is communicated with the ECU through a UDS diagnostic protocol, and the configuration frames are set in the ECU so as to control the system to capture corresponding data.
The specific form of the configuration frame is not unique, and in one embodiment, the configuration frame includes an identification column, an open or close flag column, and a memory address column. The mark column is used for storing a mark, the open or close mark column is used for storing a mark (namely an open or close mark) for controlling data writing operation, and the memory address column is used for storing a memory address required to be subjected to data derivation. The format of the configuration frame is configured to include an identification column, an open or close flag column and a memory address column, which are respectively used for storing corresponding data, so that data identification and reading are facilitated, and the data processing reliability is improved. Specifically, the data format of the configuration frame is as follows:
DID enableFlg memAddr
wherein, the enableFlg column stores the on-off or off-mark, and the memAddr column stores the memory address to be read; the DID column is used to set the logo. According to the configuration of the configuration frame, the transmission frame in the control system may transmit data (configured to be on in the configuration frame) or may not transmit data (configured to be off in the configuration frame). It can be understood that if a plurality of memory addresses need to be read simultaneously, a plurality of identifiers can be configured to generate corresponding configuration frames, and the control system is enabled to extract data corresponding to each memory address through the plurality of configuration frames; or a plurality of memAddr fields are added behind the DID field of the same configuration frame, and the control system reads data according to a plurality of corresponding memory addresses through the same configuration frame.
Step S120: and performing data writing operation on the configuration frame, and writing a target memory address in the configuration frame.
The target memory address is used for controlling the system to acquire data in the corresponding memory, writing the acquired data into a sending frame carrying a preset identifier, and uploading the sending frame with the data written into to a vehicle network. The vehicle network is used for summarizing various data sent and received by the vehicle ECU, and the processor writes data into the configuration frame in the ECU and writes the data into the target memory address so that the control system can acquire the data corresponding to the memory address to upload the data.
Specifically, a dedicated immediate frame carrying a preset identifier may be configured in the ECU as a transmission frame, so as to identify and capture data uploaded by the control system in the following. The immediate frame defines only one frame for transmitting data, and does not need to specify a specific format. The frame is a carrier of data, for example, when the defined frame is configured to be 8 bytes, data of 8 memory addresses can be sent at most simultaneously, the arrangement of the 8 memory addresses is not unique, and only it needs to know which memory address corresponds to which byte. The specific content of the preset identifier configured in the transmission frame is not unique, and may be a combination of numbers and letters. In this embodiment, the preset identifier is 0x666, and it can be understood that the preset identifier may be in other forms as long as the preset identifier does not collide with the ID of the normal functional data frame in the ECU.
The ECU is used as an electronic control unit of a vehicle, and the ECU can have a plurality of data frames, and each data frame needs an ID (identification number). The ECU is integrated with a UDS which is used for providing a plurality of services of reading configuration (22) and writing configuration (2E), the DID is used for distinguishing various services of 22 and 2E, and for example, the DID is 0xC002, so that whether the rearview mirror is automatically folded when the automobile is locked can be configured. And allocating an identifier DID to the ECU, wherein each data frame is a data packet with a plurality of bytes, and the identifier DID is positioned in the first two bytes of the data packet and is used for identifying the effect of the diagnostic data so as to perform different processing on the data in the data packet according to the difference of the identifier DID. The DID identifier supports the UDS 2E service, by which the 2E service can activate an immediate frame with ID 0x666 to send data at the memory address onto the vehicle network at a fixed period (e.g., 10 ms).
In one embodiment, step S120 includes: and setting the opening or closing sign column of the configuration frame to be in an opening state through a 2E service of a UDS diagnostic protocol, writing a target memory address in the memory address column, enabling a control system to read data in a corresponding memory according to the target memory address and write a sending frame carrying a preset identifier, and uploading the sending frame to a vehicle network at a fixed period. The specific value of the uploading period is not unique and can be adjusted according to the actual situation. Specifically, an on/off flag enableFlg is set in the data format of the configuration frame, and the flag is on when 1 and off when 0. And the default of the data frame with the ID of 0x666 is closed, when the problem needs to be checked, the enable Flg column is set to be 1 through the 2E service of the UDS, and the frame with the ID of 0x666 is opened to send data.
In the embodiment, when troubleshooting is needed, the open or close flag field of the configuration frame is set to be in an open state through the 2E service of the UDS diagnostic protocol, so that a subsequent control system can perform data writing and uploading operations, and when troubleshooting is not needed, the control system does not write data, so that the operational convenience of vehicle troubleshooting is improved.
Further, in an embodiment, setting an open or close flag column of a configuration frame to an open state by a 2E service of the UDS diagnostic protocol, and writing a target memory address in a memory address column includes:
setting the opening or closing sign fields of a plurality of configuration frames to be in an opening state through a 2E service of a UDS diagnostic protocol, and writing a target memory address in the memory address field of each configuration frame; or setting the opening or closing mark column of the configuration frame to be in an opening state through a 2E service of the UDS diagnostic protocol, and writing a plurality of target memory addresses in the memory address column.
In this embodiment, multiple target memory data can be obtained by setting multiple configuration frames or writing multiple target memory addresses in the same configuration frame, which can be selected according to actual conditions, and multiple memory data can be obtained, and the operation is simple, convenient and fast.
Step S130: and acquiring a transmission frame with a preset identifier from a vehicle network, and reading data from the acquired transmission frame for troubleshooting.
And capturing data in the vehicle network by using the processor, filtering out a sending frame with the ID of 0x666, and reading data written by the control system in the sending frame for troubleshooting. Specifically, the troubleshooting manner is not unique, and all the extracted data may be sent to a display for display, and a detection person performs comparative analysis according to the displayed data to detect whether the vehicle ECU has a fault. In addition, the extracted data can be imported into a test tool for analysis, and the analysis result is sent to a display for display so as to be conveniently viewed by a detection person.
In one embodiment, as shown in fig. 2, step S130 includes steps S132 to S136.
Step S132: and reading data in the transmission frame after the transmission frame with the preset identification is acquired from the vehicle network. After acquiring the transmission frame with the ID of 0x666, the processor can directly read the data written by the control system in the transmission frame.
Step S134: and sending the data with the change frequency smaller than the preset frequency threshold value in the read data to a display for displaying. The specific value of the preset frequency threshold is not unique, the processor detects the data change frequency according to the read data, and if the data change frequency is smaller than the preset frequency threshold, the change of the data can be directly observed by naked eyes. The processor sends the data with the change frequency smaller than the preset frequency threshold value to the display for displaying, and the detection personnel directly carry out troubleshooting by observing the displayed data through naked eyes. The data display mode is not unique, and specifically, the preset identifier, the memory address and the extracted data can be displayed in parallel correspondingly, so that the inspection personnel can observe and compare the data conveniently.
Step S136: and processing and analyzing the data with the change frequency larger than or equal to a preset frequency threshold in the read data. If the change frequency of the read data is greater than or equal to the preset frequency threshold, the data change is relatively fast, and the data cannot be directly observed by naked eyes. The processor can then save the data and then process the analysis with the tool. The tools can be any tool capable of opening text files, such as a notepad, an ultraedit, a notepad, and the like. The process of analyzing by tool processing is to compare the time stamp, ID, data to see which memory address is modified to which number at which time point, and then compare the code or specification to determine whether the change is normal. And the result obtained after the processing and analysis can also be sent to a display for displaying so as to be checked by the detection personnel.
In this embodiment, the change frequency of the data acquired from the vehicle network is detected, and the data with the change frequency smaller than the preset threshold value is directly sent to the display for display. And the data with the change frequency greater than or equal to the preset threshold value is processed, so that detection of detection personnel is facilitated, and the operation convenience of vehicle troubleshooting is further improved.
According to the vehicle fault troubleshooting method, the relevant data in the corresponding memory of the control system can be obtained only by configuring the memory address by a detector, various unpredictable faults can be conveniently and quickly troubleshot, and the fault problem is quickly positioned.
In order to better understand the vehicle troubleshooting method, the following detailed explanation is made in conjunction with specific embodiments.
A vehicle troubleshooting method is characterized in that a processor is used for communicating with an ECU of a vehicle through a UDS diagnostic protocol, a special sending frame is configured for the ECU, and the ID is 0x 666. The enableFlg column in the data format of the configuration frame is set to 1, and a frame with an ID of 0x666 is opened to transmit data. And the ECU writes the data in the corresponding memory in the sending frame with the ID of 0x666 according to the memory address written in the configuration frame, and uploads the sending frame with the data written in to the vehicle network. Filtering out a frame with the ID of 0x666 by software in the processor, and directly and visually observing displayed data for a variable (namely data derived from the memory) with slow change; and (4) analyzing variables which change rapidly by using a tool processing, and comparing and judging whether the data change is normal or not. There are many data on the network of the car, such as those with ID 0x123, those with ID 0x456, etc., and what we need is that with ID 0x666, in order to reduce the interference of other data, only the data with ID 0x666 is received, as shown in fig. 3.
According to the vehicle troubleshooting method, the memory address required to be sent by the ECU is configured by using the 2E service of the UDS. The ECU reads data in the corresponding memory according to the configured memory address and uploads the data to the vehicle network at a fixed period, and then the data are received from the vehicle network through the upper computer software and are analyzed by software developers. The troubleshooting method is good in real-time performance and can capture ms-level changes. The method has wide application range, can be used for analyzing any software-related fault, acquiring ms-level memory (memory is also a variable) change, and then comparing codes with specifications to see whether the value of a certain variable at a certain time point is correct or not.
For example, when a certain function fails in real vehicle testing or after sales, and a DTC does not report a fault or the fault reported by the DTC is insufficient to analyze the cause of the fault, various variables related to the function can be displayed on the network in real time by using the technical scheme. As shown in fig. 3, the data captured using the above method is shown with a timestamp on the far left in units of s. It can be seen from the data that a rapid change of 10ms was captured. In the figure, the 1 st column is a time stamp, the 3 rd column is an ID (0x666), the 4 th column Rx is received data, 8 bytes of the 7 th column are data transmitted by a frame with an ID of 0x666, and the last column ID 1638 is a decimal representation of 0x 666.
In one embodiment, a vehicle troubleshooting apparatus is provided that is adapted to troubleshoot a control system of an automobile. As shown in fig. 4, the apparatus includes a configuration frame setting module 110, a memory address writing module 120, and a diagnostic data obtaining module 130.
The configuration frame setting module 110 is configured to communicate with a control system of the vehicle via a UDS diagnostic protocol, and set a configuration frame in the control system. The particular type of control system is not exclusive and in one embodiment the control system is an ECU. Specifically, the configuration frame includes an identification column, an open or close flag column, and a memory address column.
The memory address writing module 120 is configured to perform a data writing operation on the configuration frame, and write a target memory address in the configuration frame. The target memory address is used for controlling the system to acquire data in the corresponding memory, writing the acquired data into a sending frame carrying a preset identifier, and uploading the sending frame with the data written into to a vehicle network. In an embodiment, the memory address writing module 120 sets the open or close flag column of the configuration frame to an open state through a 2E service of the UDS diagnostic protocol, writes a target memory address in the memory address column, so that the control system reads data in the corresponding memory according to the target memory address, writes the data in the corresponding memory into a transmission frame carrying a preset identifier, and uploads the transmission frame to the vehicle network at a fixed period.
The diagnostic data acquisition module 130 is configured to acquire a transmission frame with a preset identifier from a vehicle network, and read data from the acquired transmission frame for troubleshooting.
In one embodiment, as shown in fig. 5, the diagnostic data acquisition module 130 includes a first acquisition unit 132, a second acquisition unit 134, and a third acquisition unit 136.
The first obtaining unit 132 is configured to obtain a transmission frame with a preset identifier from the vehicle network, and then read data in the transmission frame.
The second obtaining unit 134 is configured to send data, of which the change frequency is smaller than a preset frequency threshold, to the display for displaying.
The third obtaining unit 136 is configured to perform processing analysis on data with a change frequency greater than or equal to a preset frequency threshold in the read data.
For specific limitations of the vehicle troubleshooting apparatus, reference may be made to the above limitations of the vehicle troubleshooting method, and details thereof are not repeated here. The respective modules in the vehicle troubleshooting apparatus described above may be entirely or partially implemented by software, hardware, and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
According to the vehicle troubleshooting device, a detector can obtain relevant data in the corresponding memory of the control system only by configuring the memory address, various unpredictable faults can be conveniently and quickly checked, and the fault problem can be quickly positioned.
In one embodiment, a vehicle troubleshooting apparatus is provided, as shown in fig. 6, including a memory 210 and a processor 220, the memory 210 storing a computer program, the processor 220 implementing the steps of the above method when executing the computer program. Specifically, the processor 220 is connected to the control system via a bus. The bus is used for communicating with the control system to configure the target memory address, and the operation is simple, convenient and reliable.
Memory 210 may include volatile storage (volatile memory), such as random-access memory (RAM); the storage device 204 may also include a non-volatile memory device (non-volatile memory), such as a flash memory device (flash memory), a solid-state drive (SSD), etc.; the storage device 204 may also comprise a combination of storage devices of the types described above.
Processor 220 may be a Central Processing Unit (CPU). The Processor may also be other general purpose processors, Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field-Programmable Gate arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
Further, in one embodiment, as shown in FIG. 7, the vehicle troubleshooting apparatus further includes a display 230 coupled to the processor 220. The data read from the transmission frame by the processor 220 is displayed through the display 230 so as to be conveniently viewed by detection personnel, and the detection convenience of vehicle troubleshooting is improved.
According to the vehicle troubleshooting equipment, a detector can obtain relevant data in the corresponding memory of the control system only by configuring the memory address, various unpredictable faults can be conveniently and quickly checked, and the fault problem can be quickly positioned.
In one embodiment, as shown in FIG. 8, one or more non-transitory computer-readable storage media 300 containing computer-executable instructions are also provided that, when executed by the one or more processors 20, cause the processors 20 to perform the above-described method(s) 302 stored in the computer-readable storage media 300.
According to the non-volatile computer-readable storage medium containing the computer executable instructions, detection personnel can obtain related data in the corresponding memory of the control system only by configuring the memory address, various unpredictable faults can be conveniently and quickly checked, the fault problem can be quickly positioned, and compared with a traditional vehicle fault detection mode, the reliability of vehicle fault checking is improved.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), or the like.
The technical features of the embodiments described above may be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the embodiments described above are not described, but should be considered as being within the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (11)

1. A vehicle troubleshooting method, comprising:
communicating with a control system of a vehicle through a UDS diagnostic protocol, and setting a configuration frame in the control system; the configuration frame comprises an identification column, an open or close identification column and a memory address column;
performing data writing operation on the configuration frame, and writing a target memory address in the configuration frame; the target memory address is used for the control system to acquire data in a corresponding memory, write the acquired data into a sending frame carrying a preset identifier, and upload the sending frame with the data written into to a vehicle network;
and acquiring the transmission frame with the preset identifier from the vehicle network, and reading data from the acquired transmission frame for troubleshooting.
2. The method of claim 1, wherein the performing a data write operation on the configuration frame, writing a target memory address in the configuration frame, comprises:
and setting the opening or closing mark column of the configuration frame to be in an opening state through a 2E service of a UDS diagnostic protocol, writing a target memory address in the memory address column, enabling the control system to read data in a corresponding memory according to the target memory address and write a sending frame carrying a preset identifier, and uploading the sending frame to a vehicle network at a fixed period.
3. The method of claim 2, wherein the setting, by the 2E service of the UDS diagnostic protocol, the open or closed flag field of the configuration frame to an open state, writing a target memory address in the memory address field, comprises:
setting the opening or closing sign fields of a plurality of configuration frames to be in an opening state through a 2E service of a UDS diagnostic protocol, and writing a target memory address in the memory address field of each configuration frame; or
And setting an opening or closing mark column of the configuration frame to be in an opening state through a 2E service of a UDS diagnostic protocol, and writing a plurality of target memory addresses in the memory address column.
4. The method of claim 1, wherein obtaining a transmitted frame with the preset identification from the vehicle network and reading data from the obtained transmitted frame for troubleshooting comprises:
after the sending frame with the preset identification is obtained from the vehicle network, reading data in the sending frame;
sending the data with the change frequency smaller than the preset frequency threshold value in the read data to a display for displaying;
and processing and analyzing the data with the change frequency larger than or equal to a preset frequency threshold in the read data.
5. The method of any one of claims 1-4, wherein the control system is an ECU.
6. A vehicle troubleshooting apparatus, comprising:
the system comprises a configuration frame setting module, a control system and a display module, wherein the configuration frame setting module is used for communicating with the control system of the vehicle through a UDS diagnostic protocol and setting a configuration frame in the control system; the configuration frame comprises an identification column, an open or close identification column and a memory address column;
a memory address writing module, configured to perform data writing operation on the configuration frame, and write a target memory address in the configuration frame; the target memory address is used for the control system to acquire data in a corresponding memory, write the acquired data into a sending frame carrying a preset identifier, and upload the sending frame with the data written into to a vehicle network;
and the diagnostic data acquisition module is used for acquiring the sending frame with the preset identifier from the vehicle network and reading data from the acquired sending frame for troubleshooting.
7. The apparatus of claim 6, wherein the diagnostic data acquisition module comprises:
the first acquisition unit is used for reading data in a transmission frame after the transmission frame with a preset identifier is acquired from a vehicle network;
the second acquisition unit is used for sending the data with the change frequency smaller than the preset frequency threshold value in the read data to the display for displaying;
and the third acquisition unit is used for processing and analyzing the data of which the change frequency is greater than or equal to a preset frequency threshold in the read data.
8. A vehicle troubleshooting apparatus comprising a memory and a processor, the memory storing a computer program characterized in that the processor implements the steps of the method of any one of claims 1-5 when executing the computer program.
9. The vehicle troubleshooting apparatus of claim 8, further comprising a display coupled to the processor.
10. The vehicle troubleshooting apparatus of claim 8 or 9, wherein the processor is connected with the control system through a bus.
11. One or more non-transitory computer-readable storage media containing computer-executable instructions that, when executed by one or more processors, cause the processors to perform the method of any one of claims 1-5.
CN201910127072.5A 2019-02-20 2019-02-20 Vehicle troubleshooting method, device, equipment and computer readable storage medium Active CN111596638B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910127072.5A CN111596638B (en) 2019-02-20 2019-02-20 Vehicle troubleshooting method, device, equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910127072.5A CN111596638B (en) 2019-02-20 2019-02-20 Vehicle troubleshooting method, device, equipment and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN111596638A CN111596638A (en) 2020-08-28
CN111596638B true CN111596638B (en) 2021-08-13

Family

ID=72188589

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910127072.5A Active CN111596638B (en) 2019-02-20 2019-02-20 Vehicle troubleshooting method, device, equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN111596638B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112866327B (en) * 2020-11-03 2023-08-11 联合汽车电子有限公司 Method, device, equipment, system and storage medium for transmitting vehicle data
CN112558584B (en) * 2020-11-18 2022-05-10 深圳市元征科技股份有限公司 Diagnostic data acquisition method and device and diagnostic equipment
CN112685424B (en) * 2021-01-04 2022-08-23 潍柴动力股份有限公司 Processing method and device for engine fault storage

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102915033A (en) * 2012-11-09 2013-02-06 三一重工股份有限公司 Vehicle fault diagnosing system and engineering machine
CN108132663A (en) * 2017-12-19 2018-06-08 风度(常州)汽车研发院有限公司 The analytic method of vehicle trouble messages, device and system
KR101923511B1 (en) * 2018-03-27 2018-11-29 콘티넨탈 오토모티브 게엠베하 Apparatus for communicating diagnostic vehicle and method thereof
CN108965052A (en) * 2018-07-02 2018-12-07 上海稊米汽车科技有限公司 A kind of data reading system for the electronic control unit software debugging after entrucking
CN109358598A (en) * 2018-10-12 2019-02-19 中汽研(天津)汽车工程研究院有限公司 Pure electric automobile off-line test device and method based on UDS diagnosing protocol

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102915033A (en) * 2012-11-09 2013-02-06 三一重工股份有限公司 Vehicle fault diagnosing system and engineering machine
CN108132663A (en) * 2017-12-19 2018-06-08 风度(常州)汽车研发院有限公司 The analytic method of vehicle trouble messages, device and system
KR101923511B1 (en) * 2018-03-27 2018-11-29 콘티넨탈 오토모티브 게엠베하 Apparatus for communicating diagnostic vehicle and method thereof
CN108965052A (en) * 2018-07-02 2018-12-07 上海稊米汽车科技有限公司 A kind of data reading system for the electronic control unit software debugging after entrucking
CN109358598A (en) * 2018-10-12 2019-02-19 中汽研(天津)汽车工程研究院有限公司 Pure electric automobile off-line test device and method based on UDS diagnosing protocol

Also Published As

Publication number Publication date
CN111596638A (en) 2020-08-28

Similar Documents

Publication Publication Date Title
CN111596638B (en) Vehicle troubleshooting method, device, equipment and computer readable storage medium
CN108227675B (en) Vehicle diagnosis method, device, terminal and computer-readable storage medium
US11032300B2 (en) Intrusion detection system based on electrical CAN signal for in-vehicle CAN network
CN107918382B (en) Automobile fault diagnosis method, automobile fault diagnosis device and electronic equipment
US11184383B2 (en) Security test system, security test method, function evaluation device, and program
CN107544463B (en) Automatic test method and test device for diagnosis function of vehicle controller
CN110545220B (en) Automobile diagnosis protocol detection method and related product
CN107423492B (en) Forklift diagnosis test method and system based on template
CN113608518B (en) Data generation method, device, terminal equipment and medium
CN114170705A (en) Vehicle data uploading method, device and equipment
US9589394B2 (en) Determining the source of a ground offset in a controller area network
CN108390863B (en) Data processing method and device
CN111506047A (en) Vehicle diagnosis method, device and storage medium
CN109080380B (en) Tire pressure sensor signal analysis method, tire pressure sensor signal analysis device, tire pressure receiver and tire pressure sensor signal diagnosis system
CN114414255A (en) Automatic driving test method and system based on CAN message period monitoring
CN117032179A (en) Automobile diagnosis method and device, automobile and storage medium
US10051116B2 (en) Line diagnosis method and apparatus
US20240135758A1 (en) Remote vehicle communications filtering
CN112306038B (en) Detection method, detection device and diagnosis equipment
CN114884849A (en) CAN bus abnormity detection method and system based on Adaboost
CN110177032B (en) Message routing quality monitoring method and gateway controller
CN111143225B (en) Vulnerability processing method of automobile diagnosis software and related products
CN113434411A (en) TIAS function test method and system
US10515039B2 (en) Vehicle USB hub system
CN114572005A (en) Vehicle mileage backup method and terminal equipment

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
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20210115

Address after: 210009 room 211, building 15, 12 Dinghuaimen, Gulou District, Nanjing City, Jiangsu Province

Applicant after: NANJING TACKING AUTOMOBILE ELECTRONIC Co.,Ltd.

Address before: 210009 room 211, building 15, 12 Dinghuaimen, Gulou District, Nanjing City, Jiangsu Province

Applicant before: NANJING TACKING AUTOMOBILE ELECTRONIC Co.,Ltd.

Applicant before: SHANGHAI OUFEI INTELLIGENT AUTO UNION TECHNOLOGY Co.,Ltd.

GR01 Patent grant
GR01 Patent grant