CN118264585A - Vehicle bus fault detection method, device, equipment and storage medium - Google Patents

Vehicle bus fault detection method, device, equipment and storage medium Download PDF

Info

Publication number
CN118264585A
CN118264585A CN202410486091.8A CN202410486091A CN118264585A CN 118264585 A CN118264585 A CN 118264585A CN 202410486091 A CN202410486091 A CN 202410486091A CN 118264585 A CN118264585 A CN 118264585A
Authority
CN
China
Prior art keywords
fault
target
bus
vehicle
detection
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202410486091.8A
Other languages
Chinese (zh)
Inventor
高福旺
赵强
李�瑞
陈建新
卫泽锋
马长腾
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
FAW Jiefang Automotive Co Ltd
Original Assignee
FAW Jiefang Automotive Co Ltd
Filing date
Publication date
Application filed by FAW Jiefang Automotive Co Ltd filed Critical FAW Jiefang Automotive Co Ltd
Publication of CN118264585A publication Critical patent/CN118264585A/en
Pending legal-status Critical Current

Links

Abstract

The invention discloses a vehicle bus fault detection method, device, equipment and storage medium. Comprising the following steps: acquiring vehicle configuration information of a vehicle to be detected, and determining a target detection range according to the vehicle configuration information; bus fault detection is carried out based on the target detection range so as to generate each target fault detection result; and sequencing the priority of each target fault detection result to generate a fault display result, and sending the fault display result to a target end for storage. The target detection range is determined through the vehicle configuration information of the whole-vehicle whole-line component, so that the test flow can be simplified, and the rapid positioning of the fault point can be realized; meanwhile, a bus and node fault detection compatible mechanism is established, the false alarm rate of fault information is reduced, priority judgment is carried out on multi-fault display based on vehicle performance requirements, the risk of vehicle communication problems is reduced, man-machine interaction of the fault information is realized through visualization of the fault information, rapid transmission of the fault information is realized, and fault investigation of vehicles is facilitated.

Description

