[go: up one dir, main page]

WO2019141114A1 - Vehicle diagnosis method and device - Google Patents

Vehicle diagnosis method and device Download PDF

Info

Publication number
WO2019141114A1
WO2019141114A1 PCT/CN2019/070886 CN2019070886W WO2019141114A1 WO 2019141114 A1 WO2019141114 A1 WO 2019141114A1 CN 2019070886 W CN2019070886 W CN 2019070886W WO 2019141114 A1 WO2019141114 A1 WO 2019141114A1
Authority
WO
WIPO (PCT)
Prior art keywords
communication protocol
voltage value
candidate communication
candidate
selected pin
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.)
Ceased
Application number
PCT/CN2019/070886
Other languages
French (fr)
Chinese (zh)
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.)
Autel Intelligent Technology Corp Ltd
Original Assignee
Autel Intelligent Technology Corp 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 Autel Intelligent Technology Corp Ltd filed Critical Autel Intelligent Technology Corp Ltd
Publication of WO2019141114A1 publication Critical patent/WO2019141114A1/en
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

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/0208Electric testing or monitoring by means of a monitoring system capable of detecting and responding to faults characterized by the configuration of the monitoring system
    • G05B23/0213Modular or universal configuration of the monitoring system, e.g. monitoring system having modules that may be combined to build monitoring program; monitoring system that can be applied to legacy systems; adaptable monitoring system; using different communication protocols

