Vehicle diagnosis method, device and equipment and storage medium

By establishing a physical connection with the ECU during the prediagnosis stage of new energy vehicles, monitoring and determining the target baud rate, diagnostic communication of the ECU in offline state is achieved, solving the problem of low diagnostic efficiency in the prior art, and improving diagnostic efficiency and user experience.

CN119937522APending Publication Date: 2025-05-06深圳市易新亿意软件开发有限公司
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202510138335.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-02-07
Publication Date
2025-05-06

AI Technical Summary

Technical Problem

In the maintenance of new energy vehicles, the ECU needs to disassemble the vehicle for diagnosis, but cannot interact with the ECU when offline, resulting in low diagnostic efficiency. Existing methods such as repeated disassembly or use of simulated gateways have problems of time, complexity and uncertainty, which makes it difficult to meet the needs of efficient and precise maintenance.

Method used

By establishing a physical connection with the electronic control unit of the target vehicle during the prediagnosis phase, it is monitored whether it broadcasts the target data. If not broadcast, the preset CAN data is sent based on the preset baud rate, and after successful, the baud rate is determined as the target baud rate; if broadcasted, the baud rate during broadcast is used. Then, an activation command is sent based on the target baud rate, and the ECU is activated for diagnosis.

Benefits of technology

It realizes communication between the diagnostic equipment and the ECU in offline state, improves the diagnostic efficiency of the ECU, simplifies the troubleshooting process, and improves the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119937522A_ABST
    Figure CN119937522A_ABST
Patent Text Reader

Abstract

The invention discloses a vehicle diagnosis method, device and equipment and a storage medium, and relates to the field of vehicle diagnos.The method comprises the steps that in the pre-diagnosis stage, physical connection with an electronic control unit on a target vehicle is established, and whether the electronic control unit broadcasts target data or not is monitored; if it is monitored that the current electronic control unit does not broadcast the target data, executing an operation of sending preset CAN data to the electronic control unit based on a preset Baud rate, and when the sending is successful, determining the preset Baud rate as a target Baud rate; if it is monitored that the current electronic control unit broadcasts the target data, determining a Baud rate during broadcasting as a target Baud rate; and after the target baud rate is determined, an electronic control unit activation command is sent to the electronic control unit based on the target baud rate, so that vehicle diagnosis operation is triggered after the electronic control unit is successfully activated. Therefore, the communication between the diagnosis equipment and the ECU in the offline state can be realized, so that the vehicle diagnosis is carried out.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of vehicle diagnosis, and in particular to a vehicle diagnosis method, device, equipment and storage medium. Background Art

[0002] In the maintenance of new energy vehicles, many ECU components (Electronic Control Unit) need to be removed from the vehicle for maintenance. However, once this is done, since they are separated from the vehicle environment and lack a vehicle gateway, they cannot interact with the ECU, making direct ECU diagnosis a problem.

[0003] There are currently two common solutions to this problem. One is for maintenance technicians to install the ECU back into the vehicle for further diagnosis, but since it is difficult to fix all faults at once, repeated disassembly and assembly is extremely time-consuming. The other is to use analog gateway technology, which avoids repeated disassembly and assembly, but when a communication failure occurs, it is still necessary to check whether it is caused by the analog gateway, which increases the complexity and uncertainty of troubleshooting, and also hinders the rapid advancement of maintenance work to a certain extent, making it difficult to meet the needs of efficient and accurate maintenance. It can be seen that the existing methods all have obvious defects.

[0004] Therefore, how to achieve communication between diagnostic equipment and ECU in offline state, so as to improve the diagnostic efficiency of ECU, is a technical problem that needs to be solved urgently. Summary of the invention

[0005] In view of this, the purpose of the present invention is to provide a vehicle diagnostic method, device, equipment and storage medium, which can realize the communication between the diagnostic device and the ECU in an offline state. The specific scheme is as follows:

[0006] In a first aspect, the present application provides a vehicle diagnosis method, applied to a diagnostic device, comprising:

[0007] In the pre-diagnosis phase, a physical connection is established with an electronic control unit on a target vehicle, and the electronic control unit is monitored to see whether it is broadcasting target data;

[0008] If it is detected that the electronic control unit does not currently broadcast the target data, an operation of sending the preset CAN data to the electronic control unit is performed based on the preset baud rate, and when the sending is successful, the preset baud rate is determined as the target baud rate;

[0009] If it is detected that the electronic control unit is currently broadcasting the target data, the baud rate during the broadcast is determined as the target baud rate;

[0010] After determining the target baud rate, an electronic control unit activation command is sent to the electronic control unit based on the target baud rate to trigger a vehicle diagnostic operation after the electronic control unit is successfully activated, so as to obtain corresponding vehicle fault information from the electronic control unit.

[0011] Optionally, monitoring whether the electronic control unit is broadcasting target data includes:

[0012] If the current mode of the diagnostic device is the silent mode, monitoring whether the electronic control unit is broadcasting target data.

[0013] Optionally, the operation of sending preset CAN data to the electronic control unit based on a preset baud rate, when the sending is successful, determining the preset baud rate as the target baud rate, includes:

[0014] Determine CAN data with a data volume of a preset data volume to obtain the preset CAN data;

[0015] Execute the operation of sending the preset CAN data to the electronic control unit based on the preset baud rate;

[0016] When the preset CAN data has been sent successfully and the preset CAN data meets the preset verification pass condition, the preset baud rate is determined as the target baud rate.

[0017] Optionally, the operation of sending preset CAN data to the electronic control unit based on a preset baud rate, when the sending is successful, determining the preset baud rate as the target baud rate, includes:

[0018] Select a baud rate from the unselected baud rates in the preset baud rate set as the current baud rate;

[0019] Execute an operation of sending preset CAN data to the electronic control unit based on the current baud rate;

[0020] If the transmission is successful, the current baud rate is determined as the target baud rate;

[0021] If the sending fails, the process jumps to selecting a baud rate from the baud rates in the preset baud rate set that have not been selected as the current baud rate, until the sending succeeds or all the baud rates in the preset baud rate set have been selected.

[0022] Optionally, the vehicle diagnostic method further includes:

[0023] When all the baud rates in the preset baud rate set have been selected, if the preset CAN data have not been sent successfully, sending the electronic control unit activation command to the electronic control unit based on the preset electrical parameters in the diagnostic communication protocol, so as to trigger the vehicle diagnostic operation after the electronic control unit is successfully activated;

[0024] Wherein, the diagnostic communication protocol is a communication protocol between the diagnostic device and the electronic control unit.

[0025] Optionally, sending an electronic control unit activation command to the electronic control unit based on the target baud rate to trigger a vehicle diagnostic operation after the electronic control unit is successfully activated includes:

[0026] The electronic control unit activation command is sent to the electronic control unit based on the target baud rate and the diagnostic communication protocol, so as to activate the electronic control unit using the electronic control unit activation command, so as to trigger a vehicle diagnostic operation after the electronic control unit is successfully activated.

[0027] In a second aspect, the present application provides a vehicle diagnostic device, which is applied to a diagnostic device, comprising:

[0028] A data monitoring module, used to establish a physical connection with an electronic control unit on a target vehicle during a pre-diagnosis phase, and monitor whether the electronic control unit is broadcasting target data;

[0029] A first baud rate determination module, configured to, if it is detected that the current electronic control unit does not broadcast the target data, send the preset CAN data to the electronic control unit based on a preset baud rate, and when the sending is successful, determine the preset baud rate as the target baud rate;

[0030] A second baud rate determination module is used to determine the baud rate of the broadcast as the target baud rate if it is detected that the electronic control unit is currently broadcasting the target data;

[0031] A vehicle diagnostic module is used to send an electronic control unit activation command to the electronic control unit based on the target baud rate after determining the target baud rate, so as to trigger a vehicle diagnostic operation after the electronic control unit is successfully activated, so as to obtain corresponding vehicle fault information from the electronic control unit.

[0032] In a third aspect, the present application provides an electronic device, including:

[0033] Memory, used to store computer programs;

[0034] The processor is used to execute the computer program to implement the aforementioned vehicle diagnosis method.

