VIN / GID synchronous communication method and synchronous communication device for DoIP node in vehicle

By simplifying the VIN/GID synchronization communication process of DoIP nodes and using UDS to read the synchronization state, the redundancy and low efficiency of the GID synchronization method in the prior art are solved, lightweight synchronization and fault location are achieved, and the vehicle is improved Synchronization efficiency and reliability of internal DoIP nodes.

CN119030993APending Publication Date: 2024-11-26FAW CAR CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410969515.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-19
Publication Date
2024-11-26

AI Technical Summary

Technical Problem

The GID synchronization method of existing DoIP nodes has problems such as redundant packets, high network load, low synchronization efficiency, and inability to close-loop control, and inability to effectively locate the failed nodes.

Method used

Write VIN to DoIP edge nodes through an external diagnostic instrument, and read the VIN/GID synchronization status of all DoIP nodes and edge nodes through UDS, simplifying interactive logic, reducing network load, realizing closed-loop control, and locate failed nodes when synchronization fails .

Benefits of technology

It realizes lightweight VIN/GID synchronous communication, reduces network load, can effectively close-loop control and locate faulty nodes, and improves synchronization efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119030993A_ABST
    Figure CN119030993A_ABST
Patent Text Reader

Abstract

The invention discloses a VIN / GID synchronous communication method and a synchronous communication device for DoIP nodes in a vehicle, which are light enough, have no redundant steps and messages, reduce the network load, perform closed-loop control, know whether synchronization succeeds or not, and also can locate a faulted DoIP node when a problem occurs. Comprising the following steps: an external diagnostic instrument writes a VIN into a DoIP edge node, and sets the VIN / GID synchronization state of the DoIP edge node to be synchronized; communication is established between each DoIP node and the DoIP edge node, the VIN / GID of the DoIP edge node is set to be the VIN / GID of the DoIP edge node, and the VIN / GID synchronization state is set to be synchronized; and the diagnostic instrument respectively reads VIN / GID synchronization states of all DoIP nodes and DoIP edge nodes through the UDS to complete vehicle synchronization.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of vehicle diagnosis synchronous communication, and in particular relates to a DoIP node VIN / GID synchronous communication method and a synchronous communication device in a vehicle. Background Art

[0002] With the development of automobile intelligence and networking technology, the amount of communication data in the vehicle has increased dramatically. Ethernet technology has gradually been applied in vehicle networks due to its advantages of high transmission rate and high bandwidth. At the same time, vehicle diagnostic technology has also evolved from the original CAN-based diagnosis to IP-based DoIP diagnosis.

[0003] DoIP stands for Diagnostic communication over Internet Protocol, which is a diagnostic communication protocol based on Internet Protocol. Ethernet has higher communication bandwidth and transmission rate, and supports richer diagnostic scenarios: one-to-one, one-to-many, many-to-one, and many-to-many wired / wireless diagnostic scenarios. Ethernet-based diagnosis is gradually being applied to vehicle diagnosis. In the actual application process, for one-to-many, many-to-many and other communication scenarios, identifiers are required to indicate that many DoIP nodes of the vehicle belong to the same vehicle, so as to distinguish them from other vehicles. Therefore, the DoIP in the vehicle needs to synchronize GID (group identification group identifier). The relevant ISO standards of DoIP do not have clear provisions for GID synchronization, which is determined by each OEM. Most of the current GID synchronization methods have some problems, such as message redundancy, increased network load, insufficient lightness, low synchronization efficiency, inability to close the loop control, and inability to locate the faulty DoIP node when synchronization fails. Summary of the invention

[0004] In order to solve the above-mentioned problems existing in the prior art, the present invention provides a VIN / GID synchronous communication method and a synchronous communication device of DoIP nodes in a vehicle, which are lightweight enough, have no redundant steps and messages, reduce the network load, and can perform closed-loop control at the same time, know whether the synchronization is successful, and locate the faulty DoIP node when a problem occurs.

[0005] The objective of the present invention is achieved through the following technical solutions:

[0006] As a first aspect of the present invention, a method for synchronous communication of DoIP nodes VIN / GID in a vehicle is provided, comprising the following process:

[0007] S1. The external diagnostic instrument writes VIN to the DoIP edge node and sets the VIN / GID synchronization state of the DoIP edge node to synchronized;

[0008] S2. Each DoIP node establishes communication with the DoIP edge node, sets the VIN / GID of the DoIP edge node to its own VIN / GID, and sets the VIN / GID synchronization status to synchronized;

[0009] S3. The diagnostic instrument reads the VIN / GID synchronization status of all DoIP nodes and DoIP edge nodes through UDS to complete vehicle synchronization.

[0010] Furthermore, the step S1 comprises:

[0011] S11. DoIP edge node synchronization initialization: set the default state of the VIN / GID synchronization state of the DoIP edge node to unsynchronized;

[0012] S12. Start DoIP edge node synchronization and set the MAC address of the DoIP edge node to its own GID;

[0013] S13. After the external diagnostic instrument writes the VIN to the DoIP edge node through the UDS, the VIN / GID synchronization state of the DoIP edge node is set to synchronized.

[0014] Furthermore, the step S2 comprises:

[0015] S21. DoIP node synchronization initialization: set the default state of VIN / GID synchronization status of all DoIP nodes to unsynchronized;

[0016] S22. The DoIP node sends a vehicle identification request message to the DoIP edge node;

[0017] S23. The DoIP edge node sends a vehicle identification response message to the DoIP node;

[0018] S24. After receiving the vehicle identification response message sent by the DoIP edge node, the DoIP node sets the VIN / GID of the DoIP edge node to its own VIN / GID, and sets the VIN / GID synchronization state to synchronized.

[0019] Further, the step S22 includes: starting DoIP node synchronization, the DoIP node first performs a self-check, and if it is checked that the VIN / GID synchronization state is not synchronized, a vehicle identification request message is sent to the DoIP edge node.

[0020] Further, step S23 includes: after receiving the vehicle identification request message and the VIN / GID synchronization status of the DoIP edge node itself is synchronized, the DoIP edge node sends a 3-frame vehicle identification response message to the DoIP node; if the VIN / GID synchronization status of the DoIP edge node itself is not synchronized, no response is made.

[0021] Furthermore, in step S23, the DoIP edge node uses a parameter in a non-volatile memory to indicate whether a vehicle identification request message from a certain DoIP node is received, which is used for problem location after synchronization fails.

[0022] Furthermore, the step S24 includes sending a vehicle identification request message to the DoIP edge node again if the DoIP node does not receive the vehicle identification response message after time T.

[0023] As a second aspect of the present invention, a DoIP node VIN / GID synchronization device in a vehicle is also provided, which is used to implement the DoIP node VIN / GID synchronization communication method in a vehicle, including an external diagnostic instrument, an edge node synchronization module and an internal node synchronization module;

[0024] The external diagnostic instrument is communicatively connected to the edge node synchronization module, and is used to write the vehicle identification code (VIN) into the DoIP edge node, and can detect the synchronization status after the DoIP edge node and the DoIP node complete synchronization;

[0025] The edge node synchronization module is used to obtain the vehicle identification code and establish a connection with other DoIP nodes, and distribute the vehicle identification code to the DoIP nodes;

[0026] The internal node synchronization module is used to establish a communication connection with the edge node synchronization module, set the VIN / GID of the DoIP edge node of the edge node synchronization module to its own VIN / GID, and complete the VIN / GID synchronization of the DoIP node in the vehicle.

[0027] Furthermore, the edge node synchronization module includes:

[0028] The vehicle identification code acquisition unit is used to write the vehicle identification code UDS into the DoIP edge node and update the VIN / GID synchronization status;

[0029] A first communication unit, used to obtain a vehicle identification request message of a DoIP node from an internal node synchronization module, send a vehicle identification response message to the internal node synchronization module, and record whether communication is established with the internal node synchronization module;

[0030] The identification code distribution unit is used to distribute the vehicle identification code to the internal node synchronization module that establishes communication.

[0031] Furthermore, the internal node synchronization module includes:

[0032] A second communication unit, used to send a vehicle identification request message to the edge node synchronization module, and receive a vehicle identification response message sent by the edge node synchronization module, and establish communication with the edge node synchronization module;

[0033] The identification code receiving unit is used to receive the vehicle identification code sent by the edge node synchronization module, set the VIN / GID of the DoIP edge node to its own VIN / GID, and set the VIN / GID synchronization state to synchronized.

[0034] The present invention has the following advantages:

[0035] The interaction timing and logic processing between DoIP nodes of the present invention are sufficiently concise and lightweight, thus reducing network load;

[0036] The present invention can realize closed-loop control and locate problematic DoIP nodes. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] In order to more clearly illustrate the specific implementation of the present invention or the technical solution in the prior art, the drawings required for use in the specific implementation or the description of the prior art are briefly introduced below.

[0038] Figure 1 This is an interactive timing diagram of a VIN / GID synchronous communication method of DoIP nodes in a vehicle as described in Example 1 of the present invention.

[0039] Figure 2 This is a block diagram of the composition principles of a DoIP node VIN / GID synchronization device in a vehicle as described in Example 2 of the present invention. DETAILED DESCRIPTION

[0040] The technical solution of the present invention will be described clearly and completely below in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0041] Example 1

[0042] A vehicle that supports Ethernet diagnosis has a DoIP edge node and numerous DoIP nodes inside. The DoIP edge node is generally a DoIP gateway, which is used to connect the vehicle and the external diagnostic instrument. Other DoIP nodes are connected to the DoIP edge node via Ethernet. After the vehicle is offline, the VIN (vehicle identification number) needs to be written to the DoIP edge node, and then through the GID / VIN synchronization process, all DoIP nodes and DoIP edge nodes in the vehicle have the same VIN / GID, where the GID / VIN of the DoIP edge node is the main GID / VIN of the vehicle.

[0043] All DoIP nodes and DoIP edge nodes of the vehicle have a parameter in the internal non-volatile memory to indicate the synchronization status of VIN / GID. There are two states, synchronized and unsynchronized, and this state can be read by the diagnostic instrument through UDS (Unified Diagnostic Service) 0x22 service and DID (Data Identifier).

[0044] like Figure 1 As shown, this embodiment is a VIN / GID synchronization communication method for DoIP nodes in a vehicle, including the following processes:

[0045] S1. The external diagnostic instrument writes VIN to the DoIP edge node and sets the VIN / GID synchronization state of the DoIP edge node to synchronized;

[0046] S11. DoIP edge node synchronization initialization: set the default state of the VIN / GID synchronization state of the DoIP edge node to unsynchronized;

[0047] S12. Start DoIP edge node synchronization and set the MAC address of the DoIP edge node to its own GID;

[0048] S13. After the external diagnostic instrument writes the VIN to the DoIP edge node through the UDS, the VIN / GID synchronization status of the DoIP edge node is set to synchronized;

[0049] S2. Each DoIP node establishes communication with the DoIP edge node, sets the VIN / GID of the DoIP edge node to its own VIN / GID, and sets the VIN / GID synchronization status to synchronized;

[0050] S21. DoIP node synchronization initialization: set the default state of VIN / GID synchronization status of all DoIP nodes to unsynchronized;

[0051] S22. The DoIP node sends a vehicle identification request message to the DoIP edge node: DoIP node synchronization is started. The DoIP node first performs a self-check. If the VIN / GID synchronization status is found to be unsynchronized, a vehicle identification request message is sent to the DoIP edge node.

[0052] S23. The DoIP edge node sends a vehicle identification response message to the DoIP node: After receiving the vehicle identification request message and the VIN / GID synchronization status of the DoIP edge node itself is synchronized, the DoIP edge node sends a 3-frame vehicle identification response message to the DoIP node; if the VIN / GID synchronization status of the DoIP edge node itself is not synchronized, no response is made. At the same time, the DoIP edge node uses a parameter in the non-volatile memory to indicate whether a vehicle identification request message from a DoIP node is received, which is used for problem location after synchronization failure;

[0053] S24. The DoIP node sets the VIN / GID of the DoIP edge node to its own VIN / GID, and sets the VIN / GID synchronization state to synchronized: After receiving the vehicle identification response message sent by the DoIP edge node, the DoIP node sets the VIN / GID of the DoIP edge node to its own VIN / GID, and sets the VIN / GID synchronization state to synchronized; if the DoIP node does not receive the vehicle identification response message after time T, it sends a vehicle identification request message to the DoIP edge node again, where T is a configurable value;

[0054] S3. Diagnose the VIN / GID synchronization status of all DoIP nodes and DoIP edge nodes to complete vehicle synchronization:

[0055] The diagnostic instrument reads the VIN / GID synchronization status of all DoIP nodes and DoIP edge nodes through UDS. If the VIN / GID synchronization status of all DoIP nodes and DoIP edge nodes is synchronized, it indicates that the vehicle synchronization is successful.

[0056] Example 2

[0057] like Figure 2 As shown, this embodiment is a DoIP node VIN / GID synchronization device in a vehicle, which is used to implement the synchronous communication method as described in Example 1, including an external diagnostic instrument, an edge node synchronization module and an internal node synchronization module.

[0058] The external diagnostic instrument is communicatively connected to the edge node synchronization module, and is used to write the vehicle identification code (VIN) into the DoIP edge node, and can detect the synchronization status after the DoIP edge node and the DoIP node complete synchronization;

[0059] The edge node synchronization module is used to obtain the vehicle identification code and establish a connection with other DoIP nodes, and distribute the vehicle identification code to the DoIP nodes;

[0060] The internal node synchronization module is used to establish a communication connection with the edge node synchronization module, set the VIN / GID of the DoIP edge node of the edge node synchronization module to its own VIN / GID, and complete the VIN / GID synchronization of the DoIP node in the vehicle.

[0061] Furthermore, the edge node synchronization module includes:

[0062] The vehicle identification code acquisition unit is used to write the vehicle identification code UDS into the DoIP edge node and update the VIN / GID synchronization status;

[0063] A first communication unit, used to obtain a vehicle identification request message of a DoIP node from an internal node synchronization module, send a vehicle identification response message to the internal node synchronization module, and record whether communication is established with the internal node synchronization module;

[0064] The identification code distribution unit is used to distribute the vehicle identification code to the internal node synchronization module that establishes communication.

[0065] The internal node synchronization module includes:

[0066] A second communication unit, used to send a vehicle identification request message to the edge node synchronization module, and receive a vehicle identification response message sent by the edge node synchronization module, and establish communication with the edge node synchronization module;

[0067] The identification code receiving unit is used to receive the vehicle identification code sent by the edge node synchronization module, set the VIN / GID of the DoIP edge node to its own VIN / GID, and set the VIN / GID synchronization state to synchronized.

[0068] The preferred embodiments of the present invention are described in detail above in conjunction with the accompanying drawings. However, the present invention is not limited to the specific details in the above embodiments. Within the technical concept of the present invention, a variety of simple modifications can be made to the technical solution of the present invention, and these simple modifications all belong to the protection scope of the present invention.

[0069] It should also be noted that the various specific technical features described in the above specific embodiments can be combined in any suitable manner without contradiction. In order to avoid unnecessary repetition, the present invention will not further describe various possible combinations.

[0070] In addition, various embodiments of the present invention may be arbitrarily combined, and as long as they do not violate the concept of the present invention, they should also be regarded as the contents disclosed by the present invention.

Claims

1. A VIN / GID synchronous communication method for DoIP nodes in a vehicle, characterized in that: The process includes: S1. The external diagnostic instrument writes VIN to the DoIP edge node and sets the VIN / GID synchronization state of the DoIP edge node to synchronized; S2. Each DoIP node establishes communication with the DoIP edge node, sets the VIN / GID of the DoIP edge node to its own VIN / GID, and sets the VIN / GID synchronization status to synchronized; S3. The diagnostic instrument reads the VIN / GID synchronization status of all DoIP nodes and DoIP edge nodes through UDS to complete vehicle synchronization.

2. A VIN / GID synchronous communication method for DoIP nodes in a vehicle as claimed in claim 1, characterized in that: The step S1 comprises: S11. DoIP edge node synchronization initialization: set the default state of the VIN / GID synchronization state of the DoIP edge node to unsynchronized; S12. Start DoIP edge node synchronization and set the MAC address of the DoIP edge node to its own GID; S13. After the external diagnostic instrument writes the VIN to the DoIP edge node through the UDS, the VIN / GID synchronization state of the DoIP edge node is set to synchronized.

3. A DoIP node VIN / GID synchronous communication method in a vehicle as claimed in claim 1, characterized in that: The step S2 comprises: S21. DoIP node synchronization initialization: set the default state of VIN / GID synchronization status of all DoIP nodes to unsynchronized; S22. The DoIP node sends a vehicle identification request message to the DoIP edge node; S23. The DoIP edge node sends a vehicle identification response message to the DoIP node; S24. After receiving the vehicle identification response message sent by the DoIP edge node, the DoIP node sets the VIN / GID of the DoIP edge node to its own VIN / GID, and sets the VIN / GID synchronization state to synchronized.

4. A VIN / GID synchronous communication method for DoIP nodes in a vehicle as claimed in claim 3, characterized in that: The step S22 includes: starting DoIP node synchronization, the DoIP node first performs a self-check, and if it is checked that the VIN / GID synchronization state is not synchronized, a vehicle identification request message is sent to the DoIP edge node.

5. A DoIP node VIN / GID synchronous communication method in a vehicle as claimed in claim 3, characterized in that: The step S23 includes: after receiving the vehicle identification request message and the VIN / GID synchronization status of the DoIP edge node itself is synchronized, the DoIP edge node sends a 3-frame vehicle identification response message to the DoIP node; if the VIN / GID synchronization status of the DoIP edge node itself is not synchronized, no response is made.

6. A VIN / GID synchronous communication method for DoIP nodes in a vehicle as claimed in claim 5, characterized in that: In step S23, the DoIP edge node uses a parameter in the non-volatile memory to indicate whether a vehicle identification request message from a certain DoIP node is received, which is used for problem location after synchronization fails.

7. A VIN / GID synchronous communication method for DoIP nodes in a vehicle as claimed in claim 3, characterized in that: The step S24 includes sending a vehicle identification request message to the DoIP edge node again if the DoIP node does not receive the vehicle identification response message after time T.

8. A DoIP node VIN / GID synchronization device in a vehicle, which is used to implement a DoIP node VIN / GID synchronization communication method in a vehicle as claimed in any one of claims 1 to 7, characterized in that: The synchronization device includes an external diagnostic instrument, an edge node synchronization module and an internal node synchronization module; The external diagnostic instrument is communicatively connected to the edge node synchronization module, and is used to write the vehicle identification code into the DoIP edge node, and can detect the synchronization status after the DoIP edge node and the DoIP node complete synchronization; The edge node synchronization module is used to obtain the vehicle identification code and establish a connection with other DoIP nodes, and distribute the vehicle identification code to the DoIP nodes; The internal node synchronization module is used to establish a communication connection with the edge node synchronization module, set the VIN / GID of the DoIP edge node of the edge node synchronization module to its own VIN / GID, and complete the VIN / GID synchronization of the DoIP node in the vehicle.

9. A DoIP node VIN / GID synchronization device in a vehicle as claimed in claim 8, characterized in that: The edge node synchronization module includes: The vehicle identification code acquisition unit is used to write the vehicle identification code UDS into the DoIP edge node and update the VIN / GID synchronization status; A first communication unit, used to obtain a vehicle identification request message of a DoIP node from an internal node synchronization module, send a vehicle identification response message to the internal node synchronization module, and record whether communication is established with the internal node synchronization module; The identification code distribution unit is used to distribute the vehicle identification code to the internal node synchronization module that establishes communication.

10. A DoIP node VIN / GID synchronization device in a vehicle as claimed in claim 9, characterized in that: The internal node synchronization module includes: A second communication unit, used to send a vehicle identification request message to the edge node synchronization module, and receive a vehicle identification response message sent by the edge node synchronization module, and establish communication with the edge node synchronization module; The identification code receiving unit is used to receive the vehicle identification code sent by the edge node synchronization module, set the VIN / GID of the DoIP edge node to its own VIN / GID, and set the VIN / GID synchronization state to synchronized.