A vehicle ECU identification method and device and related equipment

By sending data packets to the CAN bus to record voltage values ​​and using clustering algorithms to generate ECU topology maps, the problem of the difficulty in quickly identifying the ECU topology structure of connected vehicles is solved, achieving fast and uncrackable ECU identification and improving the efficiency of safety testing.

CN115840434BActive Publication Date: 2025-11-28HANGZHOU ANHENG INFORMATION SECURITY TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202111469956.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-03
Publication Date
2025-11-28
Estimated Expiration
2041-12-03

AI Technical Summary

Technical Problem

In existing technologies, it is difficult to quickly and easily identify the ECU topology of connected vehicles using black-box identification, and third-party security vendors cannot clearly understand the internal structure of the vehicle.

Method used

By sending data packets to the CAN bus to record voltage values ​​and using clustering algorithms to generate ECU topology maps, the topology of vehicle ECUs can be identified by utilizing the characteristic that different ECUs correspond to different voltages and one ECU corresponds to multiple CAN buses.

Benefits of technology

It enables rapid identification of the ECU topology within the vehicle without requiring vehicle hacking, improving the efficiency and accuracy of safety testing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115840434B_ABST
    Figure CN115840434B_ABST
Patent Text Reader

Abstract

The application discloses a vehicle ECU identification method, comprising the following steps: when an identification instruction is acquired, a data packet is sent to a specified CAN bus according to the identification instruction; a voltage value of the CAN bus when the data packet is sent is recorded; all the voltage values are processed by a preset clustering algorithm to obtain various clusters; and an ECU topology diagram is drawn by using the various clusters. According to the technical scheme provided by the application, different ECUs correspond to different voltages, and one ECU corresponds to multiple CAN buses, the voltage values of the CAN buses are recorded in the form of sending data packets to the CAN buses, then all the voltage values are processed by a clustering algorithm to generate various clusters, and thus, the ECU topology structure of the current vehicle can be generated according to the various clusters. The application also discloses a vehicle ECU identification device, system and computer readable storage medium, which have the above beneficial effects.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of vehicle safety, in particular to a vehicle ECU identification method, and relates to a vehicle ECU identification device, system and computer readable storage medium. BACKGROUND

[0002] Current connected vehicles often have safety problems, but the current safety intervention is relatively slow, so there is a demand for a large number of connected vehicle black box tests. For any new connected vehicle, the three-party safety manufacturer is not clear about the internal structure of the vehicle. Therefore, how to conveniently and quickly identify the topology of the ECUs in the vehicle is a problem that needs to be solved by those skilled in the art. SUMMARY

[0003] The purpose of the present application is to provide a vehicle ECU identification method which can conveniently and quickly identify the topology of the ECUs in the vehicle. Another purpose of the present application is to provide a vehicle ECU identification device, system and computer readable storage medium, all of which have the above-mentioned beneficial effects.

[0004] In a first aspect, the present application provides a vehicle ECU identification method, comprising:

[0005] When the identification instruction is obtained, a data packet is sent to a specified CAN bus according to the identification instruction;

[0006] The voltage value of the CAN bus when the data packet is sent is recorded;

[0007] All the voltage values are clustered by using a preset clustering algorithm to obtain various clusters;

[0008] An ECU topology diagram is generated by using each cluster.

[0009] Preferably, the identification instruction is obtained, comprising:

[0010] When the OBD interface connection information is sensed, the identification instruction is automatically responded.

[0011] Preferably, the data packet is sent to the specified CAN bus according to the identification instruction, comprising:

[0012] The data packet is sent to all CAN buses with CAN ID of 0x000 to 0x7FF according to the identification instruction.

[0013] Preferably, the voltage value of the CAN bus when the data packet is sent is recorded, comprising:

[0014] The voltage value of the CAN bus when the data packet is sent is recorded at a preset time interval.

[0015] Preferably, the clustering algorithm is used to cluster all the voltage values to obtain various clusters, including:

[0016] The K-means clustering algorithm is used to cluster all the voltage values to obtain the various clusters.

[0017] Preferably, the K-means clustering algorithm is used to cluster all the voltage values to obtain the various clusters, including:

[0018] According to a preset proportion, all the voltage values are divided to obtain first sample data and second sample data;

[0019] The first sample data is subjected to hierarchical clustering, and each cluster category is determined through type identification;

[0020] Based on each of the cluster categories, the second sample data is subjected to K-means operation to obtain the various clusters; wherein the K value is the number of the cluster categories.

[0021] Preferably, the determination of each cluster category through type identification includes:

[0022] According to the keyword frequency, type identification is performed to obtain each of the cluster categories.

[0023] In a second aspect, the application further discloses a vehicle ECU identification device, including:

[0024] A data packet sending module is configured to send a data packet to a specified CAN bus according to an identification instruction when the identification instruction is acquired;

[0025] A voltage recording module is configured to record the voltage value of the CAN bus when the data packet is sent;

[0026] A clustering module is configured to use a preset clustering algorithm to cluster all the voltage values to obtain various clusters;

[0027] A topology graph drawing module is configured to draw an ECU topology graph using each of the clusters.

[0028] In a third aspect, the application further discloses a vehicle ECU identification system, including:

[0029] A memory is configured to store a computer program;

[0030] A processor is configured to execute the computer program to implement the steps of any of the vehicle ECU identification methods described above.

[0031] In a fourth aspect, the present application also discloses a computer readable storage medium, which stores a computer program. When the computer program is executed by a processor, the steps of any of the vehicle ECU identification methods described above are implemented.

[0032] The vehicle ECU identification method provided by the present application comprises the following steps: when an identification instruction is acquired, a data packet is sent to a specified CAN bus according to the identification instruction; a voltage value of the CAN bus when the data packet is sent is recorded; all the voltage values are clustered by using a preset clustering algorithm to obtain various clusters; and an ECU topology diagram is generated by using the various clusters.

[0033] By applying the technical solution provided by the present application, based on the characteristics that different ECUs (Electronic Control Unit) correspond to different voltages and one ECU corresponds to multiple CAN (Controller Area Network) buses, the voltage values of the CAN buses are recorded by sending data packets to the CAN buses, then all the voltage values are clustered by using a clustering algorithm to generate various clusters. At this time, each cluster corresponds to the CAN bus of the same ECU, therefore, only the ECU name corresponding to one CAN bus in one cluster needs to be known, and the ECU names corresponding to all the other CAN buses in the cluster can be obtained, so that the topology structure of the vehicle ECU is identified.

[0034] The vehicle ECU identification device, system and computer readable storage medium provided by the present application all have the beneficial effects described above, and will not be described here again. BRIEF DESCRIPTION OF DRAWINGS

[0035] In order to more clearly illustrate the technical solutions in the prior art and the embodiments of the present application, the drawings needed to be used in the description of the prior art and the embodiments of the present application will be briefly introduced below. Of course, the drawings related to the embodiments of the present application described below are only a part of the embodiments of the present application, and for those skilled in the art, other drawings can also be obtained according to the provided drawings without creative labor, and the obtained other drawings also belong to the protection scope of the present application.

[0036] Figure 1 A flowchart of a vehicle ECU identification method provided by the present application;

[0037] Figure 2 A flowchart of another vehicle ECU identification method provided by the present application;

[0038] Figure 3 A structural diagram of a vehicle ECU identification device provided by the present application;

[0039] Figure 4 A structural schematic diagram of a vehicle ECU identification system provided by the present application. DETAILED DESCRIPTION

[0040] The core of the present application is to provide a vehicle ECU identification method which can conveniently and quickly identify the topology of ECUs in a vehicle in a black box manner. Another core of the present application is to provide a vehicle ECU identification device, system and computer readable storage medium, which also have the above beneficial effects.

[0041] In order to more clearly and completely describe the technical solutions in the embodiments of the present application, the technical solutions in the embodiments of the present application will be introduced below in conjunction with the drawings of the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative labor fall within the scope of protection of the present application.

[0042] Current connected vehicles often have safety problems, but the current safety intervention is relatively slow, so there is a large demand for black box testing of connected vehicles. For any new connected vehicle, the three-party safety manufacturer does not know the internal structure of the vehicle. Therefore, how to conveniently and quickly identify the topology of ECUs in a vehicle in a black box manner is a problem to be solved by those skilled in the art.