[0035] In a fourth aspect, the present application provides a computer-readable storage medium for storing a computer program; wherein, when the computer program is executed by a processor, the aforementioned vehicle diagnostic method is implemented.

[0036] In the present application, in the pre-diagnosis stage, a physical connection is established with the electronic control unit on the target vehicle, and the electronic control unit is monitored to see if it is broadcasting the target data; if it is detected that the current electronic control unit is not broadcasting the target data, the operation of sending the preset CAN data to the electronic control unit is performed based on the preset baud rate, and when the sending is successful, the preset baud rate is determined as the target baud rate; if it is detected that the current electronic control unit is broadcasting the target data, the baud rate during the broadcast is determined as the target baud rate; after determining the target baud rate, the electronic control unit activation command is sent to the electronic control unit based on the target baud rate to trigger the vehicle diagnostic operation after the electronic control unit is successfully activated, so as to obtain the corresponding vehicle fault information from the electronic control unit. As can be seen from the above, the diagnostic device of the present application first establishes a physical connection with the electronic control unit of the target vehicle in the pre-diagnosis stage, and at the same time monitors whether the electronic control unit is broadcasting the target data. If the broadcast is not detected, the preset CAN data is sent to the electronic control unit according to the preset baud rate, and the preset baud rate is set as the target baud rate if the sending is successful; if the broadcast is detected, the baud rate used for the broadcast is used as the target baud rate. After determining the target baud rate, an activation command is sent to the electronic control unit at this baud rate. Once the electronic control unit is successfully activated, the vehicle diagnostic operation can be triggered, and the vehicle fault information can be obtained from the electronic control unit. In this way, the present application can realize the communication between the diagnostic device and the ECU in an offline state, thereby improving the diagnostic efficiency of the ECU and improving the user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.

[0038] Figure 1 A flow chart of a vehicle diagnostic method disclosed in this application;

[0039] Figure 2 A schematic flow chart of a specific vehicle diagnostic method disclosed in this application;

[0040] Figure 3 This is a schematic diagram of an ECU pin description disclosed in this application;

[0041] Figure 4 This is a schematic diagram of ECU pins of a vehicle type disclosed in this application;

[0042] Figure 5 A specific vehicle diagnostic method flow chart disclosed in this application;

[0043] Figure 6 This is a schematic diagram of the structure of a vehicle diagnostic device disclosed in this application;

[0044] Figure 7 This is a structural diagram of an electronic device disclosed in this application. DETAILED DESCRIPTION

[0045] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0046] Among the current offline vehicle maintenance solutions, one is that the maintenance technician installs the ECU back into the vehicle for diagnosis. Since it is difficult to fix all faults at once, repeated disassembly and assembly is extremely time-consuming. The other is to use analog gateway technology. Although it avoids repeated disassembly and assembly, it is still necessary to check whether the analog gateway is the cause of the communication failure, which increases the complexity and uncertainty of troubleshooting, and also hinders the rapid advancement of maintenance work to a certain extent, making it difficult to meet the needs of efficient and accurate maintenance. To this end, the present application provides a vehicle diagnostic method, device, equipment and storage medium that can realize communication between the diagnostic device and the ECU in an offline state.

[0047] See also Figure 1 and Figure 2 As shown, an embodiment of the present invention discloses a vehicle diagnosis method, which is applied to a diagnostic device, including:

[0048] Step S11: In the pre-diagnosis stage, a physical connection is established with an electronic control unit on a target vehicle, and the electronic control unit is monitored to see whether it is broadcasting target data.

[0049] In this embodiment, in the pre-diagnosis stage of diagnosing the vehicle, it is first necessary to establish a reliable physical connection with the ECU to be detected on the target vehicle. Specifically, the user can connect the connector of the diagnostic device to the pins of the ECU in the offline state according to the ECU pin description diagram. The ECU pin description diagram can be as follows: Figure 3 As shown, the pins of the ECU can be Figure 4 As shown, Figure 4The numbers in the figure are the pin numbers of the ECU, and the other shapes except the pin numbers are the ECU shell. In the figure, pins with different functions are distinguished by different colors. Pin 1 is responsible for connection detection, pin 2 is the control guide signal, pins 3, 4, 5, and 6 are all pins related to temperature adjustment, pins 12 and 19 are all voltage-related pins, pin 17 is the pin for transmitting CAN high-level signals, and pin 18 is the pin for transmitting CAN low-level signals.

