Vehicle fault information forwarding method, receiving method, device, equipment and medium
Patent Information
- Application Number
- CN202311472466.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-07
- Publication Date
- 2026-10-16
- Estimated Expiration
- 2043-11-07
AI Technical Summary
[0005]本发明提供了一种车辆故障信息的转发方法、接收方法、装置、设备及介质,可以解决现有技术的车辆故障信息的流通性较差,车辆故障信息的获取效率较低的问题
[0031]The technical solution of this invention, on the one hand, firstly obtains a pre-configured set of diagnostic fault codes, configures the set based on manually preset configuration rules, selects target fault codes to be forwarded from the set, then, when a fault type matching the target fault code is detected, generates a target fault message and stores it in a target storage module, finally performs repeatability verification on the target fault message, and forwards the target fault message that passes the repeatability verification to the CAN controller local area network bus connected to the electronic control device; on the other hand, firstly obtains a pre-configured identification code permission table, then detects the CAN controller local area network bus. The system forwards data and identifies whether the forwarded data contains an identification code. When the forwarded data contains an identification code, it determines whether the identification code is a licensed identification code based on the identification code permission table. Finally, if the identification code in the forwarded data is a licensed identification code and contains a diagnostic fault code, then the forwarded data is determined to be a target fault message, and the target fault message is stored in the receiving storage module. This solves the problems of poor flow and low efficiency of vehicle fault information acquisition in the prior art, realizes the forwarding and receiving of vehicle fault information, improves the flow and efficiency of vehicle fault information acquisition.
Smart Images

Figure CN117523699B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of information transmission, and in particular to a method, method, apparatus, device, and medium for forwarding and receiving vehicle fault information. Background Technology
[0002] Vehicle fault information plays a crucial role in vehicle parts repair and after-sales problem analysis. Vehicle manufacturers and repair departments can quickly identify vehicle issues using this information. Furthermore, vehicle fault information helps us analyze the potential causes behind the faults, allowing for more thorough and fundamental repairs to prevent recurrence.
[0003] Traditional controllers typically use an independent storage strategy for recording vehicle fault information. This means that each controller only records faults of its own or directly connected peripherals, and only stores these faults in its own memory.
[0004] Existing technologies have the following problems: When analyzing complex problems, these problems may be caused by abnormalities in the vehicle's electrical circuits or networks; or a failure in one controller may lead to incorrect signal reception in another controller, resulting in concurrent failures. Traditional fault recording methods can only obtain independent, single vehicle fault information, leading to poor information flow and low efficiency in acquiring vehicle fault information. Summary of the Invention
[0005] This invention provides a method, device, equipment, and medium for forwarding and receiving vehicle fault information, which can solve the problems of poor flow of vehicle fault information and low efficiency in obtaining vehicle fault information in the prior art.
[0006] In a first aspect, embodiments of the present invention provide a method for forwarding vehicle fault information, executed by an electronic control device configured with multiple storage modules, the method comprising:
[0007] Obtain a pre-configured set of diagnostic fault codes; wherein the set of diagnostic fault codes is pre-configured in the electronic control device and includes at least one diagnostic fault code and a fault type matching the diagnostic fault code;
[0008] The diagnostic fault code set is configured based on manually preset configuration rules to select target fault codes that need to be forwarded from the diagnostic fault code set.
[0009] When a fault type matching the target fault code is detected, a target fault message is generated and stored in the target storage module; wherein, the target storage module is used to store the target fault message generated by the electronic control device;
[0010] The target fault message is subjected to repeatability verification, and the target fault message that passes the repeatability verification is forwarded to the CAN controller area network bus connected to the electronic control device.
[0011] Secondly, embodiments of the present invention provide a method for receiving vehicle fault information, executed by an electronic control device configured with multiple storage modules, the method comprising:
[0012] Obtain a pre-configured identification code license table; wherein the identification code license table includes at least one licensed identification code;
[0013] The presence of forwarded data is detected in the CAN controller local area network bus, and it is identified whether the forwarded data contains an identification code;
[0014] When the forwarded data contains an identification code, it is determined whether the identification code is a licensed identification code based on the identification code permission table.
[0015] If the identity identification code contained in the forwarded data is an authorized identification code and contains a diagnostic fault code, then the forwarded data is determined to be a target fault message, and the target fault message is stored in the receiving storage module.
[0016] Thirdly, embodiments of the present invention provide a vehicle fault information forwarding device, executed by an electronically controlled device configured with multiple storage modules, the device comprising:
[0017] A code set acquisition module is used to acquire a pre-configured diagnostic fault code set; wherein, the diagnostic fault code set is pre-configured in the electronic control device, including at least one diagnostic fault code and a fault type matching the diagnostic fault code;
[0018] The fault code configuration module is used to configure the diagnostic fault code set based on manually preset configuration rules, so as to select the target fault code to be forwarded in the diagnostic fault code set;
[0019] A fault message generation module is used to generate a target fault message and store it in a target storage module when a fault type matching the target fault code is detected; wherein, the target storage module is used to store the target fault message generated by the electronic control device.
[0020] The repeatability verification module is used to perform repeatability verification on the target fault message and forward the target fault message that passes the repeatability verification to the CAN controller local area network bus connected to the electronic control device.
[0021] Fourthly, embodiments of the present invention provide a vehicle fault information receiving device, executed by an electronic control device configured with multiple storage modules, the device comprising:
[0022] The license table acquisition module is used to acquire a pre-configured identification code license table; wherein the identification code license table includes at least one licensed identification code;
[0023] The identity recognition code identification module is used to detect the existence of forwarded data in the CAN controller local area network bus and identify whether the forwarded data contains an identity recognition code;
[0024] The identity verification module is used to determine whether the identity verification code is a licensed identity verification code based on the identity verification code permission table when the forwarded data contains an identity verification code.
[0025] The target fault message determination module is used to determine that the forwarded data is a target fault message if the identity identification code contained in the forwarded data is an authorized identification code and contains a diagnostic fault code, and then stores the target fault message in the receiving storage module.
[0026] Fifthly, embodiments of the present invention provide an electronic device, the electronic device comprising:
[0027] At least one processor; and
[0028] A memory communicatively connected to the at least one processor; wherein,
[0029] The memory stores a computer program that can be executed by the at least one processor, which enables the at least one processor to execute the vehicle fault information forwarding method and receiving method according to any embodiment of the present invention.
[0030] In a sixth aspect, a computer-readable storage medium is provided, the computer-readable storage medium storing computer instructions, the computer instructions being configured to cause a processor to execute and implement the vehicle fault information forwarding method and receiving method according to any embodiment of the present invention.
[0031] The technical solution of this invention, on the one hand, firstly obtains a pre-configured set of diagnostic fault codes, configures the set based on manually preset configuration rules, selects target fault codes to be forwarded from the set, then, when a fault type matching the target fault code is detected, generates a target fault message and stores it in a target storage module, finally performs repeatability verification on the target fault message, and forwards the target fault message that passes the repeatability verification to the CAN controller local area network bus connected to the electronic control device; on the other hand, firstly obtains a pre-configured identification code permission table, then detects the CAN controller local area network bus. The system forwards data and identifies whether the forwarded data contains an identification code. When the forwarded data contains an identification code, it determines whether the identification code is a licensed identification code based on the identification code permission table. Finally, if the identification code in the forwarded data is a licensed identification code and contains a diagnostic fault code, then the forwarded data is determined to be a target fault message, and the target fault message is stored in the receiving storage module. This solves the problems of poor flow and low efficiency of vehicle fault information acquisition in the prior art, realizes the forwarding and receiving of vehicle fault information, improves the flow and efficiency of vehicle fault information acquisition.
[0032] It should be understood that the description in this section is not intended to identify key or essential features of the embodiments of the present invention, nor is it intended to limit the scope of the invention. Other features of the invention will become readily apparent from the following description. Attached Figure Description
[0033] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0034] Figure 1 This is a flowchart of a vehicle fault information forwarding method provided in Embodiment 1 of the present invention;
[0035] Figure 2 This is a flowchart of a method for receiving vehicle fault information according to Embodiment 2 of the present invention;
[0036] Figure 3 This is a schematic diagram of the structure of a vehicle fault information forwarding device according to Embodiment 3 of the present invention;
[0037] Figure 4This is a schematic diagram of the structure of a vehicle fault information receiving device according to Embodiment 4 of the present invention;
[0038] Figure 5 This is a schematic diagram of the structure of an electronic device that implements the vehicle fault information forwarding method and receiving method according to embodiments of the present invention. Detailed Implementation
[0039] To enable those skilled in the art to better understand the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of the present invention.
[0040] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of the invention described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover a non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.
[0041] Example 1
[0042] Figure 1 This is a flowchart of a vehicle fault information forwarding method provided in Embodiment 1 of the present invention. This embodiment is applicable to the situation of forwarding vehicle fault information. The method can be executed by an electronic control device configured with multiple storage modules. The electronic control device configured with multiple storage modules can be implemented in hardware and / or software. The electronic control device configured with multiple storage modules can be configured in a terminal or server with vehicle fault information forwarding function.
[0043] like Figure 1 As shown, the method includes:
[0044] S110. Obtain the pre-configured set of diagnostic fault codes.
[0045] The diagnostic fault code set is pre-configured in the electronic control device, including at least one diagnostic fault code and a fault type that matches the diagnostic fault code.
[0046] The diagnostic fault code can be a DTC (Diagnostic Trouble Code). Furthermore, a DTC fault code includes an indicator prefix and three numbers. The prefix is typically "B0~B2" (body fault code), "C0~C3" (chassis fault code), "P0~P3" (power fault code), and "U0~U3" (network fault code). "B0", "C0", "P0", and "U0" are standardized and reserved for use; they cannot be assigned by the OEM or other entities. It is important to note that DTC fault codes indicate suspected faults or problem areas and suggest correct repairs. DTC fault codes cannot be used to indicate the absence of problems in the system or the status of a portion of the system.
[0047] The fault type refers to a fault that the target vehicle may experience and for which there is a diagnostic fault code that matches the fault type; for example, the fault type may include: a short circuit fault in the circuit at point A of the right front door of the vehicle.
[0048] In this embodiment, the diagnostic fault codes in the diagnostic fault code set can directly use the standard DTC fault codes specified in existing standards, or they can be modified and added by relevant personnel according to actual usage needs.
[0049] The electronic control device mentioned above can be an ECU (Electronic Control Unit); furthermore, the ECU is the comprehensive control device for the engine. Its function is to calculate, process, and judge various information input from the engine's sensors based on its stored programs, and then output instructions to control the actions of relevant actuators, achieving the purpose of fast, accurate, and automatic engine control. Furthermore, when the engine starts, the ECU enters a working state, and certain programs and steps are retrieved from the ROM and entered into the CPU. These programs can control ignition timing, fuel injection, idle speed, etc. Through the control of the CPU, instructions are executed one by one in a loop. The engine information required for executing the program comes from various sensors. Signals from the sensors first enter the input circuit for processing. If it is a digital signal, it is directly sent to the microcomputer via the I / O interface according to the CPU's arrangement. If it is an analog signal, it must be converted into a digital signal by an A / D converter before entering the microcomputer via the I / O interface. Most information is temporarily stored in RAM and then sent to the CPU according to instructions. The next step is to import reference data from the ROM into the CPU, comparing it with the information from the input sensors. For each signal from the relevant sensor, it is sampled sequentially and compared with reference data. After the CPU performs calculations on these data comparisons, it makes a decision and issues an output command signal. This signal is amplified through the I / O interface, and if necessary, converted into an analog signal by a D / A converter. Finally, it is output through the output loop to control the actuator.
[0050] S120. Configure the diagnostic fault code set based on manually preset configuration rules to select the target fault code that needs to be forwarded from the diagnostic fault code set.
[0051] Specifically, all fault codes in the diagnostic fault codes can be configured through DID (Defense in Dept). For example, if 1000 pairs of diagnostic fault codes and fault types are obtained from the current diagnostic fault code set through the DID, relevant personnel can set the diagnostic fault codes numbered 500-800 in the 1000 pairs as the target fault codes that need to be forwarded according to actual work needs.
[0052] In practical applications, due to the large number of diagnostic fault codes for a vehicle, triggering the transmission of all diagnostic fault codes could cause network congestion and excessive memory consumption. Furthermore, not all diagnostic fault codes have the potential for a vehicle-wide cascading effect and therefore do not need to participate in information interconnection. The configuration of diagnostic fault codes described in this embodiment significantly improves the flexibility of diagnostic fault code transmission, avoiding information omissions or resource shortages caused by inappropriate fault code selection, and maximizing the simplification and rationalization of information.
[0053] S130. When a fault type matching the target fault code is detected, a target fault message is generated and stored in the target storage module.
[0054] The target storage module is used to store the target fault message generated by the electronic control device.
[0055] Specifically, when a fault type matching the target fault code is detected, a target fault message is generated, including: when a fault type matching the target fault code is detected, obtaining the identification code of the electronic control device; and generating a target fault message based on the identification code and the target fault code.
[0056] The identification code is a unique identification code for the electronic control device. A unique electronic control device can be located through a specific identification code. It can be pre-configured by relevant personnel or randomly generated according to the system functions.
[0057] Based on the above steps, the target fault message may also include: the timestamp of the fault occurrence and the fault type, etc.; furthermore, in addition to the identification code and the target fault code, other information types in the target fault message can be configured by relevant personnel according to actual needs.
[0058] In this embodiment, the target storage module can store all types of messages generated by the electronic control device. This embodiment does not restrict the types of messages stored, but only specifies the source of the messages. Furthermore, the generation of target fault messages by the electronic control device based on the identification code and the target fault code is a mature existing technology, and this embodiment will not elaborate on it.
[0059] S140. Perform repeatability verification on the target fault message, and forward the target fault message that passes the repeatability verification to the CAN controller local area network bus connected to the electronic control device.
[0060] The repeatability verification can prevent the same problem at the same location of the vehicle from being sent repeatedly at the same time, which would cause excessive redundant information to occupy the vehicle network and put too much pressure on the network.
[0061] The process of performing repeatability verification on the target fault message and forwarding the target fault message that passes the repeatability verification to the CAN controller local area network bus connected to the electronic control device includes: determining whether there is a fault message in the target storage module of the electronic control device that has the same identification code and target fault code as the target fault message; if it exists, then the target fault message is determined to have failed the repeatability verification and a deletion operation is performed on the target fault message; if it does not exist, then the target fault message is determined to have passed the repeatability verification.
[0062] The CAN controller area network bus is a serial communication protocol bus for real-time applications. It uses twisted-pair cables to transmit signals and is one of the most widely used fieldbuses in the world. The CAN protocol is used for communication between various components in automobiles, replacing expensive and bulky wiring harnesses. Its robustness extends its applications to other automation and industrial applications. Features of the CAN protocol include complete serial data communication, real-time support, transmission rates up to 1Mb / s, 11-bit addressing, and error detection capabilities. Furthermore, the CAN controller area network bus needs to communicate with other electronic control devices besides the current electronic control device, which also have message receiving capabilities.
[0063] The technical solution of this invention first obtains a pre-configured set of diagnostic fault codes, configures the set of diagnostic fault codes based on manually preset configuration rules, selects target fault codes to be forwarded from the set of diagnostic fault codes, then generates a target fault message and stores it in a target storage module when a fault type matching the target fault code is detected, and finally performs repeatability verification on the target fault message and forwards the target fault message that passes the repeatability verification to the CAN controller local area network bus connected to the electronic control device. This realizes the forwarding of vehicle fault information, improves the flow of vehicle fault information, and improves the efficiency of obtaining vehicle fault information.
[0064] Example 2
[0065] Figure 2 This is a flowchart of a method for receiving vehicle fault information provided in Embodiment 2 of the present invention. This embodiment is applicable to the situation of receiving vehicle fault information. The method can be executed by an electronic control device configured with multiple storage modules. The electronic control device configured with multiple storage modules can be implemented in hardware and / or software. The electronic control device configured with multiple storage modules can be configured in a terminal or server with vehicle fault information receiving function.
[0066] like Figure 2 As shown, the method includes:
[0067] S210. Obtain the pre-configured identification code license table.
[0068] The identification code permission table includes at least one permitted identification code; further, the form of the permitted identification code can be the identity identification code form in step S130, and the specific meaning of the permitted identification code can be that it allows receiving forwarded data that matches the identity identification code containing the permitted identification code form.
[0069] S220. Detect that there is forwarding data in the CAN controller local area network bus, and identify whether the forwarding data contains an identification code.
[0070] S230. When the forwarded data contains an identification code, determine whether the identification code is a licensed identification code based on the identification code permission table.
[0071] The process of determining whether the forwarded data contains an identification code and a diagnostic fault code, and determining whether the identification code is a licensed identification code based on the identification code permission table, further includes: if the forwarded data does not contain either the identification code or the diagnostic fault code, then the forwarded data is rejected.
[0072] For example, if the current identification code permission table contains an allowed identification code of 111000, then when the electronic control device detects that the forwarded data contains an identification code and a diagnostic fault code, and the identification code is 111000, then the forwarded data is allowed to be received; correspondingly, if the forwarded data contains an identification code of 11001100, and the identification code does not have a matching allowed code in the identification code permission table, then the electronic control device does not accept the forwarded data.
[0073] S240. If the identity identification code contained in the forwarded data is a licensed identification code and contains a diagnostic fault code, then the forwarded data is determined to be a target fault message, and the target fault message is stored in the receiving storage module.
[0074] The process of determining that the forwarded data is a target fault message and storing the target fault message in the receiving storage module includes: obtaining the message size of the target fault message and detecting whether the remaining storage space in the receiving storage module is greater than the message size of the target fault message; if so, storing the target fault message in the receiving storage module; if not, deleting the target fault message with the earliest reception time in the receiving storage module and storing the target fault message in the receiving storage module.
[0075] It should be noted that the receiving and storage module described in this embodiment only allows the storage of target fault messages received on the CAN controller LAN bus, and refuses to store messages generated by the electronic control device itself or other types of messages besides target fault messages. Specifically, since the received target fault message does not correspond to a fault in the electronic control device itself, and the fault information read by diagnostic services 19 and 04 is mainly for faults occurring in its own electronic control device, the target fault message is not suitable for storage in the traditional fault information area.
[0076] The technical solution of this invention first obtains a pre-configured identification code permission table, then detects the presence of forwarded data in the CAN controller local area network bus, identifies whether the forwarded data contains an identification code, and if the forwarded data contains an identification code, determines whether the identification code is a permitted identification code based on the identification code permission table. Finally, if the identification code contained in the forwarded data is a permitted identification code and also contains a diagnostic fault code, then the forwarded data is determined to be a target fault message, and the target fault message is stored in the receiving storage module. This solves the problems of poor flow and low acquisition efficiency of vehicle fault information in the prior art, realizes the reception of vehicle fault information, improves the flow and acquisition efficiency of vehicle fault information.
[0077] Example 3
[0078] Figure 3 This is a schematic diagram of a vehicle fault information forwarding device provided in Embodiment 3 of the present invention.
[0079] like Figure 3 As shown, the device includes:
[0080] The code set acquisition module 310 is used to acquire a pre-configured diagnostic fault code set; wherein, the diagnostic fault code set is pre-configured in the electronic control device, including at least one diagnostic fault code and a fault type matching the diagnostic fault code;
[0081] The fault code configuration module 320 is used to configure the diagnostic fault code set based on manually preset configuration rules, so as to select the target fault code that needs to be forwarded in the diagnostic fault code set;
[0082] The fault message generation module 330 is used to generate a target fault message and store it in the target storage module when a fault type matching the target fault code is detected; wherein, the target storage module is used to store the target fault message generated by the electronic control device.
[0083] The repeatability verification module 340 is used to perform repeatability verification on the target fault message and forward the target fault message that passes the repeatability verification to the CAN controller local area network bus connected to the electronic control device.
[0084] The technical solution of this invention first obtains a pre-configured set of diagnostic fault codes, configures the set of diagnostic fault codes based on manually preset configuration rules, selects target fault codes to be forwarded from the set of diagnostic fault codes, then generates a target fault message and stores it in a target storage module when a fault type matching the target fault code is detected, and finally performs repeatability verification on the target fault message and forwards the target fault message that passes the repeatability verification to the CAN controller local area network bus connected to the electronic control device. This realizes the forwarding of vehicle fault information, improves the flow of vehicle fault information, and improves the efficiency of obtaining vehicle fault information.
[0085] Based on the above embodiments, the fault message generation module 330 further includes:
[0086] The identification code acquisition unit is used to acquire the identification code of the electronic control device when a fault type matching the target fault code is detected.
[0087] The message generation unit is used to generate a target fault message based on the identification code and the target fault code.
[0088] Based on the above embodiments, the repeatability verification module 340 further includes:
[0089] The message judgment unit is used to determine whether there is a fault message in the target storage module of the electronic control device that has the same identification code and target fault code as the target fault message;
[0090] The message deletion unit is used to determine, if it exists, that the target fault message has failed the duplicateity verification and to perform a deletion operation on the target fault message;
[0091] The judgment unit is used to determine if the target fault message passes the repeatability verification if it does not exist.
[0092] The vehicle fault information forwarding device provided in this embodiment of the invention can execute the vehicle fault information forwarding method provided in any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the method.
[0093] Example 4
[0094] Figure 4 This is a schematic diagram of a vehicle fault information receiving device provided in Embodiment 4 of the present invention.
[0095] like Figure 4 As shown, the device includes:
[0096] The license table acquisition module 410 is used to acquire a pre-configured identification code license table; wherein the identification code license table includes at least one licensed identification code;
[0097] The identity recognition code recognition module 420 is used to detect the existence of forwarded data in the CAN controller local area network bus and identify whether the forwarded data contains an identity recognition code;
[0098] The identity verification module 430 is used to determine whether the identity verification code is a licensed identity verification code based on the identity verification code permission table when the forwarded data contains an identity verification code.
[0099] The target fault message determination module 440 is used to determine that the forwarded data is a target fault message if the identity identification code contained in the forwarded data is an authorized identification code and contains a diagnostic fault code, and to store the target fault message in the receiving storage module.
[0100] The technical solution of this invention first obtains a pre-configured identification code permission table, then detects the presence of forwarded data in the CAN controller local area network bus, identifies whether the forwarded data contains an identification code, and if the forwarded data contains an identification code, determines whether the identification code is a permitted identification code based on the identification code permission table. Finally, if the identification code contained in the forwarded data is a permitted identification code and also contains a diagnostic fault code, then the forwarded data is determined to be a target fault message, and the target fault message is stored in the receiving storage module. This solves the problems of poor flow and low acquisition efficiency of vehicle fault information in the prior art, realizes the reception of vehicle fault information, improves the flow and acquisition efficiency of vehicle fault information.
[0101] Based on the above embodiments, the identity verification module 430 is further used for:
[0102] If the forwarded data does not contain either an identification code or a diagnostic fault code, then the forwarded data will be rejected.
[0103] Based on the above embodiments, the target fault message determination module 440 further includes:
[0104] A storage space identification unit is used to obtain the message size of the target fault message and detect whether the remaining storage space in the received storage module is greater than the message size of the target fault message.
[0105] The message receiving unit is configured to store the target fault message in the receiving storage module if the fault is present.
[0106] The message overwrite unit is used to delete the target fault message with the earliest reception time in the receiving storage module if no, and then store the target fault message in the receiving storage module.
[0107] The vehicle fault information receiving device provided in this embodiment of the invention can execute the vehicle fault information receiving method provided in any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the method execution.
[0108] Example 5
[0109] Figure 5 A schematic diagram of an electronic device 10 that can be used to implement embodiments of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processors, cellular phones, 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 merely illustrative and are not intended to limit the implementation of the invention described and / or claimed herein.
[0110] like Figure 5 As shown, the electronic device 10 includes at least one processor 11 and a memory, such as a read-only memory (ROM) 12 or a random access memory (RAM) 13, communicatively connected to the at least one processor 11. The memory stores computer programs executable by the at least one processor. The processor 11 can perform various appropriate actions and processes based on the computer program stored in the ROM 12 or loaded from storage unit 18 into the RAM 13. The RAM 13 can also store various programs and data required for the operation of the electronic device 10. The processor 11, ROM 12, and RAM 13 are interconnected via a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.
[0111] Multiple components in electronic device 10 are connected to I / O interface 15, including: input unit 16, such as keyboard, mouse, etc.; output unit 17, such as various types of displays, speakers, etc.; storage unit 18, such as disk, optical disk, etc.; and communication unit 19, such as network card, modem, wireless transceiver, etc. Communication unit 19 allows electronic device 10 to exchange information / data with other devices through computer networks such as the Internet and / or various telecommunications networks.
[0112] Processor 11 can be a variety of general-purpose and / or special-purpose processing components with 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 special-purpose artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any suitable processor, controller, microcontroller, etc. Processor 11 performs the various methods and processes described above, such as the method for forwarding vehicle fault information.
[0113] Accordingly, the method includes:
[0114] Obtain a pre-configured set of diagnostic fault codes; wherein the set of diagnostic fault codes is pre-configured in the electronic control device and includes at least one diagnostic fault code and a fault type matching the diagnostic fault code;
[0115] The diagnostic fault code set is configured based on manually preset configuration rules to select target fault codes that need to be forwarded from the diagnostic fault code set.
[0116] When a fault type matching the target fault code is detected, a target fault message is generated and stored in the target storage module; wherein, the target storage module is used to store the target fault message generated by the electronic control device;
[0117] The target fault message is subjected to repeatability verification, and the target fault message that passes the repeatability verification is forwarded to the CAN controller local area network bus connected to the electronic control device.
[0118] In some embodiments, the vehicle fault information forwarding method may be implemented as a computer program tangibly contained in a computer-readable storage medium, such as storage unit 18. In some embodiments, part or all of the computer program may be loaded into and / or installed on electronic device 10 via ROM 12 and / or communication unit 19. When the computer program is loaded into RAM 13 and executed by processor 11, one or more steps of the vehicle fault information forwarding method described above may be performed. Alternatively, in other embodiments, processor 11 may be configured to perform the vehicle fault information forwarding method by any other suitable means (e.g., by means of firmware).
[0119] Various embodiments of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field-programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), application-specific standard products (ASSPs), systems-on-a-chip (SoCs), payload-programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments may include implementations in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which may be a dedicated or general-purpose programmable processor, capable of receiving data and instructions from a storage system, at least one input device, and at least one output device, and transmitting data and instructions to the storage system, the at least one input device, and the at least one output device.
[0120] Computer programs used to implement the 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, a special-purpose computer, or other programmable data processing device, such that when executed by the processor, the computer programs cause the functions / operations specified in the flowcharts and / or block diagrams to be performed. The computer programs may be executed entirely on a machine, partially on a machine, or as a standalone software package, partially on a machine and partially on a remote machine, or entirely on a remote machine or server.
[0121] In the context of this invention, a computer-readable storage medium can be a tangible medium that may contain or store a computer program for use by or in conjunction with an instruction execution system, apparatus, or device. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination thereof. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof.
[0122] To provide interaction with a user, the systems and techniques described herein 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 the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user provides input to the electronic device. Other types of devices can also be used to provide interaction with the user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including sound input, voice input, or tactile input).
[0123] The systems and technologies described herein can be implemented in computing systems that include backend components (e.g., as data servers), or computing systems that include middleware components (e.g., application servers), or computing systems that include frontend components (e.g., user computers with graphical user interfaces or web browsers through which users can interact with implementations of the systems and technologies described herein), or any combination of such backend, middleware, or frontend components. The components of the system can be interconnected via digital data communication of any form or medium (e.g., communication networks). Examples of communication networks include local area networks (LANs), wide area networks (WANs), blockchain networks, and the Internet.
[0124] A computing system can include clients and servers. Clients and servers are generally located far apart and typically interact through communication networks. The client-server relationship is created by computer programs running on the respective computers and having a client-server relationship with each other. The server can be a cloud server, also known as a cloud computing server or cloud host, which is a hosting product within the cloud computing service system to address the shortcomings of traditional physical hosts and VPS services, such as high management difficulty and weak business scalability.
[0125] It should be understood that the various forms of processes shown above can be used, with steps reordered, added, or deleted. For example, the steps described in this invention can be executed in parallel, sequentially, or in different orders, as long as the desired result of the technical solution of this invention can be achieved, and this is not limited herein.
Claims
1. A method for forwarding vehicle fault information, executed by a first electronic control device equipped with multiple storage modules, characterized in that, include: Obtain a pre-configured set of diagnostic fault codes; wherein the set of diagnostic fault codes is pre-configured in the first electronic control device and includes at least one diagnostic fault code and a fault type matching the diagnostic fault code; The diagnostic fault code set is configured based on manually preset configuration rules to select target fault codes that need to be forwarded from the diagnostic fault code set. When a fault type matching the target fault code is detected, a target fault message is generated and stored in the target storage module; wherein, the target storage module is used to store the target fault message generated by the first electronic control device; The target fault message is subjected to repeatability verification, and the target fault message that passes the repeatability verification is forwarded to the CAN controller local area network bus connected to the first electronic control device, so as to forward the target fault message to the receiving device through the CAN controller local area network bus; Specifically, when a fault type matching the target fault code is detected, a target fault message is generated, including: when a fault type matching the target fault code is detected, obtaining the identification code of the first electronic control device; and generating a target fault message based on the identification code and the target fault code. The receiving device is configured to: acquire a pre-configured identification code license table; wherein the identification code license table includes at least one licensed identification code; detect the existence of forwarded data in the CAN controller local area network bus, and identify whether the forwarded data contains an identification code; when the forwarded data contains an identification code, determine whether the identification code is a licensed identification code based on the identification code license table; if the identification code contained in the forwarded data is a licensed identification code and contains a diagnostic fault code, then determine that the forwarded data is a target fault message, and store the target fault message in the receiving storage module.
2. The method according to claim 1, characterized in that, Performing repeatability verification on the target fault message and forwarding the target fault message that passes the repeatability verification to the CAN controller local area network bus connected to the first electronic control device includes: Determine whether there is a fault message in the target storage module of the first electronic control device that has the same identification code and target fault code as the target fault message; If it exists, the target fault message is determined to have failed the duplicate verification, and a deletion operation is performed on the target fault message; If it does not exist, the target fault message is determined to have passed the repeatability verification.
3. A method for receiving vehicle fault information, executed by a second electronic control device equipped with multiple storage modules, characterized in that, include: Obtain a pre-configured identification code license table; wherein the identification code license table includes at least one licensed identification code; The system detects that there is forwarding data sent by a forwarding device in the CAN controller local area network bus, and identifies whether the forwarding data contains an identification code; When the forwarded data contains an identification code, it is determined whether the identification code is a licensed identification code based on the identification code permission table. If the identity identification code contained in the forwarded data is a licensed identification code and contains a diagnostic fault code, then the forwarded data is determined to be a target fault message, and the target fault message is stored in the receiving storage module; The forwarding device is configured to: acquire a pre-configured set of diagnostic fault codes; wherein the set of diagnostic fault codes is pre-configured in a first electronic control device and includes at least one diagnostic fault code and a fault type matching the diagnostic fault code; configure the set of diagnostic fault codes based on manually preset configuration rules to select a target fault code to be forwarded from the set of diagnostic fault codes; when a fault type matching the target fault code is detected, generate a target fault message and store it in a target storage module; wherein the target storage module is configured to store the target fault message generated by the first electronic control device; perform repeatability verification on the target fault message and forward the target fault message that passes the repeatability verification to the CAN controller local area network bus connected to the first electronic control device, so as to forward the target fault message to the receiving device via the CAN controller local area network bus; Specifically, when a fault type matching the target fault code is detected, a target fault message is generated, including: when a fault type matching the target fault code is detected, obtaining the identification code of the first electronic control device; and generating a target fault message based on the identification code and the target fault code.
4. The method according to claim 3, characterized in that, Determining whether the forwarded data contains an identification code and a diagnostic fault code, and determining whether the identification code is a licensed identification code based on the identification code permission table, further includes: If the forwarded data does not contain either an identification code or a diagnostic fault code, then the forwarded data will be rejected.
5. The method according to claim 3, characterized in that, Determining that the forwarded data is a target fault message and storing the target fault message in the receiving storage module includes: Obtain the message size of the target fault message and check whether the remaining storage space in the received storage module is greater than the message size of the target fault message; If so, the target fault message is stored in the receiving storage module; If not, the target fault message with the earliest reception time in the receiving storage module is deleted, and the target fault message is stored in the receiving storage module.
6. A vehicle fault information forwarding device, executed by a first electronic control device configured with multiple storage modules, characterized in that, include: A code set acquisition module is used to acquire a pre-configured diagnostic fault code set; wherein, the diagnostic fault code set is pre-configured in the first electronic control device, including at least one diagnostic fault code and a fault type matching the diagnostic fault code; The fault code configuration module is used to configure the diagnostic fault code set based on manually preset configuration rules, so as to select the target fault code to be forwarded in the diagnostic fault code set; A fault message generation module is used to generate a target fault message and store it in a target storage module when a fault type matching the target fault code is detected; wherein, the target storage module is used to store the target fault message generated by the first electronic control device. The repeatability verification module is used to perform repeatability verification on the target fault message and forward the target fault message that passes the repeatability verification to the CAN controller local area network bus connected to the first electronic control device, so as to forward the target fault message to the receiving device through the CAN controller local area network bus. The fault message generation module further includes: an identification code acquisition unit, used to acquire the identification code of the first electronic control device when a fault type matching the target fault code is detected; and a message generation unit, used to generate a target fault message based on the identification code and the target fault code. The receiving device is configured to: acquire a pre-configured identification code license table; wherein the identification code license table includes at least one licensed identification code; detect the existence of forwarded data in the CAN controller local area network bus, and identify whether the forwarded data contains an identification code; when the forwarded data contains an identification code, determine whether the identification code is a licensed identification code based on the identification code license table; if the identification code contained in the forwarded data is a licensed identification code and contains a diagnostic fault code, then determine that the forwarded data is a target fault message, and store the target fault message in the receiving storage module.
7. A vehicle fault information receiving device, executed by a second electronic control device configured with multiple storage modules, characterized in that, include: The license table acquisition module is used to acquire a pre-configured identification code license table; wherein the identification code license table includes at least one licensed identification code; The identification code recognition module is used to detect forwarded data sent by a forwarding device in the CAN controller local area network bus and to identify whether the forwarded data contains an identification code. The identity verification module is used to determine whether the identity verification code is a licensed identity verification code based on the identity verification code permission table when the forwarded data contains an identity verification code. The target fault message determination module is used to determine that the forwarded data is a target fault message if the identity identification code contained in the forwarded data is a licensed identification code and contains a diagnostic fault code, and to store the target fault message in the receiving storage module. The forwarding device is configured to: acquire a pre-configured set of diagnostic fault codes; wherein the set of diagnostic fault codes is pre-configured in a first electronic control device and includes at least one diagnostic fault code and a fault type matching the diagnostic fault code; configure the set of diagnostic fault codes based on manually preset configuration rules to select a target fault code to be forwarded from the set of diagnostic fault codes; when a fault type matching the target fault code is detected, generate a target fault message and store it in a target storage module; wherein the target storage module is configured to store the target fault message generated by the first electronic control device; perform repeatability verification on the target fault message and forward the target fault message that passes the repeatability verification to the CAN controller local area network bus connected to the first electronic control device, so as to forward the target fault message to the receiving device via the CAN controller local area network bus; Specifically, when a fault type matching the target fault code is detected, a target fault message is generated, including: when a fault type matching the target fault code is detected, obtaining the identification code of the first electronic control device; and generating a target fault message based on the identification code and the target fault code.
8. An electronic device, characterized in that, The electronic device includes: At least one processor; and A memory communicatively connected to the at least one processor; wherein, The memory stores a computer program that can be executed by the at least one processor, the computer program being executed by the at least one processor to enable the at least one processor to perform the vehicle fault information forwarding method and receiving method as described in any one of claims 1-5.
9. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer instructions that, when executed by a processor, implement the method for forwarding and receiving vehicle fault information as described in any one of claims 1-5.
Citation Information
Patent Citations
Vehicle fault diagnosis method and system, and vehicle
CN104834303A
Vehicle fault reminding method and device
CN112054920A