Vehicle bus fault detection method, device, equipment and storage medium
Technical Field
The present invention relates to the field of fault detection technologies, and in particular, to a method, an apparatus, a device, and a storage medium for detecting a vehicle bus fault.
Background
The normal running of the vehicle benefits from the coordination among all parts of the whole vehicle, and the state feedback and the operation control are carried out among vehicle systems in real time, so that the behavior depends on a vehicle local area network (Controller Area Network, CAN), and the whole vehicle controller CAN acquire the relevant information of the vehicle just because of the existence of the CAN, and meanwhile, the control of the power parts and the energy storage elements of the vehicle is realized. In the trial production and operation stage, the CAN communication abnormality of the vehicle frequently occurs, the related functions of the vehicle are invalid when the vehicle is light, the normal running of the vehicle is influenced when the vehicle is heavy, and even the safety of a driver is endangered, so the state detection and the fault inquiry detection of the CAN bus of the vehicle are particularly important for the stability and the safety of the vehicle.
At present, two main technologies exist for detecting bus faults of a vehicle: one is a method based on signal detection, and the other is a method based on protocol analysis. The method based on signal detection judges whether the bus is faulty or not by detecting parameters such as the level, the frequency, the pulse width and the like of the bus signal. The method based on protocol analysis judges whether the bus has faults or not by analyzing the time sequence, logic relation and the like of the bus protocol.
The signal detection-based method in the prior art is easily affected by interference and noise, thereby causing erroneous judgment. Protocol analysis based methods require in-depth knowledge of the bus protocol and require a significant amount of computational and memory resources.
Disclosure of Invention
The invention provides a vehicle bus fault detection method, device, equipment and storage medium, which are used for reducing the fault false alarm rate and reducing the risk of vehicle communication problems.
According to an aspect of the present invention, there is provided a vehicle bus fault detection method, the method including:
acquiring vehicle configuration information of a vehicle to be detected, and determining a target detection range according to the vehicle configuration information;
performing bus fault detection based on the target detection range to generate target fault detection results, wherein the bus fault detection comprises complete vehicle bus closing fault detection, bus node loss detection and bus node content detection;
And sequencing the priority of each target fault detection result to generate a fault display result, and sending the fault display result to a target end for storage.
Optionally, acquiring vehicle configuration information of the vehicle to be tested, and determining the target detection range according to the vehicle configuration information includes: acquiring bus identification information corresponding to each component system of a vehicle to be tested, and converting each bus identification information according to a specified format to generate vehicle configuration information; displaying the vehicle configuration information to a user to acquire target configuration information selected by the user; and taking the target configuration information as a target detection range of the vehicle to be detected.
Optionally, performing bus fault detection based on the target detection range to generate each target fault detection result includes: sequentially taking each target configuration information in a target detection range as a target system to be detected; detecting a complete vehicle bus closing fault of a target system to be detected so as to generate a complete vehicle bus closing fault result; judging whether the complete vehicle bus closing fault result is a fault or not, if so, acquiring a first error number and a first fault time, determining that the target fault detection result is the complete vehicle bus closing early warning when the first fault time reaches a corresponding preset threshold value, and determining that the target fault detection result is the complete vehicle bus closing fault when the first fault number and the first fault time both reach the corresponding preset threshold value; otherwise, bus node loss detection and bus node content detection are performed based on the target detection range to generate each target fault detection result.
Optionally, performing bus node loss detection and bus node content detection based on the target detection range to generate each target fault detection result, including: detecting the loss of the bus node of the target system to be detected so as to generate a detection result of the loss of the bus node target fault; judging whether a bus node loss target fault detection result is a fault or not, if yes, acquiring a second error number and a second fault time, determining that the target fault detection result is a bus node loss early warning when the second fault time reaches a corresponding preset threshold value, and determining that the target fault detection result is a bus node loss fault when the second fault number and the second fault time both reach the corresponding preset threshold value; otherwise, detecting the content of the bus node based on the target detection range to generate each target fault detection result.
Optionally, performing bus node content detection based on the target detection range to generate each target fault detection result, including: detecting the content of the bus node of the target system to be detected to generate a target fault detection result of the content of the bus node; judging whether a bus node content target fault detection result is a fault or not, if so, acquiring a third error frequency and a third fault time, determining that the target fault detection result is bus node content early warning when the third fault time reaches a corresponding preset threshold value, and determining that the target fault detection result is bus node content fault when the third fault frequency and the third fault time both reach the corresponding preset threshold value; otherwise, determining the target fault detection result as the detection normal.
Optionally, prioritizing each target fault detection result to generate a fault display result includes: acquiring a preset priority list, wherein the preset priority list comprises priority sequences corresponding to all fault detection results; matching each target fault detection result through a priority list to determine each target priority sequence corresponding to each target fault detection result; and sequencing the target fault detection results according to the order of the target priority from high to low so as to generate a fault display result.
Optionally, sending the fault display result to the target end for storage, including: acquiring a preset storage list, wherein the preset storage list comprises fault codes and data positions corresponding to the fault detection results; matching the fault display results through a preset storage list to determine target fault codes and target data positions corresponding to the target fault detection results; and generating data to be stored according to the target fault code and the target data position, and sending the data to be stored to a target end for storage.
According to another aspect of the present invention, there is provided a vehicle bus fault detection apparatus including:
the target detection range determining module is used for acquiring vehicle configuration information of the vehicle to be detected and determining a target detection range according to the vehicle configuration information;
The system comprises a target fault detection result generation module, a target fault detection module and a target fault detection module, wherein the target fault detection module is used for carrying out bus fault detection based on a target detection range to generate each target fault detection result, and the bus fault detection comprises complete vehicle bus closing fault detection, bus node loss detection and bus node content detection;
The fault display result generation and storage module is used for carrying out priority ranking on each target fault detection result to generate a fault display result, and sending the fault display result to the target end for storage.
According to another aspect of the present invention, there is provided an electronic apparatus including:
At least one processor; and
A memory communicatively coupled to the at least one processor; wherein,
The memory stores a computer program executable by the at least one processor to enable the at least one processor to perform a vehicle bus fault detection method according to any one of the embodiments of the present invention.
According to another aspect of the present invention, there is provided a computer readable storage medium storing computer instructions for causing a processor to implement a vehicle bus fault detection method according to any one of the embodiments of the present invention when executed.
According to the technical scheme provided by the embodiment of the invention, the target detection range is determined by the vehicle configuration information of the whole-vehicle full-line component, so that the test flow can be simplified, and the rapid positioning of the fault point can be realized; meanwhile, a bus and node fault detection compatible mechanism is established, the false alarm rate of fault information is reduced, priority judgment is carried out on multi-fault display based on vehicle performance requirements, the risk of vehicle communication problems is reduced, man-machine interaction of the fault information is realized through visualization of the fault information, rapid transmission of the fault information is realized, and fault investigation of vehicles is facilitated.
It should be understood that the description in this section is not intended to identify key or critical features of the embodiments of the invention or to delineate the scope of the invention. Other features of the present invention will become apparent from the description that follows.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for the description of the embodiments will be briefly described below, and it is apparent that the drawings in the following description are only some embodiments of the present invention, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flow chart of a method for detecting a vehicle bus fault according to a first embodiment of the present invention;
Fig. 2 is a schematic diagram of a vehicle configuration information composition structure according to a first embodiment of the present invention;
FIG. 3 is a flow chart of a bus fault detection process provided in accordance with a first embodiment of the present invention;
FIG. 4 is a flow chart of another method for detecting a vehicle bus fault according to a second embodiment of the present invention;
fig. 5 is a schematic diagram of a structure of data to be stored according to a second embodiment of the present invention;
fig. 6 is a schematic structural diagram of a vehicle bus fault detection device according to a third embodiment of the present invention;
Fig. 7 is a schematic structural diagram of an electronic device implementing a method for detecting a bus failure of a vehicle according to an embodiment of the present invention.
Detailed Description
In order that those skilled in the art will better understand the present invention, a technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in which it is apparent that the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present invention without making any inventive effort, shall fall within the scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and the claims of the present invention and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the invention described herein may be implemented in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Example 1
Fig. 1 is a flowchart of a vehicle bus fault detection method according to an embodiment of the present invention, where the method may be applied to fault detection of a bus network of a commercial vehicle, and the method may be performed by a vehicle bus fault detection device, where the vehicle bus fault detection device may be implemented in hardware and/or software, and the vehicle bus fault detection device may be configured in a vehicle controller. As shown in fig. 1, the method includes:
S110, acquiring vehicle configuration information of the vehicle to be detected, and determining a target detection range according to the vehicle configuration information.
The vehicle to be detected is a vehicle which needs to be detected. The vehicle configuration information is identification information of a vehicle local area network bus (CAN, controller Area Network) of the whole vehicle to be detected, hereinafter referred to as a bus CAN, and the difference of the vehicle configuration information leads to the difference of a vehicle CAN network node and an affiliated message ID. The target detection range refers to a specific range determined according to the vehicle configuration and required to be detected.
In a specific embodiment, the vehicle configuration information of the vehicle to be tested may be obtained by reading a vehicle document and a manual, including a user manual, a technical manual, etc. of the vehicle, wherein the detailed information of the vehicle configuration may be contained; the method can also be used for obtaining the configuration information of the vehicle by reading a database of the manufacturer of the vehicle and connecting with a system of the manufacturer; the configuration data of the vehicle can also be read using a professional automotive diagnostic device. Acquiring relevant configuration information through a diagnosis interface of the vehicle; the configuration data may also be read directly from the electronic control unit of the vehicle; or inquiring related configuration information according to the vehicle identification number.
Specifically, the controller may explicitly need a detected bus system or portion to perform fault detection more specifically, that is, the controller may determine the target detection range according to the obtained vehicle configuration information. The controller refers to a vehicle controller of a vehicle to be tested.
Optionally, acquiring vehicle configuration information of the vehicle to be tested, and determining the target detection range according to the vehicle configuration information includes: acquiring bus identification information corresponding to each component system of a vehicle to be tested, and converting each bus identification information according to a specified format to generate vehicle configuration information; displaying the vehicle configuration information to a user to acquire target configuration information selected by the user; and taking the target configuration information as a target detection range of the vehicle to be detected.
Specifically, the controller converts the acquired bus identification information corresponding to each component system of the vehicle to be tested according to a specified format to generate vehicle configuration information. Exemplary, fig. 2 is a schematic diagram of a vehicle configuration information structure according to a first embodiment of the present invention, where, as shown in fig. 2, the vehicle configuration information includes a new energy CAN, a power CAN, and a chassis CAN connected to a vehicle controller to be tested, and each CAN includes a plurality of control systems, for example, the chassis CAN includes an upper loading system, an anti-lock system, an electronic brake system, and an electro-hydraulic brake system. And then, the generated vehicle configuration information is displayed to the user. The user can view the vehicle configuration information through the user terminal so as to know the configuration condition of the vehicle. In the process of checking the vehicle configuration information, the user can further select specific target configuration information according to own requirements and attention points. And finally, the controller determines the target configuration information selected by the user as a target detection range of the vehicle to be detected. The process of determining the target detection range can enable the fault detection process to better meet the requirements of users, improve the detection efficiency and accuracy, and provide more targeted support for fault diagnosis and maintenance of the vehicle to be detected.
And S120, performing bus fault detection based on the target detection range to generate target fault detection results, wherein the bus fault detection comprises complete vehicle bus closing fault detection, bus node loss detection and bus node content detection.
The bus fault detection refers to fault detection of a bus system of a vehicle to be detected by a controller. The whole bus closing fault detection refers to a process of detecting whether the whole bus is closed or cannot work normally. Bus node loss detection refers to an operation of checking whether a node in a bus system is lost. The bus node content detection refers to detection for confirming whether the bus node transmission content is correct or not. The target fault detection result refers to the result of various fault conditions obtained after the bus fault detection.
Specifically, the controller may perform bus fault detection based on the determined target detection range. This includes a full bus shutdown fault detection to determine if the bus system is completely shutdown or not operating properly, and a controller also performs a bus node loss detection to check if there are bus nodes that are not properly connected or that are in communication failure. In addition, the controller can also detect the content of the bus node so as to ensure that the information transmitted by the bus node is accurate.
Optionally, performing bus fault detection based on the target detection range to generate each target fault detection result includes: sequentially taking each target configuration information in a target detection range as a target system to be detected; detecting a complete vehicle bus closing fault of a target system to be detected so as to generate a complete vehicle bus closing fault result; judging whether the complete vehicle bus closing fault result is a fault or not, if so, acquiring a first error number and a first fault time, determining that the target fault detection result is the complete vehicle bus closing early warning when the first fault time reaches a corresponding preset threshold value, and determining that the target fault detection result is the complete vehicle bus closing fault when the first fault number and the first fault time both reach the corresponding preset threshold value; otherwise, bus node loss detection and bus node content detection are performed based on the target detection range to generate each target fault detection result.
The failure of closing the whole bus refers to failure of a bus system of the vehicle, so that the whole bus is closed, and each system of the vehicle cannot normally communicate and work.
Specifically, the controller detects the power CAN system, the chassis CAN system and the new energy CAN system of the vehicle respectively, starts timing when the CAN bus is detected to be in a closed state, restarts the CAN network when the timing reaches a time threshold value, simultaneously gives an early warning to a driver, starts counting, restarts timing after restarting, cancels the threshold value if the CAN network is restarted successfully within the specified time threshold value, otherwise adds one to failure times, and reports the closing fault of the corresponding CAN bus if the CAN bus is kept closed all the time within 3 restarting periods.
Optionally, performing bus node loss detection and bus node content detection based on the target detection range to generate each target fault detection result, including: detecting the loss of the bus node of the target system to be detected so as to generate a detection result of the loss of the bus node target fault; judging whether a bus node loss target fault detection result is a fault or not, if yes, acquiring a second error number and a second fault time, determining that the target fault detection result is a bus node loss early warning when the second fault time reaches a corresponding preset threshold value, and determining that the target fault detection result is a bus node loss fault when the second fault number and the second fault time both reach the corresponding preset threshold value; otherwise, detecting the content of the bus node based on the target detection range to generate each target fault detection result.
In a specific embodiment, the controller detects the IDs of the components one by one based on the current vehicle configuration, if the intermittent loss of the node messages is detected, the driver is warned, and if the intermittent loss times of the nodes are greater than a node loss judging threshold value, the corresponding node loss faults are warned; if the node is always in a lost state, the corresponding node is reported to lose the fault.
Optionally, performing bus node content detection based on the target detection range to generate each target fault detection result, including: detecting the content of the bus node of the target system to be detected to generate a target fault detection result of the content of the bus node; judging whether a bus node content target fault detection result is a fault or not, if so, acquiring a third error frequency and a third fault time, determining that the target fault detection result is bus node content early warning when the third fault time reaches a corresponding preset threshold value, and determining that the target fault detection result is bus node content fault when the third fault frequency and the third fault time both reach the corresponding preset threshold value; otherwise, determining the target fault detection result as the detection normal.
Specifically, the bus node content detection specifically comprises node sending error detection and node receiving error detection, the controller analyzes fault signals in the message signals sent by the CAN bus network, counts when detecting that the nodes have bit sending error frames, ACK response errors, bit filling errors and active errors, gives an early warning to a driver if the error times do not exceed an alarm time value within a set time range, and reports the sending faults of the corresponding nodes when the error time value exceeds the alarm time value; if the CRC error and the active receiving error of the node are detected, counting is carried out, if the error times do not exceed the alarm time value within the set time range, early warning is carried out to a driver, and when the error time value exceeds the alarm time value, the receiving fault of the corresponding node is reported.
S130, prioritizing the target fault detection results to generate fault display results, and sending the fault display results to the target end for storage.
The priority ranking means that the target fault detection results are ranked according to the importance degree. The fault display result means that each ordered target fault detection result is displayed in a specific mode. The target terminal refers to a terminal for receiving and storing the fault display result.
Specifically, after the bus fault detection is completed, the controller ranks the priority of the generated target fault detection results. By the technical scheme provided by the embodiment of the invention, which faults have higher importance or urgency can be determined so as to be processed and displayed preferentially. And finally, the controller sends the sequenced fault display result to the target end for storage. The target may be a central control system, database or other storage device of the vehicle for subsequent analysis and processing.
The specific application scene is as follows: fig. 3 is a flowchart of a bus fault detection process, taking a power CAN bus shutdown and a battery node loss of a vehicle, a message fault received by a brake system, and a message fault sent by a motor system as examples, when the vehicle is off-line, loaded, brushed and written with a complete vehicle controller program, a key message ID of a component is updated according to current vehicle configuration information, and taking a vehicle matching electric hydraulic brake hand brake as examples, the specific implementation manner is as follows: 1. the vehicle starts, the whole vehicle controller works, and the CAN bus error count value, the node loss count value, the message sending error count value and the message receiving error count value are initialized to be 0. 2. Detecting three CAN bus data, detecting that the current vehicle new energy CAN and the chassis CAN have no faults, detecting that the power CAN has bus closing, adding up a CAN bus error count value to count time, automatically restarting the power CAN network when the time reaches a threshold value and the bus closing fault exists, and simultaneously setting a prompt mark in a CAN fault information display message to be in an early warning state, wherein the bus closing mark displays that the power CAN bus is closed. And 3) after restarting the CAN network, repeating the judgment of the step 2), setting the prompt mark as normal if judging that the power CAN network is normal, setting the bus closing mark as normal, adding one to the CAN bus error count value if still failing, setting the prompt mark in the CAN fault information display message as a fault state after the value reaches a set threshold value, displaying on an instrument panel, and reminding drivers and maintenance personnel to display. 4. After the CAN bus of the vehicle is subjected to fault elimination, detecting node loss, detecting the ID information of a key message sent by a vehicle component configured by a whole vehicle controller, checking to find that the IDs of the key messages of the battery are not found, starting timing, adding one to the node loss count value, and continuing to judge the node loss; and repeating the node loss judgment, and if the node loss exists, adding one to the node loss count value. 5. Judging whether the timing time reaches a threshold value, if not, repeating the step 4), if the timing time reaches the time threshold value, if the node loss times are lower than the fault threshold value times, setting a prompt sign as an early warning state, otherwise, the timing time is in a fault state, and meanwhile, displaying a battery management system by a fault component sign and displaying the battery management system on an instrument panel. 6. After the node loss fault is removed, node message receiving and sending fault detection are carried out, the whole vehicle controller detects that the brake system has a message receiving fault, the motor system has a message sending fault, the fault display information preferentially displays the brake system fault based on the formulated judgment priority, and the message fault judgment of the motor and the brake system is synchronously carried out. 7. The brake system receives fault detection, and when receiving errors are detected, a receiving error counter is increased by one, and timing is started; when the timing threshold is not reached, the judgment is repeated, and when the message receiving error is detected, the receiving error counter is increased by one; when the current receiving error counter value is lower than the message receiving fault threshold value, setting a prompt sign as an early warning state, otherwise, setting a fault message type as receiving, simultaneously displaying an electrohydraulic braking system by a fault component sign, displaying the message receiving fault type in the message fault type sign, and simultaneously displaying in an instrument panel. 8. The motor system sends fault detection, and when a sending error is detected, a sending error counter is increased by one, and timing is started at the same time; when the timing threshold is not reached, the judgment is repeated, and when the message sending error is detected, the sending error counter is increased by one; when the timing threshold is reached, the current sending error counter value is lower than the message sending fault threshold, and the message sending fault of the motor is in an early warning state, otherwise, the motor is in a fault state. 9. After the fault of the braking system is solved, the display motor sends fault information, a prompt mark is set to be an early warning state according to the counting state, otherwise, the fault message type is set to be a sending state, meanwhile, the fault component mark displays the motor system, the message sending fault type is displayed in the message fault type mark, and meanwhile, the fault message type is displayed in an instrument panel.
According to the technical scheme provided by the embodiment of the invention, the target detection range is determined by the vehicle configuration information of the whole-vehicle full-line component, so that the test flow can be simplified, and the rapid positioning of the fault point can be realized; meanwhile, a bus and node fault detection compatible mechanism is established, the false alarm rate of fault information is reduced, priority judgment is carried out on multi-fault display based on vehicle performance requirements, the risk of vehicle communication problems is reduced, man-machine interaction of the fault information is realized through visualization of the fault information, rapid transmission of the fault information is realized, and fault investigation of vehicles is facilitated.
Example two
Fig. 4 is a flowchart of a vehicle bus fault detection method according to a second embodiment of the present invention, where a specific process of prioritizing each target fault detection result to generate a fault display result and sending the fault display result to a target end for storage is added on the basis of the first embodiment. As shown in fig. 4, the method includes:
s210, acquiring vehicle configuration information of a vehicle to be detected, and determining a target detection range according to the vehicle configuration information.
Optionally, acquiring vehicle configuration information of the vehicle to be tested, and determining the target detection range according to the vehicle configuration information includes: acquiring bus identification information corresponding to each component system of a vehicle to be tested, and converting each bus identification information according to a specified format to generate vehicle configuration information; displaying the vehicle configuration information to a user to acquire target configuration information selected by the user; and taking the target configuration information as a target detection range of the vehicle to be detected.
S220, bus fault detection is carried out based on the target detection range to generate target fault detection results, wherein the bus fault detection comprises complete vehicle bus closing fault detection, bus node loss detection and bus node content detection.
Optionally, performing bus fault detection based on the target detection range to generate each target fault detection result includes: sequentially taking each target configuration information in a target detection range as a target system to be detected; detecting a complete vehicle bus closing fault of a target system to be detected so as to generate a complete vehicle bus closing fault result; judging whether the complete vehicle bus closing fault result is a fault or not, if so, acquiring a first error number and a first fault time, determining that the target fault detection result is the complete vehicle bus closing early warning when the first fault time reaches a corresponding preset threshold value, and determining that the target fault detection result is the complete vehicle bus closing fault when the first fault number and the first fault time both reach the corresponding preset threshold value; otherwise, bus node loss detection and bus node content detection are performed based on the target detection range to generate each target fault detection result.
Optionally, performing bus node loss detection and bus node content detection based on the target detection range to generate each target fault detection result, including: detecting the loss of the bus node of the target system to be detected so as to generate a detection result of the loss of the bus node target fault; judging whether a bus node loss target fault detection result is a fault or not, if yes, acquiring a second error number and a second fault time, determining that the target fault detection result is a bus node loss early warning when the second fault time reaches a corresponding preset threshold value, and determining that the target fault detection result is a bus node loss fault when the second fault number and the second fault time both reach the corresponding preset threshold value; otherwise, detecting the content of the bus node based on the target detection range to generate each target fault detection result.
Optionally, performing bus node content detection based on the target detection range to generate each target fault detection result, including: detecting the content of the bus node of the target system to be detected to generate a target fault detection result of the content of the bus node; judging whether a bus node content target fault detection result is a fault or not, if so, acquiring a third error frequency and a third fault time, determining that the target fault detection result is bus node content early warning when the third fault time reaches a corresponding preset threshold value, and determining that the target fault detection result is bus node content fault when the third fault frequency and the third fault time both reach the corresponding preset threshold value; otherwise, determining the target fault detection result as the detection normal.
S230, a preset priority list is taken, wherein the preset priority list comprises priority sequences corresponding to the fault detection results.
S240, matching the target fault detection results through the priority list to determine the target priority sequence corresponding to the target fault detection results.
S250, sorting the target fault detection results according to the order of the target priority from high to low so as to generate a fault display result.
Specifically, the controller collects all the target fault detection results to be sequenced, and determines the target priority order of each target fault detection result according to the preset priority list. For example, the preset priority list may include: braking system fault > power and energy storage system fault > transmission system fault > accessory system fault. The controller ranks the target fault detection results from high to low according to the target priority order. Finally, the controller presents the ordered results in a specific form so as to be convenient for a user to view and analyze.
For example, the highest display priority of the braking system related to safety performance may be set in the priority list, including: electronic braking system, electronic hydraulic braking system, anti-lock braking system and air brake system; and secondly, selecting power related to vehicle running and faults of an energy storage system for display, wherein the method comprises the following steps of: an engine power system, a motor power system, and a battery energy storage system; and then displaying faults of the transmission system, including a gearbox transmission system, and finally displaying faults of accessory systems of the vehicle, including a steering oil pump control system, a DCDC control system, an air conditioner control system, an upper mounting control system and an instrument display system.
S260, acquiring a preset storage list, wherein the preset storage list comprises fault codes and data positions corresponding to the fault detection results.
S270, matching the fault display results through a preset storage list to determine target fault codes and target data positions corresponding to the target fault detection results.
S280, generating data to be stored according to the target fault codes and the target data positions, and sending the data to be stored to a target end for storage.
Specifically, the controller may obtain a preset storage list. The preset storage list comprises fault codes and data position information corresponding to each fault detection result. Fault codes are used to uniquely identify each fault, and data locations specify the storage location of the fault-related data in the system. The fault display results can be matched through a preset storage list, namely, the target fault codes and the target data positions corresponding to each target fault detection result can be determined through the preset storage list. Finally, the controller generates data to be stored according to the determined target fault codes and the target data positions, namely, the controller organizes related fault information and data into a specific format or structure so as to be capable of being effectively stored.
For example, the preset storage list may include a prompt identifier, a fault message type, a node loss identifier, a bus shutdown identifier, a message fault type and a fault component identifier, where the prompt identifier may include "00 normal", "01 early warning" and "11 fault", and the node loss identifier may include "00 normal" and "01 node loss".
In a specific implementation manner, fig. 5 is a schematic structural diagram of data to be stored according to the second embodiment of the present invention, where the data to be stored may be stored in the target end in 2 bits of data, where the first two bits of the first Bit are CAN bus hint identifiers, and may be divided into: normal state, early warning state and fault state; 3-6Byte shows the number of the current vehicle fault part, and 7-8Byte shows the fault type of the message, which can be divided into: receiving a fault and sending a fault; the first 3 bits of the second Bit signal display a bus closing identifier, 4-5 bytes display whether a node loss fault exists, the subsequent bytes display an ID code corresponding to fault information, and meanwhile, the fault information is sent to a bus end and an instrument end.
According to the technical scheme provided by the embodiment of the invention, the target detection range is determined by the vehicle configuration information of the whole-vehicle full-line component, so that the test flow can be simplified, and the rapid positioning of the fault point can be realized; meanwhile, a bus and node fault detection compatible mechanism is established, the false alarm rate of fault information is reduced, priority judgment is carried out on multi-fault display based on vehicle performance requirements, the risk of vehicle communication problems is reduced, man-machine interaction of the fault information is realized through visualization of the fault information, rapid transmission of the fault information is realized, and fault investigation of vehicles is facilitated.
Example III
Fig. 6 is a schematic structural diagram of a vehicle bus fault detection device according to a third embodiment of the present invention. As shown in fig. 6, the apparatus includes: the target detection range determining module 310 is configured to obtain vehicle configuration information of a vehicle to be detected, and determine a target detection range according to the vehicle configuration information;
The target fault detection result generating module 320 is configured to perform bus fault detection based on a target detection range to generate each target fault detection result, where the bus fault detection includes complete vehicle bus shutdown fault detection, bus node loss detection, and bus node content detection;
The fault display result generating and storing module 330 is configured to prioritize each target fault detection result to generate a fault display result, and send the fault display result to the target end for storing.
Optionally, the target detection range determining module 310 is specifically configured to: acquiring bus identification information corresponding to each component system of a vehicle to be tested, and converting each bus identification information according to a specified format to generate vehicle configuration information; displaying the vehicle configuration information to a user to acquire target configuration information selected by the user; and taking the target configuration information as a target detection range of the vehicle to be detected.
Optionally, the target fault detection result generating module 320 specifically includes: the complete vehicle bus closing fault detection unit is specifically used for: sequentially taking each target configuration information in a target detection range as a target system to be detected; detecting a complete vehicle bus closing fault of a target system to be detected so as to generate a complete vehicle bus closing fault result; judging whether the complete vehicle bus closing fault result is a fault or not, if so, acquiring a first error number and a first fault time, determining that the target fault detection result is the complete vehicle bus closing early warning when the first fault time reaches a corresponding preset threshold value, and determining that the target fault detection result is the complete vehicle bus closing fault when the first fault number and the first fault time both reach the corresponding preset threshold value; otherwise, bus node loss detection and bus node content detection are performed based on the target detection range to generate each target fault detection result.
Optionally, the target fault detection result generating module 320 specifically includes: the bus node loss detection unit is specifically configured to: detecting the loss of the bus node of the target system to be detected so as to generate a detection result of the loss of the bus node target fault; judging whether a bus node loss target fault detection result is a fault or not, if yes, acquiring a second error number and a second fault time, determining that the target fault detection result is a bus node loss early warning when the second fault time reaches a corresponding preset threshold value, and determining that the target fault detection result is a bus node loss fault when the second fault number and the second fault time both reach the corresponding preset threshold value; otherwise, detecting the content of the bus node based on the target detection range to generate each target fault detection result.
Optionally, the target fault detection result generating module 320 specifically includes: the bus node content detection unit is specifically configured to: detecting the content of the bus node of the target system to be detected to generate a target fault detection result of the content of the bus node; judging whether a bus node content target fault detection result is a fault or not, if so, acquiring a third error frequency and a third fault time, determining that the target fault detection result is bus node content early warning when the third fault time reaches a corresponding preset threshold value, and determining that the target fault detection result is bus node content fault when the third fault frequency and the third fault time both reach the corresponding preset threshold value; otherwise, determining the target fault detection result as the detection normal.
Optionally, the fault display result generating and storing module 330 specifically includes: the fault display result generating unit is specifically configured to: acquiring a preset priority list, wherein the preset priority list comprises priority sequences corresponding to all fault detection results; matching each target fault detection result through a priority list to determine each target priority sequence corresponding to each target fault detection result; and sequencing the target fault detection results according to the order of the target priority from high to low so as to generate a fault display result.
Optionally, the fault display result generating and storing module 330 specifically includes: the fault display result storage unit is specifically used for: acquiring a preset storage list, wherein the preset storage list comprises fault codes and data positions corresponding to the fault detection results; matching the fault display results through a preset storage list to determine target fault codes and target data positions corresponding to the target fault detection results; and generating data to be stored according to the target fault code and the target data position, and sending the data to be stored to a target end for storage.
According to the technical scheme provided by the embodiment of the invention, the target detection range is determined by the vehicle configuration information of the whole-vehicle full-line component, so that the test flow can be simplified, and the rapid positioning of the fault point can be realized; meanwhile, a bus and node fault detection compatible mechanism is established, the false alarm rate of fault information is reduced, priority judgment is carried out on multi-fault display based on vehicle performance requirements, the risk of vehicle communication problems is reduced, man-machine interaction of the fault information is realized through visualization of the fault information, rapid transmission of the fault information is realized, and fault investigation of vehicles is facilitated.
The vehicle bus fault detection device provided by the embodiment of the invention can execute the vehicle bus fault detection method provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the execution method.
Example IV
Fig. 7 shows a schematic diagram of the structure of an electronic device 10 that may be used to implement an embodiment of the invention. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. Electronic equipment may also represent various forms of mobile devices, such as personal digital processing, cellular telephones, smartphones, wearable devices (e.g., helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be exemplary only, and are not meant to limit implementations of the inventions described and/or claimed herein.
As shown in fig. 7, the electronic device 10 includes at least one processor 11, and a memory, such as a Read Only Memory (ROM) 12, a Random Access Memory (RAM) 13, etc., communicatively connected to the at least one processor 11, in which the memory stores a computer program executable by the at least one processor, and the processor 11 may perform various appropriate actions and processes according to the computer program stored in the Read Only Memory (ROM) 12 or the computer program loaded from the storage unit 18 into the Random Access Memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 may also be stored. The processor 11, the ROM 12 and the RAM 13 are connected to each other via a bus 14. An input/output (I/O) interface 15 is also connected to bus 14.
Various components in the electronic device 10 are connected to the I/O interface 15, including: an input unit 16 such as a keyboard, a mouse, etc.; an output unit 17 such as various types of displays, speakers, and the like; a storage unit 18 such as a magnetic disk, an optical disk, or the like; and a communication unit 19 such as a network card, modem, wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information/data with other devices via a computer network, such as the internet, and/or various telecommunication networks.
The processor 11 may be a variety of general and/or special purpose processing components having processing and computing capabilities. Some examples of processor 11 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various specialized Artificial Intelligence (AI) computing chips, various processors running machine learning model algorithms, digital Signal Processors (DSPs), and any suitable processor, controller, microcontroller, etc. The processor 11 performs the various methods and processes described above, such as a vehicle bus fault detection method. Namely: acquiring vehicle configuration information of a vehicle to be detected, and determining a target detection range according to the vehicle configuration information; performing bus fault detection based on the target detection range to generate target fault detection results, wherein the bus fault detection comprises complete vehicle bus closing fault detection, bus node loss detection and bus node content detection; and sequencing the priority of each target fault detection result to generate a fault display result, and sending the fault display result to a target end for storage.
In some embodiments, a vehicle bus fault detection method may be implemented as a computer program tangibly embodied on a computer-readable storage medium, such as storage unit 18. In some embodiments, part or all of the computer program may be loaded and/or installed onto the electronic device 10 via the ROM 12 and/or the communication unit 19. When the computer program is loaded into RAM 13 and executed by processor 11, one or more steps of a vehicle bus fault detection method described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to perform a vehicle bus fault detection method by any other suitable means (e.g., by means of firmware).
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuit systems, field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), systems On Chip (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs, the one or more computer programs may be executed and/or interpreted on a programmable system including at least one programmable processor, which may be a special purpose or general-purpose programmable processor, that may receive data and instructions from, and transmit data and instructions to, a storage system, at least one input device, and at least one output device.
A computer program for carrying out methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the computer programs, when executed by the processor, cause the functions/acts specified in the flowchart and/or block diagram block or blocks to be implemented. The computer program may execute entirely on the machine, partly on the machine, as a stand-alone software package, partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of the present invention, a computer-readable storage medium may be a tangible medium that can contain, or store a computer program for use by or in connection with an instruction execution system, apparatus, or device. The computer readable storage medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. Alternatively, the computer readable storage medium may be a machine readable signal medium. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) through which a user can provide input to the electronic device. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic input, speech input, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a background component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such background, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), wide Area Networks (WANs), blockchain networks, and the internet.
The computing system may include clients and servers. The client and server are typically remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server can be a cloud server, also called a cloud computing server or a cloud host, and is a host product in a cloud computing service system, so that the defects of high management difficulty and weak service expansibility in the traditional physical hosts and VPS service are overcome.
It should be appreciated that various forms of the flows shown above may be used to reorder, add, or delete steps. For example, the steps described in the present invention may be performed in parallel, sequentially, or in a different order, so long as the desired results of the technical solution of the present invention are achieved, and the present invention is not limited herein.
The above embodiments do not limit the scope of the present invention. It will be apparent to those skilled in the art that various modifications, combinations, sub-combinations and alternatives are possible, depending on design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the scope of the present invention.

Claims (10)

1. A method for detecting a vehicle bus fault, comprising:
acquiring vehicle configuration information of a vehicle to be detected, and determining a target detection range according to the vehicle configuration information;
Performing bus fault detection based on the target detection range to generate target fault detection results, wherein the bus fault detection comprises complete vehicle bus closing fault detection, bus node loss detection and bus node content detection;
And carrying out priority ranking on each target fault detection result to generate a fault display result, and sending the fault display result to a target end for storage.
2. The method according to claim 1, wherein the obtaining vehicle configuration information of the vehicle to be tested, and determining the target detection range according to the vehicle configuration information, comprises:
Acquiring bus identification information corresponding to each component system of the vehicle to be tested, and converting each bus identification information according to a specified format to generate the vehicle configuration information;
displaying the vehicle configuration information to a user to acquire target configuration information selected by the user;
And taking the target configuration information as a target detection range of the vehicle to be detected.
3. The method of claim 1, wherein the bus fault detection based on the target detection range to generate each target fault detection result comprises:
Sequentially taking each target configuration information in the target detection range as a target system to be detected;
Detecting the closing fault of the whole bus of the target system to be detected so as to generate a closing fault result of the whole bus;
Judging whether the complete vehicle bus closing fault result is a fault or not, if so, acquiring a first error number and a first fault time, determining that the target fault detection result is the complete vehicle bus closing early warning when the first fault time reaches a corresponding preset threshold value, and determining that the target fault detection result is the complete vehicle bus closing fault when the first fault number and the first fault time both reach the corresponding preset threshold value;
otherwise, bus node loss detection and bus node content detection are carried out based on the target detection range so as to generate each target fault detection result.
4. The method of claim 3, wherein the bus node loss detection and bus node content detection based on the target detection range to generate each target fault detection result comprises:
detecting the loss of the bus node of the target system to be detected so as to generate a detection result of the target fault of the loss of the bus node;
Judging whether the bus node loss target fault detection result is a fault or not, if yes, acquiring a second error frequency and a second fault time, determining that the target fault detection result is a bus node loss early warning when the second fault time reaches a corresponding preset threshold value, and determining that the target fault detection result is a bus node loss fault when the second fault frequency and the second fault time both reach the corresponding preset threshold value;
otherwise, detecting the content of the bus node based on the target detection range to generate each target fault detection result.
5. The method of claim 4, wherein the bus node content detection based on the target detection range to generate each target fault detection result comprises:
detecting the content of the bus node of the target system to be detected to generate a target fault detection result of the content of the bus node;
Judging whether the bus node content target fault detection result is a fault or not, if yes, acquiring a third error frequency and a third fault time, determining that the target fault detection result is bus node content early warning when the third fault time reaches a corresponding preset threshold value, and determining that the target fault detection result is bus node content fault when the third fault frequency and the third fault time both reach the corresponding preset threshold value;
otherwise, determining the target fault detection result as normal detection.
6. The method of claim 1, wherein prioritizing each of the target fault detection results to generate a fault display result comprises:
Acquiring a preset priority list, wherein the preset priority list comprises priority sequences corresponding to all fault detection results;
Matching each target fault detection result through the priority list to determine each target priority sequence corresponding to each target fault detection result;
and sequencing the target fault detection results according to the order of the target priority from high to low so as to generate the fault display result.
7. The method of claim 6, wherein the sending the failure display result to a target end for storage comprises:
Acquiring a preset storage list, wherein the preset storage list comprises fault codes and data positions corresponding to the fault detection results;
Matching the fault display results through the preset storage list to determine target fault codes and target data positions corresponding to the target fault detection results;
And generating data to be stored according to the target fault code and the target data position, and sending the data to be stored to a target end for storage.
8. A vehicle bus fault detection device, characterized by comprising:
The target detection range determining module is used for acquiring vehicle configuration information of a vehicle to be detected and determining a target detection range according to the vehicle configuration information;
the target fault detection result generation module is used for carrying out bus fault detection based on the target detection range to generate each target fault detection result, wherein the bus fault detection comprises complete vehicle bus closing fault detection, bus node loss detection and bus node content detection;
The fault display result generation and storage module is used for carrying out priority ranking on each target fault detection result to generate a fault display result, and sending the fault display result to a target end for storage.
9. An electronic device, the electronic device comprising:
At least one processor; and
A memory communicatively coupled to the at least one processor; wherein,
The memory stores a computer program executable by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-7.
10. A computer storage medium storing computer instructions for causing a processor to perform the method of any one of claims 1-7 when executed.
CN202410486091.8A 2024-04-22 Vehicle bus fault detection method, device, equipment and storage medium Pending CN118264585A (en)

Publications (1)

Publication Number Publication Date
CN118264585A true CN118264585A (en) 2024-06-28

Family

ID=

Similar Documents

Publication Publication Date Title
EP3691189B1 (en) Method, apparatus and computer program for predicting fault of optical module
CN109725220B (en) Detection method, system and device for transformer oil cooling loop
CN115469629A (en) Remote diagnosis method, device, system, electronic equipment and storage medium
CN116723206A (en) Vehicle fault information processing method and device, electronic equipment and storage medium
CN111459616B (en) Test method, device, equipment and storage medium
CN116700776A (en) Information management method, device, equipment and storage medium of battery management system
CN115933591B (en) Controller diagnosis method, device, equipment and storage medium
CN118264585A (en) Vehicle bus fault detection method, device, equipment and storage medium
CN115086384B (en) Remote control test method, device, equipment and storage medium
CN116620245A (en) Cloud fault recording method, device, equipment and medium for electronic brake system
CN116684302A (en) Method and device for testing vehicle-mounted Ethernet
CN114884813B (en) Network architecture determining method and device, electronic equipment and storage medium
CN116567115A (en) Message detection method and device, electronic equipment and medium
CN115782971B (en) Switch state monitoring method, device and system and storage medium
CN117950387A (en) Vehicle fault diagnosis method, device, equipment and storage medium
CN118075170A (en) CAN signal quality monitoring method and device, electronic equipment and vehicle
CN116125946A (en) Vehicle fault diagnosis method, system, electronic device and storage medium
CN118298853A (en) Feedback method and device for speech recognition test abnormality
CN117931882A (en) Vehicle condition information acquisition method, device, equipment and storage medium
CN117608904A (en) Fault positioning method and device, electronic equipment and storage medium
CN117270508A (en) Vehicle fault prediction method, device, equipment and storage medium
CN118025210A (en) System, method, vehicle and storage medium for diagnosing fault of domain controller in automatic parking process
CN114756433A (en) Data processing method, device, equipment and storage medium
CN117997723A (en) Fault positioning method, device, vehicle, server and storage medium
CN116816526A (en) Method and device for detecting atmospheric pressure signal, electronic equipment and medium

Legal Events

Date Code Title Description
PB01 Publication