CN114879633A - Diagnostic instrument, fault diagnosis method of electronic control system and readable storage medium - Google Patents
Diagnostic instrument, fault diagnosis method of electronic control system and readable storage medium Download PDFInfo
- Publication number
- CN114879633A CN114879633A CN202210493899.XA CN202210493899A CN114879633A CN 114879633 A CN114879633 A CN 114879633A CN 202210493899 A CN202210493899 A CN 202210493899A CN 114879633 A CN114879633 A CN 114879633A
- Authority
- CN
- China
- Prior art keywords
- processor
- type
- diagnostic
- command
- preset
- 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.)
- Pending
Links
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
- 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
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02T—CLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO TRANSPORTATION
- Y02T10/00—Road transport of goods or passengers
- Y02T10/10—Internal combustion engine [ICE] based vehicles
- Y02T10/40—Engine management systems
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Automation & Control Theory (AREA)
- Test And Diagnosis Of Digital Computers (AREA)
Abstract
本发明提供了一种诊断仪、电控系统的故障诊断方法及可读存储介质,通过第一类处理器与第二类处理器之间的核间通信,将诊断仪产生的用于对第二类处理器进行故障诊断的诊断命令发送至第二类处理器,以及将第二类处理器响应该诊断命令而反馈的诊断内容返回到诊断仪,由此使得只允许接入电控系统中的第一类处理器的诊断仪也能够对第二类处理器进行故障诊断。相对现有的诊断仪,本发明实质上可以使得诊断仪仅通过升级软件的方式实现诊断多类处理器中任一类处理器的功能,降低了在诊断仪中增加诊断接口以及连接诊断仪和第二类处理器的线束的成本,同时避免了新增诊断接口而引入的安全风险。
The present invention provides a diagnostic instrument, a fault diagnosis method for an electronic control system, and a readable storage medium. Through inter-core communication between a first type of processor and a second type of processor, The diagnosis command for fault diagnosis by the second-class processor is sent to the second-class processor, and the diagnostic content fed back by the second-class processor in response to the diagnosis command is returned to the diagnostic instrument, so that only access to the electronic control system is allowed. The diagnostic instrument of the first type of processor can also perform fault diagnosis on the second type of processor. Compared with the existing diagnostic instrument, the present invention can substantially enable the diagnostic instrument to realize the function of diagnosing any type of processor among the multi-type processors only by upgrading the software, which reduces the need for adding a diagnostic interface in the diagnostic instrument and connecting the diagnostic instrument and the diagnostic instrument. The cost of the wiring harness for the second-class processor, while avoiding the security risks introduced by the addition of diagnostic interfaces.
Description
技术领域technical field
本发明涉及故障诊断技术领域,特别涉及一种诊断仪、电控系统的故障诊断方法及可读存储介质。The invention relates to the technical field of fault diagnosis, in particular to a diagnostic instrument, a fault diagnosis method for an electronic control system and a readable storage medium.
背景技术Background technique
随着信息技术的发展与需求的提升,汽车产品也逐步走向智能化、网联化,传统的基于单处理器形成的汽车电控(Electronic Control Unit,ECU)系统已不能满足汽车发展的需求,因此异构多个处理器来形成新的汽车电控系统的技术应运而生。目前所构建的新的汽车电控系统通常由架构、性能与用途各不相同的多个处理器组成。各个处理器之间一般采用SPI、UART、Ethernet、CAN、LIN、USB等不同总线来进行核间通信,共同完成整个汽车的ECU功能。With the development of information technology and the improvement of demand, automotive products are gradually becoming intelligent and networked. The traditional automotive electronic control unit (ECU) system based on a single processor can no longer meet the needs of automotive development. Therefore, the technology of heterogeneous multiple processors to form a new automotive electronic control system emerges as the times require. New automotive electronic control systems being built today typically consist of multiple processors with different architectures, performances, and uses. Different buses such as SPI, UART, Ethernet, CAN, LIN, and USB are generally used for inter-core communication between each processor to jointly complete the ECU function of the entire car.
现有的汽车电控系统中的处理器通常分为两类,一类是用于实时性和稳定性较高的实时操作系统中的处理器(可称作实时核,可记为MCU,Micro Controller Unit),另一类是用于非实时操作系统(如Linux等)中的处理器(可称作非实时核,可以记为MPU,MicroProcessor Unit)。The processors in the existing automotive electronic control systems are usually divided into two categories. Controller Unit), another type is a processor (which can be called a non-real-time core, and can be denoted as MPU, MicroProcessor Unit) used in a non-real-time operating system (such as Linux, etc.).
上述的汽车电控系统中的各处理器均有可能产生异常,但当前现有诊断仪一般仅有CAN UDS诊断口,只允许接入实时核MCU,而非实时操作系统常用的USB、Ethernet等线束因安全或者成本等其他原因目前仍未进入整车厂或者4S店的标准诊断设备或者线束中,所以遇到非实时核MPU异常情况,汽车售后或者4S店处理操作仅限重新拔插电源、更换新件,而无法达到对非实时核MPU的故障诊断记录的目的。Each processor in the above-mentioned automotive electronic control system may be abnormal, but the current existing diagnostic instruments generally only have CAN UDS diagnostic ports, which only allow access to real-time core MCU, not USB, Ethernet, etc. commonly used in real-time operating systems. Due to other reasons such as safety or cost, the wiring harness has not yet entered the standard diagnostic equipment or wiring harness of the OEM or 4S shop. Therefore, in the event of a non-real-time core MPU abnormality, the after-sales or 4S shop processing operations are limited to replugging the power supply, Replacement of new parts can not achieve the purpose of fault diagnosis record of non-real-time core MPU.
上述问题也存在于现有的其他具有实时类处理器和非实时类的电控系统的故障诊断技术中。The above problems also exist in other existing fault diagnosis technologies for electronic control systems with real-time processors and non-real-time processors.
发明内容SUMMARY OF THE INVENTION
本发明的目的在于提供一种诊断仪、电控系统的故障诊断方法及可读存储介质,使得只允许接入电控系统中的第一类处理器的诊断仪也能够对该电控系统的第二类处理器进行故障诊断。The purpose of the present invention is to provide a diagnostic instrument, a fault diagnosis method for an electronic control system, and a readable storage medium, so that a diagnostic instrument that only allows access to the first type of processor in the electronic control system can also access the electronic control system. The second type of processor performs fault diagnosis.
为实现上述目的,本发明提供一种用于对具有第一类处理器和第二类处理器的电控系统进行故障诊断,所述第一类处理器和所述第二类处理器通过核间通信总线通信连接,所述诊断仪包括:To achieve the above object, the present invention provides a fault diagnosis for an electronic control system having a first type of processor and a second type of processor, wherein the first type of processor and the second type of processor pass through the core. Communication connection between the communication bus, the diagnostic instrument includes:
诊断模块,用于产生对所述第二类处理器进行故障诊断的第一预设诊断命令;a diagnosis module, configured to generate a first preset diagnosis command for diagnosing the second type of processor;
诊断接口,用于与所述第一类处理器通信连接,并发送所述第一预设诊断命令至所述第一类处理器,以及,通过所述第一类处理器接收所述第二类处理器响应所述第一预设命令而产生的第一诊断内容。a diagnostic interface for communicating with the first type of processor, sending the first preset diagnostic command to the first type of processor, and receiving the second type of processor through the first type of processor The first diagnostic content generated by the class processor in response to the first preset command.
可选地,所述诊断模块还用于产生对所述第一类处理器进行故障诊断的第二预设诊断命令;所述诊断接口还用于发送所述第二预设诊断命令至所述第一类处理器,以及,接收所述第一类处理器响应所述第二预设诊断命令而产生的第二诊断内容。Optionally, the diagnostic module is further configured to generate a second preset diagnostic command for diagnosing the first type of processor; the diagnostic interface is further configured to send the second preset diagnostic command to the A first type of processor, and receiving second diagnostic content generated by the first type of processor in response to the second preset diagnostic command.
可选地,所述的诊断仪还包括存储展示模块,用于存储和展示所述第一诊断内容和所述第二诊断内容。Optionally, the diagnostic instrument further includes a storage and display module for storing and displaying the first diagnostic content and the second diagnostic content.
可选地,所述第一类处理器为用于实时操作系统的处理器,所述第二处理器为用于非实时操作系统的处理器,且所述第一类处理器和所述第二类处理器集成在同一个片上系统中。Optionally, the first type of processor is a processor for a real-time operating system, the second processor is a processor for a non-real-time operating system, and the first type of processor and the second Class II processors are integrated in the same SoC.
可选地,所述诊断接口通过CAN通信线束接入所述第一类处理器;所述第一类处理器与所述第二类处理器通过SPI、UART、Ethernet、CAN、LIN或USB核间通信总线通信连接。Optionally, the diagnostic interface is connected to the first-type processor through a CAN communication harness; the first-type processor and the second-type processor use SPI, UART, Ethernet, CAN, LIN or USB cores. Communication connection between the communication bus.
基于同一发明构思,本发明还提供一种电控系统的故障诊断方法,所述电控系统包括通过核间通信总线通信连接的第一类处理器和第二类处理器,所述故障诊断方法包括:Based on the same inventive concept, the present invention also provides a fault diagnosis method for an electronic control system, the electronic control system includes a first-type processor and a second-type processor that are communicatively connected through an inter-core communication bus, and the fault diagnosis method include:
所述第一类处理器从外部接收用于对所述第二类处理器进行故障诊断的第一预设诊断命令;the first type of processor externally receives a first preset diagnostic command for diagnosing a fault of the second type of processor;
所述第一类处理器识别所述第一预设诊断命令并通过所述核间通信总线将识别出的所述第一预设诊断命令转发到所述第二类处理器;The first type of processor identifies the first preset diagnostic command and forwards the identified first preset diagnostic command to the second type of processor through the inter-core communication bus;
所述第二类处理器响应所述第一预设诊断命令并产生相应的第一诊断内容,且将所述第一诊断内容通过所述核间通信总线反馈至所述第一类处理器;The second type of processor responds to the first preset diagnosis command and generates corresponding first diagnosis content, and feeds back the first diagnosis content to the first type of processor through the inter-core communication bus;
所述第一类处理器将接收到的所述第一诊断内容向外部反馈。The first type of processor feeds back the received first diagnostic content to the outside.
可选地,所述电控系统的故障诊断方法,还包括:Optionally, the fault diagnosis method for the electronic control system further includes:
所述第一类处理器从外部接收用于对所述第一类处理器进行故障诊断的第二预设诊断命令;The first type of processor receives a second preset diagnostic command from the outside for diagnosing the first type of processor failure;
所述第一类处理器响应所述第二预设诊断命令并产生相应的第二诊断内容;The first type of processor responds to the second preset diagnostic command and generates corresponding second diagnostic content;
所述第一类处理器将所述第二诊断内容向外部反馈。The first type of processor feeds back the second diagnostic content to the outside.
可选地,将所述第一类处理器与外部的诊断仪的诊断接口通信连接,以使得所述第一类处理器从所述诊断仪处接收所述第一预设诊断命令和所述第二预设诊断命令;Optionally, the first type of processor is communicatively connected to a diagnostic interface of an external diagnostic instrument, so that the first type of processor receives the first preset diagnostic command and the a second preset diagnostic command;
所述电控系统的故障诊断方法还包括:所述诊断仪接收、存储和显示所述第一类处理器所反馈所述第一诊断内容和所述第二诊断内容。The fault diagnosis method for the electronic control system further includes: the diagnostic instrument receives, stores and displays the first diagnostic content and the second diagnostic content fed back by the first type of processor.
可选地,所述第一类处理器通过CAN通信线束与外部的所述诊断仪通信连接,所述第一预设诊断命令和所述第二预设诊断命令均为CAN UDS诊断命令;Optionally, the first type of processor is communicatively connected to the external diagnostic instrument through a CAN communication harness, and the first preset diagnostic command and the second preset diagnostic command are both CAN UDS diagnostic commands;
所述电控系统的故障诊断方法还包括:所述第一类处理器将所述第一诊断内容和所述第二诊断内容均以CAN UDS指令的方式反馈至所述诊断仪。The fault diagnosis method of the electronic control system further includes: the first type processor feeds back both the first diagnosis content and the second diagnosis content to the diagnostic instrument in the form of CAN UDS instructions.
基于同一发明构思,本发明还提供一种可读存储介质,其上存储有计算机程序,所述计算机程序被一处理器执行时,实现本发明所述的电控系统的故障诊断方法。Based on the same inventive concept, the present invention also provides a readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the fault diagnosis method of the electronic control system of the present invention is implemented.
与现有技术相比,本发明的技术方案至少具有以下有益效果之一:Compared with the prior art, the technical solution of the present invention has at least one of the following beneficial effects:
1、可以通过第一类处理器与第二类处理器之间的核间通信,将诊断仪产生的用于对第二类处理器进行故障诊断的诊断命令发送至第二类处理器,以及将第二类处理器响应该诊断命令而反馈的诊断内容返回到诊断仪,由此使得只允许接入电控系统中的第一类处理器的诊断仪也能够对第二类处理器进行故障诊断。1. Through the inter-core communication between the first type of processor and the second type of processor, the diagnostic command generated by the diagnostic instrument for diagnosing the fault of the second type of processor can be sent to the second type of processor, and The diagnostic content fed back by the second-type processor in response to the diagnostic command is returned to the diagnostic instrument, so that the diagnostic instrument that is only allowed to access the first-type processor in the electronic control system can also troubleshoot the second-type processor diagnosis.
2、相对现有的诊断仪,本发明实质上可以使得诊断仪仅通过升级软件的方式实现诊断多类处理器中任一类处理器的功能,降低了在诊断仪中增加诊断接口以及连接诊断仪和第二类处理器的线束的成本,同时避免了新增诊断接口而引入的安全风险。2. Compared with the existing diagnostic instrument, the present invention can substantially enable the diagnostic instrument to realize the function of diagnosing any type of processor among the multi-type processors only by upgrading the software, which reduces the need for adding a diagnostic interface and connecting a diagnostic instrument in the diagnostic instrument. The cost of the wiring harness of the instrument and the second type of processor is avoided, and the security risk introduced by the new diagnostic interface is avoided.
3、当第一类处理器为实时操作系统的处理器,第二类处理器为非实时操作系统的处理器时,本发明的方案能够解决当前非实时系统处理器所面临的无法售后诊断处理的问题。3. When the first type of processor is a processor of a real-time operating system, and the second type of processor is a processor of a non-real-time operating system, the solution of the present invention can solve the current non-real-time system processor. The problem.
附图说明Description of drawings
图1是本发明一实施例的诊断仪与电控系统连接的示意图。FIG. 1 is a schematic diagram of the connection between a diagnostic instrument and an electrical control system according to an embodiment of the present invention.
图2是本发明一实施例的电控系统的故障诊断方法中的命令和诊断内容的传输示意图。FIG. 2 is a schematic diagram of transmission of commands and diagnostic content in a fault diagnosis method for an electronic control system according to an embodiment of the present invention.
具体实施方式Detailed ways
在下文的描述中,给出了大量具体的细节以便提供对本发明更为彻底的理解。然而,对于本领域技术人员而言显而易见的是,本发明可以无需一个或多个这些细节而得以实施。在其他的例子中,为了避免与本发明发生混淆,对于本领域公知的一些技术特征未进行描述。应当理解的是,本发明能够以不同形式实施,而不应当解释为局限于这里提出的实施例。相反地,提供这些实施例将使公开彻底和完全,并且将本发明的范围完全地传递给本领域技术人员。自始至终相同附图标记表示相同的元件。应当明白,当元件被称为"连接"、"耦接"其它元件时,其可以直接地连接其它元件,或者可以存在居间的元件。相反,当元件被称为"直接连接到"其它元件时,则不存在居间的元件。在此使用时,单数形式的"一"、"一个"和"所述/该"也意图包括复数形式,除非上下文清楚的指出另外的方式。还应明白术语“包括”用于确定可以特征、步骤、操作、元件和/或部件的存在,但不排除一个或更多其它的特征、步骤、操作、元件、部件和/或组的存在或添加。在此使用时,术语"和/或"包括相关所列项目的任何及所有组合。In the following description, numerous specific details are set forth in order to provide a more thorough understanding of the present invention. It will be apparent, however, to one skilled in the art that the present invention may be practiced without one or more of these details. In other instances, some technical features known in the art have not been described in order to avoid obscuring the present invention. It should be understood that the present invention may be embodied in different forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the invention to those skilled in the art. The same reference numbers refer to the same elements throughout. It will be understood that when an element is referred to as being "connected" or "coupled" to other elements, it can be directly connected to the other element or intervening elements may be present. In contrast, when an element is referred to as being "directly connected" to other elements, there are no intervening elements present. As used herein, the singular forms "a," "an," and "the/the" are intended to include the plural forms as well, unless the context clearly dictates otherwise. It should also be understood that the term "comprising" is used to identify the presence of possible features, steps, operations, elements and/or components, but does not exclude the presence or Add to. As used herein, the term "and/or" includes any and all combinations of the associated listed items.
以下结合附图和具体实施例对本发明提出的技术方案作进一步详细说明。根据下面说明,本发明的优点和特征将更清楚。需说明的是,附图均采用非常简化的形式且均使用非精准的比例,仅用以方便、明晰地辅助说明本发明实施例的目的。The technical solutions proposed by the present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments. The advantages and features of the present invention will become more apparent from the following description. It should be noted that, the accompanying drawings are all in a very simplified form and in inaccurate scales, and are only used to facilitate and clearly assist the purpose of explaining the embodiments of the present invention.
请参考图1和图2,本发明一实施例提供一种诊断仪20,该诊断仪20具有诊断模块201以及一个诊断接口202,其能够用于对具有第一类处理器101和第二类处理器102的电控系统10进行故障诊断。1 and FIG. 2, an embodiment of the present invention provides a
其中,诊断仪20只允许接入该电控系统10的第一类处理器101,也就是说,在电控系统10中,第一类处理器101具有与诊断仪20的诊断接口202相连接的能力,其能够与诊断仪20的诊断接口202通过CAN通信线束等通信连接,第二类处理器102不具有与诊断仪20的诊断接口202相连接的能力,其无法通过CAN通信线束等与诊断仪20的诊断接口202通信连接。但是第一类处理器101和第二类处理器102可以通过SPI、UART、Ethernet、CAN、LIN或USB等任一合适的核间通信总线通信连接。The
请参考图2,本实施例中,第一类处理器101能够接收和识别诊断仪20所发出的用于对第二类处理器102进行故障诊断的第一预设诊断命令(即CAN UDS命令1)和用于对第一类处理器101进行故障诊断的第二预设诊断命令(即CAN UDS命令2),而且能够将第一预设诊断命令(即CAN UDS命令1)转换成能被第二类处理器102所允许和识别的命令形式,以及将第一类处理器101自身响应第二预设诊断命令而产生的第二诊断内容以及第二类处理器102响应第一预设诊断命令而产生的第一诊断内容转换为诊断仪所允许和能识别的诊断内容(如CAN UDS指令)。Referring to FIG. 2 , in this embodiment, the first type of
可选地,第一类处理器101为用于实时操作系统的处理器,第二处理器102为用于非实时操作系统的处理器,且第一类处理器101和第二类处理器102可进一步被集成在同一个片上系统(System on Chip,SoC)中。Optionally, the first type of
作为一种示例,该电控系统为汽车的电控系统,第一类处理器101为微控制器(Mirco Controller Unit,MCU),第二类处理器102为微处理器(Micro Processor Unit,MPU),MPU和MCU能够满足不同应用场景,MPU注重通过强大的运算、处理能力执行复杂多样的大型程序,通常外挂有大容量存储器(如高性能RAM和DDR);MCU运行较为单一的任务,执行对硬件设备的管理、控制功能,不需要很强的运算、处理能力,MCU相比MPU具有更高速的实时控制能力以及通讯的多样性。As an example, the electronic control system is an electronic control system of an automobile, the first type of
请继续参考图1和图2,本实施例的诊断仪中,诊断模块201用于产生对第二类处理器102进行故障诊断的第一预设诊断命令(即CAN UDS命令1),以及,产生对第一类处理器101进行故障诊断的第二预设命令(即CAN UDS命令2)。诊断接口202与第一类处理器101通过CAN通信线束通信连接(即诊断接口202接入第一类处理器101),并用于发送CAN UDS命令1、CAN UDS命令2至第一类处理器101,并接收第一类处理器101响应第二预设命令而产生的第二诊断内容,以及,通过第一类处理器101接收第二类处理器102响应第一预设命令而产生的第一诊断内容。Please continue to refer to FIG. 1 and FIG. 2 , in the diagnostic apparatus of this embodiment, the
可选地,诊断仪20还包括存储展示模块(未图示),用于存储和展示所述第一诊断内容和所述第二诊断内容。Optionally, the
可以理解的是,诊断仪20中的诊断模块201、诊断接口202以及存储展示模块可以合并在一个功能模块中实现,或者其中的任意一个模块可以被拆分成多个功能模块,或者,这些模块中的一个或多个的至少部分功能可以与其他模块的至少部分功能相结合,并在一个功能模块中实现。根据本发明的实施例,诊断仪20中的诊断模块201、诊断接口202以及存储展示模块中的至少一个可以至少被部分地实现为硬件电路,例如现场可编程门阵列(FPGA)、可编程逻辑阵列(PLA)、片上系统、基板上的系统、封装上的系统、专用集成电路(ASIC),或可以以对电路进行集成或封装的任何其他的合理方式等硬件或固件来实现,或以软件、硬件以及固件三种实现方式的适当组合来实现。或者,诊断仪20中的诊断模块201、诊断接口202以及存储展示模块中的至少一个可以至少被部分地实现为计算机程序模块,当该程序被计算机运行时,可以执行相应模块的功能,且能够进行软件升级。It can be understood that, the
请继续参考图1和图2,本发明一实施例还提供一种电控系统10的故障诊断方法,其中,该电控系统10可以包括通过核间通信总线通信连接的第一类处理器101和第二类处理器10,该故障诊断方法可以在诊断仪20的配合下实现,且该诊断仪20仅允许接入该电控系统的第一类处理器101,即将第一类处理器101与外部的诊断仪20的诊断接口202通信连接。Please continue to refer to FIG. 1 and FIG. 2 , an embodiment of the present invention further provides a fault diagnosis method for an
本实施例的电控系统10的故障诊断方法,可以分为以下两部分:The fault diagnosis method of the
(一)对第二类处理器102的故障诊断,包括以下步骤:(1) The fault diagnosis of the
S11,诊断仪20的诊断模块201产生用于对第二类处理器102进行故障诊断的第一预设诊断命令,记为CAN UDS命令1;S11, the
S12,第一类处理器101从诊断接口202处接收第一预设诊断命令CAN UDS命令1,且进一步识别和处理该第一预设诊断命令(即CAN UDS命令1),以将其转换为能够被第二类处理器102识别的诊断命令(为了表示通信链路,图2中仍将其标记为CAN UDS命令1);S12, the first type of
S13,第一类处理器101通过SPI、UART、Ethernet、CAN、LIN或USB等任意合适的核间通信总线,将转换后的诊断命令发送至第二类处理器102;S13, the
S14,第二类处理器102响应该诊断命令并产生第一诊断内容(包括第二类处理器102的故障码及状态值等故障信息),第二类处理器102还进一步通过核间通信总线将该第一诊断内容反馈至第一类处理器101中,其中,第二类处理器102可以按特定格式文件(如XML、JSON等)将故障码及状态值等故障信息和故障处理状态信息等记录下来,形成该第一诊断内容;S14, the second-
S15,第一类处理器101将接收到的第一诊断内容转换为诊断仪所允许的形式(如CAN USD指令),并通过诊断接口202反馈给诊断仪20;S15, the
S16,诊断仪20将获取到的第一诊断内容保存并展示给产品售后人员。S16, the
(二)对第一类处理器101的故障诊断,包括以下步骤:(2) The fault diagnosis of the
S21,诊断仪20的诊断模块201产生用于对第一类处理器101进行故障诊断的第二预设诊断命令,记为CAN UDS命令2;S21, the
S22,第一类处理器101响应CAN UDS命令2并产生相应的第二诊断内容(包括第一类处理器101的故障码及状态值等故障信息),其中,第一类处理器101可以按特定格式文件(如XML、JSON等)将故障码及状态值等故障信息和故障处理状态信息等记录下来,形成该第二诊断内容;S22, the
S23,第一类处理器101将该第二诊断内容转换为诊断仪所允许的形式(如CAN USD指令),并通过诊断接口202反馈给诊断仪20;S23, the
S24,诊断仪20将获取到的第二诊断内容保存并展示给产品售后人员。S24, the
需要说明的是,上述诊断仪20对第一类处理器101和第二类处理器102的故障诊断可以同步进行,也可以分时进行,这取决于诊断仪20中的设置。此外,在本发明的其他实施例中,第一类处理器101可以一次性向诊断仪20上传包括其自身和第二类处理器102在内的整个电控系统的故障码及状态值等诊断内容,由此达到一次诊断的目的。当然,在本发明的其他实施例中,在条件允许的情况下,也允许第一类处理器101分批次向诊断仪20上传其自身产生的第二诊断内容以及第二类处理器102产生的第一诊断内容。It should be noted that, the fault diagnosis of the first-
基于同一发明构思,本发明一实施例还提供一种可读存储介质,其上存储有计算机程序,所述计算机程序可以包括代码/计算机可执行指令,所述计算机程序被一处理器执行时,实现本发明所述的电控系统的故障诊断方法及其任何变形。所述可读存储介质可以是能够包含、存储、传送、传播或传输指令的任意介质。例如,所述计算机存储介质可以包括但不限于电、磁、光、电磁、红外或半导体系统、装置、器件或传播介质。所述可读存储介质的具体示例包括:磁存储装置,如磁带或硬盘(HDD);光存储装置,如光盘(CD-ROM);存储器,如随机存取存储器(RAM)或闪存;和/或有线/无线通信链路。Based on the same inventive concept, an embodiment of the present invention further provides a readable storage medium on which a computer program is stored. The computer program may include code/computer-executable instructions. When the computer program is executed by a processor, The fault diagnosis method of the electronic control system of the present invention and any modification thereof are realized. The readable storage medium can be any medium that can contain, store, communicate, propagate, or transmit instructions. For example, the computer storage medium may include, but is not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, device, or propagation medium. Specific examples of the readable storage medium include: magnetic storage devices such as magnetic tapes or hard disks (HDDs); optical storage devices such as compact disks (CD-ROMs); memories such as random access memory (RAM) or flash memory; and/ or wired/wireless communication links.
综上所述,本发明的技术方案,针对传统诊断仪仅有CAN线束且仅能对实时操作系统的处理器进行诊断,而无法对多处理器进行诊断的情景,可以通过第一类处理器与第二类处理器之间的核间通信,将诊断仪产生的用于对第二类处理器进行故障诊断的诊断命令发送至第二类处理器,以及将第二类处理器响应该诊断命令而反馈的诊断内容返回到诊断仪,由此使得只允许接入电控系统中的第一类处理器的诊断仪也能够对第二类处理器进行故障诊断。相对现有的诊断仪,本发明实质上可以使得诊断仪仅通过升级软件的方式实现诊断多类处理器中任一类处理器的功能,降低了在诊断仪中增加诊断接口以及连接诊断仪和第二类处理器的线束的成本,同时避免了新增诊断接口而引入的安全风险,解决当前非实时操作系统处理器面临的无法售后诊断处理的问题。To sum up, the technical solution of the present invention, in view of the situation that the traditional diagnostic instrument only has CAN wiring harness and can only diagnose the processor of the real-time operating system, but cannot diagnose the multi-processor, the first type of processor can be used. Inter-core communication with the second-type processor, sending a diagnostic command generated by the diagnostic instrument for diagnosing the second-type processor to the second-type processor, and sending the second-type processor to respond to the diagnosis The diagnostic content fed back by the command is returned to the diagnostic instrument, so that the diagnostic instrument that is only allowed to access the first-type processor in the electronic control system can also perform fault diagnosis on the second-type processor. Compared with the existing diagnostic instrument, the present invention can substantially make the diagnostic instrument realize the function of diagnosing any type of processor among the multi-type processors only by upgrading the software, which reduces the need for adding a diagnostic interface and connecting the diagnostic instrument and the diagnostic instrument. The cost of the wiring harness of the second type of processor, at the same time, avoids the security risk introduced by the newly added diagnostic interface, and solves the problem that the current non-real-time operating system processor cannot handle after-sales diagnosis and processing.
上述描述仅是对本发明较佳实施例的描述,并非对本发明范围的任何限定,本发明领域的普通技术人员根据上述揭示内容做的任何变更、修饰,均属于本发明技术方案的范围。The above description is only a description of the preferred embodiments of the present invention, and does not limit the scope of the present invention. Any changes and modifications made by those of ordinary skill in the field of the present invention according to the above disclosure belong to the scope of the technical solutions of the present invention.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210493899.XA CN114879633A (en) | 2022-04-28 | 2022-04-28 | Diagnostic instrument, fault diagnosis method of electronic control system and readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210493899.XA CN114879633A (en) | 2022-04-28 | 2022-04-28 | Diagnostic instrument, fault diagnosis method of electronic control system and readable storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN114879633A true CN114879633A (en) | 2022-08-09 |
Family
ID=82674308
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210493899.XA Pending CN114879633A (en) | 2022-04-28 | 2022-04-28 | Diagnostic instrument, fault diagnosis method of electronic control system and readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114879633A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115390546A (en) * | 2022-08-16 | 2022-11-25 | 北京经纬恒润科技股份有限公司 | Vehicle diagnostic communication method, device, equipment and medium |
CN116541227A (en) * | 2023-07-05 | 2023-08-04 | 苏州浪潮智能科技有限公司 | Fault diagnosis method, device, storage medium, electronic device and BMC chip |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105159188A (en) * | 2015-08-14 | 2015-12-16 | 广州智维电子科技有限公司 | New energy finished automobile heterogeneous network emulator and control method thereof |
US20200339139A1 (en) * | 2018-01-08 | 2020-10-29 | Autel Intelligent Technology Corp., Ltd. | Automobile diagnostic method, apparatus, device and system, and diagnostic connection device |
CN112859814A (en) * | 2021-01-19 | 2021-05-28 | 英博超算(南京)科技有限公司 | DoIP diagnostic system of heterogeneous platform |
CN112904828A (en) * | 2021-01-19 | 2021-06-04 | 英博超算(南京)科技有限公司 | Diagnostic system of heterogeneous architecture domain controller |
CN113325830A (en) * | 2021-06-16 | 2021-08-31 | 江铃汽车股份有限公司 | Remote diagnosis method for automobile diagnosis instrument |
CN114265386A (en) * | 2021-12-10 | 2022-04-01 | 重庆长安汽车股份有限公司 | SOA-based application service diagnosis framework and method |
-
2022
- 2022-04-28 CN CN202210493899.XA patent/CN114879633A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105159188A (en) * | 2015-08-14 | 2015-12-16 | 广州智维电子科技有限公司 | New energy finished automobile heterogeneous network emulator and control method thereof |
US20200339139A1 (en) * | 2018-01-08 | 2020-10-29 | Autel Intelligent Technology Corp., Ltd. | Automobile diagnostic method, apparatus, device and system, and diagnostic connection device |
CN112859814A (en) * | 2021-01-19 | 2021-05-28 | 英博超算(南京)科技有限公司 | DoIP diagnostic system of heterogeneous platform |
CN112904828A (en) * | 2021-01-19 | 2021-06-04 | 英博超算(南京)科技有限公司 | Diagnostic system of heterogeneous architecture domain controller |
CN113325830A (en) * | 2021-06-16 | 2021-08-31 | 江铃汽车股份有限公司 | Remote diagnosis method for automobile diagnosis instrument |
CN114265386A (en) * | 2021-12-10 | 2022-04-01 | 重庆长安汽车股份有限公司 | SOA-based application service diagnosis framework and method |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115390546A (en) * | 2022-08-16 | 2022-11-25 | 北京经纬恒润科技股份有限公司 | Vehicle diagnostic communication method, device, equipment and medium |
CN116541227A (en) * | 2023-07-05 | 2023-08-04 | 苏州浪潮智能科技有限公司 | Fault diagnosis method, device, storage medium, electronic device and BMC chip |
CN116541227B (en) * | 2023-07-05 | 2023-09-22 | 苏州浪潮智能科技有限公司 | Fault diagnosis method and device, storage medium, electronic device and BMC chip |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108227675B (en) | Vehicle diagnosis method, device, terminal and computer-readable storage medium | |
US10621797B2 (en) | System and method for transferring diagnostic commands to a vehicle | |
TWI827642B (en) | Apparatus, method, and computer-readable medium of sharing a sensor in a multiple system on chip environment | |
CN114879633A (en) | Diagnostic instrument, fault diagnosis method of electronic control system and readable storage medium | |
WO2022041720A1 (en) | Uds-based communication method, ecu and upper computer | |
CN109947083A (en) | A kind of terminal device for entire vehicle electrical system detection | |
CN105703991B (en) | Local interconnect network system and method | |
US20200150744A1 (en) | Operation methods of communication node in network | |
CN112069766A (en) | Method and device for reducing hard disk backplane cables in a server | |
CN101992733A (en) | Automobile fault real-time prompt system | |
BRPI1014945B1 (en) | METHOD FOR DETECTING HYBRID MOTOR VEHICLE CAN BUS | |
CN115384532A (en) | Method and device for diagnosing fault of automatic driving area controller, electronic equipment and storage medium | |
WO2024000354A1 (en) | Node upgrading method and apparatus | |
CN112291128A (en) | Bus-based communication system, system on chip, and method therefor | |
CN104361652A (en) | Data recording device of network control and monitoring system of train | |
CN201497911U (en) | Real-time vehicle failure prompting system | |
CN117608260A (en) | Auto parts inspection system and method | |
JP2007034910A (en) | Multi-cpu system and scheduler | |
WO2014027558A1 (en) | Vehicle control device, and vehicle control system | |
US12190656B2 (en) | Method for vehicle diagnostics, diagnostic connector, and diagnostic device | |
CN116340186B (en) | Automotive electronic software detection system, method and medium | |
JP5336796B2 (en) | Protection relay device | |
JP2000181736A (en) | Fail safe collation device | |
CN113868159B (en) | IO module, in-module main control device and in-module interface device identification method | |
CN117395133A (en) | Screen self-repairing system, method, medium and electronic equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |