Vehicle fault information transmission method and device, vehicle and storage medium
By obtaining fault monitoring data in the automotive electronic system and sending fault codes according to the fault level and cycle, the missed report problem in the transmission of fault information is solved, and the information transmission efficiency and vehicle safety are improved.
Patent Information
- Application Number
- CN202411092787.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-09
- Publication Date
- 2024-12-03
AI Technical Summary
In modern automotive electronic systems, the fault information transmission of EPS steering gear is limited due to limited communication resources, resulting in underreporting fault information, affecting the rapid location and processing of the fault source, and reducing the safety of the vehicle.
By obtaining fault monitoring data, determine the fault code and fault level in the fault data set, and send the fault codes one by one according to the fault level and cycle to prevent information leakage and improve transmission efficiency and vehicle safety.
Effectively prevent fault information from being misreported, improve fault response speed and vehicle safety, and ensure the timeliness and accuracy of fault information.
Smart Images

Figure CN119071238A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of vehicles, and more specifically, to a method and device for transmitting fault information of a vehicle in the field of vehicles, a vehicle and a storage medium. Background Art
[0002] In modern automotive electronic systems, the EPS (Electric Power Steering) steering gear is one of the key components, and its operating status directly affects the vehicle's handling performance and driving safety. At present, although the vehicle bus communication system can identify and transmit fault signals, due to limited communication resources, when the amount of fault information is large, it often faces the problem of not being able to fully cover all fault signals, resulting in the omission of fault information, which in turn affects the rapid location and processing of the fault source and reduces the safety of the vehicle.
[0003] In the related art, the fault status and fault level on the vehicle bus are usually determined by the message signal definition and length of each controller.
[0004] However, the one-to-one correspondence between fault bits and fault codes in the communication matrix cannot cover all fault information, which may lead to information loss. When there is a large amount of fault information in the vehicle, some faults may be missed due to limited communication resources, which in turn affects the rapid location and processing of the fault source, reducing the safety of the entire vehicle, which urgently needs to be solved. Summary of the invention
[0005] The present application provides a vehicle fault information transmission method, device, vehicle and storage medium. The method can send fault codes one by one according to the cycle and fault level, thereby preventing missing information and improving information transmission efficiency and vehicle safety.
[0006] In a first aspect, a method for transmitting fault information of a vehicle is provided, the method comprising: acquiring current fault monitoring data; determining a first fault data set in a fault state and a fault code and a fault level of each fault data in the first fault data set based on the current fault monitoring data, and when there are multiple fault data in the first fault data set, adding the fault code of each fault data to a preset array in the order of fault occurrence; performing fault code mapping on the fault code of each fault data in the preset array to obtain a fault code signal of the fault code of each fault data, and performing fault level mapping on the fault level corresponding to the fault code of each fault data in the preset array to obtain a fault level signal of the fault code of each fault data, and sending the fault level signal with the highest fault level in the fault level signal of the fault code of each fault data and the fault code corresponding to the fault level signal with the highest fault level to a target bus.
[0007] Through the above technical solution, by determining the fault code level, the fault codes are sent one by one according to the cycle and fault level, thereby preventing missing information and improving information transmission efficiency and vehicle safety.
[0008] In combination with the first aspect, in some possible implementations, before obtaining the current fault monitoring data, it also includes: determining all fault categories of the vehicle's EPS steering gear; based on all fault categories, setting the fault code and fault level of each fault in each fault category; based on the fault code and fault level of each fault in each fault category, performing fault diagnosis on the vehicle's EPS steering gear in turn, and obtaining the current fault monitoring data based on the fault diagnosis results.
[0009] Through the above technical scheme, all faults of the EPS steering gear are classified, fault codes and fault levels are set, so that the EPS steering gear can be fault diagnosed in turn to obtain the current fault monitoring data to prevent missing existing fault information, thereby enabling the controllers of the entire vehicle to respond effectively and improving the safety of the entire vehicle.
[0010] In combination with the first aspect and the above-mentioned implementation methods, in some possible implementation methods, after determining the first fault data set in the fault state and the fault code and fault level of each fault data in the first fault data set, it includes: if the first fault data set contains a single fault data, then performing fault code mapping on the single fault data to obtain a fault code signal corresponding to the single fault data, and performing fault level mapping on the single fault data to obtain a fault level signal corresponding to the single fault data; sending the fault code signal corresponding to the single fault data and the fault level signal corresponding to the single fault data to the target bus according to a preset period until the single fault data is in a non-fault state.
[0011] Through the above technical solution, when the first fault data set contains single fault data, the fault code and the associated fault level can be directly sent out in a message cycle through the fault code and fault level sending module, thereby improving data transmission efficiency.
[0012] In combination with the first aspect and the above-mentioned implementation methods, in some possible implementation methods, after sending the fault level signal with the highest fault level in the fault level signals of the fault code of each fault data and the fault code corresponding to the fault level signal with the highest fault level to the target bus, it also includes: judging whether the fault code corresponding to the fault level signal with the highest fault level is in a non-fault state; if the fault code corresponding to the fault level signal with the highest fault level is in the non-fault state, then removing the fault code corresponding to the fault level signal with the highest fault level from the preset array.
[0013] Through the above technical solution, the fault code status is updated in real time to ensure the timeliness and accuracy of fault information, providing strong protection for the safe operation of the vehicle.
[0014] In combination with the first aspect and the above-mentioned implementation methods, in some possible implementation methods, after the fault code corresponding to the fault level signal with the highest fault level is removed from the preset array, it also includes: re-sending the fault level signal with the highest fault level in the preset array and the fault code corresponding to the fault level signal with the highest fault level to the target bus until the preset array is empty.
[0015] Through the above technical solution, through the cyclic sending mechanism combined with fault priority sorting, key fault information can be transmitted first, thereby improving the fault response speed.
[0016] In combination with the first aspect and the above-mentioned implementation methods, in some possible implementation methods, after obtaining the current fault monitoring data according to the fault diagnosis result, it also includes: filtering out the first target fault data in a fault state from the current fault monitoring data; based on the fault level corresponding to the first target fault data, sending the fault code corresponding to the first target fault data to the RTE (Runtime Environment) layer in sequence.
[0017] Through the above technical scheme, the first target fault data in a fault state is screened out from the current fault monitoring data obtained by the fault diagnosis detection module, so that the first target fault data can be transmitted in order from the highest fault level according to the fault level, thereby effectively preventing data loss and improving work efficiency.
[0018] In combination with the first aspect and the above-mentioned implementation methods, in some possible implementation methods, after obtaining the current fault monitoring data according to the fault diagnosis result, it also includes: filtering out second target fault data in a non-fault state from the current fault monitoring data, and directly sending the fault code corresponding to the second target fault data to the RTE layer.
[0019] Through the above technical solution, the fault diagnosis and detection module can screen out the second target fault data in a non-fault state from the current fault monitoring data obtained, and can directly send the fault level corresponding to the second target fault data to improve communication efficiency and avoid wasting communication resources.
[0020] In a second aspect, a vehicle fault information transmission device is provided, which includes: an acquisition module for acquiring current fault monitoring data; a determination module for determining a first fault data set in a fault state and a fault code and a fault level of each fault data in the first fault data set based on the current fault monitoring data, and when there are multiple fault data in the first fault data set, adding the fault code of each fault data to a preset array in the order of fault occurrence; a transmission module for performing fault code mapping on the fault code of each fault data in the preset array to obtain a fault code signal of the fault code of each fault data, and performing fault level mapping on the fault level corresponding to the fault code of each fault data in the preset array to obtain a fault level signal of the fault code of each fault data, and sending the fault level signal with the highest fault level in the fault level signal of the fault code of each fault data and the fault code corresponding to the fault level signal with the highest fault level to a target bus.
[0021] In combination with the second aspect, in some possible implementations, before obtaining the current fault monitoring data, the acquisition module also includes: a determination unit, used to determine all fault categories of the vehicle's EPS steering gear; a setting unit, used to set the fault code and fault level of each fault in each fault category based on all fault categories; a diagnosis unit, used to perform fault diagnosis on the vehicle's EPS steering gear in turn based on the fault code and fault level of each fault in each fault category, and obtain the current fault monitoring data based on the fault diagnosis results.
[0022] In combination with the second aspect and the above-mentioned implementation methods, in some possible implementation methods, after determining the first fault data set in the fault state and the fault code and fault level of each fault data in the first fault data set, the determination module includes: a mapping unit, which is used to map the fault code of the single fault data to obtain the fault code signal corresponding to the single fault data if the first fault data set contains a single fault data, and to map the fault level of the single fault data to obtain the fault level signal corresponding to the single fault data; a transmission unit, which is used to send the fault code signal corresponding to the single fault data and the fault level signal corresponding to the single fault data to the target bus according to a preset period until the single fault data is in a non-fault state.
[0023] In combination with the second aspect and the above-mentioned implementation methods, in some possible implementation methods, after the fault level signal with the highest fault level in the fault level signals of the fault code of each fault data and the fault code corresponding to the fault level signal with the highest fault level are sent to the target bus, the transmission module also includes: a judgment unit, used to judge whether the fault code corresponding to the fault level signal with the highest fault level is in a non-fault state; and an elimination unit, used to eliminate the fault code corresponding to the fault level signal with the highest fault level from the preset array if the fault code corresponding to the fault level signal with the highest fault level is in the non-fault state.
[0024] In combination with the second aspect and the above-mentioned implementation methods, in some possible implementation methods, after the fault code corresponding to the fault level signal with the highest fault level is removed from the preset array, the removal unit also includes: a first transmission sub-unit, used to re-send the fault level signal with the highest fault level in the preset array and the fault code corresponding to the fault level signal with the highest fault level to the target bus until the preset array is empty.
[0025] In combination with the second aspect and the above-mentioned implementation methods, in some possible implementation methods, after obtaining the current fault monitoring data according to the fault diagnosis result, the diagnosis unit also includes: a screening subunit, used to screen out the first target fault data in a fault state from the current fault monitoring data; a second transmission subunit, used to send the fault code corresponding to the first target fault data to the RTE layer in sequence based on the fault level corresponding to the first target fault data.
[0026] In combination with the second aspect and the above-mentioned implementation methods, in some possible implementation methods, after obtaining the current fault monitoring data according to the fault diagnosis result, the diagnosis unit also includes: a third transmission subunit, used to filter out the second target fault data in a non-fault state from the current fault monitoring data, and directly send the fault code corresponding to the second target fault data to the RTE layer.
[0027] In a third aspect, a vehicle is provided, including the vehicle fault information transmission method described in the above embodiment.
[0028] In a fourth aspect, a computer program product is provided, comprising: a computer program code, which, when executed on a computer, enables the computer to execute the method in the first aspect or any possible implementation of the first aspect.
[0029] In a fifth aspect, a computer-readable storage medium is provided, which stores a computer program code. When the computer program code runs on a computer, the computer executes the method in the above-mentioned first aspect or any possible implementation manner of the first aspect. BRIEF DESCRIPTION OF THE DRAWINGS
[0030] Figure 1 A flowchart of a vehicle fault information transmission method provided in an embodiment of the present application;
[0031] Figure 2 A data transmission principle diagram provided for an embodiment of the present application;
[0032] Figure 3 A fault diagnosis and monitoring flow chart provided for one embodiment of the present application;
[0033] Figure 4 A flow chart of sending fault codes and fault levels provided for one embodiment of the present application;
[0034] Figure 5 A block diagram of a vehicle fault information transmission device provided in an embodiment of the present application;
[0035] Figure 6 A schematic diagram of the structure of a vehicle provided for one embodiment of the present application. DETAILED DESCRIPTION
[0036] The technical solution in the present application will be described clearly and in detail below in conjunction with the accompanying drawings. In the description of the embodiments of the present application, unless otherwise specified, " / " means or, for example, A / B can mean A or B: "and / or" in the text is only a description of the association relationship of associated objects, indicating that there can be three relationships, for example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, in the description of the embodiments of the present application, "multiple" means two or more than two.
[0037] In the following, the terms "first" and "second" are used for descriptive purposes only and are not to be understood as suggesting or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features.
[0038] The common fault status and fault level on the vehicle bus depend on the definition of the external message signal sent by the controller and the length of the message data. The fault status and fault level sent by the current controller enable other controllers to respond accordingly so that the source of the fault can be quickly found, thereby ensuring the safety of the vehicle. In common communication matrices, the fault bits are matched one-to-one with the fault codes commonly used by the controllers. However, due to limited communication resources, it is impossible to include all the fault information content in the controller, and it is easy to lose fault information during information transmission, which in turn affects the rapid location and processing of the fault source, reducing the safety of the vehicle. The embodiment of the present application sends the fault codes one by one according to the cycle and fault level, thereby preventing the omission of information, improving the transmission efficiency of information and the safety of the vehicle.
[0039] Figure 1 It is a schematic flow chart of a vehicle fault information transmission method provided in an embodiment of the present application.
[0040] For example, Figure 1 As shown, the method includes:
[0041] In step S101, current fault monitoring data is obtained.
[0042] Optionally, in one embodiment of the present application, before obtaining the current fault monitoring data, it also includes: determining all fault categories of the vehicle's EPS steering gear; based on all fault categories, setting the fault code and fault level of each fault in each fault category; based on the fault code and fault level of each fault in each fault category, performing fault diagnosis on the vehicle's EPS steering gear in turn, and obtaining the current fault monitoring data based on the fault diagnosis results.
[0043] Specifically, Figure 2 As shown, the embodiment of the present application mainly includes two parts, namely fault diagnosis monitoring and fault code and fault level sending. First, the fault diagnosis monitoring module is used to classify the fault categories, monitor the faults, and set the fault codes for all faults that need to be diagnosed for the EPS steering gear; secondly, the fault levels of all faults are judged, the fault levels are set from high to low, and the fault levels are transmitted to the RTE layer and enter the fault code and fault level sending module; finally, the fault code and fault level sending module performs fault integration, fault sorting, and fault mapping on all fault codes obtained from the fault diagnosis monitoring module, and sends the fault level and fault code to the bus according to the message cycle, thereby ensuring the integrity of fault data transmission.
[0044] Specifically, if Figure 3As shown, the embodiment of the present application first diagnoses and monitors all fault codes of the EPS steering gear of the vehicle through a fault diagnosis and monitoring module, and determines all fault categories of the EPS steering gear, wherein the fault categories mainly include but are not limited to communication faults, chip faults, voltage faults, sensor faults, etc.; secondly, based on all fault categories of the EPS steering gear, the fault code and fault level of each fault in each fault category are set, wherein the fault level of each fault code can be defined as level 0 fault, level 1 fault and level 2 fault, wherein level 2 fault>level 1 fault>level 0 fault; thirdly, based on the fault code and fault level of each fault in each fault category, the EPS steering gear of the vehicle is fault diagnosed in turn to obtain current fault monitoring data, wherein the current fault monitoring data may include first target fault data in a fault state and second target fault data in a non-fault state.
[0045] Optionally, in one embodiment of the present application, after obtaining the current fault monitoring data according to the fault diagnosis result, it also includes: filtering out the first target fault data in a fault state from the current fault monitoring data; based on the fault level corresponding to the first target fault data, sending the fault code corresponding to the first target fault data to the RTE layer in sequence.
[0046] Optionally, in one embodiment of the present application, after obtaining the current fault monitoring data according to the fault diagnosis result, it also includes: filtering out the second target fault data in a non-fault state from the current fault monitoring data, and directly sending the fault code corresponding to the second target fault data to the RTE layer.
[0047] Specifically, after obtaining the current fault monitoring data, the embodiment of the present application needs to further determine whether the fault corresponding to each fault code in the current fault monitoring data occurs. If a fault occurs, the first target fault data in a fault state is filtered out from the current fault monitoring data, and the fault code state corresponding to the first target fault data is set to Fail. The fault code is divided into fault levels according to the severity of the fault, and the fault level of the fault code state being Fail at this time is determined. For example, the fault code in the Fail state is a level 1 fault or a level 2 fault, and the fault code corresponding to the first target fault data is sent to the RTE layer in sequence, that is, the highest fault level among the fault levels with the fault code state being Fail is first transmitted to the RTE layer; if no fault occurs, the second target fault data in a non-fault state is filtered out from the current fault monitoring data. At this time, the fault code corresponding to the second target fault data can be a level 0 fault, and the fault code state corresponding to the second target fault data is set to Pass, and the fault code information of the Pass state is directly transmitted to the RTE layer.
[0048] For example, if it is detected that fault 1 and fault 2 in the communication fault are in a fault state, the fault codes corresponding to fault 1 and fault 2 are set to Fail, and the corresponding fault levels are determined. If the fault level of fault 1 is level 1 fault, the fault level of fault 2 is level 2 fault, and level 2 fault is greater than level 1 fault, then level 2 fault can be determined as the highest fault level, and level 2 fault is transmitted to the RTE layer.
[0049] In step S102, based on the current fault monitoring data, the first fault data set in a fault state and the fault code and fault level of each fault data in the first fault data set are determined, and when there are multiple fault data in the first fault data set, the fault code of each fault data is added to a preset array according to the order in which the fault occurs.
[0050] The preset array may be set by those skilled in the art according to actual data transmission conditions and is not specifically limited here.
[0051] Specifically, Figure 4 As shown, after the fault code and fault level sending module of the embodiment of the present application obtains the current fault monitoring data in the fault diagnosis monitoring module through the RTE layer, it first matches the obtained current fault monitoring data with the fault category and fault code of each fault in the current fault monitoring data defined by this module, that is, determines the first fault data set in a fault state and the fault code and fault level of each fault data in the first fault data set. If the first fault data set contains multiple fault data, the fault codes of all fault data in the first fault data set are traversed, and it is determined whether the fault codes of all fault data are in the Fail state. If the fault code is in the Fail state, the fault code of each fault data is added to the preset array in the order of fault occurrence. For example, the first fault code that becomes the Fail state is added to array element 1, the second fault code that becomes the Fail state is added to array element 2, and then the third and fourth fault codes that become the Fail state are added to the corresponding array elements 3 and 4 respectively, and so on.
[0052] In step S103, fault code mapping is performed on the fault code of each fault data in the preset array to obtain a fault code signal of the fault code of each fault data, and fault level mapping is performed on the fault level corresponding to the fault code of each fault data in the preset array to obtain a fault level signal of the fault code of each fault data, and the fault level signal with the highest fault level in the fault level signal of the fault code of each fault data and the fault code corresponding to the fault level signal with the highest fault level are sent to the target bus.
[0053] Optionally, in one embodiment of the present application, after sending the fault level signal with the highest fault level in the fault level signals of the fault code of each fault data and the fault code corresponding to the fault level signal with the highest fault level to the target bus, it also includes: determining whether the fault code corresponding to the fault level signal with the highest fault level is in a non-fault state; if the fault code corresponding to the fault level signal with the highest fault level is in a non-fault state, then removing the fault code corresponding to the fault level signal with the highest fault level from the preset array.
[0054] Optionally, in one embodiment of the present application, after the fault code corresponding to the fault level signal with the highest fault level is removed from the preset array, it also includes: re-sending the fault level signal with the highest fault level in the preset array and the fault code corresponding to the fault level signal with the highest fault level to the target bus until the preset array is empty.
[0055] Specifically, after the embodiment of the present application adds the fault code in the Fail state to the preset array according to the order of fault occurrence, it is necessary to perform fault code mapping on the fault code of each fault data in the preset array according to the message cycle to obtain the fault code signal of the fault code of each fault data, and perform fault level mapping on the fault level corresponding to the fault code of each fault data in the preset array to obtain the fault level signal of the fault code of each fault data, and send the fault level signal with the highest fault level in the fault level signal of the fault code of each fault data and the fault code corresponding to the fault level signal with the highest fault level to the target bus in a periodic cycle to ensure that all important fault information can be promptly conveyed to each control unit of the vehicle, thereby facilitating fault diagnosis, coordinated control and remote fault reporting at the vehicle level.
[0056] Furthermore, after the fault level signal with the highest fault level and the fault code corresponding to the fault level signal with the highest fault level in the fault level signals of the fault code of each fault data are sent to the target bus in a cyclical manner, if the fault code corresponding to the fault level signal with the highest fault level is in a non-fault state, that is, in a Pass state, the fault code in the Pass state is removed from the preset array, and the other fault codes in the preset array are reordered in a minus 1 manner, that is, based on the Index corresponding to the element, the Index corresponding to the element after this element is subtracted by 1, and the fault level signal with the highest fault level in the preset array and the fault code corresponding to the fault level signal with the highest fault level are resent to the target bus until the preset array is empty, that is, all fault codes become in a Pass state.
[0057] Optionally, in one embodiment of the present application, after determining the first fault data set in a fault state and the fault code and fault level of each fault data in the first fault data set, it includes: if the first fault data set contains a single fault data, then performing fault code mapping on the single fault data to obtain a fault code signal corresponding to the single fault data, and performing fault level mapping on the single fault data to obtain a fault level signal corresponding to the single fault data; and sending the fault code signal corresponding to the single fault data and the fault level signal corresponding to the single fault data to the target bus according to a preset period until the single fault data is in a non-fault state.
[0058] Specifically, in an embodiment of the present application, if the first fault data set is a single fault data, and when the fault code of the single fault data is in the Fail state, the single fault data is fault code mapped to obtain a fault code signal corresponding to the single fault data, and the single fault data is fault level mapped to obtain a fault level signal corresponding to the single fault data. At this time, the fault code signal corresponding to the single fault data and the fault level signal corresponding to the single fault data are directly sent out in a message cycle through the fault code and fault level sending module until the fault code of the single fault data becomes the Pass state.
[0059] Therefore, the embodiments of the present application can achieve the following beneficial effects based on the above implementation method:
[0060] (1) The present application prioritizes the fault level of the fault code, and sends it cyclically according to the fault level and message cycle. After each polling is completed, it starts sending again from the fault code with the highest priority, thereby reducing the code running time of each cycle and improving data transmission efficiency.
[0061] (2) The present application can utilize fewer communication resources to cover the fault information that can be obtained on the entire vehicle, thereby preventing the omission of existing fault information, thereby enabling the controllers of the entire vehicle to respond effectively and improving the safety of the entire vehicle.
[0062] (3) The present application can quickly and effectively send fault codes and the highest fault level through the bus to enable the vehicle controller to quickly respond to alarms and other effective actions.
[0063] In summary, according to the fault information transmission method of the vehicle of the embodiment of the present application, the current fault monitoring data is obtained, the fault code and fault level of each fault data in the first fault data set in the fault state are determined, and when there are multiple fault data in the first fault data set, the fault code of each fault data is added to the preset array according to the order of fault occurrence, and the fault code is mapped to obtain the fault code signal of the fault code of each fault data, and the fault level corresponding to the fault code of each fault data is mapped to the fault level to obtain the fault level signal of the fault code of each fault data, and the fault level signal with the highest fault level in the fault level signal and the corresponding fault code are sent to the target bus. This method can send the fault codes one by one according to the cycle and fault level, thereby preventing the omission of information, improving the transmission efficiency of information and the safety of the whole vehicle.
[0064] Figure 5 It is a block diagram of a vehicle fault information transmission device provided in an embodiment of the present application.
[0065] For example, Figure 5 As shown, the device may include: an acquisition module 100, a determination module 200 and a transmission module 300.
[0066] Wherein, the acquisition module 100 is used to obtain current fault monitoring data;
[0067] A determination module 200, for determining a first fault data set in a fault state and a fault code and a fault level of each fault data in the first fault data set based on current fault monitoring data, and when there are multiple fault data in the first fault data set, adding the fault code of each fault data to a preset array according to the order in which the fault occurs;
[0068] The transmission module 300 is used to perform fault code mapping on the fault code of each fault data in the preset array to obtain a fault code signal of the fault code of each fault data, and to perform fault level mapping on the fault level corresponding to the fault code of each fault data in the preset array to obtain a fault level signal of the fault code of each fault data, and to send the fault level signal with the highest fault level in the fault level signal of the fault code of each fault data and the fault code corresponding to the fault level signal with the highest fault level to the target bus.
[0069] Optionally, in one embodiment of the present application, before obtaining the current fault monitoring data, the obtaining module 100 further includes:
[0070] A determination unit, used for determining all fault categories of an EPS steering gear of a vehicle;
[0071] A setting unit, used for setting a fault code and a fault level of each fault in each fault category based on all fault categories;
[0072] The diagnosis unit is used to perform fault diagnosis on the EPS steering gear of the vehicle in turn based on the fault code and fault level of each fault in each fault category, and obtain current fault monitoring data according to the fault diagnosis result.
[0073] Optionally, in one embodiment of the present application, after determining the first fault data set in a fault state and the fault code and fault level of each fault data in the first fault data set, the determination module 200 includes:
[0074] A mapping unit, configured to, if the first fault data set is a single fault data, perform fault code mapping on the single fault data to obtain a fault code signal corresponding to the single fault data, and perform fault level mapping on the single fault data to obtain a fault level signal corresponding to the single fault data;
[0075] The transmission unit is used to send the fault code signal corresponding to the single fault data and the fault level signal corresponding to the single fault data to the target bus according to a preset cycle until the single fault data is in a non-fault state.
[0076] Optionally, in one embodiment of the present application, after sending the fault level signal with the highest fault level and the fault code corresponding to the fault level signal with the highest fault level in the fault level signal of the fault code of each fault data to the target bus, the transmission module 300 further includes:
[0077] A judgment unit, used for judging whether the fault code corresponding to the fault level signal with the highest fault level is in a non-fault state;
[0078] The elimination unit is used to eliminate the fault code corresponding to the fault level signal with the highest fault level from the preset array if the fault code corresponding to the fault level signal with the highest fault level is in a non-fault state.
[0079] Optionally, in one embodiment of the present application, after the fault code corresponding to the fault level signal with the highest fault level is removed from the preset array, the removal unit further includes:
[0080] The first transmission subunit is used to resend the fault level signal with the highest fault level in the preset array and the fault code corresponding to the fault level signal with the highest fault level to the target bus until the preset array is empty.
[0081] Optionally, in one embodiment of the present application, after obtaining the current fault monitoring data according to the fault diagnosis result, the diagnosis unit further includes:
[0082] A screening subunit, used for screening out first target fault data in a fault state from current fault monitoring data;
[0083] The second transmission subunit is used to send the fault codes corresponding to the first target fault data to the RTE layer in sequence based on the fault levels corresponding to the first target fault data.
[0084] Optionally, in one embodiment of the present application, after obtaining the current fault monitoring data according to the fault diagnosis result, the diagnosis unit further includes:
[0085] The third transmission subunit is used to filter out the second target fault data in a non-fault state from the current fault monitoring data, and directly send the fault code corresponding to the second target fault data to the RTE layer.
[0086] In summary, according to the fault information transmission device of the vehicle of the embodiment of the present application, the current fault monitoring data is obtained, the fault code and fault level of each fault data in the first fault data set in the fault state are determined, and when there are multiple fault data in the first fault data set, the fault code of each fault data is added to the preset array according to the order of fault occurrence, and the fault code is mapped to obtain the fault code signal of the fault code of each fault data, and the fault level corresponding to the fault code of each fault data is mapped to the fault level to obtain the fault level signal of the fault code of each fault data, and the fault level signal with the highest fault level in the fault level signal and the corresponding fault code are sent to the target bus. This method can send the fault codes one by one according to the cycle and fault level, thereby preventing the omission of information, improving the transmission efficiency of information and the safety of the whole vehicle.
[0087] Figure 6 It is a structural schematic diagram of a vehicle provided in an embodiment of the present application.
[0088] It should be understood that the above-described method can be applied to Figure 6 In a vehicle of the structure shown.
[0089] In addition, an embodiment of the present application also protects a device, which may include a memory and a processor, wherein the memory stores an executable program code, and the processor is used to call and execute the executable program code to execute the vehicle fault information transmission method provided in the embodiment of the present application.
[0090] Furthermore, the device also includes: a communication interface 603 for communication between the memory 601 and the processor 602 .
[0091] In this embodiment, the functional modules of the device can be divided according to the above method example. For example, each functional module can be corresponded, or two or more functions can be integrated into one processing module. The above integrated module can be implemented in the form of hardware. It should be noted that the division of modules in this embodiment is schematic and is only a logical function division. There may be other division methods in actual implementation.
[0092] It should be noted that all relevant contents of each step involved in the above method embodiment can be referred to the functional description of the corresponding functional module, which will not be repeated here.
[0093] It should be understood that the device provided in this embodiment is used to execute the above-mentioned vehicle fault information transmission method, and thus can achieve the same effect as the above-mentioned implementation method.
[0094] In the case of an integrated unit, the device may include a processing module and a storage module. When the device is applied to a vehicle, the processing module may be used to control and manage the actions of the vehicle. The storage module may be used to support the vehicle in executing mutual program codes, etc.
[0095] The processing module may be a processor 602 or a controller, which may implement or execute various exemplary logic blocks, modules and circuits disclosed in the present application. The processor 602 may also be a combination that implements a computing function, such as a combination of one or more microprocessors, a combination of digital signal processing (DSP) and a microprocessor, etc. The storage module may be a memory 601.
[0096] In addition, the device provided in the embodiments of the present application may specifically be a chip, a component or a module, and the chip may include a connected processor 602 and a memory 601; wherein the memory 601 is used to store instructions, and when the processor calls and executes the instructions, the chip can execute the vehicle fault information transmission method provided in the above embodiments.
[0097] This embodiment also provides a computer-readable storage medium, in which a computer program code is stored. When the computer program code is executed on a computer, the computer executes the above-mentioned related method steps to implement a vehicle fault information transmission method provided in the above embodiment.
[0098] This embodiment also provides a computer program product. When the computer program product is run on a computer, the computer is caused to execute the above-mentioned related steps to implement a vehicle fault information transmission method provided in the above embodiment.
[0099] Among them, the device, computer-readable storage medium, computer program product or chip provided in this embodiment is used to execute the corresponding method provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding method provided above, and will not be repeated here.
[0100] Through the description of the above implementation methods, technical personnel in the relevant field can understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.
[0101] In the embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of modules or units is only a logical function division, and there may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0102] The above contents are only specific implementation methods of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A method for transmitting vehicle fault information, characterized in that: The method comprises: Get current fault monitoring data; Based on the current fault monitoring data, determining a first fault data set in a fault state and a fault code and a fault level of each fault data in the first fault data set, and when there are multiple fault data in the first fault data set, adding the fault code of each fault data to a preset array according to the order in which the faults occur; Fault code mapping is performed on the fault code of each fault data in the preset array to obtain a fault code signal of the fault code of each fault data, and fault level mapping is performed on the fault level corresponding to the fault code of each fault data in the preset array to obtain a fault level signal of the fault code of each fault data, and the fault level signal with the highest fault level in the fault level signals of the fault code of each fault data and the fault code corresponding to the fault level signal with the highest fault level are sent to the target bus.
2. The method according to claim 1, characterized in that Before acquiring the current fault monitoring data, the method further includes: Determine all fault categories of the vehicle's EPS steering gear; Based on all the fault categories, setting a fault code and a fault level for each fault in each fault category; Based on the fault code and fault level of each fault in each fault category, fault diagnosis is performed on the EPS steering gear of the vehicle in turn, and the current fault monitoring data is obtained according to the fault diagnosis result.
3. The method according to claim 1, characterized in that After determining the first fault data set in the fault state and the fault code and fault level of each fault data in the first fault data set, the method includes: If the first fault data set is single fault data, performing fault code mapping on the single fault data to obtain a fault code signal corresponding to the single fault data, and performing fault level mapping on the single fault data to obtain a fault level signal corresponding to the single fault data; The fault code signal corresponding to the single fault data and the fault level signal corresponding to the single fault data are sent to the target bus according to a preset cycle until the single fault data is in a non-fault state.
4. The method according to claim 1, characterized in that: After sending the fault level signal with the highest fault level among the fault level signals of the fault code of each fault data and the fault code corresponding to the fault level signal with the highest fault level to the target bus, the method further includes: Determining whether the fault code corresponding to the fault level signal with the highest fault level is in a non-fault state; If the fault code corresponding to the fault level signal with the highest fault level is in the non-fault state, the fault code corresponding to the fault level signal with the highest fault level is removed from the preset array.
5. The method according to claim 4, characterized in that After the fault code corresponding to the fault level signal with the highest fault level is removed from the preset array, the method further includes: The fault level signal with the highest fault level in the preset array and the fault code corresponding to the fault level signal with the highest fault level are resent to the target bus until the preset array is empty.
6. The method according to claim 2, characterized in that After obtaining the current fault monitoring data according to the fault diagnosis result, the method further includes: Filter out first target fault data in a fault state from the current fault monitoring data; Based on the fault level corresponding to the first target fault data, the fault codes corresponding to the first target fault data are sent to the RTE layer in sequence.
7. The method according to claim 6, characterized in that After obtaining the current fault monitoring data according to the fault diagnosis result, the method further includes: Second target fault data in a non-fault state is screened out from the current fault monitoring data, and a fault code corresponding to the second target fault data is directly sent to the RTE layer.
8. A vehicle fault information transmission device, characterized in that: include: An acquisition module is used to obtain current fault monitoring data; a determination module, configured to determine a first fault data set in a fault state and a fault code and a fault level of each fault data in the first fault data set based on the current fault monitoring data, and, when there are multiple fault data in the first fault data set, add the fault code of each fault data to a preset array according to the order in which the faults occur; A transmission module is used to perform fault code mapping on the fault code of each fault data in the preset array to obtain a fault code signal of the fault code of each fault data, and to perform fault level mapping on the fault level corresponding to the fault code of each fault data in the preset array to obtain a fault level signal of the fault code of each fault data, and to send the fault level signal with the highest fault level in the fault level signals of the fault code of each fault data and the fault code corresponding to the fault level signal with the highest fault level to a target bus.
9. A vehicle, characterized in that: The vehicle comprises: a method for transmitting fault information of a vehicle as described in any one of claims 1 to 7 above.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed, the method according to any one of claims 1 to 7 is implemented.
