Search

CN-122018354-A - Simulation method and simulation system for diagnosis

CN122018354ACN 122018354 ACN122018354 ACN 122018354ACN-122018354-A

Abstract

The present application relates to the field of diagnostics, and more particularly to a simulation method and simulation system for diagnostics. The simulation method comprises the steps of receiving simulation configuration parameters and diagnosis interaction parameters and receiving a switching instruction, and switching to execute a first simulation mode for simulating one or more electronic control units to accept diagnosis according to the simulation configuration parameters and the diagnosis interaction parameters or a second simulation mode for simulating a simulation diagnostic instrument to conduct diagnosis according to the simulation configuration parameters and the diagnosis interaction parameters in response to the switching instruction. According to the simulation method and the simulation system of the present application, one or more electronic control units may be simulated in a simulated manner to establish DoIP connections with a diagnostic apparatus and to accept diagnosis, or the diagnostic apparatus may be simulated in a simulated manner to establish DoIP connections with one or more ECUs in the apparatus to be diagnosed and to conduct diagnosis.

Inventors

  • HE MENGWEN
  • ZHU XINGCHANG
  • Zhen Zi
  • HU CHUNLIAN
  • JIANG JIAOLONG
  • Zha Yanlin

Assignees

  • 蔚来汽车科技(安徽)有限公司

Dates

Publication Date
20260512
Application Date
20241111

