Characteristic value-based controller automatic identification method in vehicle networking vehicle diagnosis
Through the controller automatic identification method based on feature values, the problem of low recognition and diagnosis efficiency of vehicle controllers in the prior art is solved, and the controller is quickly recognized by automatic identification of controllers is realized, and diagnostic efficiency is improved, providing a foundation for intelligent diagnosis.
Patent Information
- Application Number
- CN202510235278.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-02-28
- Publication Date
- 2025-05-30
AI Technical Summary
In the prior art, the identification and diagnosis of vehicle controllers rely on manual experience or attempts one by one, resulting in low diagnostic efficiency and accuracy.
The controller automatic identification method based on feature values is adopted. By querying the controller type, calculating the parameter feature value and selecting the parameters with the smallest feature value for filtering, the mismatched controller is gradually eliminated, and the automatic identification of the target controller is achieved.
It improves the efficiency of vehicle diagnosis, avoids the complexity and inefficiency in traditional methods, and provides basic technical support for intelligent diagnosis and one-click diagnosis.
Smart Images

Figure CN120065866A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of vehicle networking, and particularly to a method for automatically identifying a controller based on eigenvalue in vehicle networking vehicle diagnosis. Background Art
[0002] With the continuous development of vehicle networking technology, intelligent transportation has gradually become an important part of modern traffic management and services; vehicle diagnosis, as a part of the application of vehicle networking technology, has become a key technology to improve vehicle maintenance efficiency and ensure vehicle safety; the core of vehicle diagnosis lies in the identification and diagnosis of vehicle controllers, where vehicle controllers are the core components to realize various vehicle functions, involving multiple aspects such as engines, transmissions, braking systems, etc.; therefore, accurately identifying the type of vehicle controller and its related information is of great significance for vehicle fault diagnosis and maintenance.
[0003] Currently, many vehicle manufacturers do not uniformly standardize the maintenance and storage of vehicle controller information, and some offline repair shops do not obtain manufacturer data or relevant technical support, resulting in technicians often having to rely on experience or try different controllers one by one through diagnostic software when performing vehicle diagnosis; this way of manual experience judgment and repeated probing is not only time-consuming and laborious, but also greatly reduces the diagnostic efficiency and accuracy. Summary of the Invention
[0004] The purpose of the present invention is to solve the disadvantages existing in the prior art, and to propose a method for automatically identifying a controller based on eigenvalue in vehicle networking vehicle diagnosis.
[0005] To achieve the above purpose, the present invention adopts the following technical solutions: A method for automatically identifying a controller based on eigenvalue in vehicle networking vehicle diagnosis, comprising the following steps: S1: Query the corresponding vehicle controller set according to the controller type; During the vehicle diagnosis process, an engineer determines the controller type, queries in the controller list according to the controller type, and obtains all the controllers supported by this controller type; The controller list includes controller name, controller type, physical address CANID of the controller, etc.; Save the physical address CANID of the obtained controller into a set, denoted as ; ; wherein, is the physical address of the i-th controller; Furthermore, a controller contains multiple parameters, and each controller in the controller list is associated with a parameter list, and the parameter list includes parameter name and parameter ID.
[0006] S2: Filter out the responding controllers from all controllers according to the physical address CANID of the response. Under the premise of following the CAN protocol, send a connection instruction to the CAN bus through functional addressing. The connection instruction is a request frame, and it requires the responding controller to return its physical address CANID. Monitor all the physical address CANIDs responding on the CAN bus, and for the set perform filtering to obtain the physical address CANIDs that respond on the CAN bus and are included in the set , and obtain the corresponding controller parameter set for the physical address CANID from the parameter list. The controller parameter set includes the parameter names and parameter IDs of the controller. Each controller corresponds to multiple parameter names and parameter IDs. Form a control item with each physical address CANID and the corresponding controller parameter set, and save it into the set, denoted as ; Furthermore, if there is only 1 CANID in the set , the controller corresponding to this physical address CANID is the target controller. If the set contains multiple physical address CANIDs, go to step S3.
[0007] S3: Calculate the eigenvalue of each parameter, and use the parameter with the smallest eigenvalue to filter the controllers to obtain the target controller. It includes the following sub-steps: S31: Calculate the eigenvalue of each parameter of the controller. The method for calculating the parameter eigenvalue is as follows: ; Among them, is the j-th parameter ID in the i-th control item in the set , N is the size of the set , is the eigenvalue corresponding to , x refers to traversing the other controller parameters in the set ; Specifically, traverse each parameter ID in the set . Each time this parameter ID appears in other controllers in the set , the eigenvalue of this parameter ID is incremented by 1. The initial value of the eigenvalue of each parameter ID is 0. S32: Update the set of responding controllers according to the response situation of the CAN bus. Pair After calculating the eigenvalues of all parameters of each controller in the set, use the parameter with the smallest eigenvalue of this controller to send a request to the CAN bus. If there is a response for this parameter in the CAN bus, delete the control items in the set that do not contain this parameter; if there is no response for this parameter in the CAN bus, delete the control items in the set that contain this parameter; S33: Obtain the target controller; Repeat steps S31 and S32 until the size of the set is equal to 1, which is the target controller to be found.
[0008] Compared with the prior art, the beneficial effects of the present invention are as follows: The method for automatically identifying a controller based on eigenvalues in vehicle networking vehicle diagnosis proposed by the present invention clearly defines the controller type, calculates the parameter eigenvalues of each controller, and preferentially selects the parameter with the smallest eigenvalue for further screening. By interacting with the bus using the parameter with the smallest eigenvalue, the unmatched controllers are gradually eliminated; in the case of not knowing the vehicle controller, the traditional method of polling controllers is avoided, and the controller can be automatically identified quickly, which can improve the vehicle diagnosis efficiency and provide basic technical support for subsequent functions such as intelligent diagnosis and one-key diagnosis. Description of the Drawings
[0009] Figure 1 is a flowchart of the steps of a method for automatically identifying a controller based on eigenvalues in vehicle networking vehicle diagnosis of the present invention. Detailed Embodiment
[0010] To further understand the purpose, structure, features, and functions of the present invention, the following is a detailed description in conjunction with the embodiments.
[0011] As Figure 1 shown, a method for automatically identifying a controller based on eigenvalues in vehicle networking vehicle diagnosis includes the following steps: S1: Query the corresponding vehicle controller set according to the controller type; During vehicle diagnosis, the engineer determines the controller type and queries in the controller list according to the controller type to obtain all controllers supported by this controller type; The controller list includes the controller name, controller type, physical address CANID of the controller, etc.; Save the physical address CANID of the obtained controller to the set, denoted as ; ; wherein, is the physical address of the i-th controller; Furthermore, a controller contains multiple parameters, and each controller in the controller list is associated with a parameter list correspondingly. The parameter list contains a parameter name and a parameter ID.
[0012] S2: Filter out the responsive controllers from all controllers according to the physical address CANID of the response; Connect the computer to the vehicle's CAN bus through the CAN bus interface, and initialize and configure the CAN bus using libraries and tools that support the CAN protocol to achieve communication between the computer and the controller; the libraries and tools that support the CAN protocol include tools such as the python-can library, CANoe, and CANalyzer; Under the premise of following the CAN protocol, send a connection instruction to the CAN bus through functional addressing. The connection instruction is a request frame, requiring the responsive controller to return its physical address CANID; Listen to all the physical address CANIDs of the responses on the CAN bus through the python-can library, and filter the set to obtain the physical address CANIDs that respond on the CAN bus and are included in the set , and obtain the corresponding controller parameter set of the physical address CANID from the parameter list; The controller parameter set contains the parameter name and parameter ID of the controller, and each controller corresponds to multiple parameter names and parameter IDs; Form a control item with each physical address CANID and the corresponding controller parameter set, save it to the set, and denote it as ; Furthermore, if there is only 1 CANID in the set , the controller corresponding to this physical address CANID is the target controller; If the set contains multiple physical address CANIDs, go to step S3.
[0013] By first filtering out all relevant controllers from the controller list according to the controller type and then performing response filtering based on the physical address CANID, the complexity of searching all controllers in the vehicle is effectively avoided, and the diagnostic efficiency is improved.
[0014] S3: Calculate the eigenvalue of each parameter, and use the parameter with the smallest eigenvalue to filter the controllers to obtain the target controller; It includes the following sub-steps: S31: Calculate the eigenvalue of each parameter of the controller; The method for calculating the parameter eigenvalue is as follows: ; Among them, is the set the j-th parameter ID in the i-th control item in, and N is the set size of, is the corresponding eigenvalue, x refers to traversing other controller parameters in the set ; Specifically, traverse each parameter ID in the set . Each time this parameter ID appears in other controllers in the set , the eigenvalue of this parameter ID is incremented by 1. The initial value of the eigenvalue of each parameter ID is 0; If a certain parameter appears in multiple controllers, its eigenvalue will be larger, indicating that the uniqueness of this parameter is poor; on the contrary, if a certain parameter only appears in a certain controller, its eigenvalue will be smaller, indicating that the uniqueness of this parameter is higher. Calculating the eigenvalues of controller parameters helps to distinguish the characteristics of different controllers and identify specific controllers.
[0015] S32: Update the set of response controllers according to the response situation of the CAN bus; After calculating the eigenvalues of all parameters of each controller in the set, use the parameter with the smallest eigenvalue of this controller to send a request to the CAN bus. If this parameter has a response in the CAN bus, then delete the control item in the set that does not contain this parameter; if this parameter does not have a response in the CAN bus, then delete the control item in the set that contains this parameter Dynamically update the controller set using the CAN bus response situation, interact with the bus through the parameter with the smallest eigenvalue, so as to gradually eliminate the mismatched controllers; this dynamic adjustment makes the method have strong adaptability and flexibility, and can optimize the response and filtering in different diagnostic environments; realize real-time communication between the computer and the vehicle controller through the CAN bus, and use the existing CAN protocol library and tools for automated management of the system, optimizing the data processing and interaction in the diagnostic process.
[0016] S33: Obtain the target controller; Repeat steps S31 and S32 until the size of the set is equal to 1, which is the target controller to be found.
[0017] The present invention has been described by the above related embodiments. However, the above embodiments are only examples for implementing the present invention. It must be pointed out that the disclosed embodiments do not limit the scope of the present invention. On the contrary, changes and modifications made without departing from the spirit and scope of the present invention fall within the scope of patent protection of the present invention.
Claims
1. A method for automatic controller identification based on characteristic values in vehicle diagnosis of Internet of Vehicles, characterized by: The following steps are involved: S1: Query the corresponding vehicle controller set according to the controller type; During vehicle diagnosis, the engineer determines the controller type, searches the controller list based on the controller type, and obtains all controllers supported by the controller type. The obtained physical address CANID of the controller is saved in the collection, recorded as ; ; in, is the physical address of the i-th controller; S2: Filter out the responding controller from all controllers according to the responding physical address CANID; Through functional addressing, under the premise of complying with the CAN protocol, a connection instruction is sent to the CAN bus, wherein the connection instruction is a request frame, requiring the responding controller to return its physical address CANID; Filter out the responding controller from all controllers according to the responding physical address CANID; S3: Calculate the eigenvalue of each parameter, use the parameter with the smallest eigenvalue to filter the controller, and obtain the target controller; The following sub-steps are included: S31: Calculate the characteristic value of each parameter of the controller; S32: updating the response controller set according to the response status of the CAN bus; S33: Get the target controller.
2. The method for automatic controller identification based on characteristic values in vehicle diagnosis of connected vehicles according to claim 1, characterized in that: In step S1, the controller list includes the controller name, controller type, and the physical address CANID of the controller; A controller contains multiple parameters. Each controller in the controller list is associated with a parameter list, which contains a parameter name and a parameter ID.
3. The method for automatic controller identification based on characteristic values in vehicle diagnosis of connected vehicles according to claim 1, characterized in that: The specific content of step S2 is as follows: Monitor all the physical addresses CANID of the responses on the CAN bus and collect Filter to get the responses on the CAN bus and included in the collection The physical address CANID in the controller parameter list is obtained by obtaining the controller parameter set corresponding to the physical address CANID from the parameter list; The controller parameter set includes the parameter name and parameter ID of the controller, and each controller corresponds to multiple parameter names and parameter IDs; Each physical address CANID and the corresponding controller parameter set constitute a control item and save it in the set, which is recorded as ; If the collection There is only one CANID in the set, then the controller corresponding to this physical address CANID is the target controller; if the set Contains multiple physical addresses CANID, and goes to step S3.
4. The method for automatic controller identification based on characteristic values in vehicle diagnosis of connected vehicles according to claim 1, characterized in that: The specific contents of step S31 are as follows: Pair Collection Iterate through the parameter IDs in the collection. Each time it appears in other controllers in the , the characteristic value of this parameter ID is increased by 1, and the initial value of the characteristic value of each parameter ID is 0.
5. The method for automatic controller identification based on characteristic values in vehicle diagnosis of connected vehicles according to claim 1, characterized in that: The specific contents of step S32 are as follows: right After the characteristic values of all parameters of each controller in the set are calculated, the parameter with the smallest characteristic value of this controller is used to send a request to the CAN bus. If this parameter has a response in the CAN bus, it is deleted. The set does not contain the control item of this parameter; if this parameter has no response in the CAN bus, the control item containing this parameter in the set is deleted.