[0050] After completing the physical connection step, the user needs to perform further operations on the diagnostic device. Taking the common X431PADV (a model of vehicle fault diagnostic equipment) diagnostic device as an example, the user needs to select the vehicle model diagnostic software corresponding to the target vehicle on the diagnostic device. For example, if the target vehicle is a BYD model, select the diagnostic software corresponding to BYD. Since the electronic control units of different models may use different communication protocols and data formats, the user selects the vehicle model diagnostic software corresponding to the target vehicle on the diagnostic device to ensure that the diagnostic device is compatible with the ECU of the target vehicle.

[0051] Furthermore, in this embodiment, after completing the selection of the vehicle type diagnostic software, the user issues a command to start diagnosis, and the diagnostic device can enter silent mode. In this mode, the diagnostic device can only receive data frames and remote frames on the bus, and its main task is to monitor whether the ECU is broadcasting target data. That is, if the current mode of the diagnostic device is silent mode, monitor whether the electronic control unit is broadcasting target data. The target data here refers to the data that the ECU actively sends out in normal working state. Among them, the target data can be as follows.

[0052] ;

[0053] Step S12: if it is detected that the electronic control unit does not currently broadcast the target data, an operation of sending preset CAN data to the electronic control unit is performed based on a preset baud rate, and when the sending is successful, the preset baud rate is determined as the target baud rate.

[0054] In this embodiment, when the diagnostic device does not detect the ECU broadcast target data in silent mode, it is necessary to try to establish communication with the ECU and determine its communication baud rate (ie, target baud rate) by actively sending data.

[0055] First, determine CAN data with a data volume size of a preset data volume size to obtain the preset CAN data, wherein the preset data volume size can be one frame, and then perform an operation of sending the preset CAN data to the electronic control unit based on the preset baud rate, that is, when the preset data volume size is one frame, send one frame of CAN data to the ECU.

[0056] In a specific implementation, when the preset CAN data has been successfully sent and the preset CAN data meets the preset verification pass condition, the preset baud rate is determined as the target baud rate. The preset verification pass condition is to check whether an error occurs in the CAN data during the sending process. Only when the sent data passes the set condition can it be said that the preset baud rate is correct and can communicate with the ECU accordingly.

[0057] Step S13: If it is detected that the electronic control unit is currently broadcasting the target data, the baud rate during the broadcast is determined as the target baud rate.

[0058] In this embodiment, if the diagnostic device successfully detects that the ECU is broadcasting the target data, then the baud rate during the broadcast is the target baud rate.

[0059] It should be noted that the baud rate used by the ECU when broadcasting data is exactly the communication baud rate used by its current normal operation. By directly obtaining this baud rate, the parameters for communicating with the ECU can be quickly and accurately determined, avoiding the tedious process of trying preset baud rates one by one to determine the target baud rate, greatly improving the diagnostic efficiency.

[0060] Step S14: after determining the target baud rate, sending an electronic control unit activation command to the electronic control unit based on the target baud rate, so as to trigger a vehicle diagnostic operation after the electronic control unit is successfully activated, so as to obtain corresponding vehicle fault information from the electronic control unit.

[0061] In this embodiment, after the target baud rate is determined, the ECU needs to be activated next so that the fault information of the vehicle can be obtained from the ECU.

[0062] Specifically, the electronic control unit activation command is sent to the electronic control unit based on the target baud rate and the diagnostic communication protocol, so as to activate the electronic control unit using the electronic control unit activation command, so as to trigger the vehicle diagnostic operation after the electronic control unit is successfully activated. That is, when the ECU receives the activation command, it will perform corresponding operations according to the command. If the activation is successful, the ECU will enter a diagnosable state, and the diagnostic device can trigger the vehicle diagnostic operation. In the vehicle diagnostic operation, the diagnostic device can send various request instructions to the ECU, such as reading fault codes, reading vehicle operating parameters, etc. After receiving these request instructions, the ECU will generate corresponding response data based on the information stored in itself and the current operating status of the vehicle, and send these data back to the diagnostic device. The diagnostic device parses and processes the received response data, and can obtain the corresponding vehicle fault information from it.

[0063] As can be seen from the above, the diagnostic device of the present application first establishes a physical connection with the electronic control unit of the target vehicle in the pre-diagnosis stage, and monitors whether the electronic control unit broadcasts the target data. If no broadcast is detected, the preset CAN data is sent to the electronic control unit according to the preset baud rate. If the transmission is successful, the preset baud rate is set as the target baud rate; if a broadcast is detected, the baud rate used for the broadcast is used as the target baud rate. After determining the target baud rate, an activation command is sent to the electronic control unit at this baud rate. When the electronic control unit is successfully activated, the vehicle diagnostic operation can be triggered, and the vehicle fault information can be obtained from the electronic control unit. In this way, the present application can realize the communication between the diagnostic device and the ECU in an offline state, thereby improving the diagnostic efficiency of the ECU and improving the user experience.

[0064] See also Figure 2 and Figure 5 As shown, in order to determine the target baud rate when the electronic control unit does not broadcast the target data, the embodiment of the present application further provides a specific vehicle diagnosis method, which is applied to the diagnostic device, including:

[0065] Step S21 : In the pre-diagnosis stage, a physical connection is established with an electronic control unit on a target vehicle, and the electronic control unit is monitored to see whether it is broadcasting target data.

[0066] For the specific implementation process of step S21, reference may be made to the corresponding contents disclosed in the aforementioned embodiments, which will not be described in detail here.

[0067] Step S22: if it is detected that the electronic control unit does not currently broadcast the target data, a baud rate is selected from the unselected baud rates in the preset baud rate set as the current baud rate, and an operation of sending the preset CAN data to the electronic control unit is executed based on the current baud rate.

[0068] In this embodiment, if it is detected that the ECU does not broadcast the target data, a baud rate is selected from the unselected baud rates in the preset baud rate set as the current baud rate, and the preset CAN data is sent to the electronic control unit based on the current baud rate.

[0069] In addition, it should be noted that the preset baud rates in the preset baud rate set are a group of possible values ​​set according to the communication baud rates of common vehicle ECUs, for example, the preset baud rate set may include 1M bit / s, 500k bit / s, 250kbit / s, 800K bit / s, 100K bit / s, 62.5K bit / s, 50K bit / s, 25K bit / s, 96K bit / s and 33.3K bit / s, etc. In addition, the actual trial order can be reasonably adjusted based on experience summary.

[0070] Step S23: If the transmission is successful, the current baud rate is determined as the target baud rate.

[0071] In this embodiment, if the preset CAN data is successfully sent to the ECU, and the information fed back by the ECU indicates that the data is received correctly, this means that the currently selected baud rate is correct, and the current baud rate can be determined as the target baud rate.

[0072] Step S24: if the sending fails, jump to selecting a baud rate from the baud rates in the preset baud rate set that have not been selected as the current baud rate, until the sending succeeds or all the baud rates in the preset baud rate set have been selected.

[0073] In this embodiment, when the preset CAN data fails to be sent, fails to successfully reach the ECU or does not receive an effective response, a baud rate that has not been tried in the preset baud rate set can be reselected as a new current baud rate, and the preset CAN data can be sent to the ECU again. The attempts are repeated in this way until the correct baud rate is found so that the data can be successfully sent, or until all baud rates in the preset baud rate set have been selected one by one.

[0074] In a specific embodiment, if all the baud rates in the preset baud rate set have been selected, if the preset CAN data have not been sent successfully, the electronic control unit activation command is sent to the electronic control unit based on the preset electrical parameters in the diagnostic communication protocol to trigger the vehicle diagnostic operation after the electronic control unit is successfully activated. The diagnostic communication protocol is a communication protocol between the diagnostic device and the electronic control unit. The preset electrical parameters include but are not limited to the setting of the communication line, the speed of communication, the time interval of communication and other parameters.

