Error frame troubleshooting methods, devices, electronic equipment and storage media

By detecting and adjusting the terminating resistance value and external resistance value of the bus segment until the error frame disappears, the problem of long time and cumbersome steps in CAN bus error frame troubleshooting is solved, and efficient error frame troubleshooting is achieved.

CN118091284BActive Publication Date: 2025-10-31CHERY AUTOMOBILE CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202410219069.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-02-27
Publication Date
2025-10-31
Estimated Expiration
2044-02-27

AI Technical Summary

Technical Problem

In existing technologies, troubleshooting CAN bus error frames is time-consuming, cumbersome, and inefficient. Problems are frequent, especially after the CANFD bus communication rate increases, which affects the progress of vehicle technology development.

Method used

By detecting the terminating resistance value of the bus segment and adjusting the external resistance value until the target error frame disappears, the communication node that sent the error frame can be identified. By utilizing the change in the terminating resistance value to alter the nature of the error frame, the number of troubleshooting steps and equipment can be reduced, and the process can be shortened.

Benefits of technology

It improves the efficiency of error frame troubleshooting, reduces cumbersome steps and equipment operations, and is operable and practical, enabling quick location of error frame sending nodes.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118091284B_ABST
    Figure CN118091284B_ABST
Patent Text Reader

Abstract

This application discloses an error frame troubleshooting method, apparatus, electronic device, and storage medium. The method includes: obtaining the network segment where the target error frame is located on the bus; detecting the resistance value of the terminating resistor of the network segment; if the resistance value of the terminating resistor is normal, adjusting the resistance value of an external resistor until the target error frame disappears; and determining the communication node that sent the target error frame. The external resistor is connected in parallel to the diagnostic interface of the bus device or the network segment. This solves the problems of long troubleshooting time, cumbersome steps, and low efficiency in related technologies.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of error frame troubleshooting technology, and in particular to an error frame troubleshooting method, apparatus, electronic device and storage medium. Background Technology

[0002] In the early stages of vehicle technology platform development, during the initial debugging phase of bench tests and prototype vehicles, various hardware and software issues may arise in the vehicle's electrical system, affecting functional debugging and project progress. Among these, CAN (Controller Area Network) bus error frame problems are particularly challenging, presenting significant difficulties and time constraints for troubleshooting. Especially with the current upgrade to CANFD (CAN with Flexible Data rate, an upgraded version of the CAN bus), the increased communication speed has led to more frequent communication error frame issues, severely impacting technology development and project progress. Therefore, it is necessary to investigate error frames on the vehicle's bus and provide directional guidance for a thorough resolution of these problems.

[0003] Currently, related technologies generally use a simple reverse process diagnostic scheme for error frame diagnosis, namely the fault node elimination method (disconnecting controller connectors). However, as the number of nodes increases and the interference factors of each node on each controller in the vehicle network increase, the error frame troubleshooting cycle of this method is long and the troubleshooting steps are cumbersome, which will lead to a reduction in troubleshooting efficiency. Summary of the Invention

[0004] This application provides an error frame troubleshooting method, apparatus, electronic device, and storage medium to solve the problems of long troubleshooting time, cumbersome troubleshooting steps, and low troubleshooting efficiency in related technologies.

[0005] The first aspect of this application provides an error frame troubleshooting method, including the following steps: obtaining the network segment where the target error frame is located on the bus; detecting the resistance value of the terminating resistor of the network segment; if the resistance value of the terminating resistor is normal, adjusting the resistance value of the external resistor until the target error frame disappears, and determining the communication node that sent the target error frame, wherein the external resistor is connected in parallel to the diagnostic interface of the bus device or the network segment.

[0006] Optionally, detecting the resistance value of the terminating resistor in the network segment also includes: if the resistance value of the terminating resistor is abnormal, investigating the cause of the abnormal resistance value.

[0007] Optionally, after investigating the cause of the abnormal resistance value, the method further includes: if the target error frame disappears, then it is determined that the target error frame was caused by an abnormal terminating resistor.

[0008] Optionally, before adjusting the resistance value of the external resistor until the target error frame disappears, the method further includes: obtaining the number of communication nodes that sent the target error frame; if there is only one communication node that sent the target error frame, obtaining the first identifier of the target error frame and determining the communication node that sent the target error frame based on the first identifier; if there are multiple communication nodes that sent the target error frame, adjusting the resistance value of the external resistor until the target error frame disappears.

[0009] Optionally, obtaining the first identifier of the target error frame includes: obtaining the communication message of the network segment; and determining the first identifier of the target error frame based on the communication message.

[0010] Optionally, before adjusting the resistance value of the external resistor until the target error frame disappears, the method further includes: obtaining a second identifier of the target error frame after the external resistor is connected; comparing the first identifier and the second identifier; if the first identifier and the second identifier are different, and there is only one communication node sending the target error frame, determining the communication node sending the target error frame based on the first identifier; if the first identifier and the second identifier are different, and there are multiple communication nodes sending the target error frame, adjusting the resistance value of the external resistor until the target error frame disappears.

[0011] Optionally, determining the communication node that sent the target error frame includes: acquiring the communication node that stopped sending the target error frame; disconnecting the communication node that stopped sending the target error frame from the external resistor; if the target error frame disappears, then determining the communication node that stopped sending the target error frame as the communication node that sent the error frame.

[0012] A second aspect of this application provides an error frame troubleshooting device, comprising: an acquisition module for acquiring the network segment where the target error frame is located on the bus; a detection module for detecting the resistance value of the terminating resistor of the network segment; and a determination module for adjusting the resistance value of an external resistor until the target error frame disappears if the resistance value of the terminating resistor is normal, and determining the communication node that sent the target error frame, wherein the external resistor is connected in parallel to the diagnostic interface of the bus device or the network segment.

[0013] Optionally, the detection module is further used to: if the resistance value of the terminating resistor is abnormal, investigate the cause of the abnormal resistance value.

[0014] Optionally, the detection module is further configured to: if the target error frame disappears, determine that the target error frame was caused by an abnormal terminating resistor.

[0015] Optionally, the error frame troubleshooting device further includes: a judgment module, used to, before adjusting the resistance value of the external resistor until the target error frame disappears, if there is only one communication node sending the target error frame, obtain the first identifier of the target error frame and determine the communication node sending the target error frame based on the first identifier; if there are multiple communication nodes sending the target error frame, adjust the resistance value of the external resistor until the target error frame disappears.

[0016] Optionally, the determination module is further configured to: obtain communication messages of the network segment in which it resides; and determine the first identifier of the target error frame based on the communication messages.

[0017] Optionally, the error frame troubleshooting device further includes: a comparison module, used to obtain a second identifier of the target error frame after connecting the external resistor before adjusting the resistance value of the external resistor until the target error frame disappears; compare the first identifier and the second identifier; if the first identifier and the second identifier are different, and there is only one communication node sending the target error frame, determine the communication node sending the target error frame based on the first identifier; if the first identifier and the second identifier are different, and there are multiple communication nodes sending the target error frame, then adjust the resistance value of the external resistor until the target error frame disappears.

[0018] Optionally, the determining module is further configured to: acquire the communication node that stopped sending the target error frame; disconnect the communication node that stopped sending the target error frame from the external resistor; and if the target error frame disappears, determine the communication node that stopped sending the target error frame as the communication node that sent the error frame.

[0019] A third aspect of this application provides an electronic device, including: a memory, a processor, and a computer program stored in the memory and executable on the processor. The processor executes the program to perform the error frame troubleshooting method as described in the above embodiments.

[0020] A fourth aspect of this application provides a computer-readable storage medium having a computer program stored thereon, which is executed by a processor to perform the error frame troubleshooting method as described in the above embodiments.

[0021] Therefore, this application has at least the following beneficial effects:

[0022] This application's embodiment utilizes the property that changes in the terminal resistance value cause changes in the erroneous frame. By adjusting the resistance value of the external resistor and further changing the terminal resistance value until the erroneous frame disappears, the communication node that sent the erroneous frame can be identified. This reduces the steps and equipment required for erroneous frame troubleshooting, shortens the troubleshooting process, and is more operable and practical, thus improving the efficiency of erroneous frame troubleshooting. Therefore, it solves the technical problems of long erroneous frame troubleshooting time, cumbersome steps, and low efficiency in related technologies.

[0023] Additional aspects and advantages of this application will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of this application. Attached Figure Description

[0024] The above and / or additional aspects and advantages of this application will become apparent and readily understood from the following description of the embodiments taken in conjunction with the accompanying drawings, wherein:

[0025] Figure 1 This is a flowchart of an error frame troubleshooting method provided according to an embodiment of this application;

[0026] Figure 2 This is a flowchart of an error frame troubleshooting method according to an embodiment of this application;

[0027] Figure 3 This is an example diagram of an error frame troubleshooting device provided according to an embodiment of this application;

[0028] Figure 4 This is a schematic diagram of the structure of an electronic device provided according to an embodiment of this application. Detailed Implementation

[0029] The embodiments of this application are described in detail below. Examples of these embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals denote the same or similar elements or elements having the same or similar functions throughout. The embodiments described below with reference to the accompanying drawings are exemplary and intended to explain this application, and should not be construed as limiting this application.

[0030] The following description, with reference to the accompanying drawings, outlines an error frame troubleshooting method, apparatus, electronic device, and storage medium according to embodiments of this application. Addressing the issues of long troubleshooting cycles, cumbersome steps, and low efficiency in current error frame troubleshooting methods mentioned in the background section, this application provides an error frame troubleshooting method. This method utilizes the property that changes in the terminal resistance value cause changes in the error frame. By adjusting the resistance value of the external resistor and further changing the terminal resistance value until the error frame disappears, the communication node that sent the error frame is identified. This reduces the number of troubleshooting steps and equipment, and shortens the troubleshooting process. Therefore, it solves the problems of long troubleshooting time, cumbersome steps, and low efficiency in related technologies.

[0031] Specifically, Figure 1 This is a flowchart illustrating an error frame troubleshooting method provided in an embodiment of this application.

[0032] like Figure 1 As shown, the error frame troubleshooting method includes the following steps:

[0033] In step S101, the network segment where the target error frame is located on the bus is obtained.

[0034] The bus can be either a CAN bus or a CANFD bus.

[0035] It is understood that the embodiments of this application can obtain the network segment where the target error frame is located.

[0036] In step S102, the resistance value of the terminal resistor of the network segment is detected.

[0037] It is understood that the embodiments of this application can detect the resistance value of the terminal resistor in the network segment to prevent erroneous frame transmission caused by abnormal terminal resistor.

[0038] In this embodiment of the application, detecting the resistance value of the terminating resistor of the network segment further includes: if the resistance value of the terminating resistor is abnormal, investigating the cause of the abnormal resistance value.

[0039] It is understandable that, in this embodiment of the application, after the resistance value of the terminating resistor is abnormal, the cause of the terminating resistor error is investigated.

[0040] In this embodiment of the application, after investigating the cause of the abnormal resistance value, the method further includes: if the target error frame disappears, then it is determined that the target error frame was caused by the abnormal terminal resistance.

[0041] It is understood that, after investigating the cause of the abnormal terminal resistance value, if the error frame does not exist, i.e. the bus stops sending error frames, the target error frame is determined to be caused by the abnormal terminal resistance.

[0042] In step S103, if the resistance value of the terminating resistor is normal, the resistance value of the external resistor is adjusted until the target error frame disappears, and the communication node that sent the target error frame is determined. The external resistor is connected in parallel to the diagnostic interface of the bus device or the network segment.

[0043] The diagnostic interface can be an OBD (On Board Diagnostics) interface.

[0044] It is understood that, in the embodiments of this application, when the resistance value of the detected terminating resistor is normal, an external resistor can be connected in parallel at the diagnostic interface of the bus device or the network segment where the target error frame is located. By utilizing the property that a change in the resistance value of the terminating resistor will cause a change in the error frame, the resistance value of the terminating resistor can be changed by adjusting the resistance value of the external resistor until the error frame disappears, thereby further determining the communication node that sent the target error frame. This reduces the steps and equipment required for error frame troubleshooting, shortens the troubleshooting process, and is more operable and practical, thus improving the efficiency of error frame troubleshooting.

[0045] In this embodiment of the application, before adjusting the resistance value of the external resistor until the target error frame disappears, the method further includes: obtaining the number of communication nodes that sent the target error frame; if there is only one communication node that sent the target error frame, obtaining the first identifier of the target error frame and determining the communication node that sent the target error frame based on the first identifier; if there are multiple communication nodes that sent the target error frame, adjusting the resistance value of the external resistor until the target error frame disappears.

[0046] The identifier for an error frame can be an error frame ID, which can locate the communication node that sent the error frame. This ID is assigned by the vehicle network.

[0047] It is understandable that, since there are multiple communication nodes on the bus, the error frame may not be sent by a single communication node. Therefore, in this embodiment of the application, after the target error frame is detected and the terminal resistor is found to be normal, the number of communication nodes that sent the target error frame can be obtained. If only one communication node sends the target error frame, the node that sent the target error frame can be determined based on the first identifier (ID) of the target error frame. If multiple communication nodes send the target error frame, the resistance value of the external resistor is adjusted until the error frame disappears.

[0048] In this embodiment of the application, obtaining the first identifier of the target error frame includes: obtaining the communication message of the network segment; and determining the first identifier of the target error frame based on the communication message.

[0049] In this embodiment of the application, the device can read the communication packets of the network segment where it is located.

[0050] It is understood that, in the embodiments of this application, the first identifier of the error frame can be determined based on the communication messages of the network segment where the target error frame is located.

[0051] In this embodiment of the application, before adjusting the resistance value of the external resistor until the target error frame disappears, the method further includes: obtaining a second identifier of the target error frame after the external resistor is connected; comparing the first identifier and the second identifier, if the first identifier and the second identifier are different, and there is only one communication node sending the target error frame, determining the communication node sending the target error frame based on the first identifier; if the first identifier and the second identifier are different, and there are multiple communication nodes sending the target error frame, then adjusting the resistance value of the external resistor until the target error frame disappears.

[0052] Since the identifier of the error frame changes after the external resistor is connected, this embodiment can obtain the second identifier of the target error frame after the external resistor is connected, and compare whether the first identifier and the second identifier are the same. That is, it can determine whether the ID of the error frame before the external resistor is connected and the ID of the error frame after the external resistor is connected have changed. If they have changed, and there is only one communication node that sent the target error frame, the communication node that sent the target error frame can be determined according to the first identifier. If the first identifier and the second identifier are different, and there are still multiple communication nodes that are still sending error frames, the resistance value of the external resistor is adjusted until the target error frame disappears.

[0053] In this embodiment of the application, determining the communication node that sent the target error frame includes: acquiring the communication node that stopped sending the target error frame; disconnecting the communication node that stopped sending the target error frame from the external resistor; if the error frame disappears, then determining the communication node that stopped sending the target error frame as the communication node that sent the error frame.

[0054] It is understood that in this embodiment of the application, if the resistance value of the external resistor is adjusted until the target error frame disappears and the communication node that does not send error frames is determined to have a problem, the communication node and the external resistor can be disconnected. If the bus communication is normal, that is, there are no error frames, it can be determined that the communication node has a problem, that is, the communication node that sends error frames.

[0055] The following specific embodiment illustrates the error frame troubleshooting method of this application. Figure 2 As shown, the steps are as follows:

[0056] Step 1: Determine the network segment where the erroneous frame is located, and read the communication packets of that network segment through the device.

[0057] Step 2: Check the terminal resistance value of the network segment where the erroneous frame is located. If the terminal resistance value is normal, proceed to the next step. If the terminal resistance value is abnormal, check the cause of the terminal resistance error. If the erroneous frame still exists after the terminal resistance is normalized, proceed to the next step.

[0058] Step 3: Based on the error frame ID, initially determine the communication node that sent the error.

[0059] Step 4: Connect a resistor of a certain value in parallel to the bus device or the OBD interface for reading CAN bus data. For the first time, you can try the same resistance value as the terminating resistor and read the bus message synchronously.

[0060] Step 5: Confirm whether the error frame still exists. If the error frame does not exist and communication returns to normal, the node that sent the error frame can be locked. If the error frame still exists, adjust the resistance value until the error frame does not exist.

[0061] By following the steps above, it is possible to quickly locate CANFD or CAN communication error frames and pinpoint the specific node that sent the error frame. Compared to related technologies that require dismantling each CAN communication node in the network segment and monitoring the data simultaneously, this method eliminates the need for cumbersome operations such as vehicle lifting and disassembly during actual operation, making it more practical and operable.

[0062] The error frame troubleshooting method proposed in this application can utilize the property that changes in the terminal resistance value will cause changes in the error frame. The resistance value of the external resistor can be adjusted to further change the value of the terminal resistor until the error frame disappears, thereby determining the communication node that sent the error frame. This reduces the number of error frame troubleshooting steps and equipment, shortens the troubleshooting process, and is more operable and practical, thus improving the efficiency of error frame troubleshooting.

[0063] Next, the error frame troubleshooting apparatus proposed according to the embodiments of this application is described with reference to the accompanying drawings.

[0064] Figure 3 This is a block diagram of an error frame troubleshooting device according to an embodiment of this application.

[0065] like Figure 3 As shown, the error frame troubleshooting device 10 includes: an acquisition module 100, a detection module 200, and a determination module 300.

[0066] The acquisition module 100 is used to acquire the network segment where the target error frame is located on the bus; the detection module 200 is used to detect the resistance value of the terminating resistor of the network segment; the determination module 300 is used to adjust the resistance value of the external resistor until the target error frame disappears if the resistance value of the terminating resistor is normal, and determine the communication node that sent the target error frame. The external resistor is connected in parallel to the diagnostic interface of the bus device or the network segment.

[0067] In this embodiment of the application, the detection module 200 is further used to: if the resistance value of the terminating resistor is abnormal, investigate the cause of the abnormal resistance value.

[0068] In this embodiment of the application, the detection module 200 is further configured to: if the target error frame disappears, determine that the target error frame is caused by an abnormal terminating resistor.

[0069] In this embodiment of the application, the apparatus 10 further includes a determination module.

[0070] The judgment module is used to determine the first identifier of the target error frame if there is only one communication node sending the target error frame before adjusting the resistance value of the external resistor until the target error frame disappears; if there are multiple communication nodes sending the target error frame, the resistance value of the external resistor is adjusted until the target error frame disappears.

[0071] In this embodiment of the application, the determination module is further configured to: obtain the communication messages of the network segment in which it is located; and determine the first identifier of the target error frame based on the communication messages.

[0072] In this embodiment of the application, the apparatus 10 further includes a comparison module.

[0073] The comparison module is used to obtain a second identifier of the target error frame after the external resistor is connected, before adjusting the resistance value of the external resistor until the target error frame disappears; compare the first identifier and the second identifier, if the first identifier and the second identifier are different, and there is only one communication node sending the target error frame, determine the communication node sending the target error frame based on the first identifier; if the first identifier and the second identifier are different, and there are multiple communication nodes sending the target error frame, then adjust the resistance value of the external resistor until the target error frame disappears.

[0074] In this embodiment of the application, the determining module 300 is further configured to: obtain the communication node that stopped sending the target error frame; disconnect the communication node that stopped sending the target error frame from the external resistor; if the target error frame disappears, determine the communication node that stopped sending the target error frame as the communication node that sent the error frame.

[0075] It should be noted that the foregoing explanation of the error frame troubleshooting method embodiment also applies to the error frame troubleshooting device of this embodiment, and will not be repeated here.

[0076] The error frame troubleshooting device proposed in the embodiments of this application can utilize the property that changes in the terminal resistance value will cause changes in the error frame, adjust the resistance value of the external resistor, further change the value of the terminal resistor until the error frame disappears, and then determine the communication node that sent the error frame. This reduces the error frame troubleshooting steps and equipment, shortens the troubleshooting process, and is more operable and practical, thereby improving the efficiency of error frame troubleshooting.

[0077] Figure 4 A schematic diagram of the structure of an electronic device provided in an embodiment of this application. The electronic device may include:

[0078] The memory 401, the processor 402, and the computer program stored on the memory 401 and capable of running on the processor 402.

[0079] When the processor 402 executes the program, it implements the error frame troubleshooting method provided in the above embodiments.

[0080] Furthermore, electronic devices also include:

[0081] Communication interface 403 is used for communication between memory 401 and processor 402.

[0082] The memory 401 is used to store computer programs that can run on the processor 402.

[0083] Memory 401 may include high-speed RAM memory, and may also include non-volatile memory, such as at least one disk storage device.

[0084] If the memory 401, processor 402, and communication interface 403 are implemented independently, then the communication interface 403, memory 401, and processor 402 can be interconnected via a bus to complete communication between them. The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. Buses can be categorized as address buses, data buses, control buses, etc. For ease of representation, Figure 4 The bus is represented by a single thick line, but this does not mean that there is only one bus or one type of bus.

[0085] Optionally, in a specific implementation, if the memory 401, processor 402, and communication interface 403 are integrated on a single chip, then the memory 401, processor 402, and communication interface 403 can communicate with each other through an internal interface.

[0086] Processor 402 may be a central processing unit (CPU), an application specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of this application.

[0087] This application also provides a computer-readable storage medium storing a computer program thereon, which, when executed by a processor, implements the above-described error frame troubleshooting method.

[0088] In the description of this specification, the references to terms such as "one embodiment," "some embodiments," "example," "specific example," or "some examples," etc., indicate that a specific feature, structure, material, or characteristic described in connection with that embodiment or example is included in at least one embodiment or example of this application. In this specification, the illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples. Moreover, without contradiction, those skilled in the art can combine and integrate the different embodiments or examples described in this specification, as well as the features of different embodiments or examples.

[0089] Furthermore, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one of that feature. In the description of this application, "N" means at least two, such as two, three, etc., unless otherwise explicitly specified.

[0090] Any process or method described in the flowchart or otherwise herein can be understood as representing a module, segment, or portion of code comprising one or N executable instructions for implementing custom logic functions or processes, and the scope of the preferred embodiments of this application includes additional implementations in which functions may be performed not in the order shown or discussed, including substantially simultaneously or in reverse order depending on the functions involved, as should be understood by those skilled in the art to which embodiments of this application pertain.

[0091] It should be understood that the various parts of this application can be implemented using hardware, software, firmware, or a combination thereof. In the above embodiments, the N steps or methods can be implemented using software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, it can be implemented using any one or more of the following techniques known in the art: discrete logic circuits having logic gates for implementing logical functions on data signals, application-specific integrated circuits (ASICs) having suitable combinational logic gates, programmable gate arrays (PGAs), field-programmable gate arrays (FPGAs), etc.

[0092] Those skilled in the art will understand that all or part of the steps of the methods in the above embodiments can be implemented by a program instructing related hardware. The program can be stored in a computer-readable storage medium, and when executed, the program includes one or a combination of the steps of the method embodiments.

Claims

1. A method for troubleshooting error frames, characterized in that, Includes the following steps: Obtain the network segment where the target error frame is located on the bus; Detect the resistance value of the terminal resistor of the network segment in which it is located; If the resistance value of the terminating resistor is normal, adjust the resistance value of the external resistor until the target error frame disappears, and determine the communication node that sent the target error frame. The external resistor is connected in parallel to the bus device or the diagnostic interface of the network segment. Before adjusting the resistance value of the external resistor until the target error frame disappears, the method further includes: obtaining the number of communication nodes that sent the target error frame; if the number of communication nodes sending the target error frame is one, obtaining the first identifier of the target error frame, and determining the communication node that sent the target error frame based on the first identifier; if the number of communication nodes sending the target error frame is multiple, adjusting the resistance value of the external resistor until the target error frame disappears. Obtaining the first identifier of the target error frame includes: obtaining the communication message of the network segment; determining the first identifier of the target error frame based on the communication message; and adjusting the resistance value of the external resistor before the target error frame disappears. The method of adjusting the resistance value of the external resistor until the target error frame disappears includes: obtaining a second identifier of the target error frame after the external resistor is connected; comparing the first identifier and the second identifier; if the first identifier and the second identifier are different, and the number of communication nodes sending the target error frame is one, determining the communication node sending the target error frame based on the first identifier; if the first identifier and the second identifier are different, and the number of communication nodes sending the target error frame is multiple, adjusting the resistance value of the external resistor until the target error frame disappears; determining the communication node sending the target error frame includes: obtaining the communication node that stops sending the target error frame; disconnecting the communication node that stops sending the target error frame from the external resistor; if the target error frame disappears, determining the communication node that stops sending the target error frame as the communication node sending the error frame.

2. The error frame troubleshooting method according to claim 1, characterized in that, The method of detecting the resistance value of the terminal resistance of the network segment further includes: If the resistance value of the terminating resistor is abnormal, investigate the cause of the abnormal resistance value.

3. The error frame troubleshooting method according to claim 1, characterized in that, After investigating the cause of the abnormal resistance value, the following steps are also included: If the target error frame disappears, it is determined that the target error frame was caused by the abnormality of the terminating resistor.

4. An error frame troubleshooting device, characterized in that, include: The acquisition module is used to acquire the network segment where the target error frame is located on the bus; The detection module is used to detect the resistance value of the terminal resistor of the network segment in which it is located; The determination module is used to, if the resistance value of the terminating resistor is normal, adjust the resistance value of the external resistor until the target error frame disappears, and determine the communication node that sent the target error frame, wherein the external resistor is connected in parallel to the bus device or the diagnostic interface of the network segment; before adjusting the resistance value of the external resistor until the target error frame disappears, the module further includes: obtaining the number of communication nodes that sent the target error frame; if the number of communication nodes that sent the target error frame is one, obtaining the first identifier of the target error frame, and determining the communication node that sent the target error frame based on the first identifier; if the number of communication nodes that sent the target error frame is multiple, adjusting the resistance value of the external resistor until the target error frame disappears; obtaining the first identifier of the target error frame includes: obtaining the communication message of the network segment; determining the first identifier of the target error frame based on the communication message; in Adjusting the resistance value of the external resistor until the target error frame disappears further includes: obtaining a second identifier of the target error frame after the external resistor is connected; comparing the first identifier and the second identifier; if the first identifier and the second identifier are different, and the number of communication nodes sending the target error frame is one, determining the communication node sending the target error frame based on the first identifier; if the first identifier and the second identifier are different, and the number of communication nodes sending the target error frame is multiple, then adjusting the resistance value of the external resistor until the target error frame disappears; determining the communication node sending the target error frame includes: obtaining the communication node that stops sending the target error frame; disconnecting the communication node that stops sending the target error frame from the external resistor; if the target error frame disappears, determining the communication node that stops sending the target error frame as the communication node sending the error frame.

5. An electronic device, characterized in that, include: A memory, a processor, and a computer program stored in the memory and executable on the processor, the processor executing the program to implement the error frame troubleshooting method as described in any one of claims 1-3.

6. A computer-readable storage medium having a computer program stored thereon, characterized in that, The program is executed by the processor to implement the error frame troubleshooting method as described in any one of claims 1-3.

Citation Information

Patent Citations

  • Positioning method of electromagnetic interference source in vehicle based on CAN bus data

    CN109738722A

  • Method and system for checking error frame of automobile CAN bus and storage medium

    CN112003774A