[0043] To solve the above technical problems, the present application provides a vehicle ECU identification method. The vehicle ECU identification method is based on the characteristics that different ECUs correspond to different voltages and one ECU corresponds to multiple CAN buses. The voltage values of each CAN bus are recorded by sending data packets to the CAN bus. Then, all voltage values are clustered by a clustering algorithm to generate clusters. At this time, each cluster corresponds to the CAN bus of the same ECU. Therefore, by knowing the ECU name corresponding to one CAN bus in a cluster, the ECU names corresponding to all other CAN buses in the cluster can be obtained, thereby identifying the topology of vehicle ECUs in a black box manner.

[0044] The present application provides a vehicle ECU identification method.

[0045] Please refer to Figure 1 , Figure 1 A flowchart of a vehicle ECU identification method provided by the present application. The vehicle ECU identification method can include:

[0046] S101: When an identification instruction is obtained, a data packet is sent to a specified CAN bus according to the identification instruction;

[0047] The step is to send a data packet to a specified CAN bus in the vehicle to record the voltage value during the data packet sending process, and then identify the vehicle ECU according to the recorded voltage value. Specifically, when the identification instruction is obtained, the data packet can be sent to the specified CAN bus based on the identification instruction. Of course, since the application aims to record the voltage value by sending the data packet to the CAN bus, the specific content of the data packet does not affect the implementation of the technical solution, which can be set by the technician, and the application does not limit it.

[0048] The identification instruction can be directly input by the technician through the front device, or a preset trigger condition can be set to automatically respond when the condition is met, and the application does not limit it.

[0049] In addition, to achieve more accurate vehicle ECU identification, the specified CAN bus is preferably all CAN buses in the vehicle.

[0050] S102: Record the voltage value of the CAN bus when sending the data packet;

[0051] The step is to record the voltage value of the CAN bus during the data packet sending process. Specifically, when sending a data packet to each CAN bus, the voltage value of the related pin of the CAN bus can be recorded to obtain the corresponding voltage value. On this basis, to further ensure the accuracy of the ECU identification result, multiple voltage values can be recorded by sending multiple packets to achieve more voltage value records.

[0052] S103: Use a preset clustering algorithm to cluster all voltage values to obtain clusters of each type;

[0053] The step is to implement clustering processing on all voltage value data to obtain clusters of each type. Specifically, after recording all voltage values, a preset clustering algorithm can be used to cluster all voltage values to obtain clusters of each type. It can be envisaged that each cluster obtained at this time corresponds to the CAN bus of the same ECU, so that only the ECU name corresponding to one CAN bus in a cluster is needed to know the ECU name corresponding to all other CAN buses in the cluster, thereby achieving vehicle ECU identification.

[0054] The specific type of the preset clustering algorithm does not affect the implementation of the technical solution, and the clustering processing of the voltage value can be implemented, and the application does not limit it.

[0055] S104: Draw an ECU topology map using each cluster.

[0056] The step is to realize the generation of the ECU topology map. Specifically, after obtaining each cluster through the clustering process, the ECU topology map can be drawn using each cluster to obtain the ECU topology map of the corresponding vehicle. Based on the ECU topology map, the technician can more intuitively and clearly understand the internal structure of the vehicle.

[0057] It can be seen that the vehicle ECU identification method provided in the application is based on the characteristics that different ECUs correspond to different voltages and one ECU corresponds to multiple CAN buses. The voltage values of each CAN bus are recorded in the form of sending data packets to the CAN bus, and then all voltage values are clustered by a clustering algorithm to generate various clusters. At this time, each cluster corresponds to the CAN bus of the same ECU. Therefore, only the ECU name corresponding to one CAN bus in one cluster needs to be known to obtain the ECU name corresponding to all other CAN buses in the cluster, thereby identifying the topology structure of the vehicle ECU.

[0058] In an embodiment of the application, obtaining the identification instruction can include automatically responding to the identification instruction when sensing OBD (On-Board Diagnostic, vehicle diagnostic system) interface connection information.

[0059] The preferred embodiment provides a method for obtaining an identification instruction, that is, automatically responding based on a preset trigger condition, which is the OBD interface connection information. Specifically, when the ECU of the vehicle needs to be identified, the OBD interface of the vehicle can be connected to establish a connection. Thus, the identification device can sense the OBD interface connection information, and automatically respond to the identification instruction based on the OBD interface connection information.

[0060] In an embodiment of the application, the above-mentioned sending data packets to the specified CAN bus according to the identification instruction can include sending data packets to all CAN buses with CAN ID from 0x000 to 0x7FF according to the identification instruction.

[0061] As described above, to achieve more accurate vehicle ECU identification, the specified CAN bus can be all CAN buses in the vehicle. On this basis, the embodiment of the application provides a specific CAN bus, that is, sending data packets to all CAN buses with CAN ID from 0x000 to 0x7FF according to the identification instruction, so as to record the corresponding voltage values.

[0062] In an embodiment of the application, the above-mentioned recording the voltage value of the CAN bus when sending data packets can include recording the voltage value of the CAN bus when sending data packets at a preset time interval.

[0063] As described above, to further ensure the accuracy of the ECU identification result, a plurality of voltage values can be recorded by multiple times of packet sending, and a larger number of voltage values can be recorded. On this basis, voltage values can be recorded according to a preset time interval, so as to obtain a larger number of voltage values. The specific value of the preset time interval does not affect the implementation of the technical solution, and can be set by the technician according to the actual situation. The present application does not limit this.

[0064] In an embodiment of the present application, the above-mentioned clustering processing of all voltage values by using a preset clustering algorithm to obtain clusters of each type can include: clustering processing of all voltage values by using a K-means clustering algorithm to obtain clusters of each type.

[0065] The embodiment of the present application provides a specific type of preset clustering algorithm, i.e. K-means clustering algorithm, to realize the clustering processing of voltage values and obtain clusters of each type. Of course, the K-means clustering algorithm is only one implementation provided by the embodiment of the present application, and is not unique. Other types of clustering algorithms can also be used.

[0066] In an embodiment of the present application, the above-mentioned clustering processing of all voltage values by using a K-means clustering algorithm to obtain clusters of each type can include: dividing all voltage values according to a preset proportion to obtain first sample data and second sample data; performing hierarchical clustering (cluster.hierarchy) on the first sample data and determining the cluster type of each cluster through type recognition; performing K-means operation on the second sample data based on the cluster type of each cluster to obtain clusters of each type; wherein the value of K is the number of cluster types.

[0067] The embodiment of the present application provides a specific implementation process of clustering processing of all voltage values based on the K-means clustering algorithm. Specifically, all voltage values can be divided into first sample data and second sample data according to a preset proportion, wherein the first sample data is used to determine the cluster type, and the second sample data is used to divide the cluster type. On this basis, hierarchical clustering can be performed on the first sample data, and type recognition can be performed on each cluster obtained by clustering to determine the cluster type of each cluster. Further, K-means operation can be performed on the second sample data based on the cluster type of each cluster, so as to obtain clusters of each known type, and the value of K is the number of cluster types. That is, this implementation process is equivalent to generating classification tags through the first sample data, and then matching the tags of the second sample data by using the classification tags, so as to divide the cluster type.

[0068] It should be noted that the value of the above preset ratio does not affect the implementation of the technical solution, which can be set by the technician according to the actual situation, and the present application does not limit it. Generally speaking, the number of first sample data is less than the number of second sample data.

[0069] In an embodiment of the present application, the above determination of each cluster type through type identification can include: type identification according to keyword frequency to obtain each cluster type.

[0070] The embodiment of the present application provides a cluster type identification method, that is, identification according to the frequency of keyword appearance. It can be understood that different ECUs correspond to different voltage values, so the determination of cluster type can be realized according to the appearance frequency of the specific value of voltage value. Of course, for clusters that cannot be automatically identified, they can be directly outputted, and the technician can manually identify them according to technical experience.

[0071] On the basis of the above embodiments:

[0072] Please refer to Figure 2 , Figure 2 The flowchart of another vehicle ECU identification method provided by the present application is shown in the figure, and the specific implementation process can include:

[0073] Step one, connect the vehicle through the OBD interface open on the vehicle;

[0074] Step two, traverse the CAN bus ID to determine the CAN bus with CAN ID 0x000-0x7FF and send data packets;

[0075] Step three, start low-frequency scanning of all CAN buses through automatic script;

[0076] Step four, the scanning period can be set to 300ms once, and the voltage value during the scanning process of each CAN ID is automatically recorded;

[0077] Step five, automatically run the Kmeans clustering algorithm, first perform hierarchical clustering on 30% of the voltage value data to obtain the cluster center, and then automatically define the category according to the appearance frequency of the keyword to determine the cluster type. In addition, for clusters that cannot be classified, manual identification can be performed; further, the remaining 70% of the voltage values are subjected to k-means clustering operation (K-means clustering operation), wherein k is the number of cluster centers, i.e. the number of cluster classifications.

[0078] Step six, generate clusters, each cluster is a CAN ID of the same ECU;

[0079] Step seven, according to the generated cluster chart, it can be directly observed how many clusters, how many IDs in each cluster;

[0080] Step eight, the technician can directly obtain the topology of the ECU without cracking the car according to the generated chart.

[0081] It can be seen that the vehicle ECU identification method provided by the embodiment of the application is based on the characteristics that different ECUs correspond to different voltages and one ECU corresponds to multiple CAN buses, records the voltage values of the CAN buses in the form of sending data packets to the CAN buses, and then performs clustering processing on all the voltage values by using a clustering algorithm to generate various clusters. At this time, each cluster corresponds to the CAN bus of the same ECU, so only the ECU name corresponding to one CAN bus in one cluster needs to be known, and then the ECU names corresponding to all the CAN buses in the cluster can be known, so that the topology of the vehicle ECU is identified in a black box.

[0082] The embodiment of the application provides a vehicle ECU identification device.

[0083] Please refer to Figure 3 , Figure 3 The vehicle ECU identification device provided by the embodiment of the application can include:

[0084] The data packet sending module 1 is configured to send a data packet to a specified CAN bus according to an identification instruction when the identification instruction is acquired;

[0085] The voltage recording module 2 is configured to record the voltage value of the CAN bus when the data packet is sent;

[0086] The clustering module 3 is configured to perform clustering processing on all the voltage values by using a preset clustering algorithm to obtain various clusters;

[0087] The topology chart drawing module 4 is configured to draw an ECU topology chart by using the various clusters.

[0088] It can be seen that the vehicle ECU identification device provided by the embodiment of the application is based on the characteristics that different ECUs correspond to different voltages and one ECU corresponds to multiple CAN buses, records the voltage values of the CAN buses in the form of sending data packets to the CAN buses, and then performs clustering processing on all the voltage values by using a clustering algorithm to generate various clusters. At this time, each cluster corresponds to the CAN bus of the same ECU, so only the ECU name corresponding to one CAN bus in one cluster needs to be known, and then the ECU names corresponding to all the CAN buses in the cluster can be known, so that the topology of the vehicle ECU is identified in a black box.

[0089] In an embodiment of the present application, the vehicle ECU identification device can further comprise an identification instruction acquisition module, configured to automatically respond to an identification instruction when the OBD interface connection information is sensed.

[0090] In an embodiment of the present application, the data packet sending module 1 can be specifically configured to send data packets to all CAN buses with CAN ID of 0x000 to 0x7FF according to the identification instruction.

[0091] In an embodiment of the present application, the voltage recording module 2 can be specifically configured to record the voltage value of the CAN bus when sending data packets at a preset time interval.

[0092] In an embodiment of the present application, the clustering module 3 can be specifically configured to perform clustering processing on all voltage values by using a K-means clustering algorithm to obtain clusters of each type.

[0093] In an embodiment of the present application, the clustering module 3 can comprise:

[0094] a data division unit, configured to divide all voltage values according to a preset proportion to obtain first sample data and second sample data;

[0095] a type identification unit, configured to perform hierarchical clustering on the first sample data and determine the cluster type of each cluster by type identification;

[0096] a cluster generation unit, configured to perform K-means operation on the second sample data based on the cluster type of each cluster to obtain clusters of each type; wherein K is the number of cluster types.

[0097] In an embodiment of the present application, the type identification unit can be specifically configured to perform type identification according to the keyword frequency to obtain the cluster type of each cluster.

[0098] For the device provided in the present application, please refer to the above method embodiments, which will not be repeated here.

[0099] An embodiment of the present application provides a vehicle ECU identification system.

[0100] Please refer to Figure 4 , Figure 4 A structure diagram of a vehicle ECU identification system provided in the present application can comprise:

[0101] a memory, configured to store a computer program;

[0102] a processor, configured to perform the computer program to realize the steps of any one of the above vehicle ECU identification methods.

[0103] As Figure 4As shown in the figure, the vehicle ECU identification system can include a processor 10, a memory 11, a communication interface 12 and a communication bus 13. The processor 10, the memory 11 and the communication interface 12 can communicate with each other through the communication bus 13.

[0104] In the embodiment of the present application, the processor 10 can be a central processing unit (CPU), an application specific integrated circuit, a digital signal processor, a field programmable gate array or other programmable logic device, etc.

[0105] The processor 10 can call the program stored in the memory 11. Specifically, the processor 10 can perform the operations in the embodiments of the vehicle ECU identification method.

[0106] The memory 11 can store one or more programs. The program can include program code including computer operation instructions. In the embodiment of the present application, the memory 11 at least stores a program for implementing the following functions:

[0107] When the identification instruction is obtained, a data packet is sent to the specified CAN bus according to the identification instruction;

[0108] The voltage value of the CAN bus when the data packet is sent is recorded;

[0109] All voltage values are clustered by using a preset clustering algorithm to obtain various clusters;

[0110] An ECU topology diagram is generated by using each cluster.

[0111] In a possible implementation, the memory 11 can include a program storage area and a data storage area. The program storage area can store an operating system and at least one application required by a function, etc. The data storage area can store data created during use.

[0112] In addition, the memory 11 can include a high-speed random access memory and can also include a non-volatile memory, for example, at least one magnetic disk storage device or other volatile solid-state storage device.

[0113] The communication interface 12 can be an interface of a communication module, used for connecting with other devices or systems.

[0114] Of course, it should be noted that, Figure 4 The structure shown does not constitute a limitation on the vehicle ECU identification system in the embodiments of the present application. In actual applications, the vehicle ECU identification system can include more or fewer components than those shown, or some components can be combined. Figure 4 The structure shown does not constitute a limitation on the vehicle ECU identification system in the embodiments of the present application. In actual applications, the vehicle ECU identification system can include more or fewer components than those shown, or some components can be combined.

[0115] The embodiment of the present application provides a computer readable storage medium, and the computer readable storage medium stores a computer program. The computer program is executed by a processor to implement the steps of any vehicle ECU identification method.

[0116] The computer readable storage medium can include a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and various storage medium capable of storing program codes.

[0117] The computer readable storage medium provided by the present application is introduced in the above method embodiment, and the present application will not be repeated here.

[0118] The embodiments in the specification are described in a progressive manner, and each embodiment focuses on the difference from other embodiments. The same or similar parts of each embodiment can be referred to each other. For the device disclosed by the embodiment, since it corresponds to the method disclosed by the embodiment, the description is relatively simple, and the related parts can be referred to the method part.

[0119] The skilled person can further realize that the units and algorithm steps of the examples described in combination with the embodiments disclosed in the present application can be realized by electronic hardware, computer software or combination of the two. In order to clearly show the interchangeability of hardware and software, the composition and steps of each example have been described in the above description. Whether the functions are realized by hardware or software depends on the specific application and design constraints of the technical solution. The skilled person can use different methods to realize the described functions for each specific application, but such implementation should not be considered beyond the scope of the present application.

[0120] The steps of the method or algorithm described in combination with the embodiments disclosed in the present application can be directly implemented by hardware, software module executed by processor, or combination of the two. The software module can be placed in random access memory (RAM), memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, register, hard disk, removable disk, CD-ROM or any other form of storage medium known in the art.

[0121] The technical solutions provided by the present application are described in detail above. The principles and implementation manners of the present application are described by applying specific examples, and the above description of the examples is only used to help understand the method of the present application and its core idea. It should be pointed out that, for ordinary skilled persons in the technical field, some improvements and modifications can be made to the present application without departing from the principles of the present application, and these improvements and modifications also fall within the protection scope of the present application.

Claims

1. A vehicle ECU identification method characterized by comprising: The method comprises the following steps: When the identification instruction is acquired, a data packet is sent to a specified CAN bus according to the identification instruction; The specified CAN bus is all CAN buses in a vehicle; A voltage value of the CAN bus when the data packet is sent is recorded; All the voltage values are processed by a preset clustering algorithm to obtain various clusters; Each cluster corresponds to a CAN bus of a vehicle ECU; An ECU topology graph is generated by using each cluster; The identification instruction is acquired, including automatically responding to the identification instruction when OBD interface connection information is sensed; An ECU topology graph is generated by using each cluster, including, for each cluster, determining a vehicle ECU corresponding to the cluster according to an ECU name corresponding to any CAN bus corresponding to the cluster, and generating the ECU topology graph according to all vehicle ECUs corresponding to the clusters.

2. The vehicle ECU identification method according to claim 1, characterized by, The data packet is sent to the specified CAN bus according to the identification instruction, including: The data packet is sent to all CAN buses with CAN ID being 0x000 to 0x7FF according to the identification instruction.

3. The vehicle ECU identification method according to claim 1, characterized by, The voltage value of the CAN bus when the data packet is sent is recorded, including: The voltage value of the CAN bus when the data packet is sent is recorded at a preset time interval.

4. The vehicle ECU identification method according to claim 1, characterized by, All the voltage values are processed by a preset clustering algorithm to obtain various clusters, including: All the voltage values are processed by a K-means clustering algorithm to obtain the various clusters.

5. The vehicle ECU identification method according to claim 4, characterized by, All the voltage values are processed by a K-means clustering algorithm to obtain the various clusters, including: All the voltage values are divided according to a preset proportion to obtain first sample data and second sample data; Each cluster category is determined by type identification through hierarchical clustering of the first sample data; Based on each cluster category, the second sample data is processed by K-means operation to obtain the various clusters; wherein, the value of K is the number of the cluster categories.

6. The vehicle ECU identification method according to claim 5, characterized by, Each cluster category is determined by type identification, including: Each cluster category is obtained by type identification according to a keyword frequency.

7. A vehicle ECU identification device characterized by comprising: The method comprises the following steps: A data packet sending module is configured to send a data packet to a specified CAN bus according to an identification instruction when the identification instruction is acquired; The specified CAN bus is all CAN buses in a vehicle; A voltage recording module is configured to record a voltage value of the CAN bus when the data packet is sent; A clustering module is configured to process all the voltage values by a preset clustering algorithm to obtain various clusters; Each cluster corresponds to a CAN bus of a vehicle ECU; A topology graph drawing module is configured to generate an ECU topology graph by using each cluster; The data packet sending module is specifically configured to automatically respond to the identification instruction when OBD interface connection information is sensed. The topology mapping module is specifically configured to: for each cluster, determining a vehicle ECU corresponding to the cluster according to an ECU name corresponding to any CAN bus corresponding to the cluster; and generating the ECU topology map according to all vehicle ECUs corresponding to the clusters.

8. A vehicle ECU identification system characterized by comprising: Comprise: a memory for storing a computer program; a processor for implementing the steps of the vehicle ECU identification method according to any one of claims 1 to 6 when executing the computer program.

9. A computer-readable storage medium, characterized in that, The computer program is stored on the computer readable storage medium, and the computer program is executed by the processor to implement the steps of the vehicle ECU identification method according to any one of claims 1 to 6.

Citation Information

Patent Citations

  • Vehicle diagnosis method and vehicle diagnosis device

    CN107291068A

  • User network topology recognition device and method for low-voltage areas

    CN109617231A