[0075] As can be seen from the above, under the condition that the ECU does not broadcast the target data, the present application selects an unused one from the preset baud rate set and sends the preset CAN data accordingly. If the transmission is successful, the baud rate is set as the target baud rate; if it fails, it is reselected and sent again until it succeeds or all baud rates are tried. If all fail, an activation command is sent according to the preset electrical parameters of the diagnostic protocol to start the diagnosis. In this way, the present application can determine the target baud rate or send the ECU activation command to the ECU based on the preset electrical parameters when the vehicle ECU does not broadcast the target data, thereby improving the efficiency of vehicle diagnosis.

[0076] Accordingly, see Figure 6 As shown, an embodiment of the present application provides a vehicle diagnostic device, comprising:

[0077] The data monitoring module 11 is used to establish a physical connection with the electronic control unit on the target vehicle during the pre-diagnosis stage and monitor whether the electronic control unit is broadcasting the target data;

[0078] A first baud rate determination module 12 is used for executing an operation of sending preset CAN data to the electronic control unit based on a preset baud rate if it is detected that the electronic control unit does not currently broadcast the target data, and when the sending is successful, determining the preset baud rate as the target baud rate;

[0079] A second baud rate determination module 13 is used to determine the baud rate of the broadcast as the target baud rate if it is detected that the electronic control unit is currently broadcasting the target data;

[0080] The vehicle diagnostic module 14 is used to send an electronic control unit activation command to the electronic control unit based on the target baud rate after determining the target baud rate, so as to trigger a vehicle diagnostic operation after the electronic control unit is successfully activated, so as to obtain corresponding vehicle fault information from the electronic control unit.

[0081] As can be seen from the above, the diagnostic device of the present application first establishes a physical connection with the electronic control unit of the target vehicle in the pre-diagnosis stage, and monitors whether the electronic control unit broadcasts the target data. If no broadcast is detected, the preset CAN data is sent to the electronic control unit according to the preset baud rate. If the transmission is successful, the preset baud rate is set as the target baud rate; if a broadcast is detected, the baud rate used for the broadcast is used as the target baud rate. After determining the target baud rate, an activation command is sent to the electronic control unit at this baud rate. When the electronic control unit is successfully activated, the vehicle diagnostic operation can be triggered, and the vehicle fault information can be obtained from the electronic control unit. In this way, the present application can realize the communication between the diagnostic device and the ECU in an offline state, thereby improving the diagnostic efficiency of the ECU and improving the user experience.

[0082] In a specific implementation, the data monitoring module 11 specifically includes:

[0083] The broadcast monitoring unit is used to monitor whether the electronic control unit is broadcasting target data if the current mode of the diagnostic device is the silent mode.

[0084] In a specific implementation, the first baud rate determination module 12 specifically includes:

[0085] A data determination unit, used for determining CAN data having a data volume of a preset data volume to obtain the preset CAN data;

[0086] A first data sending unit, configured to send the preset CAN data to the electronic control unit based on a preset baud rate;

[0087] The first baud rate determining unit is configured to determine the preset baud rate as a target baud rate when the preset CAN data has been sent successfully and the preset CAN data meets a preset verification pass condition.

[0088] In a specific implementation, the first baud rate determination module 12 specifically includes:

[0089] A baud rate selection unit, used for selecting a baud rate from unselected baud rates in a preset baud rate set as a current baud rate;

[0090] A second data sending unit, configured to send preset CAN data to the electronic control unit based on the current baud rate;

[0091] A second baud rate determination unit, configured to determine the current baud rate as the target baud rate if the transmission is successful;

[0092] The loop jump unit is used for jumping to selecting a baud rate from the baud rates that have not been selected in the preset baud rate set as the current baud rate if the sending fails, until the sending succeeds or all the baud rates in the preset baud rate set have been selected.

[0093] In a specific implementation, the vehicle diagnostic device further includes:

[0094] a first vehicle diagnostic unit, configured to send the electronic control unit activation command to the electronic control unit based on preset electrical parameters in a diagnostic communication protocol when all baud rates in the preset baud rate set have been selected and if none of the preset CAN data has been sent successfully, so as to trigger the vehicle diagnostic operation after the electronic control unit is successfully activated;

[0095] Wherein, the diagnostic communication protocol is a communication protocol between the diagnostic device and the electronic control unit.

[0096] In a specific implementation, the vehicle diagnostic module 14 specifically includes:

[0097] The second vehicle diagnostic unit is used to send the electronic control unit activation command to the electronic control unit based on the target baud rate and the diagnostic communication protocol, so as to activate the electronic control unit using the electronic control unit activation command, so as to trigger a vehicle diagnostic operation after the electronic control unit is successfully activated.

[0098] Furthermore, the present application also discloses an electronic device. Figure 7 This is a structural diagram of an electronic device 20 according to an exemplary embodiment, and the content in the figure cannot be regarded as any limitation on the scope of use of this application. The electronic device 20 may specifically include: at least one processor 21, at least one memory 22, a power supply 23, a communication interface 24, an input / output interface 25, and a communication bus 26. The memory 22 is used to store a computer program, which is loaded and executed by the processor 21 to implement the relevant steps in the vehicle diagnostic method disclosed in any of the aforementioned embodiments. In addition, the electronic device 20 in this embodiment may specifically be an electronic computer.

[0099] In this embodiment, the power supply 23 is used to provide working voltage for each hardware device on the electronic device 20; the communication interface 24 can create a data transmission channel between the electronic device 20 and the external device, and the communication protocol it follows is any communication protocol that can be applied to the technical solution of the present application, and is not specifically limited here; the input and output interface 25 is used to obtain external input data or output data to the outside world, and its specific interface type can be selected according to specific application needs and is not specifically limited here.

[0100] In addition, the memory 22 as a carrier for resource storage may be a read-only memory, a random access memory, a disk or an optical disk, etc. The resources stored thereon may include an operating system 221, a computer program 222, etc., and the storage method may be temporary storage or permanent storage.

[0101] The operating system 221 is used to manage and control the hardware devices and computer programs 222 on the electronic device 20, and may be Windows Server, Netware, Unix, Linux, etc. In addition to computer programs that can be used to complete the vehicle diagnostic method performed by the electronic device 20 disclosed in any of the aforementioned embodiments, the computer program 222 may further include computer programs that can be used to complete other specific tasks.

[0102] Furthermore, the present application also discloses a computer-readable storage medium for storing a computer program; wherein the computer program, when executed by a processor, implements the vehicle diagnostic method disclosed above. The specific steps of the method can refer to the corresponding contents disclosed in the above embodiments, and will not be repeated here.

[0103] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.

[0104] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0105] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented directly using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.

[0106] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.

[0107] The technical solution provided by the present application is introduced in detail above. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea. At the same time, for general technicians in this field, according to the idea of ​​the present application, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.

Claims

1. A vehicle diagnostic method, characterized in that: Applications in diagnostic equipment, including: In the pre-diagnosis phase, a physical connection is established with an electronic control unit on a target vehicle, and the electronic control unit is monitored to see whether it is broadcasting target data; If it is detected that the electronic control unit does not currently broadcast the target data, an operation of sending the preset CAN data to the electronic control unit is performed based on the preset baud rate, and when the sending is successful, the preset baud rate is determined as the target baud rate; If it is detected that the electronic control unit is currently broadcasting the target data, the baud rate during the broadcast is determined as the target baud rate; After determining the target baud rate, an electronic control unit activation command is sent to the electronic control unit based on the target baud rate to trigger a vehicle diagnostic operation after the electronic control unit is successfully activated, so as to obtain corresponding vehicle fault information from the electronic control unit.

2. The vehicle diagnostic method according to claim 1, characterized in that: The monitoring whether the electronic control unit is broadcasting target data includes: If the current mode of the diagnostic device is the silent mode, monitoring whether the electronic control unit is broadcasting target data.

3. The vehicle diagnostic method according to claim 1, characterized in that: The step of sending the preset CAN data to the electronic control unit based on the preset baud rate, and when the sending is successful, determining the preset baud rate as the target baud rate, comprises: Determine CAN data with a data volume of a preset data volume to obtain the preset CAN data; Execute the operation of sending the preset CAN data to the electronic control unit based on the preset baud rate; When the preset CAN data has been sent successfully and the preset CAN data meets the preset verification pass condition, the preset baud rate is determined as the target baud rate.

4. The vehicle diagnosis method according to any one of claims 1 to 3, characterized in that: The step of sending the preset CAN data to the electronic control unit based on the preset baud rate, and when the sending is successful, determining the preset baud rate as the target baud rate, comprises: Select a baud rate from the unselected baud rates in the preset baud rate set as the current baud rate; Execute an operation of sending preset CAN data to the electronic control unit based on the current baud rate; If the transmission is successful, the current baud rate is determined as the target baud rate; If the sending fails, the process jumps to selecting a baud rate from the baud rates in the preset baud rate set that have not been selected as the current baud rate, until the sending succeeds or all the baud rates in the preset baud rate set have been selected.

5. The vehicle diagnostic method according to claim 4, characterized in that: Also includes: When all the baud rates in the preset baud rate set have been selected, if the preset CAN data have not been sent successfully, sending the electronic control unit activation command to the electronic control unit based on the preset electrical parameters in the diagnostic communication protocol, so as to trigger the vehicle diagnostic operation after the electronic control unit is successfully activated; Wherein, the diagnostic communication protocol is a communication protocol between the diagnostic device and the electronic control unit.

6. The vehicle diagnostic method according to claim 5, characterized in that: The step of sending an electronic control unit activation command to the electronic control unit based on the target baud rate to trigger a vehicle diagnostic operation after the electronic control unit is successfully activated includes: The electronic control unit activation command is sent to the electronic control unit based on the target baud rate and the diagnostic communication protocol, so as to activate the electronic control unit using the electronic control unit activation command, so as to trigger a vehicle diagnostic operation after the electronic control unit is successfully activated.

7. A vehicle diagnostic device, characterized in that: Applications in diagnostic equipment, including: A data monitoring module, used to establish a physical connection with an electronic control unit on a target vehicle during a pre-diagnosis phase, and monitor whether the electronic control unit is broadcasting target data; A first baud rate determination module, configured to, if it is detected that the current electronic control unit does not broadcast the target data, send the preset CAN data to the electronic control unit based on a preset baud rate, and when the sending is successful, determine the preset baud rate as the target baud rate; A second baud rate determination module is used to determine the baud rate of the broadcast as the target baud rate if it is detected that the electronic control unit is currently broadcasting the target data; A vehicle diagnostic module is used to send an electronic control unit activation command to the electronic control unit based on the target baud rate after determining the target baud rate, so as to trigger a vehicle diagnostic operation after the electronic control unit is successfully activated, so as to obtain corresponding vehicle fault information from the electronic control unit.

8. The vehicle diagnostic device according to claim 7, characterized in that: The first baud rate determination module comprises: A baud rate selection unit, used for selecting a baud rate from unselected baud rates in a preset baud rate set as a current baud rate; A data sending unit, used for sending preset CAN data to the electronic control unit based on the current baud rate; A baud rate determination unit, used to determine the current baud rate as the target baud rate if the transmission is successful; The loop jump unit is used for jumping to selecting a baud rate from the baud rates that have not been selected in the preset baud rate set as the current baud rate if the sending fails, until the sending succeeds or all the baud rates in the preset baud rate set have been selected.

9. An electronic device, characterized in that: include: Memory, used to store computer programs; A processor, configured to execute the computer program to implement the vehicle diagnostic method as claimed in any one of claims 1 to 6.

10. A computer-readable storage medium, characterized in that: Used to store a computer program; wherein, when the computer program is executed by a processor, the vehicle diagnostic method according to any one of claims 1 to 6 is implemented.

Citation Information

Cited By

  • Vehicle diagnosis method, device and equipment based on DoIP communication and storage medium

    CN120881107A

  • A vehicle diagnosis method, device and equipment based on DoIP communication and a storage medium

    CN120881107B