CN115685971A - Vehicle diagnosis method and related device - Google Patents

Vehicle diagnosis method and related device Download PDF

Info

Publication number
CN115685971A
CN115685971A CN202211391704.7A CN202211391704A CN115685971A CN 115685971 A CN115685971 A CN 115685971A CN 202211391704 A CN202211391704 A CN 202211391704A CN 115685971 A CN115685971 A CN 115685971A
Authority
CN
China
Prior art keywords
ecu
diagnosis
mapping table
message
vehicle
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
CN202211391704.7A
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.)
SAIC Motor Corp Ltd
Original Assignee
SAIC Motor Corp 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 SAIC Motor Corp Ltd filed Critical SAIC Motor Corp Ltd
Priority to CN202211391704.7A priority Critical patent/CN115685971A/en
Publication of CN115685971A publication Critical patent/CN115685971A/en
Pending legal-status Critical Current

Links

Images

Abstract

The application provides a vehicle diagnosis method and a related device, which are applied to a vehicle diagnosis gateway, and the method comprises the following steps: sending an addressing message to at least one Electronic Control Unit (ECU); receiving an addressing response message of at least one ECU, and generating a routing mapping table based on the addressing response message, wherein the routing mapping table comprises the corresponding relation between the logic address of the at least one ECU and the IP address of the Internet protocol; and when the diagnosis message is received, forwarding the diagnosis message according to the routing mapping table so as to finish vehicle diagnosis. The method sends the addressing message to the vehicle ECU through the vehicle diagnosis gateway, automatically generates the routing mapping table, and dynamically updates and maintains the routing mapping table, thereby improving the accuracy of vehicle diagnosis.

Description

Vehicle diagnosis method and related device
Technical Field
The present application relates to the field of vehicle technologies, and in particular, to a vehicle diagnosis method, apparatus, gateway, computer-readable storage medium, and computer program product.
Background
The vehicle diagnosis refers to an inspection for identifying a vehicle condition and finding a failure part and a cause without disassembling the vehicle. Because ethernet has the characteristics of high bandwidth and high speed, the vehicle Diagnosis Over Internet Protocol (DOIP) function based on the vehicle-mounted ethernet is rapidly developed.
The function is realized based on a DOIP gateway, wherein the DOIP gateway is configured with a routing mapping table, and the routing mapping table is used for storing the corresponding relation between the DOIP logical address of a vehicle Electronic Control Unit (ECU) node and an Internet Protocol (IP) address.
Currently, the routing mapping table needs to be manually configured. However, with the development of vehicle intelligence, the number of ECU nodes with DOIP diagnostic function in a vehicle increases, and the flexibility and expandability of the routing mapping table configured by the above method are poor, and it is difficult to maintain and update the routing mapping table in time, thereby possibly causing errors in vehicle diagnosis.
Disclosure of Invention
The application provides a vehicle diagnosis method, which can automatically generate a route mapping table and dynamically maintain the route mapping table, so that the accuracy of vehicle diagnosis is improved. The application also provides a device, a gateway, a computer readable storage medium and a computer program product corresponding to the method.
In a first aspect, the present application provides a vehicle diagnostic method. Applied to a vehicle diagnostic gateway, the method comprising:
sending an addressing message to at least one Electronic Control Unit (ECU);
receiving an addressing response message of the at least one ECU, and generating a routing mapping table based on the addressing response message, wherein the routing mapping table comprises a corresponding relation between a logic address of the at least one ECU and an Internet Protocol (IP) address;
and when a diagnosis message is received, forwarding the diagnosis message according to the routing mapping table so as to finish vehicle diagnosis.
In some possible implementations, the generating a routing mapping table based on the addressing response packet includes:
extracting the logical address of the at least one ECU and the IP address of the at least one ECU from the addressing response message;
and generating the routing mapping table according to the logic address and the IP address of the at least one ECU.
In some possible implementations, when a diagnostic packet is received, forwarding the diagnostic packet according to the route mapping table to complete vehicle diagnosis, including:
determining a target ECU to be diagnosed according to the diagnosis message;
and forwarding the diagnosis message to the target ECU according to the routing mapping table so as to finish vehicle diagnosis.
In some possible implementation manners, the determining, according to the diagnosis message, a target ECU to be diagnosed includes:
extracting a target logic address in the diagnosis message;
and if the target logical address is the logical address of the at least one ECU, determining the target ECU to be diagnosed according to the target logical address.
In some possible implementations, the routing mapping table further includes a routing activation status of at least one ECU, and the forwarding the diagnosis packet to the target ECU according to the routing mapping table to complete vehicle diagnosis includes:
when the route activation state of the target ECU is activated, forwarding the diagnosis message to the target ECU according to the route mapping table so as to finish vehicle diagnosis;
and when the routing activation state of the target ECU is not activated, caching the diagnosis message to a buffer register corresponding to the target ECU.
In some possible implementations, the method further includes:
polling the routing mapping table, and executing exception handling operation corresponding to an exception table entry when the exception table entry exists in the routing mapping table.
In a second aspect, the present application provides a vehicle diagnostic apparatus. The device comprises:
the sending module is used for sending the addressing message to at least one Electronic Control Unit (ECU);
a generating module, configured to receive an addressing response message of the at least one ECU, and generate a routing mapping table based on the addressing response message, where the routing mapping table includes a correspondence between a logical address of the at least one ECU and an internet protocol IP address;
and the forwarding module is used for forwarding the diagnosis message according to the routing mapping table when the diagnosis message is received so as to finish vehicle diagnosis.
In some possible implementations, the generating module is specifically configured to:
extracting the logic address of the at least one ECU and the IP address of the at least one ECU from the addressing response message;
and generating the routing mapping table according to the logic address and the IP address of the at least one ECU.
In some possible implementations, the forwarding module is specifically configured to:
determining a target ECU to be diagnosed according to the diagnosis message;
and forwarding the diagnosis message to the target ECU according to the routing mapping table so as to finish vehicle diagnosis.
In some possible implementations, the forwarding module is specifically configured to:
extracting a target logic address in the diagnosis message;
and if the target logical address is the logical address of the at least one ECU, determining the target ECU to be diagnosed according to the target logical address.
In some possible implementations, the route mapping table further includes a route activation status of at least one ECU, and the forwarding module is specifically configured to:
when the route activation state of the target ECU is activated, forwarding the diagnosis message to the target ECU according to the route mapping table so as to finish vehicle diagnosis;
and when the routing activation state of the target ECU is not activated, caching the diagnosis message to a buffer register corresponding to the target ECU.
In some possible implementations, the system further includes:
and the polling module is used for polling the routing mapping table and executing exception handling operation corresponding to the exception table entry when the exception table entry exists in the routing mapping table.
In a third aspect, the present application provides a vehicle diagnostic gateway. The vehicle diagnostic gateway comprises a processor and a memory, wherein instructions are stored in the memory, and the processor executes the instructions to cause the vehicle diagnostic gateway to perform the method according to the first aspect of the present application or any implementation manner of the first aspect.
In a fourth aspect, the present application provides a computer-readable storage medium. The computer readable storage medium has stored therein instructions that, when executed on a vehicle diagnostic gateway, cause the vehicle diagnostic gateway to perform the method of the first aspect or any one of the implementation manners of the first aspect.
In a fifth aspect, the present application provides a computer program product. The computer program product comprises computer readable instructions which, when run on a vehicle diagnostic gateway, cause the vehicle diagnostic gateway to perform the method of the first aspect or any one of the implementation manners of the first aspect.
The present application can further combine to provide more implementations on the basis of the implementations provided by the above aspects.
Based on the above description, it can be seen that the technical solution of the present application has the following beneficial effects:
the method comprises the steps that firstly, the vehicle diagnosis gateway sends an addressing message to at least one Electronic Control Unit (ECU), receives an addressing response message of the at least one ECU, and generates a routing mapping table based on the addressing response message, wherein the routing mapping table comprises the corresponding relation between the logic address of the at least one ECU and an Internet Protocol (IP) address, and when the diagnosis message is received, the vehicle diagnosis gateway forwards the diagnosis message according to the routing mapping table so as to finish vehicle diagnosis. The method sends the addressing message to the vehicle ECU through the vehicle diagnosis gateway, automatically generates the routing mapping table, and dynamically updates and maintains the routing mapping table, thereby improving the accuracy of vehicle diagnosis.
Drawings
The above and other features, advantages and aspects of various embodiments of the present application will become more apparent from the following detailed description when taken in conjunction with the accompanying drawings. Throughout the drawings, the same or similar reference numbers refer to the same or similar elements. It should be understood that the drawings are schematic and that elements and features are not necessarily drawn to scale.
FIG. 1 is a schematic flow chart diagram illustrating a vehicle diagnostic method according to an embodiment of the present disclosure;
fig. 2 is a schematic structural diagram of a vehicle diagnostic apparatus provided in an embodiment of the present application;
fig. 3 is a schematic structural diagram of a vehicle diagnosis gateway according to an embodiment of the present application.
Detailed Description
Embodiments of the present application will be described in more detail below with reference to the accompanying drawings. While certain embodiments of the present application are shown in the drawings, it should be understood that the present application may be embodied in various forms and should not be construed as limited to the embodiments set forth herein, but rather are provided for a more thorough and complete understanding of the present application. It should be understood that the drawings and embodiments of the present application are for illustration purposes only and are not intended to limit the scope of the present application.
The term "include" and variations thereof as used herein are open-ended, i.e., "including but not limited to". The term "based on" is "based, at least in part, on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". Relevant definitions for other terms will be given in the following description.
It should be noted that the terms "first", "second", and the like in the present application are only used for distinguishing different devices, modules or units, and are not used for limiting the order or interdependence relationship of the functions performed by the devices, modules or units.
It is noted that references to "a", "an", and "the" modifications in this application are intended to be illustrative rather than limiting, and that those skilled in the art will recognize that reference to "one or more" unless the context clearly dictates otherwise.
In order to facilitate understanding of the technical solution of the present application, a specific application scenario in the present application is described below.
Vehicle diagnosis is an inspection, analysis, and judgment work performed to determine a technical condition of a vehicle or to pinpoint a failure site or cause without disassembling the vehicle. Wherein the vehicle diagnostics include vehicle diagnostics utilizing diagnostic communications.
The diagnostic communication is used to establish a communication connection between a diagnostic device (which may be a diagnostic instrument, for example) and the vehicle ECU, and to transmit the diagnostic result of the ECU to the diagnostic device, and to complete a desired operation by sending a command to the ECU. For example, the user may diagnose the vehicle fault code based on the diagnostic communication.
The conventional diagnostic communication is implemented based on a Controller Area Network (CAN), and with the rapid development of ethernet, the DOIP based on ethernet is rapidly applied to vehicle diagnosis. The vehicle using the traditional CAN communication protocol CAN only realize one-to-one diagnosis application scene in a physical addressing or functional addressing mode, and the vehicle using the DOIP communication protocol CAN realize various diagnosis application scenes such as one-to-one, one-to-many and many-to-one by utilizing the characteristics of high bandwidth and high speed of Ethernet.
The functions are realized based on the DOIP gateway, wherein the DOIP gateway is configured with a routing mapping table and used for storing the corresponding relation between the logic address and the IP address of the vehicle ECU, so that the DOIP gateway can determine the IP address of the ECU through the routing mapping table, and vehicle diagnosis is realized.
Therefore, configuring the route map is particularly important in vehicle diagnostics. Currently, the industry generally employs manual configuration of the route mapping table. However, with the development of vehicle intellectualization and networking, the number of vehicle ECUs supporting the DOIP protocol is increasing, the content to be configured in the route mapping table is also increasing, the manual configuration method takes a lot of time, and is very prone to errors. Meanwhile, when the network topology changes or the IP address of the vehicle ECU changes, the routing mapping table needs to be updated, and the routing mapping table cannot be dynamically updated in a manual configuration mode, so that the accuracy of vehicle diagnosis is reduced.
Based on this, the embodiment of the application provides a vehicle diagnosis method. The method comprises the steps that firstly, the vehicle diagnosis gateway sends an addressing message to at least one Electronic Control Unit (ECU), receives an addressing response message of the at least one ECU, and generates a routing mapping table based on the addressing response message, wherein the routing mapping table comprises the corresponding relation between the logic address of the at least one ECU and an Internet Protocol (IP) address, and when the diagnosis message is received, the vehicle diagnosis gateway forwards the diagnosis message according to the routing mapping table so as to finish vehicle diagnosis. The method sends the addressing message to the vehicle ECU through the vehicle diagnosis gateway, automatically generates the routing mapping table, and dynamically updates and maintains the routing mapping table, thereby improving the accuracy of vehicle diagnosis.
Next, a vehicle diagnosis method provided in an embodiment of the present application will be described in detail with reference to the drawings.
Referring to a flow diagram of a vehicle diagnosis method shown in fig. 1, the method may be executed by a vehicle diagnosis gateway, and specifically includes the following steps:
s101: the vehicle diagnostic gateway sends addressing messages to at least one ECU.
When the vehicle diagnostic gateway is powered up, the vehicle diagnostic gateway may send an addressing message to at least one ECU in the vehicle. Wherein, at least one ECU can be a vehicle ECU supporting DOIP communication protocol. For example, the vehicle diagnostic gateway may send the addressing message to the at least one ECU by way of an IP broadcast based on the DOIP communication protocol.
S102: the vehicle diagnosis gateway receives the addressing response message of at least one ECU, and generates a route mapping table based on the addressing response message.
When the at least one ECU receives the addressing message, the at least one ECU may send an addressing response message to the vehicle diagnostic gateway. For example, at least one ECU may send an addressing response message to the vehicle diagnostic gateway by means of IP unicast.
Further, the addressing response message may include a logical address of the at least one ECU and an IP address of the at least one ECU. The vehicle diagnosis gateway receives an addressing response message of at least one ECU, extracts a logical address and a corresponding IP address of the at least one ECU from the addressing response message, and generates a routing mapping table according to the logical address and the corresponding IP address of the at least one ECU. The routing mapping table comprises the corresponding relation between the logic address and the IP address of at least one ECU.
In the embodiment of the application, after the vehicle diagnosis gateway is powered on, the addressing message is sent to the vehicle ECU in a broadcasting mode, so that the logical address and the IP address of the vehicle ECU are obtained, and the routing mapping table is generated. Thus, when the network topology changes or the IP address of the ECU changes, for example, a new IP address is allocated to the ECU based on a Dynamic Host Configuration Protocol (DHCP), and for example, due to an abnormal DHCP, a LINK-LOCAL based on Internet Protocol Version 6 (Internet Protocol Version 6, ipv 6) is allocated to the new IP address of the ECU, and for example, a part of the ECU is added or deleted, so that the routing mapping table can be updated and maintained each time the vehicle diagnosis gateway is powered on, thereby ensuring the flexibility and expandability of the routing mapping table.
S103: and when the vehicle diagnosis gateway receives the diagnosis message, forwarding the diagnosis message according to the routing mapping table to finish vehicle diagnosis.
The diagnostic message may be sent by a diagnostic device (e.g., a diagnostic device) to the vehicle diagnostic gateway. When the vehicle diagnosis gateway receives the diagnosis message, the target ECU to be diagnosed can be determined according to the diagnosis message, and the diagnosis message is forwarded to the target ECU according to the routing mapping table so as to complete vehicle diagnosis.
In some possible implementation manners, the vehicle diagnosis gateway may extract a target logical address in the diagnosis message, and if the target logical address is a logical address of at least one ECU, the vehicle diagnosis gateway may determine the target ECU to be diagnosed according to the target logical address.
Further, if the target logical address is the logical address of the vehicle diagnosis gateway, the vehicle diagnosis gateway may upload the diagnosis message.
In some possible implementations, the route map further includes a route activation status of the at least one ECU. After the vehicle diagnosis gateway determines the target ECU to be diagnosed, if the routing activation state of the target ECU is activated, the vehicle diagnosis gateway may forward the diagnosis packet to the target ECU according to the routing mapping table, thereby completing vehicle diagnosis. If the route activation state of the target ECU is not activated, the vehicle diagnosis gateway may cache the diagnosis message to a buffer register corresponding to the target ECU, complete connection establishment and DOIP route activation by a Transmission Control Protocol (TCP) when the route activation state of the target ECU becomes activated, then take out the diagnosis message from the buffer register, and forward the diagnosis message to the target ECU.
In some possible implementation manners, after the vehicle diagnosis gateway determines the target ECU to be diagnosed, the logical address corresponding to the target ECU cannot be queried in the routing mapping table, that is, the routing mapping table does not store the corresponding relationship between the logical address and the IP address of the target ECU. At this time, the vehicle diagnosis gateway may store the logical address of the target ECU in the route mapping table, and send the addressing packet again, and store the IP address of the target ECU in the corresponding entry of the route mapping table if the addressing response packet of the target ECU is received within a preset time period.
In some possible implementations, the vehicle diagnostic gateway may poll the route mapping table, and when an abnormal entry exists in the route mapping table, perform an exception handling operation corresponding to the abnormal entry.
For example, if a diagnostic packet exists in a buffer register associated with a certain entry in the route mapping table, and the caching time of the diagnostic packet exceeds a preset time, the vehicle diagnostic gateway may execute an operation of releasing the buffer register, and meanwhile, the vehicle diagnostic gateway may also send an "unreachable address" feedback to the diagnostic device. For another example, if an entry in the routing mapping table is not used for a preset time, the vehicle diagnosis gateway may delete the entry. For another example, if the vehicle diagnosis gateway disconnects TCP from an ECU, the vehicle diagnosis gateway may delete the entry corresponding to the ECU in the route mapping table.
The method is applied to a vehicle diagnosis gateway, and comprises the steps that firstly, the vehicle diagnosis gateway sends an addressing message to at least one Electronic Control Unit (ECU), receives an addressing response message of the at least one ECU, and generates a routing mapping table based on the addressing response message, wherein the routing mapping table comprises the corresponding relation between the logic address of the at least one ECU and an Internet Protocol (IP) address, and when the diagnosis message is received, the vehicle diagnosis gateway forwards the diagnosis message according to the routing mapping table so as to finish vehicle diagnosis. The method sends the addressing message to the vehicle ECU through the vehicle diagnosis gateway, automatically generates the routing mapping table, and dynamically updates and maintains the routing mapping table, thereby improving the accuracy of vehicle diagnosis.
Based on the method provided by the embodiment of the application, the embodiment of the application also provides a vehicle diagnosis device corresponding to the method. The units/modules described in the embodiments of the present application may be implemented by software or hardware. Wherein the name of a unit/module does not in some cases constitute a limitation of the unit/module itself.
Referring to a schematic configuration diagram of a vehicle diagnosis apparatus shown in fig. 2, the apparatus 200 includes:
a sending module 201, configured to send an addressing message to at least one electronic control unit ECU;
a generating module 202, configured to receive an addressing response message of at least one ECU, and generate a routing mapping table based on the addressing response message, where the routing mapping table includes a correspondence between a logical address of the at least one ECU and an internet protocol IP address;
and the forwarding module 203 is configured to forward the diagnostic message according to the route mapping table when the diagnostic message is received, so as to complete vehicle diagnosis.
In some possible implementations, the generating module 202 is specifically configured to:
extracting the logic address of at least one ECU and the IP address of at least one ECU from the addressing response message;
and generating a routing mapping table according to the logic address and the IP address of at least one ECU.
In some possible implementations, the forwarding module 203 is specifically configured to:
determining a target ECU to be diagnosed according to the diagnosis message;
and forwarding the diagnosis message to a target ECU according to the routing mapping table so as to finish vehicle diagnosis.
In some possible implementations, the forwarding module 203 is specifically configured to:
extracting a target logic address in the diagnosis message;
and if the target logical address is the logical address of at least one ECU, determining the target ECU to be diagnosed according to the target logical address.
In some possible implementations, the route mapping table further includes a route activation status of at least one ECU, and the forwarding module 203 is specifically configured to:
when the route activation state of the target ECU is activated, the diagnosis message is forwarded to the target ECU according to the route mapping table so as to finish vehicle diagnosis;
and when the routing activation state of the target ECU is not activated, caching the diagnosis message to a buffer register corresponding to the target ECU.
In some possible implementations, the system further includes:
and the polling module is used for polling the routing mapping table and executing exception handling operation corresponding to the exception table entry when the exception table entry exists in the routing mapping table.
The vehicle diagnosis device 200 according to the embodiment of the present application may correspond to performing the method described in the embodiment of the present application, and the above and other operations and/or functions of each module/unit of the vehicle diagnosis device 200 are respectively for implementing the corresponding flow of each method in the embodiment shown in fig. 1, and are not repeated herein for brevity.
The functions described herein above may be performed, at least in part, by one or more hardware logic components. Referring to the schematic structural diagram of the vehicle diagnosis gateway 300 shown in fig. 3, it should be noted that the vehicle diagnosis gateway shown in fig. 3 is only an example, and should not bring any limitation to the function and the application scope of the embodiment of the present application.
As shown in fig. 3, the vehicle diagnostic gateway 300 may include a processing device (e.g., central processing unit, graphics processor, etc.) 301 that may perform various appropriate actions and processes in accordance with a program stored in a Read Only Memory (ROM) 302 or a program loaded from a storage device 308 into a Random Access Memory (RAM) 303. In the RAM303, various programs and data necessary for the operation of the vehicle diagnosis gateway 300 are also stored. The processing device 301, the ROM 302, and the RAM303 are connected to each other via a bus 304. An input/output (I/O) interface 305 is also connected to bus 304.
Generally, the following devices may be connected to the I/O interface 305: input devices 306 including, for example, a touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; an output device 307 including, for example, a Liquid Crystal Display (LCD), a speaker, a vibrator, and the like; storage devices 308 including, for example, magnetic tape, hard disk, etc.; and a communication device 309. The communication means 309 may allow the vehicle diagnostic gateway 300 to perform wireless or wired communication with other devices to exchange data. While fig. 3 illustrates the vehicle diagnostic gateway 300 having various devices, it is to be understood that not all of the illustrated devices are required to be implemented or provided. More or fewer devices may alternatively be implemented or provided.
The present application also provides a computer-readable storage medium, also referred to as a machine-readable medium. In the context of this application, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
It should be noted that the computer readable medium mentioned above in the present application may be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present application, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In this application, however, a computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
The computer readable medium carries one or more programs which, when executed by the vehicle diagnostic gateway, cause the vehicle diagnostic gateway to: sending an addressing message to at least one Electronic Control Unit (ECU); receiving an addressing response message of at least one ECU, and generating a routing mapping table based on the addressing response message, wherein the routing mapping table comprises the corresponding relation between the logic address of the at least one ECU and the IP address of the Internet protocol; and when the diagnosis message is received, forwarding the diagnosis message according to the routing mapping table so as to finish vehicle diagnosis.
In particular, according to embodiments of the application, the processes described above with reference to the flow diagrams may be implemented as computer software programs. For example, embodiments of the present application include a computer program product comprising a computer program carried on a non-transitory computer readable medium, the computer program containing program code for performing the method illustrated by the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network via the communication means, or may be installed from a storage means. The computer program, when executed by a processing device, performs the above-described functions defined in the methods of embodiments of the present application.
Although the subject matter has been described in language specific to structural features and/or methodological acts, it is to be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are disclosed as example forms of implementing the claims.
While several specific implementation details are included in the above discussion, these should not be construed as limitations on the scope of the application. Certain features that are described in the context of separate embodiments can also be implemented in combination in a single embodiment. Conversely, various features that are described in the context of a single embodiment can also be implemented in multiple embodiments separately or in any suitable subcombination.
The above description is only a preferred embodiment of the application and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the disclosure herein is not limited to the particular combination of features described above, but also encompasses other arrangements formed by any combination of the above features or their equivalents without departing from the spirit of the disclosure. For example, the above features may be replaced with (but not limited to) features having similar functions disclosed in the present application.

Claims (10)

1. A vehicle diagnosis method is applied to a vehicle diagnosis gateway, and comprises the following steps:
sending an addressing message to at least one Electronic Control Unit (ECU);
receiving an addressing response message of the at least one ECU, and generating a routing mapping table based on the addressing response message, wherein the routing mapping table comprises a corresponding relation between a logic address of the at least one ECU and an Internet Protocol (IP) address;
and when a diagnosis message is received, forwarding the diagnosis message according to the routing mapping table so as to finish vehicle diagnosis.
2. The method of claim 1, wherein generating a routing mapping table based on the addressing response packet comprises:
extracting the logical address of the at least one ECU and the IP address of the at least one ECU from the addressing response message;
and generating the routing mapping table according to the logic address and the IP address of the at least one ECU.
3. The method of claim 1, wherein forwarding the diagnostic message according to the routing map to complete vehicle diagnostics upon receiving the diagnostic message comprises:
determining a target ECU to be diagnosed according to the diagnosis message;
and forwarding the diagnosis message to the target ECU according to the routing mapping table so as to finish vehicle diagnosis.
4. The method according to claim 3, wherein the determining a target ECU to be diagnosed according to the diagnosis message comprises:
extracting a target logic address in the diagnosis message;
and if the target logical address is the logical address of the at least one ECU, determining the target ECU to be diagnosed according to the target logical address.
5. The method of claim 3, wherein the route map further includes a route activation status of at least one ECU, and wherein forwarding the diagnostic packet to the target ECU to complete vehicle diagnostics according to the route map comprises:
when the route activation state of the target ECU is activated, forwarding the diagnosis message to the target ECU according to the route mapping table so as to finish vehicle diagnosis;
and when the routing activation state of the target ECU is not activated, caching the diagnosis message to a buffer register corresponding to the target ECU.
6. The method of any of claims 1 to 5, further comprising:
polling the routing mapping table, and executing exception handling operation corresponding to the exception table entry when the exception table entry exists in the routing mapping table.
7. A vehicle diagnostic apparatus, characterized in that the apparatus comprises:
the sending module is used for sending an addressing message to at least one Electronic Control Unit (ECU);
a generating module, configured to receive an addressing response message of the at least one ECU, and generate a routing mapping table based on the addressing response message, where the routing mapping table includes a correspondence between a logical address of the at least one ECU and an internet protocol IP address;
and the forwarding module is used for forwarding the diagnosis message according to the routing mapping table when the diagnosis message is received so as to finish vehicle diagnosis.
8. A vehicle diagnostic gateway comprising a processor and a memory, the memory having instructions stored therein that, when executed by the processor, cause the vehicle diagnostic gateway to perform the method of any of claims 1 to 6.
9. A computer readable storage medium comprising computer readable instructions that, when run on a vehicle diagnostic gateway, cause the vehicle diagnostic gateway to perform the method of any of claims 1 to 6.
10. A computer program product comprising computer readable instructions that, when run on a vehicle diagnostic gateway, cause the vehicle diagnostic gateway to perform the method of any of claims 1 to 6.
CN202211391704.7A 2022-11-08 2022-11-08 Vehicle diagnosis method and related device Pending CN115685971A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211391704.7A CN115685971A (en) 2022-11-08 2022-11-08 Vehicle diagnosis method and related device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211391704.7A CN115685971A (en) 2022-11-08 2022-11-08 Vehicle diagnosis method and related device

