Vehicle machine fault code loss prevention system and method, and storage medium
By using a vehicle infotainment system with multi-level communication connections to perform fault code self-checks and caching, the problem of fault code loss caused by inconsistent controller wake-up times has been solved, and fault codes have been successfully transmitted and stored in the cloud.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- CHONGQING CHANGAN TECH CO LTD
- Filing Date
- 2023-08-25
- Publication Date
- 2026-06-09
Smart Images

Figure CN117311307B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of intelligent vehicle control technology, specifically to a vehicle fault code anti-loss system, a vehicle fault code anti-loss method, and a storage medium. Background Technology
[0002] During vehicle operation, numerous onboard Electronic Control Units (ECUs, or controllers) continuously monitor their own operational status. If an anomaly is detected, fault information is written to the controller's storage space in the form of diagnostic codes, and these codes are then sent to the vehicle's communication network. Traditional automobiles employ a distributed architecture, where controllers operate at the same level without hierarchical relationships; they communicate via a bus (Controller Area Network, CAN, or Local Interconnect Network, LIN). When a controller detects a fault and generates a fault code, it stores the code and broadcasts it to the bus. Other controllers that need to handle vehicle-wide fault code alerts, uploads, or other related processes will receive the fault code.
[0003] However, when the vehicle is powered on, the different controllers wake up at varying speeds. If one controller wakes up and immediately detects a fault and generates a fault code, uploading it to the bus, but the other controllers responsible for alerting and uploading fault codes have not yet woken up, then the generated fault code will not be alerted or uploaded by the entire vehicle, which is equivalent to the fault code being lost. To address the problem of fault code loss caused by the different wake-up times of the controllers in the existing solution, a vehicle-mounted fault code anti-loss solution needs to be created. Summary of the Invention
[0004] One of the objectives of this invention is to provide a vehicle fault code anti-loss system, method, and storage medium to solve the problem of fault code loss caused by the different wake-up times of various controllers in existing solutions.
[0005] To achieve the above objectives, the technical solution adopted by the present invention is as follows:
[0006] The first aspect of this invention provides a vehicle-mounted fault code anti-loss system, comprising: a vehicle-end control system composed of multi-level, hierarchically connected vehicle-mounted systems, and a cloud server communicatively connected to the vehicle-end control system; wherein, each vehicle-mounted system within the vehicle-end control system is configured to first perform a fault code self-check upon wake-up, and cache the fault codes locally after identification; each vehicle-mounted system is also configured to continuously perform communication link interconnection detection with the adjacent next-level vehicle-mounted system after wake-up, and send the locally cached fault codes to the adjacent next-level vehicle-mounted system after the communication link is established; the final-level vehicle-mounted system within the vehicle-end control system is configured to aggregate the fault codes and upload the aggregated fault codes to the cloud server.
[0007] Optionally, the vehicle-side control system includes: multiple lower-level controllers, multiple central / domain controllers, and at least one cloud controller; the cloud controller is the final-level vehicle-mounted system in the vehicle-side control system.
[0008] Optionally, each central / domain controller may communicate with multiple downstream controllers; each downstream controller may communicate with only one central / domain controller; each cloud controller may communicate with multiple central / domain controllers; or each central / domain controller may communicate with only one cloud controller.
[0009] Optionally, after recognizing a fault code, each vehicle system is also configured to cache the fault codes locally, along with the fault codes obtained from the self-test.
[0010] Optionally, after being woken up, each vehicle infotainment system continuously performs communication link interconnection detection with the adjacent next-level vehicle infotainment system, including: after any vehicle infotainment system is successfully woken up, it continuously sends communication confirmation messages to the adjacent upper / lower-level vehicle infotainment system with which a communication connection has been established; after each vehicle infotainment system receives the communication confirmation message and is successfully woken up, it sends a communication confirmation feedback message; if both vehicle infotainment systems receive the communication confirmation message and the communication confirmation feedback message at the same time, the communication link is determined to be connected.
[0011] Optionally, each vehicle infotainment system is also configured to: when sending locally cached fault codes to the adjacent next-level vehicle infotainment system, continuously send the locally cached fault codes at preset intervals before receiving a successful reception feedback signal from the adjacent next-level vehicle infotainment system; and delete the locally cached fault codes after receiving a successful reception feedback signal from the adjacent next-level vehicle infotainment system.
[0012] A second aspect of the present invention provides a method for preventing the loss of vehicle-mounted fault codes. This method is based on the aforementioned vehicle-mounted fault code prevention system. The method includes: in response to a successful wake-up signal, each vehicle-mounted system performs a fault code self-check to determine if a fault code exists; if a fault code exists, it is locally cached; in response to a successful wake-up signal, each vehicle-mounted system continuously performs communication link interconnection detection with the adjacent next-level vehicle-mounted system, and after the communication link is established, sends the locally cached fault codes to the adjacent next-level vehicle-mounted system; the final-level vehicle-mounted system in the vehicle control system aggregates the fault codes and uploads the aggregated fault codes to the cloud server.
[0013] Optionally, the continuous communication link interconnection detection between each vehicle system and the adjacent next-level vehicle system includes: after any vehicle system is successfully woken up, it continuously sends communication confirmation messages to the adjacent next-level vehicle system with which a communication connection has been established; after each vehicle system receives the communication confirmation message and is successfully woken up, it sends a communication confirmation feedback message; if both vehicle systems simultaneously receive the communication confirmation message and the communication confirmation feedback message, the communication link is determined to be connected.
[0014] Optionally, the method further includes: after each vehicle system sends the locally cached fault codes to the adjacent next-level vehicle system, before receiving a successful reception feedback signal from the adjacent next-level vehicle system, continuously sending the locally cached fault codes at preset intervals; and after receiving a successful reception feedback signal from the adjacent next-level vehicle system, deleting the locally cached fault codes.
[0015] A third aspect of the present invention provides a computer-readable storage medium storing instructions that, when executed on a computer, cause the computer to perform the above-described method for preventing loss of vehicle fault codes.
[0016] The beneficial effects of this invention are:
[0017] 1) The present invention is based on the fault code caching and aggregation link of each vehicle system. After being woken up, each vehicle system automatically performs its own fault code detection and caches the detected fault codes to prevent local fault code loss.
[0018] 2) After each vehicle infotainment system is woken up, it also needs to perform communication link interoperability checks on other vehicle infotainment systems connected to it. Fault code transmission is only performed when the communication link is interoperable, so as to ensure that the fault code is successfully transmitted.
[0019] 3) After aggregating all fault codes from the vehicle infotainment system to the final-level vehicle infotainment system, upload them to the cloud server for fault code analysis and storage to prevent fault codes from being lost. Attached Figure Description
[0020] Figure 1 This is a system structure diagram of a vehicle fault code anti-loss system provided in one embodiment of the present invention;
[0021] Figure 2 This is a flowchart illustrating the steps of a method for preventing the loss of vehicle fault codes according to one embodiment of the present invention.
[0022] Figure 3 This is a flowchart illustrating the implementation of a vehicle fault code anti-loss method according to one embodiment of the present invention. Detailed Implementation
[0023] The embodiments of the present invention will be described below with reference to the accompanying drawings and preferred embodiments. Those skilled in the art can easily understand other advantages and effects of the present invention from the content disclosed in this specification. The present invention can also be implemented or applied through other different specific embodiments, and various details in this specification can also be modified or changed based on different viewpoints and applications without departing from the spirit of the present invention. It should be understood that the preferred embodiments are only for illustrating the present invention and not for limiting the scope of protection of the present invention.
[0024] It should be noted that the illustrations provided in the following embodiments are only schematic representations of the basic concept of the present invention. Therefore, the drawings only show the components related to the present invention and are not drawn according to the actual number, shape and size of the components in the actual implementation. In the actual implementation, the form, quantity and proportion of each component can be arbitrarily changed, and the layout of the components may also be more complex.
[0025] During vehicle operation, numerous onboard Electronic Control Units (ECUs, or controllers) continuously monitor their own operational status. If an anomaly is detected, fault information is written to the controller's storage space in the form of diagnostic codes, and these codes are then sent to the vehicle's communication network. Traditional automobiles employ a distributed architecture, where controllers operate at the same level without hierarchical relationships; they communicate via a bus (Controller Area Network, CAN, or Local Interconnect Network, LIN). When a controller detects a fault and generates a fault code, it stores the code and broadcasts it to the bus. Other controllers that need to handle vehicle-wide fault code alerts, uploads, or other related processes will receive the fault code.
[0026] However, when the vehicle is powered on, the various controllers wake up at different speeds. If a controller wakes up and immediately detects a fault and generates a fault code that is uploaded to the bus, but the other controllers responsible for alerting and uploading the fault code have not yet woken up, then the generated fault code will not be alerted and uploaded by the vehicle, which is equivalent to the fault code being lost.
[0027] To address the issue of fault code loss caused by inconsistent wake-up times of various controllers in existing solutions, this invention proposes a vehicle infotainment system to prevent fault code loss. This system establishes a fault code caching and aggregation link among the various vehicle infotainment systems. Upon wake-up, each system automatically performs its own fault code detection and caches the detected fault codes to prevent local fault code loss. After wake-up, each system also performs communication link connectivity checks with other connected vehicle infotainment systems, only transmitting fault codes when the communication links are established, thus ensuring successful transmission. Finally, fault codes from all vehicle infotainment systems are aggregated at the final-level system and uploaded to a cloud server for fault code analysis and storage, preventing fault code loss.
[0028] like Figure 1 The first aspect of this invention provides a vehicle-mounted fault code anti-loss system, comprising: a vehicle-end control system composed of multi-level, hierarchically connected vehicle-mounted systems, and a cloud server communicatively connected to the vehicle-end control system; within the vehicle-end control system, each vehicle-mounted system first performs a fault code self-check upon wake-up, and caches the fault codes locally after identification; after wake-up, each vehicle-mounted system continuously performs communication link interconnection detection with the adjacent next-level vehicle-mounted system, and after the communication link is established, sends the locally cached fault codes to the adjacent next-level vehicle-mounted system; the final-level vehicle-mounted system in the vehicle-end control system summarizes the fault codes and uploads the summarized fault codes to the cloud server.
[0029] In this embodiment of the invention, the vehicle-side control system includes: multiple lower-level controllers, multiple central / domain controllers, and at least one cloud controller; the cloud controller is the final-level vehicle-mounted system in the vehicle-side control system.
[0030] Preferably, each central / domain controller communicates with multiple downstream controllers; each downstream controller communicates with only one central / domain controller; each cloud controller communicates with multiple central / domain controllers; and each central / domain controller communicates with only one cloud controller.
[0031] In one possible implementation, a cloud server can communicate with the vehicle's cloud controller via a wireless network; receive, store, and analyze all fault codes generated by the vehicle. The cloud controller is connected to the vehicle's communication network via Ethernet, CAN, or LIN bus and can communicate with other central / domain controllers and lower-level controllers in the vehicle; it can also communicate with the cloud server via a wireless network; monitor its own operating status and generate and store fault codes; receive all fault codes generated by the vehicle and upload them to the cloud. The central / domain controller is connected to the vehicle's communication network via Ethernet, CAN, or LIN bus and can communicate with other cloud controllers, central / domain controllers, and lower-level controllers in the vehicle; it can monitor its own operating status and generate and store fault codes; receive fault codes generated by the lower-level controllers and send these fault codes, along with its own fault codes, to the cloud controller. The lower-level controller is connected to the vehicle's communication network via Ethernet, CAN, or LIN bus and can communicate with other cloud controllers, central / domain controllers, and lower-level controllers in the vehicle; it can monitor its own operating status and generate and store fault codes; and send its own fault codes to the central / domain controller.
[0032] Preferably, after recognizing a fault code, each vehicle system is configured to cache the fault code locally, and also cache the fault codes transmitted from the adjacent upstream level together with the fault codes obtained from self-test.
[0033] In this embodiment of the invention, after being woken up, each vehicle infotainment system first performs its own fault code detection and caches the detected local fault codes to ensure that no local fault codes are lost. Then, it transmits its own fault codes to the next-level vehicle infotainment system after establishing a communication link, so that the next-level system can aggregate the fault codes. By designing this one-way fault code transmission link, fault code transmission efficiency can be improved, useless communication reduced, and bandwidth saved for fault code transmission.
[0034] Preferably, after being woken up, each vehicle infotainment system continuously performs communication link interconnection detection with the adjacent next-level vehicle infotainment system, including: after any vehicle infotainment system is successfully woken up, it continuously sends communication confirmation messages to the adjacent upper / lower-level vehicle infotainment system with which a communication connection has been established; after each vehicle infotainment system receives the communication confirmation message and is successfully woken up, it sends a communication confirmation feedback message; if both vehicle infotainment systems receive the communication confirmation message and the communication confirmation feedback message at the same time, it is determined that the communication link is connected.
[0035] In this embodiment of the invention, only by ensuring the interoperability of communication links between the vehicle and infotainment systems can the fault codes exchanged between them be successfully transmitted. Before transmitting fault codes, the present invention first generates and sends back communication confirmation messages between the vehicle and infotainment systems that have a communication relationship. Fault code transmission is only performed after the communication links are successfully interconnected, thus avoiding communication link interruptions that could lead to fault code transmission failure and loss of fault codes.
[0036] Preferably, each vehicle infotainment system is further configured to: when sending locally cached fault codes to the adjacent next-level vehicle infotainment system, continuously send the locally cached fault codes at preset intervals before receiving a successful reception feedback signal from the adjacent next-level vehicle infotainment system; and delete the locally cached fault codes after receiving a successful reception feedback signal from the adjacent next-level vehicle infotainment system.
[0037] In this embodiment of the invention, even after successful communication link interconnection, fault code transmission may still fail due to malicious interception or other unforeseen circumstances. If each vehicle system directly deletes cached information before the fault code is successfully transmitted, fault code loss will also occur. To avoid this problem, the present invention, after confirming communication link interconnection, sends the fault code to each subsequent vehicle system and then retrieves feedback information from that system. Based on the feedback information, it determines whether the fault code transmission was truly completed and whether the other party has successfully received the fault code. Local cached information deletion can only be performed after the fault code transmission is completely completed. If no successful transmission feedback signal is received, the vehicle system will repeat the transmission action until the other party successfully receives the fault code.
[0038] like Figure 2 The second aspect of the present invention provides a method for preventing the loss of vehicle-mounted fault codes, the method being implemented based on the aforementioned vehicle-mounted fault code prevention system, the method comprising:
[0039] Step S10: In response to the wake-up success signal, each vehicle system performs a fault code self-check to determine whether a fault code exists.
[0040] Specifically, after wake-up, the downstream controller, central / domain controller, and cloud controller will monitor their own working status. If a fault is detected, a fault code will be generated to record the fault.
[0041] Step S20: If a fault code exists, perform local caching of the fault code.
[0042] Step S30: In response to the wake-up success signal, each vehicle system continuously performs communication link interconnection detection with the adjacent next-level vehicle system, and after the communication link is established, sends the locally cached fault code to the adjacent next-level vehicle system.
[0043] Specifically, the downstream controller, central / domain controller, and cloud controller will each wake up and attempt to communicate through the vehicle communication network (Ethernet, CAN / LIN bus, etc.). Communication can be established if both are awake; otherwise, it will fail. The downstream controller records and stores its own fault codes and checks with the vehicle communication network (Ethernet, CAN / LIN bus, etc.) to confirm whether the central / domain controller is awake and has established communication with it. If communication is established, the stored fault codes are sent to the central / domain controller; otherwise, the fault codes are stored. The central / domain controller records and stores its own fault codes and those sent by the downstream controller, and checks with the vehicle communication network (Ethernet, CAN / LIN bus, etc.) to confirm whether the cloud controller is awake and has established communication with it. If communication is established, the stored fault codes are sent to the cloud controller; otherwise, the fault codes are stored. The cloud controller records and stores fault codes generated by itself and those sent by the central / domain controller. It also checks whether the cloud server and the cloud controller have established communication via the wireless network. If communication has been established, the stored fault codes are sent to the cloud server; otherwise, the fault codes are stored.
[0044] Step S40: After the final-level vehicle system in the vehicle control system summarizes the fault codes, it uploads the summarized fault codes to the cloud server.
[0045] This invention also provides a computer-readable storage medium storing instructions that, when executed on a computer, cause the computer to perform the aforementioned vehicle fault code anti-loss method. The method implementation steps are as follows: Figure 3 As shown.
[0046] Those skilled in the art will understand that all or part of the steps in the methods of the above embodiments can be implemented by a program instructing related hardware. This program is stored in a storage medium and includes several instructions to cause a microcontroller, chip, or processor to execute all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned storage medium includes various media capable of storing program code, such as a USB flash drive, a portable hard drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.
[0047] The optional embodiments of the present invention have been described in detail above with reference to the accompanying drawings. However, the embodiments of the present invention are not limited to the specific details described above. Within the scope of the technical concept of the embodiments of the present invention, various simple modifications can be made to the technical solutions of the embodiments of the present invention, and these simple modifications all fall within the protection scope of the embodiments of the present invention. It should also be noted that the various specific technical features described in the above specific embodiments can be combined in any suitable manner without contradiction. To avoid unnecessary repetition, the embodiments of the present invention will not further describe the various possible combinations.
[0048] Furthermore, various different embodiments of the present invention can be combined in any way, as long as they do not violate the spirit of the embodiments of the present invention, they should also be regarded as the content disclosed by the embodiments of the present invention.
Claims
1. A vehicle infotainment system for preventing the loss of fault codes, characterized in that, The vehicle-mounted fault code anti-loss system includes: The vehicle-mounted control system comprises a multi-level, hierarchically interconnected vehicle infotainment system, and a cloud server communicatively connected to the vehicle-mounted control system; wherein, Each vehicle-mounted system within the vehicle control system is configured to first perform a fault code self-check upon wake-up, and then cache the fault codes locally after identification. Each vehicle-mounted system is also configured to continuously perform communication link interconnection detection with the adjacent next-level vehicle-mounted system after wake-up, and send the locally cached fault codes to the adjacent next-level vehicle-mounted system after the communication link is established. The final-level vehicle infotainment system within the vehicle control system is configured to aggregate fault codes and upload the aggregated fault codes to the cloud server.
2. The vehicle fault code anti-loss system according to claim 1, characterized in that, The vehicle-side control system includes: Multiple downstream controllers, multiple central / domain controllers, and at least one cloud controller; The cloud controller is the final-level vehicle infotainment system in the vehicle control system.
3. The vehicle fault code anti-loss system according to claim 2, characterized in that, Each central / domain controller communicates with multiple subordinate controllers; Each sub-controller communicates with only one central / domain controller; Each cloud controller communicates with multiple central / domain controllers; Each central / domain controller communicates with only one cloud controller.
4. The vehicle fault code anti-loss system according to claim 1, characterized in that, After recognizing a fault code, each vehicle's infotainment system is configured to cache the fault code locally, and also to: The fault codes transmitted from the adjacent upstream level and the fault codes obtained from the self-test are cached together.
5. The vehicle fault code anti-loss system according to claim 1, characterized in that, After waking up, each vehicle infotainment system continuously performs communication link connectivity checks with the next-level vehicle infotainment system, including: After any vehicle infotainment system is successfully woken up, it continuously sends communication confirmation messages to the adjacent upper / lower level vehicle infotainment systems with which it has established a communication connection. After receiving the communication confirmation message and successfully waking up, each vehicle infotainment system sends a communication confirmation feedback message. If both vehicle systems simultaneously receive a communication confirmation message and a communication confirmation feedback message, the communication link is considered to be established.
6. The vehicle fault code anti-loss system according to claim 1, characterized in that, Each vehicle infotainment system is also configured as follows: After sending the locally cached fault codes to the adjacent next-level vehicle system, the system will continue to send the locally cached fault codes at preset intervals until it receives a successful reception feedback signal from the adjacent next-level vehicle system. After receiving a successful reception feedback signal from the adjacent next-level vehicle system, the fault codes in the local cache are deleted.
7. A method for preventing the loss of vehicle-mounted fault codes, characterized in that, The vehicle infotainment system fault code anti-loss method is implemented based on the vehicle infotainment system fault code anti-loss system according to any one of claims 1-6, and the method includes: In response to the wake-up success signal, each vehicle system performs a fault code self-check to determine if there are any fault codes. If a fault code exists, cache the fault code locally; In response to the wake-up success signal, each vehicle infotainment system continuously performs communication link interconnection detection with the adjacent next-level vehicle infotainment system, and sends the locally cached fault codes to the adjacent next-level vehicle infotainment system after the communication link is established; The final-level vehicle infotainment system within the vehicle control system compiles fault codes and uploads the compiled fault codes to the cloud server.
8. The method for preventing loss of vehicle fault codes according to claim 7, characterized in that, Each vehicle infotainment system continuously performs communication link connectivity checks with the adjacent next-level vehicle infotainment system, including: After any vehicle infotainment system is successfully woken up, it continuously sends communication confirmation messages to the adjacent next-level vehicle infotainment system with which it has established a communication connection. After receiving the communication confirmation message and successfully waking up, each vehicle infotainment system sends a communication confirmation feedback message. If both vehicle systems simultaneously receive a communication confirmation message and a communication confirmation feedback message, the communication link is considered to be established.
9. The method for preventing loss of vehicle fault codes according to claim 7, characterized in that, The method further includes: After each vehicle infotainment system sends the locally cached fault codes to the adjacent next-level vehicle infotainment system, it continues to send the locally cached fault codes at preset intervals until it receives a successful reception feedback signal from the adjacent next-level vehicle infotainment system. After receiving a successful reception feedback signal from the adjacent next-level vehicle system, the fault codes in the local cache are deleted.
10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores instructions that, when executed on a computer, cause the computer to perform the vehicle fault code anti-loss method as described in any one of claims 7-9.