Claims (17)

  1. 1. A simulation method for diagnosis, the method comprising the steps of: receiving simulation configuration parameters and diagnostic interaction parameters and receiving a switch instruction, and And responding to the switching instruction, switching and executing a first simulation mode for simulating one or more electronic control units according to the simulation configuration parameters and the diagnosis interaction parameters to accept diagnosis or a second simulation mode for simulating a simulation diagnostic instrument according to the simulation configuration parameters and the diagnosis interaction parameters to conduct diagnosis.
  2. 2. The simulation method of claim 1, wherein simulating one or more electronic control units to accept diagnostics based on the simulation configuration parameters and the diagnostic interaction parameters comprises: receiving a connection establishment request message; judging whether the connection establishment request message is matched with the simulation configuration parameters or not; responding to the connection establishment request message to be matched with the simulation configuration parameters, and establishing DoIP connection; Receiving a diagnosis request message, and And obtaining a diagnosis reply message corresponding to the diagnosis request message based on the diagnosis interaction parameter and sending the diagnosis reply message.
  3. 3. The simulation method of claim 2, wherein, The emulated configuration parameters include at least an emulated IP address of the emulated electronic control unit or units, The connection establishment request message includes at least IP addresses of one or more diagnostic targets, Wherein, the judging whether the connection establishment request message is matched with the simulation configuration parameter comprises: And judging whether the IP addresses of the one or more diagnosis targets in the connection establishment request message are consistent with the simulated IP addresses of the simulated one or more electronic control units in the simulated configuration parameters.
  4. 4. The simulation method of claim 2, wherein, The diagnosis interaction parameters at least comprise the correspondence between the simulated logic addresses of the simulated one or more electronic control units, the diagnosis requests corresponding to the simulated logic addresses of the simulated one or more electronic control units and the diagnosis replies corresponding to the diagnosis requests, The diagnosis request message at least comprises the logic addresses of one or more diagnosis targets and diagnosis requests corresponding to the logic addresses of the one or more diagnosis targets, The obtaining the diagnosis reply message corresponding to the diagnosis request message based on the diagnosis interaction parameter includes: based on the correspondence, a diagnostic reply corresponding to the logical address of one or more diagnostic targets in the diagnostic request message and a diagnostic request corresponding to the logical address of the one or more diagnostic targets is obtained.
  5. 5. The simulation method of claim 1, wherein simulating the simulation diagnostic apparatus to perform the diagnosis based on the simulation configuration parameters and the diagnosis interaction parameters comprises: generating a connection establishment request message based on the simulation configuration parameters and sending the connection establishment request message; receiving a connection establishment reply message corresponding to the connection establishment request message and establishing DoIP connection based on the connection establishment reply message; sending a diagnosis request message based on the diagnosis interaction parameter, and And receiving a diagnosis reply message corresponding to the diagnosis request message.
  6. 6. The simulation method of claim 5, wherein, The simulation configuration parameters at least comprise gateway IP address and port information of equipment to be diagnosed, The device to be diagnosed includes one or more electronic control units, and the sending the connection establishment request message based on the simulation configuration parameters includes: And sending the connection establishment request message based on the gateway IP address and port information of the equipment to be diagnosed.
  7. 7. The simulation method of claim 5, wherein, The diagnostic interaction parameters comprise at least a logical address of one or more electronic control units of the device to be diagnosed and a diagnostic request corresponding to the logical address, Wherein, the sending the diagnosis request message based on the diagnosis interaction parameter includes: and sending a diagnosis request corresponding to the logic address based on the logic address of one or more electronic control units of the equipment to be diagnosed.
  8. 8. A simulation system for diagnostics, comprising: An interaction module for receiving simulation configuration parameters and diagnosis interaction parameters and receiving a switching instruction, and And the simulation module is used for responding to the switching instruction, and switching and executing a first simulation mode for simulating one or more electronic control units according to the simulation configuration parameters and the diagnosis interaction parameters so as to accept diagnosis or a second simulation mode for simulating a diagnosis instrument according to the simulation configuration parameters and the diagnosis interaction parameters so as to carry out diagnosis.
  9. 9. The simulation system of claim 8, wherein the simulation module is configured to: receiving a connection establishment request message; judging whether the connection establishment request message is matched with the simulation configuration parameters or not; responding to the connection establishment request message to be matched with the simulation configuration parameters, and establishing DoIP connection; Receiving a diagnosis request message, and And obtaining a diagnosis reply message corresponding to the diagnosis request message based on the diagnosis interaction parameter and sending the diagnosis reply message.
  10. 10. The simulation system of claim 9, wherein the simulation system comprises a simulation system, The emulated configuration parameters include at least an emulated IP address of the emulated electronic control unit or units, The connection establishment request message includes at least IP addresses of one or more diagnostic targets, Wherein, the judging whether the connection establishment request message is matched with the simulation configuration parameter comprises: And judging whether the IP addresses of the one or more diagnosis targets in the connection establishment request message are consistent with the simulated IP addresses of the simulated one or more electronic control units in the simulated configuration parameters.
  11. 11. The simulation system of claim 10, wherein, The diagnosis interaction parameters at least comprise the correspondence between the simulated logic addresses of the simulated one or more electronic control units, the diagnosis requests corresponding to the simulated logic addresses of the simulated one or more electronic control units and the diagnosis replies corresponding to the diagnosis requests, The diagnosis request message at least comprises the logic addresses of one or more diagnosis targets and diagnosis requests corresponding to the logic addresses of the one or more diagnosis targets, The obtaining the diagnosis reply message corresponding to the diagnosis request message based on the diagnosis interaction parameter includes: based on the correspondence, a diagnostic reply corresponding to the logical address of one or more diagnostic targets in the diagnostic request message and a diagnostic request corresponding to the logical address of the one or more diagnostic targets is obtained.
  12. 12. The simulation system of claim 8, wherein the simulation module is configured to: generating a connection establishment request message based on the simulation configuration parameters and sending the connection establishment request message; receiving a connection establishment reply message corresponding to the connection establishment request message and establishing DoIP connection based on the connection establishment reply message; sending a diagnosis request message based on the diagnosis interaction parameter, and And receiving a diagnosis reply message corresponding to the diagnosis request message.
  13. 13. The simulation system of claim 12, wherein, The simulation configuration parameters at least comprise gateway IP address and port information of equipment to be diagnosed, The device to be diagnosed includes one or more electronic control units, and the sending the connection establishment request message based on the simulation configuration parameters includes: And sending the connection establishment request message based on the gateway IP address and port information of the equipment to be diagnosed.
  14. 14. The simulation system of claim 13, wherein the simulation system comprises a simulation system, The diagnostic interaction parameters comprise at least the logical addresses of the one or more electronic control units of the device to be diagnosed and a diagnostic request corresponding to the logical addresses of the one or more electronic control units of the device to be diagnosed, Wherein, the sending the diagnosis request message based on the diagnosis interaction parameter includes: and sending a diagnosis request corresponding to the logic address based on the logic address of one or more electronic control units of the equipment to be diagnosed.
  15. 15. The simulation system of claim 8, wherein the interaction module is further configured to receive the diagnostic interaction parameters in real-time and transmit to the simulation module.
  16. 16. The emulation system of claim 8, wherein the emulation module is further configured to include a transport layer security certificate and implement DoIP connections based on the transport layer security certificate.
  17. 17. The simulation system of claim 8, wherein the device to be diagnosed is a vehicle.

