Inter-ECU vehicle identification number synchronization method and apparatus, and electronic device

Synchronizing vehicle identification codes between on-board diagnostic nodes through the DoIP protocol solves the tedious problem of writing identification codes between ECUs in the traditional method, achieves global synchronization of vehicle identification codes, simplifies the process and improves efficiency.

WO2024183770A1PCT designated stage expired Publication Date: 2024-09-12HOZON NEW ENERGY AUTOMOBILE CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2024/080395
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-03-07
Filing Date
2024-03-06
Publication Date
2024-09-12

AI Technical Summary

Technical Problem

In on-board diagnostic technology, the traditional method requires writing the vehicle identification code independently to each ECU. The steps are cumbersome and redundant, and there is a lack of simplified synchronization methods.

Method used

The vehicle identification code is obtained at the edge diagnosis node through the DoIP protocol, and information interaction is established with the internal diagnosis node, and distributed to the domain controller to achieve synchronization of the vehicle identification code, which can be synchronized to all ECUs with only one write.

Benefits of technology

It simplifies the vehicle identification code writing process, reduces operating steps, improves efficiency, and achieves global synchronization of vehicle identification codes.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024080395_12092024_PF_FP_ABST
    Figure CN2024080395_12092024_PF_FP_ABST
Patent Text Reader

Abstract

The present invention provides an inter-ECU vehicle identification number synchronization method and apparatus, and an electronic device. The method, which is applied to an edge diagnostic node, comprises: acquiring a vehicle identification number, the vehicle identification number being written to the edge diagnostic node by means of a DoIP protocol; establishing information interaction with an internal diagnostic node, the internal diagnostic node being a diagnostic node other than the edge diagnostic node; and distributing the vehicle identification number to a domain controller of the internal diagnostic node, the domain controller supporting the DoIP protocol. The method, which is applied to an internal diagnostic node, comprises: establishing information interaction with an edge diagnostic node; receiving a vehicle identification number distributed by the edge diagnostic node; and updating the vehicle identification number in a nonvolatile memory of the internal diagnostic node. In the present invention, there is no need to separately write the vehicle identification number to each ECU by means of a diagnostic instrument. Instead, expansion is performed by means of functions of the DoIP protocol to complete the vehicle identification number synchronization process. The vehicle identification number may be synchronized to all ECUs by writing same only once, further simplifying the write process.
Need to check novelty before this filing date? Find Prior Art

Description

Method, device and electronic device for synchronizing vehicle identification codes between ECUs Technical Field

[0001] The present invention mainly relates to the technical field of on-board diagnostics, and in particular to a method, device and electronic equipment for synchronizing vehicle identification codes between ECUs. Background Art

[0002] Traditional on-board diagnostics (OBD) technology encapsulates and transmits Unified Diagnostic Services (UDS) diagnostic messages via CAN (Controller Area Network), LIN (Local Interconnect Network), or Flexray buses. In contrast, the Diagnostic Communication over Internet Protocol (DoIP) encapsulates and transmits UDS protocol data via Ethernet. DoIP is a protocol itself, regulated by the ISO 13400 standard.

[0003] Because DoIP can transmit large amounts of data, has a secure authentication mechanism, fast response speed, and can perform remote diagnosis via Ethernet, DoIP has become an inevitable trend in on-board diagnostics and has been applied in the actual development of major manufacturers.

[0004] A DoIP entity is defined as an ECU (Electronic Control Unit) device based on automotive Ethernet and supporting the 13400 protocol. A DoIP entity with routing functionality is called a DoIP gateway. The node that exclusively interacts with external diagnostic instruments is called a DoIP edge node or edge diagnostic node. Typically, a central gateway serves as an edge node, also known as a DoIP edge gateway.

[0005] An ECU is a microcomputer controller specifically designed for use in automobiles. Like a regular computer, it consists of a microprocessor, memory, input / output interfaces, an analog-to-digital converter, and large-scale integrated circuits such as those for shaping and driving. In on-board diagnostics (OBD), each ECU must be programmed with a vehicle identification number (VIN), which identifies the vehicle in which it is installed. Typically, before the ECUs are assembled and installed in a vehicle, they do not have VINs; only the vehicle manufacturer has the necessary capabilities to write these numbers. After the vehicle is assembled, the VINs of each ECU must be individually programmed using a diagnostic tool, a complex and tedious process.

[0006] Summary of the Invention

[0007] The technical problem to be solved by the present invention is to provide a method, device and electronic device for synchronizing vehicle identification codes between ECUs. The vehicle identification code can be synchronized to all ECUs by writing it only once, and the writing process is further simplified.

[0008] To solve the above technical problems, in the first aspect, the present invention provides a method for synchronizing vehicle identification codes between ECUs, which is applied to an edge diagnostic node, where the edge diagnostic node is a diagnostic node that directly interacts with the outside, including: obtaining a vehicle identification code, wherein the vehicle identification code is written to the edge diagnostic node through the DoIP protocol; establishing information interaction with an internal diagnostic node, wherein the internal diagnostic node is a diagnostic node other than the edge diagnostic node; distributing the vehicle identification code to the domain controller of the internal diagnostic node, wherein the domain controller supports the DoIP protocol.

[0009] Optionally, establishing information interaction with the internal diagnostic node includes: establishing information interaction with the internal diagnostic node based on a vehicle announcement, wherein the vehicle announcement is a message sent by the edge diagnostic node in a broadcast form.

[0010] Optionally, establishing information interaction with the internal diagnostic node also includes: on the basis of completing all the vehicle announcements, if there is an internal diagnostic node that has not synchronized the vehicle identification code, sending a vehicle discovery request, wherein the vehicle discovery request is a message sent by the edge diagnostic node in unicast form.

[0011] Optionally, it also includes: obtaining the vehicle identification code synchronization status of all the internal diagnostic nodes, and mapping the synchronization status into a data identifier, wherein the data identifier is used by the external diagnostic instrument to sense whether the vehicle identification code of the entire vehicle is synchronized.

[0012] In the second aspect, the present invention provides a method for synchronizing vehicle identification codes between ECUs, which is applied to internal diagnostic nodes, where the internal diagnostic nodes are diagnostic nodes other than edge diagnostic nodes, and the edge diagnostic nodes are diagnostic nodes that directly interact with the outside, including: establishing information interaction with the edge diagnostic nodes; receiving the vehicle identification code distributed by the edge diagnostic nodes, wherein the vehicle identification code is written to the edge diagnostic nodes through the DoIP protocol; and updating the vehicle identification code in its own non-volatile memory.

[0013] Optionally, establishing information interaction with the edge diagnostic node includes: executing a vehicle discovery response after receiving a vehicle discovery request, wherein the vehicle discovery request is a message sent by the edge diagnostic node in a unicast form.

[0014] Optionally, the method further includes: if the vehicle identification code has been synchronized, changing its own state to indicate that the vehicle identification code has been synchronized, and carrying the state of the synchronized vehicle identification code to the vehicle discovery response.

[0015] Optionally, it also includes: if the vehicle identification code is not synchronized, changing its own state to indicate that the vehicle identification code and further action request are not synchronized, and carrying the state of the unsynchronized vehicle identification code and further action request to the vehicle discovery response.

[0016] In the third aspect, the present invention provides a vehicle identification code synchronization device between ECUs, which is applied to an edge diagnostic node, where the edge diagnostic node is a diagnostic node that directly interacts with the outside, and includes: an acquisition module for acquiring a vehicle identification code, wherein the vehicle identification code is written to the edge diagnostic node through the DoIP protocol; a first establishment module for establishing information interaction with an internal diagnostic node, wherein the internal diagnostic node is a diagnostic node other than the edge diagnostic node; a distribution module for distributing the vehicle identification code to the domain controller of the internal diagnostic node, wherein the domain controller supports the DoIP protocol.

[0017] In the fourth aspect, the present invention provides a vehicle identification code synchronization device between ECUs, which is applied to internal diagnostic nodes, wherein the internal diagnostic nodes are diagnostic nodes other than edge diagnostic nodes, and the edge diagnostic nodes are diagnostic nodes that directly interact with the outside, including: a second establishment module, used to establish information interaction with the edge diagnostic node; a receiving module, used to receive the vehicle identification code distributed by the edge diagnostic node, wherein the vehicle identification code is written to the edge diagnostic node through the DoIP protocol; an update module, used to update the vehicle identification code in its own non-volatile memory.