Definitions

  • the present application relates to the field of automobile fault diagnosis technology, and in particular, to a vehicle diagnosis method and apparatus.
  • OBD On-Board Diagnostic
  • An OBD interface is provided on the car.
  • each pin in the OBD interface is connected to each electronic control unit (ECU) in the vehicle based on different vehicle communication protocols.
  • the vehicle diagnostic device can establish a connection with an ECU in the vehicle through the OBD interface.
  • it is generally required to determine the communication protocol with the ECU by sequentially scanning the pin corresponding to the ECU through various vehicle communication protocols. And communicating with the ECU based on the determined communication protocol to acquire information in the vehicle.
  • the sequential scanning method to determine the communication protocol with the ECU often takes a long time, and the scanning efficiency is low, which prolongs the time for the vehicle diagnostic device to establish a connection with the vehicle.
  • Embodiments of the present invention provide a vehicle diagnosis method and apparatus to shorten a time when a vehicle diagnosis apparatus establishes a connection with a vehicle.
  • an embodiment of the present invention provides a vehicle diagnosis method, including:
  • the voltage characteristic of the level signal includes: a high level voltage value and/or a low level voltage value.
  • determining, according to the voltage characteristic, a candidate communication protocol related to the selected pin including:
  • the voltage characteristic includes a high level voltage value, determining that the corresponding high voltage range includes the communication protocol of the high level voltage value as a candidate communication protocol;
  • the voltage characteristic includes a low-level voltage value, determining that the corresponding low-voltage range includes the communication protocol of the low-level voltage value as a candidate communication protocol;
  • the communication protocol is a candidate communication protocol.
  • the sending by the selected pin, a connection request signal based on the candidate communication protocol to determine whether a target communication protocol exists in the candidate communication protocol, including:
  • a connection request signal based on one candidate communication protocol of the plurality of candidate communication protocols is sequentially sent to the selected pin;
  • a response signal for a connection request signal fed back through the selected pin is received, determining that a target communication protocol exists in the plurality of candidate communication protocols, and using the candidate communication protocol on which the connection request signal is based Target communication protocol.
  • the sending by the selected pin, a connection request signal based on the candidate communication protocol, including:
  • connection request signal corresponding to each selected pin is sent to the plurality of selected pins in parallel; wherein, the connection request signal corresponding to each selected pin is based on The candidate communication protocol associated with each selected pin.
  • the method further includes:
  • the method further includes:
  • the fault state information corresponding to each of the data is displayed on the display interface, where the fault state information includes: a fault light, a fault code number, and a sensor state.
  • an embodiment of the present invention provides a vehicle diagnostic apparatus, including:
  • An acquisition module configured to collect a level signal of a selected pin in an interface of the onboard diagnostic system, to obtain a voltage characteristic of the level signal
  • a determining module configured to determine a candidate communication protocol related to the selected pin according to the voltage characteristic
  • a communication module configured to send a connection request signal based on the candidate communication protocol to the selected pin to determine whether a target communication protocol exists in the candidate communication protocol
  • the voltage characteristic of the level signal includes: a high level voltage value and/or a low level voltage value.
  • the determining module is specifically configured to:
  • the voltage characteristic includes a high level voltage value, determining that the corresponding high voltage range includes the communication protocol of the high level voltage value as a candidate communication protocol;
  • the voltage characteristic includes a low-level voltage value, determining that the corresponding low-voltage range includes the communication protocol of the low-level voltage value as a candidate communication protocol;
  • the communication protocol is a candidate communication protocol.
  • the communication module is specifically configured to:
  • a connection request signal based on one candidate communication protocol of the plurality of candidate communication protocols is sequentially sent to the selected pin;
  • a response signal for a connection request signal fed back through the selected pin is received, determining that a target communication protocol exists in the plurality of candidate communication protocols, and using the candidate communication protocol on which the connection request signal is based Target communication protocol.
  • the communication module is specifically configured to:
  • connection request signal corresponding to each selected pin is sent to the plurality of selected pins in parallel; wherein, the connection request signal corresponding to each selected pin is based on The candidate communication protocol associated with each selected pin.
  • the device further includes:
  • an acquiring module configured to acquire at least two pieces of data of the ECU; and determine fault state information corresponding to each of the at least two pieces of data according to at least two pieces of data of the ECU.
  • the device further includes:
  • a display module configured to display, on the display interface, fault state information corresponding to each of the data, where the fault state information includes: a fault light, a fault code number, and a sensor state.
  • an embodiment of the present invention provides a vehicle diagnostic apparatus, including:
  • processor for executing the program stored by the memory, the processor for performing the method of any of the first aspects when the program is executed.
  • an embodiment of the present invention provides a computer readable storage medium, comprising: instructions, when executed on a computer, causing a computer to perform the method of any of the first aspects.
  • the vehicle diagnosis method and device obtains the voltage characteristic of the level signal by collecting the level signal of the selected pin in the interface of the onboard diagnostic system; determining and selecting according to the voltage characteristic a pin-related candidate communication protocol; sending a connection request signal based on the candidate communication protocol to the selected pin to determine whether a target communication protocol exists in the candidate communication protocol; if a target communication protocol exists, based on The target communication protocol establishes communication between the vehicle diagnostic device and the electronic control unit ECU of the vehicle.
  • the number of communication protocols corresponding to the selected pins can be reduced, the time for establishing a connection with the ECU is shortened, and the connection efficiency is improved.
  • FIG. 1 is a schematic diagram of an application scenario 1 provided by the present invention
  • FIG. 2 is a flowchart of a vehicle diagnosis method according to Embodiment 1 of the present invention.
  • FIG. 3 is a schematic diagram of a scanning principle of a candidate communication protocol for a plurality of selected pins according to Embodiment 1 of the present invention
  • FIG. 4 is a flowchart of a vehicle diagnosis method according to Embodiment 2 of the present invention.
  • FIG. 5 is a schematic diagram of a display interface for fault diagnosis provided by the present invention.
  • FIG. 6 is a schematic structural diagram of a vehicle diagnosis apparatus according to Embodiment 1 of the present invention.
  • FIG. 7 is a schematic structural diagram of a vehicle diagnosis apparatus according to Embodiment 2 of the present invention.
  • FIG. 8 is a schematic structural diagram of a vehicle diagnosis apparatus according to Embodiment 3 of the present invention.
  • FIG. 9 is a schematic structural diagram of a vehicle diagnosis apparatus according to Embodiment 1 of the present invention.
  • On-Board Diagnostic (OBD), On-Board Diagnostic II (OBD II), is used to monitor whether the working status of each system in the vehicle is abnormal. If abnormal, determine the corresponding Specific faults in the system and stored in the form of Diagnostic Trouble Codes (DTC).
  • the system can perform self-diagnosis according to DTC, and repair or maintain the vehicle in time.
  • OBD can also be equipped with OBD interface.
  • the OBD interface can be connected with external vehicle diagnostic equipment, so that maintenance personnel can use the above equipment to read in time. Go to DTC and carry out repair and maintenance of the vehicle to reduce the time for manual diagnosis.
  • ECU Electronic Control Unit
  • the OBD interface may include a plurality of pins, and the ECU in each system may be connected to at least one of the OBD interfaces through a bus.
  • the bus protocol used for connecting the corresponding pins of each system may be the same, and may be different, and is not limited herein.
  • FIG. 1 is a schematic diagram of an application scenario 1 provided by the present invention.
  • the vehicle includes one or more systems 1 , such as an engine system, an emission control system, a fuel system, etc., and each of the ECUs 2 in each system passes through a bus and a corresponding pin in the OBD interface 3 . connection.
  • the connection bus of the ECU in each system and the corresponding pin in the OBD interface may be the same, and may be different, and is not limited herein.
  • the OBD interface 3 can be connected to the vehicle diagnostic device 5 via a connection line 4.
  • the vehicle diagnostic device 5 may include an original diagnostic device, a comprehensive platform diagnostic device, a terminal to which an application having a diagnostic function is installed, and the like, which is not limited herein.
  • the OBD interface 3 may include 16 standard pins. Alternatively, the OBD interface 3 may include other types of pins, which are not limited herein.
  • the vehicle diagnostic device 5 After the vehicle diagnostic device 5 establishes a physical connection with the OBD interface 3 through the connection line 4, the vehicle diagnostic device 5 performs a communication protocol scan on a certain pin of the OBD interface 3.
  • performing the communication protocol scanning means that a connection request is sent to the pin in sequence based on a communication protocol, and the pin can sequentially send the connection request to the corresponding system ECU through the bus until the vehicle diagnostic device 5 receives the pin.
  • the response sent by the connection request for a certain communication protocol Further, the vehicle diagnostic device can establish a communication connection with the system ECU based on the communication protocol to implement data communication.
  • FIG. 2 is a flowchart of a method for diagnosing a vehicle according to a first embodiment of the present invention. As shown in FIG. 2, the method in this embodiment may include:
  • S101 Collect a level signal of the selected pin in the interface of the onboard diagnostic system to obtain a voltage characteristic of the level signal.
  • the selected pin may be a pin selected by the vehicle diagnostic device based on a preset condition, or may be any one of the OBD interfaces, which is not limited herein.
  • the voltage characteristic of the level signal can be obtained by collecting a level signal when the selected pin is connected to the diagnostic device.
  • the voltage characteristic of the level signal may include: a high level voltage value and/or a low level voltage value.
  • the voltage characteristic includes a high level voltage value
  • the voltage characteristic includes a low-level voltage value, determining that the corresponding low-voltage range includes the communication protocol of the low-level voltage value as a candidate communication protocol;
  • the communication protocol is a candidate communication protocol.
  • the voltage characteristic obtained in this embodiment is an example of a high-level voltage value.
  • OBD interface is in the form of a DLC (Data Link Connector), and the definition and description of the 16 pins included in the OBD interface can be referred to the prior art, and will not be described here.
  • DLC Data Link Connector
  • the candidate communication protocol corresponding to 1.8V to 3.0V is the ISO15765-4 protocol or the SAE J1939 protocol.
  • the candidate communication protocol corresponding to 8.4V to 12.5V is the ISO9141-2 or ISO14230-4 protocol.
  • a candidate communication protocol associated with the selected pin can be obtained.
  • the judgment process of the candidate communication protocol using the low-level voltage value is similar to the above-described determination process of the high-level voltage value, and the description thereof will not be repeated here.
  • a connection request signal based on the candidate communication protocol is sent to the selected pin, and if the selected pin receives the corresponding response signal, the candidate communication protocol is used as the target communication protocol.
  • the candidate communication protocol is multiple
  • the connection request signal based on one candidate communication protocol of the multiple candidate communication protocols is sequentially sent to the selected pin;
  • a response signal for a connection request signal fed back through the selected pin is received, determining that a target communication protocol exists in the plurality of candidate communication protocols, and using the candidate communication protocol on which the connection request signal is based Target communication protocol.
  • connection request signal is sequentially sent based on one of the multiple candidate protocols, which may also be understood as scanning the communication protocol or understanding serial scanning of the communication protocol.
  • the candidate communication protocol associated with each selected pin is determined based on the above manner. Further, a connection request signal corresponding to each selected pin is sent to the plurality of selected pins in parallel; wherein a connection request signal corresponding to each selected pin is based on each selected pin Related candidate communication protocols.
  • the connection request signal corresponding to each selected pin is transmitted in parallel, which can also be understood as parallel scanning of the communication protocol.
  • FIG. 3 is a schematic diagram of a scanning principle of a candidate communication protocol for a plurality of selected pins according to Embodiment 1 of the present invention.
  • the serial scanning mode refers to: using one candidate communication protocol for each scan. After the end of the previous candidate communication protocol scan, the scanning of the next candidate communication protocol is started until the scanning of all candidate communication protocols is completed.
  • the candidate communication protocol when the selected selected pin in the OBD interface is scanned by the candidate communication protocol, the candidate communication protocol is used to send a connection request signal to the ECU connected to the selected pin, and when the ECU returns, When the feedback response signal of the request signal is connected, it is explained that data communication between the vehicle diagnostic device and the ECU connected to the selected pin can be established by the candidate communication protocol, and thus the candidate communication protocol is used as the target communication protocol.
  • the target communication protocol is multiple, all the target communication protocols are fed back to the user, and the user is reminded to select the final target communication protocol from the target communication protocol; and according to the received user confirmation information, the final Target communication protocol.
  • the candidate communication protocol related to each selected pin is obtained by acquiring the level signal of the OBD interface pin.
  • OBD interface is in the form of a DLC (Data Link Connector), and the definition and description of the 16 pins included in the OBD interface can be referred to the prior art, and will not be described here.
  • DLC Data Link Connector
  • the PIN6 or PIN2 is usually connected to a preset system, such as an engine system, etc., and it can be determined that the PIN6 or PIN2 is the selected pin.
  • the corresponding candidate communication protocol is determined by detecting the voltage characteristics of PIN6 and PIN2.
  • the candidate communication protocol associated with the PIN6 pin is the ISO15765-4 protocol or the SAE J1939 protocol.
  • the candidate communication protocol related to the PIN2 pin is the SAE J1850 PWM protocol. It is detected whether the high level voltage value of the DLC PIN2 pin is between 6.25V and 8.75V. If yes, it is determined that the candidate communication protocol corresponding to 6.25V to 8.75V is the SAE J1850 VPW protocol.
  • the low level voltage of the selected pin can be detected, or the high level voltage or the low level voltage of the selected pin can be detected at the same time, which is not limited herein.
  • PIN2 and PIN6 can be scanned in a parallel scan to determine the target communication protocol.
  • the connection request based on the relevant candidate protocol format is sent in a parallel manner, that is, the signal format of the connection request conforms to the protocol format of the candidate communication protocol.
  • the candidate communication protocol on which the connection request signal is based is determined as the target communication protocol.
  • the selected pin is scanned by serial scanning.
  • the candidate communication protocol of the PIN6 pin of the DLC is determined by detecting the voltage characteristic of the PIN6: ISO15765-4 standard CAN protocol, ISO15765-4 standard CAN 250K protocol, ISO15765-4 extended CAN 500K protocol. ISO15765-4 extends CAN 250K protocol and SAE J1939 protocol.
  • the above five candidate communication protocols need to be scanned in order to determine the target communication protocol.
  • the connection request based on the relevant candidate protocol format may be sent in a serial manner, that is, the signal format of the connection request conforms to the protocol format of the candidate communication protocol. Determining that a target communication protocol exists in the plurality of candidate communication protocols when receiving a response signal for a connection request signal fed back through the selected pin, and using the candidate communication protocol on which the connection request signal is based Target communication protocol.
  • the candidate communication protocol of the PIN 7 is determined to be ISO 14230-4 and ISO 9141-2 by detecting the voltage characteristics of the PIN 7.
  • the two candidate protocols need to be scanned in turn to determine the target communication protocol.
  • multiple selected pins may be simultaneously scanned in parallel, or may be performed on a selected pin simultaneously in parallel scanning.
  • Serial scan when a candidate communication protocol scan is performed on a selected pin, multiple selected pins may be simultaneously scanned in parallel, or may be performed on a selected pin simultaneously in parallel scanning.
  • step S103 after determining that the target communication protocol exists in step S103, based on the target communication protocol, data communication between the diagnostic device and the electronic control unit ECU of the vehicle is established through the selected pin, thereby acquiring data sent by the ECU, and the like. Information, and use this as a judgement.
  • the voltage characteristic of the level signal is obtained by collecting a level signal of the selected pin in the interface of the onboard diagnostic system; and determining a candidate communication protocol related to the selected pin according to the voltage characteristic; Sending a connection request signal based on the candidate communication protocol to the selected pin to determine whether a target communication protocol exists in the candidate communication protocol; if there is a target communication protocol, establishing a car diagnostic device based on the target communication protocol Communication with the electronic control unit ECU of the vehicle.
  • FIG. 4 is a flowchart of a vehicle diagnosis method according to Embodiment 2 of the present invention. As shown in FIG. 4, the method in this embodiment may further include:
  • the vehicle diagnostic device establishes communication with the ECU through the target communication protocol, and acquires at least two data of the ECU, wherein the data acquired from the ECU corresponds to the current state information of the ECU.
  • the current state information of the corresponding ECU can be obtained from the acquired at least two data, and whether the ECU has a fault is determined according to the current state information of the ECU.
  • the fault status information corresponding to each data is displayed on the display interface, where the fault status information includes: a fault light, a fault code number, and a sensor status.
  • FIG. 5 is a schematic diagram of a display interface for fault diagnosis provided by the present invention. As shown in FIG. 5, multiple detection results are shown in the figure, wherein the cross mark indicates that there is a fault, the check mark indicates normal, and the prohibition symbol indicates undetected.
  • MIL represents a fault light, wherein different display modes of the fault light icon, such as different display colors, indicate whether a fault state occurs.
  • DTC or Pd DTC stands for DTC.
  • the number of detected fault codes can be displayed. In Fig. 5, the number of fault codes is zero.
  • MIS to EGR represent OBD standard sensors, for example, FUE stands for fuel sensor and AIR stands for air conditioner sensor.
  • a function button called a one-button IM is separately designed on the diagnostic device.
  • the diagnostic device When the user presses the function button in any state, the diagnostic device will establish the ECU with the fastest speed using the method shown in FIG. 2. Communication, get some basic status information of the ECU. For example, the fault light, the number of fault codes, the sensor status, etc., and use the UI interface to display these status information, thereby helping the user to quickly locate the vehicle fault problem.
  • a graphical display manner may be used to display the detection result of each status information, for example, the status information is normally indicated by a tick, and the status information is abnormally represented by a cross. The name of each status information can also be represented by a corresponding simplified graph.
  • a single interface is used to display all the basic information without using multiple interfaces, so that the diagnosis result is more clear.
  • the voltage characteristics of the selected pin are obtained by collecting and analyzing the level signal of the selected pin in the interface of the onboard diagnostic system; determining all candidate communication protocols that meet the voltage characteristic; using the candidate communication a protocol to scan the selected pin, determine a target communication protocol corresponding to the selected pin; establish data communication with the electronic control unit ECU of the vehicle through the target communication protocol, and acquire state information of the ECU, The status information of the ECU is output as a diagnosis result.
  • FIG. 6 is a schematic structural diagram of a vehicle diagnosing device according to Embodiment 1 of the present invention. As shown in FIG. 6 , the device in this embodiment may include:
  • the acquisition module 10 is configured to collect a level signal of the selected pin in the interface of the onboard diagnostic system to obtain a voltage characteristic of the level signal;
  • a determining module 20 configured to determine, according to the voltage characteristic, a candidate communication protocol related to the selected pin
  • the communication module 30 is configured to send a connection request signal based on the candidate communication protocol to the selected pin to determine whether a target communication protocol exists in the candidate communication protocol;
  • the voltage characteristic of the level signal includes: a high level voltage value and/or a low level voltage value.
  • the determining module 20 is specifically configured to:
  • a communication protocol in which the value of the high level voltage value ranges from the high level voltage value of the selected pin is used as a candidate communication protocol;
  • a communication protocol in which a range of low-level voltage values covers a low-level voltage value of the selected pin is used as a candidate communication protocol;
  • the value range of the high level voltage value covers the high level voltage value of the selected pin, and the value range of the low level voltage value covers the low voltage of the selected pin.
  • a flat voltage value communication protocol is used as a candidate communication protocol.
  • the communication module 30 is specifically configured to:
  • a connection request signal based on one candidate communication protocol of the plurality of candidate communication protocols is sequentially sent to the selected pin;
  • a response signal for a connection request signal fed back through the selected pin is received, determining that a target communication protocol exists in the plurality of candidate communication protocols, and using the candidate communication protocol on which the connection request signal is based Target communication protocol.
  • the communication module 30 is specifically configured to:
  • connection request signal corresponding to each selected pin is sent to the plurality of selected pins in parallel; wherein, the connection request signal corresponding to each selected pin is based on The candidate communication protocol associated with each selected pin.
  • This embodiment can perform the technical solutions in the foregoing methods shown in FIG. 2 and FIG. 4 , and the implementation process and technical effects are similar to the foregoing methods, and details are not described herein again.
  • FIG. 7 is a schematic structural diagram of a vehicle diagnostic apparatus according to Embodiment 2 of the present invention. As shown in FIG. 7, the apparatus in this embodiment may further include:
  • the obtaining module 40 is configured to acquire at least two pieces of data of the ECU, and determine fault state information corresponding to each of the at least two pieces of data according to at least two pieces of data of the ECU.
  • This embodiment can perform the technical solutions in the foregoing methods shown in FIG. 2 and FIG. 4 , and the implementation process and technical effects are similar to the foregoing methods, and details are not described herein again.
  • FIG. 8 is a schematic structural diagram of a vehicle diagnosing device according to Embodiment 3 of the present invention. As shown in FIG. 8 , the device in this embodiment may further include:
  • the display module 50 is configured to display fault state information corresponding to each data on the display interface, where the fault state information includes: a fault light, a fault code number, and a sensor state.
  • This embodiment can perform the technical solutions in the foregoing methods shown in FIG. 2 and FIG. 4 , and the implementation process and technical effects are similar to the foregoing methods, and details are not described herein again.
  • FIG. 9 is a schematic structural diagram of a vehicle diagnosing device according to Embodiment 1 of the present invention. As shown in FIG. 9, the device in this embodiment includes:
  • a processor 70 configured to execute the program stored by the memory 60, when the program is executed, the processor 70 is configured to execute
  • the communication interface 80 is configured to be connected to the OBD interface of the vehicle through a connection line.
  • the memory 60, the processor 70 and the communication interface 80 can be connected by a bus coupling.
  • the processor 70 can communicate with the vehicle by controlling the communication interface 80.
  • This embodiment can perform the technical solutions in the foregoing methods shown in FIG. 2 and FIG. 4 , and the implementation process and technical effects are similar to the foregoing methods, and details are not described herein again.
  • the vehicle diagnostic device or the vehicle diagnostic device in the embodiment of the present application may be a vehicle diagnostic interface device, or a vehicle diagnostic device or a user terminal installed with a diagnostic program.
  • the embodiment of the present application further provides a computer readable storage medium to perform the method described in any of the foregoing embodiments of FIG. 2 and FIG.
  • Computer-executable storage medium stores computer-executable instructions that, when executed by at least one processor of a user device, execute the various possible methods described above.
  • the computer readable medium comprises a computer storage medium and a communication medium, wherein the communication medium comprises any medium that facilitates transfer of the computer program from one location to another.
  • a storage medium may be any available media that can be accessed by a general purpose or special purpose computer.
  • An exemplary storage medium is coupled to the processor to enable the processor to read information from, and write information to, the storage medium.
  • the storage medium can also be an integral part of the processor.
  • the processor and the storage medium can be located in an ASIC. Additionally, the ASIC can be located in a vehicle diagnostic device.
  • the processor and the storage medium may also reside as discrete components in the communication device.
  • the aforementioned program can be stored in a computer readable storage medium.
  • the program when executed, performs the steps including the foregoing method embodiments; and the foregoing storage medium includes various media that can store program codes, such as a ROM, a RAM, a magnetic disk, or an optical disk.

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Testing Electric Properties And Detecting Electric Faults (AREA)
  • Traffic Control Systems (AREA)