Description

Simulation method and simulation system for diagnosis Technical Field The present application relates to the field of diagnostics, and more particularly to a simulation method and simulation system for diagnostics. Background DoIP (Diagnostic communicat ion over Internet Protocol, diagnostic communication based on an IP network) is a main standard in the current vehicle diagnosis field, and the problem that the cost and labor cost are high in the test related to DoIP diagnosis is that a DoIP simulator is needed, however, the common DoIP simulator has the following problems that the simulator lacks enough flexibility, only a single vehicle state can be usually simulated in a diagnosis scene, multiple scenes cannot be simulated, diversified test requirements cannot be met, the complexity is high, various settings and configurations are needed to be carried out on the simulator before use, and the simulator is difficult for non-professional users to use. Disclosure of Invention In view of the foregoing, the present application aims to provide a simulation method and a simulation system for diagnosis. The simulation method for diagnosis of one or more embodiments of the present application includes the steps of: receiving simulation configuration parameters and diagnostic interaction parameters and receiving a switch instruction, and And responding to the switching instruction, switching and executing a first simulation mode for simulating one or more electronic control units according to the simulation configuration parameters and the diagnosis interaction parameters to accept diagnosis or a second simulation mode for simulating a simulation diagnostic instrument according to the simulation configuration parameters and the diagnosis interaction parameters to conduct diagnosis. Optionally, said simulating one or more electronic control units to accept diagnostics based on said simulated configuration parameters and said diagnostic interaction parameters comprises: receiving a connection establishment request message; judging whether the connection establishment request message is matched with the simulation configuration parameters or not; responding to the connection establishment request message to be matched with the simulation configuration parameters, and establishing DoIP connection; Receiving a diagnosis request message, and And obtaining a diagnosis reply message corresponding to the diagnosis request message based on the diagnosis interaction parameter and sending the diagnosis reply message. Optionally, the emulation configuration parameters comprise at least an emulated IP address of the emulated electronic control unit or units, The connection establishment request message includes at least IP addresses of one or more diagnostic targets, Wherein, the judging whether the connection establishment request message is matched with the simulation configuration parameter comprises: And judging whether the IP addresses of the one or more diagnosis targets in the connection establishment request message are consistent with the simulated IP addresses of the simulated one or more electronic control units in the simulated configuration parameters. Optionally, the diagnosis interaction parameters at least comprise the correspondence between the simulated logic addresses of the simulated one or more electronic control units, the diagnosis requests corresponding to the simulated logic addresses of the simulated one or more electronic control units, and the diagnosis replies corresponding to the diagnosis requests, The diagnosis request message at least comprises the logic addresses of one or more diagnosis targets and diagnosis requests corresponding to the logic addresses of the one or more diagnosis targets, The obtaining the diagnosis reply message corresponding to the diagnosis request message based on the diagnosis interaction parameter includes: based on the correspondence, a diagnostic reply corresponding to the logical address of one or more diagnostic targets in the diagnostic request message and a diagnostic request corresponding to the logical address of the one or more diagnostic targets is obtained. Optionally, the simulating the simulation diagnostic apparatus according to the simulation configuration parameters and the diagnostic interaction parameters to perform diagnosis includes: generating a connection establishment request message based on the simulation configuration parameters and sending the connection establishment request message; receiving a connection establishment reply message corresponding to the connection establishment request message and establishing DoIP connection based on the connection establishment reply message; sending a diagnosis request message based on the diagnosis interaction parameter, and And receiving a diagnosis reply message corresponding to the diagnosis request message. Optionally, the simulation configuration parameters at least comprise gateway IP address and p