[0018] Compared with the prior art, the present invention has the following advantages: by obtaining the vehicle identification code, wherein the vehicle identification code is written to the edge diagnostic node through the DoIP protocol, and then establishing information interaction with the internal diagnostic node, wherein the internal diagnostic node is other diagnostic nodes except the edge diagnostic node, and finally distributing the vehicle identification code to the domain controller of the internal diagnostic node, wherein the domain controller supports the DoIP protocol to complete the vehicle identification code synchronization process, the vehicle identification code only needs to be written once to be synchronized to all ECUs, and the writing process is more simplified.

[0019] Summary of the Figures

[0020] The above and other features, properties and advantages of the present invention will become more apparent through the following description in conjunction with the accompanying drawings and embodiments, in which:

[0021] FIG1 is a timing diagram of vehicle identification code synchronization in the present invention;

[0022] FIG2 is a schematic flow chart of a method for synchronizing vehicle identification codes between ECUs according to an embodiment of the present invention;

[0023] FIG3 is another schematic flow chart of a method for synchronizing vehicle identification codes between ECUs according to an embodiment of the present invention;

[0024] FIG4 is another schematic flow chart of a method for synchronizing vehicle identification codes between ECUs according to an embodiment of the present invention;

[0025] FIG5 is a schematic flow chart of a method for synchronizing vehicle identification codes between ECUs according to another embodiment of the present invention;

[0026] FIG6 is a schematic structural diagram of a device for synchronizing vehicle identification codes between ECUs according to an embodiment of the present invention;

[0027] FIG7 is a schematic structural diagram of a vehicle identification code synchronization device between ECUs according to another embodiment of the present invention;

[0028] FIG8 is a schematic diagram of an electronic device according to an embodiment of the present invention.

[0029] Preferred embodiments of the present invention

[0030] The present invention is further described below in conjunction with specific implementation methods and accompanying drawings. More details are set forth in the following description to facilitate a full understanding of the present invention. However, the present invention can obviously be implemented in a variety of other ways different from the description. Those skilled in the art can make similar generalizations and deductions based on actual application situations without violating the connotation of the present invention. Therefore, the scope of protection of the present invention should not be limited by the content of this specific implementation method.

[0031] For example, a description later in the specification of a first feature being formed above or on a second feature may include an embodiment in which the first and second features are directly connected, or an embodiment in which an additional feature is formed between the first and second features, thereby eliminating the need for a direct connection between the first and second features. Furthermore, when a first element is described as being connected to or coupled to a second element, the description includes embodiments in which the first and second elements are directly connected or coupled to each other, as well as embodiments in which the first and second elements are indirectly connected or coupled to each other using one or more other intervening elements.

[0032] Although the present invention is disclosed above with reference to preferred embodiments, this is not intended to limit the present invention. Any person skilled in the art may make possible changes and modifications without departing from the spirit and scope of the present invention. Therefore, any modifications, equivalent variations, and modifications made to the above embodiments in accordance with the technical essence of the present invention without departing from the content of the technical solution of the present invention shall fall within the scope of protection defined by the claims of the present invention.

[0033] Example 1

[0034] FIG1 is a timing diagram of vehicle identification code synchronization in the present invention, and FIG2 is a flow chart of a method for synchronizing vehicle identification codes between ECUs according to an embodiment of the present invention. Referring to FIG1 and FIG2 , the illustrated method 200 can be applied to an edge diagnostic node, which is a diagnostic node that directly interacts with the outside world and includes:

[0035] S210: Acquire a vehicle identification code, wherein the vehicle identification code is written to the edge diagnosis node through the DoIP protocol.

[0036] In the context of vehicle Ethernet architectures, with in-vehicle Ethernet serving as the backbone network, the Ethernet-based diagnostic protocol DoIP has become the mainstream diagnostic method. As the only diagnostic node that directly interacts with external diagnostic instruments, the central gateway (edge ​​diagnostic node or edge node) serves as the master controller for vehicle identification code synchronization. The vehicle identification code is written to the central gateway once via the DoIP protocol.

[0037] In this embodiment, if the carrier of the vehicle identification code is uncertain, a campaign can be adopted for the vehicle identification code synchronization master (Master, relative to the slave). For example, any DoIP entity carrying the vehicle identification code can serve as a synchronization master, and a final synchronization master is selected through the campaign to take the lead in vehicle identification code synchronization.

[0038] S220: Establish information interaction with internal diagnosis nodes, where the internal diagnosis nodes are other diagnosis nodes except the edge diagnosis nodes.

[0039] Typically, internal diagnostic nodes (internal nodes or non-central gateways, often referred to as diagnostic nodes) are routed by the central gateway and do not interact directly to improve security.

[0040] In this embodiment, the central gateway acts as an edge node and has the routing addresses of all diagnostic nodes in the vehicle, including IP addresses and diagnostic logical addresses. According to the DoIP protocol requirements, the routing address of the diagnostic node is determined by the IP address and diagnostic logical address to implement the routing function.

[0041] In some embodiments, information exchange with the internal diagnostic node can be established based on vehicle announcements, where vehicle announcements are messages sent by the edge diagnostic node in a broadcast format. Of course, the prerequisite for establishing such information exchange is that the central gateway must have a vehicle announcement function based on the DoIP protocol.

[0042] Vehicle announcements can be in Payload format, including the VIN number, logical address, EID, GID, further action required, VIN / GID sync status, etc. Furthermore, the central gateway can actively make three vehicle announcements (with the vehicle identification code) during the startup process.

[0043] In some embodiments, establishing information interaction with an internal diagnostic node may also include: after completing all vehicle announcements, if there is an internal diagnostic node that has not synchronized the vehicle identification code, sending a vehicle discovery request, where the vehicle discovery request is a message sent by the edge diagnostic node in unicast form.

[0044] For example, after completing three vehicle announcements, with an interval of 500ms (INTERVAL_TIME) between the three announcements, or if the diagnostic node has not synchronized the vehicle identification code, the central gateway will send a vehicle discovery request after a delay of 1s. Generally, the vehicle discovery request is executed up to three times.

[0045] In this embodiment, after receiving all vehicle discovery responses, if the vehicle discovery response has an unsynchronized vehicle identification code and a further action request, a vehicle announcement is performed again. For example, after the central gateway receives vehicle discovery responses from all diagnostic nodes and there is a vehicle discovery response with a VIN / GID sync status of 0 and a Further action required of 1, it immediately sends a vehicle announcement (with the vehicle identification code). A VIN / GID sync status of 0 and a Further action required of 1 indicates that the diagnostic node has not synchronized the vehicle identification code and has a further action request.

[0046] S230: Distribute the vehicle identification code to the domain controller of the internal diagnostic node, where the domain controller supports the DoIP protocol.

[0047] In the vehicle network architecture of this embodiment, on the premise that all domain controllers support the DoIP protocol, the central gateway distributes the vehicle identification code to each domain controller that supports the DoIP protocol, and completes the vehicle identification code synchronization through certain interactions.

[0048] For ECUs that do not support the DoIP protocol, namely CAN network nodes connected to the domain controller, the domain controller itself controls internal writing. Specifically, for ECUs connected to CAN network nodes connected to the domain controller, after receiving the vehicle identification code synchronization request from the synchronization host, the domain controller can first respond to vehicle discovery, then perform CAN-based diagnosis on the connected network node based on the received vehicle identification code, and then write the vehicle identification code to the ECU.

[0049] FIG3 is another flowchart of a method for synchronizing vehicle identification codes between ECUs according to an embodiment of the present invention. Referring to FIG3 , in some implementations, the method 200 may further include:

[0050] S240: If all internal diagnosis nodes have achieved vehicle identification code synchronization, or the number of notifications of vehicle discovery requests has reached an upper limit, the vehicle identification code synchronization process is terminated.

[0051] It can be understood that if all internal diagnostic nodes have achieved vehicle identification code synchronization, such as the VIN / GID sync status in the collected vehicle discovery response is 1, it means that the DoIP diagnostic node of the entire vehicle has completed the vehicle identification code synchronization, which indicates that this embodiment has achieved the function of vehicle identification code synchronization by writing the vehicle identification code to the central gateway once and then distributing it to the diagnostic node, and then terminates the vehicle identification code synchronization process.

[0052] On the other hand, if the maximum number of vehicle discovery request notifications is reached, even though VIN synchronization has not been achieved, termination is typically due to a failure that cannot be overcome by automated VIN synchronization and requires alternative resolution. For example, in this case, the operator can decide whether to perform another round of VIN synchronization, implement alternative methods to achieve VIN synchronization, or provide additional debugging methods to determine the cause of the VIN synchronization failure.

[0053] FIG4 is another flowchart of a method for synchronizing vehicle identification codes between ECUs according to an embodiment of the present invention. Referring to FIG4 , in some implementations, the method 200 may further include:

[0054] S250: Acquire the vehicle identification code synchronization status of all the internal diagnostic nodes, and map the synchronization status into a data identifier, wherein the data identifier is used by an external diagnostic instrument to sense whether the vehicle identification code of the entire vehicle is synchronized.

[0055] In this embodiment, the central gateway is the host for vehicle identification code synchronization, has the master control function of vehicle identification code synchronization, and has the maintenance function of the synchronization status of all diagnostic nodes. It maps the vehicle identification code synchronization status to a DID (data identifier), which enables the external diagnostic instrument to perceive whether the vehicle identification code of the entire vehicle has been synchronized by reading the DID.

[0056] Taking the timing diagram in Figure 1 as an example, after the central gateway obtains the vehicle identification code (written by the diagnostic instrument), the central gateway issues a vehicle announcement (carrying the vehicle identification code), and then establishes an information interaction relationship with the started diagnostic node. If there are still diagnostic nodes with unsynchronized vehicle identification codes, the vehicle announcement will be made after an interval of INTERVAL_TIME. After three vehicle announcements, the vehicle discovery request will be sent after a delay of DELAY_TIME. After the above process, if there are still diagnostic nodes with unsynchronized vehicle identification codes, that is, the vehicle identification code synchronization of all diagnostic nodes is not completed, the above synchronization process can be repeated. The central gateway then obtains the vehicle identification code synchronization status of all internal diagnostic nodes, and maps the synchronization status to a data identifier. The external diagnostic instrument reads the vehicle identification code synchronization status from the central gateway, that is, it senses whether the vehicle identification code of the entire vehicle is synchronized through the data identifier.

[0057] The vehicle identification code synchronization method between ECUs provided in this embodiment obtains the vehicle identification code, wherein the vehicle identification code is written to the edge diagnostic node through the DoIP protocol, and then establishes information interaction with the internal diagnostic node, wherein the internal diagnostic node is other diagnostic nodes except the edge diagnostic node, and finally distributes the vehicle identification code to the domain controller of the internal diagnostic node, wherein the domain controller supports the DoIP protocol to complete the vehicle identification code synchronization process. The vehicle identification code only needs to be written once to be synchronized to all ECUs, and the writing process is further simplified.

[0058] Example 2

[0059] FIG5 is a flow chart of a method for synchronizing vehicle identification codes between ECUs according to another embodiment of the present invention. In conjunction with FIG1 and FIG5 , the method 500 is applied to internal diagnostic nodes. Internal diagnostic nodes are diagnostic nodes other than edge diagnostic nodes. Edge diagnostic nodes are diagnostic nodes that directly interact with the outside world, and include:

[0060] S510: Establish information interaction with the edge diagnosis node.

[0061] In this embodiment, the internal diagnostic node is routed by the central gateway and does not interact directly. It has a vehicle discovery function based on the DoIP protocol, and vehicle announcements do not need to be implemented.

[0062] If the diagnostic node in the vehicle starts faster than the central gateway, it can receive the vehicle announcement from the central gateway carrying the vehicle identification code and obtain the vehicle identification code; if the diagnostic node in the vehicle starts slower than the central gateway, it is very likely that it will not receive the vehicle announcement from the central gateway and will not obtain the vehicle identification code.

[0063] In some embodiments, establishing information interaction with the edge diagnostic node may further include: executing a vehicle discovery response after receiving a vehicle discovery request, wherein the vehicle discovery request is a message sent by the edge diagnostic node in unicast form.

[0064] The vehicle discovery response may be in Payload format, which includes the VIN code, logical address, EID, GID, Further action required (further action request), VIN / GID sync status (VIN code synchronization status), etc.

[0065] S520: Receive a vehicle identification code distributed by the edge diagnosis node, wherein the vehicle identification code is written to the edge diagnosis node through the DoIP protocol.

[0066] In the vehicle network architecture of this embodiment, on the premise that all domain controllers support the DoIP protocol, the diagnostic node receives the vehicle identification code distributed by the central gateway.

[0067] In some implementations, if the vehicle identification code has been synchronized, the state of the vehicle identification code can be changed to indicate that the vehicle identification code has been synchronized, and the state of the synchronized vehicle identification code can be carried in the vehicle discovery response.

[0068] Exemplarily, the DoIP diagnosis node that has synchronized the vehicle identification code sets the VIN / GID sync status to 1 and carries the synchronized vehicle identification code in a vehicle discovery response.

[0069] In some embodiments, if the vehicle identification code is not synchronized, the state of the vehicle identification code is changed to indicate that the vehicle identification code is not synchronized and a further action request is requested, and the state of the unsynchronized vehicle identification code and the further action request is carried in the vehicle discovery response.

[0070] Exemplarily, the DoIP diagnosis node that has not synchronized the vehicle identification code sets VIN / GID sync status to 0, sets Further action required to 1, and then executes the vehicle discovery response.

[0071] S530: Update the vehicle identification code in its own non-volatile memory.

[0072] As mentioned above, if the diagnostic node in the vehicle starts faster than the central gateway, it can receive the vehicle announcement from the central gateway carrying the vehicle identification code, obtain the vehicle identification code, complete the vehicle identification code synchronization, and then update the vehicle identification code in its own non-volatile memory.

[0073] The vehicle identification code synchronization method between ECUs provided in this embodiment establishes information interaction with the edge diagnostic node, then receives the vehicle identification code distributed by the edge diagnostic node, and finally updates the vehicle identification code in its own non-volatile memory to achieve vehicle identification code synchronization, making the process more simplified.

[0074] Example 3

[0075] FIG6 is a schematic diagram of the structure of a vehicle identification code synchronization device between ECUs according to an embodiment of the present invention. Referring to FIG6 , the device 600 shown is applied to an edge diagnostic node. The edge diagnostic node is a diagnostic node that directly interacts with the outside world and mainly includes:

[0076] The acquisition module 601 is used to acquire a vehicle identification code, wherein the vehicle identification code is written to the edge diagnosis node through the DoIP protocol.

[0077] The first establishing module 602 is configured to establish information interaction with an internal diagnosis node, wherein the internal diagnosis node is a diagnosis node other than the edge diagnosis node.

[0078] In some embodiments, the method further includes establishing information interaction with an internal diagnostic node based on a vehicle announcement, wherein the vehicle announcement is a message sent by an edge diagnostic node in a broadcast form.

[0079] In some embodiments, after all vehicle announcements are completed, if there is an internal diagnostic node that has not synchronized the vehicle identification code, a vehicle discovery request is sent, wherein the vehicle discovery request is a message sent by the edge diagnostic node in unicast form.

[0080] The distribution module 603 is configured to distribute the vehicle identification code to a domain controller of the internal diagnostic node, wherein the domain controller supports the DoIP protocol.

[0081] In some embodiments, the method further includes obtaining the vehicle identification code synchronization status of all internal diagnostic nodes and mapping the synchronization status to a data identifier, wherein the data identifier is used by the external diagnostic instrument to sense whether the vehicle identification code of the entire vehicle is synchronized.

[0082] The details of other operations performed by each module in this embodiment can be referred to the aforementioned embodiment 1 and will not be elaborated here.

[0083] The vehicle identification code synchronization device between ECUs provided in this embodiment obtains the vehicle identification code, wherein the vehicle identification code is written to the edge diagnostic node through the DoIP protocol, and then establishes information interaction with the internal diagnostic node, wherein the internal diagnostic node is other diagnostic nodes except the edge diagnostic node, and finally distributes the vehicle identification code to the domain controller of the internal diagnostic node, wherein the domain controller supports the DoIP protocol to complete the vehicle identification code synchronization process. The vehicle identification code only needs to be written once to be synchronized to all ECUs, and the writing process is further simplified.

[0084] Example 4

[0085] FIG7 is a schematic diagram of the structure of an inter-ECU vehicle identification code synchronization device according to another embodiment of the present invention. Referring to FIG7 , the device 700 shown is applied to an internal diagnostic node. An internal diagnostic node is a diagnostic node other than an edge diagnostic node. An edge diagnostic node is a diagnostic node that directly interacts with the outside world. The device mainly includes:

[0086] The second establishing module 701 is used to establish information interaction with the edge diagnosis node.

[0087] In some embodiments, after receiving a vehicle discovery request, a vehicle discovery response is executed, wherein the vehicle discovery request is a message sent by the edge diagnostic node in a unicast form.

[0088] The receiving module 702 is configured to receive a vehicle identification code distributed by the edge diagnosis node, wherein the vehicle identification code is written to the edge diagnosis node via the DoIP protocol.

[0089] In some embodiments, if the vehicle identification code has been synchronized, the method further includes changing its own state to indicate that the vehicle identification code has been synchronized, and carrying the state of the synchronized vehicle identification code into the vehicle discovery response.

[0090] In some embodiments, if the vehicle identification code is not synchronized, the system changes its own state to indicate that the vehicle identification code is not synchronized and a further action request is made, and carries the state of the unsynchronized vehicle identification code and the further action request in the vehicle discovery response.

[0091] The updating module 703 is used to update the vehicle identification code in its own non-volatile memory.

[0092] The details of other operations performed by each module in this embodiment can be referred to the aforementioned embodiment 2 and will not be elaborated here.

[0093] The inter-ECU vehicle identification code synchronization device provided in this embodiment establishes information interaction with the edge diagnostic node, then receives the vehicle identification code distributed by the edge diagnostic node, and finally updates the vehicle identification code in its own non-volatile memory to achieve vehicle identification code synchronization, making the process more simplified.

[0094] In the embodiments of the present application, an inter-ECU vehicle identification code synchronization device can be a device, or a component, integrated circuit, or chip in a terminal. In the embodiments of the present application, an inter-ECU vehicle identification code synchronization device can be a device having an operating system. The operating system can be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiments of the present application.

[0095] The present application also provides an electronic device, comprising: a memory for storing programs or instructions executable by a processor; and a processor for executing the above-mentioned programs or instructions to implement the various processes of the above-mentioned embodiment of the vehicle identification code synchronization method between ECUs, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0096] Figure 8 is a schematic diagram of an electronic device according to an embodiment of the present invention. Electronic device 800 may include an internal communication bus 801, a processor 802, a read-only memory (ROM) 803, a random access memory (RAM) 804, and a communication port 805. When used in a personal computer, electronic device 800 may also include a hard disk 806. The internal communication bus 801 enables data communication between components of electronic device 800. Processor 802 can make decisions and issue prompts. In some embodiments, processor 802 may be composed of one or more processors. Communication port 805 enables data communication between electronic device 800 and the outside world. In some embodiments, electronic device 800 can send and receive information and data from a network via communication port 805. Electronic device 800 may also include various forms of program storage units and data storage units, such as a hard disk 806, a read-only memory (ROM) 803, and a random access memory (RAM) 804, capable of storing various data files used for computer processing and / or communication, as well as possible programs or instructions executed by processor 802. The result processed by the processor 802 is transmitted to the user equipment through the communication port 805 and displayed on the user interface.

[0097] The above-mentioned method for synchronizing vehicle identification codes between ECUs can be implemented as a computer program, stored in the hard disk 806, and recorded in the processor 802 for execution to implement any method for synchronizing vehicle identification codes between ECUs in this application.

[0098] An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by the processor, the various processes of the above-mentioned embodiment of the vehicle identification code synchronization method between ECUs are implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0099] The processor is the processor in the electronic device in the above embodiment. The readable storage medium includes a computer-readable storage medium, such as a computer read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.

[0100] A computer-readable medium may include a propagated data signal embodying computer program code, for example, in baseband or as part of a carrier wave. The propagated signal may be in a variety of forms, including electromagnetic, optical, etc., or a suitable combination thereof. A computer-readable medium may be any computer-readable medium other than a computer-readable storage medium that can be connected to an instruction execution system, apparatus, or device to communicate, propagate, or transmit the program for use. The program code on the computer-readable medium may be transmitted via any suitable medium, including radio, cable, fiber optic cable, radio frequency signal, or similar medium, or any combination of the above.

Claims

1. A method for synchronizing vehicle identification codes between ECUs, characterized in that: Applied to edge diagnosis nodes, which are diagnosis nodes that interact directly with the outside world, including: Obtaining a vehicle identification code, wherein the vehicle identification code is written to the edge diagnosis node via the DoIP protocol; Establishing information interaction with internal diagnosis nodes, wherein the internal diagnosis nodes are other diagnosis nodes except the edge diagnosis nodes; The vehicle identification code is distributed to a domain controller of the internal diagnostic node, wherein the domain controller supports the DoIP protocol.

2. The method for synchronizing vehicle identification codes between ECUs as claimed in claim 1, characterized in that: Establishing information interaction with internal diagnostic nodes includes: Information interaction is established with the internal diagnostic node based on the vehicle announcement, wherein the vehicle announcement is a message sent by the edge diagnostic node in a broadcast form.

3. The method for synchronizing vehicle identification codes between ECUs as claimed in claim 2, characterized in that: Establishing information interaction with the internal diagnostic node also includes: On the basis of completing all the vehicle announcements, if there is an internal diagnostic node that has not synchronized the vehicle identification code, a vehicle discovery request is sent, wherein the vehicle discovery request is a message sent by the edge diagnostic node in unicast form.

4. The method for synchronizing vehicle identification codes between ECUs as claimed in claim 1, characterized in that: Also includes: The vehicle identification code synchronization status of all the internal diagnostic nodes is obtained, and the synchronization status is mapped to a data identifier, wherein the data identifier is used by an external diagnostic instrument to sense whether the vehicle identification code of the entire vehicle is synchronized.

5. A method for synchronizing vehicle identification codes between ECUs, characterized in that: Applied to internal diagnostic nodes, the internal diagnostic nodes are diagnostic nodes other than edge diagnostic nodes, the edge diagnostic nodes are diagnostic nodes that interact directly with the outside, including: Establishing information interaction with the edge diagnosis node; Receiving a vehicle identification code distributed by the edge diagnosis node, wherein the vehicle identification code is written to the edge diagnosis node via a DoIP protocol; The vehicle identification code is updated in its own non-volatile memory.

6. The method for synchronizing vehicle identification codes between ECUs as claimed in claim 5, characterized in that: Establishing information interaction with the edge diagnosis node includes: After receiving the vehicle discovery request, a vehicle discovery response is executed, wherein the vehicle discovery request is a message sent by the edge diagnostic node in a unicast form.

7. The method for synchronizing vehicle identification codes between ECUs as claimed in claim 6, characterized in that: Also includes: If the vehicle identification code has been synchronized, its own state is changed to indicate that the vehicle identification code has been synchronized, and the state of the synchronized vehicle identification code is carried in the vehicle discovery response.

8. The method for synchronizing vehicle identification codes between ECUs as claimed in claim 6, characterized in that: Also includes: If the vehicle identification code is not synchronized, the state of the vehicle identification code is changed to indicate that the vehicle identification code and further action request are not synchronized, and the state of the vehicle identification code and further action request are carried in the vehicle discovery response.

9. An inter-ECU vehicle identification code synchronization device, characterized in that: Applied to edge diagnosis nodes, which are diagnosis nodes that interact directly with the outside world, including: An acquisition module, used for acquiring a vehicle identification code, wherein the vehicle identification code is written to the edge diagnosis node via a DoIP protocol; A first establishing module, used to establish information interaction with an internal diagnosis node, wherein the internal diagnosis node is a diagnosis node other than the edge diagnosis node; A distribution module is used to distribute the vehicle identification code to a domain controller of the internal diagnostic node, wherein the domain controller supports the DoIP protocol.

10. A vehicle identification code synchronization device between ECUs, characterized in that: Applied to internal diagnostic nodes, the internal diagnostic nodes are diagnostic nodes other than edge diagnostic nodes, the edge diagnostic nodes are diagnostic nodes that interact directly with the outside, including: A second establishing module, used to establish information interaction with the edge diagnosis node; A receiving module, configured to receive a vehicle identification code distributed by the edge diagnosis node, wherein the vehicle identification code is written to the edge diagnosis node via a DoIP protocol; The updating module is used to update the vehicle identification code in its own non-volatile memory.

Citation Information

Patent Citations

  • Synchronization method for DoIP entity in vehicle Ethernet, and DoIP entity

    CN109347590A

  • Remote diagnosis method of vehicle end Ethernet node based on SOA service

    CN115167347A

  • Method and device for synchronizing vehicle identification codes among ECUs (Electronic Control Units) and electronic equipment

    CN116243681A

  • Vehicle-mounted Ethernet DoIP node vehicle identification information synchronization method and vehicle

    CN116781733A

  • Communication system

    JP2018074425A