[go: up one dir, main page]

CN115167373A - Construction method and device of vehicle diagnostic function, and vehicle diagnostic method and device - Google Patents

Construction method and device of vehicle diagnostic function, and vehicle diagnostic method and device Download PDF

Info

Publication number
CN115167373A
CN115167373A CN202210942109.1A CN202210942109A CN115167373A CN 115167373 A CN115167373 A CN 115167373A CN 202210942109 A CN202210942109 A CN 202210942109A CN 115167373 A CN115167373 A CN 115167373A
Authority
CN
China
Prior art keywords
diagnostic
data
framework
node
interaction
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
Application number
CN202210942109.1A
Other languages
Chinese (zh)
Inventor
黄建成
叶思聪
马朔
马欢
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Yousheng Automobile Technology Co ltd
Original Assignee
Guangzhou Yousheng Automobile Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Yousheng Automobile Technology Co ltd filed Critical Guangzhou Yousheng Automobile Technology Co ltd
Priority to CN202210942109.1A priority Critical patent/CN115167373A/en
Publication of CN115167373A publication Critical patent/CN115167373A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B23/00Testing or monitoring of control systems or parts thereof
    • G05B23/02Electric testing or monitoring
    • G05B23/0205Electric testing or monitoring by means of a monitoring system capable of detecting and responding to faults
    • G05B23/0208Electric testing or monitoring by means of a monitoring system capable of detecting and responding to faults characterized by the configuration of the monitoring system
    • G05B23/0213Modular or universal configuration of the monitoring system, e.g. monitoring system having modules that may be combined to build monitoring program; monitoring system that can be applied to legacy systems; adaptable monitoring system; using different communication protocols
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/20Pc systems
    • G05B2219/24Pc safety
    • G05B2219/24065Real time diagnostics

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Vehicle Cleaning, Maintenance, Repair, Refitting, And Outriggers (AREA)

Abstract

The invention relates to a method for constructing a vehicle diagnosis function, which comprises the following steps: constructing a flow component, wherein the flow component is preset with a sub-diagnostic program of the vehicle diagnostic function; constructing at least one process frame node, setting at least one input/output end aiming at each process frame node, associating at least one process component, configuring diagnosis parameters of the associated process component for the process frame node, wherein the diagnosis parameters are parameters of the sub-diagnosis program; and docking the input/output end of the flow frame node to obtain a diagnosis flow frame with a vehicle diagnosis function. Compared with the prior art, the method improves research and development efficiency and maintenance efficiency, and is low in maintenance cost.

Description

车辆诊断功能的构建方法、装置及车辆诊断方法、设备Construction method and device of vehicle diagnostic function, and vehicle diagnostic method and device

技术领域technical field

本发明涉及车辆故障诊断技术领域,尤其是涉及一种车辆诊断功能的构建方法及装置,一种车辆诊断方法及电子设备。The present invention relates to the technical field of vehicle fault diagnosis, in particular to a method and device for constructing a vehicle diagnosis function, a vehicle diagnosis method and electronic equipment.

背景技术Background technique

传统的车辆故障诊断设备为专检电脑,每个汽车厂商都会制作用于汽车故障诊断对应的专检电脑,由于这些专检电脑只是诊断各自品牌下的车型开发的设备,而不同品牌、车型的诊断流程存在不同,且不同品牌所开发的设备的交互体验不同,所以,对于维修人员来说,如果要提供不同品牌的汽车诊断服务,其需要学习使用不同品牌的专检电脑。The traditional vehicle fault diagnosis equipment is a special inspection computer. Each car manufacturer will produce a special inspection computer for vehicle fault diagnosis. Because these special inspection computers are only developed for diagnosing the models under their own brands, and different brands and models have special inspection computers. The diagnosis process is different, and the interactive experience of equipment developed by different brands is different. Therefore, for maintenance personnel, if they want to provide car diagnosis services of different brands, they need to learn to use different brands of special inspection computers.

尽管目前已经出现了可实现多车型诊断的汽车故障诊断软件,但是由于每个车系对同一诊断功能所需求的诊断流程不同,目前汽车故障诊断软件开发过程中,还是需要针对每个车系下的每个诊断功能开发对应的程序,其中存在大量重复开发的劳动,这使得软件开发周期很漫长,而且,随着诊断功能的增多,软件体量增大,导致软件的维护难度大、维护成本高。Although there have been automobile fault diagnosis software that can realize multi-model diagnosis, due to the different diagnostic procedures required by each car series for the same diagnostic function, in the current development process of automobile fault diagnosis software, it is still necessary to target each car series. There is a large amount of repetitive development labor in the development of corresponding programs for each diagnostic function of the system, which makes the software development cycle very long. Moreover, with the increase of diagnostic functions, the software volume increases, resulting in difficult software maintenance and maintenance costs. high.

发明内容SUMMARY OF THE INVENTION

本发明的目的在于克服现有技术的缺点与不足,提供一种车辆故障诊断功能的构建方法,能够缩短诊断功能的开发周期,且维护难度小、维护成本低。The purpose of the present invention is to overcome the shortcomings and deficiencies of the prior art, and to provide a method for constructing a vehicle fault diagnosis function, which can shorten the development cycle of the diagnosis function, and has low maintenance difficulty and low maintenance cost.

本发明是通过以下技术方案实现的:一种车辆诊断功能的构建方法,包括步骤:The present invention is achieved through the following technical solutions: a method for constructing a vehicle diagnostic function, comprising the steps of:

构建流程组件,所述流程组件预设有所述车辆诊断功能的子诊断程序;constructing a process component, the process component is preset with a sub-diagnostic program of the vehicle diagnostic function;

构建至少一流程框架节点,针对每一所述流程框架节点,设有至少一输入/输出端,并关联至少一所述流程组件,对所述流程框架节点配置其所关联的流程组件的诊断参数,所述诊断参数为所述子诊断程序的参数;Build at least one process framework node, for each of the process framework nodes, there is at least one input/output terminal, and at least one of the process components is associated, and the diagnostic parameters of the associated process components are configured for the process framework node. , the diagnostic parameter is the parameter of the sub-diagnostic program;

对接所述流程框架节点的输入/输出端,得到车辆诊断功能的诊断流程框架。The input/output end of the process framework node is connected to obtain the diagnostic process framework of the vehicle diagnostic function.

进一步地,还包括步骤:Further, it also includes the steps:

构建交互组件,所述交互组件预设有车辆诊断功能的用户图形界面的数据展示程序或人机交互程序;constructing an interactive component, the interactive component is preset with a data display program or a human-computer interaction program of the user graphical interface of the vehicle diagnostic function;

构建至少一交互框架节点,每一所述交互框架节点关联至少一交互组件,对所述交互框架节点配置其所关联的交互组件的交互参数,所述交互参数为所述数据展示程序或人机交互程序的参数;Build at least one interactive framework node, each of the interactive framework nodes is associated with at least one interactive component, configure the interactive framework node with interactive parameters of the associated interactive component, the interactive parameters are the data display program or the human-computer parameters of the interactive program;

将每一所述交互框架节点与至少一流程框架节点对接,得到车辆诊断功能的诊断交互框架。Each of the interaction framework nodes is connected with at least one process framework node to obtain a diagnosis interaction framework of the vehicle diagnosis function.

进一步地,还包括步骤:Further, it also includes the steps:

构建诊断数据模板,所述诊断数据模板包括数据结构模板,和/或数据存储模板,和/或数据访问模板,和/或数据使用模板,其中,所述数据结构模板用于规范诊断数据的逻辑结构;所述数据存储模板用于规范诊断数据的存储方式;所述数据访问模板用于规范诊断数据的访问方式;所述数据使用模板用于规范诊断数据的处理方式。Constructing a diagnostic data template, the diagnostic data template includes a data structure template, and/or a data storage template, and/or a data access template, and/or a data usage template, wherein the data structure template is used to standardize the logic of the diagnostic data structure; the data storage template is used to standardize the storage mode of the diagnostic data; the data access template is used to standardize the access mode of the diagnostic data; the data usage template is used to standardize the processing mode of the diagnostic data.

构建至少一诊断数据接口,每一诊断数据接口关联至少一所述诊断数据模板,将所述诊断数据接口与至少一所述流程框架节点或所述交互框架节点对接。At least one diagnostic data interface is constructed, each diagnostic data interface is associated with at least one of the diagnostic data templates, and the diagnostic data interface is connected with at least one of the process framework node or the interaction framework node.

基于同一发明构思,本申请还提供一种车辆故障诊断功能的构建装置,包括:Based on the same inventive concept, the present application also provides a device for constructing a vehicle fault diagnosis function, including:

组件构建模块,用于构建流程组件,所述流程组件预设有所述车辆诊断功能的子诊断程序;a component building module for building a process component, the process component is preset with a sub-diagnostic program of the vehicle diagnostic function;

流程框架节点构建模块,用于构建至少一流程框架节点,针对每一所述流程框架节点,设有至少一输入/输出端,并关联至少一所述流程组件,对所述流程框架节点配置其所关联的流程组件的诊断参数,所述诊断参数为所述子诊断程序的参数;The process framework node building module is used to construct at least one process framework node. For each of the process framework nodes, at least one input/output terminal is provided, and at least one of the process components is associated, and the process framework node is configured with its Diagnostic parameters of the associated process components, the diagnostic parameters are parameters of the sub-diagnostic program;

诊断流程框架构建模块,用于对接所述流程框架节点的输入/输出端,得到车辆诊断功能的诊断流程框架。The diagnostic process framework building module is used to connect the input/output terminals of the process framework nodes to obtain the diagnostic process framework of the vehicle diagnostic function.

进一步地,组件构建模块还用于构建交互组件,所述交互组件预设有车辆诊断功能的用户图形界面的数据展示程序或人机交互程序;Further, the component building module is also used to construct an interactive component, and the interactive component is preset with a data display program or a human-computer interaction program of a user graphical interface of a vehicle diagnostic function;

还包括:Also includes:

交互框架节点构建模块,用于构建至少一交互框架节点,每一所述交互框架节点关联至少一交互组件,对所述交互框架节点配置其所关联的交互组件的交互参数,所述交互参数为所述数据展示程序或人机交互程序的参数;An interaction framework node building module is used to construct at least one interaction framework node, each of the interaction framework nodes is associated with at least one interaction component, and the interaction framework node is configured with the interaction parameters of the associated interaction component, and the interaction parameters are Parameters of the data presentation program or human-computer interaction program;

诊断交互框架构建模块,用于将每一所述交互框架节点与至少一流程框架节点对接,得到车辆诊断功能的诊断交互框架。The diagnostic interaction framework building module is used to connect each of the interaction framework nodes with at least one process framework node to obtain a diagnostic interaction framework of the vehicle diagnosis function.

进一步地,组件构建模块还用于构建诊断数据模板,所述诊断数据模板包括数据结构模板,和/或数据存储模板,和/或数据访问模板,和/或数据使用模板,其中,所述数据结构模板用于规范诊断数据的逻辑结构;所述数据存储模板用于规范诊断数据的存储方式;所述数据访问模板用于规范诊断数据的访问方式;所述数据使用模板用于规范诊断数据的处理方式。Further, the component building module is also used to construct a diagnostic data template, and the diagnostic data template includes a data structure template, and/or a data storage template, and/or a data access template, and/or a data usage template, wherein the data The structure template is used to standardize the logical structure of the diagnostic data; the data storage template is used to standardize the storage mode of the diagnostic data; the data access template is used to standardize the access mode of the diagnostic data; the data usage template is used to standardize the diagnostic data. how to handle it.

诊断数据接口构建模块,用于构建至少一诊断数据接口,每一诊断数据接口关联至少一所述诊断数据模板,将所述诊断数据接口与至少一所述流程框架节点或所述交互框架节点对接。The diagnostic data interface building module is used to construct at least one diagnostic data interface, each diagnostic data interface is associated with at least one of the diagnostic data templates, and the diagnostic data interface is connected with at least one of the process framework nodes or the interaction framework nodes .

基于同一发明构思,本申请还提供一种车辆诊断方法,包括步骤:Based on the same inventive concept, the present application also provides a vehicle diagnosis method, comprising the steps of:

获取诊断流程框架,触发所述诊断流程框架的流程框架节点;Obtain the diagnostic process framework, and trigger the process framework node of the diagnostic process framework;

获取被触发的所述流程框架节点所关联的流程组件,并执行该流程组件;其中,所述诊断流程框架和所述流程组件通过权利要求1-3中任一项所述的方法构建。Acquire the process component associated with the triggered process framework node, and execute the process component; wherein the diagnosis process framework and the process component are constructed by the method according to any one of claims 1-3.

进一步地,还包括步骤:Further, it also includes the steps:

获取诊断交互框架,触发所述诊断流程框架的流程框架节点和/或触发所述诊断交互框架的交互框架节点;Obtaining a diagnostic interaction framework, triggering a process framework node of the diagnostic process framework and/or triggering an interaction framework node of the diagnostic interaction framework;

获取被触发的所述交互框架节点所关联的交互组件,并执行该交互组件;其中,所述诊断交互框架和所述交互组件通过权利要求2-3中任一项所述的方法构建。Acquire the interaction component associated with the triggered interaction framework node, and execute the interaction component; wherein the diagnostic interaction framework and the interaction component are constructed by the method of any one of claims 2-3.

进一步地,还包括步骤:Further, it also includes the steps:

获取诊断数据接口;Get diagnostic data interface;

获取被所述流程框架节点或所述交互框架节点触发的所述诊断数据接口所关联的诊断数据模板,并执行该诊断数据模板;其中,所述诊断数据接口和所述诊断数据模板通过权利要求3所述的方法构建。Acquire the diagnostic data template associated with the diagnostic data interface triggered by the process framework node or the interaction framework node, and execute the diagnostic data template; wherein the diagnostic data interface and the diagnostic data template pass the claims 3 was constructed by the method described.

基于同一发明构思,本申请还提供一种电子设备,包括:Based on the same inventive concept, the present application also provides an electronic device, including:

处理器;processor;

存储器,用于存储由所述处理器执行的计算机程序;a memory for storing a computer program executed by the processor;

其中,所述处理器执行所述计算机程序时实现上述车辆诊断方法的步骤。Wherein, when the processor executes the computer program, the steps of the above-mentioned vehicle diagnosis method are implemented.

相对于现有技术,本发明将诊断流程程序、交互程序及诊断数据解耦,使车辆诊断功能的诊断流程程序、交互程序和诊断数据的耦合度低,开发人员在进行车辆诊断功能更新或维护时可以仅对车辆诊断功能中需要更新或维护的组件进行处理,而无需关注车辆诊断功能的其他部分;同时在车辆诊断功能出现程序错误时,能够根据程序错误所在组件快速定位问题,而无需逐行检阅车辆诊断功能的代码,提高了研发和维护效率,且维护成本低。Compared with the prior art, the present invention decouples the diagnostic process program, the interactive program and the diagnostic data, so that the coupling degree of the diagnostic process program, the interactive program and the diagnostic data of the vehicle diagnostic function is low, and the developer is updating or maintaining the vehicle diagnostic function. At the same time, when a program error occurs in the vehicle diagnosis function, it can quickly locate the problem according to the component where the program error is located, without needing to pay attention to other parts of the vehicle diagnosis function. It can check the code of the vehicle diagnostic function, improve the efficiency of R&D and maintenance, and reduce the maintenance cost.

此外,本发明可以应用于车辆诊断功能的定制开发,针对定制功能,将所需组件进行组装,将组装得到的框架从服务器直接推送至终端,终端在运行该框架时,从服务器中获取框架节点所关联的组件,即可实现车辆诊断功能。这不仅使得车辆诊断功能的定制开发可快速完成,在出现程序错误时也只需在远程对问题所在的组件进行修复即可,同样是提高了研发和维护效率。In addition, the present invention can be applied to the customized development of the vehicle diagnostic function. For the customized function, the required components are assembled, the assembled framework is directly pushed from the server to the terminal, and the terminal obtains the framework node from the server when running the framework. The associated components can realize the vehicle diagnosis function. This not only enables the customized development of vehicle diagnostic functions to be completed quickly, but also only needs to be repaired remotely in the event of a program error, which also improves the efficiency of R&D and maintenance.

为了更好地理解和实施,下面结合附图详细说明本发明。For better understanding and implementation, the present invention is described in detail below with reference to the accompanying drawings.

附图说明Description of drawings

图1为实施例1的车辆诊断功能的构建方法的流程示意图;1 is a schematic flowchart of a method for constructing a vehicle diagnostic function according to Embodiment 1;

图2为一个示例性的安全气囊匹配功能的诊断流程框架示意图;FIG. 2 is a schematic diagram of an exemplary diagnostic flow frame of an airbag matching function;

图3为实施例2的车辆诊断功能的构建方法的流程示意图;3 is a schematic flowchart of a method for constructing a vehicle diagnostic function according to Embodiment 2;

图4为一示例性的车辆诊断功能的诊断流程框架和诊断交互框架的示意图;4 is a schematic diagram of an exemplary diagnostic process framework and diagnostic interaction framework of a vehicle diagnostic function;

图5为一示例性的车型选择组件的用户图形界面示意图;5 is a schematic diagram of a graphical user interface of an exemplary vehicle model selection component;

图6为实施例3的车辆诊断功能的构建方法的流程示意图;6 is a schematic flowchart of a method for constructing a vehicle diagnostic function according to Embodiment 3;

图7为一个示例性的树型结构的诊断数据的结构示意图;7 is a schematic structural diagram of an exemplary tree-structured diagnostic data;

图8为一个示例性的链型结构的诊断过程数据的结构示意图;FIG. 8 is a schematic structural diagram of diagnostic process data of an exemplary chain structure;

图9为实施例4的车辆故障诊断方法的流程示意图;9 is a schematic flowchart of a vehicle fault diagnosis method according to Embodiment 4;

图10为实施例5的车辆故障诊断方法的流程示意图;10 is a schematic flowchart of a vehicle fault diagnosis method according to Embodiment 5;

图11为实施例6的车辆故障诊断方法的流程示意图;11 is a schematic flowchart of a vehicle fault diagnosis method according to Embodiment 6;

图12为一个实施例的车辆诊断功能的构建装置的结构示意图。FIG. 12 is a schematic structural diagram of an apparatus for constructing a vehicle diagnostic function according to an embodiment.

具体实施方式Detailed ways

为使本申请的目的、技术方案和优点更加清楚,下面将结合附图对本申请实施例方式作进一步地详细描述。In order to make the objectives, technical solutions and advantages of the present application clearer, the embodiments of the present application will be described in further detail below with reference to the accompanying drawings.

应当明确,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其它实施例,都属于本发明保护的范围。It should be understood that the described embodiments are only some, but not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.

下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施例中所描述的实施方式并不代表与本申请相一致的所有实施方式。相反,它们仅是如所附权利要求书中所详述的、本申请的一些方面相一致的装置和方法的例子。Where the following description refers to the drawings, the same numerals in different drawings refer to the same or similar elements unless otherwise indicated. The implementations described in the illustrative examples below are not intended to represent all implementations consistent with this application. Rather, they are merely examples of apparatus and methods consistent with some aspects of the present application, as recited in the appended claims.

在本申请的描述中,需要理解的是,术语“第一”、“第二”、“第三”等仅用于区别类似的对象,而不必用于描述特定的顺序或先后次序,也不能理解为指示或暗示相对重要性。对于本领域的普通技术人员而言,可以根据具体情况理解上述术语在本申请中的具体含义。此外,在本申请的描述中,除非另有说明,“多个”是指两个或两个以上。“和/或”,描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。字符“/”一般表示前后关联对象是一种“或”的关系。In the description of this application, it should be understood that the terms "first", "second", "third", etc. are only used to distinguish similar objects, and are not necessarily used to describe a specific sequence or sequence, nor can understood as indicating or implying relative importance. For those of ordinary skill in the art, the specific meanings of the above terms in this application can be understood according to specific situations. Also, in the description of the present application, unless otherwise specified, "a plurality" means two or more. "And/or", which describes the association relationship of the associated objects, means that there can be three kinds of relationships, for example, A and/or B, which can mean that A exists alone, A and B exist at the same time, and B exists alone. The character "/" generally indicates that the associated objects are an "or" relationship.

实施例1Example 1

请参阅图1,其为实施例1的车辆诊断功能的构建方法的流程示意图。该方法包括步骤:Please refer to FIG. 1 , which is a schematic flowchart of a method for constructing a vehicle diagnostic function according to Embodiment 1. The method includes the steps:

S11:构建功能组件库;S11: Build a functional component library;

S12:构建至少一流程框架节点,针对每一流程框架节点,设有至少一输入/输出端,并关联至少一流程组件,对流程框架节点配置所关联的流程组件的诊断参数;S12: constructing at least one process framework node, with at least one input/output terminal for each process framework node, and associating at least one process component, and configuring the diagnostic parameters of the associated process component for the process framework node;

S13:对接所述流程框架节点的输入/输出端,得到车辆诊断功能的诊断流程框架。S13: Connect the input/output end of the process framework node to obtain a diagnostic process framework of the vehicle diagnostic function.

具体的,在步骤S11中,功能组件库包括流程组件,流程组件设有至少一个输入端或至少一个输出端,流程组件的输入/输出端可以是接口、交互或事件,流程组件的输入/输出端为接口时,可与其他程序、组件或硬件的接口对接;流程组件的输入/输出端为交互时,可获取用户和UI、设备之间的交互动作,如输入指令、点击按钮等;流程组件的输入/输出端为事件时,需要满足事件所设定的条件才可执行该流程组件,事件例如为计时到点、收到指令、得到指定数据、前置条件判定等,例如,在车型信息获取组件中,前置条件判定为是否获得VIN码,当车型信息获取组件的输入中包含VIN码时,车型信息获取组件可被执行,根据VIN码获取车型信息。Specifically, in step S11, the functional component library includes a process component, the process component is provided with at least one input terminal or at least one output terminal, the input/output terminal of the process component can be an interface, interaction or event, and the input/output terminal of the process component When the terminal is an interface, it can be connected with the interface of other programs, components or hardware; when the input/output terminal of the process component is interactive, it can obtain the interaction between the user and the UI and device, such as inputting instructions, clicking buttons, etc.; When the input/output end of a component is an event, the process component needs to meet the conditions set by the event before the process component can be executed. The event is, for example, the timing is up, the command is received, the specified data is obtained, the precondition is determined, etc., for example, in the model In the information acquisition component, the precondition is to determine whether to obtain the VIN code. When the input of the vehicle type information acquisition component includes the VIN code, the vehicle type information acquisition component can be executed, and the vehicle type information is acquired according to the VIN code.

流程组件用于预设车辆诊断功能中的子诊断程序,流程组件根据其输入端接收的数据信息执行其所预设的子诊断程序,执行结果由其输出端输出,通过一个或多个组合的流程组件可实现车辆诊断功能,流程组件的类型包括但不限于获取VIN码组件、读数据流组件、读故障码组件、清码组件、动作测试组件、保养复位组件、冻结帧数据组件、引导功能组件、ECU(电子控制单元)版本信息读取组件、车型信息获取组件、数据解析组件、数据采集组件等。The process component is used to preset the sub-diagnosis program in the vehicle diagnosis function. The process component executes its preset sub-diagnosis program according to the data information received by its input terminal, and the execution result is output from its output terminal. Process components can implement vehicle diagnosis functions. The types of process components include but are not limited to acquiring VIN code components, reading data stream components, reading fault code components, clearing code components, action testing components, maintenance reset components, freeze frame data components, and guiding functions. Components, ECU (Electronic Control Unit) version information reading components, vehicle model information acquisition components, data analysis components, data acquisition components, etc.

在一个实施例中,一个流程组件也可以由其他流程组件构成,例如,读故障码组件由数据采集组件、数据解析组件和数据修改组件构成,读故障码组件的输入端与汽车ECU的故障码输出端对接,通过数据采集组件可获取汽车ECU输出的故障码;数据解析组件的输入端与数据采集组件的输出端对接,对数据采集组件输出的故障码进行解析得到故障信息;数据修改组件的输入端与数据采集组件的输出端对接,对数据解析组件输出的故障信息根据设定的修改规则进行调整,得到最终的故障信息。In one embodiment, a process component may also be composed of other process components. For example, the fault code reading component is composed of a data acquisition component, a data parsing component, and a data modification component. The output terminal is connected, and the fault code output by the automobile ECU can be obtained through the data acquisition component; the input terminal of the data analysis component is connected with the output terminal of the data acquisition component, and the fault code output by the data acquisition component is analyzed to obtain the fault information; The input end is connected with the output end of the data acquisition component, and the fault information output by the data analysis component is adjusted according to the set modification rules to obtain the final fault information.

在步骤S12中,流程框架节点与流程组件关联,根据其关联的流程组件配置流程框架节点的输入/输出端,并按照设定规则配置诊断参数,该诊断参数为对应流程组件所预设的子诊断程序的参数,当流程框架节点被触发时,将根据诊断参数执行所关联的流程组件中预设的子诊断程序。In step S12, the process framework node is associated with the process component, the input/output end of the process framework node is configured according to the associated process component, and the diagnostic parameter is configured according to the set rule, and the diagnostic parameter is a preset sub-parameter of the corresponding process component. The parameters of the diagnostic program. When the process framework node is triggered, the sub-diagnostic program preset in the associated process component will be executed according to the diagnostic parameters.

在步骤S13中,将各个流程框架节点的输入/输出端根据车辆诊断流程的业务逻辑进行对接,形成流程框架节点间的数据交互通道,即构成诊断流程框架。该诊断流程框架被执行时,流程框架节点根据业务逻辑依序被触发,流程框架节点所关联的流程组件中预设的子诊断程序被依序执行,实现车辆诊断功能。In step S13, the input/output terminals of each process framework node are connected according to the business logic of the vehicle diagnosis process to form a data exchange channel between the process framework nodes, that is, a diagnostic process framework. When the diagnosis process framework is executed, the process framework nodes are triggered in sequence according to the business logic, and the preset sub-diagnostic programs in the process components associated with the process framework nodes are executed in sequence to realize the vehicle diagnosis function.

请参阅图2,其为一个示例性的安全气囊匹配功能的诊断流程框架示意图。该安全气囊匹配功能的诊断流程框架包括获取VIN码节点、旧模块数据获取节点、第一关闭点火开关节点、新模块更换节点、第一打开点火开关节点、模块数据写入节点、第二关闭点火开关节点、第二打开点火开关节点、故障码读取节点和清码节点,分别关联的流程组件依次为获取VIN码组件、旧模块数据获取组件、关闭点火开关组件、新模块更换组件、打开点火开关组件、模块数据写入组件、关闭点火开关组件、打开点火开关组件、故障码读取组件和清码组件。其中,获取VIN码组件用于获取车辆识别代码,即车架号;旧模块数据获取节点的输入端与获取VIN码节点的输出端对接,所关联的旧模块数据获取组件用于根据获取VIN码组件所获取的车辆识别代码来获取旧模块的数据;第一关闭点火开关节点的输入端与旧模块数据获取节点的输出端对接,所关联的关闭点火开关组件用于在旧模块数据获取组件得到旧模块的数据时,关闭点火开关;新模块更换节点的输入端与第一关闭点火开关节点的输出端对接,所关联的新模块更换组件用于在点火开关关闭后,更换新的安全气囊模块;第一打开点火开关节点的输入端与新模块更换节点的输出端对接,所关联的打开点火开关组件用于在完成新的安全气囊更换后,打开点火开关;模块数据写入节点与第一打开点火开关节点对接,所关联的模块数据写入组件用于在点火开关打开后,将旧模块数据写入新的安全气囊模块;第二关闭点火开关节点的输入端与模块数据写入节点的输出端对接,所关联的关闭点火开关组件用于在旧模块数据写入新的安全气囊模块后,关闭点火开关;第二打开点火开关节点的输入端与第二关闭点火开关节点的输出端对接,所关联的打开点火开关组件用于在关闭点火开关后打开点火开关;故障码读取节点的输入端与第二打开点火开关节点的输出端对接,所关联的故障码读取组件用于在点火开关打开后,读取汽车电脑ECU分析反映出来的故障码;清码节点的输入端与故障码读取节点的输出端对接,所关联的清码节点用于当故障码读取节点输出故障码时,清除故障码。Please refer to FIG. 2 , which is a schematic diagram of a diagnostic flow frame of an exemplary airbag matching function. The diagnostic process framework of the airbag matching function includes a node for acquiring VIN code, a node for acquiring old module data, a node for turning off the first ignition switch, a node for replacing a new module, a node for turning on the ignition switch first, a node for writing module data, and a second node for turning off the ignition The switch node, the second ignition switch node on, the fault code reading node, and the code clearing node, respectively associated with the process components in turn are the VIN code acquisition component, the old module data acquisition component, the ignition switch component off, the new module replacement component, and the ignition on Switch assembly, module data writing assembly, closing ignition switch assembly, opening ignition switch assembly, fault code reading assembly and code clearing assembly. Among them, the VIN code obtaining component is used to obtain the vehicle identification code, that is, the vehicle frame number; the input end of the old module data obtaining node is connected with the output end of the VIN code obtaining node, and the associated old module data obtaining component is used to obtain the VIN code according to the The vehicle identification code obtained by the component is used to obtain the data of the old module; the input end of the first turn off ignition switch node is connected with the output end of the old module data obtaining node, and the associated turn off ignition switch assembly is used to obtain the data obtained by the old module data obtaining component. When the data of the old module is turned off, the ignition switch is turned off; the input end of the new module replacement node is connected to the output end of the first node to turn off the ignition switch, and the associated new module replacement assembly is used to replace the new airbag module after the ignition switch is turned off ; The input end of the first open ignition switch node is docked with the output end of the new module replacement node, and the associated open ignition switch assembly is used to open the ignition switch after completing the replacement of the new airbag; the module data writing node and the first Turn on the docking of the ignition switch node, and the associated module data writing component is used to write the old module data into the new airbag module after the ignition switch is turned on; the second close the input end of the ignition switch node and the module data writing node The output end is docked, and the associated ignition off switch assembly is used to turn off the ignition switch after the old module data is written into the new airbag module; the input end of the second open ignition switch node is docked with the output end of the second closed ignition switch node , the associated open ignition switch assembly is used to open the ignition switch after the ignition switch is turned off; the input end of the fault code reading node is connected to the output end of the second open ignition switch node, and the associated fault code reading assembly is used in the After the ignition switch is turned on, read the fault code reflected by the analysis of the car computer ECU; the input terminal of the code clearing node is connected to the output terminal of the fault code reading node, and the associated clearing node is used when the fault code reading node outputs faults code, clear the fault code.

实施例2Example 2

请参阅图3,其为实施例2的车辆诊断功能的构建方法的流程示意图。该方法包括步骤:Please refer to FIG. 3 , which is a schematic flowchart of a method for constructing a vehicle diagnostic function according to Embodiment 2. The method includes the steps:

S21:构建功能组件库;S21: Build a functional component library;

S22:构建至少一流程框架节点,每一流程框架节点关联一流程组件,并配置所关联的流程组件的诊断参数;S22: construct at least one process framework node, each process framework node is associated with a process component, and configure the diagnostic parameters of the associated process component;

S23:对接所述流程框架节点的输入/输出端,得到车辆诊断功能的诊断流程框架;S23: docking the input/output end of the process framework node to obtain a diagnostic process framework of the vehicle diagnostic function;

S24:构建至少一交互框架节点,每一交互框架节点关联至少一交互组件,对交互框架节点配置其所关联的交互组件的交互参数;S24: constructing at least one interaction framework node, each interaction framework node is associated with at least one interaction component, and configuring interaction parameters of the associated interaction component for the interaction framework node;

S25:将每一所述交互框架节点与至少一流程框架节点对接,得到车辆诊断功能的诊断交互框架。S25: Connect each of the interaction framework nodes with at least one process framework node to obtain a diagnosis interaction framework of the vehicle diagnosis function.

在实施例2中,实施例2的步骤S21~S23与实施例1中的步骤S11~步骤S12相同,功能组件库中包括多个流程组件和多个交互组件,其中,流程组件与实施例1所述的流程组件相同,在此不再赘述。交互组件设有至少一个输入端或至少一个输出端,交互组件的输入端、输出端可以是接口,交互组件的输入端可以与用于人机交互的输入设备的输出接口对接,如键盘、鼠标、触摸屏等,也可以与其他程序、功能组件的接口对接;交互组件的输出端可与用于人机交互的输出设备的输入接口对接,如电子屏幕等,也可以与其他程序、功能组件的接口对接。In Embodiment 2, steps S21 to S23 of Embodiment 2 are the same as steps S11 to S12 of Embodiment 1, and the functional component library includes multiple process components and multiple interaction components, wherein the process components are the same as those of Embodiment 1. The described process components are the same and will not be repeated here. The interactive component is provided with at least one input terminal or at least one output terminal. The input terminal and output terminal of the interactive component can be interfaces, and the input terminal of the interactive component can be connected with the output interface of the input device for human-computer interaction, such as a keyboard and a mouse. , touch screen, etc., can also be connected with the interface of other programs and functional components; the output end of the interactive component can be connected with the input interface of the output device used for human-computer interaction, such as electronic screen, etc., and can also be connected with the interface of other programs and functional components. interface connection.

交互组件用于预设车辆诊断功能的用户图形界面中的数据展示程序以及人机交互程序,交互组件根据其输入端接收到的数据改变车辆诊断功能的用户图形界面的展示内容;交互组件也可以获取用户的操作信息,并通过其输出端输出到其他组件。交互组件可以由多个控件构成,如状态栏控件、标题栏控件、选项控件、按钮控件、车型信息控件等。The interactive component is used to preset the data display program and the human-computer interaction program in the user graphical interface of the vehicle diagnosis function. The interactive component changes the display content of the user graphical interface of the vehicle diagnosis function according to the data received by the input terminal; the interactive component can also Get the user's operation information and output it to other components through its output terminal. Interactive components can be composed of multiple controls, such as status bar controls, title bar controls, option controls, button controls, and model information controls.

在步骤S24中,交互框架节点与交互组件关联,按照设定规则配置交互参数,该交互参数为对应交互组件所预设的数据展示程序或人机交互程序的参数,如交互组件的控件上所显示的文本、图形等。当交互框架节点被触发时,将根据交互参数执行所关联的交互组件中预设的数据展示程序或人机交互程序。In step S24, the interaction framework node is associated with the interaction component, and the interaction parameter is configured according to the set rule, and the interaction parameter is the parameter of the data display program or the human-computer interaction program preset by the corresponding interaction component, such as the control of the interaction component. Displayed text, graphics, etc. When the interaction framework node is triggered, the data presentation program or the human-computer interaction program preset in the associated interaction component will be executed according to the interaction parameters.

在步骤S25中,交互框架节点和流程框架节点可通过接口的方式对接,形成流程框架节点和交互框架节点间的数据交互通道,即构成与诊断流程框架有交互关系的诊断交互框架。当诊断流程框架被执行时,同时执行诊断交互框架,流程框架节点根据业务逻辑依序被触发,流程框架节点所关联的流程组件中预设的子诊断程序被依序执行;交互框架节点根据流程框架节点传输的数据或用户操作被触发,交互框架节点所关联的交互组件中预设的展示程序或人机交互程序被执行,实现车辆诊断功能。In step S25, the interaction framework node and the process framework node can be connected through an interface to form a data exchange channel between the process framework node and the interaction framework node, that is, a diagnosis interaction framework interacting with the diagnosis process framework is formed. When the diagnostic process framework is executed, the diagnostic interaction framework is executed at the same time, the process framework nodes are triggered in sequence according to the business logic, and the preset sub-diagnostic programs in the process components associated with the process framework nodes are executed in sequence; The data transmitted by the framework node or the user operation is triggered, and the preset display program or human-computer interaction program in the interactive component associated with the interactive framework node is executed to realize the vehicle diagnosis function.

请参阅图4,其为一示例性的车辆诊断功能的诊断流程框架和诊断交互框架的示意图。其中,诊断流程框架包括获取VIN码节点、车型信息获取节点、第一操作选择节点、自动扫描节点、ECU选择节点、第二操作选择节点、读取数据流节点、读取故障码节点、第三操作选择节点、查看冻结帧节点、故障引导节点和清码节点,诊断交互框架包括第一操作获取节点、ECU选择获取节点、第二操作获取节点、第三操作获取节点和冻结帧展示节点。其中,获取VIN码节点关联获取VIN码组件,用于获取车辆识别代码,即车架号;车型信息获取节点的输入端与获取VIN码节点输出端对接,所关联的车型选项获取组件用于根据所获取车辆识别代码获取车型信息;第一操作选择节点的输入端与车型信息获取节点的输出端对接,所关联的第一操作选择组件用于在获取车型信息后,进入第一操作选择状态;自动扫描节点的输入端与第一操作选择节点的输出端对接,所关联的自动扫描组件用于当第一操作选择节点输出为选择自动扫描时,进行ECU的自动扫描;ECU选择节点的输入端与第一操作选择节点的输出端对接,所关联的ECU选择组件用于当第一操作选择节点输出为手动选择时,进入ECU选择状态;第二操作选择节点的输入端与ECU选择状态的输出端对接,所关联的第二操作选择组件用于在完成ECU选择后,进入第二操作选择状态;读取数据流节点的输入端与第二操作选择节点的输出端对接,所关联的读取数据流组件用于当第二操作选择节点输出为选择读取数据流时,读取ECU和传感器与执行器交流的数据参数;读取故障码节点的输入端与与第二操作选择节点的输出端对接,所关联的读取故障码组件用于当第二操作选择节点输出为选择读取故障码时,读取汽车故障码;第三操作选择节点的输入端与读取故障码节点的输出端对接,所关联的第三操作选择组件用于在获取汽车故障码后,进入第三操作选择状态;查看冻结帧节点的输入端与第三操作选择节点的输出端对接,所关联的查看冻结帧组件用于当第三操作选择节点的输出为选择查看冻结帧时,进行冻结帧查询;故障引导节点的输入端与第三操作选择节点的输出端对接,所关联的故障引导组件用于当第三操作选择节点的输出为选择故障引导时,进行故障引导;清码节点的输入端与故障引导节点的输出端对接,所关联的清码组件用于在完成故障引导后,进行故障码清除。第一操作获取节点与第一操作选择节点通过接口对接,所关联的第一操作获取组件用于在进入第一操作获取状态时,展示第一操作选项,以及获取用户输入的选项信息并传输至第一操作选择节点;ECU选择获取节点与ECU选择节点通过接口对接,所关联的ECU选择获取组件用于在进入ECU选择状态时,展示ECU选项,以及获取用户输入的选项信息并传输至ECU选择节点;第二操作获取节点与第二操作选择节点通过接口对接,所关联的第二操作获取组件用于当进入第二操作选择状态时,展示第二操作选项,以及获取用户输入的选项信息并传输至第二操作选择节点;第三操作获取节点与第三操作选择节点通过接口对接,所关联的第三操作获取组件用于在进入第三操作选择状态时,展示第三操作选择,以及获取用户输入的选项信息并传输至第三操作选择节点;冻结帧展示节点与查看冻结帧节点通过接口对接,所关联的冻结帧展示节点用于展示查看冻结帧节点所获取的冻结帧数据。Please refer to FIG. 4 , which is a schematic diagram of an exemplary diagnostic process framework and diagnostic interaction framework of a vehicle diagnostic function. Among them, the diagnosis process framework includes a node for obtaining VIN code, a node for obtaining vehicle information, a first operation selection node, an automatic scanning node, an ECU selection node, a second operation selection node, a reading data stream node, a reading fault code node, and a third node. Operation selection node, freeze frame viewing node, fault boot node and code clearing node. The diagnostic interaction framework includes a first operation acquisition node, an ECU selection acquisition node, a second operation acquisition node, a third operation acquisition node and a freeze frame display node. Among them, the acquiring VIN code node is associated with the acquiring VIN code component, which is used to acquire the vehicle identification code, that is, the vehicle frame number; the input end of the model information acquiring node is connected with the output end of the acquiring VIN code node, and the associated model option acquiring component is used according to the The acquired vehicle identification code acquires vehicle type information; the input end of the first operation selection node is connected to the output terminal of the vehicle type information acquisition node, and the associated first operation selection component is used to enter the first operation selection state after acquiring the vehicle type information; The input end of the automatic scanning node is connected to the output end of the first operation selection node, and the associated automatic scanning component is used to perform automatic scanning of the ECU when the output of the first operation selection node is to select automatic scanning; the input end of the ECU selection node It is connected with the output terminal of the first operation selection node, and the associated ECU selection component is used to enter the ECU selection state when the output of the first operation selection node is manual selection; the input terminal of the second operation selection node and the output of the ECU selection state After the ECU selection is completed, the associated second operation selection component is used to enter the second operation selection state; the input terminal of the read data stream node is docked with the output terminal of the second operation selection node, and the associated read The data flow component is used to read the data parameters communicated with the ECU, the sensor and the actuator when the output of the second operation selection node is to select the read data flow; the input terminal of the read fault code node and the output of the second operation selection node The terminals are connected, and the associated read fault code component is used to read the car fault code when the output of the second operation selection node is to select the read fault code; the input end of the third operation selection node is connected to the output of the read fault code node. The terminal is docked, and the associated third operation selection component is used to enter the third operation selection state after obtaining the vehicle fault code; the input terminal of the viewing freeze frame node is docked with the output terminal of the third operation selection node, and the associated viewing freeze The frame component is used to query the freeze frame when the output of the third operation selection node is to select and view the frozen frame; the input terminal of the fault guide node is connected to the output terminal of the third operation selection node, and the associated fault guide component is used when The third operation selects the output of the node to perform fault booting when the fault boot is selected; the input terminal of the clearing node is connected to the output terminal of the fault booting node, and the associated clearing component is used to clear the fault code after the fault booting is completed. . The first operation acquisition node is connected to the first operation selection node through an interface, and the associated first operation acquisition component is used to display the first operation option when entering the first operation acquisition state, and acquire the option information input by the user and transmit it to The first operation selects the node; the ECU selection and acquisition node is connected with the ECU selection node through the interface, and the associated ECU selection and acquisition component is used to display the ECU options when entering the ECU selection state, and obtain the option information input by the user and transmit it to the ECU selection. node; the second operation acquisition node is connected with the second operation selection node through the interface, and the associated second operation acquisition component is used to display the second operation option when entering the second operation selection state, and acquire the option information input by the user and It is transmitted to the second operation selection node; the third operation acquisition node is connected with the third operation selection node through the interface, and the associated third operation acquisition component is used to display the third operation selection when entering the third operation selection state, and obtain The option information input by the user is transmitted to the third operation selection node; the freeze frame display node is connected with the freeze frame view node through an interface, and the associated freeze frame display node is used to display the freeze frame data obtained by the view freeze frame node.

请参阅图5,其为一示例性的车型选择组件的用户图形界面示意图。该用户图形界面中包括状态栏控件、标题栏控件、选项控件、按钮控件和车型信息控件,其中状态栏控件用于展示设备状态;标题栏控件用于展示当前界面位置;车型信息控件用于展示车型信息;选项控件用于展示车型选项,并获取用户所选择的车型信息;按钮控件用于用于展示操作功能,并获取用户所选择的操作功能信息。Please refer to FIG. 5 , which is a schematic diagram of a graphical user interface of an exemplary vehicle model selection component. The user graphical interface includes a status bar control, a title bar control, an option control, a button control and a model information control, wherein the status bar control is used to display the device status; the title bar control is used to display the current interface position; the model information control is used to display Model information; the option control is used to display the model options and obtain the information of the model selected by the user; the button control is used to display the operation function and obtain the operation function information selected by the user.

实施例3Example 3

请参阅图6,其为实施例3的车辆诊断功能的构建方法的流程示意图。该方法包括步骤:Please refer to FIG. 6 , which is a schematic flowchart of a method for constructing a vehicle diagnostic function according to Embodiment 3. The method includes the steps:

S31:构建功能组件库;S31: Build a functional component library;

S32:构建至少一流程框架节点,每一流程框架节点关联一流程组件,并配置所关联的流程组件的诊断参数;S32: constructing at least one process framework node, each process framework node is associated with a process component, and configures diagnostic parameters of the associated process component;

S33:对接所述流程框架节点的输入/输出端,得到车辆诊断功能的诊断流程框架;S33: Docking the input/output end of the process framework node to obtain a diagnostic process framework of the vehicle diagnostic function;

S34:构建至少一交互框架节点,每一交互框架节点关联一交互组件,根据交互框架节点所关联的交互组件配置交互框架节点的诊断参数;S34: constructing at least one interactive framework node, each interactive framework node is associated with an interactive component, and configures diagnostic parameters of the interactive framework node according to the interactive component associated with the interactive framework node;

S35:将每一所述交互框架节点与至少一流程框架节点对接,得到车辆诊断功能的诊断交互框架;S35: Docking each of the interaction framework nodes with at least one process framework node to obtain a diagnosis interaction framework for the vehicle diagnosis function;

S36:构建至少一诊断数据接口,每一诊断数据接口关联至少一诊断数据模板,将诊断数据接口与至少一流程框架节点或交互框架节点对接。S36: Build at least one diagnostic data interface, each diagnostic data interface is associated with at least one diagnostic data template, and connect the diagnostic data interface with at least one process framework node or interaction framework node.

在实施例3中,实施例3的步骤S31~S35与实施例2中的步骤S21~步骤S25相同,功能组件库中包括流程组件、交互组件和诊断数据模板,其中,流程组件、交互组件与实施例2所述的流程组件、交互组件相同,在此不再赘述。诊断数据模板包括但不限于数据结构模板、数据存储模板、数据访问模板和数据使用模板,其中,数据结构模板用于规范诊断数据的逻辑结构,流程框架节点或交互框架节点可根据与其对接的诊断数据接口所关联的数据结构模板对诊断数据依据对应的数据结构进行存储及调用。诊断数据包括开发人员预设的诊断数据,如解析算法、诊断报文、诊断通讯参数和UI控件属性信息等,以及包括汽车诊断功能执行过程中产生的过程数据,如车型选项、诊断通讯信息(故障码、数据流、冻结帧等)等。诊断数据的逻辑结构包括树型结构、表型结构、链型结构、动态型结构和对象型结构等。请参阅图7,其为一个示例性的树型结构的诊断数据的结构示意图,在车辆诊断功能的执行过程中,将从ECU获取到的诊断通讯信息,按照该数据逻辑结构进行存储;当需要根据某一树节点获取车辆的诊断通讯信息时可以通过该数据逻辑结构快速索引到所需数据。In Embodiment 3, steps S31 to S35 in Embodiment 3 are the same as steps S21 to S25 in Embodiment 2, and the functional component library includes process components, interaction components and diagnostic data templates, wherein the process components, interaction components and The process components and interaction components described in Embodiment 2 are the same, and are not repeated here. Diagnostic data templates include but are not limited to data structure templates, data storage templates, data access templates, and data usage templates. The data structure template is used to standardize the logical structure of diagnostic data, and process framework nodes or interaction framework nodes can The data structure template associated with the data interface stores and calls the diagnostic data according to the corresponding data structure. The diagnostic data includes the diagnostic data preset by the developer, such as parsing algorithms, diagnostic messages, diagnostic communication parameters and UI control attribute information, etc., as well as process data generated during the execution of the car diagnostic function, such as model options, diagnostic communication information ( fault codes, data streams, freeze frames, etc.) The logical structure of diagnostic data includes tree structure, phenotype structure, chain structure, dynamic structure and object structure. Please refer to FIG. 7 , which is a schematic structural diagram of an exemplary tree-structured diagnostic data. During the execution of the vehicle diagnostic function, the diagnostic communication information obtained from the ECU is stored according to the data logical structure; When the diagnostic communication information of the vehicle is obtained according to a certain tree node, the required data can be quickly indexed through the data logic structure.

在车辆诊断功能执行的过程中,可能产生过程数据,请参阅图8,其为一个示例性的链型结构的诊断过程数据的结构示意图,该诊断过程为图2所示的安全气囊匹配功能,对应获取VIN码节点、旧模块数据获取节点、模块数据写入节点、故障码读取节点和清码节点将产生的过程数据为VIN码、用于读取模块数据的报文、用于写入模块数据的报文、用于读故障码的报文和用于清除故障码的报文,前述流程框架节点对接的诊断数据接口将前述过程数据通过链型结构进行存储。During the execution of the vehicle diagnostic function, process data may be generated. Please refer to FIG. 8 , which is a schematic structural diagram of the diagnostic process data of an exemplary chain structure. The diagnostic process is the airbag matching function shown in FIG. 2 . Corresponding to the VIN code acquisition node, the old module data acquisition node, the module data writing node, the fault code reading node and the code clearing node, the process data that will be generated is the VIN code, the message used for reading the module data, and the data used for writing. Messages of module data, messages for reading fault codes, and messages for clearing fault codes, and the diagnostic data interface connected to the aforementioned process framework node stores the aforementioned process data through a chain structure.

数据存储模板用于规范诊断数据的存储方式,流程框架节点或交互框架节点可根据与其对接的诊断数据接口所关联的数据存储模板对诊断数据依据对应的存储方式进行存储。数据存储模板的类型包括但不限于数据库存储模板、文件存储模板、内存模板和云存储模板等,其中数据库存储模板是针对数据库如mysql、MongoDB、Oracle、SQL Server、HSQL、SQLite、redis等的存储行为模板,包括打开连接行为,用于流程框架节点或交互框架节点与数据库建立连接;关闭连接行为,用于关闭流程框架节点或交互框架节点与数据库的连接;查询行为,用于流程框架节点或交互框架节点查询数据库存储的诊断数据;删除行为,用于流程框架节点或交互框架节点删除数据库存储的诊断数据;增加行为,用于流程框架节点或交互框架节点插入诊断数据到数据库。文件存储模板是针对存储文件如文本文件、二进制文件等的存储行为模板,包括打开行为,用于流程框架节点或交互框架节点打开目标文件;关闭行为,用于流程框架节点或交互框架节点关闭已经打开文件;读行为,用于流程框架节点或交互框架节点读取文件数据;写行为,用于流程框架节点或交互框架节点写入数据到目标文件。内存模板是内存如诊断设备内存、虚拟内存、共享内存等的存储行为模板,包括加载行为,用于流程框架节点或交互框架节点加载诊断数据到内存,即从持久化到内存;卸载行为,用于流程框架节点或交互框架节点卸载内存中的诊断数据,即从内存到持久化。云存储模板是云端存储空间的存储行为模板,包括读行为,用于流程框架节点或交互框架节点读取云存储空间的诊断数据;写行为,用于流程框架节点或交互框架节点写入诊断数据到云存储空间;缓存行为,用于流程框架节点或交互框架节点将云存储空间的诊断数据缓存到本地存储。The data storage template is used to standardize the storage mode of the diagnostic data. The process framework node or the interaction framework node can store the diagnostic data according to the corresponding storage mode according to the data storage template associated with the diagnostic data interface connected to it. The types of data storage templates include but are not limited to database storage templates, file storage templates, memory templates, and cloud storage templates, among which database storage templates are for databases such as mysql, MongoDB, Oracle, SQL Server, HSQL, SQLite, redis, etc. Behavior templates, including open connection behavior, which is used to establish a connection between the process frame node or interaction frame node and the database; close connection behavior, which is used to close the connection between the process frame node or interaction frame node and the database; query behavior, which is used for the process frame node or The interactive framework node queries the diagnostic data stored in the database; the delete behavior is used for the process framework node or interactive framework node to delete the diagnostic data stored in the database; the add behavior is used for the process framework node or interactive framework node to insert the diagnostic data into the database. The file storage template is a storage behavior template for storing files such as text files, binary files, etc., including the opening behavior, which is used for the process frame node or interaction frame node to open the target file; the closing behavior, which is used for the process frame node or interaction frame node to close the target file. Open file; read behavior, used for process framework node or interactive framework node to read file data; write behavior, used for process framework node or interactive framework node to write data to target file. Memory templates are storage behavior templates of memory such as diagnostic device memory, virtual memory, shared memory, etc., including loading behaviors, which are used by process framework nodes or interactive framework nodes to load diagnostic data into memory, that is, from persistence to memory; unload behavior, use Unload diagnostic data in memory from process framework nodes or interaction framework nodes, that is, from memory to persistence. Cloud storage template is the storage behavior template of cloud storage space, including read behavior, which is used for process framework node or interactive framework node to read diagnostic data of cloud storage space; write behavior, used for process framework node or interactive framework node to write diagnostic data To cloud storage space; caching behavior, used for process framework nodes or interaction framework nodes to cache diagnostic data of cloud storage space to local storage.

数据访问模板用于规范诊断数据的访问方式,流程框架节点或交互框架节点可根据与其对接的诊断数据接口所关联的数据访问模板对诊断数据依据对应的访问方式进行访问。数据访问模板的类型包括但不限于随机访问模板、顺序访问模板、块访问模板和远程访问模板等,其中随机访问模板是针对随机访问的访问行为模板,包括位置设置行为,用于流程框架节点或交互框架节点设置从某个随机位置开始访问诊断数据;随机读行为,用于流程框架节点或交互框架节点从设置当前位置行为中所设置的位置开始读取诊断数据;随机写行为,用于流程框架节点或交互框架节点从设置当前位置行为中所设置的位置开始写入诊断数据。顺序访问模板是针对依据设定顺序访问的访问行为模板,包括按单元访问行为,用于流程框架节点或交互框架节点逐单元访问数据,所述单元可以是行、段、块等单位;顺序读行为,用于流程框架节点或交互框架节点逐单元读取所有诊断数据;顺序写行为,用于流程框架节点或交互框架节点逐单元写入所有诊断数据。块访问模板是针对块访问的访问行为模板,包括设置块参数行为,用于设置块属性如大小、位置、索引等;读取块行为,用于读取块数据;增加块行为,用于增加块数据;删除块行为,用于删除块数据。远程访问模板是针对远程访问的访问行为模板,包括缓存行为,用于缓存远程数据到本地;本地清除行为,用于清除本地缓存;远程读行为,用于直接读取远程数据;远程写行为,用于写入数据到远程;远程删除行为,用于删除远程数据。The data access template is used to standardize the access mode of the diagnostic data, and the process framework node or the interaction framework node can access the diagnostic data according to the corresponding access mode according to the data access template associated with the connected diagnostic data interface. Types of data access templates include, but are not limited to, random access templates, sequential access templates, block access templates, and remote access templates, etc., where random access templates are access behavior templates for random access, including location setting behavior, used for process framework nodes or The interactive frame node is set to access the diagnostic data from a random position; the random read behavior is used for the process frame node or the interactive frame node starts to read the diagnostic data from the position set in the set current position behavior; the random write behavior is used for the process A frame node or interactive frame node writes diagnostic data starting at the position set in the Set Current Position behavior. Sequential access template is an access behavior template for accessing according to the set order, including access behavior by unit, which is used for process framework nodes or interaction framework nodes to access data unit by unit, and the units can be lines, segments, blocks and other units; sequential read Behavior, used for process framework node or interaction framework node to read all diagnostic data cell by cell; sequential write behavior, used for process framework node or interaction framework node to write all diagnostic data cell by cell. Block access template is an access behavior template for block access, including setting block parameter behavior, which is used to set block attributes such as size, position, index, etc.; read block behavior, which is used to read block data; increase block behavior, which is used to increase Block data; delete block behavior, used to delete block data. The remote access template is an access behavior template for remote access, including cache behavior, used to cache remote data to the local; local clear behavior, used to clear the local cache; remote read behavior, used to directly read remote data; remote write behavior, Used to write data to remote; remote delete behavior, used to delete remote data.

数据使用模板用于规范诊断数据的处理方式,流程框架节点或交互框架节点可根据与其对接的诊断数据接口所关联的数据使用模板对诊断数据依据对应的处理方式进行处理。数据使用模板可以是上述数据结构模板、数据存储模板和数据访问模板的任意组合,在一些实施例中,数据使用模板的类型包括但不限于配置类使用模板、菜单类使用模板、流程类使用模板、自定义类使用模板等,其中配置类使用模板是针对文件存储的块访问的处理行为模板,包括指定配置行为,用于设置、加载配置文件;获取配置值行为,用于获取配置值,包括不局限于块、段、行、健值对等;保存配置行为,用于保存配置值。菜单类使用模板是针对内存存储的块访问的处理行为模板,包括加载菜单行为,用于加载菜单数据到内存;进入下一层菜单行为,用于进入下一层菜单或者执行菜单功能;返回上一层菜单行为,用于返回上一层菜单或者退出菜单。流程类使用模板是针对数据库存储及文件存储的块访问及随机访问,包括流程控制行为,用于通过数据库存储模版进行存储和块访问模板进行访问,可对树形结构的诊断数据进行操作;流程内部业务逻辑行为,用于通过文件存储模板进行存储和随机访问模板进行反问,可实现例如文本查询、数值计算等;输入输出交互行为,用于通过内存模板进行存储和块访问模板进行访问,以及通过云存储模板进行存储和远程访问模板进行访问。The data usage template is used to standardize the processing method of the diagnostic data. The process framework node or the interaction framework node can process the diagnostic data according to the corresponding processing method according to the data usage template associated with the connected diagnostic data interface. The data usage template can be any combination of the above data structure templates, data storage templates and data access templates. In some embodiments, the types of data usage templates include but are not limited to configuration class usage templates, menu class usage templates, and process class usage templates. , custom class usage template, etc. The configuration class usage template is a processing behavior template for block access to file storage, including specifying configuration behaviors for setting and loading configuration files; getting configuration value behaviors for obtaining configuration values, including Not limited to blocks, segments, lines, key value pairs, etc.; save configuration behavior, used to save configuration values. The menu class usage template is a processing behavior template for block access stored in memory, including loading menu behavior, which is used to load menu data into memory; entering the next level of menu behavior, which is used to enter the next level of menu or execute menu functions; return to previous One-level menu behavior, used to return to the previous menu or exit the menu. The process class usage template is for block access and random access for database storage and file storage, including process control behavior, which is used for storage and block access template access through database storage templates, and can operate on tree-structured diagnostic data; processes Internal business logic behavior, used for storage through file storage template and random access template for rhetorical inquiry, which can realize text query, numerical calculation, etc.; input and output interaction behavior, used for storage through memory template and block access template for access, and Storage via cloud storage templates and remote access templates for access.

在步骤S36中,诊断数据接口与诊断数据模板关联,诊断数据接口所对接的流程框架节点或交互框架节点可根据对应的诊断数据接口所关联的诊断数据模板对诊断数据进行相应的存储、访问及处理。In step S36, the diagnostic data interface is associated with the diagnostic data template, and the process framework node or interaction framework node to which the diagnostic data interface is connected can store, access and store the diagnostic data accordingly according to the diagnostic data template associated with the corresponding diagnostic data interface. deal with.

实施例4Example 4

基于上述实施例1,本申请还提供一种车辆诊断方法,请参阅图9,其为该车辆故障诊断方法的流程示意图,该方法包括步骤:Based on the above Embodiment 1, the present application also provides a vehicle diagnosis method. Please refer to FIG. 9 , which is a schematic flowchart of the vehicle fault diagnosis method. The method includes the steps:

S41:获取诊断流程框架,触发诊断流程框架的流程框架节点;S41: Obtain the diagnosis process frame, and trigger the process frame node of the diagnosis process frame;

S42:获取被触发的流程框架节点所关联的流程组件,并执行该流程组件。S42: Acquire the process component associated with the triggered process framework node, and execute the process component.

实施例5Example 5

基于上述实施例2,本申请还提供一种车辆诊断方法,请参阅图10,其为该车辆故障诊断方法的流程示意图,该方法包括步骤:Based on the above-mentioned Embodiment 2, the present application further provides a vehicle diagnosis method. Please refer to FIG. 10 , which is a schematic flowchart of the vehicle fault diagnosis method. The method includes the steps:

S51:获取诊断流程框架和诊断交互框架,触发诊断流程框架的流程框架节点和/或触发诊断交互框架的交互框架节点;S51: Acquire a diagnostic process framework and a diagnostic interaction framework, trigger a process framework node of the diagnostic process framework and/or trigger an interaction framework node of the diagnostic interaction framework;

S52:获取被触发的流程框架节点所关联的流程组件,并执行该流程组件;获取被触发的交互框架节点所关联的交互组件,并执行该交互组件。S52: Acquire the process component associated with the triggered process framework node, and execute the process component; acquire the interaction component associated with the triggered interaction framework node, and execute the interaction component.

实施例6Example 6

基于上述实施例3,本申请还提供一种车辆诊断方法,请参阅图11,其为该车辆故障诊断方法的流程示意图,该方法包括步骤:Based on the above-mentioned Embodiment 3, the present application also provides a vehicle diagnosis method. Please refer to FIG. 11 , which is a schematic flowchart of the vehicle fault diagnosis method. The method includes the steps:

S61:获取诊断流程框架、诊断交互框架和诊断数据接口,触发诊断流程框架的流程框架节点和/或触发诊断交互框架的交互框架节点;S61: Obtain a diagnostic process framework, a diagnostic interaction framework, and a diagnostic data interface, and trigger a process framework node of the diagnostic process framework and/or an interaction framework node that triggers the diagnostic interaction framework;

S62:获取被触发的流程框架节点所关联的流程组件,并执行该流程组件;获取被触发的交互框架节点所关联的交互组件,并执行该交互组件;获取被流程框架节点或交互框架节点触发的诊断数据接口所关联的诊断数据模板,并执行该诊断数据模板。S62: Acquire the process component associated with the triggered process framework node, and execute the process component; acquire the interaction component associated with the triggered interaction framework node, and execute the interaction component; acquire the triggered by the process framework node or the interaction framework node The diagnostic data template associated with the diagnostic data interface, and execute the diagnostic data template.

基于同一发明构思,本申请还提供一种车辆诊断功能的构建装置,请参阅图12,其为该车辆诊断功能的构建装置的结构示意图,该装置包括组件构建模块10、流程框架节点构建模块20和诊断流程框架构建模块30,其中,组件构建模块用于构建流程组件;流程框架节点构建模块用于构建至少一流程框架节点,针对每一流程框架节点,设有至少一输入/输出端,并关联至少一流程组件,对流程框架节点配置所关联的流程组件的诊断参数;诊断流程框架构建模块用于对接所述流程框架节点的输入/输出端,得到车辆诊断功能的诊断流程框架。Based on the same inventive concept, the present application also provides an apparatus for constructing a vehicle diagnostic function. Please refer to FIG. 12 , which is a schematic structural diagram of the apparatus for constructing a vehicle diagnostic function. The apparatus includes a component construction module 10 and a process framework node construction module 20 and a diagnostic process frame building module 30, wherein the component building module is used to build process components; the process frame node building module is used to construct at least one process frame node, and for each process frame node, there is at least one input/output terminal, and At least one process component is associated, and the diagnostic parameters of the associated process component are configured for the process framework node; the diagnostic process framework building module is used to connect the input/output end of the process framework node to obtain the diagnostic process framework of the vehicle diagnostic function.

优选的,组件构建模块还用于构建交互组件。该装置还包括交互框架节点构建模块40和诊断交互框架构建模块50,其中,交互框架节点构建模块用于构建至少一交互框架节点,每一交互框架节点关联至少一交互组件,对交互框架节点配置其所关联的交互组件的交互参数;诊断交互框架构建模块用于将每一所述交互框架节点与至少一流程框架节点对接,得到车辆诊断功能的诊断交互框架。Preferably, the component building module is also used to build interactive components. The device further includes an interactive framework node building module 40 and a diagnostic interactive framework building module 50, wherein the interactive framework node building module is used to construct at least one interactive framework node, each interactive framework node is associated with at least one interactive component, and configures the interactive framework node The interaction parameters of its associated interaction components; the diagnosis interaction framework building module is used to connect each of the interaction framework nodes with at least one process framework node to obtain the diagnosis interaction framework of the vehicle diagnosis function.

优选的,组件构建模块还用于构建诊断数据模板60,该装置还包括诊断数据接口构建模块,用于构建至少一诊断数据接口,每一诊断数据接口关联至少一诊断数据模板,将诊断数据接口与至少一流程框架节点或交互框架节点对接。Preferably, the component building module is also used to build a diagnostic data template 60, the device further includes a diagnostic data interface building module, used to build at least one diagnostic data interface, each diagnostic data interface is associated with at least one diagnostic data template, and the diagnostic data interface Connect with at least one process framework node or interaction framework node.

对于装置实施例而言,由于其基本对应于方法实施例,所以相关细节之处请参见方法实施例的说明。As for the apparatus embodiment, since it basically corresponds to the method embodiment, reference may be made to the description of the method embodiment for relevant details.

基于同一发明构思,本发明还提供一种电子设备,所述电子设备可以是服务器、台式计算设备或移动计算设备(例如,膝上型计算设备、手持计算设备、平板电脑、上网本等)等终端设备。该电子设备包括一个或多个处理器和存储器,其中处理器用于执行程序实现方法实施例的车辆诊断方法;存储器用于存储可由所述处理器执行的计算机程序。Based on the same inventive concept, the present invention also provides an electronic device, which can be a terminal such as a server, a desktop computing device, or a mobile computing device (for example, a laptop computing device, a handheld computing device, a tablet computer, a netbook, etc.) equipment. The electronic device includes one or more processors and a memory, wherein the processor is used for executing a program to implement the vehicle diagnosis method of the method embodiment; the memory is used for storing a computer program executable by the processor.

基于同一发明构思,本发明还提供一种计算机可读存储介质,与前述车辆诊断方法的实施例相对应,所述计算机可读存储介质其上存储有计算机程序,该程序被处理器执行时实现上述任一实施例所记载的车辆诊断方法的步骤。Based on the same inventive concept, the present invention also provides a computer-readable storage medium, corresponding to the foregoing embodiments of the vehicle diagnosis method, the computer-readable storage medium stores a computer program thereon, and the program is implemented when the program is executed by a processor Steps of the vehicle diagnosis method described in any of the above embodiments.

本发明的车辆诊断功能的构建方法将诊断流程程序、交互程序及诊断数据解耦,使车辆诊断功能的诊断流程程序、交互程序和诊断数据的耦合度低,开发人员在进行车辆诊断功能更新或维护时可以仅对车辆诊断功能中需要更新或维护的组件进行处理,而无需关注车辆诊断功能的其他部分;同时在车辆诊断功能出现程序错误时,能够根据程序错误所在组件快速定位问题,而无需逐行检阅车辆诊断功能的代码。The construction method of the vehicle diagnostic function of the present invention decouples the diagnostic process program, the interactive program and the diagnostic data, so that the coupling degree of the diagnostic process program, the interactive program and the diagnostic data of the vehicle diagnostic function is low, and the developer is updating the vehicle diagnostic function or During maintenance, only the components that need to be updated or maintained in the vehicle diagnosis function can be processed without paying attention to other parts of the vehicle diagnosis function; at the same time, when a program error occurs in the vehicle diagnosis function, the problem can be quickly located according to the component where the program error is located, without the need for Review the code of the vehicle diagnostic function line by line.

此外,本申请的方法可以应用于车辆诊断功能的定制开发,针对定制功能,将所需组件进行组装,将组装得到的框架从服务器直接推送至终端,终端在运行该框架时,从服务器中获取框架节点所关联的组件,即可实现车辆诊断功能。这不仅使得车辆诊断功能的定制开发可快速完成,在出现程序错误时也只需在远程对问题所在的组件进行修复即可。In addition, the method of the present application can be applied to the customized development of the vehicle diagnostic function. For the customized function, the required components are assembled, the assembled framework is directly pushed from the server to the terminal, and the terminal obtains the framework from the server when running the framework. The component associated with the framework node can implement the vehicle diagnosis function. Not only does this allow for quick custom development of vehicle diagnostics, but in the event of a programming error, it is only necessary to fix the component in question remotely.

综上,本申请的方法相对于现有技术提高了研发和维护效率,且维护成本低。In conclusion, compared with the prior art, the method of the present application improves the efficiency of research and development and maintenance, and the maintenance cost is low.

本申请可采用在一个或多个其中包含有程序代码的存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。计算机可用存储介质包括永久性和非永久性、可移动和非可移动媒体,可以由任何方法或技术来实现信息存储。信息可以是计算机可读指令、数据结构、程序的模块或其他数据。计算机的存储介质的例子包括但不限于:相变内存(PRAM)、静态随机存取存储器(SRAM)、动态随机存取存储器(DRAM)、其他类型的随机存取存储器(RAM)、只读存储器(ROM)、电可擦除可编程只读存储器(EEPROM)、快闪记忆体或其他内存技术、只读光盘只读存储器(CD-ROM)、数字多功能光盘(DVD)或其他光学存储、磁盒式磁带,磁带磁磁盘存储或其他磁性存储设备或任何其他非传输介质,可用于存储可以被计算设备访问的信息。The present application may take the form of a computer program product embodied on one or more storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) having program code embodied therein. Computer-usable storage media includes permanent and non-permanent, removable and non-removable media, and storage of information can be accomplished by any method or technology. Information may be computer readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase-change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read only memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), Flash Memory or other memory technology, Compact Disc Read Only Memory (CD-ROM), Digital Versatile Disc (DVD) or other optical storage, Magnetic tape cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission medium that can be used to store information that can be accessed by a computing device.

以上所述实施例仅表达了本发明的几种实施方式,其描述较为具体和详细,但并不能因此而理解为对发明专利范围的限制。应当指出的是,对于本领域的普通技术人员来说,在不脱离本发明构思的前提下,还可以做出若干变形和改进,则本发明也意图包含这些改动和变形。The above-mentioned embodiments only represent several embodiments of the present invention, and the descriptions thereof are specific and detailed, but should not be construed as a limitation on the scope of the invention patent. It should be pointed out that, for those skilled in the art, some modifications and improvements can be made without departing from the concept of the present invention, and the present invention is also intended to include these modifications and modifications.

Claims (10)

1.一种车辆诊断功能的构建方法,其特征在于,包括步骤:1. a construction method of vehicle diagnostic function, is characterized in that, comprises the steps: 构建流程组件,所述流程组件预设有所述车辆诊断功能的子诊断程序;constructing a process component, the process component is preset with a sub-diagnostic program of the vehicle diagnostic function; 构建至少一流程框架节点,针对每一所述流程框架节点,设有至少一输入/输出端,并关联至少一所述流程组件,对所述流程框架节点配置其所关联的流程组件的诊断参数,所述诊断参数为所述子诊断程序的参数;Build at least one process framework node, for each of the process framework nodes, there is at least one input/output terminal, and at least one of the process components is associated, and the diagnostic parameters of the associated process components are configured for the process framework node. , the diagnostic parameter is the parameter of the sub-diagnostic program; 对接所述流程框架节点的输入/输出端,得到车辆诊断功能的诊断流程框架。The input/output end of the process framework node is connected to obtain the diagnostic process framework of the vehicle diagnostic function. 2.根据权利要求1所述的方法,其特征在于,还包括步骤:2. method according to claim 1, is characterized in that, also comprises the step: 构建交互组件,所述交互组件预设有车辆诊断功能的用户图形界面的数据展示程序或人机交互程序;constructing an interactive component, the interactive component is preset with a data display program or a human-computer interaction program of the user graphical interface of the vehicle diagnostic function; 构建至少一交互框架节点,每一所述交互框架节点关联至少一交互组件,对所述交互框架节点配置其所关联的交互组件的交互参数,所述交互参数为所述数据展示程序或人机交互程序的参数;Build at least one interactive framework node, each of the interactive framework nodes is associated with at least one interactive component, configure the interactive framework node with interactive parameters of the associated interactive component, the interactive parameters are the data display program or the human-computer parameters of the interactive program; 将每一所述交互框架节点与至少一流程框架节点对接,得到车辆诊断功能的诊断交互框架。Each of the interaction framework nodes is connected with at least one process framework node to obtain a diagnosis interaction framework of the vehicle diagnosis function. 3.根据权利要求2所述的方法,其特征在于,还包括步骤:3. method according to claim 2, is characterized in that, also comprises the step: 构建诊断数据模板,所述诊断数据模板包括数据结构模板,和/或数据存储模板,和/或数据访问模板,和/或数据使用模板,其中,所述数据结构模板用于规范诊断数据的逻辑结构;所述数据存储模板用于规范诊断数据的存储方式;所述数据访问模板用于规范诊断数据的访问方式;所述数据使用模板用于规范诊断数据的处理方式。Constructing a diagnostic data template, the diagnostic data template includes a data structure template, and/or a data storage template, and/or a data access template, and/or a data usage template, wherein the data structure template is used to standardize the logic of the diagnostic data structure; the data storage template is used to standardize the storage mode of the diagnostic data; the data access template is used to standardize the access mode of the diagnostic data; the data usage template is used to standardize the processing mode of the diagnostic data. 构建至少一诊断数据接口,每一诊断数据接口关联至少一所述诊断数据模板,将所述诊断数据接口与至少一所述流程框架节点或所述交互框架节点对接。At least one diagnostic data interface is constructed, each diagnostic data interface is associated with at least one of the diagnostic data templates, and the diagnostic data interface is connected with at least one of the process framework node or the interaction framework node. 4.一种车辆故障诊断功能的构建装置,其特征在于,包括:4. A device for constructing a vehicle fault diagnosis function, comprising: 组件构建模块,用于构建流程组件,所述流程组件预设有所述车辆诊断功能的子诊断程序;a component building module for building a process component, the process component is preset with a sub-diagnostic program of the vehicle diagnostic function; 流程框架节点构建模块,用于构建至少一流程框架节点,针对每一所述流程框架节点,设有至少一输入/输出端,并关联至少一所述流程组件,对所述流程框架节点配置其所关联的流程组件的诊断参数,所述诊断参数为所述子诊断程序的参数;The process framework node building module is used to construct at least one process framework node. For each of the process framework nodes, at least one input/output terminal is provided, and at least one of the process components is associated, and the process framework node is configured with its Diagnostic parameters of the associated process components, the diagnostic parameters are parameters of the sub-diagnostic program; 诊断流程框架构建模块,用于对接所述流程框架节点的输入/输出端,得到车辆诊断功能的诊断流程框架。The diagnostic process framework building module is used to connect the input/output terminals of the process framework nodes to obtain the diagnostic process framework of the vehicle diagnostic function. 5.根据权利要求4所述的装置,其特征在于:5. The device according to claim 4, wherein: 组件构建模块还用于构建交互组件,所述交互组件预设有车辆诊断功能的用户图形界面的数据展示程序或人机交互程序;The component building module is also used to construct an interactive component, the interactive component is preset with a data display program or a human-computer interaction program of the user graphical interface of the vehicle diagnostic function; 还包括:Also includes: 交互框架节点构建模块,用于构建至少一交互框架节点,每一所述交互框架节点关联至少一交互组件,对所述交互框架节点配置其所关联的交互组件的交互参数,所述交互参数为所述数据展示程序或人机交互程序的参数;An interaction framework node building module is used to construct at least one interaction framework node, each of the interaction framework nodes is associated with at least one interaction component, and the interaction framework node is configured with the interaction parameters of the associated interaction component, and the interaction parameters are Parameters of the data presentation program or human-computer interaction program; 诊断交互框架构建模块,用于将每一所述交互框架节点与至少一流程框架节点对接,得到车辆诊断功能的诊断交互框架。The diagnostic interaction framework building module is used to connect each of the interaction framework nodes with at least one process framework node to obtain a diagnostic interaction framework of the vehicle diagnosis function. 6.根据权利要求5所述的装置,其特征在于:6. The device according to claim 5, wherein: 组件构建模块还用于构建诊断数据模板,所述诊断数据模板包括数据结构模板,和/或数据存储模板,和/或数据访问模板,和/或数据使用模板,其中,所述数据结构模板用于规范诊断数据的逻辑结构;所述数据存储模板用于规范诊断数据的存储方式;所述数据访问模板用于规范诊断数据的访问方式;所述数据使用模板用于规范诊断数据的处理方式。The component building module is also used to construct a diagnostic data template, which includes a data structure template, and/or a data storage template, and/or a data access template, and/or a data usage template, wherein the data structure template uses The data storage template is used to standardize the storage method of the diagnosis data; the data access template is used to standardize the access method of the diagnosis data; the data usage template is used to standardize the processing method of the diagnosis data. 诊断数据接口构建模块,用于构建至少一诊断数据接口,每一诊断数据接口关联至少一所述诊断数据模板,将所述诊断数据接口与至少一所述流程框架节点或所述交互框架节点对接。The diagnostic data interface building module is used to construct at least one diagnostic data interface, each diagnostic data interface is associated with at least one of the diagnostic data templates, and the diagnostic data interface is connected with at least one of the process framework nodes or the interaction framework nodes . 7.一种车辆诊断方法,其特征在于,包括步骤:7. A vehicle diagnostic method, comprising the steps of: 获取诊断流程框架,触发所述诊断流程框架的流程框架节点;Obtain the diagnostic process framework, and trigger the process framework node of the diagnostic process framework; 获取被触发的所述流程框架节点所关联的流程组件,并执行该流程组件;其中,所述诊断流程框架和所述流程组件通过权利要求1-3中任一项所述的方法构建。Acquire the process component associated with the triggered process framework node, and execute the process component; wherein the diagnosis process framework and the process component are constructed by the method according to any one of claims 1-3. 8.根据权利要求7所述的方法,其特征在于,还包括步骤:8. The method of claim 7, further comprising the steps of: 获取诊断交互框架,触发所述诊断流程框架的流程框架节点和/或触发所述诊断交互框架的交互框架节点;Obtaining a diagnostic interaction framework, triggering a process framework node of the diagnostic process framework and/or triggering an interaction framework node of the diagnostic interaction framework; 获取被触发的所述交互框架节点所关联的交互组件,并执行该交互组件;其中,所述诊断交互框架和所述交互组件通过权利要求2-3中任一项所述的方法构建。Acquire the interaction component associated with the triggered interaction framework node, and execute the interaction component; wherein the diagnostic interaction framework and the interaction component are constructed by the method of any one of claims 2-3. 9.根据权利要求8所述的方法,其特征在于,还包括步骤:9. The method of claim 8, further comprising the steps of: 获取诊断数据接口;Get diagnostic data interface; 获取被所述流程框架节点或所述交互框架节点触发的所述诊断数据接口所关联的诊断数据模板,并执行该诊断数据模板;其中,所述诊断数据接口和所述诊断数据模板通过权利要求3所述的方法构建。Acquire the diagnostic data template associated with the diagnostic data interface triggered by the process framework node or the interaction framework node, and execute the diagnostic data template; wherein the diagnostic data interface and the diagnostic data template pass the claims 3 was constructed by the method described. 10.一种电子设备,其特征在于,包括:10. An electronic device, comprising: 处理器;processor; 存储器,用于存储由所述处理器执行的计算机程序;a memory for storing a computer program executed by the processor; 其中,所述处理器执行所述计算机程序时实现权利要求7-9中任一项所述方法的步骤。Wherein, when the processor executes the computer program, the steps of the method of any one of claims 7-9 are implemented.
CN202210942109.1A 2022-08-08 2022-08-08 Construction method and device of vehicle diagnostic function, and vehicle diagnostic method and device Pending CN115167373A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210942109.1A CN115167373A (en) 2022-08-08 2022-08-08 Construction method and device of vehicle diagnostic function, and vehicle diagnostic method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210942109.1A CN115167373A (en) 2022-08-08 2022-08-08 Construction method and device of vehicle diagnostic function, and vehicle diagnostic method and device

Publications (1)

Publication Number Publication Date
CN115167373A true CN115167373A (en) 2022-10-11

Family

ID=83480215

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210942109.1A Pending CN115167373A (en) 2022-08-08 2022-08-08 Construction method and device of vehicle diagnostic function, and vehicle diagnostic method and device

Country Status (1)

Country Link
CN (1) CN115167373A (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6199018B1 (en) * 1998-03-04 2001-03-06 Emerson Electric Co. Distributed diagnostic system
US20020193925A1 (en) * 2001-06-15 2002-12-19 Travis Funkhouser Auto diagnostic method and device
CN108712502A (en) * 2018-05-29 2018-10-26 深圳市元征科技股份有限公司 Vehicle diagnosis method and connector, electronic equipment, storage medium
CN109791635A (en) * 2016-10-04 2019-05-21 实耐宝公司 Method and system for updating diagnosis with repairing information
CN110703727A (en) * 2019-09-30 2020-01-17 深圳市元征科技股份有限公司 Vehicle diagnosis method and device, electronic equipment and vehicle diagnosis equipment
CN111752830A (en) * 2020-06-22 2020-10-09 中国第一汽车股份有限公司 Automobile diagnosis system, and updating method, device and equipment of automobile diagnosis system
CN113721585A (en) * 2021-08-16 2021-11-30 深圳市元征科技股份有限公司 Visual vehicle diagnosis method, device, equipment and storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6199018B1 (en) * 1998-03-04 2001-03-06 Emerson Electric Co. Distributed diagnostic system
US20020193925A1 (en) * 2001-06-15 2002-12-19 Travis Funkhouser Auto diagnostic method and device
CN109791635A (en) * 2016-10-04 2019-05-21 实耐宝公司 Method and system for updating diagnosis with repairing information
CN108712502A (en) * 2018-05-29 2018-10-26 深圳市元征科技股份有限公司 Vehicle diagnosis method and connector, electronic equipment, storage medium
CN110703727A (en) * 2019-09-30 2020-01-17 深圳市元征科技股份有限公司 Vehicle diagnosis method and device, electronic equipment and vehicle diagnosis equipment
CN111752830A (en) * 2020-06-22 2020-10-09 中国第一汽车股份有限公司 Automobile diagnosis system, and updating method, device and equipment of automobile diagnosis system
CN113721585A (en) * 2021-08-16 2021-11-30 深圳市元征科技股份有限公司 Visual vehicle diagnosis method, device, equipment and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
司景萍;马继昌;牛家骅;王二毛;: "基于模糊神经网络的智能故障诊断专家系统", 振动与冲击, no. 04, 28 February 2017 (2017-02-28) *

Similar Documents

Publication Publication Date Title
CN108170611B (en) Automated testing method and device, storage medium, electronic equipment
US20240037020A1 (en) System and Method for Automated Software Testing
US8584087B2 (en) Application configuration deployment monitor
US11144434B2 (en) Refining coverage analyses using context information
CN103823680B (en) Development method and device of game business logic engine
US20190391964A1 (en) Specifying and applying rules to data
US8850407B2 (en) Test script generation
US10846206B2 (en) Adaptive software testing
US11550705B2 (en) System and method for performing end-to-end simulation and testing of an IOT application
KR20210055934A (en) Self-learning system for developing machine learning models
WO2024119471A1 (en) Algorithm testing method, algorithm testing platform, and computer readable storage medium
CN113495828A (en) Log display method and device and electronic equipment
CN112783788B (en) Test system, method, electronic device and storage medium
CN115167373A (en) Construction method and device of vehicle diagnostic function, and vehicle diagnostic method and device
CN112035513A (en) SQL statement performance optimization method, device, terminal and storage medium
US20220091824A1 (en) Scope-based visual-programming mechanism
CN114356769A (en) Software learning method, device, equipment and storage medium
KR102694524B1 (en) Automatic testing device for providing user interface and operating method thereof
US20230236958A1 (en) Video game testing and automation framework
CN119739386A (en) Service flow configuration method, operation method and related device
CN119512834A (en) Electronic equipment performance optimization method, device and readable storage medium
WO2024196977A1 (en) Video game testing and automation framework
CN116737223A (en) Business process editing system and method of equipment component and electronic equipment
CN114721954A (en) Response engine operation management method and device, electronic equipment and readable medium
CN117742834A (en) A low-code platform page component configuration method and device

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