Abstract

Provided are a vehicle diagnosis method and device, wherein the method comprises: collecting a level signal of a selected pin in a vehicle-mounted diagnosis system interfaces to acquire voltage characteristics of the level signal (S101); according to the voltage characteristics, determining candidate communication protocols associated with the selected pin (S102); sending a connection request signal based on the candidate communication protocols to the selected pin to determine whether a target communication protocol is presented in the candidate communication protocols (S103); if the target communication protocol is presented, establishing the communication between the vehicle diagnosis device and an electronic control unit ECU of the vehicle based on the target communication protocol (S104). The vehicle diagnosis method and device reduce the scanning protocol quantity of OBD interface pins, improve the scanning efficiency, and shorten the vehicle diagnosis time.

Description

车辆诊断方法和装置Vehicle diagnosis method and device

本申请要求于2018年1月16日提交中国专利局、申请号为201810038131.7、申请名称为“车辆诊断方法和装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。The present application claims priority to Chinese Patent Application No. 20181003813, filed on Jan.

技术领域Technical field

本申请涉及汽车故障诊断技术领域,尤其涉及一种车辆诊断方法和装置。The present application relates to the field of automobile fault diagnosis technology, and in particular, to a vehicle diagnosis method and apparatus.

背景技术Background technique

目前,大部分汽车上都安装有车载诊断系统(On-Board Diagnostic,OBD),OBD主要用于根据发动机的运行状况和尾气后处理系统的工作状态来对车辆的状态进行诊断,具有通用性强,诊断方便的优点。At present, most of the cars are equipped with On-Board Diagnostic (OBD). The OBD is mainly used to diagnose the state of the vehicle according to the operating conditions of the engine and the working state of the exhaust after-treatment system. It is highly versatile. The advantage of convenient diagnosis.

汽车上设置有OBD接口。其中,OBD接口中的各引脚基于不同的车用通信协议与车辆中各电子控制单元(Electronic Control Unit,ECU)对应连接。车辆诊断设备可以通过该OBD接口与车辆中的ECU建立连接。车辆诊断设备在通过OBD接口与ECU建立连接的过程中,一般需要通过各种车用通信协议依次对该ECU对应的引脚扫描的方式来确定与该ECU的通信协议。并基于所确定通信协议与ECU进行通讯,从而获取车辆中的信息。An OBD interface is provided on the car. Among them, each pin in the OBD interface is connected to each electronic control unit (ECU) in the vehicle based on different vehicle communication protocols. The vehicle diagnostic device can establish a connection with an ECU in the vehicle through the OBD interface. In the process of establishing a connection between the vehicle diagnostic device and the ECU through the OBD interface, it is generally required to determine the communication protocol with the ECU by sequentially scanning the pin corresponding to the ECU through various vehicle communication protocols. And communicating with the ECU based on the determined communication protocol to acquire information in the vehicle.

但是,依次扫描的方式来确定与ECU的通信协议,往往需要耗费较长的时间,扫描效率低,延长了车辆诊断设备与车辆建立连接的时间。However, the sequential scanning method to determine the communication protocol with the ECU often takes a long time, and the scanning efficiency is low, which prolongs the time for the vehicle diagnostic device to establish a connection with the vehicle.

发明内容Summary of the invention

本发明实施例提供一种车辆诊断方法和装置,以缩短车辆诊断设备与车辆建立连接的时间。Embodiments of the present invention provide a vehicle diagnosis method and apparatus to shorten a time when a vehicle diagnosis apparatus establishes a connection with a vehicle.

第一方面,本发明实施例提供一种车辆诊断方法,包括:In a first aspect, an embodiment of the present invention provides a vehicle diagnosis method, including:

采集车载诊断系统接口中选定管脚的电平信号,得到所述电平信号的电压特性;Collecting a level signal of a selected pin in an interface of the onboard diagnostic system to obtain a voltage characteristic of the level signal;

根据所述电压特性,确定与所述选定管脚相关的候选通信协议;Determining a candidate communication protocol associated with the selected pin based on the voltage characteristic;

向所述选定管脚发送基于所述候选通信协议的连接请求信号,以确定所述候选通信协议中是否存在目标通信协议;Sending a connection request signal based on the candidate communication protocol to the selected pin to determine whether a target communication protocol exists in the candidate communication protocol;

若存在目标通信协议,则基于所述目标通信协议建立汽车诊断设备与车辆的电子控制单元ECU之间的通信。If there is a target communication protocol, communication between the vehicle diagnostic device and the electronic control unit ECU of the vehicle is established based on the target communication protocol.

可选地,所述电平信号的电压特性,包括:高电平电压值和/或低电平电压值。Optionally, the voltage characteristic of the level signal includes: a high level voltage value and/or a low level voltage value.

可选地,所述根据所述电压特性,确定与所述选定管脚相关的候选通信协议,包括:Optionally, determining, according to the voltage characteristic, a candidate communication protocol related to the selected pin, including:

若所述电压特性包括高电平电压值,确定所对应的高电压范围包括所述高电平电压值的通信协议为候选通信协议;或If the voltage characteristic includes a high level voltage value, determining that the corresponding high voltage range includes the communication protocol of the high level voltage value as a candidate communication protocol; or

若所述电压特性包括低电平电压值,确定所对应的低电压范围包括所述低电平电压值的通信协议为候选通信协议;或If the voltage characteristic includes a low-level voltage value, determining that the corresponding low-voltage range includes the communication protocol of the low-level voltage value as a candidate communication protocol; or

若所述电压特性包括高电平电压值和低电平电压值,确定所对应的高电压范围包括所述高电平电压值,且所对应的低电压范围包括所述低电平电压值的通信协议为候选通信协议。If the voltage characteristic includes a high level voltage value and a low level voltage value, determining that the corresponding high voltage range includes the high level voltage value, and the corresponding low voltage range includes the low level voltage value The communication protocol is a candidate communication protocol.

可选地,所述向所述选定管脚发送基于所述候选通信协议的连接请求信号,以确定所述候选通信协议中是否存在目标通信协议,包括:Optionally, the sending, by the selected pin, a connection request signal based on the candidate communication protocol to determine whether a target communication protocol exists in the candidate communication protocol, including:

当候选通信协议为多个时,依次向所述选定管脚发送基于多个候选通信协议中的一个候选通信协议的连接请求信号;When the number of candidate communication protocols is multiple, a connection request signal based on one candidate communication protocol of the plurality of candidate communication protocols is sequentially sent to the selected pin;

若接收到通过所述选定管脚反馈的针对一个连接请求信号的响应信号,则确定所述多个候选通信协议中存在目标通信协议,并将所述连接请求信号所基于的候选通信协议作为目标通信协议。If a response signal for a connection request signal fed back through the selected pin is received, determining that a target communication protocol exists in the plurality of candidate communication protocols, and using the candidate communication protocol on which the connection request signal is based Target communication protocol.

可选地,所述向所述选定管脚发送基于所述候选通信协议的连接请求信号,包括:Optionally, the sending, by the selected pin, a connection request signal based on the candidate communication protocol, including:

当选定管脚为多个时,向所述多个选定管脚并行发送每个选定管脚对应的连接请求信号;其中,所述每个选定管脚对应的连接请求信号基于与所述每个选定管脚相关的候选通信协议。When a plurality of selected pins are multiple, a connection request signal corresponding to each selected pin is sent to the plurality of selected pins in parallel; wherein, the connection request signal corresponding to each selected pin is based on The candidate communication protocol associated with each selected pin.

可选地,所述方法还包括:Optionally, the method further includes:

获取所述ECU的至少2个数据;Obtaining at least 2 data of the ECU;

根据所述ECU的至少2个数据,确定所述至少2个数据中每个数据对应的故障状态信息。Determining fault state information corresponding to each of the at least two data according to at least two data of the ECU.

可选地,所述方法还包括:Optionally, the method further includes:

在显示界面上显示所述每个数据对应的故障状态信息,所述故障状态信息包括:故障灯、故障码个数、传感器状态。The fault state information corresponding to each of the data is displayed on the display interface, where the fault state information includes: a fault light, a fault code number, and a sensor state.

第二方面,本发明实施例提供一种车辆诊断装置,包括:In a second aspect, an embodiment of the present invention provides a vehicle diagnostic apparatus, including:

采集模块,用于采集车载诊断系统接口中选定管脚的电平信号,得到所述电平信号的电压特性;An acquisition module, configured to collect a level signal of a selected pin in an interface of the onboard diagnostic system, to obtain a voltage characteristic of the level signal;

确定模块,用于根据所述电压特性,确定与所述选定管脚相关的候选通信协议;a determining module, configured to determine a candidate communication protocol related to the selected pin according to the voltage characteristic;

通信模块,用于向所述选定管脚发送基于所述候选通信协议的连接请求信号,以确定所述候选通信协议中是否存在目标通信协议;a communication module, configured to send a connection request signal based on the candidate communication protocol to the selected pin to determine whether a target communication protocol exists in the candidate communication protocol;

若存在目标通信协议,则基于所述目标通信协议建立汽车诊断设备与车辆 的电子控制单元ECU之间的通信。If there is a target communication protocol, communication between the vehicle diagnostic device and the electronic control unit ECU of the vehicle is established based on the target communication protocol.

可选地,所述电平信号的电压特性,包括:高电平电压值和/或低电平电压值。Optionally, the voltage characteristic of the level signal includes: a high level voltage value and/or a low level voltage value.

可选地,所述确定模块具体用于,Optionally, the determining module is specifically configured to:

若所述电压特性包括高电平电压值,确定所对应的高电压范围包括所述高电平电压值的通信协议为候选通信协议;或If the voltage characteristic includes a high level voltage value, determining that the corresponding high voltage range includes the communication protocol of the high level voltage value as a candidate communication protocol; or

若所述电压特性包括低电平电压值,确定所对应的低电压范围包括所述低电平电压值的通信协议为候选通信协议;或If the voltage characteristic includes a low-level voltage value, determining that the corresponding low-voltage range includes the communication protocol of the low-level voltage value as a candidate communication protocol; or

若所述电压特性包括高电平电压值和低电平电压值,确定所对应的高电压范围包括所述高电平电压值,且所对应的低电压范围包括所述低电平电压值的通信协议为候选通信协议。If the voltage characteristic includes a high level voltage value and a low level voltage value, determining that the corresponding high voltage range includes the high level voltage value, and the corresponding low voltage range includes the low level voltage value The communication protocol is a candidate communication protocol.

可选地,所述通信模块,具体用于:Optionally, the communication module is specifically configured to:

当候选通信协议为多个时,依次向所述选定管脚发送基于多个候选通信协议中的一个候选通信协议的连接请求信号;When the number of candidate communication protocols is multiple, a connection request signal based on one candidate communication protocol of the plurality of candidate communication protocols is sequentially sent to the selected pin;

若接收到通过所述选定管脚反馈的针对一个连接请求信号的响应信号,则确定所述多个候选通信协议中存在目标通信协议,并将所述连接请求信号所基于的候选通信协议作为目标通信协议。If a response signal for a connection request signal fed back through the selected pin is received, determining that a target communication protocol exists in the plurality of candidate communication protocols, and using the candidate communication protocol on which the connection request signal is based Target communication protocol.

可选地,所述通信模块,具体用于:Optionally, the communication module is specifically configured to:

当选定管脚为多个时,向所述多个选定管脚并行发送每个选定管脚对应的连接请求信号;其中,所述每个选定管脚对应的连接请求信号基于与所述每个选定管脚相关的候选通信协议。When a plurality of selected pins are multiple, a connection request signal corresponding to each selected pin is sent to the plurality of selected pins in parallel; wherein, the connection request signal corresponding to each selected pin is based on The candidate communication protocol associated with each selected pin.

可选地,所述装置还包括:Optionally, the device further includes:

获取模块,用于获取所述ECU的至少2个数据;并根据所述ECU的至少2个数据,确定所述至少2个数据中每个数据对应的故障状态信息。And an acquiring module, configured to acquire at least two pieces of data of the ECU; and determine fault state information corresponding to each of the at least two pieces of data according to at least two pieces of data of the ECU.

可选地,所述装置还包括:Optionally, the device further includes:

显示模块,用于在显示界面上显示所述每个数据对应的故障状态信息,所述故障状态信息包括:故障灯、故障码个数、传感器状态。And a display module, configured to display, on the display interface, fault state information corresponding to each of the data, where the fault state information includes: a fault light, a fault code number, and a sensor state.

第三方面,本发明实施例提供一种车辆诊断设备,包括:In a third aspect, an embodiment of the present invention provides a vehicle diagnostic apparatus, including:

存储器,用于存储程序;Memory for storing programs;

处理器,用于执行所述存储器存储的所述程序,当所述程序被执行时,所述处理器用于执行第一方面中任一所述的方法。a processor for executing the program stored by the memory, the processor for performing the method of any of the first aspects when the program is executed.

第四方面,本发明实施例提供一种计算机可读存储介质,包括:指令,当其在计算机上运行时,使得计算机执行第一方面中任一所述的方法。In a fourth aspect, an embodiment of the present invention provides a computer readable storage medium, comprising: instructions, when executed on a computer, causing a computer to perform the method of any of the first aspects.

本发明实施例提供的车辆诊断方法和装置,通过采集车载诊断系统接口中选定管脚的电平信号,得到所述电平信号的电压特性;根据所述电压特性,确定与所述选定管脚相关的候选通信协议;向所述选定管脚发送基于所述候选通 信协议的连接请求信号,以确定所述候选通信协议中是否存在目标通信协议;若存在目标通信协议,则基于所述目标通信协议建立汽车诊断设备与车辆的电子控制单元ECU之间的通信。通过上述方式,可以降低选定管脚对应的通信协议的数量,缩短了与ECU建立连接的时间,提升了连接效率。The vehicle diagnosis method and device provided by the embodiment of the present invention obtains the voltage characteristic of the level signal by collecting the level signal of the selected pin in the interface of the onboard diagnostic system; determining and selecting according to the voltage characteristic a pin-related candidate communication protocol; sending a connection request signal based on the candidate communication protocol to the selected pin to determine whether a target communication protocol exists in the candidate communication protocol; if a target communication protocol exists, based on The target communication protocol establishes communication between the vehicle diagnostic device and the electronic control unit ECU of the vehicle. In the above manner, the number of communication protocols corresponding to the selected pins can be reduced, the time for establishing a connection with the ECU is shortened, and the connection efficiency is improved.

附图说明DRAWINGS

图1为本发明提供的应用场景一的示意图;FIG. 1 is a schematic diagram of an application scenario 1 provided by the present invention;

图2为本发明实施例一提供的车辆诊断方法的流程图;2 is a flowchart of a vehicle diagnosis method according to Embodiment 1 of the present invention;

图3为本发明实施例一提供的候选通信协议对多个选定管脚的扫描原理示意图;FIG. 3 is a schematic diagram of a scanning principle of a candidate communication protocol for a plurality of selected pins according to Embodiment 1 of the present invention; FIG.

图4为本发明实施例二提供的车辆诊断方法的流程图;4 is a flowchart of a vehicle diagnosis method according to Embodiment 2 of the present invention;

图5为本发明提供的故障诊断的显示界面示意图;FIG. 5 is a schematic diagram of a display interface for fault diagnosis provided by the present invention; FIG.

图6为本发明实施例一提供的车辆诊断装置的结构示意图;FIG. 6 is a schematic structural diagram of a vehicle diagnosis apparatus according to Embodiment 1 of the present invention; FIG.

图7为本发明实施例二提供的车辆诊断装置的结构示意图;FIG. 7 is a schematic structural diagram of a vehicle diagnosis apparatus according to Embodiment 2 of the present invention; FIG.

图8为本发明实施例三提供的车辆诊断装置的结构示意图;FIG. 8 is a schematic structural diagram of a vehicle diagnosis apparatus according to Embodiment 3 of the present invention; FIG.

图9为本发明实施例一提供的车辆诊断设备的结构示意图。FIG. 9 is a schematic structural diagram of a vehicle diagnosis apparatus according to Embodiment 1 of the present invention.

具体实施方式Detailed ways

为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention will be described in conjunction with the accompanying drawings in the embodiments of the present invention. It is obvious that the described embodiments are part of the present invention. Embodiments, but not all of the embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.

以下,对本申请中的部分用语进行解释说明,以便于本领域技术人员理解:In the following, some of the terms in this application are explained so as to be understood by those skilled in the art:

1)车载诊断系统(On-Board Diagnostic,OBD),II型车载诊断系统(On-Board Diagnostic II,OBD II),用于监测车辆中各系统的工作状态是否异常,若异常,则确定出对应系统中的具体故障,并以诊断故障码(Diagnostic Trouble Codes,DTC)的形式进行存储。系统可根据DTC进行自诊断,以及时对车辆进行维修或保养,OBD也可以设有OBD接口,该OBD接口可以与外部的车辆诊断设备进行通信连接,从而可以使维修人员利用上述设备及时读取到DTC,并进行对车辆的维修和保养,减少人工诊断的时间。1) On-Board Diagnostic (OBD), On-Board Diagnostic II (OBD II), is used to monitor whether the working status of each system in the vehicle is abnormal. If abnormal, determine the corresponding Specific faults in the system and stored in the form of Diagnostic Trouble Codes (DTC). The system can perform self-diagnosis according to DTC, and repair or maintain the vehicle in time. OBD can also be equipped with OBD interface. The OBD interface can be connected with external vehicle diagnostic equipment, so that maintenance personnel can use the above equipment to read in time. Go to DTC and carry out repair and maintenance of the vehicle to reduce the time for manual diagnosis.

2)电子控制单元(Electronic Control Unit,ECU),其布设在车辆的各系统中,如发动机系统、排放控制系统、燃油系统等;其可以通过OBD接口与车辆诊断设备实现通信。其中,OBD接口中可以包括多个管脚,各系统中的ECU可以与OBD接口中的至少一个管脚通过总线连接。其中,各系统连接对应管脚 所使用的总线协议可以相同,可以不同,在此不予限定。2) Electronic Control Unit (ECU), which is arranged in various systems of the vehicle, such as an engine system, an emission control system, a fuel system, etc.; it can communicate with the vehicle diagnostic device through the OBD interface. Wherein, the OBD interface may include a plurality of pins, and the ECU in each system may be connected to at least one of the OBD interfaces through a bus. The bus protocol used for connecting the corresponding pins of each system may be the same, and may be different, and is not limited herein.

下面结合图1,对本申请实施例涉及的应用场景进行说明。The application scenario involved in the embodiment of the present application is described below with reference to FIG. 1 .

图1为本发明提供的应用场景一的示意图。如图1所示,该应用场景下,车辆包括一个或多个系统1,如发动机系统、排放控制系统、燃油系统等,每个系统中的ECU2各自通过总线与OBD接口3中对应的管脚连接。各系统中的ECU与OBD接口中对应管脚的连接总线可以相同,可以不同,在此不予限定。OBD接口3可以通过连接线4与车辆诊断设备5连接。在此,车辆诊断设备5可以包括原厂诊断仪,综合平台诊断设备,安装有具备诊断功能的应用程序的终端等,在此不予限定。其中,OBD接口3可以包括16个标准管脚,或者,OBD接口3可以包括其他形式的管脚,在此不予限定。FIG. 1 is a schematic diagram of an application scenario 1 provided by the present invention. As shown in FIG. 1 , in this application scenario, the vehicle includes one or more systems 1 , such as an engine system, an emission control system, a fuel system, etc., and each of the ECUs 2 in each system passes through a bus and a corresponding pin in the OBD interface 3 . connection. The connection bus of the ECU in each system and the corresponding pin in the OBD interface may be the same, and may be different, and is not limited herein. The OBD interface 3 can be connected to the vehicle diagnostic device 5 via a connection line 4. Here, the vehicle diagnostic device 5 may include an original diagnostic device, a comprehensive platform diagnostic device, a terminal to which an application having a diagnostic function is installed, and the like, which is not limited herein. The OBD interface 3 may include 16 standard pins. Alternatively, the OBD interface 3 may include other types of pins, which are not limited herein.

具体地,车辆诊断设备5通过连接线4与OBD接口3建立物理连接后,车辆诊断设备5会对OBD接口3的某一个管脚进行通信协议扫描。在此,进行通信协议扫描是指依次基于一个通信协议向该管脚发送连接请求,该管脚可以依次将连接请求通过总线发送至对应的系统ECU中,直至车辆诊断设备5接收到该管脚发送的针对某一通信协议的连接请求的响应。进而,车辆诊断设备可以与该系统ECU基于该通信协议建立通信连接,以实现数据通信。Specifically, after the vehicle diagnostic device 5 establishes a physical connection with the OBD interface 3 through the connection line 4, the vehicle diagnostic device 5 performs a communication protocol scan on a certain pin of the OBD interface 3. Here, performing the communication protocol scanning means that a connection request is sent to the pin in sequence based on a communication protocol, and the pin can sequentially send the connection request to the corresponding system ECU through the bus until the vehicle diagnostic device 5 receives the pin. The response sent by the connection request for a certain communication protocol. Further, the vehicle diagnostic device can establish a communication connection with the system ECU based on the communication protocol to implement data communication.

但是,上述方式中,对管脚进行多个通信协议扫描,往往需要耗费较长的时间,扫描效率低,延长了通信建立时间。However, in the above manner, multiple communication protocol scans on the pins often take a long time, the scanning efficiency is low, and the communication establishment time is prolonged.

基于上述问题,下面结合附图介绍本申请实施例。Based on the above problems, the embodiments of the present application will be described below with reference to the accompanying drawings.

图2为本发明实施例一提供的车辆诊断方法的流程图,如图2所示,本实施例中的方法可以包括:2 is a flowchart of a method for diagnosing a vehicle according to a first embodiment of the present invention. As shown in FIG. 2, the method in this embodiment may include:

S101、采集车载诊断系统接口中选定管脚的电平信号,得到电平信号的电压特性。S101. Collect a level signal of the selected pin in the interface of the onboard diagnostic system to obtain a voltage characteristic of the level signal.

其中,本申请实施例中,选定管脚可以是指车辆诊断设备基于预设条件选取的管脚,也可以是指OBD接口中的任意一个管脚,在此不予限定。In the embodiment of the present application, the selected pin may be a pin selected by the vehicle diagnostic device based on a preset condition, or may be any one of the OBD interfaces, which is not limited herein.

本实施例中,可以通过采集选定管脚在连接诊断设备时的电平信号,以获取该电平信号的电压特性。In this embodiment, the voltage characteristic of the level signal can be obtained by collecting a level signal when the selected pin is connected to the diagnostic device.

其中,该电平信号的电压特性可以包括:高电平电压值和/或低电平电压值。The voltage characteristic of the level signal may include: a high level voltage value and/or a low level voltage value.

S102、根据电压特性,确定与选定管脚相关的候选通信协议。S102. Determine a candidate communication protocol related to the selected pin according to the voltage characteristic.

本实施例中,若所述电压特性包括高电平电压值,确定所对应的高电压范围包括所述高电平电压值的通信协议为候选通信协议;或In this embodiment, if the voltage characteristic includes a high level voltage value, determining that the corresponding high voltage range includes the communication protocol of the high level voltage value is a candidate communication protocol; or

若所述电压特性包括低电平电压值,确定所对应的低电压范围包括所述低电平电压值的通信协议为候选通信协议;或If the voltage characteristic includes a low-level voltage value, determining that the corresponding low-voltage range includes the communication protocol of the low-level voltage value as a candidate communication protocol; or

若所述电压特性包括高电平电压值和低电平电压值,确定所对应的高电压范围包括所述高电平电压值,且所对应的低电压范围包括所述低电平电压值的 通信协议为候选通信协议。If the voltage characteristic includes a high level voltage value and a low level voltage value, determining that the corresponding high voltage range includes the high level voltage value, and the corresponding low voltage range includes the low level voltage value The communication protocol is a candidate communication protocol.

具体的,本实施例以获得的电压特性为高电平电压值为例进行说明。Specifically, the voltage characteristic obtained in this embodiment is an example of a high-level voltage value.

假设OBD接口采用DLC(Data Link Connector,数据连接器)形式,其包括的16个管脚的定义及说明可以参见现有技术,在此不予说明。It is assumed that the OBD interface is in the form of a DLC (Data Link Connector), and the definition and description of the 16 pins included in the OBD interface can be referred to the prior art, and will not be described here.

检测PIN6脚的高电平电压值是否在1.8V到3.0V之间,如果是,则确定与1.8V至3.0V对应的候选通信协议为ISO15765-4协议或SAE J1939协议。It is detected whether the high-level voltage value of the PIN6 pin is between 1.8V and 3.0V, and if so, it is determined that the candidate communication protocol corresponding to 1.8V to 3.0V is the ISO15765-4 protocol or the SAE J1939 protocol.

检测DLC PIN12脚的高电平电压值是否在1.8V到3.0V之间,如果是,则确定与1.8V到3.0V对应的候选通信协议为SAE J1939协议。It is detected whether the high-level voltage value of the DLC PIN12 pin is between 1.8V and 3.0V, and if so, it is determined that the candidate communication protocol corresponding to 1.8V to 3.0V is the SAE J1939 protocol.

检测DLC PIN2脚的高电平电压值是否在3.8V到5.5V之间,如果是,则确定与3.8V到5.5V对应的候选通信协议为SAE J1850 PWM协议。It is detected whether the high-level voltage value of the DLC PIN2 pin is between 3.8V and 5.5V. If so, it is determined that the candidate communication protocol corresponding to 3.8V to 5.5V is the SAE J1850 PWM protocol.

检测DLC PIN2脚的高电平电压值是否在6.25V到8.75V之间,如果是,则确定与6.25V到8.75V对应的候选通信协议为SAE J1850 VPW协议。It is detected whether the high level voltage value of the DLC PIN2 pin is between 6.25V and 8.75V. If yes, it is determined that the candidate communication protocol corresponding to 6.25V to 8.75V is the SAE J1850 VPW protocol.

检测DLC PIN7脚的高电平电压值是否在3.8V到5.5V之间,如果是,则确定与3.8V到5.5V对应的候选通信协议为SAE J1708协议。It is detected whether the high-level voltage value of the DLC PIN7 pin is between 3.8V and 5.5V, and if so, it is determined that the candidate communication protocol corresponding to 3.8V to 5.5V is the SAE J1708 protocol.

检测DLC PIN7脚的高电平电压值是否在8.4V到12.5V之间,如果是,则确定与8.4V到12.5V对应的候选通信协议为ISO9141-2或ISO14230-4协议。It is detected whether the high level voltage value of the DLC PIN7 pin is between 8.4V and 12.5V, and if so, it is determined that the candidate communication protocol corresponding to 8.4V to 12.5V is the ISO9141-2 or ISO14230-4 protocol.

采用上述方法,可以得到选定管脚相关的候选通信协议。采用低电平电压值进行候选通信协议的判断过程与上述高电平电压值的判断过程类似,此处不再重复说明。Using the above method, a candidate communication protocol associated with the selected pin can be obtained. The judgment process of the candidate communication protocol using the low-level voltage value is similar to the above-described determination process of the high-level voltage value, and the description thereof will not be repeated here.

S103、向选定管脚发送基于候选通信协议的连接请求信号,以确定候选通信协议中是否存在目标通信协议。S103. Send a connection request signal based on the candidate communication protocol to the selected pin to determine whether a target communication protocol exists in the candidate communication protocol.

本实施例中,向选定管脚发送基于候选通信协议的连接请求信号,若接收到选定管脚反馈相应的响应信号,则将该候选通信协议作为目标通信协议。可选地,当候选通信协议为多个时,依次向所述选定管脚发送基于多个候选通信协议中的一个候选通信协议的连接请求信号;In this embodiment, a connection request signal based on the candidate communication protocol is sent to the selected pin, and if the selected pin receives the corresponding response signal, the candidate communication protocol is used as the target communication protocol. Optionally, when the candidate communication protocol is multiple, the connection request signal based on one candidate communication protocol of the multiple candidate communication protocols is sequentially sent to the selected pin;

若接收到通过所述选定管脚反馈的针对一个连接请求信号的响应信号,则确定所述多个候选通信协议中存在目标通信协议,并将所述连接请求信号所基于的候选通信协议作为目标通信协议。If a response signal for a connection request signal fed back through the selected pin is received, determining that a target communication protocol exists in the plurality of candidate communication protocols, and using the candidate communication protocol on which the connection request signal is based Target communication protocol.

本申请实施例中,基于多个候选协议中的一个,依次发送连接请求信号,也可以理解为对通信协议进行扫描,或理解为对通信协议进行串行扫描。In the embodiment of the present application, the connection request signal is sequentially sent based on one of the multiple candidate protocols, which may also be understood as scanning the communication protocol or understanding serial scanning of the communication protocol.

可选地,当选定管脚为多个时,基于上述方式确定每个选定管脚相关的候选通信协议。进而,向所述多个选定管脚并行发送每个选定管脚对应的连接请求信号;其中,所述每个选定管脚对应的连接请求信号基于与所述每个选定管脚相关的候选通信协议。在此,并行发送每个选定管脚对应的连接请求信号,也可以理解为对通信协议进行并行扫描。Optionally, when there are multiple selected pins, the candidate communication protocol associated with each selected pin is determined based on the above manner. Further, a connection request signal corresponding to each selected pin is sent to the plurality of selected pins in parallel; wherein a connection request signal corresponding to each selected pin is based on each selected pin Related candidate communication protocols. Here, the connection request signal corresponding to each selected pin is transmitted in parallel, which can also be understood as parallel scanning of the communication protocol.

下面,结合图3,对上述方法进行举例性说明。并对串行扫描以及并行扫 描做进一步说明。Hereinafter, the above method will be exemplified in conjunction with FIG. 3. Further description of serial scanning and parallel scanning is provided.

具体地,图3为本发明实施例一提供的候选通信协议对多个选定管脚的扫描原理示意图,在本实施例中,串行扫描方式是指:每次扫描采用一个候选通信协议,在前一个候选通信协议扫描结束之后,开始下一个候选通信协议的扫描,直到完成所有候选通信协议的扫描。Specifically, FIG. 3 is a schematic diagram of a scanning principle of a candidate communication protocol for a plurality of selected pins according to Embodiment 1 of the present invention. In this embodiment, the serial scanning mode refers to: using one candidate communication protocol for each scan. After the end of the previous candidate communication protocol scan, the scanning of the next candidate communication protocol is started until the scanning of all candidate communication protocols is completed.

本实施例中,在通过候选通信协议扫描OBD接口中相关的选定管脚时,利用该候选通信协议向选定管脚连接的ECU发送一个连接请求信号,当接收到该ECU返回的针对该连接请求信号的反馈响应信号时,说明通过该候选通信协议可以建立车辆诊断设备与该选定管脚连接的ECU之间的数据通信,因此将该候选通信协议作为目标通信协议。In this embodiment, when the selected selected pin in the OBD interface is scanned by the candidate communication protocol, the candidate communication protocol is used to send a connection request signal to the ECU connected to the selected pin, and when the ECU returns, When the feedback response signal of the request signal is connected, it is explained that data communication between the vehicle diagnostic device and the ECU connected to the selected pin can be established by the candidate communication protocol, and thus the candidate communication protocol is used as the target communication protocol.

可选地,若目标通信协议为多个时,向用户反馈所有的目标通信协议,并提醒用户从而所述目标通信协议中选出最终的目标通信协议;根据接收到的用户确认信息,确定最终的目标通信协议。Optionally, if the target communication protocol is multiple, all the target communication protocols are fed back to the user, and the user is reminded to select the final target communication protocol from the target communication protocol; and according to the received user confirmation information, the final Target communication protocol.

具体的,以图3所示为例,首先通过采集OBD接口管脚的电平信号来获取各个选定管脚相关的候选通信协议。Specifically, taking the example shown in FIG. 3 as an example, the candidate communication protocol related to each selected pin is obtained by acquiring the level signal of the OBD interface pin.

假设OBD接口采用DLC(Data Link Connector,数据连接器)形式,其包括的16个管脚的定义及说明可以参见现有技术,在此不予说明。It is assumed that the OBD interface is in the form of a DLC (Data Link Connector), and the definition and description of the 16 pins included in the OBD interface can be referred to the prior art, and will not be described here.

例如,根据多数车型统计,确定PIN6或PIN2通常连接有预设系统,如发动机系统等,则可以确定PIN6或PIN2为选定管脚。For example, according to most vehicle model statistics, it is determined that the PIN6 or PIN2 is usually connected to a preset system, such as an engine system, etc., and it can be determined that the PIN6 or PIN2 is the selected pin.

确定PIN6、PIN2为选定管脚时,通过检测PIN6、PIN2的电压特性来确定其对应的候选通信协议。When it is determined that PIN6 and PIN2 are selected pins, the corresponding candidate communication protocol is determined by detecting the voltage characteristics of PIN6 and PIN2.

例如,检测到PIN6脚的高电平电压值在1.8V到3.0V之间,则确定PIN6脚相关的候选通信协议为ISO15765-4协议或SAE J1939协议。For example, if it is detected that the high level voltage value of the PIN6 pin is between 1.8V and 3.0V, it is determined that the candidate communication protocol associated with the PIN6 pin is the ISO15765-4 protocol or the SAE J1939 protocol.

检测到PIN2脚的高电平电压值在3.8V到5.5V之间,则确定PIN2脚相关的候选通信协议为SAE J1850 PWM协议。检测DLC PIN2脚的高电平电压值是否在6.25V到8.75V之间,如果是,则确定与6.25V到8.75V对应的候选通信协议为SAE J1850 VPW协议。It is detected that the high level voltage value of the PIN2 pin is between 3.8V and 5.5V, and it is determined that the candidate communication protocol related to the PIN2 pin is the SAE J1850 PWM protocol. It is detected whether the high level voltage value of the DLC PIN2 pin is between 6.25V and 8.75V. If yes, it is determined that the candidate communication protocol corresponding to 6.25V to 8.75V is the SAE J1850 VPW protocol.

或者,可以检测选定管脚的低电平电压,或同时检测选定管脚的高电平电压或低电平电压,在此不予限定。Alternatively, the low level voltage of the selected pin can be detected, or the high level voltage or the low level voltage of the selected pin can be detected at the same time, which is not limited herein.

进一步地,可以采用并行扫描的方式扫描PIN2和PIN6,以确定目标通信协议。例如,采用并行方式发送基于相关候选协议格式的连接请求,即该连接请求的信号格式符合候选通信协议的协议格式。当接收到通过所述选定管脚反馈的连接请求信号的响应信号,则确定所述连接请求信号所基于的候选通信协议作为目标通信协议。Further, PIN2 and PIN6 can be scanned in a parallel scan to determine the target communication protocol. For example, the connection request based on the relevant candidate protocol format is sent in a parallel manner, that is, the signal format of the connection request conforms to the protocol format of the candidate communication protocol. When a response signal of the connection request signal fed back through the selected pin is received, the candidate communication protocol on which the connection request signal is based is determined as the target communication protocol.

当某个选定管脚对应多个候选通信协议时,则采用串行扫描的方式对该选定管脚进行扫描。When a selected pin corresponds to multiple candidate communication protocols, the selected pin is scanned by serial scanning.

例如,选定管脚为PIN6时,通过检测PIN6的电压特性,确定DLC的PIN6脚的候选通信协议为:ISO15765-4标准CAN协议、ISO15765-4标准CAN 250K协议、ISO15765-4扩展CAN 500K协议、ISO15765-4扩展CAN 250K协议、SAE J1939协议。此时,需要依次对上述5个候选通信协议进行扫描,以确定目标通信协议。具体地,可以采用串行方式发送基于相关候选协议格式的连接请求,即该连接请求的信号格式符合候选通信协议的协议格式。当接收到通过所述选定管脚反馈的针对一个连接请求信号的响应信号,则确定所述多个候选通信协议中存在目标通信协议,并将所述连接请求信号所基于的候选通信协议作为目标通信协议。For example, when the selected pin is PIN6, the candidate communication protocol of the PIN6 pin of the DLC is determined by detecting the voltage characteristic of the PIN6: ISO15765-4 standard CAN protocol, ISO15765-4 standard CAN 250K protocol, ISO15765-4 extended CAN 500K protocol. ISO15765-4 extends CAN 250K protocol and SAE J1939 protocol. At this time, the above five candidate communication protocols need to be scanned in order to determine the target communication protocol. Specifically, the connection request based on the relevant candidate protocol format may be sent in a serial manner, that is, the signal format of the connection request conforms to the protocol format of the candidate communication protocol. Determining that a target communication protocol exists in the plurality of candidate communication protocols when receiving a response signal for a connection request signal fed back through the selected pin, and using the candidate communication protocol on which the connection request signal is based Target communication protocol.

又例如,选定管脚为PIN7时,通过检测PIN7的电压特性,确定PIN7的候选通信协议为ISO14230-4和ISO9141-2。此时,需要依次对这两个候选协议进行扫描,以确定目标通信协议。For another example, when the selected pin is the PIN 7, the candidate communication protocol of the PIN 7 is determined to be ISO 14230-4 and ISO 9141-2 by detecting the voltage characteristics of the PIN 7. At this point, the two candidate protocols need to be scanned in turn to determine the target communication protocol.

需要说明的是,本实施例在对选定管脚进行候选通信协议扫描时,可以同时对多个选定管脚进行并行扫描,也可以在并行扫描的同时,针对某个选定管脚进行串行扫描。It should be noted that, in this embodiment, when a candidate communication protocol scan is performed on a selected pin, multiple selected pins may be simultaneously scanned in parallel, or may be performed on a selected pin simultaneously in parallel scanning. Serial scan.

S104、若存在目标通信协议,则基于目标通信协议建立汽车诊断设备与车辆的电子控制单元ECU之间的通信。S104. If there is a target communication protocol, establish communication between the vehicle diagnostic device and the electronic control unit ECU of the vehicle based on the target communication protocol.

本实施例中,通过步骤S103确定存在目标通信协议之后,基于目标通信协议,并通过选定管脚建立诊断设备与车辆的电子控制单元ECU之间的数据通信,进而获取该ECU发送的数据等信息,并以此作为判断。In this embodiment, after determining that the target communication protocol exists in step S103, based on the target communication protocol, data communication between the diagnostic device and the electronic control unit ECU of the vehicle is established through the selected pin, thereby acquiring data sent by the ECU, and the like. Information, and use this as a judgement.

本实施例,通过采集车载诊断系统接口中选定管脚的电平信号,得到所述电平信号的电压特性;根据所述电压特性,确定与所述选定管脚相关的候选通信协议;向所述选定管脚发送基于所述候选通信协议的连接请求信号,以确定所述候选通信协议中是否存在目标通信协议;若存在目标通信协议,则基于所述目标通信协议建立汽车诊断设备与车辆的电子控制单元ECU之间的通信。从而减少了OBD接口管脚的扫描协议数量,提高了扫描效率,缩短车辆的诊断时间。In this embodiment, the voltage characteristic of the level signal is obtained by collecting a level signal of the selected pin in the interface of the onboard diagnostic system; and determining a candidate communication protocol related to the selected pin according to the voltage characteristic; Sending a connection request signal based on the candidate communication protocol to the selected pin to determine whether a target communication protocol exists in the candidate communication protocol; if there is a target communication protocol, establishing a car diagnostic device based on the target communication protocol Communication with the electronic control unit ECU of the vehicle. Thereby reducing the number of scanning protocols of the OBD interface pins, improving scanning efficiency and shortening the diagnosis time of the vehicle.

图4为本发明实施例二提供的车辆诊断方法的流程图,如图4所示,本实施例中的方法在图2所示方法的基础上还可以包括:4 is a flowchart of a vehicle diagnosis method according to Embodiment 2 of the present invention. As shown in FIG. 4, the method in this embodiment may further include:

S201、获取ECU的至少2个数据。S201. Acquire at least two pieces of data of the ECU.

本实施例中,汽车诊断设备通过目标通信协议建立与ECU的通信,并获取所述ECU的至少2个数据,其中,从ECU中获取的数据对应了ECU的当前状态信息。In this embodiment, the vehicle diagnostic device establishes communication with the ECU through the target communication protocol, and acquires at least two data of the ECU, wherein the data acquired from the ECU corresponds to the current state information of the ECU.

S202、根据ECU的至少2个数据,确定至少2个数据中每个数据对应的故障状态信息。S202. Determine fault state information corresponding to each of the at least two data according to at least two pieces of data of the ECU.

本实施例中,可以从获取到的至少2个数据中得到对应的ECU的当前状态 信息,根据ECU的当前状态信息,确定ECU是否存在故障。In this embodiment, the current state information of the corresponding ECU can be obtained from the acquired at least two data, and whether the ECU has a fault is determined according to the current state information of the ECU.

可选地,在获取所述ECU的状态信息之后,在显示界面上显示所述每个数据对应的故障状态信息,所述故障状态信息包括:故障灯、故障码个数、传感器状态。Optionally, after acquiring the status information of the ECU, the fault status information corresponding to each data is displayed on the display interface, where the fault status information includes: a fault light, a fault code number, and a sensor status.

具体地,可以在单一显示界面上以图形和/或文字的形式显示所有ECU的状态信息,从而使得车辆的诊断结果更加直观清楚。图5为本发明提供的故障诊断的显示界面示意图,如图5所示,图中显示了多项检测结果,其中叉号表示存在故障,勾号表示正常,禁止符号表示未检测。Specifically, the state information of all the ECUs can be displayed in a graphic and/or text form on a single display interface, thereby making the diagnosis result of the vehicle more intuitive and clear. FIG. 5 is a schematic diagram of a display interface for fault diagnosis provided by the present invention. As shown in FIG. 5, multiple detection results are shown in the figure, wherein the cross mark indicates that there is a fault, the check mark indicates normal, and the prohibition symbol indicates undetected.

举例说明,如图5所示,MIL代表故障灯,其中,故障灯图标不同的显示方式,如显示颜色不同,代表是否出现故障状态。DTC或Pd DTC代表故障码。可以显示检测到的故障码个数。图5中,故障码个数为0。MIS~EGR代表OBD标准的传感器,例如,FUE代表燃油传感器,AIR代表空调传感器等。For example, as shown in FIG. 5, MIL represents a fault light, wherein different display modes of the fault light icon, such as different display colors, indicate whether a fault state occurs. DTC or Pd DTC stands for DTC. The number of detected fault codes can be displayed. In Fig. 5, the number of fault codes is zero. MIS to EGR represent OBD standard sensors, for example, FUE stands for fuel sensor and AIR stands for air conditioner sensor.

具体的,在诊断设备上单独设计一个称之为一键IM的功能按键,当用户在任意状态下按下该功能按键后,诊断设备将使用图2所示方法以最快的速度与ECU建立通讯,获得ECU当前的一些基本状态信息。例如故障灯、故障码个数、传感器状态等,并使用UI界面把这些状态信息展现出来,从而帮助用户快速定位汽车故障问题。可选地,可以使用图形化的展示方式来展示各个状态信息的检测结果,例如将状态信息正常的用勾号表示,将状态信息异常的用叉号表示。也可以将各个状态信息的名称用对应的简化图形来表示。本实施例中,采用单一界面展现所有基本信息,而不使用多个界面,使得诊断结果更加清楚明了。Specifically, a function button called a one-button IM is separately designed on the diagnostic device. When the user presses the function button in any state, the diagnostic device will establish the ECU with the fastest speed using the method shown in FIG. 2. Communication, get some basic status information of the ECU. For example, the fault light, the number of fault codes, the sensor status, etc., and use the UI interface to display these status information, thereby helping the user to quickly locate the vehicle fault problem. Optionally, a graphical display manner may be used to display the detection result of each status information, for example, the status information is normally indicated by a tick, and the status information is abnormally represented by a cross. The name of each status information can also be represented by a corresponding simplified graph. In this embodiment, a single interface is used to display all the basic information without using multiple interfaces, so that the diagnosis result is more clear.

本实施例,通过采集并分析车载诊断系统接口中选定管脚的电平信号,得到所述选定管脚的电压特性;确定所有符合所述电压特性的候选通信协议;采用所述候选通信协议来扫描所述选定管脚,确定所述选定管脚对应的目标通信协议;通过目标通信协议建立与车辆的电子控制单元ECU之间的数据通信,并获取所述ECU的状态信息,将所述ECU的状态信息作为诊断结果输出。从而减少了OBD接口管脚的扫描协议数量,提高了扫描效率,缩短车辆的诊断时间。In this embodiment, the voltage characteristics of the selected pin are obtained by collecting and analyzing the level signal of the selected pin in the interface of the onboard diagnostic system; determining all candidate communication protocols that meet the voltage characteristic; using the candidate communication a protocol to scan the selected pin, determine a target communication protocol corresponding to the selected pin; establish data communication with the electronic control unit ECU of the vehicle through the target communication protocol, and acquire state information of the ECU, The status information of the ECU is output as a diagnosis result. Thereby reducing the number of scanning protocols of the OBD interface pins, improving scanning efficiency and shortening the diagnosis time of the vehicle.

图6为本发明实施例一提供的车辆诊断装置的结构示意图,如图6所示,本实施例中的装置,可以包括:FIG. 6 is a schematic structural diagram of a vehicle diagnosing device according to Embodiment 1 of the present invention. As shown in FIG. 6 , the device in this embodiment may include:

采集模块10,用于采集车载诊断系统接口中选定管脚的电平信号,得到所述电平信号的电压特性;The acquisition module 10 is configured to collect a level signal of the selected pin in the interface of the onboard diagnostic system to obtain a voltage characteristic of the level signal;

确定模块20,用于根据所述电压特性,确定与所述选定管脚相关的候选通信协议;a determining module 20, configured to determine, according to the voltage characteristic, a candidate communication protocol related to the selected pin;

通信模块30,用于向所述选定管脚发送基于所述候选通信协议的连接请求信号,以确定所述候选通信协议中是否存在目标通信协议;The communication module 30 is configured to send a connection request signal based on the candidate communication protocol to the selected pin to determine whether a target communication protocol exists in the candidate communication protocol;

若存在目标通信协议,则基于所述目标通信协议建立汽车诊断设备与车辆 的电子控制单元ECU之间的通信。If there is a target communication protocol, communication between the vehicle diagnostic device and the electronic control unit ECU of the vehicle is established based on the target communication protocol.

可选地,所述电平信号的电压特性,包括:高电平电压值和/或低电平电压值。Optionally, the voltage characteristic of the level signal includes: a high level voltage value and/or a low level voltage value.

可选地,所述确定模块20具体用于,Optionally, the determining module 20 is specifically configured to:

将车载诊断系统OBD中,高电平电压值的取值范围涵盖所述选定管脚的高电平电压值的通信协议作为候选通信协议;或In the on-board diagnostic system OBD, a communication protocol in which the value of the high level voltage value ranges from the high level voltage value of the selected pin is used as a candidate communication protocol; or

将车载诊断系统OBD中,低电平电压值的取值范围涵盖所述选定管脚的低电平电压值的通信协议作为候选通信协议;或In the on-board diagnostic system OBD, a communication protocol in which a range of low-level voltage values covers a low-level voltage value of the selected pin is used as a candidate communication protocol; or

将车载诊断系统OBD中,高电平电压值的取值范围涵盖所述选定管脚的高电平电压值,且低电平电压值的取值范围涵盖所述选定管脚的低电平电压值的通信协议作为候选通信协议。In the on-board diagnostic system OBD, the value range of the high level voltage value covers the high level voltage value of the selected pin, and the value range of the low level voltage value covers the low voltage of the selected pin. A flat voltage value communication protocol is used as a candidate communication protocol.

可选地,所述通信模块30,具体用于:Optionally, the communication module 30 is specifically configured to:

当候选通信协议为多个时,依次向所述选定管脚发送基于多个候选通信协议中的一个候选通信协议的连接请求信号;When the number of candidate communication protocols is multiple, a connection request signal based on one candidate communication protocol of the plurality of candidate communication protocols is sequentially sent to the selected pin;

若接收到通过所述选定管脚反馈的针对一个连接请求信号的响应信号,则确定所述多个候选通信协议中存在目标通信协议,并将所述连接请求信号所基于的候选通信协议作为目标通信协议。If a response signal for a connection request signal fed back through the selected pin is received, determining that a target communication protocol exists in the plurality of candidate communication protocols, and using the candidate communication protocol on which the connection request signal is based Target communication protocol.

可选地,所述通信模块30,具体用于:Optionally, the communication module 30 is specifically configured to:

当选定管脚为多个时,向所述多个选定管脚并行发送每个选定管脚对应的连接请求信号;其中,所述每个选定管脚对应的连接请求信号基于与所述每个选定管脚相关的候选通信协议。When a plurality of selected pins are multiple, a connection request signal corresponding to each selected pin is sent to the plurality of selected pins in parallel; wherein, the connection request signal corresponding to each selected pin is based on The candidate communication protocol associated with each selected pin.

本实施例可以执行上述图2、图4所示的方法中的技术方案,其实现过程和技术效果与上述方法类似,此处不再赘述。This embodiment can perform the technical solutions in the foregoing methods shown in FIG. 2 and FIG. 4 , and the implementation process and technical effects are similar to the foregoing methods, and details are not described herein again.

图7为本发明实施例二提供的车辆诊断装置的结构示意图,如图7所示,本实施例中的装置,在图6所示装置的基础上,还可以包括:FIG. 7 is a schematic structural diagram of a vehicle diagnostic apparatus according to Embodiment 2 of the present invention. As shown in FIG. 7, the apparatus in this embodiment may further include:

获取模块40,用于获取所述ECU的至少2个数据;并根据所述ECU的至少2个数据,确定所述至少2个数据中每个数据对应的故障状态信息。The obtaining module 40 is configured to acquire at least two pieces of data of the ECU, and determine fault state information corresponding to each of the at least two pieces of data according to at least two pieces of data of the ECU.

本实施例可以执行上述图2、图4所示的方法中的技术方案,其实现过程和技术效果与上述方法类似,此处不再赘述。This embodiment can perform the technical solutions in the foregoing methods shown in FIG. 2 and FIG. 4 , and the implementation process and technical effects are similar to the foregoing methods, and details are not described herein again.

图8为本发明实施例三提供的车辆诊断装置的结构示意图,如图8所示,本实施例中的装置,在图6所示装置的基础上,还可以包括:FIG. 8 is a schematic structural diagram of a vehicle diagnosing device according to Embodiment 3 of the present invention. As shown in FIG. 8 , the device in this embodiment may further include:

显示模块50,用于在显示界面上显示所述每个数据对应的故障状态信息,所述故障状态信息包括:故障灯、故障码个数、传感器状态。The display module 50 is configured to display fault state information corresponding to each data on the display interface, where the fault state information includes: a fault light, a fault code number, and a sensor state.

本实施例可以执行上述图2、图4所示的方法中的技术方案,其实现过程和技术效果与上述方法类似,此处不再赘述。This embodiment can perform the technical solutions in the foregoing methods shown in FIG. 2 and FIG. 4 , and the implementation process and technical effects are similar to the foregoing methods, and details are not described herein again.

图9为本发明实施例一提供的车辆诊断设备的结构示意图,如图9所示, 本实施例中的设备包括:FIG. 9 is a schematic structural diagram of a vehicle diagnosing device according to Embodiment 1 of the present invention. As shown in FIG. 9, the device in this embodiment includes:

存储器60,用于存储程序;a memory 60 for storing a program;

处理器70,用于执行所述存储器60存储的所述程序,当所述程序被执行时,所述处理器70用于执行a processor 70, configured to execute the program stored by the memory 60, when the program is executed, the processor 70 is configured to execute

通信接口80,用于通过连接线与车辆的OBD接口连接。The communication interface 80 is configured to be connected to the OBD interface of the vehicle through a connection line.

其中,存储器60、处理器70与通信接口80可以通过总线耦合连接。处理器70可以通过控制通信接口80实现与车辆的通信。The memory 60, the processor 70 and the communication interface 80 can be connected by a bus coupling. The processor 70 can communicate with the vehicle by controlling the communication interface 80.

本实施例可以执行上述图2、图4所示的方法中的技术方案,其实现过程和技术效果与上述方法类似,此处不再赘述。This embodiment can perform the technical solutions in the foregoing methods shown in FIG. 2 and FIG. 4 , and the implementation process and technical effects are similar to the foregoing methods, and details are not described herein again.

本申请实施例中的车辆诊断装置或车辆诊断设备可以为车辆诊断接口(Vehicle Communication Interface)设备,或者为车辆诊断仪或安装有诊断程序的用户终端。The vehicle diagnostic device or the vehicle diagnostic device in the embodiment of the present application may be a vehicle diagnostic interface device, or a vehicle diagnostic device or a user terminal installed with a diagnostic program.

此外,本申请实施例还提供一种计算机可读存储介质,以执行上述图2、图4实施例中任一所述的方法。计算机可读存储介质中存储有计算机执行指令,当用户设备的至少一个处理器执行该计算机执行指令时,用户设备执行上述各种可能的方法。In addition, the embodiment of the present application further provides a computer readable storage medium to perform the method described in any of the foregoing embodiments of FIG. 2 and FIG. Computer-executable storage medium stores computer-executable instructions that, when executed by at least one processor of a user device, execute the various possible methods described above.

其中,计算机可读介质包括计算机存储介质和通信介质,其中通信介质包括便于从一个地方向另一个地方传送计算机程序的任何介质。存储介质可以是通用或专用计算机能够存取的任何可用介质。一种示例性的存储介质耦合至处理器,从而使处理器能够从该存储介质读取信息,且可向该存储介质写入信息。当然,存储介质也可以是处理器的组成部分。处理器和存储介质可以位于ASIC中。另外,该ASIC可以位于车辆诊断设备中。当然,处理器和存储介质也可以作为分立组件存在于通信设备中。Wherein, the computer readable medium comprises a computer storage medium and a communication medium, wherein the communication medium comprises any medium that facilitates transfer of the computer program from one location to another. A storage medium may be any available media that can be accessed by a general purpose or special purpose computer. An exemplary storage medium is coupled to the processor to enable the processor to read information from, and write information to, the storage medium. Of course, the storage medium can also be an integral part of the processor. The processor and the storage medium can be located in an ASIC. Additionally, the ASIC can be located in a vehicle diagnostic device. Of course, the processor and the storage medium may also reside as discrete components in the communication device.

本领域普通技术人员可以理解:实现上述各方法实施例的全部或部分步骤可以通过程序指令相关的硬件来完成。前述的程序可以存储于一计算机可读取存储介质中。该程序在执行时,执行包括上述各方法实施例的步骤;而前述的存储介质包括:ROM、RAM、磁碟或者光盘等各种可以存储程序代码的介质。One of ordinary skill in the art will appreciate that all or part of the steps to implement the various method embodiments described above may be accomplished by hardware associated with the program instructions. The aforementioned program can be stored in a computer readable storage medium. The program, when executed, performs the steps including the foregoing method embodiments; and the foregoing storage medium includes various media that can store program codes, such as a ROM, a RAM, a magnetic disk, or an optical disk.

最后应说明的是:以上各实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述各实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分或者全部技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的范围。Finally, it should be noted that the above embodiments are merely illustrative of the technical solutions of the present invention, and are not intended to be limiting; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art will understand that The technical solutions described in the foregoing embodiments may be modified, or some or all of the technical features may be equivalently replaced; and the modifications or substitutions do not deviate from the technical solutions of the embodiments of the present invention. range.

Claims (10)

一种车辆诊断方法,其特征在于,包括:A vehicle diagnosis method, comprising: 采集车载诊断系统接口中选定管脚的电平信号,得到所述电平信号的电压特性;Collecting a level signal of a selected pin in an interface of the onboard diagnostic system to obtain a voltage characteristic of the level signal; 根据所述电压特性,确定与所述选定管脚相关的候选通信协议;Determining a candidate communication protocol associated with the selected pin based on the voltage characteristic; 向所述选定管脚发送基于所述候选通信协议的连接请求信号,以确定所述候选通信协议中是否存在目标通信协议;Sending a connection request signal based on the candidate communication protocol to the selected pin to determine whether a target communication protocol exists in the candidate communication protocol; 若存在目标通信协议,则基于所述目标通信协议建立汽车诊断设备与车辆的电子控制单元ECU之间的通信。If there is a target communication protocol, communication between the vehicle diagnostic device and the electronic control unit ECU of the vehicle is established based on the target communication protocol. 根据权利要求1所述的方法,其特征在于,所述电平信号的电压特性,包括:高电平电压值和/或低电平电压值。The method according to claim 1, wherein the voltage characteristic of the level signal comprises: a high level voltage value and/or a low level voltage value. 根据权利要求2所述的方法,其特征在于,所述根据所述电压特性,确定与所述选定管脚相关的候选通信协议,包括:The method of claim 2, wherein the determining a candidate communication protocol associated with the selected pin based on the voltage characteristic comprises: 若所述电压特性包括高电平电压值,确定所对应的高电压范围包括所述高电平电压值的通信协议为候选通信协议;或If the voltage characteristic includes a high level voltage value, determining that the corresponding high voltage range includes the communication protocol of the high level voltage value as a candidate communication protocol; or 若所述电压特性包括低电平电压值,确定所对应的低电压范围包括所述低电平电压值的通信协议为候选通信协议;或If the voltage characteristic includes a low-level voltage value, determining that the corresponding low-voltage range includes the communication protocol of the low-level voltage value as a candidate communication protocol; or 若所述电压特性包括高电平电压值和低电平电压值,确定所对应的高电压范围包括所述高电平电压值,且所对应的低电压范围包括所述低电平电压值的通信协议为候选通信协议。If the voltage characteristic includes a high level voltage value and a low level voltage value, determining that the corresponding high voltage range includes the high level voltage value, and the corresponding low voltage range includes the low level voltage value The communication protocol is a candidate communication protocol. 根据权利要求1所述的方法,其特征在于,所述向所述选定管脚发送基于所述候选通信协议的连接请求信号,以确定所述候选通信协议中是否存在目标通信协议,包括:The method according to claim 1, wherein the sending a connection request signal based on the candidate communication protocol to the selected pin to determine whether a target communication protocol exists in the candidate communication protocol comprises: 当候选通信协议为多个时,依次向所述选定管脚发送基于多个候选通信协议中的一个候选通信协议的连接请求信号;When the number of candidate communication protocols is multiple, a connection request signal based on one candidate communication protocol of the plurality of candidate communication protocols is sequentially sent to the selected pin; 若接收到通过所述选定管脚反馈的针对一个连接请求信号的响应信号,则确定所述多个候选通信协议中存在目标通信协议,并将所述连接请求信号所基于的候选通信协议作为目标通信协议。If a response signal for a connection request signal fed back through the selected pin is received, determining that a target communication protocol exists in the plurality of candidate communication protocols, and using the candidate communication protocol on which the connection request signal is based Target communication protocol. 根据权利要求1-4中任一项所述的方法,其特征在于,所述向所述选定管脚发送基于所述候选通信协议的连接请求信号,包括:The method according to any one of claims 1 to 4, wherein the sending a connection request signal based on the candidate communication protocol to the selected pin comprises: 当选定管脚为多个时,向所述多个选定管脚并行发送每个选定管脚对应的连接请求信号;其中,所述每个选定管脚对应的连接请求信号基于与所述每个选定管脚相关的候选通信协议。When a plurality of selected pins are multiple, a connection request signal corresponding to each selected pin is sent to the plurality of selected pins in parallel; wherein, the connection request signal corresponding to each selected pin is based on The candidate communication protocol associated with each selected pin. 根据权利要求1-5中任一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 1 to 5, wherein the method further comprises: 获取所述ECU的至少2个数据;Obtaining at least 2 data of the ECU; 根据所述ECU的至少2个数据,确定所述至少2个数据中每个数据对应的故障状态信息。Determining fault state information corresponding to each of the at least two data according to at least two data of the ECU. 根据权利要求6所述的方法,其特征在于,所述方法还包括:The method of claim 6 wherein the method further comprises: 在显示界面上显示所述每个数据对应的故障状态信息,所述故障状态信息包括:故障灯、故障码个数、传感器状态。The fault state information corresponding to each of the data is displayed on the display interface, where the fault state information includes: a fault light, a fault code number, and a sensor state. 一种车辆诊断装置,其特征在于,包括:A vehicle diagnostic device, comprising: 采集模块,用于采集车载诊断系统接口中选定管脚的电平信号,得到所述电平信号的电压特性;An acquisition module, configured to collect a level signal of a selected pin in an interface of the onboard diagnostic system, to obtain a voltage characteristic of the level signal; 确定模块,用于根据所述电压特性,确定与所述选定管脚相关的候选通信协议;a determining module, configured to determine a candidate communication protocol related to the selected pin according to the voltage characteristic; 通信模块,用于向所述选定管脚发送基于所述候选通信协议的连接请求信号,以确定所述候选通信协议中是否存在目标通信协议;a communication module, configured to send a connection request signal based on the candidate communication protocol to the selected pin to determine whether a target communication protocol exists in the candidate communication protocol; 若存在目标通信协议,则基于所述目标通信协议建立汽车诊断设备与车辆的电子控制单元ECU之间的通信。If there is a target communication protocol, communication between the vehicle diagnostic device and the electronic control unit ECU of the vehicle is established based on the target communication protocol. 根据权利要求8所述的装置,其特征在于,所述电平信号的电压特性,包括:高电平电压值和/或低电平电压值。The apparatus according to claim 8, wherein the voltage characteristic of said level signal comprises: a high level voltage value and/or a low level voltage value. 根据权利要求9所述的装置,其特征在于,所述确定模块具体用于,The apparatus according to claim 9, wherein said determining module is specifically configured to: 若所述电压特性包括高电平电压值,确定所对应的高电压范围包括所述高电平电压值的通信协议为候选通信协议;或If the voltage characteristic includes a high level voltage value, determining that the corresponding high voltage range includes the communication protocol of the high level voltage value as a candidate communication protocol; or 若所述电压特性包括低电平电压值,确定所对应的低电压范围包括所述低电平电压值的通信协议为候选通信协议;或If the voltage characteristic includes a low-level voltage value, determining that the corresponding low-voltage range includes the communication protocol of the low-level voltage value as a candidate communication protocol; or 若所述电压特性包括高电平电压值和低电平电压值,确定所对应的高电压范围包括所述高电平电压值,且所对应的低电压范围包括所述低电平电压值的通信协议为候选通信协议。If the voltage characteristic includes a high level voltage value and a low level voltage value, determining that the corresponding high voltage range includes the high level voltage value, and the corresponding low voltage range includes the low level voltage value The communication protocol is a candidate communication protocol.
PCT/CN2019/070886 2018-01-16 2019-01-08 Vehicle diagnosis method and device Ceased WO2019141114A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201810038131.7A CN108255158A (en) 2018-01-16 2018-01-16 Vehicular diagnostic method and device
CN201810038131.7 2018-01-16

Publications (1)

Publication Number Publication Date
WO2019141114A1 true WO2019141114A1 (en) 2019-07-25

Family

ID=62741136

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/070886 Ceased WO2019141114A1 (en) 2018-01-16 2019-01-08 Vehicle diagnosis method and device

Country Status (2)

Country Link
CN (1) CN108255158A (en)
WO (1) WO2019141114A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115032971A (en) * 2022-08-09 2022-09-09 深圳市星卡软件技术开发有限公司 Updating method and device of vehicle diagnosis equipment and server
US12327437B2 (en) 2019-11-06 2025-06-10 Autel Intelligent Technology Corp., Ltd. Automobile diagnosis device, system and method

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108255158A (en) * 2018-01-16 2018-07-06 深圳市道通科技股份有限公司 Vehicular diagnostic method and device
CN110596627B (en) * 2019-08-22 2021-09-03 深圳市鹏巨术信息技术有限公司 Detection method and device for vehicle diagnosis box
CN110708489A (en) * 2019-09-17 2020-01-17 浙江大华技术股份有限公司 Communication method, communication device, electronic device and storage medium
CN111158347A (en) * 2020-01-14 2020-05-15 深圳市元征科技股份有限公司 OBD detection method and related equipment
CN112147987B (en) * 2020-09-30 2022-07-19 深圳市元征科技股份有限公司 Vehicle diagnosis method, vehicle diagnosis device and terminal equipment
CN113406944B (en) * 2021-05-24 2023-05-09 深圳市元征科技股份有限公司 Vehicle diagnosis method, device, equipment and computer readable storage medium
CN113377085A (en) * 2021-06-29 2021-09-10 上海星融汽车科技有限公司 Vehicle decoder communication parameter analysis system
CN116149291A (en) * 2021-11-22 2023-05-23 广州优胜汽车科技有限公司 Diagnostic device with digital-to-analog conversion
CN117590835A (en) * 2024-01-18 2024-02-23 深圳市星卡科技股份有限公司 Protocol self-adaptive diagnosis method and device supporting vehicle OBD interface
CN117640702B (en) * 2024-01-26 2024-06-21 深圳市星卡科技股份有限公司 Communication protocol acquisition method and device, electronic equipment and storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020116103A1 (en) * 2001-02-22 2002-08-22 Mitsubish Denki Kabushiki Kaisha Failure diagnosis apparatus
CN102346477A (en) * 2011-08-11 2012-02-08 浙江大学 Analysis method and equipment for fault diagnosis communication protocol on basis of automotive open system architecture (AUTOSAR)
CN103616886A (en) * 2013-11-22 2014-03-05 深圳市道通科技有限公司 Automobile diagnostic method for achieving multi-channel parallel and automobile diagnostic equipment
CN104090565A (en) * 2014-07-07 2014-10-08 联车(上海)信息科技有限公司 Vehicle data collecting device adaptive to OBD interface and self-adaptive to various vehicle buses and diagnostic protocols
CN104155971A (en) * 2014-08-07 2014-11-19 北京九五智驾信息技术股份有限公司 Self-diagnosis method for vehicle diagnosis apparatus protocols by vehicle diagnosis apparatus
CN105024869A (en) * 2014-04-24 2015-11-04 广西金奔腾汽车科技有限公司 Automobile OBD communication pin intelligent identification method and device
CN105911939A (en) * 2016-06-04 2016-08-31 深圳市航天无线通信技术有限公司 Automobile work mode determination realization method and system
CN108255158A (en) * 2018-01-16 2018-07-06 深圳市道通科技股份有限公司 Vehicular diagnostic method and device

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020116103A1 (en) * 2001-02-22 2002-08-22 Mitsubish Denki Kabushiki Kaisha Failure diagnosis apparatus
CN102346477A (en) * 2011-08-11 2012-02-08 浙江大学 Analysis method and equipment for fault diagnosis communication protocol on basis of automotive open system architecture (AUTOSAR)
CN103616886A (en) * 2013-11-22 2014-03-05 深圳市道通科技有限公司 Automobile diagnostic method for achieving multi-channel parallel and automobile diagnostic equipment
CN105024869A (en) * 2014-04-24 2015-11-04 广西金奔腾汽车科技有限公司 Automobile OBD communication pin intelligent identification method and device
CN104090565A (en) * 2014-07-07 2014-10-08 联车(上海)信息科技有限公司 Vehicle data collecting device adaptive to OBD interface and self-adaptive to various vehicle buses and diagnostic protocols
CN104155971A (en) * 2014-08-07 2014-11-19 北京九五智驾信息技术股份有限公司 Self-diagnosis method for vehicle diagnosis apparatus protocols by vehicle diagnosis apparatus
CN105911939A (en) * 2016-06-04 2016-08-31 深圳市航天无线通信技术有限公司 Automobile work mode determination realization method and system
CN108255158A (en) * 2018-01-16 2018-07-06 深圳市道通科技股份有限公司 Vehicular diagnostic method and device

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US12327437B2 (en) 2019-11-06 2025-06-10 Autel Intelligent Technology Corp., Ltd. Automobile diagnosis device, system and method
CN115032971A (en) * 2022-08-09 2022-09-09 深圳市星卡软件技术开发有限公司 Updating method and device of vehicle diagnosis equipment and server
CN115032971B (en) * 2022-08-09 2022-11-01 深圳市星卡软件技术开发有限公司 Updating method and device of vehicle diagnosis equipment and server

Also Published As

Publication number Publication date
CN108255158A (en) 2018-07-06

Similar Documents

Publication Publication Date Title
WO2019141114A1 (en) Vehicle diagnosis method and device
CN108563214B (en) Vehicle diagnosis method, device and equipment
CN109164789B (en) An in-vehicle multimedia system for vehicle information diagnosis
CN111024405B (en) Automobile diagnosis method, related device and system
CN106104636B (en) Vehicle Detection System Using Network-Based Computing Infrastructure
US8656062B2 (en) System and method for wireless pairing via wired connection
CN103604612B (en) A kind of vehicle remote diagnosis system and diagnostic method
CN113377088B (en) Instant messaging automobile remote diagnosis detection method, electronic equipment and storage medium
US7257472B2 (en) Method and apparatus for fault diagnosis
CN110244691B (en) Automobile diagnosis method, device and system
US20120044527A1 (en) Apparatus and Method for Controlled Ethernet Switching
CN106990773A (en) vehicle remote diagnosis method, cloud server and system
US20240028491A1 (en) Automobile Bus Fault Diagnosis Method, Apparatus and Computing Device
WO2022007710A1 (en) Method for testing generator of vehicle, and battery tester
WO2019137345A1 (en) Method and apparatus for establishing communication connection with tire pressure monitoring system, and electronic device
WO2022184069A1 (en) Automobile bus fault analysis method, diagnosis device, and bus fault analysis system
CN113406944B (en) Vehicle diagnosis method, device, equipment and computer readable storage medium
WO2022037150A1 (en) Vehicle ecu identification method and system, and vehicle diagnosis device
CN113242532B (en) Vehicle communication device, wiFi connection method and vehicle diagnosis system
FR3028068A1 (en) METHOD, EQUIPMENT AND SYSTEM FOR ASSISTING DIAGNOSIS
CN108390863A (en) A kind of data processing method and device
CN114167834B (en) Vehicle diagnostic method, device, server and computer storage medium
WO2017203375A1 (en) Security test system, security test method, function evaluation device, and program
Rybitskyi et al. Using obd-2 technology for vehicle diagnostic and using it in the information system
CN116736823A (en) Cross-platform controller hardware-in-the-loop testing method, device and system

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 19740908

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 19740908

Country of ref document: EP

Kind code of ref document: A1