Publications (1)

Publication Number Publication Date
CN115685971A true CN115685971A (en) 2023-02-03

Family

ID=85049657

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211391704.7A Pending CN115685971A (en) 2022-11-08 2022-11-08 Vehicle diagnosis method and related device

Country Status (1)

Country Link
CN (1) CN115685971A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116560342A (en) * 2023-05-25 2023-08-08 无锡车联天下信息技术有限公司 Vehicle fault diagnosis method and device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116560342A (en) * 2023-05-25 2023-08-08 无锡车联天下信息技术有限公司 Vehicle fault diagnosis method and device

Similar Documents

Publication Publication Date Title
US9547502B2 (en) Rebooting InfiniBand clusters
CN102291320B (en) MAC (media access control) address learning method and edge device
US9742636B2 (en) Reliable address discovery cache
CN103974380A (en) Terminal access position keep-alive method and device
CN110730133B (en) Route notification method and system
CN115685971A (en) Vehicle diagnosis method and related device
US9372708B2 (en) Synchronizing multicast groups
JP5018969B2 (en) COMMUNICATION CONTROL PROGRAM, COMMUNICATION CONTROL DEVICE, COMMUNICATION CONTROL SYSTEM, AND COMMUNICATION CONTROL METHOD
CN113485920B (en) Method and device for realizing DoIP entity, readable storage medium and electronic equipment
EP3675465A1 (en) Faster duplicate address detection for ranges of link local addresses
CN109286684B (en) Communication connection processing method and device, proxy server and storage medium
CN107819708A (en) Data processing method, system and equipment based on virtual machine (vm) migration
CN110958124B (en) Multicast group management method, device, readable storage medium and computer
CN106959620A (en) A kind of vehicle-mounted CAN bus data communication device and its method for designing
CN113381938B (en) Data packet sending method and device, storage medium and electronic equipment
CN112511440B (en) Message forwarding method, system, storage medium and electronic equipment
KR101312035B1 (en) System for supervisory control
CN114546444A (en) Vehicle upgrading method and device, electronic equipment, medium and automatic driving vehicle
CN114615235A (en) Method, device and computer program product for managing addresses of devices in a network
CN109150612B (en) Detection method based on distributed system for unmanned vehicle and electronic equipment
CN116436994B (en) Profinet protocol message transmission method, device, equipment and medium
CN109309583A (en) Information acquisition method, device, electronic equipment and medium based on distributed system
CN114338456B (en) Image acquisition equipment state determining method and device, electronic equipment and medium
CN114221892B (en) Automatic equipment allocation method and device in BIER network and electronic equipment
CN114928589A (en) Data transmission method, data transmission device, computer readable medium and equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination