Diagnostic response simulation method, system, equipment, medium and product

By receiving and sending pre-created diagnostic simulation response messages, it solves the problem of low diagnostic tool development efficiency when there is no ECU sample, and realizes automated testing and efficient development in the absence of a real environment.

CN118605477APending Publication Date: 2024-09-06JINGWEI HIRAIN (TIANJIN) RES&DEV CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410881369.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-02
Publication Date
2024-09-06

AI Technical Summary

Technical Problem

In vehicle diagnosis scenarios, when there is a lack of electronic control unit (ECU) samples, the development efficiency of diagnostic tools is affected and effective testing cannot be performed.

Method used

By receiving the diagnostic request message sent by the diagnostic instrument, determining the pre-created diagnostic simulation response, and sending the corresponding response message to the diagnostic instrument, simulation testing can be performed without ECU samples, reducing dependence on the real environment.

Benefits of technology

It realizes automated testing of diagnostic tools without ECU samples, shortens the development cycle of diagnostic tools, and improves development efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118605477A
    Figure CN118605477A
Patent Text Reader

Abstract

The invention discloses a diagnostic response simulation method, system and device, a medium and a product, and relates to the technical field of vehicle simulation. The diagnostic response simulation method applied to the diagnostic response simulation system comprises the following steps: receiving a diagnostic request message sent by a diagnostic instrument for a target service of a target electronic control unit; determining a diagnosis simulation response corresponding to the diagnosis request message, the diagnosis simulation response being a pre-created diagnosis response corresponding to a diagnosis request corresponding to the diagnosis tool diagnosis target service; and sending a response message corresponding to the diagnosis simulation response to the diagnosis instrument. According to the scheme disclosed by the invention, the development efficiency of the diagnostic tool can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of vehicle simulation technology, and in particular, relates to a diagnostic response simulation method, system, device, medium and product. Background Art

[0002] Against the backdrop of diversified development of vehicle diagnostic scenarios and rapid iteration and upgrading of diagnostic tools, it has become an urgent task to reduce the coupling between diagnostic tools and the real vehicle environment and improve the efficiency of diagnostic tool development.

[0003] In the related art, when testing various diagnostic functions of diagnostic tools, it is usually dependent on electronic control unit (ECU) samples. Without ECU samples, the diagnostic tool cannot be tested, which affects the development efficiency of the diagnostic tool. Summary of the invention

[0004] The embodiments of the present application provide a diagnostic response simulation method, system, device, medium and product, which can improve the development efficiency of diagnostic tools.

[0005] In a first aspect, an embodiment of the present application provides a diagnostic response simulation method, which is applied to a diagnostic response simulation system, and the method includes:

[0006] receiving a diagnostic request message for a target service of a target electronic control unit (ECU) sent by a diagnostic instrument;

[0007] Determine a diagnostic simulation response corresponding to the diagnostic request message, wherein the diagnostic simulation response is a pre-created diagnostic response corresponding to the diagnostic request corresponding to the diagnostic target service of the diagnostic tool;

[0008] Send a response message corresponding to the diagnostic simulation response to the diagnostic instrument.

[0009] In a second aspect, an embodiment of the present application provides a diagnostic response simulation system, including:

[0010] A receiving module, used for receiving a diagnostic request message for a target service of a target ECU sent by a diagnostic instrument;

[0011] A determination module, used to determine a diagnostic simulation response corresponding to the diagnostic request message, wherein the diagnostic simulation response is a pre-created diagnostic response corresponding to the diagnostic request corresponding to the diagnostic target service of the diagnostic tool;

[0012] The sending module is used to send a response message corresponding to the diagnosis simulation response to the diagnostic instrument.

[0013] In a third aspect, an embodiment of the present application provides an electronic device, comprising: a processor and a memory storing computer program instructions; when the processor executes the computer program instructions, the steps of the diagnostic response simulation method provided in the embodiment of the present application are implemented.

[0014] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, on which computer program instructions are stored. When the computer program instructions are executed by a processor, the steps of the diagnostic response simulation method provided in the embodiment of the present application are implemented.

[0015] In a fifth aspect, an embodiment of the present application provides a computer program product, which includes computer program instructions, and when the computer program instructions are executed by a processor, the steps of the diagnostic response simulation method provided in the embodiment of the present application are implemented.

[0016] In the embodiment of the present application, a diagnostic request message for a target service of an ECU is received from a diagnostic instrument; a diagnostic simulation response corresponding to the diagnostic request message is determined, wherein the diagnostic simulation response is a pre-created diagnostic response corresponding to a diagnostic request corresponding to a diagnostic target service of the diagnostic tool; and a response message corresponding to the diagnostic simulation response is sent to the diagnostic instrument. In this way, by simulating the diagnostic response corresponding to the diagnostic request corresponding to the diagnostic target service of the diagnostic tool, various diagnostic functions of the diagnostic tool can be automatically tested without an ECU sample, reducing the dependence of the diagnostic tool development on the real environment, shortening the diagnostic tool development cycle, and improving the diagnostic tool development efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] In order to more clearly illustrate the technical solution of the embodiments of the present application, the following is a brief introduction to the drawings required for use in the embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.

[0018] Figure 1 is a flowchart of a diagnostic response simulation method provided in an embodiment of the present application;

[0019] Figure 2 is a schematic diagram of configuring a diagnostic request and a diagnostic simulation response provided by an embodiment of the present application;

[0020] Figure 3 is a schematic diagram of the structure of the diagnostic response simulation system provided in an embodiment of the present application;

[0021] Figure 4 It is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0022] The features and exemplary embodiments of various aspects of the present application will be described in detail below. In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be understood that the specific embodiments described herein are only intended to explain the present application, rather than to limit the present application. For those skilled in the art, the present application can be implemented without the need for some of these specific details. The following description of the embodiments is only to provide a better understanding of the present application by illustrating the examples of the present application.

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

[0024] The following, in conjunction with the accompanying drawings, describes in detail the diagnostic response simulation method, system, device, medium and product provided in the embodiments of the present application through specific embodiments and their application scenarios.

[0025] The diagnostic response simulation method provided in the embodiment of the present application can be applied to a diagnostic response simulation system.

[0026] Figure 1 FIG. 1 is a flow chart of the diagnostic response simulation method provided in the embodiment of the present application. Figure 1 As shown, the diagnostic response simulation method may include:

[0027] Step 101: receiving a diagnostic request message for a target service of a target ECU sent by a diagnostic instrument;

[0028] In some possible implementations of the embodiments of the present application, the diagnostic response simulation system may establish a communication connection with the diagnostic instrument and monitor the diagnostic request message from the diagnostic instrument in real time.

[0029] Step 102: determining a diagnostic simulation response corresponding to the diagnostic request message, wherein the diagnostic simulation response is a pre-created diagnostic response corresponding to a diagnostic request corresponding to a diagnostic target service of a diagnostic tool;

[0030] In some possible implementations of the embodiments of the present application, there are situations where multiple diagnostic requests correspond to multiple diagnostic simulation responses. Based on this, it is necessary to determine the diagnostic simulation response corresponding to the received diagnostic request message from the multiple diagnostic simulation responses.

[0031] When determining the diagnostic simulation response corresponding to a received diagnostic request message, the received diagnostic request message is first parsed to obtain the diagnostic request corresponding to the received diagnostic request message, and then the diagnostic simulation response corresponding to the parsed diagnostic request is determined based on the correspondence between the diagnostic request and the diagnostic simulation response.

[0032] In some possible implementations of the embodiments of the present application, before step 101, the diagnostic response simulation method provided by the embodiments of the present application may also include: loading an Open Diagnostic Data Exchange (ODX) file; parsing the ODX file to obtain at least one service corresponding to the target ECU; when there is a target service in at least one service, configuring a diagnostic request for the target service and a diagnostic simulation response corresponding to the diagnostic request.

[0033] In some possible implementations of the embodiments of the present application, ODX files are used to describe ECU data related to diagnosis. Vehicle, ECU and tester manufacturers can use the ODX format to describe and exchange diagnostic data. The embodiments of the present application do not elaborate on the process of parsing ODX files. The process of parsing ODX files can refer to the description in the relevant technology. Parsing the ODX file can obtain multiple services corresponding to multiple ECUs, wherein the multiple services corresponding to the multiple ECUs include at least one service corresponding to each ECU in the multiple ECUs, and the multiple ECUs include the target ECU.

[0034] In some possible implementations of the embodiments of the present application, the ODX file may be edited using Extensible Markup Language (XML).

[0035] In some possible implementations of the embodiments of the present application, when multiple ODX files are loaded at the same time, the multiple ODX files can be compressed into one PDX file, and the PDX file is loaded.

[0036] For example, Figure 2 As shown, Figure 2 It is a schematic diagram of configuring a diagnostic request and a diagnostic simulation response provided in an embodiment of the present application.

[0037] exist Figure 2 In the ODX file loading window, users can click the "ODX file loading" control to load the required ODX file. Figure 2In the example, the loaded ODX file is PackageODX.pdx.

[0038] After the PackageODX.pdx file is loaded, it is parsed to obtain multiple services corresponding to multiple ECUs. Figure 2 In the drop-down list box, select the ECU to be simulated. Figure 2 In the example, the selected ECU is ECU-C.

[0039] When the user selects an ECU-C, at least one service corresponding to the ECU-C is displayed. When the user selects a service from the at least one service corresponding to the ECU-C, an interface for configuring the diagnostic request and diagnostic simulation response of the service is displayed. Figure 2 In the example, the selected service is ECU-C-Service2.

[0040] exist Figure 2 In the figure, the configured diagnostic request is a diagnostic request with a request parameter name of PDU and a request parameter value of 22D035, and the configured diagnostic simulation response corresponding to the diagnostic request is a diagnostic simulation affirmative response with a response parameter name of application protocol data unit (Protocol Data Unit, PDU) and a response parameter value of 62D03500000000.

[0041] After configuring the diagnostic request of the service and the diagnostic simulation response corresponding to the diagnostic request, when receiving the diagnostic request message indicating that the request parameter name is PDU and the request parameter value is 22D035, a diagnostic simulation affirmative response is determined with the response parameter name being PDU and the response parameter value being 62D03500000000.

[0042] In some possible implementations of the embodiments of the present application, the parameter value of the parameter name PDU can be obtained by calculating other parameters according to a preset calculation rule. The embodiments of the present application do not limit the calculation rules for calculating the parameter value of PDU, and any available calculation rules can be applied to the embodiments of the present application.

[0043] Exemplarily, the request parameter value of the request parameter SID-RQ is 31, the request parameter value of the request parameter RoutineControlType is 01, and the request parameter value of the request parameter Identifier is 0205. When the request parameter value of the request parameter New Data Object is 000000, the request parameter value of the request parameter PDU is calculated to be 31010205000000; when the request parameter value of the request parameter New Data Object is FFFFFF, the request parameter value of the request parameter PDU is calculated to be 31010205FFFFFF; when the request parameter value of the request parameter New Data Object is AB05DA, the request parameter value of the request parameter PDU is calculated to be 31010205AB05DA.

[0044] In some possible implementations of the embodiments of the present application, the diagnostic response simulation method provided by the embodiments of the present application may also include: when the target service does not exist in at least one service, creating a target service, and configuring a diagnostic request for the target service and a diagnostic simulation response corresponding to the diagnostic request.

[0045] In some possible implementations of the embodiments of the present application, the service required by the user can be created through the "Service Creation" control, for example, the created service is ECU-C-Service22. When the ECU-C-Service22 service is created, the user selects the ECU-C-Service22 service, and an interface for configuring the diagnostic request and diagnostic simulation response of the ECU-C-Service22 service is displayed, and then the diagnostic request of the ECU-C-Service22 service and the diagnostic simulation response corresponding to the diagnostic request are configured.

[0046] In some possible implementations of the embodiments of the present application, different response messages may be replied to each time for the same diagnostic request message. Based on this, a diagnostic request may be configured to correspond to multiple diagnostic simulation responses, and corresponding response logic may be set, wherein the response logic in the embodiments of the present application includes but is not limited to sequential response, random response, etc. Based on this, step 102 may include: determining a diagnostic simulation response corresponding to the diagnostic request message from multiple diagnostic simulation responses according to a preset response logic.

[0047] For example, for a diagnostic request with a request parameter name of PDU and a request parameter value of 22D035, there are three configured diagnostic simulation affirmative responses corresponding to the diagnostic request, and the three diagnostic simulation affirmative responses are respectively a diagnostic simulation affirmative response with a response parameter name of PDU and a response parameter value of 62D03500000000, a diagnostic simulation affirmative response with a response parameter name of PDU and a response parameter value of 31010205000000, and a diagnostic simulation affirmative response with a response parameter name of PDU and a response parameter value of A2035264000000. The configured response logic is a sequential response.

[0048] When the diagnostic request message indicating that the request parameter name is PDU and the request parameter value is 22D035 is received for the first time, a diagnostic simulation affirmative response is determined that the response parameter name is PDU and the response parameter value is 62D03500000000; when the diagnostic request message indicating that the request parameter name is PDU and the request parameter value is 22D035 is received for the second time, a diagnostic simulation affirmative response is determined that the response parameter name is PDU and the response parameter value is 31010205000000; when the diagnostic request message indicating that the request parameter name is PDU and the request parameter value is 22D035 is received for the third time, a diagnostic simulation affirmative response is determined that the response parameter name is PDU and the response parameter value is A2035264000000.

[0049] For example, for a diagnostic request with a request parameter name of PDU and a request parameter value of 22D035, there are three configured diagnostic simulation affirmative responses corresponding to the diagnostic request, and the three diagnostic simulation affirmative responses are respectively a diagnostic simulation affirmative response with a response parameter name of PDU and a response parameter value of 62D03500000000, a diagnostic simulation affirmative response with a response parameter name of PDU and a response parameter value of 31010205000000, and a diagnostic simulation affirmative response with a response parameter name of PDU and a response parameter value of A2035264000000. The configured response logic is a random response.

[0050] After receiving a diagnostic request message indicating that the request parameter name is PDU and the request parameter value is 22D035, a diagnostic simulation affirmative response is randomly selected from the above three diagnostic simulation affirmative responses, for example, a diagnostic simulation affirmative response whose response parameter name is PDU and whose response parameter value is A2035264000000 is randomly selected.

[0051] In the embodiment of the present application, the same diagnostic request message can be responded to according to a preset response logic.

[0052] Step 103: Send a response message corresponding to the diagnosis simulation response to the diagnostic instrument.

[0053] In the embodiment of the present application, a diagnostic request message for a target service of an ECU is received from a diagnostic instrument; a diagnostic simulation response corresponding to the diagnostic request message is determined, wherein the diagnostic simulation response is a pre-created diagnostic response corresponding to a diagnostic request corresponding to a diagnostic target service of the diagnostic tool; and a response message corresponding to the diagnostic simulation response is sent to the diagnostic instrument. In this way, by simulating the diagnostic response corresponding to the diagnostic request corresponding to the diagnostic target service of the diagnostic tool, various diagnostic functions of the diagnostic tool can be automatically tested without an ECU sample, reducing the dependence of the diagnostic tool development on the real environment, shortening the diagnostic tool development cycle, and improving the diagnostic tool development efficiency.

[0054] In some possible implementations of the embodiments of the present application, after determining the diagnostic simulation response corresponding to the diagnostic request message, a response message corresponding to the diagnostic simulation response may be immediately sent to the diagnostic instrument.

[0055] In some possible implementations of the present application, for some services, when receiving the diagnostic request message of the service, it is necessary to delay the reply response message for a period of time. Based on this, step 103 may include: delaying the set time and sending the response message corresponding to the diagnostic simulation response to the diagnostic instrument.

[0056] In some possible implementations of the embodiments of the present application, an immediate response or a delayed response can be set through a "delayed response" control. In some possible implementations of the embodiments of the present application, the "delayed response" control can be a radio button. When the radio button is not checked, after the diagnostic simulation response corresponding to the diagnostic request message is determined, a response message corresponding to the diagnostic simulation response is immediately sent to the diagnostic instrument; when the radio button is checked, the delay time can be set, for example, 2 milliseconds (ms). After the diagnostic simulation response corresponding to the diagnostic request message is determined, a delay of 2ms is made to send a response message corresponding to the diagnostic simulation response to the diagnostic instrument.

[0057] In the embodiment of the present application, it is possible to respond to the diagnostic request message with a delay, which meets the response requirements.

[0058] In some possible implementations of the embodiments of the present application, before step 103, the diagnostic response simulation method provided by the embodiments of the present application may also include: determining whether the current session mode of the diagnostic response simulation system is the session mode required by the target service; accordingly, step 103 may include: when the current session mode of the diagnostic response simulation system is the session mode required by the target service, sending a response message corresponding to the diagnostic simulation response to the diagnostic instrument.

[0059] In some possible implementations of the embodiments of the present application, the session mode required by the target service and the current session mode of the diagnostic response simulation system can be obtained, and the two session modes can be compared to see whether they are the same. When the two session modes are the same, a response message corresponding to the diagnostic simulation response is sent to the diagnostic instrument.

[0060] Exemplarily, the acquired session mode required by the target service is a programming session mode, and the current session mode of the diagnosis response simulation system is also a programming session model, and a response message corresponding to the diagnosis simulation response is sent to the diagnostic instrument.

[0061] As another example, if the session mode required by the target service is a programming session mode, and the current session mode of the diagnostic response simulation system is a non-programming session mode, for example, an extended session mode, then no response message corresponding to the diagnostic simulation response is sent to the diagnostic instrument.

[0062] In an embodiment of the present application, when the current session mode of the diagnostic response simulation system is the session mode required by the target service, a response message corresponding to the diagnostic simulation response is sent to the diagnostic instrument, thereby ensuring the accuracy of the response to the diagnostic request message.

[0063] In some possible implementations of the embodiments of the present application, the diagnostic simulation response corresponding to the diagnostic request can be a diagnostic simulation affirmative response, a diagnostic simulation negative response, or a diagnostic simulation custom response, wherein the diagnostic simulation custom response can be customized according to user input.

[0064] Exemplarily, the diagnostic simulation response corresponding to the diagnostic request A is configured as a diagnostic simulation affirmative response, the diagnostic simulation response corresponding to the diagnostic request B is configured as a diagnostic simulation negative response, and the diagnostic simulation response corresponding to the diagnostic request C is configured as a diagnostic simulation custom response.

[0065] When a diagnostic request message indicating diagnostic request A is received, a response message indicating a positive response of the diagnostic simulation is fed back; when a diagnostic request message indicating diagnostic request B is received, a response message indicating a negative response of the diagnostic simulation is fed back; when a diagnostic request message indicating diagnostic request C is received, a response message indicating a custom response of the diagnostic simulation is fed back.

[0066] In some possible implementations of the embodiments of the present application, when the diagnostic response simulation system is turned off, the diagnostic response simulation system can serialize the simulation runtime related state data into a storage medium for storage, and when the diagnostic response simulation system is started again, the diagnostic response simulation system loads the simulation runtime related state data stored in the storage medium when the diagnostic response simulation system was turned off last time, and continues the simulation response. Among them, the simulation runtime related state data includes but is not limited to: data obtained by parsing the ODX file, customized service data and response simulation logic of related services, etc.

[0067] In an embodiment of the present application, initial simulation data can be obtained by parsing the ODX file through the diagnostic response simulation system, and different simulation response logics can be configured through the controls on the interface, such as delayed response, multiple responses to the same request, etc.

[0068] In some possible implementations of the embodiments of the present application, the diagnostic response simulation system provided by the embodiments of the present application may include a communication layer, an interface display layer, and a runtime layer. Among them, the communication layer is used to communicate with the diagnostic instrument, receive the diagnostic request message sent by the diagnostic instrument, and reply the diagnostic response message to the diagnostic instrument; the interface display layer is used to display the data obtained by parsing the ODX file, the received diagnostic request message, the sent diagnostic response message, the relevant controls for configuring the diagnostic request and the diagnostic simulation response and the response logic, and the configuration of the diagnostic request and the diagnostic simulation response and the response logic, etc.; the runtime layer is used to record the relevant status data of the simulation runtime.

[0069] The present application also provides a diagnostic response simulation system. Figure 3 shown. Figure 3 300 is a schematic diagram of the structure of the diagnostic response simulation system provided in an embodiment of the present application. The diagnostic response simulation system 300 may include:

[0070] The receiving module 301 is used to receive a diagnostic request message for a target service of a target electronic control unit sent by a diagnostic instrument;

[0071] A determination module 302 is used to determine a diagnostic simulation response corresponding to the diagnostic request message, wherein the diagnostic simulation response is a pre-created diagnostic response corresponding to the diagnostic request corresponding to the diagnostic target service of the diagnostic tool;

[0072] The sending module 303 is used to send a response message corresponding to the diagnosis simulation response to the diagnostic instrument.

[0073] In the embodiment of the present application, a diagnostic request message for a target service of an ECU is received from a diagnostic instrument; a diagnostic simulation response corresponding to the diagnostic request message is determined, wherein the diagnostic simulation response is a pre-created diagnostic response corresponding to a diagnostic request corresponding to a diagnostic target service of the diagnostic tool; and a response message corresponding to the diagnostic simulation response is sent to the diagnostic instrument. In this way, by simulating the diagnostic response corresponding to the diagnostic request corresponding to the diagnostic target service of the diagnostic tool, various diagnostic functions of the diagnostic tool can be automatically tested without an ECU sample, reducing the dependence of the diagnostic tool development on the real environment, shortening the diagnostic tool development cycle, and improving the diagnostic tool development efficiency.

[0074] In some possible implementations of the embodiment of the present application, the diagnostic response simulation system 300 provided in the embodiment of the present application may further include:

[0075] Loading module, used to load open diagnostic data exchange files;

[0076] A parsing module, used for parsing the open diagnostic data exchange file to obtain at least one service corresponding to the target ECU;

[0077] The configuration module is used to configure a diagnostic request of the target service and a diagnostic simulation response corresponding to the diagnostic request when there is a target service in at least one service corresponding to the target electronic control unit.

[0078] In some possible implementations of the embodiment of the present application, the diagnostic response simulation system 300 provided in the embodiment of the present application may further include:

[0079] The creation module is used to create a target service when the target service does not exist in at least one service corresponding to the target electronic control unit, and configure a diagnostic request of the target service and a diagnostic simulation response corresponding to the diagnostic request.

[0080] In some possible implementations of the embodiments of the present application, the diagnostic request corresponds to a plurality of diagnostic simulation responses;

[0081] Accordingly, the determination module 302 may be specifically used for:

[0082] According to a preset response logic, a diagnosis simulation response corresponding to the diagnosis request message is determined from a plurality of diagnosis simulation responses.

[0083] In the embodiment of the present application, the same diagnostic request message can be responded to according to a preset response logic.

[0084] In some possible implementations of the embodiment of the present application, the diagnostic response simulation system 300 provided in the embodiment of the present application may further include:

[0085] A judgment module, used to judge whether the current session mode of the diagnostic response simulation system is the session mode required by the target service;

[0086] Accordingly, the sending module 303 may be specifically used for:

[0087] When the current session mode of the diagnosis response simulation system is the session mode required by the target service, a response message corresponding to the diagnosis simulation response is sent to the diagnosis instrument.

[0088] In an embodiment of the present application, when the current session mode of the diagnostic response simulation system is the session mode required by the target service, a response message corresponding to the diagnostic simulation response is sent to the diagnostic instrument, thereby ensuring the accuracy of the response to the diagnostic request message.

[0089] In some possible implementations of the embodiments of the present application, the sending module 303 may be specifically used for:

[0090] After a delay of a set duration, a response message corresponding to the diagnosis simulation response is sent to the diagnostic instrument.

[0091] In the embodiment of the present application, it is possible to respond to the diagnostic request message with a delay, which meets the response requirements.

[0092] Figure 4 It is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application.

[0093] The electronic device may include a processor 401 and a memory 402 storing computer program instructions.

[0094] Specifically, the processor 401 may include a central processing unit (CPU), or an application specific integrated circuit (ASIC), or may be configured to implement one or more integrated circuits of the embodiments of the present application.

[0095] Memory 402 may include a large capacity memory for data or instructions. By way of example and not limitation, memory 402 may include a hard disk drive (HDD), a floppy disk drive, a flash memory, an optical disk, a magneto-optical disk, a magnetic tape, or a universal serial bus (USB) drive or a combination of two or more of these. In appropriate cases, memory 402 may include a removable or non-removable (or fixed) medium. In appropriate cases, memory 402 may be inside or outside of an electronic device. In some specific embodiments, memory 402 is a non-volatile solid-state memory.

[0096] In some specific embodiments, the memory may include a read-only memory (ROM), a random access memory (RAM), a magnetic disk storage medium device, an optical storage medium device, a flash memory device, an electrical, optical or other physical / tangible memory storage device. Therefore, generally, the memory includes one or more tangible (non-transitory) computer-readable storage media (e.g., a memory device) encoded with software including computer-executable instructions, and when the software is executed (e.g., by one or more processors), it is operable to perform the operations described with reference to the diagnostic response simulation method according to the present application.

[0097] The processor 401 implements the steps of the diagnostic response simulation method provided in the embodiment of the present application by reading and executing the computer program instructions stored in the memory 402 .

[0098] In one example, the electronic device may further include a communication interface 403 and a bus 410. Figure 4 As shown, the processor 401, the memory 402, and the communication interface 403 are connected via a bus 410 and communicate with each other.

[0099] The communication interface 403 is mainly used to implement communication between various modules, devices, units and / or equipment in the embodiments of the present application.

[0100] The bus 410 includes hardware, software or both, coupling the components of the electronic device to each other. For example, but not limitation, the bus may include an Accelerated Graphics Port (AGP) or other graphics bus, an Extended Industry Standard Architecture (EISA) bus, a Front Side Bus (FSB), a Hyper Transport (HT) interconnect, an Industry Standard Architecture (ISA) bus, an InfiniBand interconnect, a Low Pin Count (LPC) bus, a memory bus, a Micro channel architecture (MCA) bus, a Peripheral Component Interconnect (PCI) bus, a PCI-Express (PCI-X) bus, a Serial Advanced Technology Attachment (SATA) bus, a Video Electronics Standards Association Local Bus (VLB) bus or other suitable buses or a combination of two or more of these. Where appropriate, the bus 410 may include one or more buses. Although embodiments of the present application describe and illustrate a particular bus, the present application contemplates any suitable bus or interconnect.

[0101] The electronic device can execute the diagnostic response simulation method provided in the embodiment of the present application, thereby achieving the corresponding technical effects of the diagnostic response simulation method provided in the embodiment of the present application.

[0102] In addition, in combination with the diagnostic response simulation method in the above embodiment, the embodiment of the present application also provides a computer-readable storage medium for implementation. The computer-readable storage medium stores computer program instructions; when the computer program instructions are executed by the processor, the steps of the diagnostic response simulation method provided in the embodiment of the present application are implemented. Examples of computer-readable storage media include non-transitory computer-readable media, such as ROM, RAM, magnetic disk or optical disk, etc.

[0103] An embodiment of the present application provides a computer program product, which includes computer program instructions; when the computer program instructions are executed by a processor, the steps of the diagnostic response simulation method provided in the embodiment of the present application are implemented, and the same technical effect can be achieved. To avoid repetition, they are not repeated here.

[0104] It should be clear that the present application is not limited to the specific configuration and processing described above and shown in the figures. For the sake of simplicity, a detailed description of the known method is omitted here. In the above embodiments, several specific steps are described and shown as examples. However, the method process of the present application is not limited to the specific steps described and shown, and those skilled in the art can make various changes, modifications and additions, or change the order between the steps after understanding the spirit of the present application.

[0105] The functional blocks shown in the above-described block diagram can be implemented as hardware, software, firmware or a combination thereof. When implemented in hardware, it can be, for example, an electronic circuit, an application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), appropriate firmware, plug-in, function card, etc. When implemented in software, the elements of the present application are programs or code segments used to perform the required tasks. The program or code segment can be stored in a machine-readable medium, or transmitted on a transmission medium or communication link by a data signal carried in a carrier. "Machine-readable medium" may include any medium capable of storing or transmitting information. Examples of machine-readable media include electronic circuits, semiconductor memory devices, ROM, flash memory, erasable read-only memory (Erasable Read Only Memory, EROM), floppy disks, compact discs (Compact Disc Read-Only Memory, CD-ROM), optical disks, hard disks, optical fiber media, radio frequency (Radio Frequency, RF) links, etc. The code segment can be downloaded via a computer network such as the Internet, an intranet, etc.

[0106] It should also be noted that the exemplary embodiments mentioned in this application describe some methods or systems based on a series of steps or devices. However, this application is not limited to the order of the above steps, that is, the steps can be performed in the order mentioned in the embodiment, or in a different order from the embodiment, or several steps can be performed simultaneously.

[0107] Aspects of the present disclosure are described above with reference to the flowchart and / or block diagram of the method, device (system) and computer program product according to the embodiment of the present disclosure. It should be understood that each box in the flowchart and / or block diagram and the combination of each box in the flowchart and / or block diagram can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device to produce a machine so that these instructions executed by the processor of the computer or other programmable data processing device enable the implementation of the function / action specified in one or more boxes of the flowchart and / or block diagram. Such a processor can be, but is not limited to, a general-purpose processor, a special-purpose processor, a special application processor, or a field programmable logic circuit. It can also be understood that each box in the block diagram and / or flowchart and the combination of boxes in the block diagram and / or flowchart can also be implemented by dedicated hardware that performs a specified function or action, or can be implemented by a combination of dedicated hardware and computer instructions.

[0108] The above is only a specific implementation of the present application. Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working processes of the systems, modules and units described above can refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here. It should be understood that the protection scope of the present application is not limited to this. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed in this application, and these modifications or replacements should be included in the protection scope of this application.

Claims

1. A diagnostic response simulation method, characterized in that: Applied to a diagnostic response simulation system, the method comprises: receiving a diagnostic request message for a target service of a target electronic control unit sent by a diagnostic instrument; Determine a diagnostic simulation response corresponding to the diagnostic request message, wherein the diagnostic simulation response is a pre-created diagnostic response corresponding to a diagnostic request corresponding to a diagnostic tool diagnosing the target service; A response message corresponding to the diagnosis simulation response is sent to the diagnostic instrument.

2. The method according to claim 1, characterized in that Before receiving the diagnostic request message for the target service of the target electronic control unit sent by the diagnostic instrument, the method further includes: Load Open Diagnostic Data Exchange file; Parsing the open diagnostic data exchange file to obtain at least one service corresponding to the target electronic control unit; In a case where the target service exists in the at least one service, a diagnostic request for the target service and a diagnostic simulation response corresponding to the diagnostic request are configured.

3. The method according to claim 2, characterized in that The method further comprises: In a case where the target service does not exist in the at least one service, the target service is created, and a diagnostic request of the target service and a diagnostic simulation response corresponding to the diagnostic request are configured.

4. The method according to claim 2, characterized in that: The diagnostic request corresponds to a plurality of diagnostic simulation responses; The determining of the diagnostic simulation response corresponding to the diagnostic request message includes: According to a preset response logic, a diagnosis simulation response corresponding to the diagnosis request message is determined from the multiple diagnosis simulation responses.

5. The method according to claim 1, characterized in that Before sending a response message corresponding to the diagnostic simulation response to the diagnostic instrument, the method further includes: Determining whether the current session mode of the diagnostic response simulation system is the session mode required by the target service; The step of sending a response message corresponding to the diagnostic simulation response to the diagnostic instrument includes: When the current session mode of the diagnosis response simulation system is the session mode required by the target service, a response message corresponding to the diagnosis simulation response is sent to the diagnosis instrument.

6. The method according to claim 1, characterized in that The step of sending a response message corresponding to the diagnostic simulation response to the diagnostic instrument includes: After a delay of a set time, a response message corresponding to the diagnosis simulation response is sent to the diagnosis instrument.

7. A diagnostic response simulation system, characterized in that: The system comprises: A receiving module, used for receiving a diagnostic request message for a target service of a target electronic control unit sent by a diagnostic instrument; A determination module, configured to determine a diagnostic simulation response corresponding to the diagnostic request message, wherein the diagnostic simulation response is a pre-created diagnostic response corresponding to a diagnostic request corresponding to a diagnostic tool diagnosing the target service; The sending module is used to send a response message corresponding to the diagnosis simulation response to the diagnostic instrument.

8. An electronic device, characterized in that: The electronic device comprises: a processor and a memory storing computer program instructions; The processor reads and executes the computer program instructions to implement the steps of the diagnostic response simulation method according to any one of claims 1-6.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer program instructions, and when the computer program instructions are executed by a processor, the steps of the diagnostic response simulation method according to any one of claims 1 to 6 are implemented.

10. A computer program product, characterized in that The computer program product comprises computer program instructions, and when the computer program instructions are executed by a processor, the steps of the diagnostic response simulation method according to any one of claims 1 to 6 are implemented.