CN114995356A - Vehicle off-line detection method and system - Google Patents
Vehicle off-line detection method and system Download PDFInfo
- Publication number
- CN114995356A CN114995356A CN202210753517.2A CN202210753517A CN114995356A CN 114995356 A CN114995356 A CN 114995356A CN 202210753517 A CN202210753517 A CN 202210753517A CN 114995356 A CN114995356 A CN 114995356A
- Authority
- CN
- China
- Prior art keywords
- connection device
- diagnostic
- car
- vehicle
- electronic control
- 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.)
- Granted
Links
- 238000001514 detection method Methods 0.000 title claims abstract description 72
- 238000004891 communication Methods 0.000 claims abstract description 56
- 238000012360 testing method Methods 0.000 claims abstract description 26
- 238000003745 diagnosis Methods 0.000 claims description 51
- 238000000034 method Methods 0.000 claims description 45
- 230000002159 abnormal effect Effects 0.000 claims description 22
- 230000004044 response Effects 0.000 claims description 22
- 230000007246 mechanism Effects 0.000 claims description 15
- 230000006870 function Effects 0.000 description 45
- 101150087393 PIN3 gene Proteins 0.000 description 16
- 230000008569 process Effects 0.000 description 16
- 230000005856 abnormality Effects 0.000 description 10
- 238000004590 computer program Methods 0.000 description 9
- 238000007726 management method Methods 0.000 description 8
- 238000010586 diagram Methods 0.000 description 6
- 238000005259 measurement Methods 0.000 description 6
- 238000012544 monitoring process Methods 0.000 description 4
- 238000012545 processing Methods 0.000 description 4
- 230000003993 interaction Effects 0.000 description 3
- 230000002452 interceptive effect Effects 0.000 description 3
- 229920001690 polydopamine Polymers 0.000 description 3
- 230000004913 activation Effects 0.000 description 2
- 238000012423 maintenance Methods 0.000 description 2
- 238000004519 manufacturing process Methods 0.000 description 2
- 238000010295 mobile communication Methods 0.000 description 2
- 230000002093 peripheral effect Effects 0.000 description 2
- WHXSMMKQMYFTQS-UHFFFAOYSA-N Lithium Chemical compound [Li] WHXSMMKQMYFTQS-UHFFFAOYSA-N 0.000 description 1
- HBBGRARXTFLTSG-UHFFFAOYSA-N Lithium ion Chemical compound [Li+] HBBGRARXTFLTSG-UHFFFAOYSA-N 0.000 description 1
- 230000009471 action Effects 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000006243 chemical reaction Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 239000012502 diagnostic product Substances 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 229910052739 hydrogen Inorganic materials 0.000 description 1
- 239000001257 hydrogen Substances 0.000 description 1
- 238000007689 inspection Methods 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 229910052744 lithium Inorganic materials 0.000 description 1
- 229910001416 lithium ion Inorganic materials 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 239000013307 optical fiber Substances 0.000 description 1
- 229920000642 polymer Polymers 0.000 description 1
- 238000005070 sampling Methods 0.000 description 1
- 238000013024 troubleshooting Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B23/00—Testing or monitoring of control systems or parts thereof
- G05B23/02—Electric testing or monitoring
- G05B23/0205—Electric testing or monitoring by means of a monitoring system capable of detecting and responding to faults
- G05B23/0208—Electric 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/0213—Modular 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
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01M—TESTING STATIC OR DYNAMIC BALANCE OF MACHINES OR STRUCTURES; TESTING OF STRUCTURES OR APPARATUS, NOT OTHERWISE PROVIDED FOR
- G01M17/00—Testing of vehicles
- G01M17/007—Wheeled or endless-tracked vehicles
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B2219/00—Program-control systems
- G05B2219/20—Pc systems
- G05B2219/24—Pc safety
- G05B2219/24065—Real time diagnostics
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Automation & Control Theory (AREA)
- Testing Electric Properties And Detecting Electric Faults (AREA)
- Small-Scale Networks (AREA)
Abstract
本申请实施例涉及汽车电子技术领域,公开了一种车辆的离线检测方法及系统,该检测方法通过建立诊断功能链路,该诊断功能链路包括多个功能节点,从而能够对整个测试环境进行检测,保障汽车测试的正常工作;并且,通过供电关系、通信关系以及信号关系来确定相邻的功能节点之间的连接状态和不相邻的功能节点之间的连接状态,能够提高检测效率。
The embodiments of the present application relate to the technical field of automotive electronics, and disclose an off-line vehicle detection method and system. The detection method establishes a diagnostic function link including a plurality of functional nodes, so that the entire test environment can be tested. The detection ensures the normal operation of the vehicle test; and the connection state between adjacent functional nodes and the connection state between non-adjacent functional nodes can be determined through the power supply relationship, communication relationship and signal relationship, which can improve the detection efficiency.
Description
技术领域technical field
本申请涉及汽车电子技术领域,特别是涉及一种车辆的离线检测方法及系统。The present application relates to the technical field of automotive electronics, and in particular, to an offline detection method and system for vehicles.
背景技术Background technique
由于科技发达,汽车的部件越来越多,其中任何一个部件出现问题,都有可能导致汽车不能启动、半路抛锚,所以对汽车的检测变得越来越重要。Due to the development of science and technology, there are more and more parts of the car. If any one of them has a problem, it may cause the car to fail to start or break down halfway. Therefore, the detection of the car becomes more and more important.
在汽车整车维修领域,目前主要采用诊断设备连接汽车连接设备,通过汽车连接设备对汽车进行连接,以向汽车发送诊断命令,检测汽车中各个部件的状态是否正常,或者执行相关的动作测试,检测各个部件是否正常工作。In the field of vehicle maintenance, diagnostic equipment is currently used to connect the car connection device, and the car is connected to the car through the car connection device to send diagnostic commands to the car to detect whether the status of each component in the car is normal, or to perform related action tests. Check whether each component is working properly.
但是,这种方式通过诊断设备连接整车以在线判断汽车的各个部件是否发生异常,而无法对测试环境进行检测,容易影响测试的正常执行。However, in this way, the diagnostic equipment is used to connect the whole vehicle to judge online whether various parts of the vehicle are abnormal, but the test environment cannot be detected, which easily affects the normal execution of the test.
发明内容SUMMARY OF THE INVENTION
本申请实施例旨在提供一种车辆的离线检测方法及系统,通过对整个测试环境进行检测,能够保障汽车测试的正常工作,并且,从供电关系、通信关系以及信号关系多个方面进行检测,能够提高检测效率。The embodiments of the present application aim to provide an offline vehicle detection method and system. By detecting the entire test environment, the normal operation of the vehicle test can be guaranteed, and the detection is performed from the aspects of power supply relationship, communication relationship and signal relationship. The detection efficiency can be improved.
为解决上述技术问题,本申请实施例提供以下技术方案:In order to solve the above-mentioned technical problems, the embodiments of the present application provide the following technical solutions:
第一方面,本申请实施例提供一种车辆的离线检测方法,方法包括:In a first aspect, an embodiment of the present application provides an offline vehicle detection method, the method comprising:
建立诊断功能链路,其中,诊断功能链路包括多个功能节点,功能节点包括诊断设备、汽车连接设备、部件连接设备以及电子控制单元,其中,诊断设备连接汽车连接设备,汽车连接设备连接部件连接设备,部件连接设备连接电子控制单元,部件连接设备用于模拟汽车的整车环境;Establish a diagnostic function link, wherein the diagnostic function link includes a plurality of functional nodes, and the functional nodes include a diagnostic device, a car connection device, a component connection device, and an electronic control unit, wherein the diagnostic device is connected to the car connection device, and the car connection device is connected to components The connection device, the component connection device is connected to the electronic control unit, and the component connection device is used to simulate the vehicle environment of the car;
在相邻的功能节点之间,若存在供电关系,则根据供电关系,确定相邻的功能节点的连接状态;若不存在供电关系,则根据通信关系和/或信号关系,确定相邻的功能节点的连接状态;Between adjacent functional nodes, if there is a power supply relationship, the connection status of the adjacent functional nodes is determined according to the power supply relationship; if there is no power supply relationship, the adjacent function nodes are determined according to the communication relationship and/or signal relationship. the connection status of the node;
在不相邻的功能节点之间,某一功能节点通过与其相邻的功能节点反馈的电源电压,确定与其不相邻的功能节点的连接状态;或者,某一功能节点通过诊断命令的应答和/或异常信号,确定与其不相邻的功能节点的连接状态。Between non-adjacent functional nodes, a functional node determines the connection status of its non-adjacent functional nodes through the power supply voltage fed back by its adjacent functional nodes; / or abnormal signal, to determine the connection status of functional nodes that are not adjacent to it.
在一些实施例中,建立诊断功能链路,包括:In some embodiments, establishing a diagnostic function link includes:
诊断设备向汽车连接设备发送链路建立消息,以建立诊断设备与汽车连接设备之间的链路;The diagnostic device sends a link establishment message to the car-connected device to establish a link between the diagnostic device and the car-connected device;
汽车连接设备向部件连接设备转发链路建立消息,以建立汽车连接设备与部件连接设备之间的链路;The car connection device forwards the link establishment message to the part connection device to establish a link between the car connection device and the part connection device;
诊断设备向汽车连接设备发送启动命令,由汽车连接设备将启动命令转发到部件连接设备,使得部件连接设备在接收到启动命令之后,启动电子控制单元,以建立部件连接设备与电子控制单元之间的链路。The diagnostic device sends a start command to the car connection device, and the car connection device forwards the start command to the component connection device, so that the component connection device starts the electronic control unit after receiving the start command to establish a connection between the component connection device and the electronic control unit. 's link.
在一些实施例中,建立诊断功能链路,还包括:In some embodiments, establishing a diagnostic function link further includes:
在诊断设备与汽车连接设备建立链路之后,诊断设备与汽车连接设备建立心跳检测机制。After the diagnostic device establishes a link with the car connection device, the diagnosis device establishes a heartbeat detection mechanism with the car connection device.
在一些实施例中,根据通信关系和/或信号关系,确定相邻的功能节点的连接状态,包括:In some embodiments, the connection status of adjacent functional nodes is determined according to the communication relationship and/or the signal relationship, including:
若相邻的功能节点之间存在通信关系,则根据通信应答状态,确定相邻的功能节点的连接状态;If there is a communication relationship between adjacent functional nodes, the connection state of the adjacent functional nodes is determined according to the communication response state;
若相邻的功能节点之间不存在通信关系,则根据信号关系,确定相邻的功能节点的连接状态,其中,信号关系包括电平信号和/或心跳信号。If there is no communication relationship between adjacent functional nodes, the connection state of the adjacent functional nodes is determined according to the signal relationship, wherein the signal relationship includes a level signal and/or a heartbeat signal.
在一些实施例中,信号关系包括心跳信号,根据信号关系,确定相邻的功能节点的连接状态,包括:In some embodiments, the signal relationship includes a heartbeat signal, and the connection status of adjacent functional nodes is determined according to the signal relationship, including:
若某一功能节点的应用程序与相邻的功能节点之间建立了心跳检测机制,在预设时间内没有接收到相邻的功能节点发送的心跳应答信号,则确定相邻的功能节点之间存在断链异常。If a heartbeat detection mechanism is established between the application program of a functional node and an adjacent functional node, and the heartbeat response signal sent by the adjacent functional node is not received within the preset time, it is determined that the adjacent functional node is between There is a broken chain exception.
在一些实施例中,方法还包括:In some embodiments, the method further includes:
诊断设备向汽车连接设备发送诊断命令,由汽车连接设备转发诊断命令到部件连接设备,部件连接设备将诊断命令转发到电子控制单元,以获取电子控制单元的诊断结果。The diagnosis device sends a diagnosis command to the car connection device, the car connection device forwards the diagnosis command to the component connection device, and the component connection device forwards the diagnosis command to the electronic control unit to obtain the diagnosis result of the electronic control unit.
在一些实施例中,汽车连接设备、部件连接设备以及电子控制单元通过同一总线进行通信连接,汽车连接设备在接收到诊断设备发送的诊断命令之后,将诊断命令直接转发到电子控制单元。In some embodiments, the car connection device, the component connection device and the electronic control unit are communicatively connected through the same bus, and the car connection device directly forwards the diagnosis command to the electronic control unit after receiving the diagnosis command sent by the diagnosis device.
在一些实施例中,诊断功能链路上的每一功能节点均安装有应用程序,方法还包括:In some embodiments, an application program is installed on each functional node on the diagnostic functional link, and the method further includes:
诊断设备的应用程序向汽车连接设备的应用程序发送诊断命令,由汽车连接设备的应用程序转发诊断命令到部件连接设备的应用程序,部件连接设备的应用程序再转发到电子控制单元的应用程序,以获取电子控制单元的测试结果。The application of the diagnostic device sends the diagnostic command to the application of the car-connected device, the application of the car-connected device forwards the diagnostic command to the application of the component-connected device, and the application of the component-connected device forwards it to the application of the electronic control unit, to obtain the test results of the electronic control unit.
在一些实施例中,方法还包括:In some embodiments, the method further includes:
若识别到汽车连接设备连接到汽车的整车,则断开汽车连接设备与部件连接设备之间的链路,以通过汽车连接设备获取汽车的部件的信息。If it is recognized that the vehicle connection device is connected to the entire vehicle of the vehicle, the link between the vehicle connection device and the component connection device is disconnected, so as to obtain the information of the components of the vehicle through the vehicle connection device.
在一些实施例中,In some embodiments,
部件连接设备与汽车连接设备、电子控制单元存在供电关系,部件连接设备向汽车连接设备、电子控制单元进行供电。The component connection device has a power supply relationship with the vehicle connection device and the electronic control unit, and the component connection device supplies power to the vehicle connection device and the electronic control unit.
在一些实施例中,In some embodiments,
若诊断设备与汽车连接设备通过有线方式连接,则诊断设备与汽车连接设备之间存在供电关系,诊断设备通过供电关系确定汽车连接设备的连接状态。If the diagnostic device and the vehicle connection device are connected in a wired manner, there is a power supply relationship between the diagnostic device and the vehicle connection device, and the diagnostic device determines the connection state of the vehicle connection device through the power supply relationship.
第二方面,本申请实施例提供一种车辆的离线检测系统,系统包括:诊断功能链路,诊断功能链路包括:诊断设备、汽车连接设备、部件连接设备以及电子控制单元;其中,In a second aspect, an embodiment of the present application provides an offline detection system for a vehicle. The system includes: a diagnostic function link, where the diagnostic function link includes: a diagnosis device, a vehicle connection device, a component connection device, and an electronic control unit; wherein,
诊断设备,连接汽车连接设备,用于向汽车连接设备发送诊断命令;Diagnostic equipment, connected to the car connection device, used to send diagnostic commands to the car connection device;
汽车连接设备,连接诊断设备,用于接收诊断命令,并将诊断命令转发到电子控制单元;The car is connected to the device, connected to the diagnostic device, used to receive the diagnostic command, and forward the diagnostic command to the electronic control unit;
部件连接设备,连接汽车连接设备,用于模拟汽车的整车环境;Component connection device, connected to the car connection device, used to simulate the vehicle environment of the car;
电子控制单元,连接汽车连接设备以及部件连接设备,用于接收诊断命令,获取诊断结果。The electronic control unit is connected to the vehicle connection device and the component connection device, and is used for receiving diagnosis commands and obtaining diagnosis results.
第三方面,本申请实施例提供一种计算机可读存储介质,计算机可读存储介质上存储计算机程序,计算机程序被处理器执行时实现如上的车辆的离线检测方法。In a third aspect, an embodiment of the present application provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the above-mentioned offline vehicle detection method is implemented.
第四方面,本申请实施例提供一种计算机程序产品,其中,计算机程序产品包括存储了计算机程序的非瞬时性计算机可读存储介质,计算机程序可操作来使计算机执行如第一方面中所描述的部分或全部步骤。该计算机程序产品可以为一个软件安装包。In a fourth aspect, embodiments of the present application provide a computer program product, wherein the computer program product includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to cause a computer to execute as described in the first aspect some or all of the steps. The computer program product may be a software installation package.
本申请实施例的有益效果是:区别于现有技术的情况下,本申请实施例提供的一种车辆的离线检测方法,方法包括:建立诊断功能链路,其中,诊断功能链路包括多个功能节点,功能节点包括诊断设备、汽车连接设备、部件连接设备以及电子控制单元,其中,诊断设备连接汽车连接设备,汽车连接设备连接部件连接设备,部件连接设备连接电子控制单元,部件连接设备用于模拟汽车的整车环境;在相邻的功能节点之间,若存在供电关系,则根据供电关系,确定相邻的功能节点的连接状态;若不存在供电关系,则根据通信关系和/或信号关系,确定相邻的功能节点的连接状态;在不相邻的功能节点之间,某一功能节点通过与其相邻的功能节点反馈的电源电压,确定与其不相邻的功能节点的连接状态;或者,某一功能节点通过诊断命令的应答和/或异常信号,确定与其不相邻的功能节点的连接状态。The beneficial effects of the embodiments of the present application are: different from the prior art, an offline vehicle detection method provided by the embodiments of the present application includes: establishing a diagnostic function link, wherein the diagnostic function link includes a plurality of Function node, the function node includes diagnostic equipment, vehicle connection equipment, component connection equipment and electronic control unit, wherein the diagnostic equipment is connected to the vehicle connection equipment, the vehicle connection equipment is connected to the component connection equipment, the component connection equipment is connected to the electronic control unit, and the component connection equipment is used for It is used to simulate the whole vehicle environment of the car; if there is a power supply relationship between adjacent functional nodes, the connection status of the adjacent functional nodes is determined according to the power supply relationship; Signal relationship to determine the connection state of adjacent functional nodes; between non-adjacent functional nodes, a functional node determines the connection state of its non-adjacent functional nodes through the power supply voltage fed back by its adjacent functional nodes ; Or, a certain function node determines the connection status of the function node not adjacent to it through the response of the diagnosis command and/or the abnormal signal.
通过建立诊断功能链路,该诊断功能链路包括多个功能节点,从而能够对整个测试环境进行检测,保障汽车测试的正常工作;并且,通过供电关系、通信关系以及信号关系来确定相邻的功能节点之间的连接状态和不相邻的功能节点之间的连接状态,能够提高检测效率。By establishing a diagnostic function link, the diagnostic function link includes multiple functional nodes, so that the entire test environment can be tested to ensure the normal operation of the vehicle test; and the adjacent power supply relationship, communication relationship and signal relationship are determined. The connection state between functional nodes and the connection state between non-adjacent functional nodes can improve detection efficiency.
附图说明Description of drawings
一个或多个实施例通过与之对应的附图中的图片进行示例性说明,这些示例性说明并不构成对实施例的限定,附图中具有相同参考数字标号的元件表示为类似的元件,除非有特别申明,附图中的图不构成比例限制。One or more embodiments are exemplified by the pictures in the corresponding drawings, and these exemplifications do not constitute limitations of the embodiments, and elements with the same reference numerals in the drawings are denoted as similar elements, Unless otherwise stated, the figures in the accompanying drawings do not constitute a scale limitation.
图1是本申请实施例提供的一种车辆的离线检测系统的结构示意图;1 is a schematic structural diagram of an offline detection system for a vehicle provided by an embodiment of the present application;
图2是本申请实施例提供的一种车辆的离线检测方法的流程示意图;2 is a schematic flowchart of an offline detection method for a vehicle provided by an embodiment of the present application;
图3是图2中的步骤S201的细化流程图;Fig. 3 is the refinement flow chart of step S201 in Fig. 2;
图4是图2中的步骤S202的细化流程图;Fig. 4 is the refinement flow chart of step S202 in Fig. 2;
图5是本申请实施例提供的一种诊断功能链路的示意图;5 is a schematic diagram of a diagnostic function link provided by an embodiment of the present application;
图6是本申请实施例提供的一种链路状态管理的流程示意图;6 is a schematic flowchart of a link state management provided by an embodiment of the present application;
图7是本申请实施例提供的另一种车辆的离线检测系统的结构示意图;7 is a schematic structural diagram of another off-line vehicle detection system provided by an embodiment of the present application;
图8是本申请实施例提供的另一种离线检测方法的流程示意图。FIG. 8 is a schematic flowchart of another offline detection method provided by an embodiment of the present application.
具体实施方式Detailed ways
为使本申请实施例的目的、技术方案和优点更加清楚,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。In order to make the purposes, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be described clearly and completely below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments It is a part of the embodiments of the present application, but not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present application.
此外,下面所描述的本申请各个实施方式中所涉及到的技术特征只要彼此之间未构成冲突就可以相互组合。In addition, the technical features involved in the various embodiments of the present application described below can be combined with each other as long as there is no conflict with each other.
在本申请的实施例中,诊断设备包括电池检测仪、诊断仪、智能手机、掌上电脑(Personal Digital Assistant,PDA)、平板电脑、智能手表等能对汽车进行检测的电子设备。In the embodiments of the present application, the diagnostic equipment includes a battery tester, a diagnostic tester, a smart phone, a PDA (Personal Digital Assistant, PDA), a tablet computer, a smart watch, and other electronic devices that can test a car.
具体地,下面结合说明书附图对本申请实施例作具体阐述。Specifically, the embodiments of the present application will be described in detail below with reference to the accompanying drawings.
请参阅图1,图1是本申请实施例提供的一种车辆的检测系统的示意图;Please refer to FIG. 1, which is a schematic diagram of a vehicle detection system provided by an embodiment of the present application;
如图1所示,该车辆的离线检测系统100包括:诊断设备10、汽车连接设备20、部件连接设备30以及电子控制单元40。As shown in FIG. 1 , the off-
其中,诊断设备10用于诊断车辆的各个部件的状态是否正常,车辆具体可以是任何车型车款的机动车辆,例如货车、小汽车、公交车等。The
其中,汽车连接设备20,即(Vehicle Communication Interface,VCI),连接诊断设备10、部件连接设备30,用于连接该部件连接设备30,以转发诊断设备10发送的诊断命令。The vehicle connection device 20 (Vehicle Communication Interface, VCI) is connected to the
在本申请实施例中,汽车连接设备20还用于连接汽车的整车,以使诊断设备10能够直接诊断车辆的部件的状态。其中,汽车连接设备20通过硬件通信接口与部件连接设备30或汽车连接,该硬件通信接口包括OBD接口。In the embodiment of the present application, the
其中,部件连接设备30,即(Peripheralcomponentinterconnect,PCI),连接电子控制单元40,用于模拟整车环境功能,例如:对汽车连接设备20提供标准的OBDII连接方式,对电子控制单元40提供12V低压电源、内部通信总线和各种控制信号,或者,为电子控制单元40提供点火开关信号,或者,模拟互锁环路上的电阻,或者,网关发送链路激活消息给电子控制单元40等功能。Among them, the component connection device 30 (Peripheral component interconnect, PCI) is connected to the
在本申请实施例中,车辆具有由多个电子控制单元40组成的电子控制系统,用以协调和控制车辆按照驾驶员等的操作指令,并对一个或者多项车辆参数进行实时监测,确保车辆可靠并安全地运行。In the embodiment of the present application, the vehicle has an electronic control system composed of a plurality of
可以理解的是,在不同车型或者车款的车辆中,根据其结构设置和承担功能的区别,所具有的电子控制单元是不相同的,导致其电子控制单元列表也不尽相同。It can be understood that, in different models or models of vehicles, the electronic control units are different according to the differences in their structural settings and assumed functions, resulting in different electronic control unit lists.
其中,车辆中的各个电子控制单元40之间通常采用总线的方式通信连接。每个电子控制单元40使用特定的通信协议。电子控制单元40按照自身使用的通信协议,会在相应的汽车总线上进行通信,以避免冲突和提升效率。亦即,使用同一种通信协议的电子控制单元40在一种汽车总线上通信,一种汽车总线与一种通信协议对应。Wherein, the communication connection between the various
为了便于日常检修和维护,车辆还可以具有至少一个硬件通信接口,比如OBD接口。该硬件通信接口与车辆可以与一种或者多个汽车总线连接,用于与外部设备建立通信连接,使其与电子控制单元完成数据交互等过程。In order to facilitate routine inspection and maintenance, the vehicle may also have at least one hardware communication interface, such as an OBD interface. The hardware communication interface and the vehicle can be connected with one or more vehicle buses to establish a communication connection with an external device, so that it can complete processes such as data interaction with the electronic control unit.
其中,诊断设备10包括电池检测仪(BatteryTester)和诊断仪(Diagnostic)。其中,电池检测仪可以是任何类型的车辆诊断产品,电池检测仪一般是通过对汽车电池和启动系统进行电气特性方面的测量,根据电气特征的变化,来判断电池和启动系统的好坏,具体的,电池检测仪包括至少一个电连接器,该电连接器的末端为与车辆10的硬件通信接口相匹配的诊断接头,电连接器包括开尔文(Kelvin)连接器、低频圆形连接器、光纤连接器、矩形连接器、印制电路连接器、射频连接器等连接器,优选的,本申请实施例中的电连接器为开尔文连接器。The
其中,诊断设备通过汽车连接设备与电子控制单元(Electroniccontrolunit,ECU)进行通信,从而获取车辆上零部件的状态,以协助故障维修,例如:诊断设备通过DLC连接器与电子控制单元进行交互,以获取蓄电池的状态,包括电池负荷状态。其中,电子控制单元,用于控制车辆的多个部件,例如:发动机、变速箱、车窗、车门、仪表盘等部件。Among them, the diagnostic device communicates with the electronic control unit (ECU) through the car connection device, so as to obtain the status of the components on the vehicle to assist in troubleshooting. For example, the diagnostic device interacts with the electronic control unit through the DLC connector to Get the status of the battery, including the battery load status. Among them, the electronic control unit is used to control multiple components of the vehicle, such as: engine, gearbox, window, door, instrument panel and other components.
在实际使用过程中,诊断设备10通过接口模块,例如诊断接头和硬件通信接口,与车辆中的多种汽车总线建立物理上的通信连接,并加载合适或者配对的协议配置来实现与电子控制系统之间的数据交互,例如发送检测指令或者接收检测数据。In actual use, the
在本申请实施例中,车辆还包括轮胎、方向盘、驱动电机等部件,其属于现有技术,在此不再赘述。In the embodiments of the present application, the vehicle further includes components such as tires, steering wheels, and drive motors, which belong to the prior art and will not be repeated here.
请参阅图2,图2是本申请实施例提供的一种车辆的离线检测方法的流程示意图;Please refer to FIG. 2, which is a schematic flowchart of an offline detection method for a vehicle provided by an embodiment of the present application;
其中,该车辆的离线检测方法,应用于上述实施例提及的车辆的离线检测系统。Wherein, the offline detection method of the vehicle is applied to the offline detection system of the vehicle mentioned in the above embodiment.
如图2所示,该车辆的离线检测方法的流程,包括:As shown in Figure 2, the process of the offline detection method of the vehicle includes:
步骤S201:建立诊断功能链路,其中,诊断功能链路包括多个功能节点,功能节点包括诊断设备、汽车连接设备、部件连接设备以及电子控制单元,其中,诊断设备连接汽车连接设备,汽车连接设备连接部件连接设备,部件连接设备连接电子控制单元,部件连接设备用于模拟汽车的整车环境;Step S201: Establish a diagnostic function link, wherein the diagnostic function link includes a plurality of functional nodes, and the functional nodes include a diagnostic device, a vehicle connection device, a component connection device, and an electronic control unit, wherein the diagnostic device is connected to the vehicle connection device, and the vehicle is connected to the The equipment is connected to the component connected to the equipment, the component connected equipment is connected to the electronic control unit, and the component connected equipment is used to simulate the vehicle environment of the car;
具体的,请再参阅图3,图3是图2中的步骤S201的细化流程图;Specifically, please refer to FIG. 3 again, which is a detailed flowchart of step S201 in FIG. 2 ;
如图3所示,建立诊断功能链路的步骤,包括:As shown in Figure 3, the steps of establishing a diagnostic function link include:
步骤S301:诊断设备向汽车连接设备发送链路建立消息,以建立诊断设备与汽车连接设备之间的链路;Step S301: the diagnosis device sends a link establishment message to the vehicle connection device to establish a link between the diagnosis device and the vehicle connection device;
具体的,诊断设备向汽车连接设备发送链路建立请求,该链路建立请求以链路建立消息的形式进行表征,当汽车连接设备接收到诊断设备发送的链路建立消息之后,进行链路状态管理,并建立诊断设备与汽车连接设备之间的链路。Specifically, the diagnosis device sends a link establishment request to the car connection device, and the link establishment request is represented in the form of a link establishment message. After the car connection device receives the link establishment message sent by the diagnosis device, the link status Manage and establish a link between diagnostic equipment and connected equipment in the car.
在本申请实施例中,建立诊断功能链路,还包括:In the embodiment of the present application, establishing a diagnostic function link further includes:
在诊断设备与汽车连接设备建立链路之后,诊断设备与汽车连接设备建立心跳检测机制。After the diagnostic device establishes a link with the car connection device, the diagnosis device establishes a heartbeat detection mechanism with the car connection device.
具体的,诊断设备与汽车连接设备建立心跳检测机制,诊断设备每间隔预设时间接收汽车连接设备发送的心跳信号或心跳应答信号,汽车连接设备每间隔预设时间接受诊断设备发送的心跳信号或心跳应答信号。可以理解的是,预设时间可以根据具体需要进行设置,例如:设置为1s、2s,在此不进行限定。Specifically, the diagnostic device establishes a heartbeat detection mechanism with the car connection device, the diagnostic device receives the heartbeat signal or the heartbeat response signal sent by the car connection device at preset time intervals, and the car connection device receives the heartbeat signal or heartbeat response signal sent by the car connection device at preset time intervals. Heartbeat response signal. It can be understood that the preset time can be set according to specific needs, for example, set to 1s or 2s, which is not limited here.
步骤S302:汽车连接设备向部件连接设备转发链路建立消息,以建立汽车连接设备与部件连接设备之间的链路;Step S302: the vehicle connection device forwards the link establishment message to the component connection device to establish a link between the vehicle connection device and the component connection device;
具体的,在汽车连接设备接收到诊断设备发送的链路建立消息之后,将该链路建立消息转发到部件连接设备,当部件连接设备接收到汽车连接设备发送的链路建立消息之后,进行链路状态管理,并建立部件连接设备与汽车连接设备之间的链路。Specifically, after the vehicle connection device receives the link establishment message sent by the diagnostic device, it forwards the link establishment message to the component connection device. Road state management, and establish links between component connected devices and vehicle connected devices.
步骤S303:诊断设备向汽车连接设备发送启动命令,由汽车连接设备将启动命令转发到部件连接设备,使得部件连接设备在接收到启动命令之后,启动电子控制单元,以建立部件连接设备与电子控制单元之间的链路。Step S303: The diagnosis device sends a start command to the car connection device, and the car connection device forwards the start command to the component connection device, so that the component connection device starts the electronic control unit after receiving the start command to establish the component connection device and the electronic control unit. link between units.
具体的,诊断设备向汽车连接设备发送启动命令,该启动命令用于启动电子控制单元。当汽车连接设备接收到诊断设备发送的启动命令之后,将启动命令转发到部件连接设备,使得部件连接设备解析并执行该启动命令,例如:给电子控制单元进行上电,以及,向电子控制单元发送该启动命令,以启动该电子控制单元,并建立部件连接设备与电子控制单元之间的链路。Specifically, the diagnostic device sends a start command to the vehicle connection device, where the start command is used to start the electronic control unit. After the car connection device receives the start command sent by the diagnostic device, it forwards the start command to the component connection device, so that the component connection device parses and executes the start command, for example: power on the electronic control unit, and send the electronic control unit The activation command is sent to activate the electronic control unit and establish a link between the component connection device and the electronic control unit.
在本申请实施例中,电子控制单元可以为多个,多个电子控制单元构成电子控制系统,部件连接设备模拟整车功能,从而实现与每一个电子控制单元的连接,以获取每一个电子控制单元的诊断测量结果,该诊断测量结果包括故障码、电池负荷状态、当前电池使用里程数以及上一个电池使用的里程数中的至少一个。In the embodiment of the present application, there may be multiple electronic control units, and multiple electronic control units constitute an electronic control system, and the component connection device simulates the function of the whole vehicle, so as to realize the connection with each electronic control unit to obtain each electronic control unit. Diagnostic measurements of the unit, the diagnostic measurements including at least one of a fault code, battery load status, current battery usage mileage, and last battery usage mileage.
步骤S202:在相邻的功能节点之间,若存在供电关系,则根据供电关系,确定相邻的功能节点的连接状态;若不存在供电关系,则根据通信关系和/或信号关系,确定相邻的功能节点的连接状态;Step S202: If there is a power supply relationship between adjacent functional nodes, the connection status of the adjacent functional nodes is determined according to the power supply relationship; if there is no power supply relationship, the phase is determined according to the communication relationship and/or the signal relationship. The connection status of adjacent functional nodes;
相邻节点之间的关系如下表1所示:The relationship between adjacent nodes is shown in Table 1 below:
表1Table 1
可以看出,部件连接设备与汽车连接设备、电子控制单元存在供电关系,部件连接设备向汽车连接设备、电子控制单元进行供电。It can be seen that the component connection device has a power supply relationship with the vehicle connection device and the electronic control unit, and the component connection device supplies power to the vehicle connection device and the electronic control unit.
并且,若诊断设备与汽车连接设备通过有线方式连接,例如:通过USB有线连接,则诊断设备与汽车连接设备之间存在供电关系,诊断设备通过供电关系确定汽车连接设备的连接状态。Moreover, if the diagnostic device and the car connection device are connected by wire, for example, via USB wired connection, there is a power supply relationship between the diagnostic device and the car connection device, and the diagnostic device determines the connection state of the car connection device through the power supply relationship.
具体的,请再参阅图4,图4是图2中的步骤S202的细化流程图;Specifically, please refer to FIG. 4 again, which is a detailed flowchart of step S202 in FIG. 2 ;
如图4所示,根据通信关系和/或信号关系,确定相邻的功能节点的连接状态的流程,包括:As shown in Figure 4, the process of determining the connection status of adjacent functional nodes according to the communication relationship and/or the signal relationship includes:
步骤S2021:判断相邻的功能节点之间是否存在通信关系;Step S2021: judging whether there is a communication relationship between adjacent functional nodes;
具体的,通信关系指的是数字信号,例如:接收到对方发送的消息,表示通信正常,接收不到对方发送的消息,表示连接断开。Specifically, the communication relationship refers to a digital signal. For example, receiving a message sent by the other party means that the communication is normal, and failing to receive a message sent by the other party means that the connection is disconnected.
可以理解的是,连接断开可能是物理线路上的断开,或者对方软件异常,没有发消息了,也就是说,若相邻的功能节点之间不存在通信关系,有可能是硬件异常,也可能是软件异常。It is understandable that the disconnection may be due to a disconnection on the physical line, or the other party's software is abnormal and no message is sent. That is to say, if there is no communication relationship between adjacent functional nodes, it may be a hardware abnormality. It could also be a software anomaly.
步骤S2022:根据通信应答状态,确定相邻的功能节点的连接状态;Step S2022: Determine the connection state of the adjacent functional nodes according to the communication response state;
具体的,若相邻的功能节点之间存在通信关系,则根据通信应答状态,确定相邻的功能节点的连接状态。例如:诊断设备向汽车连接设备发送消息,根据汽车连接设备是否反馈该消息来确定汽车连接设备的连接状态;同理,汽车连接设备向部件连接设备发送消息,根据部件连接设备是否反馈该消息来确定部件连接设备的连接状态;同理,部件连接设备向电子控制单元发送消息,根据电子控制单元是否反馈该消息来确定电子控制单元的连接状态。Specifically, if there is a communication relationship between adjacent functional nodes, the connection state of the adjacent functional nodes is determined according to the communication response state. For example, the diagnosis device sends a message to the car connection device, and the connection status of the car connection device is determined according to whether the car connection device feeds back the message; similarly, the car connection device sends a message to the component connection device, according to whether the component connection device feeds back the message. Determine the connection state of the component connection device; similarly, the component connection device sends a message to the electronic control unit, and determines the connection state of the electronic control unit according to whether the electronic control unit feeds back the message.
可以理解的是,电子控制单元、部件连接设备、汽车连接设备也可以通过向相邻的功能节点发送消息,根据接收方是否反馈该消息来确定接收方的连接状态,在此不再赘述。It can be understood that the electronic control unit, component connection device, and vehicle connection device can also send messages to adjacent functional nodes to determine the connection status of the receiver according to whether the receiver feeds back the message, which will not be repeated here.
步骤S2023:根据信号关系,确定相邻的功能节点的连接状态,其中,信号关系包括电平信号和/或心跳信号;Step S2023: Determine the connection status of adjacent functional nodes according to the signal relationship, wherein the signal relationship includes a level signal and/or a heartbeat signal;
具体的,若相邻的功能节点之间不存在通信关系,则根据信号关系,确定相邻的功能节点的连接状态,其中,信号关系包括电平信号和/或心跳信号。Specifically, if there is no communication relationship between adjacent functional nodes, the connection status of the adjacent functional nodes is determined according to the signal relationship, wherein the signal relationship includes a level signal and/or a heartbeat signal.
在本申请实施例中,信号关系包括心跳信号,根据信号关系,确定相邻的功能节点的连接状态,包括:In the embodiment of the present application, the signal relationship includes a heartbeat signal, and the connection status of adjacent functional nodes is determined according to the signal relationship, including:
若某一功能节点的应用程序与相邻的功能节点之间建立了心跳检测机制,在预设时间内没有接收到相邻的功能节点发送的心跳应答信号,则确定相邻的功能节点之间存在断链异常。If a heartbeat detection mechanism is established between the application program of a functional node and an adjacent functional node, and the heartbeat response signal sent by the adjacent functional node is not received within the preset time, it is determined that the adjacent functional node is between There is a broken chain exception.
例如:部件连接设备通过OBDPIN16引脚给汽车连接设备供电,并且,汽车连接设备通过OBDPIN3引脚向部件连接设备发送电平信号,部件连接设备通过电平信号的高低来检测与汽车连接设备的连接状态。For example, the component connecting device supplies power to the car connecting device through the OBDPIN16 pin, and the car connecting device sends a level signal to the component connecting device through the OBDPIN3 pin, and the component connecting device detects the connection with the car connecting device through the level of the signal. state.
或者,诊断设备与汽车连接设备之间建立心跳检测机制,诊断设备与汽车连接设备两者之间可以通过心跳信号来确定两者之间的连接状态。Alternatively, a heartbeat detection mechanism is established between the diagnosis device and the car connection device, and the connection state between the diagnosis device and the car connection device can be determined through a heartbeat signal.
在本申请实施例中,汽车连接设备在连接部件连接设备时,把OBD PIN3引脚的电平拉高,部件连接设备通过检测OBD PIN3引脚的电平高低就可以确认是否与汽车连接设备存在物理上的连接。如果汽车连接设备与部件连接设备的连接断开,则OBD PIN3引脚的电平拉低,部件连接设备可以确认汽车连接设备已经断开。In the embodiment of the present application, the car connection device pulls up the level of the OBD PIN3 pin when connecting the component connection device, and the component connection device can confirm whether it exists with the car connection device by detecting the level of the OBD PIN3 pin. physical connection. If the connection between the car connection device and the part connection device is disconnected, the level of the OBD PIN3 pin is pulled low, and the part connection device can confirm that the car connection device has been disconnected.
在本申请实施例中,相邻节点之间的链路状态检测,包括:In this embodiment of the present application, the link state detection between adjacent nodes includes:
相邻节点之间,如果有供电关系,可优先从电源供给关系判断连接状态;If there is a power supply relationship between adjacent nodes, the connection status can be judged first from the power supply relationship;
在无法从供电关系判断连接状态情况下,可从通信应答状态判断连接状态;如果相邻的两个设备之间有交互信号,可以检测交互信号判断连接状态;软件层面的异常,可从心跳检测机制判断连接状态。具体如下:When the connection status cannot be judged from the power supply relationship, the connection status can be judged from the communication response state; if there is an interactive signal between two adjacent devices, the interactive signal can be detected to judge the connection state; software-level abnormalities can be detected from the heartbeat. The mechanism determines the connection status. details as follows:
(1)诊断设备与汽车连接设备之间:在非USB连接关系下,不存在供电关系,在无线连接情况下,无直接的信号连接,但有通信连接,可从通信连接上判断连接状态。如果WiFi、BT、USB、Ethernet等任意一种通信方式无连接,诊断设备和汽车连接设备可互相判定对方已经断开。在通信正常情况下,可通过心跳机制判定软件是否异常。诊断应用在发送诊断命令之间,诊断应用先建立与汽车连接设备的心跳监测机制,通知汽车连接设备进行心跳监测。诊断应用每隔1秒发送一次心跳消息给汽车连接设备,汽车连接设备收到心跳消息后给出心跳应答。如果在连续的10s内,汽车连接设备没有收到诊断设备的心跳消息,汽车连接设备进入链路断链异常处理流程;同样,诊断应用在连续10s内无心跳应答,也监测到链路断链异常,进入异常处理流程。(1) Between the diagnostic device and the car connection device: In the non-USB connection relationship, there is no power supply relationship. In the case of wireless connection, there is no direct signal connection, but there is a communication connection, and the connection status can be judged from the communication connection. If any communication methods such as WiFi, BT, USB, Ethernet, etc. are not connected, the diagnostic device and the car connection device can determine each other that the other party has been disconnected. When the communication is normal, the heartbeat mechanism can be used to determine whether the software is abnormal. Before the diagnostic application sends the diagnostic command, the diagnostic application first establishes a heartbeat monitoring mechanism with the car-connected device, and notifies the car-connected device to perform heartbeat monitoring. The diagnostic application sends a heartbeat message to the car-connected device every 1 second, and the car-connected device gives a heartbeat response after receiving the heartbeat message. If the car connection device does not receive the heartbeat message from the diagnostic device within 10 consecutive seconds, the car connection device enters the link disconnection exception handling process; similarly, if the diagnostic application does not receive a heartbeat response within 10 consecutive seconds, the link disconnection is also detected. Exception, enter the exception handling process.
(2)汽车连接设备与部件连接设备之间,部件连接设备通过OBD PIN16给汽车连接设备供电,汽车连接设备可以监控OBD PIN16的电源状态,判定部件连接设备的连接状态;汽车连接设备可通过OBD PIN3向部件连接设备发送信号,部件连接设备通过信号检测判定与汽车连接设备的连接状态。本方案中,VCI收到诊断设备的链路建立消息时,表示需要连接部件连接设备,把OBD PIN3置高电平,部件连接设备检测OBD PIN3判定其与汽车连接设备的连接状态。如果OBD PIN3高电平,表示部件连接设备与汽车连接设备正常连接,否则,确定汽车连接设备未连接或者未启动部件测试。(2) Between the car connection device and the part connection device, the part connection device supplies power to the car connection device through the OBD PIN16, and the car connection device can monitor the power status of the OBD PIN16 to determine the connection state of the part connection device; the car connection device can pass the OBD PIN16. PIN3 sends a signal to the component connection device, and the component connection device determines the connection state with the car connection device through signal detection. In this solution, when the VCI receives the link establishment message from the diagnostic device, it indicates that it needs to connect the component connection device, and sets the OBD PIN3 to a high level. The component connection device detects the OBD PIN3 to determine its connection status with the car connection device. If the OBD PIN3 is at a high level, it means that the component connection device is normally connected to the car connection device, otherwise, it is determined that the car connection device is not connected or the component test has not been started.
(3)部件连接设备与电子控制单元之间,部件连接设备给电子控制单元供电,如果部件连接设备与电子控制单元断开,则电子控制单元停止运行,相当于检测到部件连接设备断开。由于部件连接设备不能从供电状态、通信状态判断电子控制单元的连接状态,需要其它机制对连接状态进行判断,例如:通过部件连接设备与电子控制单元之间建立的心跳检测机制来判断两者之间的连接状态。(3) Between the component connection device and the electronic control unit, the component connection device supplies power to the electronic control unit. If the component connection device is disconnected from the electronic control unit, the electronic control unit stops running, which is equivalent to detecting that the component connection device is disconnected. Since the component connection device cannot judge the connection state of the electronic control unit from the power supply state and the communication state, other mechanisms are needed to judge the connection state, for example, the heartbeat detection mechanism established between the component connection device and the electronic control unit is used to determine the connection state between the two. connection status between.
步骤S203:在不相邻的功能节点之间,某一功能节点通过与其相邻的功能节点反馈的电源电压,确定与其不相邻的功能节点的连接状态;或者,某一功能节点通过诊断命令的应答和/或异常信号,确定与其不相邻的功能节点的连接状态。Step S203: Between non-adjacent functional nodes, a certain functional node determines the connection state of its non-adjacent functional nodes through the power supply voltage fed back by its adjacent functional nodes; or, a certain functional node passes a diagnosis command Response and/or abnormal signal to determine the connection status of functional nodes that are not adjacent to it.
具体的,诊断设备与部件连接设备为不相邻的功能节点,诊断设备通过向汽车连接设备查询电源电压,来确定部件连接设备的连接状态,例如:诊断设备请求汽车连接设备反馈OBD PIN16引脚的电压,若汽车连接设备的OBD PIN16引脚的电压为高电压,则确定部件连接设备连接正常;若汽车连接设备的OBD PIN16引脚的电压为低电压,则确定部件连接设备连接异常。其中,若引脚的电压值高于预设电压阈值,则确定引脚的电压为高电压,若引脚的电压值低于预设电压阈值,则确定引脚的电压为低电压。Specifically, the diagnostic device and the component connecting device are non-adjacent functional nodes. The diagnostic device determines the connection status of the component connecting device by inquiring the power supply voltage from the car connecting device. For example, the diagnostic device requests the car connecting device to feed back the OBD PIN16 pin If the voltage of the OBD PIN16 pin of the car connection device is high voltage, it is determined that the connection of the component connection device is normal; if the voltage of the OBD PIN16 pin of the car connection device is low voltage, it is determined that the connection of the component connection device is abnormal. Wherein, if the voltage value of the pin is higher than the preset voltage threshold, the voltage of the pin is determined to be a high voltage, and if the voltage value of the pin is lower than the preset voltage threshold, the voltage of the pin is determined to be a low voltage.
请再参阅图5,图5是本申请实施例提供的一种诊断功能链路的示意图;Please refer to FIG. 5 again, FIG. 5 is a schematic diagram of a diagnostic function link provided by an embodiment of the present application;
如图5所示,该诊断功能链路由诊断设备、汽车连接设备(Vehicle CommunicationInterface,VCI)、部件连接设备(Peripheralcomponentinterconnect,PCI)以及电子控制单元(Electronic Control Unit,ECU)组成。As shown in FIG. 5 , the diagnostic function link consists of a diagnostic device, a vehicle communication interface (VCI), a peripheral component interconnect (PCI) and an electronic control unit (ECU).
其中,诊断设备和汽车连接设备之间支持无线连接,例如:WiFi或BT;或者,诊断设备和汽车连接设备之间通过有线连接,例如:USB或Ethernet,汽车连接设备和部件连接设备之间采用16PIN的OBD II有线线缆连接,部件连接设备和电子控制单元之间通过专用有线线缆连接,该专用有线线缆包括:12V电源,地线,通信线,互锁线,点火开关信号,安全气囊信号等组成的线缆。该部件连接设备可以提供12V低压电源给电子控制单元和汽车连接设备供电。Among them, a wireless connection is supported between the diagnostic device and the car-connected device, such as WiFi or BT; or, a wired connection between the diagnostic device and the car-connected device, such as USB or Ethernet, is used between the car-connected device and the component-connected device. 16PIN OBD II wired cable connection, the component connection equipment and electronic control unit are connected by a special wired cable, the special wired cable includes: 12V power supply, ground wire, communication wire, interlock wire, ignition switch signal, safety Airbag signal and other cables. This component connection device can provide 12V low voltage power supply to power electronic control unit and car connection equipment.
其中,汽车连接设备、部件连接设备以及电子控制单元通过总线协议进行通信,例如:汽车连接设备的通信线,包括CAN总线或者LIN总线,能够连接到部件连接设备并穿越部件连接设备连接到电子控制单元,因此,汽车连接设备能够与部件连接设备和电子控制单元直接通信。Among them, the car connection device, the component connection device and the electronic control unit communicate through the bus protocol, for example: the communication line of the car connection device, including the CAN bus or LIN bus, can be connected to the component connection device and through the component connection device to connect to the electronic control unit, the car connection device is therefore able to communicate directly with the component connection device and the electronic control unit.
在本申请实施例中,诊断功能从诊断设备上的诊断应用程序发起,诊断命令经过诊断设备、汽车连接设备、部件连接设备、电子控制单元后到达电子控制单元上的应用程序,测试结果经过同样的路径反馈到诊断设备的诊断应用程序。In the embodiment of the present application, the diagnosis function is initiated from the diagnosis application program on the diagnosis device, and the diagnosis command reaches the application program on the electronic control unit after the diagnosis device, the vehicle connection device, the component connection device, and the electronic control unit, and the test result passes through the same The path is fed back to the diagnostic application of the diagnostic device.
可以理解的是,在物理层上,汽车连接设备负责通信协议的转换,诊断设备和汽车连接设备之间采用J2534、RP1210、D-PDU等通信协议交换数据,汽车连接设备与部件连接设备和电子控制单元之间采用CAN、LIN等总线协议通信。It can be understood that at the physical layer, the car connection device is responsible for the conversion of communication protocols, and the diagnostic equipment and the car connection device use J2534, RP1210, D-PDU and other communication protocols to exchange data. Communication between control units adopts CAN, LIN and other bus protocols.
在本申请实施例中,不相邻节点之间的链路状态检测,包括:某一功能节点通过与其相邻的功能节点反馈的电源电压,确定与其不相邻的功能节点的连接状态;或者,某一功能节点通过诊断命令的应答和/或异常信号,确定与其不相邻的功能节点的连接状态。不相邻节点之间的链路状态检测,具体如下表2所示:In this embodiment of the present application, the link state detection between non-adjacent nodes includes: a certain functional node determines the connection state of its non-adjacent functional nodes through the power supply voltage fed back by its adjacent functional nodes; or , a certain function node determines the connection state of the function node that is not adjacent to it through the response of the diagnosis command and/or the abnormal signal. Link state detection between non-adjacent nodes, as shown in Table 2 below:
表2Table 2
(1)诊断设备的跨越节点链路检测:(1) Cross-node link detection of diagnostic equipment:
诊断设备请求汽车连接设备反馈OBD PIN16的电源状态,通过OBD PIN16的电压可以判定部件连接设备是否正常连接。如果汽车连接设备的OBDPIN16电压高,则部件连接设备连接正常,否则部件连接设备发生设备断链。The diagnostic device requests the car connection device to feed back the power status of the OBD PIN16, and it can be determined whether the component connection device is normally connected through the voltage of the OBD PIN16. If the OBDPIN16 voltage of the car connection device is high, the connection of the component connection device is normal; otherwise, the device connection of the component connection device is disconnected.
诊断设备通过诊断命令的应答可判断电子控制单元是否正常连接,如果没有接收到电子控制单元的诊断命令的应答,则电子控制单元已经离线,即链路断链,例如:电子控制单元被拔出或者软件异常。The diagnostic equipment can judge whether the electronic control unit is connected normally through the response of the diagnostic command. If no response to the diagnostic command from the electronic control unit is received, the electronic control unit is offline, that is, the link is disconnected. For example, the electronic control unit is pulled out. or software exception.
可以理解的是,诊断设备优先判断部件连接设备的连接,再判断电子控制单元的连接,由于部件连接设备向电子控制单元供电,因此,如果部件连接设备连接异常,则电子控制单元肯定连接异常。It can be understood that the diagnostic device firstly determines the connection of the component connection device, and then determines the connection of the electronic control unit. Since the component connection device supplies power to the electronic control unit, if the connection of the component connection device is abnormal, the electronic control unit must be abnormally connected.
(2)汽车连接设备的跨越节点链路检测:(2) Cross-node link detection of car connection equipment:
汽车连接设备通过异常告知获取电子控制单元链路异常。当诊断设备检测到电子控制单元链路断开时,进入异常处理,发送消息通知汽车连接设备拆除链路,汽车连接设备被告知链路异常后,进入异常保护处理。The car connection device informs the acquisition of the electronic control unit link abnormality through the abnormality. When the diagnostic device detects that the electronic control unit link is disconnected, it enters abnormal processing, and sends a message to notify the car connection device to remove the link. After the car connection device is notified that the link is abnormal, it enters abnormal protection processing.
(3)部件连接设备的跨越结点链路检测:(3) Cross-node link detection of component connection equipment:
当汽车连接设备被告知诊断设备链路异常时,进入异常保护处理,拉低OBD PIN3引脚电信号,部件连接设备检测到OBD PIN3低电平后,也被告知链路异常,进入异常保护。When the car connection device is informed that the link of the diagnostic device is abnormal, it enters the abnormal protection process and pulls down the electrical signal of the OBD PIN3 pin. After the component connection device detects the low level of the OBD PIN3, it is also informed that the link is abnormal and enters the abnormal protection.
(4)电子控制单元的跨越结点链路检测:(4) Cross-node link detection of electronic control unit:
当部件连接设备检测到链路异常时,进入异常保护处理,关闭电子控制单元的电源,电子控制单元停止运行。When the component connection device detects that the link is abnormal, it enters the abnormal protection process, turns off the power supply of the electronic control unit, and stops the operation of the electronic control unit.
在本申请实施例中,诊断设备向汽车连接设备发送诊断命令,由汽车连接设备转发诊断命令到部件连接设备,部件连接设备将诊断命令转发到电子控制单元,以获取电子控制单元的诊断结果。In the embodiment of the present application, the diagnostic device sends a diagnostic command to the car connection device, the car connection device forwards the diagnostic command to the component connection device, and the component connection device forwards the diagnostic command to the electronic control unit to obtain the diagnostic result of the electronic control unit.
或者,由于汽车连接设备、部件连接设备以及电子控制单元通过同一总线进行通信连接,汽车连接设备在接收到诊断设备发送的诊断命令之后,将诊断命令直接转发到电子控制单元。Alternatively, since the vehicle connection device, the component connection device, and the electronic control unit are communicatively connected through the same bus, the vehicle connection device directly forwards the diagnosis command to the electronic control unit after receiving the diagnosis command sent by the diagnosis device.
由于诊断设备的诊断命令直接从汽车连接设备穿越部件连接设备传递给电子控制单元,没有经过部件连接设备的软件的参与,所以在链路状态检测时,无需判断部件连接设备的软件是否异常。Since the diagnostic command of the diagnostic device is directly transmitted from the vehicle connection device to the electronic control unit through the component connection device, without the participation of the software of the component connection device, it is not necessary to judge whether the software of the component connection device is abnormal during link status detection.
在本申请实施例中,诊断功能链路上的每一功能节点均安装有应用程序,如图5所示,诊断设备对应一个诊断应用程序,汽车连接设备对应一个应用程序,部件连接设备对应一个应用程序,电子控制单元对应一个应用程序。In the embodiment of the present application, an application program is installed on each functional node on the diagnostic function link. As shown in FIG. 5 , a diagnostic device corresponds to a diagnostic application program, an automobile connection device corresponds to an application program, and a component connection device corresponds to an application program. application, the electronic control unit corresponds to an application.
该方法还包括:The method also includes:
诊断设备的诊断应用程序向汽车连接设备的应用程序发送诊断命令,由汽车连接设备的应用程序转发诊断命令到部件连接设备的应用程序,部件连接设备的应用程序再转发到电子控制单元的应用程序,以获取电子控制单元的测试结果。The diagnostic application of the diagnostic device sends the diagnostic command to the application of the car connected device, the application of the car connected device forwards the diagnostic command to the application of the component connected device, and the application of the component connected device forwards it to the application of the electronic control unit , to obtain the test results of the electronic control unit.
由于汽车连接设备、部件连接设备以及电子控制单元通过同一总线进行通信连接,因此,诊断设备的诊断应用程序向汽车连接设备的应用程序发送诊断命令,汽车连接设备的应用程序在接收到诊断命令之后,直接将该诊断命令转发到电子控制单元的应用程序,以获取电子控制单元的测试结果,从而减少部件连接设备的转发过程,提高响应速度。Since the car-connected device, the component-connected device, and the electronic control unit are communicatively connected through the same bus, the diagnostic application of the diagnostic device sends a diagnostic command to the car-connected device's application, and after the car-connected device's application receives the diagnostic command , and directly forward the diagnostic command to the application program of the electronic control unit to obtain the test result of the electronic control unit, thereby reducing the forwarding process of the components connected to the device and improving the response speed.
本申请实施例提供的车辆的离线检测方法,通过根据诊断功能链路上的各个功能节点的特点,综合采用电源监测、连接信号监控、通信识别、心跳检测等方法,识别诊断功能链路上的任意功能节点的异常,并做异常处理和保护,能够提高检测效率;并且,能够对所有节点进行监控,链路的完整性得到保证;从电源、信号、通信等方面进行检测,检测效率高;采用各自独立检测、主动探测和被动通知等方法结合,识别速度快,依赖条件少,识别准确率高,实施部署简便。The off-line vehicle detection method provided by the embodiment of the present application, by comprehensively adopting methods such as power supply monitoring, connection signal monitoring, communication identification, heartbeat detection, etc., according to the characteristics of each functional node on the diagnostic function link, to identify the faults on the diagnostic function link. Exception handling and protection of any functional node can improve the detection efficiency; moreover, all nodes can be monitored, and the integrity of the link is guaranteed; the detection from power supply, signal, communication, etc., has high detection efficiency; Using the combination of independent detection, active detection and passive notification, the recognition speed is fast, the dependency conditions are few, the recognition accuracy rate is high, and the implementation and deployment are simple.
在本申请实施例中,由于链路检测可能出现异常,因此,需要进行链路状态管理,请再参阅图6,图6是本申请实施例提供的一种链路状态管理的流程示意图;In the embodiment of the present application, since the link detection may be abnormal, it is necessary to perform link state management, please refer to FIG. 6 again, and FIG. 6 is a schematic flowchart of a link state management provided by the embodiment of the present application;
其中,链路状态的管理过程包括链路建立、心跳检测建立、电子控制单元启动、电子控制单元诊断、诊断结束关闭电子控制单元、关闭链路等流程。Wherein, the management process of the link state includes the processes of link establishment, heartbeat detection establishment, electronic control unit startup, electronic control unit diagnosis, closing the electronic control unit after diagnosis, closing the link, and the like.
具体的,如图6所示,链路状态管理的流程,包括:Specifically, as shown in Figure 6, the flow of link state management includes:
步骤S601:诊断设备向汽车连接设备发送链路建立消息;Step S601: the diagnostic device sends a link establishment message to the vehicle connection device;
具体的,诊断设备向汽车连接设备发送链路建立请求,该链路建立请求以链路建立消息的形式进行表征,当汽车连接设备接收到诊断设备发送的链路建立消息之后,进行链路状态管理,并建立诊断设备与汽车连接设备之间的链路。Specifically, the diagnosis device sends a link establishment request to the car connection device, and the link establishment request is represented in the form of a link establishment message. After the car connection device receives the link establishment message sent by the diagnosis device, the link status Manage and establish a link between diagnostic equipment and connected equipment in the car.
步骤S602:汽车连接设备向部件连接设备发送链路建立消息;Step S602: the vehicle connection device sends a link establishment message to the component connection device;
具体的,在汽车连接设备接收到诊断设备发送的链路建立消息之后,将该链路建立消息转发到部件连接设备,当部件连接设备接收到汽车连接设备发送的链路建立消息之后,进行链路状态管理,并建立部件连接设备与汽车连接设备之间的链路。Specifically, after the vehicle connection device receives the link establishment message sent by the diagnostic device, it forwards the link establishment message to the component connection device. Road state management, and establish links between component connected devices and vehicle connected devices.
步骤S603:诊断设备与汽车连接设备之间建立心跳检测机制;Step S603: establishing a heartbeat detection mechanism between the diagnostic device and the vehicle connection device;
具体的,诊断设备与汽车连接设备建立心跳检测机制,诊断设备每间隔预设时间接收汽车连接设备发送的心跳信号或心跳应答信号,汽车连接设备每间隔预设时间接受诊断设备发送的心跳信号或心跳应答信号。可以理解的是,预设时间可以根据具体需要进行设置,例如:设置为1s、2s,在此不进行限定。Specifically, the diagnostic device establishes a heartbeat detection mechanism with the car connection device, the diagnostic device receives the heartbeat signal or the heartbeat response signal sent by the car connection device at preset time intervals, and the car connection device receives the heartbeat signal or heartbeat response signal sent by the car connection device at preset time intervals. Heartbeat response signal. It can be understood that the preset time can be set according to specific needs, for example, set to 1s or 2s, which is not limited here.
步骤S604:汽车连接设备拉高某一引脚的电平;Step S604: the car connection device pulls up the level of a certain pin;
具体的,汽车连接设备拉高OBDPIN3引脚的电平,即,使得OBD PIN3引脚的电平为高电平。Specifically, the car connection device pulls up the level of the OBDPIN3 pin, that is, makes the level of the OBDPIN3 pin high.
步骤S605:部件连接设备检测某一引脚的电平状态;Step S605: the component connection device detects the level state of a certain pin;
具体的,汽车连接设备与部件连接设备通过OBD接口进行连接,例如:OBDPIN3引脚。本申请实施例还可以定义其他引脚进行检测,在此不进行限定。Specifically, the car connection device and the component connection device are connected through the OBD interface, for example, the OBDPIN3 pin. In this embodiment of the present application, other pins may also be defined for detection, which is not limited herein.
可以理解的是,OBD标准有16个PIN引脚,本申请自定义用OBD PIN3引脚来进行信号交互;软件一直跑一个任务,一个模数转换器(Analog-to-Digital Converter,ADC)接入到OBDPIN3引脚上,用于采样OBD PIN3引脚的电压;通过采样得到的电压来判断连接两个设备之间的连接状态。It is understandable that the OBD standard has 16 PIN pins, and this application uses the OBD PIN3 pin for signal interaction; the software runs a task all the time, and an Analog-to-Digital Converter (ADC) is connected to Input to OBDPIN3 pin, used to sample the voltage of OBD PIN3 pin; judge the connection state between two devices by the voltage obtained by sampling.
步骤S606:诊断设备向汽车连接设备发送启动命令;Step S606: the diagnostic device sends a start command to the vehicle connection device;
具体的,该启动命令用于启动电子控制单元。Specifically, the start command is used to start the electronic control unit.
步骤S607:汽车连接设备向部件连接设备发送启动命令;Step S607: the vehicle connection device sends a start command to the component connection device;
步骤S608:部件连接设备向电子控制单元发送启动命令;Step S608: the component connection device sends a start command to the electronic control unit;
步骤S609:电子控制单元启动运行;Step S609: the electronic control unit starts running;
步骤S610:诊断设备向汽车连接设备发送诊断命令;Step S610: the diagnostic device sends a diagnostic command to the vehicle connection device;
具体的,该诊断命令用于诊断该电子控制单元。Specifically, the diagnostic command is used to diagnose the electronic control unit.
步骤S611:汽车连接设备向电子控制单元发送诊断命令;Step S611: the vehicle connection device sends a diagnostic command to the electronic control unit;
步骤S612:电子控制单元反馈诊断命令的执行结果;Step S612: the electronic control unit feeds back the execution result of the diagnosis command;
具体的,诊断命令的执行结果,即电子控制单元的诊断测量结果,该诊断测量结果包括故障码、电池负荷状态、当前电池使用里程数以及上一个电池使用的里程数中的至少一个,电子控制单元通过向汽车连接设备和/或部件连接设备发送该诊断测量结果,以使汽车连接设备转发该诊断测量结果到诊断设备。Specifically, the execution result of the diagnostic command, that is, the diagnostic measurement result of the electronic control unit, the diagnostic measurement result includes at least one of the fault code, the battery load state, the current battery mileage and the mileage used by the last battery, the electronic control unit The unit causes the car connection device to forward the diagnostic measurement to the diagnostic device by sending the diagnostic measurement to the car connection device and/or the component connection device.
步骤S613:诊断设备向汽车连接设备发送关闭命令;Step S613: the diagnostic device sends a shutdown command to the car connection device;
步骤S614:汽车连接设备向部件连接设备转发关闭命令;Step S614: the vehicle connection device forwards the close command to the component connection device;
步骤S615:部件连接设备向电子控制单元转发关闭命令;Step S615: the component connection device forwards the shutdown command to the electronic control unit;
步骤S616:电子控制单元关闭运行;Step S616: the electronic control unit is turned off and running;
步骤S617:诊断设备向汽车连接设备发送停止检测命令;Step S617: the diagnostic device sends a stop detection command to the vehicle connection device;
步骤S618:汽车连接设备停止心跳检测,拉低某一引脚的电平;Step S618: The car connection device stops heartbeat detection, and pulls down the level of a certain pin;
具体的,汽车连接设备停止与诊断设备之间的心跳检测,并拉低OBD PIN3引脚的电平。Specifically, the car connection device stops heartbeat detection with the diagnostic device, and pulls down the level of the OBD PIN3 pin.
步骤S619:部件连接设备停止检测某一引脚的电平状态。Step S619: The component connection device stops detecting the level state of a certain pin.
具体的,部件连接设备停止检测OBD PIN3引脚的电平状态。Specifically, the component connection device stops detecting the level state of the OBD PIN3 pin.
链路状态管理的流程,如下表3所示:The flow of link state management is shown in Table 3 below:
表3table 3
如上表3所示,在正常执行流程下,诊断执行完成后诊断设备会主动拆除链路。如果链路上发生异常,需要进行异常检测和链路拆除,各个功能节点恢复到默认状态,各个功能节点的异常检测方法如下表4所示:As shown in Table 3 above, in the normal execution process, the diagnostic device will actively remove the link after the diagnosis is executed. If an abnormality occurs on the link, abnormality detection and link removal are required, and each functional node is restored to the default state. The abnormality detection method of each functional node is shown in Table 4 below:
表4Table 4
具体的,请再参阅图7,图7是本申请实施例提供的另一种车辆的离线检测系统的结构示意图;Specifically, please refer to FIG. 7 again. FIG. 7 is a schematic structural diagram of another off-line vehicle detection system provided by an embodiment of the present application;
如图7所示,汽车连接设备20可以连接部件连接设备30,也可以连接到整车200,在连接部件连接设备30进行诊断时,会改动OBD PIN3引脚的电平,在连接汽车的整车200时,不能随便改动OBDPIN3引脚的信号,防止对汽车造成干扰。本申请实施例中的汽车连接设备20与部件连接设备30的连接发起后,汽车连接设备20已经明确是连接到部件连接设备30,才会拉高OBD PIN3引脚的电平。在测试结束后,需要还原这个信号,即拉低OBD PIN3引脚的电平。As shown in FIG. 7 , the
在本申请实施例中,若识别到汽车连接设备连接到汽车的整车,则断开汽车连接设备与部件连接设备之间的链路,以通过汽车连接设备获取汽车的部件的信息。In the embodiment of the present application, if it is recognized that the vehicle connection device is connected to the entire vehicle of the vehicle, the link between the vehicle connection device and the component connection device is disconnected, so as to obtain information on the components of the vehicle through the vehicle connection device.
具体的,请再参阅图8,图8是本申请实施例提供的另一种离线检测方法的流程示意图;Specifically, please refer to FIG. 8 again, which is a schematic flowchart of another offline detection method provided by an embodiment of the present application;
如图8所示,该离线检测方法的流程,包括:As shown in Figure 8, the process of the offline detection method includes:
步骤S801:建立诊断功能链路;Step S801: establishing a diagnostic function link;
步骤S802:汽车连接设备是否连接到汽车的整车;Step S802: whether the car connection device is connected to the entire vehicle of the car;
具体的,汽车连接设备的应用程序自动识别所连接的设备是汽车的整车还是部件连接设备,若连接到汽车的整车,则进入步骤S803,若不是连接到汽车的整车,则进入步骤S805。Specifically, the application program of the car-connected device automatically identifies whether the connected device is the entire vehicle of the car or the component-connected device. If it is connected to the entire car of the car, it will go to step S803; S805.
步骤S803:断开汽车连接设备与部件连接设备之间的链路,切换到汽车连接模式;Step S803: Disconnect the link between the vehicle connection device and the component connection device, and switch to the vehicle connection mode;
具体的,若汽车连接设备连接到汽车的整车,此时断开汽车连接设备与部件连接设备之间的链路,切换到汽车连接模式,以直接通过汽车连接设备来获取汽车的部件的信息,防止部件连接设备对汽车造成干扰。Specifically, if the car connection device is connected to the entire vehicle of the car, the link between the car connection device and the component connection device is disconnected at this time, and the mode is switched to the car connection mode, so as to obtain the information of the car parts directly through the car connection device , to prevent the components connected to the device from interfering with the car.
步骤S804:通过汽车连接设备获取汽车的部件的信息;Step S804: Obtaining the information of the parts of the car through the car connection device;
步骤S805:通过诊断功能链路进行检测。Step S805: Detecting through the diagnostic function link.
具体的,若汽车连接设备未连接到汽车的整车,则通过诊断功能链路来对电子控制单元进行检测。Specifically, if the vehicle connection device is not connected to the entire vehicle of the vehicle, the electronic control unit is detected through the diagnostic function link.
通过判断汽车连接设备是否连接到汽车的整车,来实现不同的处理逻辑,能够复用诊断设备和汽车连接设备,降低设备的投入成本,实现多种场景下的工作。Different processing logic can be realized by judging whether the car connection device is connected to the whole vehicle of the car, which can reuse the diagnosis device and the car connection device, reduce the investment cost of the device, and realize the work in various scenarios.
并且,本申请采用统一的检测框架,支持各种异常场景,包括硬件链路异常和软件异常,比如设备移除、连接异常、断电、软件崩溃、测试业务退出等各种场景,能够提高系统的稳定性,保障汽车测试的正常工作。In addition, this application adopts a unified detection framework to support various abnormal scenarios, including hardware link abnormalities and software abnormalities, such as device removal, connection abnormality, power failure, software crash, test service exit and other scenarios, which can improve the system performance. stability, to ensure the normal work of the car test.
在本申请实施例中,通过提供一种车辆的离线检测方法,方法包括:建立诊断功能链路,其中,诊断功能链路包括多个功能节点,功能节点包括诊断设备、汽车连接设备、部件连接设备以及电子控制单元,其中,诊断设备连接汽车连接设备,汽车连接设备连接部件连接设备,部件连接设备连接电子控制单元,部件连接设备用于模拟汽车的整车环境;在相邻的功能节点之间,若存在供电关系,则根据供电关系,确定相邻的功能节点的连接状态;若不存在供电关系,则根据通信关系和/或信号关系,确定相邻的功能节点的连接状态;在不相邻的功能节点之间,某一功能节点通过与其相邻的功能节点反馈的电源电压,确定与其不相邻的功能节点的连接状态;或者,某一功能节点通过诊断命令的应答和/或异常信号,确定与其不相邻的功能节点的连接状态。In the embodiments of the present application, an offline vehicle detection method is provided. The method includes: establishing a diagnosis function link, wherein the diagnosis function link includes a plurality of function nodes, and the function nodes include a diagnosis device, a vehicle connection device, and a component connection device. Equipment and electronic control unit, wherein the diagnostic equipment is connected to the car connection device, the car connection device is connected to the component connection device, the component connection device is connected to the electronic control unit, and the component connection device is used to simulate the vehicle environment of the car; If there is a power supply relationship, the connection status of adjacent functional nodes is determined according to the power supply relationship; if there is no power supply relationship, the connection status of adjacent functional nodes is determined according to the communication relationship and/or signal relationship; Between adjacent functional nodes, a functional node determines the connection status of its non-adjacent functional nodes through the power supply voltage fed back by its adjacent functional nodes; or, a functional node responds to a diagnostic command and/or Exception signal, which determines the connection status of functional nodes that are not adjacent to it.
通过建立诊断功能链路,该诊断功能链路包括多个功能节点,从而能够对整个测试环境进行检测,保障汽车测试的正常工作;并且,通过供电关系、通信关系以及信号关系来确定相邻的功能节点之间的连接状态和不相邻的功能节点之间的连接状态,能够提高检测效率。By establishing a diagnostic function link, the diagnostic function link includes multiple functional nodes, so that the entire test environment can be tested to ensure the normal operation of the vehicle test; and the adjacent power supply relationship, communication relationship and signal relationship are determined. The connection state between functional nodes and the connection state between non-adjacent functional nodes can improve detection efficiency.
本申请实施例的诊断设备以多种形式存在,包括但不限于:The diagnostic devices of the embodiments of the present application exist in various forms, including but not limited to:
(1)电池检测仪,指快速测试锂离子电池、镍氢电池、聚合物电池等多类电池(组)的仪器。如:手机电池测试仪、对讲机电池测试仪笔记本电池检测仪等,广泛适用于各类电池生产厂家流水线生产检测,其常见的电池检测仪有:电池电压内阻测试仪,成品电池综合测试仪,电池容量测试仪,锂电池保护板测试仪,电池电压分选仪。(1) Battery tester refers to an instrument that quickly tests various types of batteries (groups) such as lithium-ion batteries, nickel-hydrogen batteries, and polymer batteries. Such as: mobile phone battery tester, walkie-talkie battery tester, notebook battery tester, etc., which are widely used in the production line production testing of various battery manufacturers. The common battery testers are: battery voltage internal resistance tester, finished battery comprehensive tester, Battery capacity tester, lithium battery protection board tester, battery voltage sorter.
(2)诊断仪,包括汽车故障诊断仪,汽车故障诊断仪是车辆故障自检终端、汽车故障诊断仪(又称汽车解码器)是用于检测汽车故障的便携式智能汽车故障自检仪,用户可以利用它迅速地读取汽车电控系统中的故障,并通过液晶显示屏显示故障信息,迅速查明发生故障的部位及原因。(2) Diagnostic instruments, including automobile fault diagnostic instruments, which are vehicle fault self-test terminals, and automobile fault diagnostic instruments (also known as automobile decoders) are portable intelligent automobile fault self-test instruments used to detect automobile faults. It can be used to quickly read the fault in the electronic control system of the car, and display the fault information through the liquid crystal display screen, and quickly find out the location and cause of the fault.
(3)移动通信设备:这类设备的特点是具备移动通信功能,并且以提供话音、数据通信为主要目标。这类检测设备包括:智能手机(例如iPhone)、多媒体手机、功能性手机,以及低端手机等。(3) Mobile communication equipment: This type of equipment is characterized by having mobile communication functions, and its main goal is to provide voice and data communication. Such testing devices include: smart phones (eg iPhone), multimedia phones, feature phones, and low-end phones.
(4)移动个人计算机设备:这类设备属于个人计算机的范畴,有计算和处理功能,一般也具备移动上网特性。这类检测设备包括:PDA、MID和UMPC设备等,例如iPad。(4) Mobile personal computer equipment: This type of equipment belongs to the category of personal computers, has computing and processing functions, and generally has the characteristics of mobile Internet access. Such detection devices include: PDAs, MIDs, and UMPC devices, such as iPads.
(5)便携式娱乐设备:这类设备可以显示和播放视频内容,一般也具备移动上网特性。该类设备包括:视频播放器,掌上游戏机,以及智能玩具和便携式车载导航设备。(5) Portable entertainment equipment: This type of equipment can display and play video content, and generally has the characteristics of mobile Internet access. Such devices include: video players, handheld game consoles, as well as smart toys and portable car navigation devices.
(6)其他具有视频播放功能和上网功能的电子设备。(6) Other electronic equipment with video playback function and Internet access function.
本申请实施例还提供一种计算机可读存储介质,计算机可读存储介质上存储有计算机程序,该计算机程序被一个或多个处理器执行时实现上述车辆的离线检测方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。其中,该计算机可读存储介质,如只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random AccessMemory,RAM)、磁碟或者光盘等。Embodiments of the present application further provide a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by one or more processors, each process of the above-mentioned embodiments of the offline vehicle detection method is implemented, And can achieve the same technical effect, in order to avoid repetition, it is not repeated here. The computer-readable storage medium is, for example, a read-only memory (Read-Only Memory, ROM), a random access memory (Random Access Memory, RAM), a magnetic disk, or an optical disk.
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。It should be noted that, herein, the terms "comprising", "comprising" or any other variation thereof are intended to encompass non-exclusive inclusion, such that a process, method, article or device comprising a series of elements includes not only those elements, It also includes other elements not expressly listed or inherent to such a process, method, article or apparatus. Without further limitation, an element qualified by the phrase "comprising a..." does not preclude the presence of additional identical elements in a process, method, article or apparatus that includes the element.
以上所描述的装置或设备实施例仅仅是示意性的,其中作为分离部件说明的单元模块可以是或者也可以不是物理上分开的,作为模块单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络模块单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。The apparatus or device embodiments described above are only illustrative, wherein the unit modules described as separate components may or may not be physically separated, and the components shown as module units may or may not be physical units, that is, It can be located in one place, or it can be distributed over multiple network module units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution in this embodiment.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端(可以是移动终端,个人计算机,服务器,或者网络设备等)执行本申请各个实施例或者实施例的某些部分的方法。From the description of the above embodiments, those skilled in the art can clearly understand that the method of the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is better implementation. Based on this understanding, the technical solution of the present application can be embodied in the form of a software product in essence or in a part that contributes to the prior art, and the computer software product is stored in a storage medium (such as ROM/RAM, magnetic disk, CD-ROM), including several instructions to make a terminal (which may be a mobile terminal, a personal computer, a server, or a network device, etc.) execute the method of each embodiment or some part of the embodiment of the present application.
最后应说明的是:以上结合附图描述的实施例仅用以说明本申请的技术方案,本申请并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的;在本申请的思路下,以上实施例或者不同实施例中的技术特征之间也可以进行组合,步骤可以以任意顺序实现,并存在如上的本申请的不同方面的许多其它变化,为了简明,它们没有在细节中提供;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的范围。Finally, it should be noted that the above-described embodiments in conjunction with the accompanying drawings are only used to illustrate the technical solutions of the present application, and the present application is not limited to the above-mentioned specific embodiments, which are only illustrative rather than limiting. Under the idea of this application, the technical features in the above embodiments or different embodiments can also be combined, the steps can be implemented in any order, and there are many other changes in different aspects of the application as above, in order to Briefly, they are not provided in details; although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that the technical solutions described in the foregoing embodiments can still be modified, or the technical solutions described in the foregoing embodiments can be modified. Some technical features are equivalently replaced; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the scope of the technical solutions of the embodiments of the present application.
Claims (12)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210753517.2A CN114995356B (en) | 2022-06-28 | 2022-06-28 | Offline detection method and system for vehicle |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210753517.2A CN114995356B (en) | 2022-06-28 | 2022-06-28 | Offline detection method and system for vehicle |
Publications (2)
Publication Number | Publication Date |
---|---|
CN114995356A true CN114995356A (en) | 2022-09-02 |
CN114995356B CN114995356B (en) | 2025-03-14 |
Family
ID=83018989
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210753517.2A Active CN114995356B (en) | 2022-06-28 | 2022-06-28 | Offline detection method and system for vehicle |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114995356B (en) |
Citations (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2003034200A (en) * | 2001-07-24 | 2003-02-04 | Hitachi Ltd | Car control method |
CN102073319A (en) * | 2011-01-25 | 2011-05-25 | 武汉理工大学 | Multifunctional comprehensive type electric control automobile fault diagnosis system |
US8452465B1 (en) * | 2012-03-30 | 2013-05-28 | GM Global Technology Operations LLC | Systems and methods for ECU task reconfiguration |
US20140012947A1 (en) * | 2012-07-06 | 2014-01-09 | Softing Ag | Apparatus for controlling communication between a host system and control devices |
CN107117119A (en) * | 2017-05-18 | 2017-09-01 | 深圳市可可卓科科技有限公司 | Support the method and system with the HUD of the two-way detections of OBD |
CN207835474U (en) * | 2018-01-19 | 2018-09-07 | 深圳市盛弘电气股份有限公司 | A kind of quick half-duplex communication circuit |
CN109088794A (en) * | 2018-08-20 | 2018-12-25 | 郑州云海信息技术有限公司 | A kind of fault monitoring method and device of node |
CN109873733A (en) * | 2017-12-05 | 2019-06-11 | 上海欧菲智能车联科技有限公司 | Automobile bus communication method and system, remote terminal, and automobile diagnostic equipment |
CN213780745U (en) * | 2020-11-27 | 2021-07-23 | 湖南信息学院 | Automobile fault diagnosis system based on CAN bus |
CN113791605A (en) * | 2021-09-13 | 2021-12-14 | 一汽解放汽车有限公司 | Test method, device, equipment and storage medium |
CN113985840A (en) * | 2021-10-22 | 2022-01-28 | 深圳市元征科技股份有限公司 | Vehicle offline detection method, system, equipment and computer storage medium |
CN114594748A (en) * | 2022-02-21 | 2022-06-07 | 深圳市道通科技股份有限公司 | Test equipment, diagnostic equipment and automobile diagnostic system |
US20220404827A1 (en) * | 2019-11-15 | 2022-12-22 | Volvo Truck Corporation | Wireless control system for autonomous vehicles operating in an extended area |
-
2022
- 2022-06-28 CN CN202210753517.2A patent/CN114995356B/en active Active
Patent Citations (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2003034200A (en) * | 2001-07-24 | 2003-02-04 | Hitachi Ltd | Car control method |
CN102073319A (en) * | 2011-01-25 | 2011-05-25 | 武汉理工大学 | Multifunctional comprehensive type electric control automobile fault diagnosis system |
US8452465B1 (en) * | 2012-03-30 | 2013-05-28 | GM Global Technology Operations LLC | Systems and methods for ECU task reconfiguration |
CN103488161A (en) * | 2012-03-30 | 2014-01-01 | 通用汽车环球科技运作有限责任公司 | Systems and methods for ecu task reconfiguration |
US20140012947A1 (en) * | 2012-07-06 | 2014-01-09 | Softing Ag | Apparatus for controlling communication between a host system and control devices |
CN107117119A (en) * | 2017-05-18 | 2017-09-01 | 深圳市可可卓科科技有限公司 | Support the method and system with the HUD of the two-way detections of OBD |
CN109873733A (en) * | 2017-12-05 | 2019-06-11 | 上海欧菲智能车联科技有限公司 | Automobile bus communication method and system, remote terminal, and automobile diagnostic equipment |
CN207835474U (en) * | 2018-01-19 | 2018-09-07 | 深圳市盛弘电气股份有限公司 | A kind of quick half-duplex communication circuit |
CN109088794A (en) * | 2018-08-20 | 2018-12-25 | 郑州云海信息技术有限公司 | A kind of fault monitoring method and device of node |
US20220404827A1 (en) * | 2019-11-15 | 2022-12-22 | Volvo Truck Corporation | Wireless control system for autonomous vehicles operating in an extended area |
CN213780745U (en) * | 2020-11-27 | 2021-07-23 | 湖南信息学院 | Automobile fault diagnosis system based on CAN bus |
CN113791605A (en) * | 2021-09-13 | 2021-12-14 | 一汽解放汽车有限公司 | Test method, device, equipment and storage medium |
CN113985840A (en) * | 2021-10-22 | 2022-01-28 | 深圳市元征科技股份有限公司 | Vehicle offline detection method, system, equipment and computer storage medium |
CN114594748A (en) * | 2022-02-21 | 2022-06-07 | 深圳市道通科技股份有限公司 | Test equipment, diagnostic equipment and automobile diagnostic system |
Also Published As
Publication number | Publication date |
---|---|
CN114995356B (en) | 2025-03-14 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2021259153A1 (en) | Battery test method and apparatus | |
CN112034818B (en) | A kind of controller failure analysis method and system | |
CN111722112B (en) | Battery detection method and equipment | |
WO2022002167A1 (en) | Method and apparatus for assisting in replacement of automobile battery, and battery detection device | |
CN109507981B (en) | Vehicle testing method and device and machine-readable storage medium | |
CN106325231A (en) | Method and system for remote fault detection of vehicles on production line | |
CN107472029B (en) | High-voltage fault detection method for vehicle and vehicle | |
CN111142504B (en) | Bus detection device and method | |
JP2003329719A (en) | Signal processing device | |
CN113243027A (en) | Method, system and apparatus for functional security verification using an audio return path | |
CN112506760A (en) | Vehicle controller software flash test method, system, device and storage medium | |
CN114170705A (en) | Vehicle data uploading method, device and equipment | |
CN117878445A (en) | Battery thermal runaway early warning method, electronic equipment and storage medium | |
CN114995356B (en) | Offline detection method and system for vehicle | |
US20130211663A1 (en) | Non-bussed vehicle amplifier diagnostics | |
CN114968733A (en) | Vehicle diagnosis method, device and system and electronic equipment | |
US9781527B2 (en) | Smart plug and play automatic OBD-II system tester | |
CN117930822A (en) | Automatic test system and test method for automobile ECU | |
KR20240038381A (en) | Apparatus for testing environmental durability of battery module and method thereof | |
US20190367081A1 (en) | Method and system for testing of systems | |
CN112737881B (en) | Communication test method, device and terminal equipment for electric vehicle charging equipment | |
JP5425595B2 (en) | Vehicle diagnostic device | |
CN114486284A (en) | Vehicle testing method, device, equipment and storage medium | |
CN114860492A (en) | Battery data dynamic storage method, device and related equipment | |
KR20190136158A (en) | Precision harness inspection method using field programmable gate array(FPGA) |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |